METHOD AND DEVICE FOR DETECTING A NEURAL RESPONSE IN A NEURAL MEASUREMENT
20240180496 ยท 2024-06-06
Inventors
Cpc classification
A61B5/4848
HUMAN NECESSITIES
A61B5/7282
HUMAN NECESSITIES
G06F2218/00
PHYSICS
A61B5/7246
HUMAN NECESSITIES
A61B5/6846
HUMAN NECESSITIES
A61B5/24
HUMAN NECESSITIES
International classification
A61B5/00
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. A method for processing a neural measurement in order to determine a magnitude of a neural response in the neural measurement, the method comprising: applying a first electrical stimulus to neural tissue of a patient, the first electrical stimulus defined by at least one stimulus parameter; obtaining a neural measurement from one or more sense electrodes subsequent to the first electrical stimulus; determining, based on the neural measurement, a time delay of a window to be applied to a subsequent neural measurement; applying a window at the determined time delay to the subsequent neural measurement to produce a windowed neural measurement; and determining from the windowed neural measurement a magnitude of a neural response evoked by an electrical stimulus in the subsequent neural measurement.
2. The method of claim 1, wherein the determining the magnitude of the neural response comprises correlating the windowed neural measurement against a filter template.
3. The method of claim 2, wherein the filter template comprises at least three half cycles of an alternating waveform, amplitude modulated by a template window.
4. The method of claim 3 wherein the template window comprises a triangular window.
5. The method of claim 4 wherein the triangular window is a standard triangular window of length L comprising coefficients w(n) as follows:
6. The method of claim 4 wherein the triangular window is a Bartlett window of length L in which samples 1 and L are zero.
7. The method of claim 3 wherein the template window comprises one of a Hanning window, a rectangular window, and a Kaiser-Bessel window.
8. The method of claim 3 wherein the window comprises one or more basis functions derived from a sinusoidal binomial transform.
9. The method of claim 3 wherein the filter template comprises four half-cycles of an alternating waveform.
10. The method of claim 3 wherein the filter template comprises half cycles of a sine wave, amplitude modulated by the template window.
11. The method of claim 3 wherein the filter template comprises half cycles of a cosine wave, amplitude modulated by the template window.
12. The method of claim 2 wherein determining the magnitude comprises calculating only a single point of the correlation.
13. The method of claim 2, wherein determining the time delay comprises: applying the window at an approximate time delay to the neural measurement; computing real and imaginary parts of the fundamental frequency of the discrete Fourier Transform (DFT) of the windowed neural measurement; calculating a phase defined by the real and imaginary parts; calculating, based on a fundamental frequency of the filter template, the time adjustment needed to change the calculated phase to ?/2; and determining the time delay as the sum of the approximate time delay and the time adjustment.
14. The method of claim 1, wherein the time delay is re-determined prior to every processing of a neural measurement.
15. The method of claim 1, wherein the time delay is re-determined in response to a detected change in a posture of the patient.
16. The method of claim 1, further comprising using the magnitude of the neural response in a closed loop feedback circuit to determine the at least one stimulus parameter for a subsequent electrical stimulus.
17. An implantable device for processing a neural measurement in order to determine a magnitude of a neural response in the neural measurement, the device comprising: an electrical stimulus source configured to generate a first electrical stimulus to be applied to neural tissue, the first electrical stimulus defined by at least one stimulus parameter; measurement circuitry for obtaining a neural measurement from one or more sense electrodes subsequent to the first electrical stimulus; and a processor configured to: determine, based on the neural measurement, a time delay of a window to be applied to a subsequent neural measurement; apply a window at the determined time delay to the subsequent neural measurement to produce a windowed neural measurement; and determine from the windowed neural measurement a magnitude of a neural response evoked by an electrical stimulus in the subsequent neural measurement.
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
=?{square root over (Re(
).sup.2+Im(
).sup.2)}(3)
and the phase of the windowed DFT term is
[0087] The hardware 600 used to compute one term of 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.
If
e(t)=vexp(?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
[0099] 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.
[0100] Thus, the phase of the DFT terms of a single exponential depend on the time constant of the exponential, as shown in
[0101]
[0102]
[0103] 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 ?s to 30 ms, more typically 500 ?s 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.
[0104] 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
[0105]
[0106] Knowing k also allows the evaluation of ?, and of the fast artifact exponential:
[0107] 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:
[0108] Then, an estimation of the fast artifact term is:
[0109] Having calculated the above, it is possible to improve the SAR of the signal by subtracting the estimated exponential, as shown in
[0110] 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
[0111] When the relative phase (?) of the evoked response to the sampling window is unknown, the proposal of
[0112] In turn, the five terms a,b,k,? and c can be found. For some phase ? between the measurement window and the evoked response:
[0113] 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
[0114] When considering implementation of the six point technique of
[0115]
[0116] It is further noted that running the calculation after the evoked response is finished allows the slow exponential to be measured.
[0117] 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.
[0118] 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 carly 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.
[0119] 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.
[0120] 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.
[0121]
[0122] It is further to be appreciated that cosine templates of 3, 5 or more lobes can be similarly generated, noting the
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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.