Therapy parameter selection based on ECAP feedback
Techniques for therapy delivery are described. A processing circuit may adjust a first therapy parameter from a first level to a second level, and responsive to the adjustment of the first therapy parameter, compare a level of an evoked compound action potential (ECAP) generated from therapy delivery based on the adjusted first therapy parameter to an ECAP threshold. The processing circuit may adjust a second therapy parameter from a third level to a fourth level based on the comparison. The second therapy parameter is different than the first therapy parameter. The processing circuit may cause therapy delivery with the first therapy parameter at the second level and the second therapy parameter at the fourth level.
1. A method of therapy delivery, the method comprising:
determining that a patient is likely to experience or is experiencing therapy accommodation;
adjusting a first therapy parameter from a first level to a second level different than the first level based on the determination that the patient is likely to experience or is experiencing therapy accommodation;
responsive to the adjustment of the first therapy parameter, comparing a level of an evoked compound action potential (ECAP) generated in response to therapy delivered with the adjusted first therapy parameter to an ECAP threshold;
adjusting a second therapy parameter from a third level to a fourth level different than the third level based on the comparison, wherein the second therapy parameter is different than the first therapy parameter; and
causing delivery of the therapy with the first therapy parameter at the second level and the second therapy parameter at the fourth level.
2. The method of claim 1 , wherein determining that the patient is likely to experience or is experiencing therapy accommodation comprises determining that there is a likelihood of therapy accommodation.
3. The method of claim 1 , wherein determining that the patient is likely to experience or is experiencing therapy accommodation comprises determining that a set amount of time has elapsed.
4. The method of claim 3 , wherein the set amount of time is a set period or a randomly generated number.
5. The method of claim 1 , further comprising:
determining that the level of the ECAP is greater than the ECAP threshold based on the comparison,
wherein adjusting the second therapy parameter comprises, responsive to determining that the level of the ECAP is greater than the ECAP threshold, adjusting the second therapy parameter from the third level to the fourth level, wherein the level of the ECAP is less than or equal to the ECAP threshold when the therapy is delivered with the second therapy parameter at the fourth level.
6. The method of claim 1 , further comprising:
determining that the level of the ECAP is less than the ECAP threshold based on the comparison,
wherein adjusting the second therapy parameter comprises, responsive to determining that the level of the ECAP is less than the ECAP threshold, adjusting the second therapy parameter from the third level to the fourth level, wherein the level of the ECAP is approximately equal to the ECAP threshold when the therapy is delivered with the second therapy parameter at the fourth level.
7. The method of claim 1 , further comprising:
responsive to adjusting the first therapy parameter and prior to adjusting the second therapy parameter from the third level to the fourth level, adjusting the second therapy parameter from a fifth level to the third level based on a therapy table, wherein the second therapy parameter is adjusted from the third level to the fourth level after being adjusted from the fifth level to the third level.
8. The method of claim 1 , further comprising:
selecting the second level prior to adjusting the first therapy parameter from the first level to the second level; and
setting the ECAP threshold based on the selected second level,
wherein comparing the level of the ECAP to the ECAP threshold comprises comparing the level of the ECAP to the ECAP threshold that is set based on the selected second level.
9. The method of claim 1 , further comprising:
determining a rate at which to adjust the first therapy parameter from the first level to the second level; and
setting the ECAP threshold based on the determined rate,
wherein comparing the level of the ECAP to the ECAP threshold comprises comparing the level of the ECAP to the ECAP threshold that is set based on the determined rate.
10. The method of claim 1 , further comprising:
determining that a set amount of time has elapsed,
wherein adjusting the first therapy parameter from the first level to the second level comprises adjusting the first therapy parameter from the first level to the second level after the set amount of time has elapsed.
11. The method of claim 10 , wherein the ECAP comprises a first ECAP, and wherein the ECAP threshold comprises a first ECAP threshold, the method further comprising:
subsequent to causing delivery of the therapy with the first therapy parameter at the second level and the second therapy parameter at the fourth level, determining that an additional amount of time elapsed; and
in response to determining that the additional amount of time elapsed:
adjusting the first therapy parameter from the second level to a fifth level different than the second level;
in response to adjusting the first therapy parameter, comparing a level of a second ECAP generated from delivery of the therapy with the first therapy parameter at the fifth level to a second ECAP threshold;
adjusting the second therapy parameter from the fourth level to a sixth level different than the fourth level based on the comparison of the level of the second ECAP to the second ECAP threshold; and
causing delivery of the therapy with the first therapy parameter at the fifth level and the second therapy parameter at the sixth level.
12. The method of claim 10 , wherein the ECAP comprises a first ECAP, and wherein the ECAP threshold comprises a first ECAP threshold, the method further comprising:
subsequent to causing delivery of the therapy with the first therapy parameter at the second level and the second therapy parameter at the fourth level, determining that an additional amount of time elapsed;
in response to determining that the additional amount of time elapsed:
adjusting the second therapy parameter from the third level to a fifth level different than the third level;
in response to adjusting the second therapy parameter, comparing a level of a second ECAP generated from delivery of the therapy with the first therapy parameter at the fifth level to a second ECAP threshold;
adjusting the first therapy parameter from the second level to a sixth level different than the sixth level based on the comparison of the level of the second ECAP to the second ECAP threshold; and
causing delivery of the therapy with the first therapy parameter at the sixth level and the second therapy parameter at the fifth level.
13. The method of claim 1 , wherein the therapy comprises stimulation pulses, and comparing the level of the ECAP to the ECAP threshold comprises comparing the level of the ECAP to the ECAP threshold after delivery of each stimulation pulse of the therapy.
14. The method of claim 1 , wherein comparing comprises continuously comparing the level of the ECAP generated in response to the delivery of the therapy to the ECAP threshold during the adjustment of the first therapy parameter, and wherein adjusting the second therapy parameter comprises continuously adjusting the second therapy parameter during the adjustment of the first therapy parameter.
15. The method of claim 1 , wherein the ECAP threshold is a non-zero numerical value.
16. A device for therapy delivery, the device comprising:
a stimulation circuit; and
a processing circuit configured to:
determine that a patient is likely to experience or is experiencing therapy accommodation;
adjust a first therapy parameter from a first level to a second level different than the first level based on the determination that the patient is likely to experience or is experiencing therapy accommodation;
responsive to the adjustment of the first therapy parameter, compare a level of an evoked compound action potential (ECAP) generated in response to therapy delivered with the adjusted first therapy parameter to an ECAP threshold;
adjust a second therapy parameter from a third level to a fourth level different than the third level based on the comparison, wherein the second therapy parameter is different than the first therapy parameter; and
cause the stimulation circuit to deliver therapy with the first therapy parameter at the second level and the second therapy parameter at the fourth level.
17. The device of claim 16 , wherein the processing circuit is configured to:
determine that there is a likelihood of therapy accommodation.
18. The device of claim 16 , wherein the processing circuit is configured to:
determine that a set amount of time has elapsed.
19. The device of claim 18 , wherein the set amount of time is a set period or a randomly generated number.
20. A computer-readable storage medium storing instructions thereon that when executed cause one or more processors of a device for therapy delivery to:
determine that a patient is likely to experience or is experiencing therapy accommodation;
adjust a first therapy parameter from a first level to a second level different than the first level based on the determination that the patient is likely to experience or is experiencing therapy accommodation;
responsive to the adjustment of the first therapy parameter, compare a level of an evoked compound action potential (ECAP) generated in response to therapy delivered with the adjusted first therapy parameter to an ECAP threshold;
adjust a second therapy parameter from a third level to a fourth level different than the third level based on the comparison, wherein the second therapy parameter is different than the first therapy parameter; and
cause delivery of the therapy with the first therapy parameter at the second level and the second therapy parameter at the fourth level.