ΒΆPaper Feed

Issue 44 Β· Pick 09 Non-invasive BCI βœ“ read

Same pipelines, different answers: how evaluation design shapes EEG seizure prediction

song, z., Pedersen, M., Henare, D.

TL;DR: Take five published scalp-EEG seizure-prediction pipelines β€” from a 90-feature linear classifier to an 850K-parameter transformer β€” freeze them, and change nothing except how the train/test split is drawn. Under honest subject-held-out evaluation on CHB-MIT, all five collapse to AUC 0.527–0.553, statistically indistinguishable from each other and barely above chance. Under the random within-patient window splits common in the literature, the simplest pipeline scores 0.815. The authors trace every window back to its source recording and show exactly where the leakage happens: in all ten auditable cases, raw EEG samples from the same recordings crossed the train/test boundary. If you build or evaluate EEG decoders of any kind β€” not just seizure prediction β€” this paper is a forensic case study in how most of a reported score can come from the split, not the model.

The problem: a results table you can't read

Seizure prediction from scalp EEG has a long history of papers reporting AUCs in the 0.85–0.95 range, numbers that would be transformative if they meant what they appear to mean. The task is usually framed as window classification: cut the EEG into short windows, label windows from the minutes before a seizure as preictal and windows far from any seizure as interictal, and train a classifier to tell them apart. A reliable preictal detector would give patients time to get somewhere safe or take a fast-acting drug.

The trouble is that "classify preictal vs. interictal windows" is not one task but several, depending on what the test set shares with the training set. Consider three possible splits:

  1. Random window allocation: shuffle all windows from a patient, split 60/20/20. Overlapping windows from the same seizure's preictal period β€” windows that literally share raw samples β€” can land on opposite sides of the split.
  2. Chronological within-patient: train on a patient's early seizures, test on their later ones, keeping each seizure's windows together.
  3. Subject-held-out: test on people the model has never seen. This is the cold-start scenario any wearable device faces on day one with a new patient.

These are three different generalization questions, and prior work (Shafiezadeh et al., Brookshire et al.) has flagged that cross-validation results in this field often don't transfer. What hadn't been done is the clean controlled experiment: hold the models exactly fixed and vary only the evaluation, with a full audit of what information crosses each boundary. That's this paper's contribution β€” less a new method than a measurement of how much of the field's reported performance is an artifact of split design.

A. Random window split (common in literature) seizure overlapping preictal windows share raw samples, yet go to train (orange) and test (purple) blue = train, green = test AUC 0.815

B. Chronological blocks (episodes kept intact) train (early seizures) validation test (later) no seizure block or overlapping window crosses a boundary AUC 0.572

C. Subject-held-out (cold start) 14 training patients 4 validation 4 test patients, never seen AUC 0.527–0.553

Three ways to split the same windows with the same models. In design A, overlapping preictal windows from one seizure can land on both sides of the split β€” the audit found raw-sample overlap across the boundary in all ten eligible cases. Designs B and C remove that sharing, and the scores collapse. AUC values from Table 1 and Figure 3 of the paper (PSD+LDA for A and B; all five pipelines for C).

The setup: everything frozen except the split

The authors work on CHB-MIT, the standard public pediatric scalp-EEG dataset (22 independent subjects after merging two folders from the same child, 182 annotated seizures, of which 69 yield usable preictal windows under their exclusion rules β€” 17,424 windows total). Windows are 20 s; preictal means 5–30 minutes before an annotated onset, with preictal windows overlapping by 10 s; interictal windows are sampled sparsely, excluding 4 hours after any seizure. Each window is z-scored per channel independently, so no normalization statistic leaks across the split.

The five pipelines span the complexity spectrum deliberately: PSD+LDA (Welch band power in five classical bands Γ— 18 channels = 90 features, linear discriminant analysis), EEGNet (7K parameters), a temporal convolutional network (245K), a 1D-CNN (520K), and EEG-Conformer, a transformer-style model (853K). These are released implementations with no architecture search β€” the point is not to crown a winner but to see whether architecture matters at all once the evaluation is honest.

Three experiments:

Cold start. 20 random partitions of the 22 subject groups into 14 train / 4 validation / 4 test. No target-subject data touches training, early stopping, or threshold selection.

