Seizure localisation with attention-based graph neural networks

Daniele Grattarola, Lorenzo Livi, Cesare Alippi, Richard Wennberg, Taufik A. Valiante

TL;DR

This paper introduces a novel Graph Neural Network (GNN) approach that uses attention mechanisms to automatically identify the seizure onset zone (SOZ) in epilepsy patients from intracranial EEG data. By representing brain activity as functional networks, their method achieves high localization accuracy without requiring explicit SOZ annotations, offering a promising tool to aid clinicians.

What Problem Does This Paper Address?

Epilepsy is a neurological disorder characterized by recurrent seizures. For patients whose seizures are not controlled by medication, surgery to remove the seizure onset zone (SOZ) can be an effective treatment. However, accurately pinpointing the SOZ is crucial for surgical success and can be challenging. Electroencephalography (EEG), particularly intracranial EEG (iEEG) which uses electrodes placed directly on or within the brain, provides high temporal resolution but the complex interactions between brain areas during seizures make interpretation difficult for clinicians. Existing methods often rely on manual analysis or require extensive prior knowledge about the SOZ. This paper aims to automate and improve the accuracy of SOZ localization by leveraging advanced deep learning techniques.

Methods

The core of the proposed methodology is a Graph Neural Network (GNN) combined with an attention mechanism. Here's a breakdown:

  • Functional Networks (FNs): Brain activity from iEEG recordings is transformed into functional networks. Each electrode is a node, and the connections (edges) between electrodes are weighted by a functional connectivity (FC) metric. The paper explores two FC metrics: Pearson's correlation coefficient (for time-domain linear interactions) and Phase-Locking Value (PLV) (for frequency-domain phase synchronization, more robust to artifacts).
  • Graph Neural Network (GNN): The FNs are fed into a GNN. The GNN uses an "edge-aware message-passing" operation (specifically, an Edge-Conditioned Convolutional - ECC operator) to propagate information between connected nodes, effectively learning representations of brain states.
  • Attention Mechanism: A key innovation is the use of an "attention-based readout." This mechanism allows the GNN to automatically learn which electrodes (nodes in the graph) are most important for classifying a brain state as either interictal (between seizures) or ictal (during a seizure). This is done without any prior information about the SOZ.
  • Localization: After training the GNN for seizure detection, the attention scores assigned to each electrode are analyzed. By summing these scores over a period around the seizure onset, the authors derive an "importance score" for each electrode. Electrodes with higher scores are considered more likely to be part of the SOZ.

Datasets

The study utilizes two main types of data:

  • Human iEEG Data: Intracranial EEG data from eight human subjects with medically refractory epilepsy. These patients had at least five clinical seizures recorded and a clinical history of at least two years. The data was collected from subdural or intracerebral depth electrodes at a sampling rate of 500Hz. Seizures were manually annotated by electroencephalographers.
  • Simulated Data:
    • A simple network model of seizure initiation (Benjamin et al., 2012) was used.
  • The Virtual Brain (TVB) simulator (Sanz Leon et al., 2013) was employed to model a patient with temporal lobe epilepsy.

Key Insights and Ideas

  • Unsupervised SOZ Localization: The most significant insight is that the GNN can learn to localize the SOZ without explicit supervision on the SOZ itself. The attention mechanism implicitly learns to focus on relevant brain regions based on the task of seizure detection.
  • Attention as a Proxy for Importance: The attention scores directly correlate with the clinical identification of the SOZ. This suggests that the GNN's "focus" is biologically meaningful.
  • Uncertainty as a Feature: When electroencephalographers are uncertain about the SOZ, the GNN also exhibits uncertainty in its localization scores. This "conservative" behavior is valuable, as it can help clinicians by highlighting cases where more investigation is needed, rather than providing a potentially misleading confident prediction.
  • FC Metric Matters: The choice of functional connectivity metric (correlation vs. PLV) impacts localization performance, with PLV sometimes yielding better results, especially when dealing with noisy data. This highlights the importance of carefully selecting the right tools for representing brain networks.

Key Results

  • Seizure Detection: The GNN achieved an average ROC-AUC of 79.56% and PR-AUC of 81.24% using correlation as the FC metric, slightly outperforming a baseline CNN.
  • Seizure Localization:
    • For patients with a known SOZ, the GNN demonstrated high localization accuracy. For example, the average precision at K (AP@K) score was positive for both FC metrics across all patients and performance measures, indicating that at least one SOZ-associated electrode was consistently ranked in the top five.
  • In six out of eight cases, the GNN achieved a perfect AP@2 score when using PLV, suggesting a high chance of localizing at least two relevant electrodes.
  • The method showed good performance even with small datasets (as few as five seizures for training).
  • Uncertainty in Difficult Cases: For patients where clinicians could not confidently identify the SOZ (patients 4 and 6), the GNN also showed uniformly distributed attention scores, indicating uncertainty.

Limitations and Future Work

  • Dataset Size: While the method is data-efficient, larger datasets and longer-term clinical information would be beneficial for further validation and improved performance.
  • Hyperparameter Tuning: Patient-specific hyperparameter searches could potentially improve results.
  • Supervised Attention: Explicitly training the attention mechanism with SOZ information (though more labor-intensive) could lead to even more accurate localization.
  • FC Metric Exploration: Further research into combining or exploring different FC metrics could enhance performance. The paper notes that correlation is better for detection, while PLV might be better for localization due to its sensitivity to synchronous oscillatory coupling.
  • Computational Cost: While the current approach is efficient, exploring methods to further reduce computational cost, especially related to the sparsification threshold, is a potential area for future work.

Summary updated

Abstract

Abstract In this paper, we introduce a machine learning methodology for localising the seizure onset zone in subjects with epilepsy. We represent brain states as functional networks obtained from intracranial electroen-cephalography recordings, using correlation and the phase locking value to quantify the coupling between different brain areas. Our method is based on graph neural networks (GNNs) and the attention mechanism, two of the most significant advances in artificial intelligence in recent years. Specifically, we train a GNN to distinguish between functional networks associated with interictal and ictal phases. The GNN is equipped with an attention-based layer that automatically learns to identify those regions of the brain (associated with individual electrodes) that are most important for a correct classification. The localisation of these regions does not require any prior information regarding the seizure onset zone. We show that the regions of interest identified by the GNN strongly correlate with the localisation of the seizure onset zone reported by electroencephalographers. We report results both for human patients and for simulators of brain activity. We also show that our GNN exhibits uncertainty on those patients for which the clinical localisation was unsuccessful, highlighting the robustness of the proposed approach.
BibTeX
@article{grattarola2022seizure,
  author = {Daniele Grattarola and Lorenzo Livi and Cesare Alippi and Richard Wennberg and Taufik A. Valiante},
  title = {{Seizure localisation with attention-based graph neural networks}},
  journal = {Expert Systems with Applications},
  year = {2022},
  doi = {10.1016/j.eswa.2022.117330},
}
Figure