This document relates generally to medical systems, and more particularly, but not by way of limitation, to systems, devices, and methods for extracting features from a sensed signal.
Various therapies may deliver electrical energy to a patient. Examples of such therapies include, but are not limited to, muscle stimulators, cardiac rhythm devices such as pacemakers and defibrillators, and neurostimulators. Physiological signal(s) may be sensed for various reasons related to the delivered therapy, such as to time the therapy delivery, to determine enabling or disabling conditions for delivering the therapy, to determine an efficacy of a therapy, or to provide feedback for closed-loop control of the therapy. For example, action potentials within a nerve may be sensed to provide closed-loop control of a neuromodulation therapy. Examples of neuromodulation include Spinal Cord Stimulation (SCS), Deep Brain Stimulation (DBS), Peripheral Nerve Stimulation (PNS), and Functional Electrical Stimulation (FES).
An example (e.g., “Example 1”) of a system may include a stimulator, sensing circuitry and a controller. The stimulator may be operably connected to at least one stimulation electrode, and configured to deliver an electrical waveform for an electrical therapy using the at least one stimulation electrode. The sensing circuitry may be operably connected to at least one sensing electrode, and configured to sense electrical potentials that are evoked by the electrical waveform to provide sensed evoked signals. The controller may be operably connected to the stimulator and the sensing circuitry. The controller may be configured to automatically define a sampling window, sample the sensed evoked potentials during the sampling window to provide sampled values, detect at least one feature from the sampled values, and automatically provide feedback for closed-loop control of the electrical therapy based on the at least one feature.
In Example 2, the subject matter of Example 1 may optionally be configured such that the controller may automatically define the sampling window based on an estimated conduction velocity for the evoked potentials and a distance between the stimulation electrode and the sensing electrode.
In Example 3, the subject matter of Example 2 may optionally be configured such that the controller may use a lookup table to define the sampling window. The lookup table may identify a start and an end of the sampling window for a selected stimulation electrode and a selected sensing electrode from a plurality of electrodes.
In Example 4, the subject matter of any one or more of Examples 1-3 may optionally be configured such that the sensing circuitry may sense on at least two channels, including sense on a first channel using at least a first electrode at a first location and sense on a second channel using at least a second electrode at a second location. The controller may be configured to sample the sensed evoked potentials on each of the first and second channels detect at least one feature on each of the channels, and automatically determine that the at least one feature on the first channel corresponds to the at least one feature on the second channel with an expected propagation delay from the first location to the second location.
In Example 5, the subject matter any one or more of Examples 1-4 may optionally be configured such that the controller may automatically set an initial sampling window for the electrical therapy.
In Example 6, the subject matter of any one or more of Examples 1-5 may optionally be configured such that the controller may automatically adjust the sampling window during the course of the electrical therapy.
In Example 7, the subject matter of Example 6 may optionally be configured such that the controller may automatically adjust the sampling window to avoid a stimulation artifact from interfering with detecting the at least one feature.
In Example 8, the subject matter of Example 6 may optionally be configured such that the controller may automatically detect at least one of a minimum or a maximum in the sensed evoked potentials.
In Example 9, the subject matter of Example 6 may optionally be configured such that the controller may determine whether the at least one feature occurs before an expected period of time or a number of samples after the stimulation pulse and whether another feature occurs during the expected period of time or the number of samples after the stimulation pulse, and the controller may be configured to delay the beginning of the sampling window after the stimulation pulse.
In Example 10, the subject matter of Example 8 may optionally be configured such that the at least one feature occurs before and does not occur during the expected period of time or sample range after the stimulation pulse, and before automatically adjusting the sampling window reassess whether the at least one feature occurs before and does not occur during the expected period of time or sample range after the stimulation pulse.
In Example 11, the subject matter of Examples 1-10 may optionally be configured such that the controller may find an expected peak and an expected trough in the sensed evoked potentials, and use the expected peak and the expected trough as a reference to move the sampling window to avoid the stimulation artifact.
In Example 12, the subject matter of Examples 1-11 may optionally be configured such that the at least one feature may include at least one of a curve length or an area under a curve between two points in sensed evoked potentials. The two points used to define the curve length may be, but do not have to be, the same points used to define the area under the curve.
In Example 13, the subject matter of Examples 1-12 may optionally be configured such that the sensed evoked potentials include at least one feature-time association. The controller may be configured to automatically define the sampling window based on the at least one feature-time association. The feature-time association for a time window may include at least one of: an area under the curve for the time window, a curve length for the time window, a range for the time window, an oscillation frequency within the time window, a rate of decay in amplitude of the peaks in the evoked response within the time window, a difference of any two positive and negative peak magnitudes within the time window, or a change in at least one feature value within the time window with respect to a baseline feature value.
In Example 14, the subject matter of Examples 1-13 may optionally be configured such that the controller may be configured to preset a sampling window based on an estimated conduction velocity and a distance between the stimulation electrode and sensing electrode.
In Example 15, the subject matter of Examples 1-14 may optionally be configured such that the sensing circuitry may sense on at least two channels, including sense on a first channel using at least a first electrode at a first location and sense on a second channel using at least a second electrode at a second location. The controller may be configured to sample the sensed evoked potentials on each of the first and second channels, detect at least one feature on each of the channels, and determine that the at least one feature on the first channel corresponds to the at least one feature on the second channel with an expected propagation delay from the first location to the second location, and set the sampling window for the first channel based on the detected at least one feature in the first channel and set the sampling window for the second channel based on the detected at least one feature in the second channel.
Example 16 includes subject matter (such as a method, means for performing acts, machine readable medium including instructions that when performed by a machine cause the machine to performs acts, or an apparatus to perform). The subject matter may include delivering an electrical waveform for an electrical therapy using at least one stimulation electrode, wherein the delivering the electrical waveform includes delivering stimulation pulses. The subject matter may further include sensing, using at least one sensing electrode, electrical potentials that are evoked by the electrical waveform to provide sensed evoked potentials, automatically defining a sampling window, sampling the sensed evoked potentials during the sampling window to provide sampled values, detecting at least one feature from the sampled values, and automatically providing feedback for closed-loop control of the electrical therapy based on the at least one feature.
In Example 17, the subject matter of Example 16 may optionally be configured such that the automatically defining the sampling window includes defining the sampling window based on an estimated conduction velocity for the evoked potentials and a distance between the stimulation electrode and the sensing electrode.
In Example 18, the subject matter of Example 17 may optionally be configured such that the automatically defining the sampling window includes using a lookup table to define the sampling window, wherein the lookup table identifies a start and an end of the sampling window for a selected stimulation electrode from a plurality of electrodes and a selected sensing electrode from other ones of the plurality of electrodes.
In Example 19, the subject matter of any one or more of Examples 16-18 may optionally be configured such that the sensing includes sensing on at least two channels, including sensing on a first channel using a first electrode at a first location and sensing on a second channel using a second electrode at a second location. The sampling may include sampling the sensed evoked potentials on each of the first and second channels. The detecting may include detecting at least one feature on each of the channels. The automatically defining the sampling window may include determining that the at least one feature on the first channel corresponds to the at least one feature on the second channel with an expected propagation delay from the first location to the second location.
In Example 20, the subject matter of any one or more of Examples 16-19 may optionally be configured such that the automatically defining the sampling window may include automatically setting an initial sampling window for the electrical therapy.
In Example 21, the subject matter of any one or more of Examples 16-20 may optionally be configured such that the automatically defining the sampling window may include automatically adjusting the sampling window during the course of the electrical therapy.
In Example 22, the subject matter of Example 21 may optionally be configured such that the automatically adjusting may include automatically adjusting the sampling window to avoid a stimulation artifact from interfering with detecting the at least one feature.
In Example 23, the subject matter of any one or more of Examples 16-22 may optionally be configured such that the detecting at least one feature from the sampled values may include automatically detecting at least one of a minimum or a maximum in the sensed evoked potentials.
In Example 24, the subject matter of Example 21 may optionally be configured such that the automatically detecting at least one feature from the sampled values may include determining whether the at least one feature occurs before an expected period of time or a number of samples after the stimulation pulse and whether another feature occurs during the expected period of time or the number of samples after the stimulation pulse. The adjusting the sampling window may include delaying the beginning of the sampling window after the stimulation pulse.
In Example 25, the subject matter of Example 21 may optionally be configured such that the automatically detecting at least one feature from the sampled values may include determining that the at least one feature occurs before and does not occur during the expected period of time or sample range after the stimulation pulse, and before automatically adjusting the sampling window reassessing whether the at least one feature occurs before and does not occur during the expected period of time or sample range after the stimulation pulse.
In Example 26, the subject matter of any one or more of Examples 16-22 may optionally be configured such that the automatically adjusting the sampling window during the course of the electrical therapy may include finding an expected peak and an expected trough in the sensed evoked potentials, and using the expected peak and the expected trough as a reference to move the sampling window to avoid the stimulation artifact.
In Example 27, the subject matter of any one or more of Examples 16-26 may optionally be configured such that the at least one feature includes a curve length between two points in sensed evoked potentials.
In Example 28, the subject matter of any one or more of Examples 16-27 may optionally be configured such that the at least one feature includes an area under a curve between two points in sensed evoked potentials.
In Example 29, the subject matter of any one or more of Examples 16-28 may optionally be configured such that estimating conduction velocity and distance between electrodes, and presetting a window based on the estimated conduction velocity and distance between electrodes.
In Example 30, the subject matter of any one or more of Examples 16-29 may optionally be configured such that the sensing may include sensing on at least two channels, including sensing on a first channel using at least a first electrode at a first location and sensing on a second channel using at least a second electrode at a second location. The sampling may include sampling the sensed evoked potentials on each of the first and second channels. The detecting may include detecting at least one feature on each of the channels. The automatically defining the sampling window may include determining that the at least one feature on the first channel corresponds to the at least one feature on the second channel with an expected propagation delay from the first location to the second location and setting the sampling window for the first channel based on the detected at least one feature in the first channel and setting the sampling window for the second channel based on the detected at least one feature in the second channel.
Example 31 includes subject matter (such as a device, apparatus, or machine) that may include non-transitory machine-readable medium including instructions, which when executed by a machine, cause the machine to perform a method comprising delivering an electrical waveform for an electrical therapy using at least one stimulation electrode, wherein the delivering the electrical waveform includes delivering stimulation pulses, sensing, using at least one sensing electrode, electrical potentials that are evoked by the electrical waveform to provide sensed evoked potentials, automatically defining a sampling window, sampling the sensed evoked potentials during the sampling window to provide sampled values, detecting at least one feature from the sampled values, and automatically providing feedback for closed-loop control of the electrical therapy based on the at least one feature.
Example 32 includes subject matter of any one or more of Examples 30-31 may optionally be configured such that the at least one feature includes a curve length between two points in sensed evoked potentials.
Example 33 includes subject matter of any one or more of Examples 30-32, wherein the at least one feature includes an area under a curve between two points in sensed evoked potentials.
Example 34 includes subject matter of any one or more of Examples 30-33, wherein the method further comprises estimating conduction velocity and distance between electrodes, and presetting a window based on the estimated conduction velocity and distance between electrodes.
Example 35 includes subject matter of any one or more of Examples 30-34, wherein the detecting at least one feature from the sampled values includes automatically detecting at least one of a minimum or a maximum in the sensed evoked potentials.
This Summary is an overview of some of the teachings of the present application and not intended to be an exclusive or exhaustive treatment of the present subject matter. Further details about the present subject matter are found in the detailed description and appended claims. Other aspects of the disclosure will be apparent to persons skilled in the art upon reading and understanding the following detailed description and viewing the drawings that form a part thereof, each of which are not to be taken in a limiting sense. The scope of the present disclosure is defined by the appended claims and their legal equivalents.
Various embodiments are illustrated by way of example in the figures of the accompanying drawings. Such embodiments are demonstrative and not intended to be exhaustive or exclusive embodiments of the present subject matter.
The following detailed description of the present subject matter refers to the accompanying drawings which show, by way of illustration, specific aspects and embodiments in which the present subject matter may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the present subject matter. Other embodiments may be utilized and structural, logical, and electrical changes may be made without departing from the scope of the present subject matter. References to “an”, “one”, or “various” embodiments in this disclosure are not necessarily to the same embodiment, and such references contemplate more than one embodiment. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope is defined only by the appended claims, along with the full scope of legal equivalents to which such claims are entitled.
The present subject matter relates to extracting features from a sensed signal. A programmable timing window may be used to extract features from sensed signals. The sensed signals may be indicative of physiological activity such as may be produced by a variety of physiological sensors. By way of example and not limitation, the sensed physiological activity may include muscle activity or neural activity. Examples of neural activity may include, but are not limited to, neural activity in a brain activity, spinal cord and/or peripheral nerve(s). Sensing of neural activity is described herein as a more specific application of the subject matter. Those of ordinary skill in the art would understand, upon reading and comprehending this disclosure, how to apply the teachings herein toward other sensed signals. The sensed signals may be indicative of evoked compound action potentials (ECAPs), evoked resonant neural activity (ERNA), or local field potentials (LFPs)).
Feature(s) may be extracted from the sensed signal. However, the extracted feature may be corrupted if part of a stimulation artifact occurs inside the sensing time window, such as may happen after a stimulation parameter change (e.g., amplitude). Embodiments of the present subject matter automatically overcomes this potential issue. By way of an example and not limitation, when an extracted feature has a significant change, the present subject matter may use an automatic peak detection block to correlate its peak-detection finding with the extracted features. For example, the extracted feature may be a range (maximum-minimum). The maximum (or minimum) may be typically located within a range of samples (e.g., samples 32-37). After a stimulation amplitude adjustment, the maximum in the sensing window may make a significant move away from the typical locations (e.g. the maximum may move to sample 3). The CPU may be interrupted and the firmware may look at the automatic peak detected to see if there is a peak found close to the typical locations (e.g., samples 32-37). If there is a peak found close to the typical locations, then it can be determined that the peak found at sample 3 is an artifact. The sensing window may be tightened to avoid the maximum from the stimulation artifact by, for example, starting the sensing window at sample 5. If no peak is found close to the typical location, then the system can wait until the next stimulation period to reassess. This reassessment may continue when no peak is found until the system triggers storage of raw data (internal trigger), so the user can reassess if the features are operating correctly.
The modulation device 302 may include a controller 311 operably connected to the stimulation output circuit 308 and the sensing circuitry 310. The controller may include a stimulation control 312 configured for controlling the stimulator output circuit 308. For example, the stimulation control 312 may include start/stop information for the stimulation and/or may include relative timing information between stimulation channels. The stimulation control 312 may include waveform parameters that control the waveform characteristics of the waveform produced by the stimulation output circuit 308. The waveform parameters 313 may include, by way of example and not limitation, amplitude, frequency, and pulse width parameters. The waveform parameters may include, by way of example and not limitation, regular and./or irregular patterns of pulses. The waveform parameters may, but does not necessary, define more than one waveform shape. The stimulation control 312 may be configured to change waveform parameter(s) (e.g., one or more waveform parameters) in response to user input and/or automatically in response to feedback.
The controller 311 may include a signal sampler 314 configured for use to sample a signal produced by the sensing circuitry 310. The signal may be sampled within a sampling window. The controller 311 may further includes a sampling window definition 315 for defining timing of the sampling window, and a feature detector 316 configured to detect one or more features in the sampled signal. The timing of the sampling window after a pulse may be based on the timing of the pulse. For example, the pulse window may be timed to begin a programmable period of time after the pulse and last for a programmable period of time or end a programmable period of time after the pulse. Examples of features that may be detected include peaks (e.g., minimum and/or maximum peaks including local peaks/inflections), range between minimum/maximum peaks, local minima and/or local maxima, area under the curve (AUC), and curve length between points in the curve. Detected feature(s) from the feature detector 316 may be used as feedback for closed-loop control 317 of the therapy. The closed-loop control 317 may be used by the stimulation control 312 to adjust the stimulation (e.g., parameter(s)). In some embodiments, the modulation device 302 may include look-up table(s) 318 that include estimated timing values for various combinations of stimulation and sensing electrodes, as discussed below with respect to
The sampling window may be automatically defined based on an estimated conduction velocity for the evoked potentials and a distance between the stimulation electrode and the sensing electrode. For example, a lookup table may be used to define the sampling window. The lookup table may identify a start and an end of the sampling window for a selected stimulation electrode and a selected sensing electrode from a plurality of electrodes.
The sampling window may be automatically defined based on specific feature(s) associated with specific time(s) in the evoked responses. By way of example and not limitation, the specific feature(s) associated with specific time(s) may be, for a particular time window, one or more of an area under the curve, a curve length of the signal for the particular time window, a range (maximum minus minimum), oscillation frequency, or rate of decay in amplitude of peak(s), difference of any two positive and negative peak magnitudes, or change of any of the values for any of these features with respect to a baseline feature value.
Thus, the controller may automatically adjust the sampling window (e.g., starting earlier and/or later and/or ending earlier and/or later) during the course of the electrical therapy. The sampling window may be adjusted to avoid a stimulation artifact from interfering with detecting the at least one feature (e.g., at least one of a minimum or a maximum in the sensed evoked potentials or other feature). The controller may determine whether the at least one feature occurs before an expected period of time or a number of samples after the stimulation pulse and whether another feature occurs during the expected period of time or the number of samples after the stimulation pulse, and the controller may be configured to delay the beginning of the sampling window after the stimulation pulse.
The automatic adjustment can also be used to determine the initial placement of the sample window without the need for external user interaction. A look-up table based on estimated conduction velocities, stim-rec electrode distance/electrode design/inter-contact spacing, and artifact features may be used to preset the sampling window. For example, a look-up table may be based on distance to velocity conversion formula that accounts for lead spacing. The table may be configurable and/or lead specific. The windows may be based on time (e.g., time windows) or based on samples (e.g., sample windows). For example, time windows may be defined by v=d/t; t=v/d, where “v” is velocity, “d” is distance, “t” is time. The table can be created for a range of potential velocities (fastest/slowest). Sample windows may be defined by s=(time per sample*v)/d, where “s” is samples.
Conduction velocities may be pre-loaded or pre-configured. The windows may be then set according to these pre-established velocities. The conduction velocities may be pre-defined from external sources such as, but not limited to academic literature or cloud data and/or the conduction velocities may be pre-loaded as a default. The pre-loaded conduction velocities may be used to configure the look-up table. The look-up table itself may be pre-defined by lead type and contact separation. A fixed default window may be deployed in the absence of other information.
Thus, the controller may automatically define the sampling window based on an estimated conduction velocity for the evoked potentials and a distance between the stimulation electrode and the sensing electrode, and may use a lookup table to define the sampling window. The lookup table may identify a start and an end of the sampling window for a selected stimulation electrode and a selected sensing electrode from a plurality of electrodes.
By way of example and not limitation, the sampling window may be automatically defined based on specific feature(s) associated with specific time(s) in the evoked responses. By way of example and not limitation, the specific feature(s) associated with specific time(s) may be, for a particular time window, one or more of an area under the curve, a curve length of the signal for the particular time window, a range (maximum minus minimum), oscillation frequency, or rate of decay in amplitude of peak(s), difference of any two positive and negative peak magnitudes, or change of any of the values for any of these features with respect to a baseline feature value.
Optionally, an artifact exclusion interval may be added. Artifacts tend to be quasistatic with stimulation and will have fixed width following stimulation. For example, the exclusion interval may be based on the pulse width of a pulse and/or may be include an offset period of time. By way of a more specific example, the exclusion interval may be two times the pulse width summed with 200 μs for active recharge.
Physiological signals will likely exhibit propagation, showing an appreciable delay on multiple channels. A sampling window may be established based on the first set of corresponding peaks in the channels where such propagation is observed (e.g., 0.1 ms or the like).
Some embodiments may sense signals in more than two different sensing channels. In some embodiments, the use of additional sensing channels beyond two sensing channels may provide greater confidence of the expected propagation. For example, four sensing channels may be used to identify the expected propagation delay. In some embodiments, the use of additional sensing channels may enable other expected propagation delays to be identified. For example, some of the sensing channels (e.g., channels 0 and 1) may be used to identify an expected propagation delay and other ones of the sensing channels (e.g., channels 2 and 3) may be used to identify another, different expected propagation delay in the signal.
Some features, such as artifact features, may not display any latency at all between channels. That is, the feature does not just occur outside of the expected window, the feature may not change latencies at all across channels 1, 2, and beyond). Some embodiments may essentially eliminate any feature that does not exhibit any latency changes beyond a small variance (e.g., 1-2 samples) among multiple channels, particularly if the feature is outside of the window.
Some embodiments may implement an algorithm to provide an automated initial placement of the sample window. Similar to
The above detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are also referred to herein as “examples.” Such examples may include elements in addition to those shown or described. However, the present inventors also contemplate examples in which only those elements shown or described are provided. Moreover, the present inventors also contemplate examples using combinations or permutations of those elements shown or described.
Method examples described herein may be machine or computer-implemented at least in part. Some examples may include a computer-readable medium or machine-readable medium encoded with instructions operable to configure an electronic device to perform methods as described in the above examples. An implementation of such methods may include code, such as microcode, assembly language code, a higher-level language code, or the like. Such code may include computer readable instructions for performing various methods. The code may form portions of computer program products. Further, in an example, the code may be tangibly stored on one or more volatile, non-transitory, or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media may include, but are not limited to, hard disks, removable magnetic disks, removable optical disks (e.g., compact disks and digital video disks), magnetic cassettes, memory cards or sticks, random access memories (RAMs), read only memories (ROMs), and the like.
The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more aspects thereof) may be used in combination with each other. Other embodiments may be used, such as by one of ordinary skill in the art upon reviewing the above description. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
This application claims the benefit of U.S. Provisional Application No. 63/186,577, filed on May 10, 2021, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
63186577 | May 2021 | US |