Seizure Detection That Travels from Adults to Children: Spatiotemporal Spread of Self-Relative Deviations

Seizure detectors trained on adult hospital EEG tend to fail on children. Children's background brain rhythms have different frequencies and amplitudes, and some pediatric seizures, such as infantile spasms, are very brief (Deep learning-based real-time seizure detection and multi-seizure classification on pediatric EEG). A detector that has learned "adult background plus something odd" as its cue for a seizure has learned a population shortcut. It has not learned what a seizure is. This note makes a specific bet about the cue that should survive the age shift. Before the network sees a recording, we re-express every electrode's signal as its deviation from that same recording's own typical background, estimated without labels. A 3D convolution then learns how those deviations spread across neighboring electrodes over time. The idea is that the absolute look of the background is population-specific, while the pattern of a local disturbance growing and propagating across the scalp is what a seizure actually is.

In two sentences for a colleague: normalize each recording against itself so that age-dependent background disappears from the input. Then use space-time convolutions to detect the spread of the remaining anomaly, and test on a strict adult-to-pediatric split whether that spread, rather than per-channel waveform shape, is what transfers.

Core Claim

A 3D convolution is a filter that slides jointly over two spatial axes and time (Learning Spatiotemporal Features with 3D Convolutional Networks). Applied to EEG laid out on a scalp grid, it can see a disturbance moving from one electrode to its neighbors. Prior 3D EEG models show this helps within a dataset, but none tests it under population shift. Automated Detection of Epileptic Spikes and Seizures Incorporating a Novel Spatial Clustering Prior groups sensors by head coordinates into a 3D volume. It reports weighted F1 of 93.2% on TUSZ, and its performance drops sharply when sensor coordinates are scrambled. It evaluates only static within-dataset splits. Spatio-Temporal Representation of an Electoencephalogram for Emotion Recognition Using a Three-Dimensional Convolutional Neural Network finds that factorized (2+1)D convolutions beat full 3D ones on DEAP, but it pools subjects in cross-validation. Both papers motivate the proposal: spatial topology carries signal. Neither says whether that signal is population-invariant or just another shortcut.

We claim three things. First, most of the adult-to-child failure comes from each channel's absolute spectral background. Second, removing that background with an unlabeled per-recording normalization makes a spatiotemporal model transfer much better than the same model on raw input. Third, after normalization, joint spatial spread is the component that carries across populations. A per-channel temporal model given identical normalized input should therefore close less of the gap. Each claim can fail separately, and the experiments are built to show which one does.

Research Program

The input construction is the only new mechanism. For recording $r$, electrode $c$, frequency band $b$ (delta through gamma), and short window $t$, let $P_{r,c,b,t}$ be band power. The network receives

$$z_{r,c,b,t} = \frac{\log P_{r,c,b,t} - \mathrm{med}_r(\log P_{c,b})}{\mathrm{MAD}_r(\log P_{c,b})},$$

where $\mathrm{med}_r$ and $\mathrm{MAD}_r$ are the median and median absolute deviation over all windows of that recording for that electrode and band. Seizures occupy a small fraction of long clinical recordings, so these robust statistics approximate the patient's own background. They need no labels and no gradient updates at deployment. We also keep a narrow-band raw-waveform channel, normalized the same way, so that sharp transients are not lost to band-power smoothing.

The resulting tensor has axes of scalp position, band, and time. We arrange electrodes on a grid from their standard 10–20 positions. The 10–20 system places electrodes at fixed fractions of head circumference, so it already corrects for the difference in head size between infants and adults. This is why we do not pursue kernels that adapt to cranial geometry: the placement convention has largely handled that shift. The backbone is a factorized (2+1)D residual network, following the finding by Cho et al. that factorization is both cheaper and more accurate. Its temporal receptive field is set to cover both brief spasms and prolonged rhythmic discharges. This choice also addresses the warning from Binary Single-dimensional Convolutional Neural Network for Seizure Prediction that kernels treating space and time as interchangeable blur physically different axes. Factorization keeps the two axes separate at each layer while the stack as a whole can still represent propagation.

The analysis has three parts. The first is the transfer gap: within-TUSZ performance minus TUSZ-to-CHB-MIT performance. The second is an age-shortcut probe, a linear regressor from frozen pooled features to patient age, used wherever age metadata is available in recording headers. The third is a topology-shuffle test that permutes electrode grid positions consistently across train and test. If spread is the transferable cue, shuffling should hurt more out of distribution than in distribution.

Baselines

The naive reference is the same (2+1)D network trained by plain empirical risk minimization on per-channel z-scored raw EEG from TUSZ and applied unchanged to CHB-MIT. It shows how large the adult-to-pediatric gap is with no special handling.