Within-patient allocation. For each eligible patient, compare two splits of the identical windows with identical class counts: random shuffling versus chronological blocks where every seizure's preictal windows stay together and later seizures are held out. Only PSD+LDA is used here, because it has fixed features and no checkpoint selection to confound things.

Threshold transfer. Pick a threshold on validation interictal scores so that at most 1 in 60 (β‰ˆ1.67%) of validation interictal windows fire positive. Carry it unchanged to held-out subjects and see whether the false-positive rate holds.

Result 1: on new patients, architecture is noise

Across 20 partitions, mean pooled AUC ranged from 0.527 (PSD+LDA and the Conformer β€” the smallest and largest models tied) to 0.553 (TCN). That 0.026 spread between architectures is smaller than each model's own partition-to-partition standard deviation (0.06–0.08). Weighting each subject group equally instead of pooling windows pushed the means down to 0.502–0.523 β€” and flipped the ranking, putting 1D-CNN ahead of TCN. When the model ranking depends on the summary statistic, there is no ranking.

Cold-start AUC on unseen subjects (CHB-MIT, 20 partitions)mean AUC00.10.20.30.40.50.60.5270.502PSD+LDA0.5340.519EEGNet0.5530.515TCN0.5410.5231D-CNN0.5270.517ConformerPooled AUCSubject-balanced AUCTable 1 of the paper. Partition-to-partition SDs are 0.06–0.08, larger than any between-model gap. The 0.5 chance line is barely below the bars.

