NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PSG-MAE: Robust Multitask Sleep Event Monitoring Using Multichannel PSG Reconstruction and Inter-Channel Contrastive Learning

Yifei Wang, Qi Liu, Fuli Min, Honghao Wang

TL;DR

This paper introduces PSG-MAE, a novel self-supervised pre-training framework for polysomnography (PSG) data. By reconstructing masked PSG signals across multiple channels and employing inter-channel contrastive learning, PSG-MAE learns robust, generalizable features for various sleep event monitoring tasks, outperforming traditional methods in sleep staging and sleep apnea detection.

What Problem Does This Paper Address?

Analyzing polysomnography (PSG) data, which captures various physiological signals during sleep, is crucial for diagnosing sleep disorders. Deep learning models have shown promise in automating this analysis, but they often struggle with limited, task-specific datasets. This scarcity leads to models that are not robust, perform poorly on new data, and fail to leverage the rich, inter-channel information present in PSG signals. Existing methods often focus on single channels or simple fusion, missing the complex interplay between different physiological signals that can indicate sleep events.

Methods

The core of this work is PSG-MAE, a Masked Autoencoder (MAE) based pre-training framework designed for multichannel PSG data. Here's what makes it novel:

  • Complementary Masking: Instead of random masking, PSG-MAE generates pairs of complementary masks that are applied across different channels within the same time segment. This ensures that the model learns to reconstruct information from channels that were masked.
  • Multichannel Signal Reconstruction: The framework reconstructs the masked portions of the PSG signals. This reconstruction loss is a combination of:
  • Channel-level Cosine Similarity Loss ($L_{cos}$): Preserves the overall pattern and trend of the signals.
  • Channel-level Mean Squared Error (MSE) Loss ($L_{MSE}$): Refines the numerical accuracy of the reconstructed signals.
  • Inter-Channel Contrastive Learning (ICCL): This is a key innovation. It encourages the model to pull together representations of corresponding segments from different channels (positive pairs) while pushing apart representations from different time frames (negative pairs). This explicitly teaches the model to understand the relationships and dependencies between channels.
  • Pre-trained Encoder: After pre-training on unlabeled data, the encoder component of PSG-MAE is used as a feature extractor. This encoder can then be fine-tuned with downstream networks for specific tasks like sleep staging or sleep apnea detection.

Datasets

The paper utilizes a combination of datasets for pre-training and downstream tasks:

  • Pre-training: A synthetic dataset is created by combining data from three sources:
  • SHHS (Sleep Heart Health Study): A large, multicenter epidemiological study with ~6,000 adults, providing multi-channel PSG data at 100Hz.
  • PSG-audio: A dataset from Athens, Greece, containing 212 synchronized PSG recordings with audio for apnea event analysis. EEG sampling frequency is 200Hz.
  • Clinical-PSG: A dataset from Guangzhou, China, with PSG data from 371 subjects, annotated by sleep physicians. EEG sampling frequency is 200Hz. Combining these datasets helps the encoder learn robust features across diverse physiological signal distributions.

  • Downstream Tasks:

    • Sleep Staging: The SHHS dataset is used (600 nights not included in pre-training).
  • Obstructive Sleep Apnea (OSA) Detection: The PSG-clinical dataset is used (171 nights not included in pre-training).

Key Insights and Ideas

  • The Power of Complementary Masking: Applying masks across channels, rather than just randomly within a single channel, forces the model to learn how different channels relate to each other to fill in the missing information. This is crucial for understanding complex physiological signals.
  • ICCL is Key for Multichannel Fusion: The inter-channel contrastive learning component is vital. It explicitly teaches the model to leverage the synchronized nature of PSG signals, where sleep events often manifest across multiple channels simultaneously. Without ICCL, reconstruction quality suffers, highlighting the importance of inter-channel relationships.
  • Pre-training for Generalization: By training on a large, diverse, unlabeled dataset, PSG-MAE learns generalizable features that can be effectively fine-tuned for various downstream tasks, reducing the need for massive labeled datasets for each specific problem.
  • Robustness to Noise: The ICCL component helps in reconstructing signals even from noisy channels by leveraging information from cleaner channels, improving overall model robustness.

Key Results

  • Signal Reconstruction: PSG-MAE demonstrates high accuracy in reconstructing PSG signals, with very low MSE values for EEG and EOG channels, indicating effective capture of temporal details and inter-channel information.
  • Sleep Staging: After fine-tuning, the proposed PSG-MAE framework achieved a macro F1-score of 74.7% and an accuracy of 83.7% on the sleep staging task, outperforming several state-of-the-art methods.
  • Obstructive Sleep Apnea (OSA) Detection: For OSA detection, the model achieved an accuracy of 90.45% and a macro F1-score of 67.33%, significantly outperforming traditional machine learning methods like RF, SVM, and a standard CNN. This is particularly impressive given the class imbalance inherent in OSA detection.
  • UMAP Visualizations: Feature visualizations show that before downstream training, features are subtly clustered. After fine-tuning, distinct clusters emerge for different sleep stages and OSA/normal states, demonstrating the encoder's ability to learn discriminative features.

Limitations and Future Work

  • Suboptimal Performance on N1 and R Sleep Stages: The authors acknowledge that the fine-tuned sleep staging network shows suboptimal performance for N1 and R sleep stages. This is attributed to the small proportion of these stages in the training data and a potential lack of targeted data augmentation strategies.
  • Airflow Signal Variability: Reconstruction performance for airflow signals was suboptimal, with higher average MSE values, due to significant variability between datasets and data acquisition conditions.
  • Future Directions:
    • Refining downstream networks and training processes to improve sleep staging accuracy, especially for N1 and R stages.
  • Expanding the framework to support a broader range of automated sleep event monitoring tasks.
  • Developing a multidimensional sleep monitoring system that offers comprehensive analysis from a single input segment.

Summary updated

BibTeX
@article{wang2025psg,
  author = {Yifei Wang and Qi Liu and Fuli Min and Honghao Wang},
  title = {{PSG-MAE: Robust Multitask Sleep Event Monitoring Using Multichannel PSG Reconstruction and Inter-Channel Contrastive Learning}},
  journal = {IEEE Transactions on Neural Systems and Rehabilitation Engineering},
  year = {2025},
  doi = {10.1109/tnsre.2025.3645353},
}
Figure