The present invention generally relates to a method of detecting sleep disorder and a device of the same. Specifically, the method of detecting sleep disorder and the device of the same are based on an electroencephalography (EEG) signal.
Traditionally, various kinds of physiological signals received from a great amount of sensors attaching to a body of a person are needed to identify sleeping disorder. The physiological signals may comprise electroencephalography (EEG) signal, electrocardiogram (ECG) signal, Electromyography (EMG) signal, electrooculogram (EOG) signal, airflow signal, respiration efforts signal, oxygen saturation signal, etc. A device having all of such sensors is quite expensive because the price of it is about 23 to 33 thousand dollars. Because a certain certification for operators is required, currently only medical institutions can use such a device. The person has to stay in a medical institution for a whole night to collect enough data. Therefore, it is needed for decreasing the number of the signals required for determining sleep disorder.
An object of the present invention is to provide a method of detecting sleep disorder based on an electroencephalography (EEG) signal and a device of the same which generate a determination of detecting sleep and an anomaly score by analyzing one single signal, i.e. EEG signal, to reduce cost of collecting physiological signals and uncomfortable feeling of a user wearing a lot of sensors.
Another object of the present invention is to provide a method of detecting sleep disorder based on an EEG signal which identifies sleep disorder with three analyzing steps comprising collecting an EEG signal only and gets a sequence of sleep stage X(i) through a feature extraction algorithm and a machine learning algorithm, assessing an anomaly score of the sequence of sleep stage X), and determining if the sequence of sleep stage X(i) represents sleep disorder.
Another object of the present invention is to provide a method of detecting sleep disorder based on an EEG signal and a device of the same which provides an anomaly score which is highly-positive correlated with Apnea-Hypopnea Index (AHI), defined by experts of this domain, (correlation coefficient >0.7), verified with experiments. Therefore, the anomaly score is of considerable referential importance in identifying an extent of sleep disorder of a user.
Yet, another object of the present invention is to provide a method of detecting sleep disorder based on an EEG signal and a device of the same which, preferably, may be used at home and a sleep quality may be analyzed by a mobile application when transmitting monitored data received from an EEG sensor to a mobile phone via a wireless communication link, if supported by a medical equipment manufacturer. When the sequence of sleep stage X(i) representing sleep disorder is detected, a user may be informed for seeking a formal diagnosis in a hospital.
An aspect of the present invention is to provide a method of detecting sleep disorder based on an EEG signal comprising dividing a EEG signal into sections, dividing a EEG signal into sections, classifying each section of the EEG signal into a plurality of sleep stages and determining that which sleep stage each section of the EEG signal is through a feature extraction algorithm and a machine learning algorithm so as to get a sequence of sleep stage X(i); assessing an anomaly score of the sequence of sleep stage X(i) with an anomaly detection technique for a discrete sequence; and determining if the sequence of sleep stage X(i) represents sleep disorder with a predetermined threshold η, so that if a risk assessment function of anomaly V(X(i), fr, L) satisfies V(X(i), fr, L)>η, determining the sequence of sleep stage X(i) represents sleep disorder, in which fr(·) is a function determining a sleep pattern of sleep disorder, and L is a length of a sliding window.
An aspect of the present invention is to provide a device of detecting sleep disorder based on an EEG signal, comprising a communication unit and a programming unit. The communication unit receives a EEG signal from an EEG sensor. The programming unit is configured to divide a EEG signal into sections, classify each section of the EEG signal into a plurality of sleep stages and determining that which sleep stage each section of the EEG signal is through a feature extraction algorithm and a machine learning algorithm so as to get a sequence of sleep stage X(i); assess an anomaly score of the sequence of sleep stage X(i) with an anomaly detection technique for a discrete sequence; and determine if the sequence of sleep stage X(i) represents sleep disorder with a predetermined threshold η, so that if a risk assessment function of anomaly V(X(i), fr, L) satisfies V(X(i), fr, L)>η, determine the sequence of sleep stage X(i) represents sleep disorder, in which fr(·) is a function determining a sleep pattern of sleep disorder, and L is a length of a sliding window.
Various objects and advantages of the present invention will be more readily understood from the following detailed description when read in conjunction with the appended drawing, in which:
For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features. Persons having ordinary skill in the art will understand other varieties for implementing example embodiments, including those described herein. The drawings are not limited to specific scale and similar reference numbers are used for representing similar elements. As used in the disclosures and the appended claims, the terms “embodiment,” “example embodiment,” and “present embodiment” do not necessarily refer to a single embodiment, although it may, and various example embodiments may be readily combined and interchanged, without departing from the scope or spirit of the present disclosure. Furthermore, the terminology as used herein is for the purpose of describing example embodiments only and is not intended to be a limitation of the disclosure. In this respect, as used herein, the term “in” may include “in” and “on”, and the terms “a”, “an” and “the” may include singular and plural references. Furthermore, as used herein, the term “by” may also mean “from”, depending on the context. Furthermore, as used herein, the term “if” may also mean “when” or “upon”, depending on the context. Furthermore, as used herein, the words “and/or” may refer to and encompass any and all possible combinations of one or more of the associated listed items.
In the present specification, several examples of a method of detecting sleep disorder based on an electroencephalography (EEG) signal and a device of the same are disclosed. Please refer to
The programming unit 12, which may be implemented as a processor, microprocessor, central processing unit, etc., may be configured to execute steps S1, S2 and S3 of the method of detecting sleep disorder. After the sleep disorder detecting devices 10 receive the EEG signal, in the step S1, the programming unit 12 may divide a EEG signal into sections, classify each section of the EEG signal into a plurality of sleep stages and determining that which sleep stage each section of the EEG signal is through a feature extraction algorithm and a machine learning algorithm so as to get a sequence of sleep stage X). Please note that, compared with conventional methods, the method of detecting sleep disorder according to the present invention only analyzes one single EEG signal to determine if sleep disorder exists and an anomaly score, so as to reduce cost of collecting physiological signals and uncomfortable feeling of the user wearing a lot of sensors. The programming unit 12 may divide the EEG signal from the EEG sensors 30 into sections of a fixed length, and preferably, the fixed length may be between 10 seconds and 1 minute. For the example shown in
Then, in the step S2, the programming unit 12 may assess an anomaly score of the sequence of sleep stage X(i) with an anomaly detection technique for a discrete sequence. When it is assumed that the sequence of sleep stage X(i) to be assessed is set as X(n)=(X(n)(1), X(n)(2), X(n)(3), . . . , X(n)(m)), in which X(i)(j) belongs to a set of {A, R, 1, 2,3} and A, R, 1, 2,3 correspond to the five sleep stages, i.e. awake stage, REM stage, N1 stage, N2 stage and N3 stage, respectively, the programming unit 12 may take a plurality of sliding windows, the length of which is L, out of the sequence of sleep stage X(i) as sleep patterns of sleep for each historical data in a set of historical data Hx={X(i), X(2), . . . , X(n-1)} to form a set of sliding window AL(X), in which a set of all sliding windows in the historical data is HA which satisfies HA=∪ {AL(h)|h ∈Hx}=AL(X(1))∪ AL(X(2))∪ . . . ∪ AL(X(n-1)). The historical data Hx may be used as training data, as shown in
The programming unit 12 may then form the sliding window for each historical data with the length L. AL(X) represents the set of all the sliding window, the length of which is L, taken from the sequence of sleep stage X. As an example shown in
For a sliding window, or a so-called sleep pattern, a lookahead pair may be defined and represented by <x,y>i. The programming unit 12 may define a lookahead pair <x,y>i of a sleep pattern a=(a1, a2, . . . , aL) as a subsequence (am, an) of a, in which m, n, i are integers, 1≤m,n,i≤L, x=am, y=an and n−m=i. Further, a set of all possible lookahead pairs is Blo(a), which satisfies Blo(a)={<am, an>k|∃m,n,k∈ s.t. 1≤m,n,k≤L and k=m−n}. As shown in the example in
The programming unit 12 then may set <x,y>i as a lookahead pair, and use C(<x,y>i, HA) to represent a number of <x,y>i shown in the set HA, and define that C(<x,y>i, HA)=|{a|a∈ HA and <x,y>i ∈ Blo(a)}|, in which |·| represents an element number of a set. The programming unit 12 may also define a function determining a sleep pattern of sleep disorder fr(·), an input of which is a sleep pattern a, as fr(a)=1 if |{z|z∈Blo(a) and C(z, HA)/|HA|<θ}|>0, and fr(a)=0 if |{z|z∈Blo(a) and C(z, HA)/|HA|<θ}|=0, in which θ is another predetermined threshold. A risk assessment function of anomaly V(X(i), fr, L) may be defined as V(X(i), fr, L)=(sum {fr(a)|a∈AL(X(i)})/(|X(i)|+L−1), in which 0≤V(X(i), fr, L)≤1. Afterwards, the programming unit 12 may calculate an abnormal score of the sequence of sleep stage X(i) with the risk assessment function of anomaly V(X(i), fr, L). Here, the abnormal score of the sequence of sleep stage X(i) may represent an extent of sleep disorder, and the higher the abnormal score of the sequence of sleep stage X(i) is, the greater the an extent of sleep disorder is, for example. Verified with experiments, it is found that the abnormal score defined here is highly-positive correlated with Apnea-Hypopnea Index (AHI) (correlation coefficient >0.7). Therefore, the anomaly score is of considerable referential importance in identifying an extent of sleep disorder of the user.
Then, in the step S3, the programming unit 12 may determine if the sequence of sleep stage X(i) represents sleep disorder with a predetermined threshold η. Here, if the risk assessment function of anomaly V(X(i), fr, L) satisfies V(X(i), fr, L)>η, it is determined that the sequence of sleep stage X(i) represents sleep disorder. The predetermined threshold η may be but not limited to set to meet actual requirement.
As mentioned above, the method of detecting sleep disorder based on the EEG signal and the device of the same of the present invention only collect one single EEG signal, and detect sleep disorder by performing three analysis steps with the collected EEG signal: getting the sequence of sleep stage X(i) with the feature extraction algorithm and the machine learning algorithm, assessing the anomaly score of the sequence of sleep stage X(i) and determining if the sequence of sleep stage X(i) represents sleep disorder.
It is to be understood that these embodiments are not meant as limitations of the invention but merely exemplary descriptions of the invention with regard to certain specific embodiments. Indeed, different adaptations may be apparent to those skilled in the art without departing from the scope of the annexed claims.
Number | Date | Country | Kind |
---|---|---|---|
111134701 | Sep 2022 | TW | national |