Interictal Discharges as Bursty Traffic: Stress-Testing Intracranial Decoders for Transfer Beyond Epilepsy

Nearly everything we know about the human brain at millisecond and millimeter resolution comes from people with drug-resistant epilepsy. Electrodes are implanted in these patients to find where their seizures start, and researchers use the same recordings to study language, vision and memory. Those recordings also contain pathological activity. Between seizures, epileptic tissue emits interictal discharges: brief, large spikes. They come in bursts, their sizes are heavy-tailed, and they cluster on a few electrodes. A decoder trained on these recordings may quietly learn to depend on that activity, and if it does, it will not transfer to a healthy brain. We can never record intracranially from that healthy brain to check.

Network engineers face a similar problem when they cannot test on the live system. They build traffic generators: programmable sources of bursty, heavy-tailed, spatially clustered load that they inject into a simulation to see what breaks. This proposal treats interictal activity as exactly this kind of nuisance traffic. We build a calibrated generator that can add it to clinical intracranial recordings or remove it, at controlled doses. We use the generator for two things. First, we measure how much each decoder relies on pathological traffic, as a proxy for whether it would transfer beyond epilepsy. Second, we train decoders that are invariant to that traffic. The decisive question is whether this targeted, traffic-shaped nuisance model beats generic noise augmentation and standard clinical cleaning on cross-subject decoding.

Core Claim

Cross-subject failure in intracranial decoding is partly a failure of invariance to patient-specific pathological event streams. These streams are better described by models from network traffic engineering than by Gaussian noise. Such models include self-exciting arrivals (one event raises the chance of the next), Pareto-distributed amplitudes, and hot spots in which a few channels carry most of the load. If this is right, two predictions follow. First, a decoder's sensitivity to synthetic pathological traffic, measured within a single patient, should predict how much that decoder loses when moved to an unseen patient. Second, training with randomized pathological traffic should recover part of the gap that the Neuroprobe benchmark documents. There, the best linear model scores 0.660 AUROC within-session but about 0.539 cross-subject (Neuroprobe).

The motivation comes from the neuroscience side. Single-neuron and ripple studies in epilepsy patients warn that their findings may reflect altered physiology even after seizure-onset zones are excluded (Latency and Selectivity of Single Neurons…; Movie-watching evokes ripple-like activity…). Healthy-to-clinical translation failures in neurofeedback show the same mismatch running the other direction (wakefulness neurofeedback; MEG insula neurofeedback). None of these papers gives a way to measure how much a given model depends on the pathology. That measurement is what we add.

What Is New Relative to Existing Work

Generative work on clinical data mostly synthesizes static records, text or images: tabular cohorts (Generating Realistic Synthetic Population Datasets; TrialSynth), clinical notes (RecordTwin), and tumor MRI (brain tumour augmentation). These works address privacy or label scarcity, not population shift in neural time series. The closest electrophysiology work uses adversarial networks to generate pre-ictal waveforms for seizure prediction within one patient (Semi-supervised Seizure Prediction with GANs). That work treats pathology as the signal to predict. We treat pathology as the nuisance a cognitive decoder must ignore, and we evaluate across subjects. Synthetic pre-training for time series (TempoPFN) draws from generic priors and does not target any specific population difference.

The traffic literature supplies the method. Switch stress tests combine Zipf hot spots with Pareto bursts (2 VCs in High-Speed Switches). Programmable shapers inject dropouts and non-stationary surges (SimDC/DeviceFlow). One finding also supplies a testable prediction. In the TCP background-traffic testbed, the amount of background traffic mattered more for protocol fairness than its variability (Impact of background traffic…). The open question here is whether dose or distributional shape matters more for decoder invariance. The networking literature's warning about open-loop generators, which ignore feedback from system state, also constrains our design. Real discharges are coupled to brain state, so the generator includes a state-coupled variant.

Research Program

The generator has three layers. The first is an event-arrival layer. Discharge times on electrode $c$ follow a self-exciting point process with intensity

$$\lambda_c(t) = \mu_c\, g(\phi(t)) + \sum_{t_i < t} \alpha\, e^{-(t - t_i)/\tau},$$

where $\mu_c$ is the baseline rate for that electrode and $g(\phi(t))$ optionally couples the rate to the phase $\phi$ of the recording's own slow oscillation. This coupling is the closed-loop variant, motivated by slow-oscillatory pacing of MTL activity (learning-evoked slow-oscillatory architecture). The parameter $\alpha$ sets how much each past event at time $t_i$ raises the current rate, and $\tau$ sets how quickly that effect decays. Baseline rates across electrodes follow a Zipf profile, so a few channels carry most events. Amplitudes are Pareto. Waveform templates are drawn from discharges detected in the training patients.

The second layer randomizes the aperiodic background, the 1/f slope of the power spectrum, which tracks excitation/inhibition balance and shifts with pathology and development (aperiodic neural activity). The third layer, borrowed from DeviceFlow, drops channels with probability $p$. This mimics placement-driven coverage differences between patients.

The generator is calibrated by fitting these parameters per patient to detected events in Brain Treebank sEEG (Brain Treebank). Calibration is judged on held-out goodness of fit of the inter-event-interval distribution and the spatial concentration of events.

We then compute an audit score for each decoder. We inject calibrated traffic into within-session test data at increasing doses, and separately subtract detected events. The audit score is the change in AUROC per unit dose. Finally, we train decoders on data where traffic parameters are resampled each batch. We also add a penalty that makes the prediction for a clean window match the prediction for the same window with traffic injected.

Baselines

The naive reference point is the Neuroprobe linear model on spectrograms with Laplacian re-referencing, with no augmentation. Neuroprobe reports 0.660 within-session, 0.648 cross-session and about 0.539 cross-subject AUROC for it (Neuroprobe). This is also the strongest existing method on this benchmark. We rerun it on Neuroprobe-lite and the full splits using the official task definitions, so our numbers are reproduced rather than quoted. All methods share the same feature extractor and an equal hyperparameter search budget, tuned only on training subjects.

The strongest learned competitor is PopulationTransformer, reported at about 0.566 cross-session. It is fine-tuned under the same budget, with and without our augmentation. That tells us whether traffic invariance helps a high-capacity model more than a linear one.

The generic augmentation baseline adds Gaussian noise, random amplitude scaling and temporal jitter, matched to the same total injected power. The cleaning baselines are standard per-subject spectral whitening that removes the aperiodic component, and rejection of epochs containing detected discharges.

Three ablations isolate the key ingredient. The first replaces self-exciting arrivals, Pareto amplitudes and Zipf hot spots with Poisson arrivals, Gaussian amplitudes and a uniform spatial profile, holding the event rate fixed. The second varies dose with shape fixed. The third varies shape with dose fixed.

Beating the baselines means a cross-subject AUROC gain over the best of whitening-plus-rejection that is statistically reliable across held-out subjects in leave-one-subject-out evaluation. The gain must also survive the Poisson/Gaussian ablation. If the ablation matches the full generator, the traffic-specific structure adds nothing, and we will say so.

Why not just…?

Why not just add Gaussian noise and jitter? White noise flattens the spectrum and has neither bursts nor hot spots. It therefore perturbs the decoder along directions unrelated to how patients actually differ (aperiodic neural activity). The power-matched comparison in this proposal tests this directly. Neuroprobe's cross-subject collapse occurs under standard training, but that is not by itself proof that noise augmentation fails, so the experiment has to show it.

Why not just remove the aperiodic slope and reject spike epochs? This is the real threat. It is cheap, it is standard clinical practice, and it may capture most of the benefit. Two arguments favor our approach. Rejection discards data when events are frequent, and detectors miss small discharges in the heavy tail, which a decoder can still exploit. Even so, if whitening plus rejection matches our method on cross-subject AUROC and on audit-score reduction, then the cleaning pipeline is the answer. In that case the contribution narrows to the audit itself, as a diagnostic.

Why not just pre-train a bigger foundation model? Neuroprobe already reports PopulationTransformer below a linear model cross-session (about 0.566 versus 0.648). Scale has not yet bought invariance on this data. We test whether traffic augmentation narrows that difference, rather than assuming either outcome.

Decisive Checks

Three results would settle the proposal. The first concerns predictive validity. Across a set of decoders, does the within-patient audit score rank-correlate with the observed cross-subject drop on Neuroprobe? Across patients, does each patient's estimated discharge burden predict how poorly models transfer to them? A null result on both falsifies the core claim.

The second is cross-site transfer on the multi-center visual dataset (Open multi-center iEEG dataset): train at two institutions and test at the third, on face-versus-object decoding. This checks whether gains hold beyond one movie corpus and one hospital.

The third is the dose-versus-shape ablation, which asks whether the networking finding that amount dominates variability carries over.

One limitation must be stated plainly. No healthy intracranial data exist in the file, so transfer beyond epilepsy is tested by proxy, through gradients of pathological burden within the clinical cohort. That proxy is the strongest evidence these benchmarks can provide.

References

  1. Neuroprobe: Evaluating Intracranial Brain Responses to Naturalistic Stimuli
  2. Latency and Selectivity of Single Neurons Indicate Hierarchical Processing in the Human Medial Temporal Lobe
  3. Movie-watching evokes ripple-like activity within events and at event boundaries
  4. Neurofeedback training to improve wakefulness maintenance ability: a pilot study to develop cognitive strategies to overcome Excessive Daytime Sleepiness
  5. Neurofeedback modulation of insula activity via MEG-based brain-machine interface: a double-blind randomized controlled crossover trial
  6. Generating Realistic Synthetic Population Datasets
  7. TrialSynth: Generation of Synthetic Sequential Clinical Trial Data
  8. RecordTwin: Towards Creating Safe Synthetic Clinical Corpora
  9. Enhanced Data Augmentation Using Synthetic Data for Brain Tumour Segmentation
  10. Semi-supervised Seizure Prediction with Generative Adversarial Networks
  11. TempoPFN: Synthetic Pre-training of Linear RNNs for Zero-shot Time Series Forecasting
  12. Providing Full QoS with 2 VCs in High-Speed Switches
  13. SimDC: A High-Fidelity Device Simulation Platform for Device-Cloud Collaborative Computing
  14. Impact of background traffic on performance of high-speed TCP variant protocols
  15. A learning-evoked slow-oscillatory architecture paces population activity for offline reactivation across the human medial temporal lobe
  16. The development of aperiodic neural activity in the human brain
  17. Brain Treebank: Large-scale intracranial recordings from naturalistic language stimuli
  18. Open multi-center intracranial electroencephalography dataset with task probing conscious visual perception