Using vision transformers for electrographic seizure classification to aid physician review of intracranial electroencephalography recordings

We introduce a vision transformer (ViT)-based approach for automated electrographic seizure classification using time-frequency spectrogram representations of intracranial EEG (iEEG) recordings collected from patients implanted with the NeuroPace<sup>®</sup> RNS<sup>®</sup> System. The ViT model was trained and evaluated using 5-fold cross-validation on a large-scale dataset of 136,878 iEEG recordings from 113 patients with drug-resistant focal epilepsy, achieving an average test accuracy of 96.8%. Clinical validation was performed on an independent expert-labeled dataset of 3,010 iEEG recordings from 241 patients, where the model achieved 95.8% accuracy and 94.8% F1 score on recordings with unanimous expert agreement, outperforming both ResNet-50 and standard 2D CNN baselines. To evaluate generalizability, the model was tested on a separate out-of-distribution dataset of 136 recordings from 44 patients with idiopathic generalized epilepsy (IGE), achieving over 75% accuracy and F1 scores across all expert comparisons. Explainability analysis revealed focused attention on characteristic electrographic seizure patterns within iEEG time-frequency spectrograms during high-confidence seizure predictions, while more diffuse attention was observed in non-seizure classifications, providing insight into the underlying decision process. By enabling reliable electrographic seizure classification, this approach may assist physicians in the manual review of large volumes of iEEG recordings.

Authors

Institutions

Publication Details

Journal
Frontiers in Human Neuroscience
Published
2025-10-08
DOI
https://doi.org/10.3389/fnhum.2025.1680395
Citations
1
Primary Topic
EEG and Brain-Computer Interfaces
Type
article
Field-Weighted Citation Impact
1.43

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using vision transformers for electrographic seizure classification to aid physician review of intracranial electroencephalography recordings

Christopher B. Traner, David Greene, Shawna Benard, Wade Barry et al.
1 citations
Frontiers in Human Neuroscience
EEG and Brain-Computer Interfaces
1.43
article

Using vision transformers for electrographic seizure classification to aid physician review of intracranial electroencephalography recordings

Christopher B. Traner, David Greene, Shawna Benard, Wade Barry, Muhammad Furqan Afzal, Sharanya Arcot Desai, Cairn G. Seale, Martha J. Morrell, Thomas K. Tcheng, Jonathan T. W. Kuo
article en
1 citations

Abstract

We introduce a vision transformer (ViT)-based approach for automated electrographic seizure classification using time-frequency spectrogram representations of intracranial EEG (iEEG) recordings collected from patients implanted with the NeuroPace<sup>®</sup> RNS<sup>®</sup> System. The ViT model was trained and evaluated using 5-fold cross-validation on a large-scale dataset of 136,878 iEEG recordings from 113 patients with drug-resistant focal epilepsy, achieving an average test accuracy of 96.8%. Clinical validation was performed on an independent expert-labeled dataset of 3,010 iEEG recordings from 241 patients, where the model achieved 95.8% accuracy and 94.8% F1 score on recordings with unanimous expert agreement, outperforming both ResNet-50 and standard 2D CNN baselines. To evaluate generalizability, the model was tested on a separate out-of-distribution dataset of 136 recordings from 44 patients with idiopathic generalized epilepsy (IGE), achieving over 75% accuracy and F1 scores across all expert comparisons. Explainability analysis revealed focused attention on characteristic electrographic seizure patterns within iEEG time-frequency spectrograms during high-confidence seizure predictions, while more diffuse attention was observed in non-seizure classifications, providing insight into the underlying decision process. By enabling reliable electrographic seizure classification, this approach may assist physicians in the manual review of large volumes of iEEG recordings.

Frontiers in Human NeuroscienceVol. 19
University of Southern California (US), Cleveland Clinic (US), NeuroPace (United States) (US)
National Institutes of Health
Openalex Percentile: Top 15%
EEG and Brain-Computer Interfaces
1.43
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.