Quantifying the Generalization Gap in Seizure Detection: A Large-Scale Empirical Benchmark via the SzCORE Challenge

Jonathan Dan, Amirhossein Shahbazinia, Christodoulos Kechris, David Atienza

Automated seizure detection using electroencephalogram (EEG) recordings has long been considered a "holy grail" for neurology. A highly accurate system could continuously alert staff in Epilepsy Monitoring Units (EMUs) or assist patients in home settings. However, while academic literature frequently boasts near-perfect accuracy, clinical adoption remains stubbornly low.

The critical bottleneck is the generalization gap. Most machine learning models are trained and tested on small, highly curated, or public datasets. When deployed against "wild" data—featuring new patients, different hospital equipment, or artifacts from patient mobility—these models often fail spectacularly. Compounding this issue is a lack of standardized evaluation metrics, making fair comparisons between algorithms nearly impossible. To rigorously assess this gap, researchers launched the SzCORE Challenge, a large-scale empirical study evaluating 28 state-of-the-art algorithmic architectures.

A Rigorous Benchmarking Methodology

To ensure an unbiased evaluation, the researchers collected 28 algorithmic executions (representing 20 unique architectures) from the research community, ranging from classical feature engineering (like Random Forests) to modern Deep Learning approaches (Transformers, U-Nets, and CNNs).

Key methodological pillars included:

  • Containerization: Participants submitted pre-trained models as Docker images. This prevented "data leakage" and ensured evaluators could test the models without exposing the internal mechanics.
  • Standardized Evaluation: The study utilized the SzCORE framework, focusing on clinically relevant event-based metrics (whether the model caught the actual seizure event) rather than sample-based metrics.
  • A Strictly Held-Out Dataset: The benchmark relied on the Filadelfia dataset, a private collection from the Filadelfia Danish Epilepsy Centre. It comprises 65 subjects, 4,360 hours of continuous EEG, and 398 gold-standard annotated seizures. Crucially, it includes both adults and children recorded on portable systems, introducing realistic noise and artifacts.

Key Findings: The Performance Cliff

The independent evaluation revealed significant performance variability and exposed a stark reality about current machine learning methodologies in this space.

  • The Performance Cliff: The most striking discovery was the massive discrepancy between self-reported and independent results. Models that claimed F1-scores of 80-90% in published papers plummeted to just 32% on the private dataset. This indicates that many published models are heavily over-optimized for specific public datasets.
  • Top Performance vs. Stability: The winning algorithm, Sz Transformer, achieved the highest aggregate F1-score of 32% (37% sensitivity, 29% precision) with 1.34 false positives per day. However, it was not the most stable across the patient population. Other models demonstrated better consistency, highlighting a critical trade-off: a model that performs well on average but fails catastrophically on "outlier" patients poses a major clinical safety risk.
  • Algorithmic Quirks in False Positives: Different algorithms did not fail in the same way. Only 25% of the algorithms agreed on 91% of the false detections, suggesting that false positives are often driven by specific algorithmic quirks rather than universal artifacts in the EEG signal.
  • The Challenge of Short Seizures: Seizures that were caught by fewer than 25% of models were significantly shorter (median 48 seconds) compared to easily detected ones (median 118 seconds). Most sliding-window algorithms simply miss these brief ictal patterns.

Moving Forward: A Living Benchmark

While the top research models are beginning to approach the performance of established commercial systems, an F1-score of 32% remains far from the clinical ideal. Clinicians often require much higher sensitivity, even if it necessitates managing more false alarms.

To bridge the generalization gap and accelerate the development of robust models, the researchers have open-sourced their evaluation infrastructure. This transitions the one-time SzCORE Challenge into a continuous, "living" benchmark platform. Future iterations will aim to include multi-centric data to account for diverse hospital protocols and allow for tunable sensitivity-precision thresholds, enabling clinicians to adjust models based on the specific stakes of their monitoring environment. By fostering reproducible research, this platform paves the way for clinically viable seizure detection algorithms.

Summary updated

BibTeX
@inproceedings{dan2026quantifying,
  author = {Jonathan Dan and Amirhossein Shahbazinia and Christodoulos Kechris and David Atienza},
  title = {{Quantifying the Generalization Gap in Seizure Detection: A Large-Scale Empirical Benchmark via the SzCORE Challenge}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=3vhn9kVVY5},
}

Loading related content...

Figure