Status: π§ Paper under review. Code and data will be released upon publication. π§
This repository accompanies the manuscript:
"Multi-Horizon Forecasting of Apnea and Hypopnea Events from Polysomnographic Signals" Gurleen Kaur, Mohammadreza Hajipour, AJ Marcus Hirsch Allen, Najib T. Ayas, and Ghassan Hamarneh Submitted to IEEE Journal of Biomedical and Health Informatics
- Gurleen Kaur β School of Computing Science, Simon Fraser University, Burnaby, BC, Canada (gka82@sfu.ca)
- Mohammadreza Hajipour β Brigham and Women's Hospital, Harvard Medical School, Harvard University, Boston, MA, USA (mhajipour@bwh.harvard.edu)
- AJ Marcus Hirsch Allen β Department of Medicine, University of British Columbia, Vancouver, BC, Canada (ajhirschallen@gmail.com)
- Najib T. Ayas β Department of Medicine, University of British Columbia, Vancouver, BC, Canada (najib.ayas@vch.ca)
- Ghassan Hamarneh, Senior Member, IEEE β School of Computing Science, Simon Fraser University, Burnaby, BC, Canada (hamarneh@sfu.ca)
Obstructive sleep apnea (OSA) is a prevalent sleep-related breathing disorder affecting nearly one billion people worldwide. While polysomnography (PSG) is the clinical gold standard for detecting apnea and hypopnea events after they occur, this work explores whether such events can be forecast before onset to support anticipatory intervention.
We formulate apnea/hypopnea prediction as a multi-horizon binary time-series classification task and propose a hybrid deep learning architecture that fuses:
- Learned spectral-temporal EEG representations (via an EEGNet-inspired CNN pipeline), and
- Hand-crafted physiological descriptors (band-power, spectral statistics, and wavelet features)
through a cross-attention fusion mechanism.
- A rigorous multi-horizon forecasting formulation (Ξ β {5, 10, 20, 30} seconds) with explicit post-event exclusion and guard-margin constraints, distinguishing true pre-event forecasting from during-event detection.
- A cross-attention fusion architecture combining CNN-based and analytical (hand-crafted) feature branches.
- Evaluation on 477 full-night PSG recordings (University of British Columbia dataset) using subject-wise cross-validation β a substantially larger and more diverse cohort than prior EEG-inclusive forecasting studies.
- Interpretability analysis via SHAP to characterize channel-level contributions (e.g., nasal pressure, respiratory effort, EEG).
- Uncertainty-based selective prediction (abstention) to improve reliability on high-confidence subsets.
| Horizon (Ξ) | F1 Score | Accuracy (%) |
|---|---|---|
| 5 s | 0.73 | 71.44 |
| 10 s | 0.71 | 69.56 |
| 20 s | 0.68 | 64.06 |
| 30 s | 0.69 | 63.50 |
Performance is highest near event onset and decreases gracefully as the forecasting horizon increases, consistent with the expected reduction in available predictive signal at longer lead times.
This study uses a private clinical PSG dataset provided by the University of British Columbia (477 full-night recordings). The dataset is not publicly available due to privacy and institutional data-sharing restrictions.
.
βββ data/ # Data loading and preprocessing scripts (dataset not included)
βββ models/ # Model architecture definitions (EEGNet branch, analytical branch, cross-attention fusion)
βββ training/ # Training and cross-validation scripts
βββ analysis/ # SHAP interpretability and abstention/calibration analysis
βββ README.md
(Structure subject to change as the code release is finalized.)
A formal citation will be added once the paper is accepted/published. In the meantime, please reach out to the corresponding authors for reference details, or use the placeholder BibTeX entry below (update once accepted):
@article{kaur2026multihorizon,
title = {Multi-Horizon Forecasting of Apnea and Hypopnea Events from Polysomnographic Signals},
author = {Kaur, Gurleen and Hajipour, Mohammadreza and Hirsch Allen, AJ Marcus and Ayas, Najib T. and Hamarneh, Ghassan},
journal = {IEEE Journal of Biomedical and Health Informatics},
year = {2026},
note = {Under review},
}- Gurleen Kaur β gka82@sfu.ca
- Ghassan Hamarneh β hamarneh@sfu.ca
This work was supported by computational resources from the Digital Research Alliance of Canada.
This README is a placeholder and will be updated with full documentation, setup instructions, and code upon completion of the peer-review process.