Patent attributes
Systems, devices, and techniques for adjusting electrical stimulation based on a posture state of a patient are described. For example, a system may include sensing circuitry configured to sense an ECAP signal and processing circuitry configured to control delivery of the electrical stimulation to a patient according to a first value of a stimulation parameter and determine a characteristic value of the ECAP signal. The processing circuitry may also be configured to receive, from a sensor, a posture state signal representing a posture state of the patient, determine, based on the posture state signal, a gain value for the stimulation parameter, adjust, based on the characteristic value of the ECAP signal and the gain value, the first value of the stimulation parameter to a second value of the stimulation parameter, and control delivery of the electrical stimulation according to the second value of the stimulation parameter.