A19 - Automated Sleep Disorder Detection Using Machine Learning Techniques
A19 - Automated Sleep Disorder Detection Using Machine Learning Techniques
SLEEP DISORDERS ARE MEDICAL CONDITIONS THAT THE GOAL IS TO DEVELOP AN AUTOMATED SYSTEM FOR
NEGATIVELY AFFECT AN INDIVIDUAL'S REGULAR SLEEPING SLEEP DISORDER DETECTION THAT CAN OVERCOME THESE
PATTERN AND ROUTINE, LEADING TO DETRIMENTAL EFFECTS LIMITATIONS. THE SYSTEM SHOULD BE ABLE TO IDENTIFY
ON HEALTH. TRADITIONAL PROCEDURES FOR IDENTIFYING VARIOUS SLEEP DISORDERS SUCH AS INSOMNIA,
SLEEP DISORDERS INVOLVE QUESTIONNAIRES AND NOCTURNAL FRONTAL LOBE EPILEPSY (NFLE), NARCOLEPSY,
POLYSOMNOGRAPHY (PSG), WHICH ARE SUBJECTIVE, TIME- RAPID EYE MOVEMENT BEHAVIOR DISORDER (RBD),
CONSUMING, AND INCONVENIENT. MOREOVER, THESE PERIODIC LEG MOVEMENT DISORDER (PLM), AND SLEEP-
PROCEDURES ARE PRONE TO HUMAN ERRORS DUE TO THE DISORDERED BREATHING (SDB) USING
REQUIREMENT OF LONG HOURS OF CONTINUOUS ELECTROENCEPHALOGRAM (EEG) SIGNALS.
EVALUATION.
Motivation
Sleep is a period of rest that is essential for functional learning ability, mental
health, and even the performance of normal activities. Without prompt
diagnosis, the sleep disorders can affect the quality the life significantly. Hence,
it is very critical to identify the sleep disorder in early stages to undergo proper
treatment in order to cure it. The aim is to develop a sleep disorder detection
system which has the potential to significantly improve the quality of life for
individuals suffering from sleep disorders, reduce healthcare costs associated
with undiagnosed conditions, and contribute to overall public health.
Advantages
• The major advantage of this proposed system is that it can overcome the limitations of manual sleep
stage classification, which is a difficult, time-consuming, and subjective process that relies on visual
inspection by experts.
• It can utilize the full potential of EEG signals, which are the most important and informative signals
for sleep analysis, without losing information during feature extraction and training.
• It can achieve high accuracy, robustness, and efficiency for sleep stage classification, which can support
sleep experts and clinicians in diagnosing sleep disorders, identifying their underlying mechanisms,
selecting appropriate treatments, and predicting their outcomes.
Disadvantages
• The proposed system requires a large amount of labeled data for training and testing, which can be
costly, time-consuming, and challenging to obtain.
• It may not be able to capture the complexity and variability of sleep patterns and disorders, especially
for patients with comorbidities or rare conditions.
• It may not be able to explain the rationale behind its predictions, which can affect the trust and
acceptance of the system by experts and users.
Applications
• This proposed system can be used provide a practical and fast diagnostic process for patients and
doctors, by reducing the need for manual scoring and interpretation of polysomnogram (PSG)
recordings.
• It can enable self-application of sleep analysis in home settings, by using a single channel of EEG
signals acquired with an automated sleep staging device.
• It can support driver safety and alertness, by using EEG features and deep learning approaches to
detect driver drowsiness and provide timely feedback or intervention.
Literature Survey
Application of various machine learning techniques to predict obstructive sleep apnea syndrome severity
[1]
• In this study, data used were collected from 4014 patients who visited the sleep clinic of Samsung Medical
Center between 2014 and 2021.
• For classification, the authors used gradient boost-based models such as XGBoost, LightGBM, CatBoost, and
Random Forest to predict the severity of OSAS.
• The developed model showed high performance with 88%, 88%, and 91% of classification accuracy for three
thresholds for the severity of OSAS: Apnea-Hypopnea Index (AHI) ≥ 5, AHI ≥ 15, and AHI ≥ 30,
respectively.
A Systematic Review of Literature on Automated Sleep Scoring [2]
• This study outlines a Systematic Literature Review and the results it provided to assess the present state-of-
the-art in automatic analysis of sleep data.
• The American Academy of Sleep Medicine and Rechtschaffen & Kales are the two main scoring standards
used in contemporary research, according to the report.
• The current study’s major purpose was to assess state-ofthe-art in sleep scoring standards, bio-electric signal
feature extraction methodologies, and sleep data classification using machine learning approaches.
• As a result, this study indicates that using an alternate sleep scoring standard, as well as numerous feature
extraction with selection approaches, machine learning algorithms with parameter tweaking, and big data
analytics, physicians can produce a practically useful automatic sleep scoring system.
Sleep’s depth detection using electroencephalogram signal processing and neural network classification[3]
• In this model, authors suggest an automatic sleep stages classification approach based totally on a neural
community, blended with a wavelet-based function extraction method.
• In this work 4 sleep ranges will be classified, consisting of Awake, Stage 1 + rapid eye movement (REM),
Stage two and Slow Wave Stage primarily based only on the EEG signal.
• In order to validate the efficiency of this algorithm, they used PhysioNet database EEG signals for in
vitro tests.
• They used discrete wavelet transform method for EEG signal processing.
• This model has achieved an accuracy of 97.2%, 90.9%, 88.5% and 96.4% in classifying awake, stage 1, stage
2 and slow wave stage of sleep.
A review of automated sleep disorder detection [4]
• From 2010 to 2021, authors of 95 scientific papers have taken up the challenge of automating sleep disorder
detection. This paper provides an expert review of this work.
• During the review, they found eight sleep disorders (Sleep apnea, Hypopnea, INS, RBD, Narcolepsy, PLMD,
NFLE, Bruxism), of which sleep apnea and insomnia were the most studied. These disorders can be
diagnosed using several kinds of biomedical signals, such as Electrocardiogram (ECG), Polysomnography
(PSG), Electroencephalogram (EEG), Electromyogram (EMG) and snore sound.
• As per this study, 24 distinct algorithms were used to analyse 20 different signals or indeed signal
combinations.
• The authors conclude that this diversity of methods and signals clearly documents the challenge faced by
practitioners in the area of automated sleep disorder detection.
Automated sleep stage classification in sleep apnea using convolutional neural networks [5]
• This automation method publicly presents a flexible deep learning model and machine learning approach
utilizing raw electroencephalogram (EEG) signals.
• Its effectiveness is determined by using two open-source, public databases available from PhysioNet
(PhysioNet Sleep-EDF dataset, which contains 197 polysomnograms (PSG) to evaluate the performance of
the proposed model for sleep stage assignment): two recordings with 5402 epoch counts.
• The deep learning model is a Deep Convolutional Neural Network (CNN) that analyses invariant time
capacities and frequency actualities and collects assessment adaptations.
• The technique used in this approach achieves an accuracy of 90.70%, precision of 90.50%, recall of 92.70%,
and F-measure of 90.60%. The proposed method is more significant than existing models like AlexNet,
ResNet, VGGNet, and LeNet.
Classification of Brainwaves for Sleep Stages by High-Dimensional FFT Features from EEG Signals [6]
• In this paper, the authors demonstrated utilization of features extracted from EEG signals via FFT to improve
the performance of automated sleep stage classification through machine learning methods.
• They incorporated thousands of FFT features in order to classify the sleep stages into 2–6 classes. Using the
expanded version of Sleep-EDF dataset with 61 recordings, their method outperformed other state of the art
methods.
• One of the disadvantages in this method is the intensive computational requirements in memory and
processor. However, it also means that if the available resource of computing is rich, its performance can be
further improved.
Work Flow
Work Done
• Sleep Study:
In this we have collected information about stages of sleep, sleep requirements based on age group,
effect of food intake on sleep and sleep disorders.
• Dataset Collection:
In this we have collected a suitable dataset, sleep-edf database contains 197 whole-night
PolySomnoGraphic (PSG) sleep recordings, for extraction of all required features.
Sleep Cycle:
Source: www.ezsleeptime.com
• Sleep occurs in four stages: NREM1, NREM2,
NREM3 and REM.
• Stages NREM1 to NREM3 are considered non-
rapid eye movement (NREM) sleep, with each
stage a progressively deeper sleep.
Approximately 75% of sleep is spent in the
Stages of NREM stages, with the majority spent in the
NREM2 stage.
Sleep Cycle • Last stage REM is considered rapid eye
movement sleep during which even though the
eyes are closed, they can be seen moving
quickly.
• REM stages make up around 25% of sleep in
adults.
• NREM1 stage is essentially when a person first
falls asleep. This stage normally lasts just one to
seven minutes.
• During N1 sleep, the body has not fully relaxed,
though the body and brain activities start to slow
NREM1 with periods of brief movements.
Stage (Pre- • It is easy to wake someone up during this sleep
stage, but if a person is not disturbed, they can
sleep) move quickly into stage 2.
• The feeling of falling (officially named hypnic
myoclonia) is sometimes experienced.
• EEG recording: theta waves - low voltage.
• During stage 2, or N2, the body enters a more
subdued state including a drop in temperature,
relaxed muscles, and slowed breathing and heart
rate.
NREM2 • Eye movement stops and brain activity slows,
but there are short bursts of activity that actually
Stage (Light help resist being woken up by external stimuli.
Sleep) • Stage 2 sleep can last for 10 to 25 minutes
during the first sleep cycle, and each N2 stage
can become longer during the night.
• EEG recording: Sleep spindles(brief, powerful
bursts) and K complexes(long delta waves).
• During stage 3, muscle tone, pulse, and breathing
rate decrease in N3 sleep as the body relaxes even
further.
• It is harder to wake someone up if they are in this
phase.
NREM1 Pre-sleep 1-7 minutes Brain activity decreases from its stage of 5-10% of total sleep
wakefulness. The feeling of falling (officially in adults.
named hypnic myoclonia) is sometimes
experienced.
NREM2 True sleep or light sleep 10-25 minutes Periods of muscle tone mix with periods of 45-55% of total
muscle relaxation. Body temperature decreases sleep in adults.
and heart rate slows in preparation for deep
sleep.
NREM3 Deep sleep, Slow wave 20-40 minutes Your body begins rebuilding processes: tissue 15-25% of total
sleep or Delta sleep regeneration, building of bone and muscle and, sleep in adults.
strengthening of immune system.
REM Dream sleep 10-60 minutes Intense dreaming with periods of muscle 20-25% of total
paralysis. First period lasts around ten minutes sleep in adults.
and each REM cycle is longer than the last.
Source: www.sleepfoundation.org
Duration of sleep stage as sleep progresses
Source: www.sleepfoundation.org
Sleep Cycle NREM1 NREM2 NREM3 REM Total time of
Round Duration Duration Duration Duration sleep cycle
First 5-15 minutes 15-25 minutes 30-40 minutes 1-10 minutes 70-80 minutes
Second 1-3 minutes 25-35 minutes 30-40 minutes 10-20 80-90 minutes
minutes
Third 1-3 minutes 35-45 minutes 20-30 minutes 20-30 90-100 minutes
minutes
Fourth 1-3 minutes 45-50 minutes 15-25 minutes 40-50 90-110 minutes
minutes
Fifth 1-3 minutes 45-50 minutes 10-20 minutes 40-60 100-120 minutes
minutes
Note that these values are given based on an average adult of age 18 – 64
years, who in general experiences 4-6 sleep cycles in entire sleep. So these
values can vary based on age, health status and other factors.
• The first sleep cycle is often the shortest, ranging from 70
to 100 minutes, while later cycles tend to fall between 90
and 120 minutes.
• N1 stage normally lasts just one to seven minutes.
Usually a person spends most of the N1 stage in first
sleep cycle. As the night unfolds, an uninterrupted sleeper
may not spend much more time in stage 1 as they move
through further sleep cycles.
• So, stage 1 sleep is considered to be only 5% of total
sleep in adults.
• Stage 2 sleep can last for 10 to 25 minutes during the first
sleep cycle, and each N2 stage can become longer during
the night. Collectively, a person typically spends about
half their sleep time in N2 sleep.
• In total, NREM2 stage of sleep make up around 50% of
total sleep in adults.
• Usually a person spends most time in deep sleep during
the first half of the night. During the early sleep cycles,
N3 stages commonly last for 20 to 40 minutes. As you
continue sleeping, these stages get shorter, and more time
gets spent in REM sleep instead.
• In total, stage 3 or deep sleep make up around 20% of
total sleep in adults.
• Usually REM stage first occurs after 90 minutes falling
asleep.
• As the night goes on, REM stages get longer, especially
in the second half of the night. While the first REM stage
may last only a few minutes, later stages can last for
around an hour.
• In total, REM stages make up around 25% of sleep in
adults.
Sleep requirements based on age group
Source: www.slideshare.net
• Sleep apnea is a potentially serious sleep disorder in which
breathing repeatedly stops and starts. If you snore loudly and feel
tired even after a full night's sleep, you might have sleep apnea.
• Insomnia (INS) is defined as having trouble falling asleep or staying
asleep, or as having unrefreshing sleep despite having ample
opportunity to sleep.
[2] Alsolai H, Qureshi S, Iqbal SM, Vanichayobon S, Henesey LE, Lindley C, Karrila S. A Systematic Review of
Literature on Automated Sleep Scoring. IEEE Access. 2022 Jul 27.
[3] Touil M, Bahatti L, El Magri A. Sleep’s depth detection using electroencephalogram signal processing and neural
network classification. Journal of Medical Artificial Intelligence. 2022 Sep 30;5.
[4] Xu S, Faust O, Seoni S, Chakraborty S, Barua PD, Loh HW, Elphick H, Molinari F, Acharya UR. A review of
automated sleep disorder detection. Computers in Biology and Medicine. 2022 Nov 1;150:106100.
[5] Sundar GN, Narmadha D, Jone AA, Sagayam KM, Dang H, Pomplun M. Automated sleep stage classification in
sleep apnoea using convolutional neural networks. Informatics in Medicine Unlocked. 2021 Jan 1;26:100724.
[6] Delimayanti MK, Purnama B, Nguyen NG, Faisal MR, Mahmudah KR, Indriani F, Kubo M, Satou K.
Classification of brainwaves for sleep stages by high-dimensional FFT features from EEG signals. Applied
Sciences. 2020 Mar 5;10(5):1797.
[7] Yildirim O, Baloglu UB, Acharya UR. A deep learning model for automated sleep stages classification using
PSG signals. International journal of environmental research and public health. 2019 Feb;16(4):599.
[8] Ravan M. Machine learning approach to measure sleep quality using EEG signals. In2019 IEEE Signal
Processing in Medicine and Biology Symposium (SPMB) 2019 Dec 7 (pp. 1-6). IEEE.
[9] Ghasemzadeh P, Kalbkhani H, Shayesteh MG. Sleep stages classification from EEG signal based on
Stockwell transform. IET signal processing. 2019 Apr;13(2):242-52.
[10] Zhang Y, Wang B, Jing J, Zhang J, Zou J, Nakamura M. A comparison study on multidomain EEG features
for sleep stage classification. Computational Intelligence and Neuroscience. 2017 Nov 5;2017.
[11] Diykh M, Li Y. Complex networks approach for EEG signal sleep stages classification. Expert Systems
with Applications. 2016 Nov 30;63:241-8.
[12] Troxel WM, Buysse DJ, Matthews KA, Kip KE, Strollo PJ, Hall M, Drumheller O, Reis SE. Sleep
symptoms predict the development of the metabolic syndrome. Sleep. 2010 Dec 1;33(12):1633-40.
[13] Vural C, Yildiz M. Determination of sleep stage separation ability of features extracted from EEG signals
using principle component analysis. Journal of medical systems. 2010 Feb;34:83-9.
Thank
You