GraphSleepNet: Adaptive Spatial-Temporal Graph Convolutional Networks for Sleep Stage Classification

Ziyu Jia, Youfang Lin, Jing Wang, Ronghao Zhou, Xiaojun Ning, Yuanlai He, Yaoshuai Zhao

Abstract

Sleep stage classification is a critical task in diagnosing sleep disorders, traditionally requiring labor-intensive manual scoring of polysomnography (PSG) data. While automated methods using deep learning have emerged, they often fail to capture the complex, non-Euclidean functional relationships between different brain regions. We present GraphSleepNet, a novel framework that adaptively learns the intrinsic connections between EEG channels to construct a dynamic brain graph. By integrating adaptive graph learning with spatial-temporal graph convolutional networks (ST-GCN) and attention mechanisms, GraphSleepNet effectively captures both the spatial dependencies and temporal transitions inherent in sleep data. Evaluated on the MASS dataset, our model achieves state-of-the-art performance, particularly in identifying difficult transition stages like N1.

Introduction

The categorization of sleep into stages such as Wake, REM, and N1-N3 is essential for clinical sleep analysis. Conventional automated approaches, including Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), typically treat EEG data as grid-like structures. However, the human brain functions as a complex network where interactions between regions are not strictly governed by physical proximity.

Previous Graph Convolutional Network (GCN) approaches relied on fixed graphs based on electrode distances. GraphSleepNet addresses this limitation by treating the brain as a latent, evolving graph. Instead of a static physical map, the model learns a functional connectivity graph directly from the data, allowing it to capture the dynamic interactions that characterize different sleep stages.

Conceptual mapping of EEG channels to a temporal sequence of brain graphs.

Methodology

GraphSleepNet consists of three primary modules designed to extract and process spatial-temporal features from EEG signals.

1. Adaptive Sleep Graph Learning

Unlike traditional GCNs that use a predefined adjacency matrix, GraphSleepNet learns the graph structure ($A$) dynamically. It employs a learnable similarity function to quantify the influence between brain regions. A regularization term is applied to ensure the learned graph is sparse, retaining only the most significant functional connections. This allows the model to discover "intrinsic connections" that may not be apparent from physical electrode placement.

2. Spatial-Temporal Graph Convolution (ST-GCN)

The model processes the learned graphs through two dimensions:

  • Spatial Dimension: Spectral graph convolutions, implemented via Chebyshev polynomials, aggregate information from neighboring nodes within the learned brain graph.
  • Temporal Dimension: Standard 2D convolutions are applied across a sequence of sleep epochs. This captures the "transition rules" of sleep, such as the typical progression from Stage N2 to N3.

3. Spatial-Temporal Attention

To further refine feature extraction, an attention mechanism is utilized. This allows the model to dynamically weight the most informative brain regions (spatial attention) and time points (temporal attention), focusing on the features most relevant for classification.

The complete GraphSleepNet architecture, illustrating the pipeline from feature extraction to adaptive graph learning and spatial-temporal convolution.

Experimental Setup

The framework was evaluated using the Montreal Archive of Sleep Studies (MASS)-SS3 dataset, comprising 62 healthy subjects. The input features were Differential Entropy (DE) values extracted across nine frequency bands from 20 EEG channels. The model classifies data into five stages (Wake, N1, N2, N3, and REM) according to AASM standards.

Results and Discussion

GraphSleepNet demonstrated superior performance compared to eight state-of-the-art baselines, including DeepSleepNet and SeqSleepNet.

  • Overall Accuracy: 88.9%
  • Macro F1-Score: 0.841
  • Kappa Coefficient: 0.834

A significant achievement was the model's performance on Stage N1, which is notoriously difficult to classify due to its transitional nature. GraphSleepNet achieved an F1-score of 0.603 for N1, significantly higher than the 0.294–0.598 range seen in other deep learning models. This improvement is attributed to the model's ability to learn functional connectivity and temporal transition patterns.

Key insights include:

  • Functional vs. Physical Connectivity: The learned adaptive graph consistently outperformed graphs based on physical distance, suggesting that functional relationships are more indicative of sleep stages.
  • Temporal Context: Optimal results were achieved using a window of 5 sleep epochs, aligning with the clinical practice of human experts who consider surrounding context when scoring.

Conclusion

GraphSleepNet represents a significant advancement in automated sleep analysis by moving beyond static, grid-based representations of brain activity. By adaptively learning the brain's functional map, the model captures the complex spatial-temporal dynamics of sleep more effectively than previous methods. Future work will explore the model's generalizability to clinical populations with sleep disorders and its application to other multivariate physiological signals.

Summary updated

BibTeX
@inproceedings{jia2020graphsleepnet,
  author = {Ziyu Jia and Youfang Lin and Jing Wang and Ronghao Zhou and Xiaojun Ning and Yuanlai He and Yaoshuai Zhao},
  title = {{GraphSleepNet: Adaptive Spatial-Temporal Graph Convolutional Networks for Sleep Stage Classification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/184},
}
Figure