bioRxivNeurosciencePreprint
CViT-ESP: Lightweight Pre-trained Vision Transformers for EEG-based Epileptic Seizure Prediction
Abstract
Background and Objective Epileptic seizure prediction is a critical challenge requiring the discrimination of subtle preictal physiological changes from interictal brain activity. While deep learning has shown promise in this domain, existing models often face limitations due to small EEG datasets, high computational costs for training from scratch, and a lack of patient-independent generalizability. In this paper, we present a novel framework for EEG-based seizure prediction that leverages pre-trained Vision Transformers (ViTs) through custom architectural modifications and optimized re-training strategies. Methods Our primary contributions include: [bullet]CVIT-ESP: A family of vision transformer architectures that replaces standard patch embedding layers with custom N-dimensional CNN stages to refine EEG representations. [bullet] ESPFormer: A lightweight, custom-designed transformer specifically engineered to mitigate overfitting on limited-scale EEG datasets. We identified optimal fine-tuning combinations for transformer blocks by devising a heuristic search-space reduction strategy, significantly reducing the training complexity. We validated our methods using the patient-independent MLSPred-Bench, involving 12 diverse benchmarks with varying seizure prediction horizons. Results Results demonstrate a clear progression in performance: while prior ResNet and vanilla Transformer models achieved an AUC-ROC of 69.0%, our CVIT-ESP architectures achieved the highest performance with a maximum average AUC of 76.4%. Conclusions These findings suggest that adapting pre-trained ViTs with domain-specific CNN front-ends and strategic fine-tuning offers a robust, generalizable, and resource-efficient path forward for clinical seizure prediction systems. Our code is available at: https://github.com/pcdslab/CVitEsp and https://github.com/pcdslab/ESPFormer
- assay: electronic health records
- research focus: drug response / drug discovery
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Utilizing Pretrained Vision Transformers and LargeLanguage Models for Epileptic Seizure Prediction
Paras Parani, Umair Mohammad, Fahad Saeed·International Conference on Data Science and Machine Learning Applications (CDMA)Peer-reviewed·Feb 16, 2025
- Pre-trained Vision Transformers for Seizure Prediction: A Reproducible Baseline with Event-Based Evaluation and Statistical Validation
Ziyuan Yin, John Moraros, Shuihua Wang·bioRxiv·Mar 14, 2026
- TSD: Transformers for Seizure Detection
Y. Ma, C. Liu, … O. Kavehei·bioRxiv·Jan 24, 2023
- MLSPred-Bench: ML-Ready Benchmark LeveragingSeizure Detection EEG data for Predictive Models
Umair Mohammad, Fahad Saeed·bioRxiv·Jul 17, 2024
- Multiscale predictive modeling robustly improves the accuracy of pseudo-prospective seizure forecasting in drug-resistant epilepsy
Gagan Acharya, Erin C. Conrad, … Erfan Nozari·Journal of Neural EngineeringPeer-reviewed·Jun 2, 2026
- An Evolving-Dynamic Network Activity Approach toEpileptic Seizure Prediction using Machine Learning
Christine Joy Liu, Jordan M. Sorokin, … John R. Huguenard·bioRxiv·Nov 29, 2020