Patent ID: 11179567

Abstract:
Systems, devices, and techniques are described for adjusting electrical stimulation based on detected ECAPs. In one example, a medical device includes processing circuitry configured to control stimulation circuitry to deliver a first electrical stimulation pulse and sensing circuitry to detect, after delivery of the first electrical stimulation pulse, an ECAP signal. The processing circuitry may be configured to determine a characteristic value of the ECAP signal, determine an ECAP differential value that indicates whether the characteristic value of the ECAP signal is one of greater than a selected ECAP characteristic value or less than the selected ECAP characteristic value, determine, based on the ECAP differential value, a gain value, determine, based on the gain value, a parameter value that at least partially defines a second electrical stimulation pulse, and control the stimulation circuitry to deliver the second electrical stimulation pulse according to the parameter value.