SeizureFormer: A Transformer Model for IEA-Based Seizure Risk Forecasting

Tianning Feng, Juntong Ni, Ezequiel Gleichgerrcht, Wei Jin
4/13/2025
eess.SPcs.LG

No confident code implementation found for this paper.

Abstract

We present SeizureFormer, a Transformer-based model for long-term seizure risk forecasting using interictal epileptiform activity (IEA) surrogate biomarkers and long episode (LE) biomarkers from responsive neurostimulation (RNS) systems. Unlike raw scalp EEG-based models, SeizureFormer leverages structured, clinically relevant features and integrates CNN-based patch embedding, multi-head self-attention, and squeeze-and-excitation blocks to model both short-term dynamics and long-term seizure cycles. Tested across five patients and multiple prediction windows (1 to 14 days), SeizureFormer achieved state-of-the-art performance with mean ROC AUC of 79.44 percent and mean PR AUC of 76.29 percent. Compared to statistical, machine learning, and deep learning baselines, it demonstrates enhanced generalizability and seizure risk forecasting performance under class imbalance. This work supports future clinical integration of interpretable and robust seizure forecasting tools for personalized epilepsy management.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{feng2025seizureformer,
  title  = {SeizureFormer: A Transformer Model for IEA-Based Seizure Risk Forecasting},
  author = {Tianning Feng and Juntong Ni and Ezequiel Gleichgerrcht and Wei Jin},
  year   = {2025},
  eprint = {2504.16098},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.16098v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.16098.svg)](https://codeofpaper.com/paper/2504.16098)

Discussion