Self-Supervised Graph Neural Networks for Improved Electroencephalographic Seizure Analysis

Siyi Tang, Jared Dunnmon, Khaled Kamal Saab, Xuan Zhang, Qianying Huang, Florian Dubost, Daniel Rubin, Christopher Lee-Messer

Automated seizure detection from Electroencephalography (EEG) has the potential to save clinicians thousands of hours of manual review while improving patient outcomes. However, translating deep learning models into clinical practice has been hindered by several major hurdles.

First, most traditional models, such as Convolutional Neural Networks (CNNs), treat EEG signals as a flat 2D grid or image. In reality, EEG electrodes are placed on a curved scalp, and brain regions interact in complex, non-Euclidean ways. Second, real-world clinical data is highly imbalanced; some seizure types (like tonic or clonic seizures) are extremely rare, causing standard supervised models to struggle with these "long-tail" cases. Finally, clinicians need more than just a binary "seizure/no seizure" output—they need to know where the seizure is originating to plan treatments or surgery, requiring robust interpretability metrics.

To address these challenges, researchers have developed a novel approach that treats the brain's electrical activity as a dynamic graph and leverages self-supervised learning to master the "language" of brain waves.

Methodology: Graphs and Predicting the Future

The authors propose a framework called Self-Supervised Graph Neural Networks for Seizure Analysis.

Instead of a grid, the EEG is represented as a graph where nodes are the physical electrodes. The researchers tested two methods for defining the edges (connections) between these nodes:

  • Distance Graph: Edges are based on the physical proximity of electrodes on the scalp.
  • Correlation Graph: Edges are dynamic, based on the cross-correlation of signals between electrodes, capturing the actual functional connectivity of the brain.

To process this graph, they adapted a Diffusion Convolutional Recurrent Neural Network (DCRNN). This architecture uses "graph diffusion convolutions" to handle spatial relationships across the scalp and Gated Recurrent Units (GRUs) to process the temporal dynamics of the EEG signals.

Overview of the Self-Supervised GNN Framework

Crucially, to combat the data imbalance of rare seizure types, the team introduced a self-supervised pre-training step. Before training the model to detect seizures, they trained it on a massive amount of unlabeled EEG data. The objective was simple but powerful: given a 12-second clip of an EEG, predict the signal for the next 12 seconds. This allowed the model to learn the underlying structure and normal variations of EEG signals before ever seeing a clinical label.

Key Findings and Results

The model was evaluated primarily on the Temple University Hospital EEG Seizure Corpus (TUSZ) v1.5.2, the largest public EEG seizure database, containing over 5,600 EEGs and 3,050 annotated seizures.

1. Superior Detection and Classification The GNN model achieved an Area Under the Receiver Operating Characteristic Curve (AUROC) of 0.875 for seizure detection, outperforming state-of-the-art CNNs and LSTMs.

2. Solving the Rare Seizure Problem The self-supervised pre-training proved to be the "secret sauce" for handling data imbalance. By learning the fundamental patterns of brain activity first, the model became significantly more robust. This led to a staggering 47-point increase in accuracy for combined tonic seizures compared to baseline models.

Performance Comparison: ROC Curves and Confusion Matrices

3. Precise Localization and Interpretability Moving beyond subjective "saliency maps," the authors introduced formal metrics (Coverage and Localization scores) using an occlusion-based approach to quantify how well the model pinpoints a seizure's origin. The GNN precisely localized 25.4% of focal seizures, representing a massive 21.9-point improvement over existing CNN-based methods. Furthermore, they found that the Correlation Graph was particularly superior for localizing these focal seizures, proving that dynamic connectivity matters more than just physical distance.

Clinical Utility and Future Directions

By superimposing the model’s "importance maps" onto the EEG graph, the researchers demonstrated that their tool can provide clinicians with an intuitive, heat-map-like visualization of seizure activity, directly aiding in diagnosis and surgical planning.

While the results represent a significant leap forward, the authors note that future work should focus on validating the model across more diverse patient populations and multi-institutional datasets. Additionally, transitioning from retrospective analysis to real-time clinical integration will be the next critical step in bringing this AI-driven diagnostic tool to the bedside.

Summary updated

BibTeX
@inproceedings{tang2022self,
  author = {Siyi Tang and Jared Dunnmon and Khaled Kamal Saab and Xuan Zhang and Qianying Huang and Florian Dubost and Daniel Rubin and Christopher Lee-Messer},
  title = {{Self-Supervised Graph Neural Networks for Improved Electroencephalographic Seizure Analysis}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=YsYrJj-FUX8},
}
Figure