The subject-balanced view also exposed heterogeneity that pooling hides: some subject groups scored well below 0.5 and others well above it (paper's Figure 2B). Whatever signal these models capture on CHB-MIT, it does not transfer stably across children.

The external check is even blunter: PSD+LDA applied zero-shot to the Siena scalp-EEG database (13 adult participants, 5,657 windows) scored a mean pooled AUC of 0.480 β€” slightly below chance. One baseline, one external dataset, but consistent with the within-dataset cold-start picture.

Result 2: the forensics β€” where the 0.24 AUC comes from

This is the section worth your time (Window provenance and chronological block control, plus the corresponding Results). Rather than just asserting "leakage," the authors reconstructed the provenance of every window: which EDF recording it came from, its sample position, its reconstructed wall-clock time, and every seizure it's associated with. They verified the reconstruction against the saved arrays down to a maximum normalized discrepancy of 5.96 \times 10^{-8} β€” these are the same bytes.

With that map, they audited the original index-based within-patient split (concatenate windows, cut at 60% and 80% by index β€” a pattern you will recognize from countless EEG repos). In all ten eligible cases, at least one seizure contributed windows to multiple partitions, and at least one pair of windows sharing raw samples straddled a boundary (16 such pairs total). The "test set" contained signal fragments the model had trained on.

The chronological block control closes every gap: overlapping preictal intervals are merged into indivisible blocks, blocks are ordered by reconstructed time, boundaries fall at midpoints between blocks, and no window sits within 10 s of a cut. Eleven cases qualified. The comparison condition reshuffles the same retained windows with exactly matched class counts per partition, 20 times. So the only thing that differs is the allocation rule.

PSD+LDA within-patient AUC: chronological blocks vs. matched random splitAUC00.20.40.60.81chb01chb04chb05chb06chb08chb09chb10chb13chb14chb15chb22Chronological blocks (mean 0.572)Random windows (mean 0.815)Figure 3 of the paper. Per-case values are read approximately from the figure; the summary statistics are exact: blocked 0.572 Β± 0.171, random 0.815 Β± 0.089, paired difference 0.243 Β± 0.201 (range 0.024–0.601). Random allocation won in all 11 of 11 cases.

Random allocation won in all 11 cases, by 0.243 AUC on average and up to 0.601. In chb04, chb13, and chb15, the chronological AUC fell below 0.4 while the random AUC sat between 0.79 and 0.91 β€” on those patients, the "predictive signal" under random splits was almost entirely an artifact of temporal proximity between train and test windows.

The authors are careful about attribution here, and it's one of the paper's more thoughtful points: randomization changes two things at once. It lets temporally related windows (including raw-sample overlaps) cross the split, and it also spreads training coverage across the whole recording's time span, so the test distribution is never far from something seen in training. The 0.24 gap is the combined effect; the paper explicitly declines to decompose it, and recommends treating event membership, time order, and sample overlap as three separate checks. That's a useful discipline: "leakage" is not one thing.

Result 3: thresholds don't travel either

AUC is threshold-free, but a deployed system needs an operating point. The authors set a threshold on validation interictal scores to allow at most 1/60 β‰ˆ 1.67% false positives, then froze it and applied it to held-out subjects. The constraint did not hold: mean test false-positive proportions ran 1.81–3.13%, and every pipeline blew past the target in 6–10 of 20 partitions β€” sometimes by several multiples. Meanwhile sensitivity at those strict thresholds was 2.33–5.56% of preictal windows. So even if you could tolerate the false-alarm drift, you'd be catching one preictal window in twenty or worse.

This matters because score distributions shift across subjects even when rank-ordering (AUC) is preserved. A validation-calibrated operating point is a between-subject generalization claim of its own, separate from discrimination, and it fails here independently.

Why this generalizes beyond seizure prediction

The failure mode dissected here β€” index-based splits of windowed, overlapping time series from a small number of subjects β€” is endemic across EEG decoding, and more broadly across biosignal ML: sleep staging, emotion recognition, motor imagery, imagined speech, EEG foundation-model fine-tuning benchmarks. Any time you see "windows were randomly split 80/20" on data with per-subject temporal structure, the mechanism in Figure 3 of this paper applies. Brookshire et al. made the segment-leakage argument before; what this study adds is the controlled, same-model, same-data demonstration with a byte-level provenance audit, plus the threshold-transfer analysis β€” and, importantly, released window manifests, partitions, and archived predictions so new models can be tested on identical terms. That artifact may be the most lasting contribution: a leakage-audited benchmark where a claimed improvement actually has to beat 0.55.

There's also a sobering scientific reading. The cold-start result says that, with these features and these architectures on this dataset, there is very little subject-invariant preictal signature in scalp EEG band power or learned convolutional/attention features. The architectures span four orders of magnitude in parameter count and land within 0.03 AUC of each other. Whatever separates the random-split 0.815 from the cold-start 0.53 is patient-specific and recording-specific structure, not a general physiology of the pre-seizure brain visible from the scalp.

What to be skeptical about

The authors flag their limits candidly, and they're real:

  • This is window classification, not alarms. No continuous evaluation, no alarm persistence or refractory rules, noncausal (zero-phase) filtering. The numbers here don't directly bound what a real-time system could do β€” in either direction.
  • The negative result doesn't prove the signal is absent. Five fixed pipelines near chance under subject-held-out splits means these pipelines fail, not that no features would succeed. Patient-specific calibration and domain adaptation (which the paper explicitly brackets as a different task) have shown gains elsewhere, and intracranial EEG is a different story entirely.
  • Small, pediatric cohort. CHB-MIT has effectively 22 subjects; only 69 of 182 seizures yield preictal windows under the exclusion rules. The 20 repeated partitions reuse subjects, so their spread isn't 20 independent estimates β€” the authors correctly refuse to report naΓ―ve confidence intervals.
  • The chronological control covers one model and 11 cases that don't coincide with the ten-case audit cohort, so the 0.815β†’0.572 drop isn't a before/after correction of the same comparison. And the chronological control still uses retrospectively filtered data.
  • Post-hoc analyses. The block control and threshold transfer were added after inspecting the original benchmark, with rules fixed before summarizing outcomes, but it's exploratory and not preregistered. This is a preprint, not yet peer-reviewed.

Bottom line

If the result holds β€” and the mechanism is transparent enough that it almost certainly does β€” then a large fraction of the scalp-EEG seizure-prediction literature's headline numbers measure split design rather than predictive physiology. The practical prescriptions are concrete and cheap: publish a window manifest (subject, recording, seizure block, sample interval per window); match the split to the deployment question (subject separation for cold start, temporal separation for within-patient); carry validation thresholds unchanged into testing and report both false-positive rate and sensitivity at that point. For anyone evaluating EEG decoders or the growing crop of EEG foundation models, this paper is a template for what an honest evaluation section should look like β€” and a reminder that on this problem, the evaluation moved the answer by 0.29 AUC while the architecture moved it by 0.03.