Abstract
Automatic sleep staging is critical for diagnosing sleep disorders but poses significant challenges for wearable devices due to high power consumption and data overhead. We propose Mask-Aware Sleep Staging (MASS), a framework designed for high-accuracy staging using as little as 10% of the original EEG signal. By employing a multi-level masking strategy and a hierarchical prompt learning mechanism, MASS enables resource-constrained devices to maintain clinical-grade performance while significantly reducing data acquisition. Evaluations on four public datasets demonstrate that MASS achieves a Macro-F1 score of 75.58% even with 90% data reduction, vastly outperforming existing state-of-the-art models which fail under similar constraints.
Introduction
Automatic sleep staging typically requires continuous, high-frequency EEG recordings over 30-second intervals (epochs). For wearable devices or home-based monitoring systems, this "always-on" data acquisition is a major bottleneck, draining battery life and straining limited on-device processing power. Existing models are often "data-hungry"; their accuracy collapses if signal sampling is reduced to save power. The challenge addressed by this research is maintaining clinical-grade classification performance while intentionally ignoring the majority of the input signal.
Methodology
The MASS framework introduces two primary innovations to handle incomplete signals: multi-level masking and hierarchical prompt learning.
Multi-Level Masking Strategy
During training, the model is forced to learn from incomplete data through masking at two levels:
- Patch-level: Randomly masking 1-second segments within a 30-second epoch.
- Epoch-level: Randomly masking entire 30-second blocks in a sequence. This approach forces the model to extract local features from fragments and global transitions from sparse sequences.
Hierarchical Prompt Learning
To compensate for missing data, MASS utilizes a "Global Prompt." A shallow Transformer processes the visible (unmasked) patches to create a compact semantic anchor. This prompt is injected into both patch-level and epoch-level encoders, acting as a contextual guide that helps the model infer the overall sleep state without needing to reconstruct the raw signal.
Architecture
The model employs a Transformer-based patch encoder for local features and a Bi-directional GRU (Bi-GRU) to model temporal transitions between sleep stages, such as the progression from Light Sleep to Deep Sleep.
Experimental Results
The model was evaluated on four widely recognized public EEG datasets: DREAMS-SUB, Sleep-EDF-20, Sleep-EDF-78, and SHHS. Single-channel recordings were used to simulate wearable constraints.
Performance under Extreme Data Reduction
MASS demonstrates a significant performance advantage in low-data scenarios. At a 10% signal integrity level (90% data reduction), MASS achieved a Macro-F1 score of 75.58% on the DREAMS-SUB dataset. In contrast, traditional state-of-the-art (SOTA) models like DeepSleepNet and AttnSleep saw performance plummet to scores between 6% and 11%.
Efficiency and Hardware Synergy
Beyond accuracy, MASS achieved high "accuracy per parameter" and "accuracy per inference time" metrics. The masking strategy directly translates to hardware efficiency; by masking 90% of the signal, an amplifier (such as the TI ADS129x series) can remain in standby mode for the majority of the time, potentially reducing power consumption by over 60%.
Discussion and Conclusion
While MASS is robust to missing data, it still faces the common challenge of classifying the N1 (Light Sleep) stage, which shares characteristics with both Wake and N2 stages. Additionally, future work is needed to evaluate robustness against real-world motion artifacts.
In conclusion, MASS proves that EEG signals contain significant redundancy for sleep staging. By shifting the focus from signal reconstruction to semantic guidance via prompt learning, it is possible to achieve reliable diagnostic results with a fraction of the data, paving the way for more efficient and longer-lasting wearable sleep monitors.
Summary updated