Temporal Graph Convolutional Networks for Automatic Seizure Detection

Ian C. Covert, Balu Krishnan, Imad Najm, Jiening Zhan, Matthew Shore, John Hixson, Ming Jack Po

Abstract

Researchers have developed Temporal Graph Convolutional Networks (TGCNs) to automate the detection of seizures in EEG data. By treating EEG leads as nodes in a graph, the model leverages the spatial relationships of the brain's electrical activity, matching state-of-the-art performance while providing clinicians with intuitive "heatmaps" to localize seizure activity in both time and space.

Introduction: The Challenge of EEG Analysis

Electroencephalograms (EEGs) are the gold standard for diagnosing epilepsy, but their analysis is a labor-intensive bottleneck. A single patient’s daily record can contain billions of data points, often requiring two to three hours of manual inspection by a specialist. While deep learning offers a path to automation, standard models struggle with the unique "structural time series" nature of EEG data.

EEGs are not just a collection of independent signals; the physical placement of sensors (leads) on the scalp provides critical context about how different brain regions interact. Standard 1D convolutional networks (TCNNs) ignore this spatial structure, while 2D CNNs (designed for images) force sensors into a grid that does not reflect biological reality.

Methods: The TGCN Architecture

The authors propose the Temporal Graph Convolutional Network (TGCN), which utilizes Spatio-Temporal Convolutional (STC) layers to perform feature extraction shared across both time and space.

Comparison of structural assumptions for EEG data: (D) 1D chain used in TCNNs, (F) 2D grid used in standard CNNs, and (B) the proposed graph-based representation.

Graph Representation and STC Layers

The EEG is represented as a graph $(X, A)$, where $X$ is the signal data and $A$ is an adjacency matrix representing the physical proximity of the 21 leads. The STC layers apply a 1D convolution over the time dimension for each lead independently, then aggregate information from neighboring leads.

Spatio-temporal graph representation of EEG data. (C) shows the 21-lead scalp layout as a graph, while (A) and (B) illustrate the temporal sequence of these graphs used for convolution.

Propagation and Preprocessing

The researchers tested two propagation rules for combining node data. "Rule B," which concatenates a node’s own features with its neighbors' features before a non-linear transformation, was found to prevent a node's unique signal from being "diluted" by its neighbors. To align with clinical practice, signals were preprocessed using a Short-Time Fourier Transform (STFT) to convert raw waveforms into the frequency domain, mirroring how human experts typically read EEGs.

Datasets and Evaluation

The study utilized a massive clinical dataset from the Cleveland Clinic Foundation (2005–2017), comprising over 21,000 hours of EEG recordings from 1,063 patients and 18,741 recorded seizure events. Crucially, the models were evaluated on cross-patient detection. This "leave-one-patient-out" approach is significantly more challenging than patient-specific modeling because brain activity patterns vary wildly between individuals.

Key Results and Clinical Insights

The TGCN achieved an AU-ROC of 0.928, matching or slightly exceeding state-of-the-art models like SCNN and 2D TCNN. In the critical metric of sensitivity at high specificity (99%)—essential for avoiding "alarm fatigue" in hospitals—the TGCN performed competitively.

Explainability and Localization

A key advantage of the TGCN is its clinical interpretability. By using "sequence dropout" (systematically occluding specific leads), the model can identify which leads most influence its confidence. This allows for the creation of spatial maps that localize seizure origins. Qualitative results showed these importance scores align closely with human epileptologists' assessments, correctly identifying focal seizures in specific regions like the right temporal lobe.

Discussion and Future Directions

The TGCN's parameter efficiency, resulting from shared filters across time and space, reduces the risk of overfitting compared to models that learn separate filters for every lead. However, the authors noted high variance between training runs, indicating sensitivity to initialization. Future work may involve integrating Recurrent Neural Networks (RNNs) for longer-term temporal dependencies or applying the TGCN framework to other medical structural time series, such as multi-lead EKGs or pressure waveforms from catheters.

Summary updated

BibTeX
@inproceedings{covert2019temporal,
  author = {Ian C. Covert and Balu Krishnan and Imad Najm and Jiening Zhan and Matthew Shore and John Hixson and Ming Jack Po},
  title = {{Temporal Graph Convolutional Networks for Automatic Seizure Detection}},
  booktitle = {MLHC},
  year = {2019},
}
Figure