Dynamic GNNs for Precise Seizure Detection and Classification from EEG Data

Arash Hajisafi, Haowen Lin, Yao-Yi Chiang, Cyrus Shahabi

Introduction

Epilepsy affects approximately 1% of the global population. Diagnosis typically involves the manual review of extensive EEG recordings, a process that is both time-consuming and prone to human error. While deep learning models like CNNs and RNNs have been applied to automate this task, they often treat EEG signals as Euclidean grids or flat sequences. This overlooks the brain's inherent non-Euclidean structure, where electrode positions correspond to specific functional regions rather than mere coordinates. Existing Graph Neural Network (GNN) approaches often rely on static graphs or limited temporal correlations, failing to capture the dynamic, multi-faceted interplay of brain activity during seizures.

The NeuroGNN Framework

NeuroGNN addresses these limitations by constructing a dynamic "NeuroGraph" for each EEG data window. The architecture integrates spatial proximity, temporal dynamics, and functional semantics to model the brain as an evolving network.

The framework consists of two primary components:

  1. Node Feature Generation: This block combines temporal embeddings from Bidirectional GRUs with semantic embeddings. Semantic features are derived using a pre-trained Large Language Model (MPNet) to encode textual descriptions of Brodmann areas, providing functional context to each electrode's signal.
  2. Dynamic Adjacency Matrix Generation: Unlike static models, NeuroGNN learns a unique adjacency matrix for every time window by fusing semantic similarity (functional roles), spatial similarity (physical distance), and temporal similarity (signal correlation via Multi-Head Attention).

To further enhance performance, the model utilizes self-supervised pretraining, where it learns to forecast future EEG signals, mitigating the challenges of limited labeled medical data.

Experimental Setup

The model was evaluated using the Temple University Hospital EEG Seizure Corpus (TUSZ) v1.5.2, the largest public EEG dataset. It includes over 3,000 annotated seizure events from more than 300 patients. The study focused on both binary seizure detection and multi-class seizure classification across four distinct seizure types.

Results and Discussion

NeuroGNN established new state-of-the-art benchmarks for both detection and classification tasks, demonstrating significant improvements over traditional deep learning architectures.

Key findings from the evaluation include:

  • Superior Accuracy: NeuroGNN achieved an AUROC of 0.876 for detection and a Weighted F1 score of 0.792 for classification. Without pretraining, it improved upon existing state-of-the-art (SOTA) models by 12.7% in classification tasks.
  • Functional Semantics: The inclusion of LLM-based semantic embeddings allows the model to interpret signals within their anatomical context, distinguishing between similar signal patterns occurring in different brain regions.
  • Spatial vs. Temporal Dynamics: Ablation studies indicated that spatial correlations are primary drivers for seizure detection, whereas temporal correlations are crucial for distinguishing between specific seizure types.
  • Data Efficiency: Remarkably, NeuroGNN trained on only 20% of the dataset outperformed competing models trained on the full 100%, demonstrating high robustness to data scarcity.

Conclusion

NeuroGNN represents a significant advancement in automated EEG analysis by modeling the brain as a dynamic, functionally-aware network. While challenges remain in classifying certain generalized seizure types (e.g., the GN class), the integration of LLM-derived semantics and self-supervised learning provides a robust path forward. Future research may explore more granular anatomical mapping and the deployment of these models on low-power wearable devices for real-time clinical monitoring.

Summary updated

BibTeX
@inproceedings{hajisafi2024dynamic,
  author = {Arash Hajisafi and Haowen Lin and Yao-Yi Chiang and Cyrus Shahabi},
  title = {{Dynamic GNNs for Precise Seizure Detection and Classification from EEG Data}},
  booktitle = {PKDD},
  year = {2024},
  doi = {10.1007/978-981-97-2238-9\_16},
}
Figure