Multi-View Spatial-Temporal Graph Convolutional Networks with Domain Generalization for Sleep Stage Classification

Ziyu Jia, Youfang Lin, Jing Wang, Xiaojun Ning, Yuanlai He, Ronghao Zhou, Yuhan Zhou, Li-Wei H. Lehman

Abstract

Automatic sleep stage classification is essential for diagnosing sleep disorders but faces significant challenges due to complex brain connectivity and high inter-subject variability. This paper introduces the Multi-View Spatial-Temporal Graph Convolutional Network (MSTGCN), a framework that integrates multi-view graph convolutions with adversarial domain generalization. MSTGCN captures non-Euclidean relationships between brain regions and learns subject-invariant features, achieving state-of-the-art performance on public datasets without requiring expensive subject-specific fine-tuning.

Introduction

Sleep staging—categorizing sleep into stages such as Wake, REM, and N1-N3—is traditionally a manual, time-consuming process performed by experts using Polysomnography (PSG) data. While deep learning has automated much of this, three primary hurdles persist:

  1. Spatial Complexity: Brain signals possess a non-Euclidean topology that simple grid-based models often ignore.
  2. Subject Variability: Models often fail to generalize to new individuals without costly fine-tuning.
  3. Interpretability: Clinical adoption requires understanding the rationale behind model classifications.

Methodology: The MSTGCN Framework

The proposed MSTGCN architecture addresses these challenges through four integrated pillars:

Overview of the MSTGCN architecture, illustrating the multi-view connectivity, spatial-temporal graph convolution layers, and the adversarial domain generalization component.
  • Multi-View Brain Graphs: The model constructs two distinct graphs: one based on physical electrode distance and another on data-driven functional connectivity learned automatically from signal correlations.
  • Spatial-Temporal Convolution: Graph Convolutional Networks (GCNs) extract spatial features from the brain topology, while 2D convolutions capture temporal transitions between sleep stages.
  • Attention Mechanisms: Spatial and temporal attention modules allow the network to prioritize the most informative brain regions and time windows for each classification.
  • Adversarial Domain Generalization: To handle individual differences, a Domain Classifier and Gradient Reversal Layer (GRL) force the model to learn features that are useful for sleep staging but invariant to the specific subject.

Experimental Setup

The model was evaluated on two prominent public datasets:

  • ISRUC-S3: A smaller dataset containing 10 healthy subjects with 6 EEG channels.
  • MASS-SS3: A larger, more diverse dataset with 62 healthy subjects and 20 EEG channels.

Results and Discussion

MSTGCN outperformed several state-of-the-art baselines, including standard CNNs, RNNs, and previous graph-based models like GraphSleepNet.

Comparison of accuracy and F1-score across different variant models, demonstrating the incremental benefit of the components integrated into the MSTGCN framework.

Key Performance Metrics

  • Accuracy: Achieved 82.1% on ISRUC-S3 and 89.5% on MASS-SS3.
  • Macro F1-Score: Reached 0.808 on ISRUC-S3 and 0.854 on MASS-SS3.
  • N1 Stage Performance: The model showed a significant 4% F1-score improvement for the difficult N1 stage on the MASS-SS3 dataset compared to previous models.

Key Insights

  • Complementary Views: Physical proximity and functional connectivity are complementary; capturing both provides a richer picture of sleep dynamics.
  • Interpretability: Attention weights consistently highlighted the C3 and C4 electrodes as most informative, aligning with clinical standards for sleep staging.
  • Connectivity Dynamics: Learned graphs confirmed that brain connectivity simplifies during deep sleep (N3) compared to light sleep (N1) or wakefulness.
  • Zero-Shot Generalization: The domain generalization approach allows the model to work on entirely new subjects "out of the box" without recalibration.

Conclusion

MSTGCN represents a significant step toward robust and generalizable automatic sleep staging. While the N1 stage remains a challenge due to its brief, transitional nature, the model's ability to perform accurately on unknown domains makes it highly suitable for clinical deployment. Future work will explore testing on patients with sleep disorders and incorporating multi-frequency band graph structures.

Summary updated

BibTeX
@article{jia2021multi,
  author = {Ziyu Jia and Youfang Lin and Jing Wang and Xiaojun Ning and Yuanlai He and Ronghao Zhou and Yuhan Zhou and Li-Wei H. Lehman},
  title = {{Multi-View Spatial-Temporal Graph Convolutional Networks with Domain Generalization for Sleep Stage Classification}},
  journal = {IEEE Transactions on Neural Systems and Rehabilitation Engineering},
  year = {2021},
  doi = {10.1109/tnsre.2021.3110665},
}
Figure