The strongest existing competitor for this question is a frozen EEG foundation model with an optimization-free test-time adapter. The configuration is CBraMod (CBraMod: A Criss-Cross Brain Foundation Model for EEG Decoding), which factorizes attention into separate spatial and temporal paths, combined with T3A as benchmarked in Test-Time Adaptation for EEG Foundation Models: A Systematic Study under Real-World Distribution Shifts. T3A updates class prototypes on unlabeled target data without backpropagation. That study reports that T3A on REVE-Base gave a +18.9 point gain in balanced accuracy on out-of-distribution CHB-MIT over no adaptation. It also found that gradient-based adaptation (Tent, SHOT) degraded EEG models. No reported absolute balanced accuracy for that configuration was found on Lacuna, so we will rerun it ourselves under the same protocol. For fairness, we will train the heads on the same TUSZ training patients, use the same shared electrode set and the same CHB-MIT patient-level test folds, and give each method an equal hyperparameter search budget chosen on a held-out TUSZ validation split, never on CHB-MIT. Beating it means a higher CHB-MIT balanced accuracy and AUROC at a matched false-alarm rate per hour, with the difference outside patient-bootstrap confidence intervals. We will also report whether our input normalization combined with T3A beats either method alone, because the two methods are complementary rather than exclusive.

The domain-generalization reference is BioDG from Towards Domain Generalization for ECG and EEG Classification: Algorithms and Benchmarks. BioDG is a 1D ResNet that concatenates features from several depths. It reaches 68.04% accuracy on cross-nationality EEG emotion recognition and raises out-of-distribution ECG Macro-F1 from 23.40% to 35.88%. We run it on the same seizure split.

Two ablations isolate the key ingredient. The first is the proposed network with spatial kernel size one, a purely per-channel temporal model on identical self-relative input. It isolates the value of joint spread. The second is the proposed network on raw per-channel z-scored input. It isolates the value of background removal. As an upper-bound reference, we train on CHB-MIT itself with leave-patient-out splits. EpilepsyFM reports 92.01% balanced accuracy on CHB-MIT in its own fine-tuning setting (EpilepsyFM: Foundation Model for Learning Generalized Epileptic Representations from EEG and SEEG Signals), which gives a sense of the ceiling when in-population labels exist.

Why not just…?

Why not just z-score each channel per recording? This is the most serious threat, because our normalization is a robust, band-resolved version of the same move. Plain z-scoring removes amplitude differences but leaves the relative spectral shape of the background intact, and that shape is exactly what differs between developing and adult brains. The raw-input ablation above is in fact the z-scored model. If it matches the self-relative model on CHB-MIT, the band-wise normalization adds nothing, and we will report that plainly.

Why not just use a foundation model with T3A? The NeuroAdapt-Bench results show T3A is the one adaptation method that reliably helps EEG. It adjusts only the classifier prototypes on features that already contain the population's background, and its gains on SleepEDF-78 were marginal. We expect it to fix label-prior shift but not feature-level shortcuts. The combined condition settles this: if T3A alone closes the gap as fully as our input does, the mechanism is unnecessary.

Why not just use a 1D temporal model, which is cheaper and respects axis asymmetry? BSDCNN reaches 0.970 AUC on CHB-MIT for seizure prediction with far less compute, so this is a credible alternative. The spatial-kernel-size-one ablation answers it directly on identical input. If it transfers as well, we conclude that spatial spread is not the transferable cue and recommend the 1D model for deployment.

Why not just add pediatric data to training? Where labeled pediatric data exist, this is better, and our upper-bound run quantifies how much better. The practical problem is that pediatric seizure recordings are scarce and site-bound; the Severance cohort, for example, is private and single-center. The question here is what can be done when the target population is unlabeled.

Proposed Experiments

The primary experiment trains on TUSZ adult patients and tests on all CHB-MIT pediatric patients. We use the electrode pairs the two datasets share, report balanced accuracy, AUROC, sensitivity, and false alarms per hour, and bootstrap confidence intervals over patients. The reverse direction, training on CHB-MIT and testing on TUSZ, checks whether any gain is symmetric or merely reflects adult data being larger. Where age metadata allow, we stratify TUSZ test performance by age band and correlate false-alarm rate with age for every model.

Three checks decide the proposal. The first tests the background story: the linear age probe on self-relative features should fall toward the level of predicting the mean age, while the raw-input model's probe should remain predictive. If both stay predictive, the input has not removed the shortcut. The second tests the transfer claim: the self-relative 3D model should close a substantially larger share of the TUSZ-to-CHB-MIT gap than the naive reference and should match or beat CBraMod plus T3A at equal false-alarm rate. The third tests the spread claim: the 3D model should beat its spatial-kernel-one twin by more on CHB-MIT than on in-distribution TUSZ, and topology shuffling should cost more out of distribution than in distribution.

The main failure mode is recordings in which background is not stationary, for example long sleep–wake alternations or seizure-dense recordings. There, the median no longer represents the background. We will measure this by recomputing the statistics over sliding windows of several lengths and reporting sensitivity to that choice.