Dynamic control of transcutaneous electrical nerve stimulation therapy using continuous sleep detection
11247040 · 2022-02-15
Assignee
Inventors
Cpc classification
A61N1/0476
HUMAN NECESSITIES
A61N1/36014
HUMAN NECESSITIES
A61N1/0456
HUMAN NECESSITIES
A61B5/0002
HUMAN NECESSITIES
A61N1/37247
HUMAN NECESSITIES
A61B5/4836
HUMAN NECESSITIES
A61B5/1121
HUMAN NECESSITIES
International classification
A61N1/372
HUMAN NECESSITIES
A61B5/11
HUMAN NECESSITIES
A61B5/00
HUMAN NECESSITIES
Abstract
Apparatus for providing transcutaneous electrical nerve stimulation (TENS) therapy to a user, said apparatus comprising: a housing; an application unit for providing mechanical coupling between the housing and the user's body; a stimulation unit for electrically stimulating at least one nerve of the user; a sensing unit for (i) sensing the user's body movement and body orientation to determine whether the user is in an “out-of-bed” state or a “rest-in-bed” state, and (ii) analyzing the sleep characteristics of the user during the “rest-in-bed” state; and a feedback unit for at least one of (i) providing the user with feedback in response to the analysis of the sleep characteristics of the user, and (ii) modifying the electrical stimulation provided to the user by the stimulation unit in response to the analysis of the sleep characteristics of the user; wherein the sleep characteristics comprise a likelihood measure of the user's sleep quality.
Claims
1. Apparatus for providing transcutaneous electrical nerve stimulation (TENS) therapy to a user, said apparatus comprising: a stimulation unit for electrically stimulating at least one nerve of the user; a sensing unit for (i) sensing body movement and body orientation of the user to determine whether the user is in an “out-of-bed” state or a “rest-in-bed” state, and (ii) analyzing body movement patterns of the user during said “rest-in-bed” state; an application unit for providing mechanical coupling between said sensing unit and the user's body; and a feedback unit for at least one of (i) providing the user with feedback in response to said analysis of said body movement patterns of the user, and (ii) modifying the electrical stimulation provided to the user by said stimulation unit in response to said analysis of said body movement patterns of the user; wherein said body movement patterns comprise a likelihood measure of the sleep quality of the user.
2. Apparatus according to claim 1 wherein said application unit is a flexible band.
3. Apparatus according to claim 1 wherein said application unit determines whether said sensing unit is mechanically coupled to the body of the user.
4. Apparatus according to claim 1 wherein the user is determined to be in said “out-of-bed” state when a body orientation angle exceeds a threshold.
5. Apparatus according to claim 1 wherein the user is determined to be in said “out-of-bed” state when a body movement pattern matches a pattern for walking.
6. Apparatus according to claim 1 wherein the user is determined to be in said “out-of-bed” state when a body orientation angle exceeds a threshold and when body movement pattern matches a pattern for stepping.
7. Apparatus according to claim 1 wherein said sensing unit uses data from an electromechanical sensor.
8. Apparatus according to claim 3 wherein the determination of whether said sensing unit is mechanically coupled to the body of the user determines the usability of the data from said sensing unit.
9. Apparatus according to claim 7 wherein said electromechanical sensor is an accelerometer.
10. Apparatus according to claim 7 wherein said electromechanical sensor is a gyroscope.
11. Apparatus according to claim 7 wherein said electromechanical sensor comprises both an accelerometer and a gyroscope.
12. Apparatus according to claim 7 wherein said sensing unit determines the body orientation angle of the user with an analysis unit operating on earth gravitational acceleration measurements from said electromechanical sensor.
13. Apparatus according to claim 7 wherein said sensing unit determines a movement pattern of the user with an analysis unit operating on said data from said electromechanical sensor.
14. Apparatus according to claim 13 wherein said movement pattern is determined to be a walking pattern when a processed feature of said data is determined to be stepping continuously for a period of time.
15. Apparatus according to claim 14 wherein said processed feature is determined to be a stepping pattern when filtered components of the data from said electromechanical sensor match a target temporal pattern.
16. Apparatus according to claim 1 wherein said body movement patterns for a time segment are determined based on at least one feature selected from the group consisting of (i) mean leg activity, (ii) mean leg elevation, (iii) leg rotation amount, and (iii) duration of the time segment.
17. Apparatus according to claim 16 wherein analyzing said body movement patterns comprises utilizing a Bayesian classifier to compare at least one feature to a predetermined classifier threshold.
18. Apparatus according to claim 17 wherein said predetermined classifier threshold is a function of the time elapsed from the onset of said “rest-in-bed” state.
19. Apparatus according to claim 17 wherein said predetermined classifier threshold is a function of the health profile of the user.
20. Apparatus according to claim 17 wherein said predetermined classifier threshold is a function of past body movement patterns of the user.
21. Apparatus according to claim 1 wherein said analysis of body movement patterns determines sleep quality for a time segment.
22. Apparatus according to claim 21 wherein said sleep quality of said time segment is determined to be “good” when the output of a Bayesian classifier exceeds a predetermined classifier threshold for said time segment.
23. Apparatus according to claim 22 wherein said sleep quality is determined to be fragmented when the percentage of “good” sleep over said time segment is below a predetermined threshold.
24. Apparatus according to 25 wherein said time segment is at least one hour.
25. Apparatus according to claim 22 wherein said feedback unit calculates the accumulated time during which sleep quality of the user is classified as “good”.
26. Apparatus according to claim 25 wherein said feedback unit is activated when the said accumulated time exceeds a predetermined threshold.
27. Apparatus according to claim 1 wherein said feedback unit provides feedback to the user via an alert delivered to the user through at least one selected from the group consisting of a smartphone and another connected device.
28. Apparatus according to claim 1 wherein said feedback unit provides feedback to the user in the form of mechanical vibrations provided to the user.
29. Apparatus according to claim 1 wherein said feedback unit provides feedback to the user in the form of electrical stimulation provided to the user.
30. Apparatus according to claim 23 wherein said feedback unit modifies said electrical stimulation provided to the user when said sleep quality is not fragmented.
31. Apparatus according to claim 30 wherein said electrical stimulation is modified to change stimulation intensity.
32. Apparatus according to claim 30 wherein said electrical stimulation is modified to change stimulation frequency.
33. Apparatus according to claim 30 wherein said electrical stimulation is modified to change the stimulation onset time.
34. Apparatus according to claim 33 wherein said stimulation onset time change is to postpone a scheduled stimulation start time.
35. A method for applying transcutaneous electrical nerve stimulation to a user, said method comprising the steps of: applying a stimulation unit and a sensing unit to the body of the user; using said stimulation unit to deliver electrical stimulation to the user so as to stimulate one or more nerves of the user; analyzing electromechanical sensing data collected by said sensing unit in order to (i) determine the body orientation of the user, and (ii) quantify body activity levels so as to determine whether the user is in an “out-of-bed” state, wherein the user is awake, or a “rest-in-bed” state, wherein the user is at rest or asleep, whereby to determine body activity patterns of the user during the “rest-in-bed” state; and modifying the electrical stimulation delivered by said stimulation unit based on said body activity patterns of the user during the “rest-in-bed” state.
36. Apparatus for providing transcutaneous electrical nerve stimulation (TENS) therapy to a user, said apparatus comprising: a stimulation unit for electrically stimulating at least one nerve of the user; and a sensing unit for (i) sensing the leg orientation and leg motion of the user to determine whether the user is in an “out-of-bed” state or a “rest-in-bed” state, wherein sensing the leg orientation of the user comprises determining the leg elevation and leg rotation of the user, and further wherein sensing the leg motion of the user comprises determining the net activity and leg movements of the user, and (ii) analyzing the leg motion patterns of the user during said “rest-in-bed” state; an application unit for providing mechanical coupling between said sensing unit and the leg of a user; and a controller for modulating said stimulation unit based on said determinations of leg motion patterns made by said sensing unit.
37. Apparatus for providing transcutaneous electrical nerve stimulation (TENS) therapy to a user, said apparatus comprising: a stimulation unit for electrically stimulating at least one nerve of the user; a sensing unit for (i) sensing the body movement and body orientation of the user to determine whether the user is in an “out-of-bed” state or a “rest-in-bed” state, and (ii) analyzing body movement patterns of the user during said “rest-in-bed” state; an application unit for providing mechanical coupling between said sensing unit and the user's body; and a feedback unit for at least one of (1) providing the user with feedback in response to said analysis of said body movement patterns of the user, and (ii) modifying the electrical stimulation provided to the user by said stimulation unit in response to said analysis of said body movement patterns of the user.
38. Apparatus according to claim 37 wherein said body movement patterns relate to periodic leg movement disorder.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) These and other objects and features of the present invention will be more fully disclosed or rendered obvious by the following detailed description of the preferred embodiments of the invention, which is to be considered together with the accompanying drawings wherein like numbers refer to like parts, and further wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
The Novel TENS Device in General
(15)
(16) TENS device 100 is shown in greater detail in
(17) A temperature sensor 107 (
(18) Still looking now at
(19) The preferred embodiment of the present invention is designed to be worn on the upper calf 140 of the user as shown in
(20)
(21) Further details regarding the construction and use of the foregoing aspects of TENS device 100 are disclosed in (i) U.S. Pat. No. 8,948,876, issued Feb. 3, 2015 to NeuroMetrix, Inc. and Shai N. Gozani et al. for APPARATUS AND METHOD FOR RELIEVING PAIN USING TRANSCUTANEOUS ELECTRICAL NERVE STIMULATION, which patent is hereby incorporated herein by reference, and (ii) prior U.S. patent application Ser. No. 14/230,648, filed Mar. 31, 2014 by Shai N. Gozani et al. for DETECTING CUTANEOUS “ELECTRODE PEELING” USING ELECTRODE-SKIN IMPEDANCE, issued as U.S. Pat. No. 9,474,898 on Oct. 25, 2016, which patent is hereby incorporated herein by reference.
The User State Detector
(22) In accordance with the present invention, TENS device 100 further comprises (e.g., within compartment 102) user state detector 500 for (i) determining the sleep-wake state of the user (i.e., for determining whether a user is in an “out-of-bed” state or a “rest-in-bed” state), (ii) analyzing the sleep of the user, and/or (iii) providing enhanced transcutaneous electrical nerve stimulation (TENS) using the same. To this end, and looking now at
(23) When the TENS device is secured in position on the user's upper calf, the position and orientation of accelerometer 152 and gyroscope 163 (
(24) Data from accelerometer 152 and gyroscope 163 are analyzed in real time by processor 515 of user state detector 500 to determine the orientation and motion of the lower limb (i.e., upper calf 140) of the user. The orientation, motion, and activity level of the lower limb (i.e., upper calf 140) of the user, determined by analyzing the data from accelerometer 152 and/or gyroscope 163 (or a combination of data from both accelerometer 152 and gyroscope 163), are used to determine the sleep-wake state, sleep patterns, and sleep characteristics of the user. Based on the sleep-wake state, sleep patterns, and sleep characteristics of the user, TENS device 100 can modify its stimulation pattern (such as the stimulation intensity level and the onset of the stimulation) via controller 520, or provide the user with additional feedback (such as mechanical vibration if the duration of the sleep-on-back state exceeds a threshold), or postpone the preprogrammed auto-start of the next TENS therapy session (e.g., if the user is determined to be in a state of “sound sleep” or “sleep without fragmentation”). In another form of this invention, data from gyroscope 163 are used to determine leg orientation and motion, particularly rotational motion, in order to determine the sleep pattern and/or sleep characteristics of the user.
(25) The leg orientation and leg motion components measured by the user state detector 500 of the present invention may individually or collectively contribute to the determination of the sleep-wake state and/or sleep characteristics of the user. In one preferred form of the invention, processor 515 of TENS device 100 measures the calf orientation of the user, which is highly correlated with the body orientation of the user. More particularly, upright body orientation is generally a reliable indicator that the user is in a wake state, while recumbent orientation suggests a resting state (e.g., such as occurs during a sleep or “rest-in-bed” state). Regular and robust body movement is more likely the result of user activities during the daytime (e.g., walking during an “out-of-bed” or “wake” state), while quiet or low-level spontaneous movements are more likely during nighttime (e.g., spontaneous leg movement during a “rest-in-bed” or “sleep” state). Interactions of body orientation and movement level can also be useful in identifying the sleep-wake state of the user (i.e., thereby enhancing a sleep-wake state classification). Specifically, recumbent body orientation and a low-level of physical activity is generally a good indicator that the user is asleep, while a consistent and repeated movement of the user's leg while in an upright orientation is a reliable indicator that the user is out of bed (i.e., in a “wake” state).
(26) In addition, real-time clock 505 of user state detector 500 allows assigning a nontrivial a priori probability of the sleep-wake state at any given time of the day in order to further refine the sleep-wake state classification results obtained by the aforementioned analysis of leg orientation and leg motion data (i.e., a user is more likely to be asleep at 3:00 am and less likely to be asleep at 4:00 pm). In a preferred embodiment of the present invention, to reflect that the a priori probability that the sleep state is low at a specific daytime window (even when the activity and orientation data suggest that the user is in “rest-in-bed” state), the threshold value for classifying user body orientation as recumbent can be made more stringent.
(27) In another embodiment of the present invention, output from ambient light sensor 510 is used to improve sleep-wake classification results. The ambient light sensor 510 can be used to determine if the user is in an environment which has an illuminated or non-illuminated ambience, to reflect the a priori probability that a user is more likely to be sleeping in a dark setting than in a brightly lit setting. Accordingly, the threshold values for classifying user body position and motion level can be adjusted to reflect the a priori probability of sleep.
(28) In another embodiment of the present invention, output from body temperature sensor 107 is used to improve sleep pattern classification results. It has been recognized that body temperature fluctuates with different sleep stages. In particular, body temperature tends to drop after the onset of sleep (i.e., “stage 2” of sleep, when a user is no longer conscious of their surroundings). Incorporating a skin temperature measurement into the sleep monitoring function of TENS device 100 improves the accuracy of the classification of sleep stages and determination of sleep quality made by TENS device 100 (i.e., by processor 515 of TENS device 100).
On-Skin Detector
(29) In one preferred form of the invention, TENS device 100 may comprise an on-skin detector to confirm that TENS device 100 is firmly seated on the skin of the user.
(30) More particularly, the orientation and motion measures from accelerometer 152 and/or gyroscope 163 of TENS device 100 only become coupled with the orientation and motion of a user when the TENS device is worn by the user. In a preferred embodiment, an on-skin detector 521 is provided to determine whether and when TENS device 100 is securely placed on the user's upper calf. In the preferred embodiment, and looking now at
(31) On-skin detector 521 is preferably employed in two ways.
(32) First, if on-skin detector 521 indicates that electrode array 120 of TENS device 100 has become partially or fully detached from the skin of the user, TENS device 100 can stop applying TENS therapy to the user.
(33) Second, if on-skin detector 521 indicates that electrode array 120 of TENS device 100 has become partially or fully detached from the skin of the user, processor 515 of TENS device 100 will recognize that the data from accelerometer 152 and/or gyroscope 163 may not reliably reflect user leg orientation and leg motion, and user state detector 500 can take appropriate action (e.g., alert the user). In this respect it should be appreciated that, when the on-skin detector 521 indicates that TENS device 100 is on the skin of the user, and accelerometer 152 and/or gyroscope 163 is closely coupled to the lower limb of the user, the data from accelerometer 152 and/or gyroscope 163 may be representative of user leg orientation and user leg motion. However, when the on-skin detector 521 indicates that TENS device 100 is not on the skin of the user, accelerometer 152 and/or gyroscope 163 is not closely coupled to the lower limb of the user, and the data from accelerometer 152 and/or gyroscope 163 will not be representative of user leg orientation and user leg motion.
Electromechanical Sensor Data Processing
(34) In one preferred form of the invention, user state detector 500 comprises a processor 515 for taking the accelerometer data from accelerometer 152 and calculating user activity (e.g., body orientation, body movement and activity levels). In another form of the invention, data from gyroscope 163 are used by processor 515 to calculate user activity. In another form of the invention, data from both accelerometer 152 and gyroscope 163 are combined and used by processor 515 in order to calculate user activity and body orientation, especially transitions in body orientation from one position to another position.
(35) More particularly, in one preferred form of the invention, processor 515 uses the accelerometer data from accelerometer 152 and/or data from gyroscope 163 to measure the user's leg orientation, which is highly correlated with body orientation and therefore indicative of the user's recumbent state (and therefore the user's “rest-in-bed” state); and processor 515 uses the accelerometer data from accelerometer 152 to measure the user's leg motion, which is also indicative of the user's sleep-wake state and leg motion activity levels; and processor 515 uses the determinations of user leg orientation and user leg motion to enhance sleep characterization accuracy.
(36) More particularly, processor 515 uses the accelerometer data from accelerometer 152 to measure two distinct aspects of the user's leg orientation: leg “elevation” (or the angle of the lower leg relative to the horizontal plane), and leg “rotation” (or the angle of rotation of the lower leg about its own axis). Measurement data provided to processor 515 from gyroscope 163 are especially useful in detecting and quantifying angular rotation of the user's leg about the axis of the user's leg.
(37) And processor 515 uses the accelerometer data from accelerometer 152 to measure two distinct aspects of leg motion: “net activity” (which is the magnitude of movement-related acceleration averaged within one-minute windows), and “leg movements” (or brief events that are known to occur in sleep but are not evident in net activity). Some leg movements accompanied by a large leg rotation may be further classified as “body roll events” (such as occur when rolling over in bed).
(38) Raw Data Stream at 50 Hz and 10 Hz.
(39) In a preferred embodiment of the present invention, processor 515 for calculating user activity (e.g., body orientation, body movement and activity levels) is constructed and configured to operate as follows. Raw accelerometer data produced at 400 Hz are decimated to 50 Hz. Following that, the time scale of an “instant” is defined to be equal to 0.1 sec. The 50 Hz data on each axis (x, y, z) are separately averaged over each instant, to provide a low-noise data stream at 10 Hz, denoted by A.sub.x(t), A.sub.y(t), and A.sub.z(t).
(40) Orientation Data Stream.
(41) The accelerometer data A.sub.x(t), A.sub.y(t), and A.sub.z(t) are used to form features which are averages of A.sub.x(t), A.sub.y(t), and A.sub.z(t) over a longer time window (e.g., a one minute window) to capture the steady-state projection of earth gravity along each axis (x, y, z). These features are used for detecting leg orientation (i.e., leg elevation and leg rotation).
(42) Activity Data Stream.
(43) Additionally, the accelerometer data A.sub.x(t), A.sub.y(t), and A.sub.z(t) are high-pass filtered to remove the static gravity component in order to isolate acceleration components caused by leg movement. The high-pass filter has −3 dB point at 0.5 Hz. High-pass filtered accelerometer data are denoted as Ã.sub.x(t), Ã.sub.y(t), and Ã.sub.z(t).
(44) Data from the gyroscope 163 are processed similarly to produce data streams with difference sampling rates.
Leg Elevation Detection
(45) In one preferred form of the invention, user state detector 500 is configured to detect leg elevation.
(46) More particularly, in order to determine the “body orientation state” for the purpose of sleep monitoring, the present invention uses the leg elevation, which is computed by processor 515 of user state detector 500, based on measurement data from accelerometer 152 and/or gyroscope 163 when TENS device 100 is placed on the user's upper calf 140 (
(47) A stationary upright user, or one sitting with feet resting on the ground, will have an upright calf elevation. Consequently, the y-axis acceleration of accelerometer 152 will have a value of about −1 g due to Earth gravity 154 (
(48) Looking now at
(49) In general, the acceleration measured along the y-axis will include not only the projection of gravity onto that axis, but also a contribution from motion:
A.sub.y(t)=±sin|θ(t)|+m(t) [in unit of g]
where t is time, and m(t) is the contribution due to leg motion. The specific ±sign depends upon the TENS device placement on upper calf 140 and is fixed for each placement. The motion component m(t) is considered “noise” in the context of determining leg elevation, and will have zero mean over a sufficiently large window.
(50) In a preferred embodiment, a leg elevation algorithm, taking into account user body movement, is implemented by processor 515 of user state detector 500 (i.e., to determine whether the user is in an “out-of-bed” state when the user is upright or whether the user is in a “rest-in-bed” state when the user is recumbent) in the following manner.
(51) Step 1. Set a target angle threshold θ.sub.0 (this is the “Threshold1” shown at step 910 in
(52) Step 2. Define non-overlapping windows of length N, called “epochs”. The time at the end of each epoch is denoted T. In a preferred embodiment, the accelerometer data (in units of g, standard earth gravity) are segmented into epochs, i.e., one-minute windows. With an accelerometer data rate of 10 Hz, the epoch length is N=600. The mean A.sub.y,T and the standard error of the mean SE.sub.Y,T are calculated based on samples in each epoch.
(53) Step 3. Let θ.sub.T=sin.sup.−1A.sub.y,T. Values of θ.sub.T≈θ.sub.0 can lead to erratic switching of the leg elevation state. In order to reduce this, define a hysteresis band θ.sub.0±θ.sub.H. In the preferred embodiment, the hysteresis parameter θ.sub.H is set to 2.5°, but other values are possible (but should be small compared to θ.sub.0). In the preferred embodiment, rather than computing sin.sup.−1 for every epoch, the angular thresholds are instead converted to acceleration units, i.e., by computing two thresholds A.sub.±=sin(θ.sub.0±θ.sub.H), against which A.sub.y,T will be compared.
(54) Step 4. The ability of the hysteresis band to prevent erratic switching of the leg elevation state depends upon the amount of noise in the data, characterized by SE.sub.Y,T, which is the standard error of the mean A.sub.y,T. In order to account for the noise level in the data, processor 515 of user state (i.e., leg orientation and leg motion) detector 500, processor 515 compares the acceleration data A.sub.y,T to the thresholds A.sub.±. However, instead of comparing the mean A.sub.y,T per se to the thresholds A.sub.±, processor 515 compares the “confidence interval” A.sub.y,T±ηSE.sub.Y,T to the thresholds A.sub.±. More specifically, for each epoch, if the prior elevation state was recumbent, in order to classify the next state as upright, processor 515 of user state detector 500 requires [|A.sub.y,T|−ηSE.sub.Y,T]>A.sub.+. If the prior elevation state was upright, in order to classify the next state as recumbent, processor 515 of user state detector 500 requires [|A.sub.y,T|+ηSE.sub.Y,T]<A.sub.−. In a preferred embodiment η=3, but other values are possible.
(55) It should be appreciated that the hysteresis band is helpful as described above, but in another form of the invention the hysteresis band is omitted, which is the same as setting its band θ.sub.H to 0°.
Instantaneous Activity
(56) In one preferred form of the invention, processor 515 of user state detector 500 may be configured to detect instantaneous activity.
(57) More particularly, when TENS device 100 is worn on the user's upper calf 140, the user's activity will be captured by accelerometer 152 of the TENS device. Each axis (x, y, z) of accelerometer 152 measures the projection of the acceleration vector along that axis. As described above, the measured acceleration includes the static effect of earth gravity, as well as contributions from leg movement. In order to isolate the contributions from leg movement, processor 515 of user state (i.e., leg orientation and leg motion) detector 500 high-pass filters the instant data vector A(t)=[A.sub.x(t),A.sub.y(t),A.sub.z(t)] before further processing.
(58) Although the acceleration component for each individual axis of the accelerometer contains unique and useful information for body movement analysis, the vector magnitude of acceleration, called the “instantaneous acceleration”, denoted Ã.sub.I(t) and defined in equation below, is commonly used to quantify the overall motion-related activity:
(59)
In a preferred embodiment of the present invention, processor 515 of user state detector 500 uses this instantaneous acceleration Ã.sub.I(t) for the actigraphy calculations. However, calculations based on other combinations of acceleration axes may also be used. For example, rather than combining all three axes equally as done with Ã.sub.I(t) as defined above, only some axes may be used, or certain axes may be contrasted through subtraction.
(60) In another form of the invention, the y-axis acceleration data A.sub.y(t) is analyzed to detect periodic patterns of movement that match walking activity patterns in order to determine if the user is walking. In yet another form of the invention, data from gyroscope 163 (instead of, or in addition to, data from accelerometer 152) are used to detect periodic patterns of movement that match walking activity patterns in order to determine if the user is walking, since the angular rotation of the user's leg with respect to the user's knee joint generally follows a periodic pattern when the user is walking.
Leg Movement Detector
(61) In one preferred form of the invention, processor 515 of user state detector 500 may be configured to detect leg movement which is more likely to occur during sleep when the user is determined to be in a “rest-in-bed” state.
(62) More particularly, the instantaneous acceleration Ã.sub.I(t) is a time series comprised of brief events, such as leg movements known to occur during normal and abnormal sleep, and sustained activity, such as occurs during walking, running, or climbing stairs. In a preferred embodiment, leg movements (LM) are computed in a manner that is consistent with the detection of periodic leg movements (PLM) defined in the clinical literature (Bonnet et al, 1993; Zucconi et al, 2006), however, other approaches to detecting brief leg movements are possible and are considered to be within the scope of the present invention.
(63) In the preferred embodiment, a leg movement (LM) detection algorithm is implemented by processor 515 of user state detector 500 in the following manner.
(64) Step 1. Define two thresholds (these are the “Threshold2” and “Threshold3” shown at steps 914 and 918, respectively, in
(65) Step 2. Define an instantaneous activity state (IAS) and initialize the IAS to False.
(66) Step 3. Compute instantaneous acceleration Ã.sub.I(t) for each time instant.
(67) Step 3. Update the IAS for each time instant as follows. If IAS=False and Ã.sub.I(t)>0.03 g, then set IAS=True. If IAS=True and Ã.sub.I(t)<0.02 g, then set IAS=False. Two thresholds used in this way implement hysteresis in a simple way to prevent rapid switching in the IAS.
(68) Step 4. When IAS becomes True, a leg movement (LM) period begins. When IAS becomes false and remains false for more than 0.5 second, the LM period ends. Thus a contiguous time interval in which IAS=True, and surrounded by intervals in which IAS=False, comprises a leg movement (LM) period. However, if contiguous intervals for which IAS is True are separated by less than 0.5 second, the brief interval for which IAS was False is ignored.
(69) The top panel (810) in
Body Roll Detector
(70) In one preferred form of the invention, processor 515 of user state detector 500 is configured to function as a body roll detector when TENS device 100 determines that the user is in a “rest-in-bed” state.
(71) More particularly, when the TENS device 100 (
β=180−α−φ
Because the angle α is fixed, the leg rotation angle β can be derived from the angle φ as measured by the accelerometer 152.
(72) Some brief increases in activity that are classified as leg movement (LM) are associated with large changes in the rotational angle φ measured by the TENS device 100. Rolls of sufficient magnitude are unlikely to involve only the leg, but rather are likely to indicate that the entire body is rolling over while in bed, e.g., from the left side to the right side, or from the back to the left side or the right side. Some leg movements (LMs) may therefore be classified as “body roll events”.
(73) In one preferred embodiment, a body roll detection algorithm is implemented by processor 515 in user state detector 500, using only the angle change Δφ, in the following manner:
(74) Step 1. For each LM period detected, select the raw acceleration vector A(t) in short windows before and after the leg movement. In a present invention, this window is an instant (0.1 seconds).
(75) Step 2. Before and after each LM period, take the instant values of A(t) (not high-pass filtered) on each axis separately so as to obtain A.sub.x(t), A.sub.y(t), and A.sub.z(t).
(76) Step 3. Using these values before and after the LM, compute the rotation angle φ(t)=a tan 2{A.sub.x(t), A.sub.z(t)}. The inverse tangent function a tan 2 returns an angle in the range−180°<φ(t)≤180°, i.e., a result in all four possible quadrants.
(77) Step 4. Compute the change in rotational angle Δφ=φ.sub.after−φ.sub.before. In order to facilitate comparison with a threshold (this is the “Threshold4” shown at step 924 in
(78) Step 5. Compare the absolute value |Δφ| with a threshold value. In the present invention, this threshold value is 50°, but other values may be used. If |Δφ|>50°, then classify the LM event as a “body roll event”.
(79) The middle panel (820) in
(80) The bottom panel (830) of
(81) These body rolls may be reported directly to the user to inform them about their sleep patterns. In addition, because body roll events may be brief, the associated increase in activity may not be evident in the epoch average of activity, and therefore may not cause that epoch to be classified as awake. Although rolling over in bed may not indicate an awake state, it does indicate momentarily restless sleep. This novel approach for detecting body rolls by evaluating changes in roll angles associated with brief leg movement (LM) permits the differentiation of leg movement associated with no body rolls from leg movement associated with body rolls, and thus provides a finer description of sleep patterns that are useful to the user and their healthcare providers.
(82) In another preferred embodiment, rather than using single instants of A(t) before and after the LM to compute the angles φ, the mean or median values of A(t) over several instants before and after the LM are used to improve robustness to noise.
(83) In another preferred embodiment, a body roll detection algorithm is implemented by processor 515 of user state detector 500 using the angle change Δβ in the following manner. Consider a person lying on their back, with the TENS device placed on their right leg. Recalling that, with the TENS device placed on either leg, β=0 when the toes are pointed vertically upward, and β increases with counterclockwise (CCW) rotation, therefore the most likely range of leg rotational positions is −80°≤β≤0°. Any change in angle Δβ that remains within that range may not likely be associated with a body roll. In contrast, a change in angle Δβ from inside that range to outside that range is most likely associated with a body roll. In this way, using the change in angle Δβ, the threshold for detecting a body roll may be adjusted depending upon the leg on which the device is placed. That is to say, in addition to the magnitude of the change Δβ, the value of the leg rotation angle β before and after the leg movement (LM), and the sign of the angle change Δβ across the leg movement (LM), may be used to improve performance of the body roll detector.
(84) While analyses of accelerometer data based on earth gravity projection provide the steady state value of the rotational angles, it should be appreciated that gyroscope measurements (i.e., data from gyroscope 163) capture transient rotational activities such as angular acceleration and angular velocity. Processing of angular velocity data of the leg (e.g., via processor 515 of user state detector 500 of TENS device 100) allows changes in the leg rotation angle β to be directly determined. In one preferred form of the invention, rotational angle changes derived from measurements (i.e., data) collected by gyroscope 163 can be used to detect and quantify a user's leg rotation events. In another form of the invention, data from accelerometer 152 and data from gyroscope 163 are combined together and processed by processor 515 of user state detector 500 of TENS device 100 in order to improve the performance of the body roll detector.
Static Body Rotational Position Detector
(85) In one preferred form of the invention, processor 515 of user state detector 500 may be configured to function as a static body rotational position detector.
(86) More particularly, users with sleep apnea are recommended to sleep not on their back.
(87) Because of the limited rotational range of motion of the human hip, leg rotational position is highly correlated with body position, e.g., when sleeping on one's back, the toes of either foot are pointed upward above the horizontal plane to varying degrees, not likely exactly on the horizontal plane, and never below the horizontal plane. This observation, together with the placement of the novel TENS device on the upper calf of the user, allows an innovative addition to sleep analysis.
(88) The time scale of an “epoch” equal to one minute, and the epoch-averaged non-high-pass filtered acceleration values Ā.sub.X,T(t), Ā.sub.Y,T(t), and Ā.sub.Z,T(t) were introduced above in the section entitled “Leg Elevation Detection”. Because it is sufficient to report the time spent sleeping on the back at the resolution of one minute, these epoch-averaged acceleration values may be advantageously used in the following manner to detect static body rotational position.
(89) Consistent with the roll detector definition of the rotational position angle φ, let φ.sub.T=a tan 2{Ā.sub.X,T(t), Ā.sub.Z,T (t)} as before, where Ā.sub.X,T(t) and Ā.sub.Z,T(t) are raw (i.e., not high-pass filtered) accelerations averaged over an epoch T. Let β.sub.T=the angle of the toes relative to the vertical. The relation between φ.sub.T and β.sub.T depends upon the rotational placement of the TENS device on the upper calf of the user, denoted a. Because the electrode gel 444 is sticky and the strap 110 is supportive, the TENS device does not move on the user's leg once it is placed onto the upper calf 140, therefore the angle α is constant as long as the TENS device is on the leg of the user.
(90) Looking now at
(91) In a preferred embodiment, the following simple procedure is used by processor 515 of user state detector 500 to determine whether the user is on-back through an estimation of the angle β when the user is in a “rest-in-bed” state.
(92) Step 1. The user places the TENS device on the lower leg of the user and fastens the strap 110 snugly around their upper calf 140, lies recumbent with the leg nearly horizontal, points their toes vertically upward, and remains still.
(93) Step 2. The user indicates to the TENS device that the aforementioned conditions have been met. This indication may take the form of a series of button presses (e.g., with button 106), a series of taps on compartment 102 detected by the accelerometer 152, or an indication on a smartphone 860 in communication with the TENS device 100.
(94) Step 3: With the toes pointed upright, β≈0, therefore it is trivial to estimate {circumflex over (α)}=180−{circumflex over (φ)} where
(95) Step 4: In every epoch ending at time T, use this value of {circumflex over (α)} to compute β.sub.T=180−{circumflex over (α)}−φ.sub.T. In order to facilitate comparisons with a threshold, put this difference in the range −180°<β.sub.T≤180°, i.e., if β.sub.T>180° then subtract 360°, but if β.sub.T≤−180° then add 360°.
(96) Step 5: Define a range of values for β.sub.T that correspond to the user lying or sleeping on their back. In a preferred embodiment, classify every epoch for which −80°<β.sub.T<80° as “on-back”. This range is symmetrical so the algorithm works for placement on either leg. Avoiding ±90° by 10° excludes the values likely to be encountered when a user lies or sleeps on their side. In another preferred embodiment, the thresholds (which would reside at step 930 in
(97) Step 6: If the user with sleep apnea selects this option for TENS device 100, then when the user is determined to be asleep, i.e., recumbent with low activity, the TENS device notifies the user if they are on their back for more than some set amount of time, e.g., a few minutes. This indication can be in the form of a vibration of the TENS device itself, or an alarm on their smartphone 860, for example.
(98) Step 7: After determining the span(s) of minutes in which the user was likely to be asleep, i.e., recumbent with low activity, determine the fraction of minutes in which the user was determined to be on their back. Report this percentage to this user, e.g., with smartphone 860.
“Out-Of-Bed” (OOB) Detector
(99) In one preferred embodiment of the present invention, the 3-axis directions of the accelerometer 152 are known and are fixed in relationship to the lower leg when TENS device 100 is placed on the upper calf 140 of a user: the y-axis is aligned longitudinally along the longitudinal axis of the lower leg of the user; the x-axis is disposed tangential to the surface of the lower leg of the user and perpendicular to the y-axis, and the z-axis points radially away from the surface of the lower leg of the user. Looking now at
(100) Using the orientation data stream, each one-minute epoch is classified as “upright” (i.e., 630 and 631 in
Sleep Detector
(101) Intervals between “out-of-bed” (OOB) events are classified as “rest-in-bed” or “sleep segments” 650. It is understood that a user may not be asleep in each of these “rest-in-bed” or “sleep segments” 650, and the term “sleep segment” implies only that the segments detected by accelerometer 152 will be analyzed (i.e., by processor 515 of user state detector 500 of TENS device 100) in order to determine whether the user is asleep. In the preferred embodiment, each sleep segment 650 is characterized by three basic features: mean activity A, mean elevation θ, and duration D. It should be appreciated that including a lesser number of features (or a greater number of features) is considered to fall within the scope of the present invention. By way of example but not limitation, other possible features include additional measures of activity within a segment (e.g., brief leg movement), measures of changes in leg elevation θ within a segment, and the duration of “out-of-bed” (OOB) events before and/or after a segment.
(102) These features of a given sleep segment 650, which are determined by processor 515 using data from accelerometer 152 and/or gyroscope 163, are passed to a classifier 655 (
(103) The feature target range(s) and classifier threshold value(s) can be applicable to all users, or tailored to selected group of users, or specific to an individual user, or a combination thereof. For a given user, the feature target range(s) and classifier threshold values may start out (i.e., be preprogrammed) as population default values. These population default values can be updated based on specific indications by the user (e.g., “I am a light sleeper”). Finally, the values can be further refined based on actual user sleep behavior previously measured by TENS device 100 (e.g., a particular user's likely time of day for sleep calculation is modified by the user's prior history of sleep onset time).
(104) A sleep session 660 is a contiguous time interval during which the user is in bed for sleeping. In theory, a given sleep session 660 corresponds to the standard clinical definition of “time in bed”. In practice, a given sleep session 660 it is detected as a series of sleep segments for which the starting and ending segments have K>K.sub.th. This definition allows a given sleep session 660 to include some “out-of-bed” (OOB) events as may normally occur during the night, and two “out-of-bed” (OOB) events may be separated by a brief sleep segment, with K<K.sub.th. In addition, because users may watch television or read with their leg(s) elevated, and users may be resting before bed (but not asleep), some sleep segments at the beginning of the night may have K>K.sub.th, however, the corresponding K values will typically be lower than those of sleep segments later in the night which are more clearly sleep. In one preferred form of the invention, there are logical conditions which need to be met in order to start a sleep session 660 which excludes those sleep segments corresponding to reading or watching television in bed; this can be accomplished by examining the history and trend of the K values recorded and analyzed by TENS device 100. By way of example but not limitation, a given sleep session 660 starts with the first sleep segment having a more stringent requirement of K>0.75, and ends when an “out-of-bed” (OOB) event is detected which lasts more than 15 minutes, with the additional condition that the last sleep segment included must have K>K.sub.th. Other logical schemes and values for these parameters for the first sleep segment, the last sleep segment and intermediate sleep segments are possible and fall within the scope of the present invention.
(105) Some users may have one (or more) long “out-of-bed” (OOB) event(s) during a given sleep session 660 (i.e., during the night while the user is sleeping) which results in TENS device 100 registering two or more sleep sessions 660. In one preferred form of the invention, there are logical conditions which may be applied in order to merge the data for multiple sleep sessions 660. By way of example but not limitation, two sleep sessions 660 lasting at least 3 hours each and separated by an “out-of-bed” (OOB) event lasting less than 1 hour may be merged together to form one sleep session 660 in which the intervening “out-of-bed”(OOB) event is classified as “awake”. After the total (i.e., the merged) sleep session 660 is defined, sleep metrics are computed by TENS device 100 (e.g., by aforementioned processor 515 of user state detector 500 of TENS device 100) and reported to the user.
Real-Time Estimation of Sleep Probability
(106) In order to control the stimulation delivered by TENS device 100 to a user in real-time during a sleep session 660, the TENS device 100 uses the information available for each minute (i.e., each epoch) to estimate the probability that the user is sleeping, P(Sleep). In one embodiment, sleep probability (i.e., P(Sleep)) as a function of time depends on the same three features used to assign a K value to a sleep segment as described above (i.e., mean activity A, mean elevation θ, and duration D). Because P(Sleep) depends in part upon the duration of a particular sleep segment, P(Sleep) increases gradually following an “out-of-bed” (OOB) event. P(Sleep) increases with time more quickly if TENS device 100 measures a lower mean activity level A and a mean elevation θ value closer to zero.
(107)
Real-Time Control of Stimulation Level
(108) In one preferred form of the invention, a flag (i.e., a variable) called “AsleepForStim” is defined to indicate the real-time sleep state of the user in order to control the stimulation intensity (e.g., a flag “AsleepForStim” is set by the software running on processor 515 of TENS device 100). Following an “out-of-bed” (OOB) event, for each minute (i.e., epoch), the TENS device 100 computes P(Sleep). When P(Sleep)>0.5, the AsleepForStim flag is set “true”. The AsleepForStim flag remains “true” until an “out-of-bed” (OOB) event is detected and has lasted for at least 15 minutes, then the AsleepForStim flag is set “false”. Consequently, the AsleepForStim flag will generally be “true” throughout a given sleep session 660, including any brief “out-of-bed” (OOB) events during a given night (i.e., a given sleep session).
(109) When stimulation is scheduled to start, TENS device 100 checks the value of the AsleepForStim flag (i.e., to determine whether the flag is set to “true” or “false”). If the AsleepForStim flag is “false”, then the stimulation level will be unchanged. If AsleepForStim flag is “true”, the stimulation level will be reduced (unless the user chooses to disable this adaptive stimulation feature of TENS device 100).
(110) Furthermore, if the AsleepForStim flag is “true” and the user enables the adaptive therapy onset mode (i.e., enables TENS device 100 to deliver adaptive stimulation depending upon user wake/sleep state), scheduled onset time for next therapy may be postponed based on a real-time measure of sleep quality called “sleep fragmentation”, as will hereinafter be discussed in further detail.
Real-Time Calculation of Sleep Fragmentation
(111) Sleep fragmentation refers to brief arousals or awakenings that disrupt the normal sleep architecture, and often occurs often in people experiencing chronic pain. The present invention provides the user with the option to start therapy during sleep only when sleep is fragmented. This option balances the goals of using TENS device 100 to reduce pain and improve sleep, while minimizing the possibility that the sensation of stimulation may itself disturb sleep.
(112) In one preferred form of the invention, when stimulation is scheduled to start, the TENS device 100 checks the value of the flag for AsleepForStim. If the flag for AsleepForStim is “true” and if TENS device 100 has been on the user's skin for at least an hour (i.e., electrode array 120 of TENS device 100 has been in contact with the user's skin for at least an hour), processor 515 of TENS device 100 determines a value for a flag called “SleepFragmented” in the prior hour. If the SleepFragmented flag is determined to be “false”, i.e., if sleep is very restful, then onset of stimulation is postponed. TENS device 100 then checks the flag for SleepFragmented status every 5 minutes. When either the flag for AsleepForStim is “false” (i.e., the user is awake), or the flag for SleepFragmented is “true” (i.e., sleep is no longer restful), stimulation by TENS device 100 is permitted to start. In this way, stimulation is delivered by TENS device 100 only as needed.
(113) During a given sleep session 660, a user is considered to be awake if the user is either “out-of-bed” (OOB), or if the user's mean activity in a one-minute epoch A>0.01. A more sensitive measure of brief arousals available from accelerometer data is leg movements (LM), computed using the 10 Hz activity stream, in which the effect of gravity has been removed. A leg movement (LM) is defined as an event in which the activity detected by TENS device 100 exceeds a predetermined threshold A2 and then falls below a predetermined threshold A1. In one preferred form of the invention, the predetermined thresholds are A1=0.02, A2=0.03, and there are no limits on its duration. In practice, active epochs usually contain numerous events that meet this definition of leg movement (LM), so epochs with one or more leg movement (LM) events normally include awake epochs as well as epochs with brief arousals. In a preferred embodiment, the aforementioned Boolean flag called SleepFragmented is “true” if and only if, in the last hour, the fraction of epochs with one or more leg movement (LM) is greater than 40%. Other definitions of sleep fragmentation and values of these parameters are possible and considered to fall within the scope of the present invention. In addition, these values may be set by TENS device 100, or these values may be modified by the user.
(114)
(115) The sleep probability trace 693 is also shown in
(116) The onset of the scheduled therapy session 682 which would have occurred at the 240.sup.th minute is delayed to the 360.sup.th minute. Specifically, for each minute (i.e., epoch) when a therapy session was scheduled to start (i.e., at the time instance when the value of trace 691 transitions from 0 to 1), if the OnsetDelay flag (trace 696) is still “true”, the start of the therapy session is delayed. Since the OnsetDelay flag 696 becomes true at 171 minutes, and becomes false at 359 minutes, the scheduled therapy session (trace 691) at the 240.sup.th minute is delayed, and an actual therapy session 684 begins at the 360.sup.th minute.
Modifications of the Preferred Embodiments
(117) It will be appreciated that the present invention provides a transcutaneous electrical nerve stimulator with automatic assessment of sleep patterns and sleep characteristics based on monitoring of leg activities and leg orientations. Leg orientations include leg elevation and leg rotation state, and changes in leg elevation and leg rotation states. The TENS stimulator may be preprogrammed to modify its operations in response to the detected user leg activities and leg positions during bed time. Individual aspects of the TENS stimulator operations (e.g., stimulation onset, stimulation pulse intensity, and stimulation session duration) are modified based on specific sleep characteristics. However, these operating parameters can be modified simultaneously. In addition, leg orientation and leg activities are used to assess sleep quality and sleep position, all are important aspects to improve sleep and health. Leg activity patterns can also be used to diagnose sleep disorders such as periodic leg movement and the TENS stimulator can be used to alleviate excessive leg movement activities that are disruptive to sleep.
(118) While most sleep applications have a goal of prolonging good quality sleep, it may also be desirable to regulate the duration of good quality sleep each night. Another realization of the present invention is to provide the user with feedback when the total duration of good sleep (i.e., non-fragmented sleep) reaches a target range. The feedback provided to the user can be in the form of mechanical vibrations from a vibration motor (i.e., haptic feedback). The feedback can also be in the form of electrical stimulation (i.e., a stimulation pulse delivered by TENS device 100). In yet another realization of the present invention, feedback to the user is provided when a minimum time period of good sleep is achieved and the sleep quality is transitioning from non-fragmented sleep to fragmented sleep.
(119) The present invention can also be realized without the nerve stimulation functionality. Body movement and position can be monitored and quantified using the present invention without the need of nerve stimulation. The monitoring apparatus (device) can also be placed in other body positions like upper arm of either limb.
(120) Furthermore, many additional changes in the details, materials, steps and arrangements of parts, which have been herein described and illustrated in order to explain the nature of the present invention, may be made by those skilled in the art while still remaining within the principles and scopes of the invention.