Machine learning classifier solving the problem of sleep stage imbalance between overnight sleep
Chanwoo Park1, Jung-Ick Byun2, Sang Ho Choi3
1Department of Medicine, Graduate School, Kyung Hee University, Seoul, 02447 Republic of Korea.
Biomedical Engineering Letters
|April 24, 2025
Summary
This study enhances sleep scoring using machine learning by addressing data imbalance with loss function adjustment and resampling. This improves automated sleep phase prediction accuracy for better clinical applications.
Area of Science:
- Artificial Intelligence
- Machine Learning
- Sleep Medicine
Background:
- Manual sleep stage scoring is time-consuming, requires expertise, and is prone to subjective bias.
- Machine learning offers automated solutions but struggles with imbalanced datasets common in sleep studies.
- Poor performance on minority classes in sleep phase prediction hinders reliable automated analysis.
Purpose of the Study:
- To overcome data imbalance issues in machine learning for sleep scoring.
- To improve the generalization of sleep data for data-centric artificial intelligence.
- To evaluate methods for enhancing the accuracy of automated sleep phase prediction.
Main Methods:
- Applied feature extraction based on American Academy of Sleep Medicine (AASM) standards.
- Experimented with loss function adjustment and resampling techniques to address minority class prediction errors.
- Utilized various machine learning classifiers, adjusting datasets with sampling and class weighting.
Main Results:
- Achieved a best-performing model accuracy of 91.9% for sleep stage classification.
- Obtained a kappa score of 0.899 and an F1-score of 86.9% with the optimized model.
- Demonstrated the effectiveness of data balancing techniques in improving machine learning performance for sleep scoring.
Conclusions:
- Loss function adjustment and resampling effectively mitigate data imbalance in sleep scoring.
- Automated sleep phase prediction shows significant potential for clinical applications.
- Further research can explore channel accuracy and electrode monitoring for enhanced real-world performance.
Related Concept Videos
Stages of Sleep
150
Sleep progresses through distinct stages, each characterized by specific brain wave patterns and physiological responses ranging from wakefulness to stages of non-rapid eye movement, known as non-REM, to rapid eye movement, referred to as REM. Understanding these stages helps in recognizing how sleep supports various bodily and cognitive functions.
Before sleep begins, in wakefulness, the brain exhibits primarily beta waves, which are high in frequency and low in amplitude, indicating alertness...
Before sleep begins, in wakefulness, the brain exhibits primarily beta waves, which are high in frequency and low in amplitude, indicating alertness...
150
Sleep-Wake Cycles
1.1K
Sleep is an essential physiological process vital to maintaining overall well-being. The reticular activating system (RAS), a network of neurons in the brainstem, regulates wakefulness and sleep. While it may seem passive, sleep consists of distinct cycles, each with its unique characteristics and functions. Two key sleep phases are non-rapid eye movement (NREM) and rapid eye movement (REM).
NREM Sleep
NREM sleep comprises four progressive stages that seamlessly merge:
NREM Sleep
NREM sleep comprises four progressive stages that seamlessly merge:
1.1K
Management of Insomnia
185
The sleep cycle, an integral part of human health, consists of several stages with distinct characteristics and functions. It begins with a transition from wakefulness to sleep, known as the light sleep phase, followed by the restorative deep sleep phase, essential for physical recovery and growth. The cycle concludes with the Rapid Eye Movement (REM) phase, characterized by high brain activity and vivid dreaming. Insomnia, a prevalent sleep disorder, involves difficulty falling asleep, staying...
185
Narcolepsy
82
Narcolepsy is a chronic sleep disorder characterized by pervasive, uncontrolled sleepiness and other sleep disturbances. One of its hallmark symptoms is an abrupt transition to REM sleep upon falling asleep, which causes symptoms typically associated with this phase to occur unexpectedly during wakefulness. These include the following symptoms, which typically last from a minute or two to half an hour.
82
REM Sleep Behavior Disorder
110
REM Sleep Behavior Disorder (RBD) is a sleep disorder characterized by the absence of muscle paralysis that normally occurs during the REM phase of sleep. This absence allows individuals to physically act out their dreams, which are often vivid and disturbing. Common behaviors exhibited during episodes include kicking, punching, and yelling. These actions can be dangerous, potentially leading to injuries for the person with RBD or their bed partner.
RBD is significantly associated with...
RBD is significantly associated with...
110
Insomnia
75
Insomnia is a prevalent sleep disorder characterized by difficulty falling asleep, frequent awakenings during the night, and waking up too early without being able to return to sleep. People with insomnia often experience these disruptions at least three nights a week for at least one month. Chronic insomnia, which lasts for at least three months, can lead to increased anxiety, which in turn can worsen sleep difficulties, creating a cycle of sleeplessness and stress.
Multiple factors contribute...
Multiple factors contribute...
75


