METHOD AND DEVICE FOR DETECTING A NEURAL RESPONSE IN A NEURAL MEASUREMENT
20220233150 · 2022-07-28
Inventors
Cpc classification
A61B5/4848
HUMAN NECESSITIES
G06F2218/00
PHYSICS
A61B5/7282
HUMAN NECESSITIES
A61B5/7246
HUMAN NECESSITIES
A61B5/6846
HUMAN NECESSITIES
A61B5/24
HUMAN NECESSITIES
International classification
A61B5/00
HUMAN NECESSITIES
A61B5/24
HUMAN NECESSITIES
Abstract
A method for processing a neural measurement obtained in the presence of artifact, in order to detect whether a neural response is present in the neural measurement. A neural measurement is obtained from one or more sense electrodes. The neural measurement is correlated against a filter template, the filter template comprising at least three half cycles of an alternating waveform, amplitude modulated by a window. From an output of the correlating, it is determined whether a neural response is present in the neural measurement.
Claims
1. (canceled)
2. A controller for an implantable device, the controller comprising a processor configured to: control a stimulus source to generate a first stimulus to be applied to neural tissue, the first stimulus defined by at least one stimulus parameter; measure a neural response evoked by the first stimulus in the neural tissue, wherein measuring the neural response comprises: obtaining a neural measurement from one or more sense electrodes, the neural measurement comprising artefact; and correlating the neural measurement against a filter template; and use an output of the correlating in a closed loop feedback circuit to determine the at least one stimulus parameter to control neuromodulation.
3. The controller of claim 2 wherein the neuromodulation is controlled based on whether the output of the correlating indicates that a neural response is present in the neural measurement.
4. The controller of claim 2 wherein measuring the neural response further comprises determining, from the output of the correlating, a magnitude of the neural response evoked by the first stimulus; and wherein the neuromodulation is controlled based on the magnitude of the neural response.
5. The controller of claim 4, wherein the processor is further configured to: compare the magnitude of the neural response to a desired value, and determine the at least one stimulus parameter based on the comparison to effect the closed loop feedback circuit for controlling the neuromodulation.
6. The controller of claim 5, wherein the processor is further configured to: determine an error signal based on a difference between the magnitude of the neural response and the desired value; scale the error signal by a gain; and determine the at least one stimulus parameter based on the scaled error signal.
7. The controller of claim 6, wherein determining the at least one stimulus parameter comprises integrating the scaled error signal.
8. The controller of claim 6, wherein determining the at least one stimulus parameter comprises adjusting the stimulus parameter by the scaled error signal.
9. The controller of claim 2, wherein the at least one stimulus parameter is an amplitude of a stimulus current.
10. The controller of claim 2 wherein the filter template is substantially orthogonal to the artefact.
11. The controller of claim 10 wherein the filter template has a dot product with the neural response which is close to that of a matched filter matched to the neural response.
12. The controller of claim 2 wherein the filter template comprises at least three half cycles of an alternating waveform, amplitude modulated by a window.
13. The controller of claim 2 wherein only a single point of the correlation is calculated.
14. The controller of claim 13 wherein the single point of the correlation is calculated at a predefined optimal time delay.
15. The controller of claim 14, wherein the processor is further configured to determine the optimal time delay when a signal to artefact ratio is greater than one, at which a first or single point of the correlation between the neural measurement and the filter template should be produced, by: at an approximate time delay between the neural response and the filter template, computing real and imaginary parts of a fundamental frequency of a discrete Fourier transform (DFT) of the neural measurement; calculating a phase defined by the real and imaginary parts; relative to a fundamental frequency of the template, calculating a time adjustment needed to change the calculated phase to π/2; and defining the optimal time delay as being a sum of the approximate time delay and the time adjustment.
16. The controller of claim 14, wherein the optimal time delay is recalculated prior to every attempted measurement of a neural response.
17. The controller of claim 14, wherein the optimal time delay is recalculated in response to a detected change in posture of a recipient of the implantable device.
18. The controller of claim 2, wherein the processor is configured to control the stimulus source to generate the first stimulus to be applied to the neural tissue by a stimulus electrode, wherein the stimulus electrode is mounted upon a common electrode array with the one or more sense electrodes.
19. The controller of claim 18, wherein each electrode of the electrode array may be selectively used as either a stimulus electrode or a sense electrode.
20. The controller of claim 2, wherein measuring the neural response comprises producing an output of the correlating based on a neural measurement obtained from a single stimulus.
21. The controller of claim 20, wherein the processor is configured to adjust the at least one stimulus parameter using the output of the correlating, prior to application of a stimulus subsequent to the single stimulus.
22. A method of controlling a neural stimulus, the method comprising: generating a first stimulus to be applied to neural tissue, the first stimulus defined by at least one stimulus parameter; measuring a neural response evoked by the first stimulus in the neural tissue, wherein measuring the neural response comprises: obtaining a neural measurement from one or more sense electrodes, the neural measurement comprising artefact; correlating the neural measurement against a filter template; and using an output of the correlating in a closed loop feedback circuit to determine the at least one stimulus parameter to control neuromodulation.
23. The method of claim 22 wherein the neuromodulation is controlled based on whether the output of the correlating indicates that a neural response is present in the neural measurement.
24. The method of claim 22 wherein measuring the neural response further comprises determining, from the output of the correlating, a magnitude of the neural response evoked by the first stimulus; and wherein the neuromodulation is controlled based on the magnitude of the neural response.
25. The method of claim 24 further comprising: comparing the magnitude of the neural response to a desired value, and determining the at least one stimulus parameter based on the comparison to effect the closed loop feedback circuit for controlling the neuromodulation.
26. The method of claim 25, further comprising: determining an error signal based on a difference between the magnitude of the neural response and the desired value; scaling the error signal by a gain; and determining the at least one stimulus parameter based on the scaled error signal.
27. The method of claim 26, wherein determining the at least one stimulus parameter comprises integrating the scaled error signal.
28. The method of claim 26, wherein determining the at least one stimulus parameter comprises adjusting the stimulus parameter by the scaled error signal.
29. The method of claim 22, wherein the at least one stimulus parameter is an amplitude of a stimulus current.
30. The method of claim 22 wherein the filter template is substantially orthogonal to the artefact.
31. The method of claim 30 wherein the filter template has a dot product with the neural response which is close to that of a matched filter matched to the neural response.
32. The method of claim 22 wherein the filter template comprises at least three half cycles of an alternating waveform, amplitude modulated by a window.
33. The method of claim 22 wherein only a single point of the correlation is calculated.
34. The method of claim 33 wherein the single point of the correlation is calculated at a predefined optimal time delay.
35. The method of claim 34 further comprising determining the optimal time delay when a signal to artefact ratio is greater than one, at which a first or single point of the correlation between the neural measurement and the filter template should be produced, by: at an approximate time delay between the neural response and the filter template, computing real and imaginary parts of a fundamental frequency of a discrete Fourier transform (DFT) of the neural measurement; calculating a phase defined by the real and imaginary parts; relative to a fundamental frequency of the template, calculating a time adjustment needed to change the calculated phase to π/2; and defining the optimal time delay as being a sum of the approximate time delay and the time adjustment.
36. The method of claim 34, wherein the optimal time delay is recalculated prior to every attempted measurement of a neural response.
37. The method of claim 34, wherein the optimal time delay is recalculated in response to a detected change in posture of a recipient of the neuromodulation.
38. The method of claim 22 further comprising generating the first stimulus to be applied by a stimulus electrode, wherein the stimulus electrode is mounted upon a common electrode array with the one or more sense electrodes.
39. The method of claim 22, wherein measuring the neural response comprises producing an output of the correlating based on a neural measurement obtained from a single stimulus.
40. The method of claim 39 wherein the at least one stimulus parameter is adjusted using the output of the correlating, prior to application of a stimulus subsequent to the single stimulus.
41. A non-transitory computer readable medium comprising machine-readable instructions, which when executed by a processor cause the processor to: control a stimulus source to generate a first stimulus to be applied to neural tissue, the first stimulus defined by at least one stimulus parameter; measure a neural response evoked by the first stimulus in the neural tissue, wherein measuring the neural response comprises: obtaining a neural measurement from one or more sense electrodes, the neural measurement comprising artefact; correlating the neural measurement against a filter template; and using an output of the correlating in a closed loop feedback circuit to determine the at least one stimulus parameter to control neuromodulation.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0060] An example of the invention will now be described with reference to the accompanying drawings, in which:
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0077]
[0078]
[0079] The evoked CAP measurements in this embodiment are made by use of the neural response measurement techniques set out in International Patent Publication No. WO2012/155183.
[0080]
[0081]
[0082]
[0083] It is noted that when sampling at 10 kHz, for example, 20 samples will be obtained in a 2 ms window, so that to determine the entire cross correlation will require 400 multiply/add operations. Accordingly, rather than calculating the entire cross-correlation between a measured neural response and the filter template, the present embodiment further provides for calculation of only a single point of the correlation as the output 316 of detector 300, as a single point requires only 20 samples when sampling a 2 ms window at 10 kHz. Noting that the arrival time of the neural response, or its position within the neural measurement 302, is not known a priori, it is necessary to determine an optimal time delay or offset between the neural measurement and the template filter, at which the single point of the correlation should then be calculated. The aim is to calculate the single point at the peak of the curve 504, and no other. To this end, the present embodiment efficiently determines the optimal time delay, by noting the following.
[0084] The DFT is defined by:
[0085] In equation (1), and in the rest of this document, frequency-domain signals are represented by capital letters, and time-domain signals using lower-case. When using the DFT for spectral analysis, it is usual to multiply the data by a window W(n) so this becomes:
[0086] This can be expressed in traditional magnitude and phase terms where the magnitude of the windowed DFT term is
|X.sub.k′|=√{square root over (Re(X.sub.k′).sup.2+Im(X.sub.k′).sup.2)} (3)
and the phase of the windowed DFT term is
[0087] The hardware 600 used to compute one term of X.sub.k′ is illustrated in
it is noted that detector 300 using the filter template 304 (
[0088] This also provides insight into what happens as the time delay is adjusted during a clinical fitting procedure, as shown in
[0089] When considering the entire cross correlation as the evoked response slides across the window (
[0097] Such embodiments may be particularly advantageous as compared to a clinical process requiring exploration of the varying delays in order to find a peak
[0098] The present embodiment further incorporates the third and fourth aspects of the invention, and recognises that the artifact 506 can be well modelled as being a sum of two exponentials, of differing time constant. Each exponential component has a voltage and a time value, leading to
where υ.sub.i and τ.sub.i are constants for each component.
[0099] If
e(t)=v exp(−t/τ) (7)
then we can consider its windowed DFT E.sub.k′, for which each term will have a magnitude and phase, and the term E.sub.2′ can be calculated with the complex correlator 600 of
[0100] If we take some signal e.sup.−t/τ and shift the point in the signal at which the correlation is performed by some arbitrary time T, since
e.sup.−(t+T)/τ=e.sup.−t/τe.sup.−T/τ
e.sup.−(t+T)/τ=c.Math.e.sup.−t/τ (8)
where c is some constant.
[0101] Thus, the phase of the DFT terms of a single exponential depend on the time constant of the exponential, as shown in
[0102]
[0103]
[0104] When modelling the artefact as a sum of two exponential terms, it has been determined from measurements of actual artefact that the time constant τ.sub.1 of the first (slow) exponential term is typically in the range 300 us to 30 ms, more typically 500 us to 3 ms and most commonly about 1 ms, and that the time constant τ.sub.2 of the second (fast) exponential term is typically in the range 60-500 μs, more typically 100-300 μs, and most commonly about 150 μs.
[0105] The method of this embodiment, utilising the third and fourth aspects of the invention, relies on making two complex measurements of the evoked response, at points in time separated by one quarter of a cycle, as shown in
[0106]
[0107] Knowing k also allows the evaluation of τ, and of the fast artifact exponential:
[0108] To find the voltage of the fast exponential term for the artifact, one can further calculate the DFT of the exponential which is what would be expected from the detectors for an exponential input of that time constant, normalized to 1.0:
[0109] Then, an estimation of the fast artifact term is:
[0110] Having calculated the above, it is possible to improve the SAR of the signal by subtracting the estimated exponential, as shown in
[0111] A difficulty in implementing this algorithm with measured data is that it measures two signals at once, namely the evoked response and the fast exponential, and each forms a noise source for the other. Usually, the phase of the evoked response is not known exactly, and this introduces errors into
[0112] When the relative phase (θ) of the evoked response to the sampling window is unknown, the proposal of
[0113] In turn, the five terms a, b, k, θ and c can be found. For some phase θ between the measurement window and the evoked response: so:
[0114] The phase will change slowly, so once θ is known, it is possible to adjust the delay of the sampling window, and then revert to the four point algorithm of
[0115] When considering implementation of the six point technique of
[0116]
[0117] It is further noted that running the calculation after the evoked response is finished allows the slow exponential to be measured.
[0118] The evoked response in the spine (having three phases) takes approximately 1 ms. In embodiments employing a sample rate of 30 KHz or a simple interval of 33 us, the evoked response will take around 30 samples. Consequently in such embodiments the filter template having four phases will comprise approximately 40 tap values, or data points. In alternative embodiments, using an alternative sampling rate or measuring a faster or slower CAP, the length of the filter may comprise correspondingly greater or fewer filter taps.
[0119] While the preceding embodiments have been described in relation to a filter template which comprises four half cycles, alternative embodiments of the present invention may nevertheless usefully employ a filter template comprising greater or fewer lobes. The present invention thus recognises that the ideal number if lobes is four. This is in contrast to a two lobe filter, which will have equal first and second lobes and will thus put more emphasis on the early parts of the signal where the signal-to-artifact is worse. Further, a filter with an odd number of lobes does not tend to have good artifact rejection properties. Moreover, if one were to use a six-lobe filter, or higher even-number lobed filter, the window becomes too wide relative to the 3-lobed neural response, and at least half the correlation time would just be looking at noise. Since most of the problematic artifact is in the first two lobes, a 6 lobe filter will tend not to provide better artifact rejection than the four-lobe filter. Four lobes thus provides the optimal trade-off between rejection of artifact and noise gain.
[0120] Nevertheless, alternative embodiments of the present invention may usefully employ a filter template comprising greater or fewer lobes. We now describe the mathematical properties of templates of other embodiments of the invention. The term “template” is used to refer to a filter used via correlation to detect an ECAP. A template may be comprised of one or more wavelets or basis functions, or may be derived by some other method, and is configured to preferentially pass an ECAP but preferentially block or be orthogonal to artifact.
[0121] That is, an important property of the sinusoidal binomial transform (SBT) is its ability to reject polynomial signals. If an SBT template of order n is used, it will reject all the terms of the Taylor series up to order n.
[0122]
[0123] It is further to be appreciated that cosine templates of 3, 5 or more lobes can be similarly generated, noting the
[0124] The preceding embodiments further describe a filter template built using a triangular window. The triangular window is superior to the Bartlett, Hanning, rectangular and the Kaiser-Bessel for a variety of beta values. The performance of the four-lobe triangular template can be within 2 dB of a matched filter for optimised offset. Nevertheless, alternative embodiments may utilise windows other than the triangular window to useful effect, and such embodiments are thus within the scope of the present invention.
[0125] Moreover, while the described embodiments use a single term of the SBT for response detection, the present invention further recognises that there are possible extensions to this method. Therefore, some embodiments of the invention may use multiple identical templates, but shifted in time. Even though these are not orthogonal, a successive approximation method creating a compound template may provide better approximation. Additionally or alternatively, some embodiments may use templates that are a sum of templates of different frequencies, templates of different offset and/or templates of different numbers of lobes.
[0126] A benefit of some embodiments of the present invention is that in some embodiments the detector produces an output based on a single neural measurement, without requiring multiple neural measurements to produce a detector output. Such embodiments may thus provide a swift response time of a feedback control loop utilising the detector output.
[0127] It will be appreciated by persons skilled in the art that numerous variations and/or modifications may be made to the invention as shown in the specific embodiments without departing from the spirit or scope of the invention as broadly described. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive.