A Temporally Causal Two-Layer Framework for Wearable EEG Sleep Staging and Short-Horizon Sleep-Transition Forecasting
Reliable online sleep monitoring requires sleep-stage estimates and forecasts based only on information available at the time of prediction. This study developed a temporally causal two-layer framework for wearable electroencephalography (EEG) sleep staging and short-horizon sleep-transition forecasting. Using 128 Bitbrain Open Access Sleep (BOAS) recordings from 100 participants, the first layer (M0) performed five-stage sleep classification with causal signal processing and participant-isolated nested validation. The second layer (M1) used strictly cross-fitted histories of M0 stage probabilities to predict transitions from wake or N1 (W/N1) to N2, N3, or REM sleep (N2+) within 60, 90, or 120 s after each observed 30-s epoch. M1 eligibility was determined from M0-predicted stages during training and evaluation, without requiring polysomnography (PSG) stage labels at inference. M0 achieved 0.830 accuracy and 0.704 macro-F1. Under M0-predicted eligibility, M1 achieved AUROC values of 0.801, 0.791, and 0.786 at 60, 90, and 120 s, respectively; complementary PSG-conditioned evaluation yielded 0.814, 0.803, and 0.801. Prediction was stronger during wakefulness than N1, and the benefits of probability history were specific to the future-sleep task. Future-perturbation tests confirmed unchanged pre-boundary outputs under the tested conditions. A frozen M0 replay on three Muse S Gen2 nights further identified stage-specific limitations in cross-device transfer. These findings establish an auditable framework for temporally causal wearable EEG analysis and demonstrate the potential of short-horizon sleep-transition forecasting while identifying its current generalization boundaries.
Authors
- Zhaohui Wang (ORCID: https://orcid.org/0000-0001-9195-4114)
- Yuting Kang (ORCID: https://orcid.org/0009-0006-7625-8755)
Institutions
- Ministry of Education of the People's Republic of China (CN)
- Donghua University (CN)
Publication Details
- Journal
- Sensors
- Published
- 2026-11-12
- DOI
- https://doi.org/10.3390/s26227144
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Fundamental Research Funds for the Central Universities