Conceptio › Archive › arXiv CS
arXiv CS open access

RobustSeiz: An Open-Source Framework for Benchmarking the Robustness of EEG Seizure Detection Models

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

RobustSeiz: An Open-Source Framework for Benchmarking the Robustness of EEG Seizure Detection Models Mohammad Mohammadi, MSc∗1 and Alireza Zarei, PhD1

arXiv:2609.04007v1 [cs.LG] 3 Sep 2026

1

Department of Mathematical Sciences, Sharif University of Technology, Tehran, Iran

Abstract Objective: Despite strong predictive performance on held-out electroencephalography (EEG) data, seizure detectors may fail under real-world acquisition variability, artifacts, and adversarial inputs. We introduce RobustSeiz, an open-source, model-agnostic framework whose main contribution is a standardized, reproducible protocol for stress-testing and comparing seizure detectors under controlled, clinically motivated distribution shifts before deployment. Materials and Methods: We standardize four public scalp-EEG corpora (CHB-MIT, TUSZ, Siena, and SeizeIT1) into Brain Imaging Data Structure for EEG (BIDS-EEG) trees with 10-20 recordings at 256 Hz and evaluate subject-independent detectors on held-out splits. Environment, noise, and adversarial transforms model instrumentation and clinical variability and are swept over predefined hyperparameter grids. Each run reports sample- and event-level sensitivity, precision, F1, false positives per 24 h, Lead and Lag onset timing, and Monte Carlo dropout predictive agreement. Results: RobustSeiz provides a Dockerized graphics processing unit (GPU) pipeline, experiment registry, and full-evaluation and research-subset operating modes. We demonstrate the framework with a contemporary seizure detector on TUSZ across the complete implemented shift grid. A representative additive white Gaussian noise (AWGN) analysis shows how perturbation severity changes detection quality, onset timing, and predictive agreement; complete per-perturbation results are provided in the Supplementary Appendix. Discussion: Held-out accuracy alone does not establish deployment readiness. Domain-guided robustness reporting can expose clinically consequential failure modes, including missed seizures and alarm flooding. Conclusion: RobustSeiz contributes a shared benchmarking standard for evaluating seizure-detector robustness under realistic clinical stressors, extending pre-deployment assessment from clean-data accuracy toward reproducible, multidimensional robustness characterization.

Keywords: electroencephalography; epilepsy; seizure detection; robustness; adversarial attacks

Lay Summary Seizure-detection software is increasingly used to watch EEG recordings in hospitals and at home. Even when a model looks accurate on clean research data, real recordings can be noisy, incomplete, or altered by equipment problems. In RobustSeiz we provide an open-source framework for benchmarking model robustness that deliberately recreates those real-world problems, so researchers and clinicians can see whether a detector remains trustworthy before it is used for patient care.

∗ Corresponding author: mohammad.mohammadi97@sharif.edu

1

Graphical abstract

Background and Significance Scalp electroencephalography (EEG) remains central to diagnosing epilepsy and monitoring seizures in epilepsy monitoring units (EMUs), home-based video-EEG, and emerging ultra long-term ambulatory settings 1–4 . Automated seizure detection can support timely intervention, reduce expert reading burden, and improve seizure counts relative to patient recall 5–7 . Large public EEG corpora and deep learning have accelerated detector development 8–12 , yet there are increasing examples of healthcare machine learning (ML) systems that fail under real-world deployment, partly because of dataset or distribution shifts 13–16 . The most common evaluation practice remains held-out task performance on clean research splits. That practice does not reflect the unique challenges of clinical EEG: models must remain reliable under varying noise characteristics, diverse acquisition protocols, and multiple sites and populations 17–20 . Without additional assessments of resilience before deployment, the practical value of many EEG detectors remains unclear 13,21 . Clinical EEG is not a laboratory signal. Electrode impedance varies, channels disconnect, sampling and filter settings differ across devices, power-line interference and impulsive artifacts are common, and recordings may be exported or re-referenced inconsistently. In a high-stakes medical context, these shifts can turn a detector that looks accurate on held-out clean data into a system that misses seizures or floods caregivers with false alarms 22,23 . A related threat is intentional or worst-case perturbation: adversarial machine learning has shown that small, carefully crafted input changes can cause large prediction errors in medical artificial intelligence (AI) 14,24,25 . Even when literal cyber-attack is not the primary concern, adversarial stress tests expose brittle decision boundaries that ordinary noise may not reveal 26 . Until recently, the strongest open methodology for assessing EEG seizure detectors before clinical deployment focused almost exclusively on accuracy under standardized clean evaluation. The Seizure Community Open-source Research Evaluation (SzCORE) framework crystallized that state of the art: shared public corpora, common file conventions, recommended cross-validation practices, and clinically oriented sample- and event-based detection scores 27–30 . That contribution remains valuable for comparable accuracy reporting, but accuracy-only protocols are blind to realistic deployment flaws: they neither define shared acquisition mismatches, sensor failures, physiological or electrical artifacts, and adversarial stressors, nor prescribe how to apply such stressors while keeping reference annotations fixed. A complementary line of work models instrumentation-related EEG distribution shifts and inspects encoder latent spaces together with predictive uncertainty under those transforms 31 . That approach shows how domainguided shifts and uncertainty diagnostics can anticipate degradation during model development, yet it primarily analyzes latent representations of feature encoders and concentrates on noise and acquisition transforms rather than end-to-end clinical seizure detectors under the full spectrum of deployment stressors. In particular, it does not deliver a realistic, event-level assessment of detectors in clinical monitoring workflows, nor does it systematically stress models across environment, noise, and adversarial axes while reporting onset timing and stratified uncertainty in one protocol. We address that gap in RobustSeiz: we apply controlled, domain-guided perturbations outside the detector, score clinically meaningful sample- and event-level accuracy, and produce a complete multi-stage analytical report (detection quality, Lead and Lag onset timing, and Monte Carlo dropout (MCD) agreement) so that pre-deployment assessment asks not only “how accurate?” but “how stable under conditions that matter in care?” For demonstration, we generate RobustSeiz reports on one contemporary state-of-the-art EEG seizure detection model on TUSZ under full mode (all shifts with detection quality and Lead and Lag) and research-subset mode (all shifts with Lead and Lag and MCD). We present a representative robustness profile in the main text to demonstrate how the framework jointly characterizes detection quality, onset timing, and predictive agreement, while complete numerical results across the perturbation grid are provided in the Supplementary Appendix.

Objective Our objective is to design and release a reproducible framework that measures how EEG seizure detectors behave under realistic acquisition, artifact, and adversarial conditions, so that clinical and research communities can evaluate model stability, not only peak accuracy, before deployment. We present RobustSeiz, an open-source framework for benchmarking the robustness of EEG seizure detection models. In it we: 1. standardize four public scalp-EEG seizure corpora into a common Brain Imaging Data Structure for EEG (BIDS-EEG) layout and define a subject-independent evaluation setting on held-out evaluation splits; 2. define a domain-guided taxonomy of environment, noise, and adversarial perturbations that model real-world 3

acquisition and operational variability outside detector implementations, and conduct a full sensitivity analysis over each perturbation’s control hyperparameters; 3. profile each detector through three complementary analysis stages (controlled shifts and drifts with accuracy scoring, Lead and Lag onset timing, and MCD with agreement index ϕ) under two operating modes (full evaluation and research subset); 4. ship a reproducible Dockerized pipeline and experiment registry so any pluggable detector can be stress-tested under identical conditions.

Materials and Methods Study overview We separate four concerns: (i) standardized EEG and annotations, (ii) controlled perturbations, (iii) model inference, and (iv) evaluation and logging (Figure 1). Perturbations are applied in memory at inference time; reference datasets remain read-only. A single experiment orchestrator configures the shift and its hyperparameter setting, launches Dockerized graphics processing unit (GPU) inference, scores predictions against reference annotations, and appends one row to a master results registry. Figure 2 details the end-to-end runtime path from

Figure 1. RobustSeiz overview. We standardize public EEG corpora (CHB-MIT, TUSZ, Siena, SeizeIT1) to BIDS-EEG (256 Hz unipolar 10-20 montage; EDF and events). In RobustSeiz we apply environment, noise, and adversarial shifts in memory at inference time. Pluggable subject-independent detectors (M1 , . . . , Mn ) then produce multi-stage reports: accuracy, Lead and Lag onset timing, Monte Carlo dropout agreement index ϕ, and an experiment registry. Reference datasets remain read-only; perturbations and scoring share a matched inference scope.

read-only evaluation data through in-memory shifts, detector inference (including MCD), evaluation metrics, and registry logging. Implementation details and usage documentation are maintained in the project’s Git repository.

Datasets Public and freely available corpora are required for reproducible external validation of seizure detectors. We therefore center four large public scalp-EEG datasets of people with epilepsy: PhysioNet CHB-MIT 32,33 , the Temple University Hospital EEG Seizure Corpus (TUSZ) 9,34 , PhysioNet Siena 35 , and SeizeIT1 36 (Table 1) 37 . To make algorithms operable across sites and corpora, we require a common data organization and recording content. We organize raw signals, recording metadata, seizure annotations, and participant details according to BIDS-EEG 38,39 , storing continuous recordings as European Data Format (EDF) files 40 and events as humanreadable tab-separated tables. Supplementary Appendix A details the file layout, annotation schema, and recording content. Annotation content follows Standardized Computer-based Organized Reporting of EEG 4

Figure 2. Experiment pipeline. We apply environment, noise, and adversarial shifts in memory to read-only BIDS-EEG evaluation data; a pluggable detector (optionally with Monte Carlo dropout) produces hypothesis events and agreement traces. We then report sample- and event-level accuracy with robustness curves, Lead and Lag onset timing, and stratified agreement ϕ, and each run appends a row to the central experiment registry.

(SCORE), endorsed in clinical neurophysiology practice 41,42 , with International League Against Epilepsy (ILAE)oriented seizure typing supported through hierarchical event descriptors 43,44 . Conversion of the public corpora into this common layout uses community epilepsy2bids tooling, yielding BIDS-EEG trees that we consume as read-only evaluation inputs. Recording content is chosen to be consistent with International Federation of Clinical Neurophysiology (IFCN) and ILAE minimum standards recommended for clinical EEG 45–48 . Concretely, we resample signals to 256 Hz (with original acquisition at least 256 Hz when available); rename and rereference channels to the 19 electrodes of the international 10-20 system in a unipolar common-average montage; and store channels in a fixed order so detectors can assume a stable spatial layout. Common-average computation uses the 19 standard electrodes; auxiliary channels, when present, are not used to form the average. CHB-MIT is an intentional exception: it provides bipolar channels for which conversion to the proposed unipolar montage is not feasible, so that corpus is analyzed in its original bipolar montage 32 . Where TUSZ-style recordings lack some of the 19 electrodes, missing channels are zero-filled so that array shape remains consistent across files. Only unipolar montages are accepted by the default inference path outside the CHB-MIT exception.

Evaluation setting Seizure detection is treated as a segmentation problem: identify the start and end of each seizure event on continuous EEG. We assume subject-independent detectors, that is, models evaluated on subjects who were never 5

Table 1. Publicly available scalp EEG datasets of people with epilepsy.

Overview

Recordings

Data

Dataset

# subjects

duration

# seizures

# files

avg. duration

fs [Hz]

# channels

CHB-MIT TUH Siena SeizeIT1

23 675 14 42

982 h 1476 h 128 h 4211 h

198 4029 47 182

686 7377 41 458

60 min 10 min 150 min 612 min

256 [250–1000] 512 250

22–38 17–128 35–45 26

seen during training, because patient-specific tuning is rarely available before deployment. We do not retrain models; we evaluate a provided pretrained detector under controlled input shifts on standardized evaluation data, and reference annotations are never modified. We assess robustness on the held-out, subject-disjoint evaluation split of a standardized corpus (Figure 2). Robustness is characterized by the change in performance from the unperturbed baseline under each perturbation, rather than by the absolute accuracy under that perturbation alone. Importantly, the environment and noise shifts we apply are themselves designed to simulate and capture the effects that arise when a detector trained on one corpus is applied under different acquisition conditions: distribution shift, artifact and sensor mismatch, protocol and hardware variation, and other deployment-time discrepancies that commonly accompany transfer across sites or corpora. Because these stressors are applied inside the evaluation pipeline over a controlled hyperparameter grid, a held-out within-corpus run already probes the same family of cross-site and deployment mismatches, and does so more thoroughly than relying on a single natural corpus difference alone. An explicit across-corpus evaluation setting is therefore unnecessary for the core assessment: how well model performance holds under realistic changes.

Controlled perturbations A multi-pronged robustness assessment requires models of realistic data shifts during development itself, without assuming access to external deployment labels 13 . Real-world EEG variability may arise from behavioral state during acquisition, the number and montage of sensors, the reference used, noise during acquisition, analog-todigital conversion, hardware filter settings, and electrode impedance 17,18,49 . Training-time augmentations such as amplitude scaling or simple band-stop filtering can increase data diversity 50 , but they do not meet the complexity of deployment-time acquisition and operational variability. We therefore define domain-guided transforms that act on multichannel EEG at inference time, organized into environment, noise, and adversarial families (Figure 3a; Table 2). Composition order is fixed and documented in the repository: environment, then noise, then model preprocessing, then adversarial perturbation when configured, then model postprocessing. Environment and noise operate on microvolt arrays before the detector runs; adversarial attacks operate on model input windows using the Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD) 24,25 . Each perturbation is not evaluated at a single fixed severity alone. Instead, we sweep the control hyperparameters of that transform (for example SNR, dropout rate, quantization bit depth, mains amplitude, impulse density, or adversarial ϵ) over a documented grid and record matched metrics at every setting. The resulting robustness curve shows both whether the detector withstands the stressor and how sensitive its performance is as the hyperparameter intensifies, so we support per-perturbation analysis and a full sensitivity analysis around every environment, noise, and adversarial attack in the library. Environment transforms capture instrumentation and montage effects that differ across manufacturers and sites. Band-pass profile changes reflect hardware-level filters that restrict spectral content with manufacturer-dependent cut-offs. ADC and amplitude quantization emulate resource-constrained digitization of analog EEG. Impedance-like low-frequency structured noise models poor sensor contact or dry versus wet electrodes, which can appear as narrow-band low-frequency contamination 49 . Additional environment shifts include common-average rereferencing, round-trip sampling-rate mismatch, named or random channel dropout, and baseline drift (sinusoidal, band-limited, random-walk, or piecewise modes).

6

Table 2. Realistic EEG data shifts represented as transformations in RobustSeiz. We sweep each transform over the listed parameter settings to yield a robustness curve. Category prefixes in the EEG Shift column: Env., environment; Noise; Adv., adversarial. EEG Shift

Definition

Env. Common-

1 tCAR := xc,t − C

Parameters

Clinical motivation

No free parameters (C: channel count)

Site-to-site referencing / montage differences.

tFS := Rft →fs (Rfs →ft (x))

ft ∈ {50, 100, 200, 230} Hz; fs =256 Hz

Device or export sampling-rate differences across sites.

tDrop := Zero(x, C)

C ∈ {{O1, O2}, {T7, T8}}

Electrode loss, disconnect, or unavailable named sensors.

tRDrop := Zero(x, n)

n ∈ {1, 2, . . .} randomly selected channels

Unpredictable sensor failure during monitoring.

tADC := Qb (x; VFS )

b ∈ {5, 10, 12} bits; optional VFS =100 µV

Limited ADC bit-depth / dynamic range on acquisition hardware.

tBP := Ψ(x, fL , fH )

(fL , fH ) ∈ Manufacturer hardware filter {(0.5, 40), (1, 40), (1, 30), (0.5, 25)} Hz profiles that restrict EEG bandwidth.

tIN := x + ϵ; ϵ = Ψ(zσ , B)

Bands B: 0–1, 0.05–0.5, 0.1–1 Hz; amp. 25–200 µV or ratio 0.25

Env. Baseline drift

tDR := x + d(t)

Modes: sin, sin-band, random-walk, Baseline wander from contact, piecewise; amp. ratio or µV; impedance, or movement. optional intermittency

Noise Additive white Gaussian noise

tAWGN := x + ϵ; ϵ ∼ N (0, σSNR )

SNR ∈ {0, 2, 5, 20, 50, 100} dB

Broadband sensor and electronics noise.

Noise Mains hum

tMH := x + a RMS(x) sin(2πf t + ϕ)

f =60 Hz; a ∈ {0.1, 0.5, 0.8, 1.0}

50/60 Hz power-line interference in clinical rooms.

Noise Impulse

tIMP := x + Spike(ρ, A)

ρ ∈ {5×10−4 , . . . , 10−2 }; A ∈ {2, 4} × RMS

Movement-related spike-like / salt-and-pepper artifacts.

Noise Notch filter

tN := Notch(x; fn ) or mains then notch

Profiles: off, 50, 60, 50+100, 60+120 Hz; mismatch of mains vs notch

Filtering errors relative to local line frequency; deliberate notch/mains mismatch.

Adv. FGSM attack

tFGSM := x + ε sign(∇x L)

ε ∈ {0.01, 0.05, 0.1, 0.5, 0.8, 1.0}; modes increase / decrease / flip

Worst-case decision-boundary stress; security / brittleness probe for medical ML.

Adv. PGD attack

Iterated projected FGSM: step α, bound ε

Same ε and modes as FGSM; α=0.01; 10 steps

Stronger iterative white-box stress of seizure vs non-seizure decisions.

average reference Env. Sampling-

PC

c′ =1

xc′ ,t

rate mismatch Env. Named

channel dropout Env. Random

channel dropout Env. ADC

quantization Env. Band-pass

filter Env. Impedance

noise

noise

Poor scalp contact / dry–wet electrode impedance (low-frequency contamination).

Noise transforms capture acquisition and environmental contamination beyond fixed hardware settings. Signalto-noise ratio (SNR)-controlled additive white Gaussian noise models broadband sensor and electronics noise. Mains hum and impulsive artifacts represent power-line interference and sparse movement-related spikes. Notch filtering, including deliberate mains/notch mismatch, probes filtering errors relative to local line frequency 17,19 . Adversarial transforms implement FGSM and PGD with attack modes that push predictions toward seizure (increase), non-seizure (decrease), or the opposite of the current decision (flip). Perturbation magnitude ϵ, PGD step size α, and iteration count are configurable; post-attack eventization uses the same morphological defaults as clean inference. Together, the three families extend beyond noise-only instrumentation shifts to a broader clinical stress surface that includes montage and reference mismatch, sensor failure, and worst-case decision-boundary probes. Because every family exposes tunable controls, the same taxonomy is the unit of sensitivity analysis: comparing metrics across the hyperparameter grid yields a robustness curve for each attack or artifact model rather than a binary robust/not-robust label.

7

(a)

(b)

Figure 3. (a) Controlled perturbations. Domain-guided environment, noise, and adversarial transforms are applied in memory at inference time and swept over control hyperparameters to produce robustness curves. (b) Performance metrics. Sample- and event-based sensitivity, precision, F1, and false positives per 24 h quantify seizure-detection accuracy under clean and perturbed evaluation.

Model interface Detectors are packaged as interchangeable adapters selected by an active-model setting at build and run time. Each adapter exposes a detection function that maps EEG to a sample-wise mask, together with an agreement function that the Monte Carlo dropout stage calls for repeated stochastic forward passes. Shifts are never implemented inside detector packages, so swapping models does not fork the perturbation library. Hypothesis annotations are written as mirrored BIDS event tables, and the dropout stage stores per-sample agreement traces alongside those predictions.

Evaluation We profile a detector through three complementary analysis stages that run sequentially or in parallel within a single experiment pipeline (Figure 2; Table 3): 1. Controlled environment, noise, and adversarial shifts and drifts applied at inference time over each perturbation’s hyperparameter grid, with sample- and event-level detection quality scored against fixed reference annotations to produce per-perturbation robustness and sensitivity curves. 2. Lead and Lag onset timing on event-level true positives, characterizing whether detections arrive early or late relative to annotated seizure onset. 3. MCD predictive uncertainty via agreement index ϕ, quantifying per-sample decision stability across repeated stochastic forward passes of the same recording. Detection quality under shifts uses sample- and event-based accuracy metrics as formalized in the SzCORE evaluation methodology 27 , which we adopt as an accuracy-metric layer: at 256 Hz, timescoring yields sensitivity, precision, F1, and false positives per 24 h (FP/24h) at both granularities (Figure 3b). Because each registry row stores the active shift identity together with its hyperparameter values, aggregating rows for one family reconstructs a full sensitivity analysis: the curve of those metrics as severity changes, not only a single operating point. Sample-based scoring captures fine-grained agreement and integrates with common machine-learning training schemes; event-based scoring answers clinical questions that sample scores alone cannot, namely how many seizures were detected or missed, and how many false alarms occur per day 27,51 . Lead and Lag are reported on event-level true positives (timesteps at 256 Hz): early detections contribute to Lead (higher = earlier), late detections to Lag (higher = later), and exact zero-delay true positives are counted as ontime (Figure 4a). Accurate communication of predictive uncertainty is critical for fail-safety in healthcare ML, because it lets human experts ignore the model selectively when confidence is low 52,53 . We therefore examine per-sample variability in predictions with an MCD strategy 54 (Figure 4b). In the Bayesian setting, the predictive distribution 8

of a model f with parameters θ for an input x and output ŷ is Z p(ŷ | x, D) = p(ŷ | x, θ) p(θ | D) dθ,

(1)

where D denotes training data. Exact computation is intractable, so approximate inference is performed with a variational distribution. Training neural networks with Bernoulli dropout is equivalent to approximate posterior inference over model parameters 54 . With T independent Bernoulli realizations {θt }Tt=1 , the Monte Carlo estimate of the mean prediction and its variance are T

E[ŷ | x] ≈ Var(ŷ | x) ≈

1X f (x, θt ), T t=1

(2)

T 2 1X f (x, θt ) − E[ŷ | x] . T t=1

(3)

Each adapter keeps non-dropout layers in evaluation mode while enabling Bernoulli dropout for T stochastic forward passes of the same recording. Soft outputs are thresholded at a decision threshold τ to obtain binary seizure decisions. For classification-style seizure detection, we summarize predictive uncertainty with the agreement index T 1X ϕ= 1{f (x, θt ) ≥ τ }, (4) T t=1 which is the fraction of Monte Carlo runs that label the sample as seizure after thresholding. Values of ϕ near 0 or 1 indicate stable decisions; intermediate values indicate disagreement across dropout samples and therefore higher predictive uncertainty. (b)

(a)

Figure 4. (a) Lead and Lag onset timing. For event-level true positives, Lead measures early detection relative to annotated onset, Lag measures late detection, and ontime counts exact zero-delay matches. (b) Model uncertainty with Monte Carlo dropout. Agreement index ϕ summarizes per-sample decision stability across stochastic forward passes; values near 0 or 1 indicate stable decisions.

We report ϕ stratified by reference seizure, background, false-positive, and false-negative samples, so uncertainty can be interpreted jointly with detection errors under each shift. Default research-subset settings use T =5 and τ =0.8; both parameters are recorded in the experiment registry. Accuracy, Lead and Lag, and ϕ are scored over the same inference scope, so all three stages remain directly comparable within one run. The same three stages are available under two operating modes that differ only in evaluation scope, not in shift definitions or scoring rules. Full mode runs inference and scoring over the complete evaluation split and is intended for comprehensive pre-deployment reporting. Research-subset mode restricts inference and matched scoring to a smaller, deterministic slice of the evaluation split, by default the first N subjects in lexicographic subject-folder order including all sessions, and records the stage parameters (T and τ ) in the experiment registry. We designed research-subset mode so that a case study on a contemporary detector remains tractable, and so that developers can obtain rapid robustness feedback while iterating models, without paying the cost of a full-split run 9

at every design step. Without such a lighter path, the burden of always evaluating on the entire evaluation split can discourage robustness assessment during development; models may then reach clinical settings without stress testing, which is a high-stakes risk when missed seizures or alarm flooding affect patient care. Full mode remains the recommended setting for final, publishable robustness profiles once a design has stabilized. Table 3. Analysis stages we produce for each experiment.

Stage

Quantities

Shifts and accuracy

Sample and event sensitivity, precision, F1, FP/24h; robustness curves over each shift’s hyperparameter grid Mean, median, p90, extremes; true-positive (TP) and ontime counts Stratified mean ϕ; contributing file counts

Lead and Lag MCD agreement

Software Table 4 lists primary software modules; Figure 5 summarizes the package layout and data flow. A Dockerized GPU service mounts evaluation data read-only and writes predictions and scores to an output tree, applying shift parameters through a controlled configuration interface. Reproduction recipes, installation steps, and experiment commands are maintained in the project’s Git repository rather than in the main manuscript text. Table 4. Core software modules in the RobustSeiz repository.

Module

Role

Model adapters Experiments utilities Evaluation Data and results trees Experiment orchestrator

Pluggable detectors and active-model selection Shifts, configuration, Docker runner, MCD helpers Accuracy scoring, Lead and Lag, agreement index, registry Read-only evaluation inputs; writable hypotheses End-to-end configuration, inference, and logging

Figure 5. Software architecture. Perturbations and scoring are centralized; model packages remain thin adapters, enabling fair comparison across detectors under identical stressors.

10

Results We provide a complete robustness evaluation stack rather than a single leaderboard number. On the software side, the release includes: (i) a shift library covering environment, noise, and adversarial families with explicit clinical motivations (Table 2) and documented hyperparameter grids for full sensitivity analysis of each perturbation; (ii) a model-agnostic inference contract and Dockerized runner; (iii) the three analysis stages of controlled shifts with accuracy scoring, Lead and Lag onset timing, and MCD agreement, available under full and research-subset operating modes; and (iv) a machine-readable experiment registry that stores parameters alongside metrics for auditability and for reconstructing robustness curves. Full mode supports comprehensive reporting over the complete evaluation split. Research-subset mode uses a fixed default of the first 10 subjects in lexicographic order (all sessions), with MCD settings T =5 and τ =0.8. Both modes share the same shift definitions, analysis stages, and scoring rules; only the evaluation scope changes. This duality lets developers iterate quickly in research-subset mode and reserve full mode for final pre-deployment profiles. To verify end-to-end operability, we generated RobustSeiz reports on one contemporary state-of-the-art EEG seizure detection model 55 on the Temple University Hospital EEG Seizure Corpus (TUSZ), the largest corpus in the release. Under full mode, we ran the complete implemented shift grid with detection-quality scoring and Lead and Lag onset timing on the full TUSZ evaluation split. Under research-subset mode on the same corpus, we ran all shifts together with Lead and Lag and the Monte Carlo dropout (MCD) stage. Complete numerical outcomes across the perturbation grid are provided in Supplementary Appendix B. In the main text, we use AWGN as a representative worked example to demonstrate how the framework jointly characterizes detection quality, onset timing, and predictive agreement.

Representative robustness profile To showcase RobustSeiz across the range of shifts and perturbation experiments evaluated by the framework, we selected additive white Gaussian noise (AWGN) as a representative example. We examined AWGN across a signal-to-noise ratio (SNR) grid (Figure 6). At 0 dB, severe noise reduced sensitivity to 0.36 and F1 to 0.52, (a) Detection quality

180 20.0

15.0 12.5

0.4

10.0 0.3 7.5 0.2 Event F1 Mean ϕ × 10

0.1

(c) Stratified agreement All Seizure Bkg.

0.8

140 120

180 Mean Lead (s) Mean Lag (s) Onset TPs

100 80 60

5.0

40

2.5

20

0.0

0

160

140

120

Agreement index ϕ

0.5

1.0

Onset TPs

17.5

220

200

Onset timing (s)

0.6

(b) Onset timing

160

FP / 24 h

Event F1 | mean ϕ × 10

0.7

FP FN

0.6

0.4

0.2

FP / 24 h

0.0 025

20

50

SNR (dB)

100

100 025

20

50

SNR (dB)

100

0.0 025

20

50

100

SNR (dB)

Figure 6. (a) Event F1 and mean ϕ × 10 (left axis) with false positives per 24 h (right axis) versus AWGN SNR (full-mode event scores; research-subset mean ϕ). (b) Mean Lead and mean Lag among event-level true positives (left axis, seconds at 256 Hz) and onset true-positive count (right axis). (c) Agreement index ϕ versus SNR on the research subset (T =5), stratified by all samples, reference seizure, background, false-positive, and false-negative samples.

but increased precision to 0.94 and reduced false positives to 1.5 per 24 h. As noise weakened, sensitivity and F1 recovered to 0.57 and approximately 0.62–0.63, while precision decreased to 0.69 and false positives increased to 16.7 per 24 h. Event-level true positives increased from 121 to 195, indicating that severe noise made the detector more conservative. Mean Lead decreased from approximately 157 s to 109 s, whereas mean Lag remained relatively stable, increasing from approximately 27 s to 30 s. Thus, AWGN affected both detection performance and onset timing. The agreement index ϕ, defined as the fraction of Monte Carlo dropout runs classifying a sample as seizure, provided a complementary view of predictive stability. Values near 0 or 1 indicate agreement, whereas values near 0.5 indicate greater disagreement. Mean ϕ increased from 0.0063 at 0 dB to 0.0356 at 50 dB and remained 0.0330 at 100 dB, representing a more than five-fold relative movement away from the non-seizure agreement 11

boundary and toward the maximum-disagreement region. Although the absolute values remained close to 0, this indicates a substantial relative increase in the uncertainty signal as noise weakened. Seizure and background strata showed similar overall movements toward 0.5. False-positive samples remained above 0.5 (ϕ = 0.668–0.855) without a monotonic SNR trend, indicating seizure-dominant stochastic predictions for false alarms. In contrast, false-negative samples remained close to 0 (ϕ = 0.034–0.048), indicating strong agreement on the incorrect non-seizure decision for many missed seizure samples. Overall, weaker noise improved seizure detection but increased false alarms. Complete results are provided in Supplementary Appendix B.

Discussion Comparable accuracy reporting on public EEG corpora was an important step toward fair algorithm comparison, yet even a fairly measured score on clean evaluation data does not certify stability under the acquisition and artifact conditions of real EMU or ambulatory monitoring 17,18,56,57 . Prior EEG robustness diagnostics that inspect encoder latent spaces under instrumentation transforms are useful during development 31 , but they do not replace end-to-end, event-level stress testing of clinical seizure detectors across environment, noise, and adversarial conditions. In high-stakes epilepsy care, two failure modes are particularly consequential: missed seizures (false negatives) and alarm flooding (excess false positives per day). Environment and noise shifts probe risks arising from ordinary clinical operations; adversarial increase and decrease modes systematically stress both missed-detection and over-detection regimes 14 . We therefore treat robustness profiling as a first-class pre-deployment requirement. Keeping shifts outside detector packages ensures that robustness comparisons attribute differences to the model rather than to duplicated preprocessing forks. Domain-guided transforms are chosen to reflect acquisition hardware and clinical operations (filters, quantization, impedance, broadband and line noise, montage and sensor failure), while adversarial probes expose brittle boundaries that noise alone may miss. Sweeping each transform over its control hyperparameters is deliberate: a single severity setting can understate or overstate risk, whereas the resulting robustness curve reveals where performance remains stable and where it collapses as the stressor intensifies. Standardizing BIDS-EEG inputs and the subject-independent held-out evaluation task maximizes interoperability across public corpora while adding a deployment-oriented stress layer whose controlled shifts already simulate the acquisition and operational mismatches that typically accompany transfer to a new site. Lead and Lag metrics acknowledge that when a seizure is marked can matter as much as whether it is marked. Making MCD a standing stage means every profile carries an uncertainty reading: agreement index ϕ exposes instability that point predictions hide, supporting selective human override when predictions disagree across dropout samples 52,54 . Research-subset mode lowers the barrier during development, while full mode remains available before clinical consideration. For informatics and clinical AI practice, we encourage reporting a robustness profile alongside clean accuracy: which stressors preserve event F1 and FP/24h, which induce missed events, and which inflate alarms, together with how those outcomes change along each perturbation’s severity curve. Such profiles are more actionable for deployment decisions than a single clean-split score. Supplementary Appendix C supplies a Model Card, a Reproducibility Checklist, and instructions for submitting experiments_results.csv so that those profiles can be compared across groups 27–29 .

Limitations The present manuscript emphasizes framework design; large-scale, multi-model, multi-site robustness leaderboards remain a topic for future work. Adversarial perturbations are white-box with respect to the active adapter and use normalized-window ϵ rather than a calibrated microvolt clinical scale. The MCD stage requires adapters that expose stochastic forward passes, so fully deterministic architectures can only be profiled on the first two stages. Some shifts (e.g., extreme channel dropout) can become degenerate for models with strict montage requirements and should be interpreted as configuration stress tests. Training orchestration is out of scope; we evaluate provided models on converted held-out evaluation trees, so the training corpus remains the user’s responsibility.

Conclusion We introduced RobustSeiz, an open-source framework for benchmarking the robustness of EEG seizure detection models. In it we standardize public corpora, apply clinically motivated environment, noise, and adversarial shifts 12

with full sensitivity analysis over each perturbation’s hyperparameters, and profile detectors through accuracy metrics, Lead and Lag onset timing, and Monte Carlo dropout agreement. We target whether modern models remain trustworthy under realistic clinical conditions. We release the software pipeline and registry protocol in the project’s Git repository to support reproducible, comparable robustness studies across future detectors.

Author contributions M.M. conceived the study, implemented the software, and drafted the manuscript. A.Z. supervised the work and revised the manuscript. Both authors approved the final version.

Acknowledgments We thank the epilepsy EEG community for open public datasets, BIDS-oriented tooling, and shared evaluation libraries that enable reproducible external validation. Large language model assistance was used to help organize and refine manuscript prose; all scientific claims, software design, and experimental protocols were defined and verified by the authors against the implementation.

Funding No funding or sponsorship of any kind was used in this research.

Conflicts of interest The authors have no competing interests to declare.

Data availability Public EEG corpora are accessed through their original distributors (PhysioNet / TUH / SeizeIT1) and converted to BIDS-EEG with epilepsy2bids. The RobustSeiz source code, Docker recipe, experiment registry, and usage documentation are available at https://github.com/iMohammad97/RobustSeiz. Demonstration registry excerpts appear in Supplementary Appendix B. Reporting templates appear in Supplementary Appendix C.

References 1. Ryvlin P, et al. Beyond the limits of the traditional long-term video-EEG monitoring. Epilepsia. 2018. 2. Casson AJ. Wearable EEG and beyond. Biomedical Engineering Letters. 2019;9:53-71. 3. Viana PF, Duun-Henriksen J, Glasstetter M, et al. 230 days of ultra long-term subcutaneous EEG: seizure cycle analysis and comparison to patient diary. Annals of Clinical and Translational Neurology. 2021;8(1):43-55. 4. Guekht A, Brodie M, Secco M, Li S, Volkers N, Wiebe S. The road to a World Health Organization global action plan on epilepsy and other neurological disorders. Epilepsia. 2021;62(5):1057-63. 5. Baumgartner C, Koren JP. Seizure detection using scalp-eeg. Epilepsia. 2018;59(S1):14-22. 6. Beniczky S, Wiebe S, Jeppesen J, et al. Automated seizure detection using wearable devices: a clinical practice guideline of the International League Against Epilepsy and the International Federation of Clinical Neurophysiology. Epilepsia. 2021;62(5):1173-87. 7. Koren J, Hafner S, Feigl M, Baumgartner C. Systematic analysis and comparison of commercial seizuredetection software. Epilepsia. 2021;62(2):426-38.

13

8. Schirrmeister RT, Springenberg JT, Fiederer LDJ, et al. Deep learning with convolutional neural networks for EEG decoding and visualization. Human Brain Mapping. 2017;38(11):5391-420. 9. Shah V, von Weltin E, Lopez S, et al. The Temple University Hospital Seizure Detection Corpus. Frontiers in Neuroinformatics. 2018;12:83. 10. Lawhern VJ, Solon AJ, Waytowich NR, Gordon SM, Hung CP, Lance BJ. EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces. Journal of Neural Engineering. 2018;15(5):056013. 11. Roy Y, Banville H, Albuquerque I, Gramfort A, Falk TH, Faubert J. Deep learning-based electroencephalography analysis: a systematic review. Journal of Neural Engineering. 2019;16(5):051001. 12. Craik A, He Y, Contreras-Vidal JL. Deep learning for electroencephalogram (EEG) classification tasks: a review. Journal of Neural Engineering. 2019;16(3):031001. 13. Zhang H, Dullerud N, Seyyed-Kalantari L, Morris Q, Joshi S, Ghassemi M. An empirical framework for domain generalization in clinical settings. Proceedings of the Conference on Health, Inference, and Learning. 2021:279-90. 14. Finlayson SG, Bowers JD, Ito J, Zittrain JL, Beam AL, Kohane IS. Adversarial attacks on medical machine learning. Science. 2019;363(6433):1287-9. 15. Kelly CJ, Karthikesalingam A, Suleyman M, Corrado G, King D. Key challenges for delivering clinical impact with artificial intelligence. BMC Medicine. 2019;17:195. 16. Wiens J, Saria S, Sendak M, et al. Do no harm: a roadmap for responsible machine learning for health care. Nature Medicine. 2019;25:1337-40. 17. Urigüen JA, Garcia-Zapirain B. EEG artifact removal—state-of-the-art and guidelines. Journal of Neural Engineering. 2015;12(3):031001. 18. Tatum WO, Rubboli G, Kaplan PW, et al. Artifact and recording concepts in EEG. Journal of Clinical Neurophysiology. 2018. 19. Acharya UR, Vinitha Sree S, Swapna G, Martis RJ, Suri JS. Automated EEG analysis of epilepsy: a review. Knowledge-Based Systems. 2013;45:147-65. 20. Halford JJ, Shiau D, Desrochers JA, et al. Inter-rater agreement on identification of electrographic seizures and periodic discharges in ICU EEG recordings. Clinical Neurophysiology. 2015;126(9):1661-9. 21. Sendak MP, Gao M, Brajer N, Balu S. Presenting machine learning model information to clinical end users with model facts labels. npj Digital Medicine. 2020;3:41. 22. Oakden-Rayner L, Dunnmon J, Carneiro G, Ré C. Hidden stratification causes clinically meaningful failures in machine learning for medical imaging. Proceedings of the ACM Conference on Health, Inference, and Learning. 2020:151-9. 23. Elger CE, Hoppe C. Wearable devices for detecting and preventing epileptic seizures. Nature Reviews Neurology. 2018;14:195-203. 24. Goodfellow IJ, Shlens J, Szegedy C. Explaining and harnessing adversarial examples. In: International Conference on Learning Representations (ICLR); 2015. . 25. Madry A, Makelov A, Schmidt L, Tsipras D, Vladu A. Towards deep learning models resistant to adversarial attacks. In: International Conference on Learning Representations (ICLR); 2018. . 26. Geirhos R, Jacobsen JH, Michaelis C, et al. Shortcut learning in deep neural networks. Nature Machine Intelligence. 2020;2:665-73. 27. Dan J, Pale U, Amirshahi A, Cappelletti W, Ingolfsson TM, Wang X, et al. SzCORE: Seizure Community Open-Source Research Evaluation framework for the validation of electroencephalography-based automated seizure detection algorithms. Epilepsia. 2025;66(Suppl. 3):14-24. 14

28. Pineau J, Vincent-Lamarre P, Sinha K, et al. Improving reproducibility in machine learning research (a report from the NeurIPS 2019 Reproducibility Program). Journal of Machine Learning Research. 2021;22:1-20. 29. Mitchell M, Wu S, Zaldivar A, et al. Model Cards for Model Reporting. In: Proceedings of the Conference on Fairness, Accountability, and Transparency; 2019. p. 220-9. 30. Varoquaux G. Cross-validation failure: small sample sizes lead to large error bars. NeuroImage. 2018;180:68-77. 31. Wagh N, Wei J, Rawal S, Berry B, Varatharajah Y. Evaluating Latent Space Robustness and Uncertainty of EEG-ML Models under Realistic Distribution Shifts. In: Advances in Neural Information Processing Systems; 2022. . 32. Shoeb AH. Application of machine learning to epileptic seizure onset detection and treatment. PhD thesis, Massachusetts Institute of Technology. 2009. CHB-MIT Scalp EEG Database available from PhysioNet; DOI: 10.13026/C2K01R. 33. Goldberger AL, Amaral LA, Glass L, et al.. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals; 2000. Circulation. 34. Obeid I, Picone J. The Temple University Hospital EEG data corpus. Frontiers in Neuroscience. 2016;10:196. 35. Detti P. Siena scalp EEG database. PhysioNet. 2020. DOI: 10.13026/5d4a-j060. 36. Chatzichristos C, Bhagubai MC. SeizeIT1; 2023. DOI: 10.48804/P5Q0OJ. KU Leuven RDR. 37. Wong S, Simmons A, Rivera-Villicana J, et al. EEG datasets for seizure detection and prediction—A review. Epilepsia Open. 2023;8(2):252-67. 38. Gorgolewski KJ, Auer T, Calhoun VD, et al. The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments. Scientific Data. 2016;3:160044. 39. Pernet CR, Appelhoff S, Gorgolewski KJ, et al. EEG-BIDS, an extension to the brain imaging data structure for electroencephalography. Scientific Data. 2019;6:103. 40. Kemp B, Olivan J. European data format ‘plus’ (EDF+), an EDF alike standard format for the exchange of physiological data. Clinical Neurophysiology. 2003;114(9):1755-61. 41. Beniczky S, Aurlien H, Brøgger JC, et al. Standardized computer-based organized reporting of EEG: SCORE. Epilepsia. 2013;54(6):1112-24. 42. Beniczky S, Aurlien H, Brøgger JC, et al. Standardized computer-based organized reporting of EEG: SCORE – Second version. Clinical Neurophysiology. 2017;128(11):2334-46. 43. Scheffer IE, Berkovic S, Capovilla G, et al. ILAE classification of the epilepsies: Position paper of the ILAE Commission for Classification and Terminology. Epilepsia. 2017;58(4):512-21. 44. Hermes D, Pal Attia T, Beniczky S, Bosch-Bayard J, Delorme A, Lundstrom BN, et al. Hierarchical Event Descriptor library schema for EEG data annotation. Scientific Data. 2025;12:1448. 45. Peltola ME, Leitinger M, Halford JJ, et al. Routine and sleep EEG: Minimum recording standards of the International Federation of Clinical Neurophysiology and the International League Against Epilepsy. Epilepsia. 2023;64(3):602-18. 46. Halford JJ, et al. IFCN standards for digital recording of clinical EEG. Clinical Neurophysiology. 2010. 47. Jasper HH. The ten-twenty electrode system of the International Federation. Electroencephalography and Clinical Neurophysiology. 1958;10:371-5. 48. Fisher RS, Acevedo C, Arzimanoglou A, et al. ILAE official report: a practical clinical definition of epilepsy. Epilepsia. 2014;55(4):475-82. 49. Kappenman ES, Luck SJ. The effects of electrode impedance on data quality and statistical significance in ERP recordings. Psychophysiology. 2010;47(5):888-904. 15

50. Lashgari E, Liang D, Maoz U. Data augmentation for deep-learning-based electroencephalography. Journal of Neuroscience Methods. 2020;346:108885. 51. Shah V, von Weltin E, Lopez S, et al. Objective Evaluation Metrics for Automatic Classification of EEG Events. In: Biomedical Signal Processing. Springer; 2021. p. 223-55. 52. Ovadia Y, Fertig E, Ren J, Nado Z, Sculley D, Nowozin S, et al. Can you trust your model’s uncertainty? Evaluating predictive uncertainty under dataset shift. In: Advances in Neural Information Processing Systems. vol. 32; 2019. . 53. Hendrycks D, Lee K, Mazeika M. Using pre-training can improve model robustness and uncertainty. In: International Conference on Machine Learning. PMLR; 2019. p. 2712-21. 54. Gal Y, Ghahramani Z. Dropout as a Bayesian approximation: representing model uncertainty in deep learning. In: Proceedings of the 33rd International Conference on Machine Learning; 2016. . 55. Wu K, Zhao Z, Yener B. SeizureTransformer: Scaling U-Net with Transformer for Simultaneous Time-Step Level Seizure Detection from Long EEG Recordings. arXiv preprint arXiv:250400336. 2025. 56. Siddiqui MK, Morales-Menendez R, Huang X, Hussain N. A review of epileptic seizure detection using machine learning classifiers. Brain Informatics. 2020;7:5. 57. Maimaiti B, Meng H, Lv Y, et al. An overview of EEG-based machine learning methods in seizure prediction and opportunities for neurologists in this field. Neuroscience. 2022;481:197-218. 58. Fisher RS, Cross JH, French JA, et al. Operational classification of seizure types by the International League Against Epilepsy: Position Paper of the ILAE Commission for Classification and Terminology. Epilepsia. 2017;58(4):522-30. 59. Pale U, Amirshahi A, Cappelletti W, Dan J. CHB-MIT Scalp EEG Database converted to BIDS-EEG; 2023. Zenodo. Available from: https://zenodo.org/records/10259996. 60. Trinka E, Cock H, Hesdorffer D, et al. A definition and classification of status epilepticus – Report of the ILAE Task Force on Classification of Status Epilepticus. Epilepsia. 2015;56(10):1515-23. 61. Ronneberger O, Fischer P, Brox T. U-Net: Convolutional networks for biomedical image segmentation. Medical Image Computing and Computer-Assisted Intervention (MICCAI). 2015:234-41. 62. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, et al. Attention is all you need. In: Advances in Neural Information Processing Systems. vol. 30; 2017. .

16

Supplementary Material A

Data format

A shared on-disk contract is a prerequisite for comparing detectors across corpora. We therefore consume evaluation trees that follow BIDS-EEG 38,39 and a SCORE / HED-SCORE annotation schema 41,42,44,58 . Reference annotations and detector hypothesis files share that relative subject–session–run layout, so scoring never depends on a model-specific export format 27 . A community conversion of CHB-MIT into this layout is available as a public reference tree 59 .

A.1

BIDS-EEG compliant dataset

Each corpus is stored as a self-contained BIDS-EEG folder. The TUSZ evaluation split used here lives at Data/ConvertedTUSZEval/ (Figure 7a) and carries dataset-level metadata (README, dataset_description.json, participants.json, participants.tsv, events.json) together with one folder per subject. Subject folders contain session and EEG subfolders whose paired files are the recording (*_eeg.edf), sidecar metadata (*_eeg.json), and the matched reference event table (*_events.tsv). An optional full-corpus tree may sit beside the eval split at Data/ConvertedTUSZ/. Detector outputs are written under Results/<Category>/<Experiment>/ (Figure 7b), mirroring the same sub-*/ses-*/eeg/ identity as the source EDF so a hypothesis *_events.tsv can be joined to its recording without renaming. Each experiment folder also stores evaluation summaries (results.csv, results.txt, and onset.csv/onset.txt when Lead and Lag are computed). The evaluation tree is mounted read-only during inference: perturbations are applied in memory and never rewrite the standardized files 28,40 . (a) Evaluation data

(b) Hypothesis outputs

Data/

Results/

├── ConvertedTUSZEval/

├── Baseline/

│

├── README

│

└── Baseline/

│

├── sub-*/

│

│

│

│

│

├── dataset_description.json

│

├── participants.json

│

├── participants.tsv

│

│

├── *_events.tsv

│

├── events.json

│

│

└── *_agreement.npz

│

├── sub-000/

│

├── results.csv

│

│

│

├── results.txt

│

├── onset.csv

│

└── onset.txt

├── ses-00/ └── eeg/

└── ses-*/ └── eeg/

│

│

│

│

│

│

├── *_eeg.edf

│

│

│

├── *_eeg.json

│

├── CAR/

│

│

│

└── *_events.tsv

│

├── BP_0p5_40/

│

│

└── ...

│

└── ...

│

├── ...

│

└── sub-042/

│

└── ...

└── ConvertedTUSZ/

├── Environment/

├── Noise/ │

├── AWGN_20/

│

└── ...

└── Adversarial/ # optional

└── ST_fgsm_dec_eps0.10_trs0.5/

└── ...

└── ...

Figure 7. On-disk layout we consume. (a) BIDS-EEG evaluation tree Data/ConvertedTUSZEval/ with dataset metadata and truncated subject/session folders; recordings use *_eeg.edf with sidecar *_eeg.json and reference *_events.tsv. (b) Results/<Category>/<Experiment>/ stores detector hypotheses that reuse the same relative path, plus per-experiment score files. Ellipses and * globs omit repeated subjects, sessions, and runs; *_agreement.npz is written only when Monte Carlo dropout is enabled.

A.2

Annotation format

Annotations are tab-separated tables, one file per recording, designed to represent both expert reference labels and algorithm outputs (Figure 8). Each row is one event and uses the following fields 27,44 : • onset: start of the event in seconds from the beginning of the recording; • duration: event length in seconds; 17

• event: event type, primarily a seizure code; • confidence: optional label confidence in [0, 1] (detector outputs; n/a if unused); • channels: electrodes to which the event applies, or all; • dateTime: recording start in POSIX %Y-%m-%d %H:%M:%S; • recordingDuration: total file duration in seconds.

onset

duration

event

confidence

channels

dateTime

recordingDuration

296.0

40.0

sz

n/a

all

2016-11-06 13:43:04

3600.00

453.0

12.0

sz-foc

n/a

T7,T8

2016-11-06 13:43:04

3600.00

0.0

3600.0

bckg

n/a

all

2016-11-06 14:50:00

3600.00

Figure 8. events.tsv annotation schema. One row per event; the same columns serve reference labels and detector hypotheses. Onset and duration are in seconds; event uses SCORE/HED-SCORE codes (sz, sz-foc, sz-gen, bckg); confidence is for detector outputs; channels list affected electrodes or all.

Seizure codes follow the hierarchical ILAE 2017 classification 43,58 : the top-level token is sz, with optional onset tags sz-foc, sz-gen, or sz-uon, and deeper awareness / motor / symptom codes when available (Figure 9a). A recording without seizures uses bckg with duration equal to the file length. Status epilepticus and related prolonged events remain clinically important edge cases 60 ; when present they are stored with the same onset– duration schema rather than a separate file type. Reference annotations are never modified by shifts; only the EEG array seen by the detector changes.

A.3

Recording content and montage

Recording content is chosen to be consistent with IFCN / ILAE minimum clinical EEG standards 45–47 . Signals are stored as EDF at 256 Hz in a unipolar common-average montage of the 19 international 10-20 electrodes, in a fixed channel order (Figure 9b). The common average is formed from those 19 electrodes only; auxiliary channels, if present, are appended after the 10-20 set and are not used to compute the average. CHB-MIT is the documented exception: conversion from its native bipolar montage is not feasible, so that corpus is analyzed in the original bipolar layout 32,59 . Where a TUSZ-style recording lacks some of the 19 electrodes, missing channels are zero-filled so that array shape remains consistent across files 9,34 .

18

(b) Recording content

(a) Event codes (SCORE / HED-SCORE)

EDF signal

sz

256 Hz, unipolar 10-20, 19 electrodes, fixed channel order

Montage sz-foc

sz-gen

Fp1/F3/C3/P3/O1, F7/T3/T5/Fz/Cz/Pz, Fp2/F4/C4/P4/O2, F8/T4/T6 vs Avg

sz-uon

Exceptions CHB-MIT: original bipolar montage. Missing TUSZ channels are zero-filled.

Optional deeper tags: awareness / motor / symptom

No seizure in file: bckg (duration = recording)

Inference contract Read-only trees. Shifts act in memory; EDF and reference events.tsv are never rewritten.

Figure 9. Annotation codes and recording content. (a) Hierarchical seizure event codes used in the event field, after the ILAE 2017 classification and HED-SCORE short codes 44,58 . (b) Recording content we use: 256 Hz EDF, unipolar 10-20 montage, documented exceptions, and a read-only inference contract.

A.4

Hypothesis outputs

After inference, each run writes a hypothesis *_events.tsv that mirrors the reference relative path inside Results/<Category>/<Experiment>/. Optional Monte Carlo dropout traces are stored alongside those events as per-sample agreement arrays (*_agreement.npz). Scoring then compares hypothesis events with the untouched reference table under Data/ConvertedTUSZEval/ using the same sample- and event-level rules at both operating modes 27,51 .

B

RobustSeiz Benchmark

This appendix is an end-to-end usage check of the released pipeline, not a multi-model leaderboard. All demonstration runs use TUSZ, the largest and most widely used public scalp-EEG seizure corpus in the release 9,34,37 . Numerical outcomes illustrate the structure of a robustness profile and are not used to claim state-of-the-art robustness in the main article.

B.1

Algorithm

The demonstration detector is SeizureTransformer, a contemporary subject-independent scalp-EEG seizure detector 55 . The architecture is a U-Net-style sequence-to-sequence model 61 : a 1D convolutional encoder extracts local temporal features from long multichannel EEG; a residual CNN stack together with a Transformer encoder 62 embeds those features with global context; and a streamlined decoder emits a seizure probability at every time step, avoiding window-level post-hoc stitching. Residual skip connections between encoder and decoder layers stabilize training on long recordings. The authors released pretrained open weights; we use those predefined weights through a thin adapter and do not retrain the network. This choice isolates the benchmark to inference-time robustness: the same frozen detector is scored on clean TUSZ evaluation data and on every controlled shift. For demonstration we run two matched protocols on TUSZ only: 1. Full mode: complete evaluation split; all implemented environment, noise, and adversarial shifts; detection quality plus Lead and Lag. 2. Research-subset mode: first 10 subjects in lexicographic order, all sessions; the same shift grid; detection quality, Lead and Lag, and Monte Carlo dropout with T =5 and τ =0.8, summarized by agreement index ϕ.

19

Table 5 recalls the published SeizureTransformer accuracy on the TUSZ predefined testing set (sample- and event-based F1, sensitivity, and precision) as reported by the model authors. Those values are author-reported only. Our operational baseline is obtained by running the same predefined weights in our pipeline on the TUSZ evaluation split; the resulting clean scores differ slightly from Table 5, and that measured baseline is what we then stress-test under the shift grid. Table 5. Published SeizureTransformer performance on the TUSZ predefined testing set (author-reported clean accuracy). Sample-based

Event-based

Model

F-1

Sens.

Prec.

F-1

Sens.

Prec.

SeizureTransformer

0.5803

0.4710

0.7556

0.6752

0.7110

0.6427

B.2

Results

Table 6 summarizes event-level detection and onset timing in full mode by shift family. Table 6. Family-level summary of full-mode TUSZ event detection under each shift family. Sens, Prec, F1, and FP/24h are event-level scores on the complete held-out split (no Monte Carlo dropout). Lead µ and Lag µ are mean Lead and mean Lag among event-level true positives, in samples at 256 Hz; TP is the onset true-positive count. A single number is the observed value when all settings in the family agreed; a range is the minimum–maximum across that family’s hyperparameter grid (not a mean of the family). Experiment

Cat.

Sens

Prec

F1

FP/24h

Lead µ

Lag µ

TP

Baseline

base

0.57

0.69

0.62

16.7

2.78e4

7.77e3

195

Adversarial FGSM dec ε 0.01–1.00 FGSM inc ε 0.01–1.00 PGD dec ε 0.01–1.00 PGD inc ε 0.01–1.00

adv adv adv adv

0.95–1.00 0.54–0.71 0.98–1.00 0.49–0.39

0.20 0.59–0.19 0.18–0.20 0.59–0.74

0.33–0.34 241–254 0.56–0.30 23.5–192 0.31–0.34 247–286 0.53–0.51 21.6–8.65

Environment Band-pass (4 profiles) CAR Drift (16 modes) Drop O1/O2 or T7/T8 FS mismatch 50–230 Hz Impedance (15 settings) ADC b=5/10/12

env env env env env env env

0.574 0.57 0.574 0 0.57–0.60 0.574 0.54–0.61

0.687 0.69 0.684 – 0.62–0.69 0.687 0.69–0.71

0.625 16.7 2.78e4 7.77e3 195 0.62 16.7 2.78e4 7.77e3 195 0.624 16.9 2.78e4 7.77e3 195 – 0 – – 0 0.61–0.62 16.7–24.1 2.73–2.94e4 7.64–7.78e3 195–205 0.625 16.7 2.78e4 7.77e3 195 0.61–0.65 13.7–18.1 2.79–3.08e4 6.97–7.78e3 182–209

Noise AWGN SNR 0 / 2 / 5 / 20 / 50 / 100 Impulse ρ=5×10−4 –10−2 Mains 60 Hz a=0.1–1.0 Notch / mismatch (10 settings)

noise 0.36–0.57 0.94–0.69 0.52–0.62 1.5–16.7 4.02–2.78e4 7.00–7.77e3 noise 0.49–0.57 0.69–0.79 0.60–0.63 8.27–16.2 2.71–3.36e4 7.01–7.88e3 noise 0.57–0.59 0.68–0.75 0.62–0.66 16.9–12.8 2.74–2.78e4 7.68–8.76e3 noise 0.574–0.579 0.677–0.687 0.621–0.628 16.7–17.5 2.78–2.89e4 7.68–8.13e3

3.85–4.44e4 2.71–4.32e3 322–339 2.36–3.07e4 8.32–14.5e3 183–242 4.12–4.31e4 560–3.60e3 333–340 2.69–3.17e4 8.84–10.0e3 166–131

121–195 166–195 194–199 195–197

Table 7 summarizes Monte Carlo dropout agreement on the research subset. Table 7. Family-level Monte Carlo dropout agreement on the TUSZ research subset (first 10 subjects, T =5 stochastic forwards, τ =0.8). Entries are recording-averaged agreement index ϕ (the fraction of forwards that label a sample as seizure), stratified by all samples, reference seizure, background, false-positive, and false-negative samples. A single number is the observed mean for that family; a range is the minimum–maximum of those means across the family’s hyperparameter settings (not a pooled mean). Experiment family Baseline FGSM decrease (ε 0.01–1.00) FGSM increase (ε 0.01–1.00) PGD decrease (ε 0.01–1.00) PGD increase (ε 0.01–1.00) Band-pass CAR / drift / impedance / drop FS mismatch ADC quantization AWGN SNR 0–100 dB Impulse / mains / notch

20

Mean ϕ

Seiz. ϕ

Bkg. ϕ

FP ϕ

FN ϕ

0.0312 0.031–0.035 0.029–0.035 0.030–0.038 0.031–0.035 0.058–0.125 0.030–0.037 0.032–0.035 0.029–0.033 0.006–0.036 0.022–0.038

0.152 0.142–0.152 0.143–0.151 0.146–0.157 0.142–0.156 0.211–0.286 0.140–0.158 0.149–0.171 0.133–0.220 0.092–0.152 0.138–0.160

0.0284 0.028–0.032 0.026–0.032 0.027–0.035 0.028–0.032 0.054–0.120 0.027–0.034 0.029–0.033 0.027–0.029 0.005–0.033 0.020–0.035

0.764 0.038–0.052 0.493–0.090 0.029–0.050 0.477–0.683 0.763–0.801 0.727–0.853 0.753–0.830 0.779–0.830 0.668–0.855 0.702–0.840

0.0375 0.002–0.048 0.020–0.104 0–0.003 0.032–0.095 0.061–0.092 0.033–0.057 0.035–0.048 0.042–0.061 0.034–0.048 0.031–0.053

Per-setting rows for the same two protocols appear in Tables 8 and 9. As a worked example, we follow additive white Gaussian noise (AWGN) across its SNR grid, because that family produces a graded curve rather than a near-baseline plateau (Figure 10). (a) Detection quality

180 20.0

12.5

0.4

10.0 0.3 7.5 0.2 Event F1 Mean ϕ × 10

0.1

(c) Stratified agreement All Seizure Bkg.

0.8

140 120

180 Mean Lead (s) Mean Lag (s) Onset TPs

100 80 60

5.0

40

2.5

20

0.0

0

160

140

120

Agreement index ϕ

0.5

15.0

1.0

Onset TPs

17.5

220

200

Onset timing (s)

0.6

(b) Onset timing

160

FP / 24 h

Event F1 | mean ϕ × 10

0.7

FP FN

0.6

0.4

0.2

FP / 24 h

0.0 025

20

50

SNR (dB)

100

100 025

20

50

SNR (dB)

100

0.0 025

20

50

100

SNR (dB)

Figure 10. AWGN on TUSZ. (a) Event F1 and mean ϕ × 10 (left axis) with false positives per 24 h (right axis) versus SNR (full-mode event scores; research-subset mean ϕ). (b) Mean Lead and mean Lag among event-level true positives (left axis, seconds at 256 Hz) and onset true-positive count (right axis). (c) Agreement index ϕ versus SNR on the research subset (T =5), stratified by all samples, reference seizure, background, false-positive, and false-negative samples.

We read the three panels of Figure 10 together while noting that panels (a) and (b) use full-mode detection and onset results, whereas the ϕ traces in panels (a) and (c) are obtained from the matched SNR settings on the research subset. The two operating modes therefore provide complementary trends across perturbation severity rather than pointwise measurements from exactly the same evaluation scope. Lower SNR represents stronger AWGN. Figure 10a reveals a clear transition in detector operating behavior as noise weakens. At the strongest perturbation, 0 dB, event sensitivity is 0.36 and only 121 event-level true positives are detected. False positives are correspondingly rare at 1.5 per 24 h, producing a high precision of 0.94 but an event F1 of only 0.52. At 2 and 5 dB, sensitivity increases to 0.39 and 0.44, event F1 rises to 0.54 and 0.58, and false positives increase to 2.44 and 6.21 per 24 h. The largest behavioral transition occurs between 5 and 20 dB: sensitivity rises from 0.44 to 0.56, true positives from 151 to 192, and event F1 reaches its maximum observed value of 0.63. This recovery is accompanied by an increase in false positives to 14.7 per 24 h and a decrease in precision to 0.71. At 50 and 100 dB, performance essentially plateaus at sensitivity 0.57, event F1 0.62, 195 true-positive events, and 16.7 false positives per 24 h, closely matching the unperturbed operating point. Thus, severe AWGN does not simply add false alarms; instead, it suppresses positive detections overall and shifts the detector toward a conservative, predominantly non-seizure regime. As the signal becomes cleaner, seizure detection is restored, together with the detector’s usual false-alarm burden. Figure 10b shows that the composition and timing of detected events also change across the same SNR grid. Mean Lead decreases monotonically from approximately 157.0 s at 0 dB to 150.0 s at 2 dB, 146.5 s at 5 dB, 121.9 s at 20 dB, and 108.6 s at 50–100 dB. At the same time, the number of onset true positives increases from 121 to 195. These quantities should be interpreted together: the large Lead observed under severe noise is calculated only from the smaller subset of seizures that remain detectable under that condition. Consequently, the decrease in mean Lead as SNR increases does not establish that the same seizures are progressively detected later; rather, the population of true-positive events expands as previously missed seizures are recovered, changing the distribution of onset timing among detected events. Mean Lag is considerably more stable, ranging only from approximately 25.5 to 30.4 s. It decreases slightly from 27.3 s at 0 dB to 25.5 s at 5 dB before increasing to approximately 30.4 s at 50–100 dB. The principal timing effect of the AWGN sweep is therefore the substantial change in the Lead distribution and detected-event count, rather than a large systematic change in Lag. Figure 10c provides the corresponding stochastic-prediction profile. For an individual sample, ϕ is the fraction of Monte Carlo dropout realizations voting seizure: values near 0 or 1 represent agreement on non-seizure or seizure, respectively, whereas values near 0.5 represent maximal disagreement. The overall mean ϕ increases from 0.0063 at 0 dB to 0.0095, 0.0168, 0.0269, and 0.0356 as SNR increases to 50 dB, before decreasing slightly to 0.0330 at 100 dB. This is more than a five-fold relative movement away from the non-seizure agreement boundary toward the maximum-disagreement region, although the absolute mean remains much closer to 0 than to 0.5. Reference-seizure 21

samples show a similar pattern, increasing from ϕ = 0.0917 to approximately 0.15, while background samples increase from 0.0049 to approximately 0.03. The close correspondence between the all-sample and background curves is expected because background samples constitute the majority of continuous EEG recordings. The error strata reveal a different and clinically relevant behavior. False-positive samples have mean ϕ > 0.5 at every SNR, ranging from 0.668 to 0.855. Their trajectory is non-monotonic: it rises sharply to 0.855 at 2 dB, falls to 0.740 at 5 dB, and subsequently varies between 0.771 and 0.803. Thus, the data do not support a claim that false-positive confidence increases steadily as noise weakens. Instead, they show that when false alarms occur, Monte Carlo realizations generally favor the seizure class, and these erroneous positive decisions can remain strongly supported even when overall false-positive frequency is low. False-negative samples show the opposite pattern. Their mean ϕ remains close to 0 across the complete SNR range (0.0335–0.0475), indicating strong agreement on the non-seizure class despite the reference label being seizure. These missed events are therefore often associated with stable incorrect non-seizure decisions rather than with stochastic outputs clustered near the 0.5 uncertainty boundary. Taken together, the three panels identify a coherent change in detector behavior. Severe AWGN primarily suppresses seizure-positive decisions, yielding fewer true detections and very few false alarms, with high precision but poor sensitivity. The largest recovery occurs between 5 and 20 dB, after which event-level detection largely saturates. Onset statistics change concurrently because the set of detected seizures expands, whereas Lag remains comparatively stable. The MCD analysis further shows that aggregate seizure-vote tendency increases as noise weakens, while false positives and false negatives exhibit different stability patterns: false alarms are generally supported by seizure-dominant stochastic votes, whereas missed seizures are generally supported by strongly nonseizure-dominant votes. RobustSeiz therefore exposes not only whether performance changes under a perturbation, but also how the detector’s operating regime, onset behavior, and stochastic decision stability change with perturbation severity 27,52,54 .

C

Reports

Comparable robustness claims require a shared reporting contract, not only a shared scoring library. We therefore provide a Model Card and a reproducibility checklist so that studies using this protocol document the detector, the evaluation setting, and the robustness profile in a form that can be compared across groups 28,29 .

C.1

Model Card

A Model Card is a short, structured summary of who built a detector, how it is run, and how it performed, intended to travel with the model rather than remain buried in supplementary methods 29 . Figure 11 is our template: it contains contact details, model details, and a standardized presentation of performance results. Authors should complete one card per detector (or per substantially different weight set), stating the evaluation corpus, operating mode (full evaluation versus research subset), shift families and hyperparameter grids, and the reporting stages used: detection quality, Lead and Lag, and Monte Carlo dropout agreement when applicable. The baseline block records clean held-out sample- and event-based sensitivity, precision, F1, and false positives per 24 h 27 on each public corpus and on a pooled setting in which the model is trained and tested on all corpora together. The results block then reports, for each shift category, an average range per metric. Every experiment in a category is a hyperparameter sweep and therefore a curve: for example, AWGN event F1 might take the values 0.20, 0.37, 0.59, 0.81, so that experiment’s minimum is 0.20 and its maximum is 0.81. For the Noise category, average those minima across all noise experiments and average those maxima, and enter the pair as the category range (avg min – avg max). The same range is required for event F1, event false positives per 24 h, event accuracy, event sensitivity, Lead, Lag, onset counts, and mean agreement ϕ. The figure is the canonical field list; copyable templates matching it are provided in the software release.

C.2

RobustSeiz Reproducibility Checklist

Figure 12 is a checklist for authors who report results under this protocol. The checklist is based on The Machine Learning Reproducibility Checklist 28 and asks authors to document models, datasets, shared code, and experimental results, including the items that accuracy-only papers omit: in-memory shift application on a read-only BIDS-EEG tree, full hyperparameter grids, matched scoring scope, Lead and Lag, stratified Monte Carlo dropout, Docker/active_model identity, and submission of experiments_results.csv. The checklist is a reporting aid, not a substitute for releasing code and data. 22

C.3

Robustness reports

Each run_experiment.py invocation appends one row to the repository-root file experiments_results.csv (override with –results-registry). That file is the machine-readable robustness report: it is tracked in the release, it is the source of the demonstration tables in Appendix B, and it is what authors should submit with a paper or as supplementary material alongside the Model Card. Do not hand-edit metric columns; re-run scoring or the provided backfill scripts if a cell is missing. Per-recording hypothesis trees under Results/ remain useful for audit but are not the comparative artifact; the registry is. Figure 13 shows the column layout. Identity columns (timestamp_utc, experiment_name, category, shift) name the run. data_dir and output_dir locate the read-only evaluation tree and the hypothesis folder. params_json stores shift hyperparameters as a JSON object (for example SNR, ε, impedance band), so a row remains interpretable without the original command line. Sample- and event-based sensitivity, precision, F1, and false positives per day occupy the next eight columns. Onset columns report Lead and Lag summaries in samples at 256 Hz among event-level true positives, plus ontime and true-positive counts. Monte Carlo dropout columns (mcd_* agreement and file counts) are written only when MCD is enabled; otherwise they are left empty. Submit the CSV covering every experiment mentioned in the paper; a partial registry is not a complete robustness report.

23

Table 8. Full-mode TUSZ evaluation of SeizureTransformer, one row per shift. Event-level Sens, Prec, F1, and FP/24h on the held-out split; Lead/Lag µ among onset true positives (samples at 256 Hz); TP is the onset true-positive count. Experiment

Cat.

Sens

Prec

F1

FP/24h

Lead µ

Lag µ

TP

ST_fgsm_dec_eps0.01_trs0.5 ST_fgsm_dec_eps0.05_trs0.5 ST_fgsm_dec_eps0.1_trs0.5 ST_fgsm_dec_eps0.50_trs0.5 ST_fgsm_dec_eps0.80_trs0.5 ST_fgsm_dec_eps1.00_trs0.5 ST_fgsm_inc_eps0.01_trs0.5 ST_fgsm_inc_eps0.05_trs0.5 ST_fgsm_inc_eps0.1_trs0.5 ST_fgsm_inc_eps0.50_trs0.5 ST_fgsm_inc_eps0.80_trs0.5 ST_fgsm_inc_eps1.00_trs0.5 ST_pgd_dec_eps0.01_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.05_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.1_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.50_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.80_alp0.01_stp10_trs0.5 ST_pgd_dec_eps1.00_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.01_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.05_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.1_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.50_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.80_alp0.01_stp10_trs0.5 ST_pgd_inc_eps1.00_alp0.01_stp10_trs0.5 Baseline BP_0p5_25 BP_0p5_40 BP_1_30 BP_1_40 CAR DRIFT_piecewise_0p05_0p5_ratio0.10_all DRIFT_random_walk_0_1_ratio0.10_all DRIFT_random_walk_0p05_0p5_ratio0.10_all DRIFT_random_walk_0p05_0p5_ratio0.10_all_inter DRIFT_random_walk_0p05_0p5_ratio0.10_one DRIFT_random_walk_0p1_1_ratio0.10_all DRIFT_sin_0p2hz_ratio0.03_all DRIFT_sin_0p2hz_uv50_all DRIFT_sin_band_0_1_ratio0.10_all DRIFT_sin_band_0_1_uv50_all DRIFT_sin_band_0_1_uv50_subset2 DRIFT_sin_band_0p05_0p5_ratio0.10_all DRIFT_sin_band_0p05_0p5_uv50_all DRIFT_sin_band_0p1_1_ratio0.10_all DRIFT_sin_band_0p1_1_uv100_all_inter DRIFT_sin_band_0p1_1_uv50_all DROP_O1O2 DROP_T7T8 FS_MissMatch_100 FS_MissMatch_200 FS_MissMatch_230 FS_MissMatch_50 IMP_0_1_ratio0.25_all IMP_0_1_uv100_all IMP_0_1_uv200_all IMP_0_1_uv25_all IMP_0_1_uv50_all IMP_0p05_0p5_ratio0.25_all IMP_0p05_0p5_uv100_all IMP_0p05_0p5_uv200_all IMP_0p05_0p5_uv25_all IMP_0p05_0p5_uv50_all IMP_0p1_1_ratio0.25_all IMP_0p1_1_uv100_all IMP_0p1_1_uv200_all IMP_0p1_1_uv25_all IMP_0p1_1_uv50_all QUANT_ADC_b10_uv100 QUANT_ADC_b12 QUANT_ADC_b5 AWGN_0 AWGN_100 AWGN_2 AWGN_20 AWGN_5 AWGN_50 ST_impulse_den0.0005_amp2.0_burst1_sym1 ST_impulse_den0.0005_amp4.0_burst1_sym1 ST_impulse_den0.001_amp2.0_burst1_sym1 ST_impulse_den0.001_amp4.0_burst1_sym1 ST_impulse_den0.005_amp2.0_burst1_sym1 ST_impulse_den0.005_amp4.0_burst1_sym1 ST_impulse_den0.008_amp2.0_burst1_sym1 ST_impulse_den0.008_amp4.0_burst1_sym1 ST_impulse_den0.01_amp2.0_burst1_sym1 ST_impulse_den0.01_amp4.0_burst1_sym1 MAINS60hz_amp0.10 MAINS60hz_amp0.50 MAINS60hz_amp0.80 MAINS60hz_amp1.00 NOTCH_50 NOTCH_50_100 NOTCH_60 NOTCH_60_120 NOTCH_mismatch_mains50_notch60_120_amp0.05 NOTCH_mismatch_mains50_notch60_amp0.03 NOTCH_mismatch_mains60_notch50_100_amp0.05 NOTCH_mismatch_mains60_notch50_amp0.03 NOTCH_mismatch_mains60_notch50_amp0.10 NOTCH_off

adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve adve base envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi envi nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois nois

0.95 0.99 1 1 1 1 0.54 0.56 0.58 0.69 0.71 0.71 0.98 1 1 1 1 1 0.49 0.46 0.46 0.45 0.41 0.39 0.57 0.574 0.574 0.574 0.574 0.57 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0 0 0.6 0.57 0.57 0.6 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.574 0.61 0.57 0.54 0.36 0.57 0.39 0.56 0.44 0.57 0.57 0.56 0.57 0.56 0.56 0.53 0.55 0.51 0.54 0.49 0.57 0.57 0.58 0.59 0.574 0.574 0.574 0.574 0.574 0.579 0.574 0.574 0.574 0.574

0.2 0.2 0.2 0.2 0.2 0.2 0.59 0.29 0.23 0.2 0.2 0.19 0.2 0.18 0.18 0.19 0.19 0.19 0.59 0.58 0.59 0.65 0.66 0.74 0.69 0.687 0.687 0.687 0.687 0.69 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 0.684 – – 0.65 0.68 0.69 0.62 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.687 0.69 0.69 0.71 0.94 0.69 0.91 0.71 0.82 0.69 0.69 0.69 0.7 0.7 0.72 0.75 0.73 0.77 0.73 0.79 0.68 0.71 0.72 0.75 0.687 0.687 0.687 0.687 0.682 0.686 0.677 0.677 0.677 0.687

0.33 0.33 0.34 0.34 0.33 0.33 0.56 0.38 0.33 0.31 0.31 0.3 0.34 0.31 0.31 0.31 0.31 0.32 0.53 0.51 0.52 0.53 0.5 0.51 0.62 0.625 0.625 0.625 0.625 0.62 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 0.624 – – 0.62 0.62 0.62 0.61 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.625 0.65 0.62 0.61 0.52 0.62 0.54 0.63 0.58 0.62 0.63 0.62 0.63 0.62 0.63 0.62 0.63 0.61 0.62 0.6 0.62 0.63 0.64 0.66 0.625 0.625 0.625 0.625 0.623 0.628 0.621 0.621 0.621 0.625

241 250 249 252 254 253 23.5 90.1 124 174 187 192 247 284 286 281 280 268 21.6 21.2 20.3 15.2 13.2 8.65 16.7 16.7 16.7 16.7 16.7 16.7 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 16.9 0 0 20.7 17.3 16.7 24.1 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 18.1 16.7 13.7 1.5 16.7 2.44 14.7 6.21 16.7 16.2 16.2 15.4 15 14.1 11.1 12.8 9.97 12.8 8.27 16.9 14.9 14.5 12.8 16.7 16.7 16.7 16.7 17.1 16.9 17.5 17.5 17.5 16.7

3.85e+04 4.38e+04 4.42e+04 4.38e+04 4.44e+04 4.44e+04 2.57e+04 2.77e+04 3.07e+04 2.7e+04 2.58e+04 2.36e+04 4.12e+04 4.31e+04 4.3e+04 4.21e+04 4.26e+04 4.31e+04 2.95e+04 2.82e+04 2.75e+04 3.17e+04 3.15e+04 2.69e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 – – 2.88e+04 2.73e+04 2.8e+04 2.94e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 3.08e+04 2.79e+04 2.91e+04 4.02e+04 2.78e+04 3.84e+04 3.12e+04 3.75e+04 2.78e+04 2.74e+04 2.73e+04 2.86e+04 2.71e+04 2.89e+04 3.16e+04 3.13e+04 3.33e+04 3.08e+04 3.36e+04 2.78e+04 2.74e+04 2.78e+04 2.75e+04 2.78e+04 2.78e+04 2.78e+04 2.78e+04 2.88e+04 2.89e+04 2.8e+04 2.79e+04 2.79e+04 2.78e+04

4.32e+03 3.58e+03 2.97e+03 2.71e+03 3164 2.83e+03 8.32e+03 1.11e+04 1.1e+04 1.35e+04 1.45e+04 1.33e+04 3.6e+03 560 664 1068 1366 960 8.94e+03 1e+04 9.94e+03 8.84e+03 9.24e+03 9.29e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 – – 7.73e+03 7.77e+03 7.78e+03 7.64e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 6.97e+03 7.78e+03 7.3e+03 7e+03 7.77e+03 6.73e+03 7.06e+03 6.53e+03 7.77e+03 7.48e+03 7.38e+03 7163 7.51e+03 7.88e+03 7.07e+03 7.27e+03 7.16e+03 7.4e+03 7.01e+03 7.78e+03 7.68e+03 8.29e+03 8.76e+03 7.77e+03 7.77e+03 7.77e+03 7.77e+03 7.68e+03 8.13e+03 7.75e+03 7.77e+03 7.75e+03 7.77e+03

322 336 339 339 339 339 183 192 198 234 241 242 333 340 340 340 340 340 166 156 158 152 138 131 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 0 0 204 195 195 205 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 209 195 182 121 195 131 192 151 195 195 191 193 189 192 180 186 173 185 166 195 194 196 199 195 195 195 195 195 197 195 195 195 195

24

Table 9. Research-subset MCD profile of SeizureTransformer on TUSZ (n=10 subjects, T =5, τ =0.8), one row per shift. n is contributing recordings; mean ϕ is recording-averaged agreement, also stratified by seizure, background, FP, and FN samples. Experiment ST_fgsm_dec_eps0.01_trs0.5 ST_fgsm_dec_eps0.05_trs0.5 ST_fgsm_dec_eps0.1_trs0.5 ST_fgsm_dec_eps0.50_trs0.5 ST_fgsm_dec_eps0.80_trs0.5 ST_fgsm_dec_eps1.00_trs0.5 ST_fgsm_inc_eps0.01_trs0.5 ST_fgsm_inc_eps0.05_trs0.5 ST_fgsm_inc_eps0.1_trs0.5 ST_fgsm_inc_eps0.50_trs0.5 ST_fgsm_inc_eps0.80_trs0.5 ST_fgsm_inc_eps1.00_trs0.5 ST_pgd_dec_eps0.01_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.05_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.1_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.50_alp0.01_stp10_trs0.5 ST_pgd_dec_eps0.80_alp0.01_stp10_trs0.5 ST_pgd_dec_eps1.00_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.01_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.05_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.1_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.50_alp0.01_stp10_trs0.5 ST_pgd_inc_eps0.80_alp0.01_stp10_trs0.5 ST_pgd_inc_eps1.00_alp0.01_stp10_trs0.5 Baseline BP_0p5_25 BP_0p5_40 BP_1_30 BP_1_40 CAR DRIFT_piecewise_0p05_0p5_ratio0.10_all DRIFT_random_walk_0_1_ratio0.10_all DRIFT_random_walk_0p05_0p5_ratio0.10_all DRIFT_random_walk_0p05_0p5_ratio0.10_all_inter DRIFT_random_walk_0p05_0p5_ratio0.10_one DRIFT_random_walk_0p1_1_ratio0.10_all DRIFT_sin_0p2hz_ratio0.03_all DRIFT_sin_0p2hz_uv50_all DRIFT_sin_band_0_1_ratio0.10_all DRIFT_sin_band_0_1_uv50_all DRIFT_sin_band_0_1_uv50_subset2 DRIFT_sin_band_0p05_0p5_ratio0.10_all DRIFT_sin_band_0p05_0p5_uv50_all DRIFT_sin_band_0p1_1_ratio0.10_all DRIFT_sin_band_0p1_1_uv100_all_inter DRIFT_sin_band_0p1_1_uv50_all DROP_O1O2 DROP_T7T8 FS_MissMatch_100 FS_MissMatch_200 FS_MissMatch_230 FS_MissMatch_50 IMP_0_1_ratio0.25_all IMP_0_1_uv100_all IMP_0_1_uv200_all IMP_0_1_uv25_all IMP_0_1_uv50_all IMP_0p05_0p5_ratio0.25_all IMP_0p05_0p5_uv100_all IMP_0p05_0p5_uv200_all IMP_0p05_0p5_uv25_all IMP_0p05_0p5_uv50_all IMP_0p1_1_ratio0.25_all IMP_0p1_1_uv100_all IMP_0p1_1_uv200_all IMP_0p1_1_uv25_all IMP_0p1_1_uv50_all QUANT_ADC_b10_uv100 QUANT_ADC_b12 QUANT_ADC_b5 AWGN_0 AWGN_100 AWGN_2 AWGN_20 AWGN_5 AWGN_50 ST_impulse_den0.0005_amp2.0_burst1_sym1 ST_impulse_den0.0005_amp4.0_burst1_sym1 ST_impulse_den0.001_amp2.0_burst1_sym1 ST_impulse_den0.001_amp4.0_burst1_sym1 ST_impulse_den0.005_amp2.0_burst1_sym1 ST_impulse_den0.005_amp4.0_burst1_sym1 ST_impulse_den0.008_amp2.0_burst1_sym1 ST_impulse_den0.008_amp4.0_burst1_sym1 ST_impulse_den0.01_amp2.0_burst1_sym1 ST_impulse_den0.01_amp4.0_burst1_sym1 MAINS60hz_amp0.10 MAINS60hz_amp0.50 MAINS60hz_amp0.80 MAINS60hz_amp1.00 NOTCH_50 NOTCH_50_100 NOTCH_60 NOTCH_60_120 NOTCH_mismatch_mains50_notch60_120_amp0.05 NOTCH_mismatch_mains50_notch60_amp0.03 NOTCH_mismatch_mains60_notch50_100_amp0.05 NOTCH_mismatch_mains60_notch50_amp0.03 NOTCH_mismatch_mains60_notch50_amp0.10 NOTCH_off

n

Mean ϕ

Seiz.

Bkg.

FP

FN

159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159 159

0.0317 0.0308 0.0331 0.0329 0.0318 0.0348 0.0306 0.0288 0.0352 0.0342 0.0294 0.0311 0.0334 0.0336 0.0333 0.0347 0.0299 0.0383 0.0305 0.0347 0.0323 0.0346 0.0343 0.0341 0.0312 0.058 0.0599 0.125 0.122 0.0334 0.0308 0.0341 0.0314 0.0316 0.0353 0.0332 0.0298 0.0336 0.0303 0.032 0.0318 0.0354 0.0336 0.0339 0.0327 0.0305 0.0325 0.0369 0.0344 0.0347 0.0354 0.032 0.0311 0.0315 0.034 0.0318 0.0327 0.0358 0.0324 0.0352 0.0306 0.032 0.0309 0.0308 0.0298 0.0337 0.0353 0.0325 0.032 0.0294 0.00626 0.033 0.00949 0.0269 0.0168 0.0356 0.0341 0.0311 0.0321 0.0295 0.0295 0.0221 0.0255 0.0243 0.0256 0.0269 0.0345 0.0312 0.0271 0.0254 0.034 0.0326 0.0354 0.0315 0.0379 0.0342 0.0359 0.033 0.0293 0.0338

0.151 0.15 0.142 0.145 0.151 0.152 0.148 0.151 0.151 0.15 0.146 0.143 0.149 0.148 0.146 0.148 0.157 0.156 0.142 0.148 0.155 0.144 0.147 0.156 0.152 0.229 0.211 0.261 0.286 0.151 0.141 0.15 0.153 0.146 0.149 0.145 0.154 0.151 0.151 0.159 0.152 0.153 0.146 0.153 0.147 0.147 0.158 0.148 0.158 0.149 0.15 0.171 0.149 0.146 0.152 0.149 0.14 0.142 0.148 0.151 0.147 0.151 0.155 0.146 0.141 0.143 0.154 0.22 0.159 0.133 0.0917 0.15 0.105 0.145 0.133 0.152 0.147 0.15 0.157 0.155 0.148 0.145 0.143 0.153 0.15 0.138 0.144 0.149 0.148 0.147 0.151 0.145 0.147 0.149 0.155 0.16 0.154 0.15 0.147 0.149

0.0287 0.028 0.0304 0.0301 0.029 0.032 0.0279 0.026 0.0323 0.0313 0.0266 0.0283 0.0306 0.0308 0.0305 0.0319 0.027 0.0352 0.0277 0.0319 0.0292 0.0318 0.0315 0.0311 0.0284 0.0541 0.0562 0.12 0.116 0.0307 0.0281 0.0312 0.0286 0.0289 0.0325 0.0303 0.0269 0.0308 0.0275 0.029 0.0289 0.0325 0.0308 0.031 0.0298 0.0278 0.0294 0.0341 0.0314 0.0319 0.0325 0.029 0.0282 0.0288 0.0312 0.0289 0.0301 0.0332 0.0296 0.0324 0.0279 0.0292 0.0281 0.028 0.0271 0.031 0.0324 0.0287 0.0291 0.0267 0.00487 0.0302 0.00791 0.0242 0.0146 0.0329 0.0314 0.0283 0.0293 0.0267 0.0267 0.0195 0.0228 0.0217 0.0229 0.0243 0.0318 0.0285 0.0244 0.0227 0.0312 0.0298 0.0326 0.0288 0.035 0.0312 0.033 0.03 0.0265 0.031

0.0517 0.038 0.039 0.0383 0.038 0.0396 0.493 0.181 0.156 0.105 0.0947 0.0901 0.0501 0.0327 0.032 0.0338 0.0293 0.0385 0.477 0.513 0.491 0.65 0.641 0.683 0.764 0.763 0.769 0.801 0.797 0.756 0.798 0.802 0.757 0.74 0.817 0.799 0.809 0.807 0.779 0.81 0.786 0.758 0.809 0.8 0.789 0.827 0.793 0.793 0.83 0.789 0.792 0.753 0.727 0.819 0.853 0.778 0.822 0.8 0.826 0.825 0.812 0.801 0.81 0.781 0.779 0.823 0.823 0.779 0.83 0.799 0.668 0.771 0.855 0.776 0.74 0.803 0.831 0.814 0.814 0.76 0.802 0.702 0.776 0.723 0.773 0.804 0.785 0.807 0.754 0.779 0.826 0.811 0.796 0.808 0.829 0.796 0.84 0.786 0.762 0.833

0.00256 0.0021 0.00356 0.0116 0.0279 0.0475 0.02 0.0454 0.0662 0.0967 0.0978 0.104 0.00258 0 0 0 0.000104 0.000278 0.0325 0.0524 0.0599 0.0341 0.038 0.0951 0.0375 0.0914 0.0614 0.0655 0.092 0.0381 0.0328 0.0464 0.0473 0.0383 0.0443 0.0438 0.0441 0.0453 0.0477 0.0572 0.0499 0.0431 0.0385 0.0482 0.0426 0.0375 0.0502 0.0421 0.0483 0.0353 0.0386 0.0477 0.0371 0.0387 0.0453 0.0456 0.0328 0.0356 0.0433 0.0463 0.0406 0.0436 0.0534 0.0425 0.0327 0.0349 0.0496 0.061 0.0452 0.042 0.042 0.0475 0.0335 0.0413 0.0397 0.0466 0.0367 0.0358 0.0456 0.0429 0.0402 0.0448 0.0342 0.0363 0.0441 0.0309 0.0426 0.0385 0.0347 0.0308 0.0471 0.0375 0.0443 0.0329 0.0443 0.0531 0.0463 0.0422 0.036 0.0392

25

Model Card: RobustSeiz robustness report Model name

Contact details Developers Institution Contact email

Model details Link to source code Citation details Model description Adapter / weights Operating mode

☐ full evaluation split

☐ research subset (n subjects = ____)

Docker / active_model: ________

Evaluation protocol Dataset(s)

☐ CHB-MIT

Shift families

☐ environment

Scoring stages

sample + event (Sens, Prec, F1, FP/24 h)

☐ TUSZ

☐ Siena

☐ noise

☐ SeizeIT1

☐ adversarial

other: ________

hyperparameter grids attached: ☐ yes ☐ Lead / Lag

☐ MCD φ (T = ____, τ = ____)

Baseline Results: clean held-out detection (sample- and event-based) Enter one value per corpus. All = trained and tested on all corpora together. Event-based

Metric CHB-MIT

TUSZ

Siena

Sample-based SeizeIT1

All

CHB-MIT

TUSZ

Siena

SeizeIT1

All

F1-score Sensitivity Precision FP / 24 h

RobustSeiz Results: robustness, lead and lag, agreement index Each experiment is a hyperparameter sweep and yields a curve per metric (e.g. AWGN event F1: 0.20, 0.37, 0.59, 0.81 → min 0.20, max 0.81). For a category, average those minima across its experiments and average those maxima; enter the pair as avg min – avg max.

Environment

Noise

Adversarial

avg min – avg max

avg min – avg max

avg min – avg max

Event F1

________ – ________

________ – ________

________ – ________

Event FP / 24 h

________ – ________

________ – ________

________ – ________

Event accuracy

________ – ________

________ – ________

________ – ________

Event sensitivity

________ – ________

________ – ________

________ – ________

Lead

________ – ________

________ – ________

________ – ________

Lag

________ – ________

________ – ________

________ – ________

Onset counts

________ – ________

________ – ________

________ – ________

Mean ϕ agreement index

________ – ________

________ – ________

________ – ________

Metric

Registry ☐ experiments_results.csv submitted with this card (every reported experiment; no hand-edited metrics).

Registry path / DOI Intended use and limitations (one paragraph; note matched scoring scope, montage exceptions, and degenerate shifts).

Complete one card per detector or substantially different weight set. After Mitchell et al., Model Cards for Model Reporting.

Figure 11. Model Card: RobustSeiz robustness report. Baseline scores are entered per corpus (CHB-MIT, TUSZ, Siena, SeizeIT1) and for a pooled train-and-test setting. Each robustness cell is a category-level average range: the mean of per-experiment minima to the mean of per-experiment maxima, for event F1, event false positives per 24 h, event accuracy, event sensitivity, Lead, Lag, onset counts, and mean agreement ϕ 27,29 .

26

RobustSeiz Reproducibility Checklist For all models, datasets, shared code, and experimental results, check if you include:

Models and algorithms

Shared code

☐

☐

Specification of dependencies.

☐

Training code (if the detector was trained or finetuned).

☐

Evaluation code, including the exact run_experiment.py command lines.

☐

(Pre-)trained model(s) and the active_model / Docker image identity.

☐

README with a results table and the precise command to reproduce each row.

☐

Submitted experiments_results.csv covering every reported experiment.

A clear description of the mathematical setting, algorithm, and/or model, including assumptions and parameters.

☐

Input data: sampling frequency, channel count, and montage (unipolar 10-20 or the documented CHB-MIT bipolar exception).

☐

Detector adapter, pretrained weights, and inference contract (read-only EDF in; hypothesis events.tsv out).

☐

An analysis of the complexity (time, space, sample size) of any algorithm.

Datasets Experimental results

☐

☐

Dataset description: number of subjects, seizures, seizure type, and recording duration.

☐

Hyper-parameter ranges (model and shift grids), selection method, and values used.

Train / validation / test splits that respect subject independence and chronology.

☐

The exact number of training and evaluation runs.

☐

A clear definition of each measure or statistic used to report results.

☐

Sample- and event-based sensitivity, precision, F1-score, and FP per 24 h.

☐

Excluded data and all pre-processing steps (including BIDS-EEG conversion).

☐

A link to a downloadable version of the dataset.

☐

For new data: annotator instructions, quality control, and a BIDS-EEG / HED-SCORE release.

☐

Results on the public corpora actually used (CHBMIT, TUSZ, Siena, SeizeIT1).

Evaluation tree kept read-only; RobustSeiz shifts applied in memory.

☐

Lead and Lag among event-level true positives whenever timing is claimed.

☐

Stratified MCD agreement φ, with T and τ, whenever uncertainty is claimed.

☐

Matched scoring scope (full evaluation vs research subset) for every metric.

☐

Average runtime or estimated energy cost, and the computing infrastructure used.

☐

Based on The Machine Learning Reproducibility Checklist (Pineau et al.), refined for RobustSeiz shifts, matched scope, onset, uncertainty, and the experiment registry.

Figure 12. RobustSeiz Reproducibility Checklist. Items required for models, datasets, shared code, and experimental results, based on The Machine Learning Reproducibility Checklist and refined for controlled shifts, matched scoring scope, Lead and Lag, Monte Carlo dropout, and the experiment registry 28 .

27

experiments_results.csv Identity timestamp_utc experiment_name category shift

one row appended per run_experiment.py call

Paths / params data_dir output_dir params_json (shift hyperparameters)

Sample scores

Event scores event_sensitivity event_precision event_f1 event_fp_per_day

sample_sensitivity sample_precision sample_f1 sample_fp_per_day

Onset (Lead / Lag)

MCD mcd_*_agreement mcd_n_files_* (blank if MCD off)

lead_* lag_* ontime_n_events tp_n_events

Example excerpt (columns truncated with …)

timestamp_utc

experiment_name

shift

params_json

event_f1

event_fp_per_day

lead_mean_steps

2026-06-01T06:36:58Z

Baseline

2026-06-01T08:12:11Z

AWGN_snr20

none

{}

0.62

16.7

2.78e4

awgn

{"snr_db": 20}

0.63

14.7

3.12e4

mcd_mean_agreement

0.027

Submit the CSV with the Model Card. Metric columns are written by the pipeline; leave MCD cells empty when dropout is off.

Figure 13. Structure of experiments_results.csv. One row per experiment; column groups are identity, paths and params_json, sample and event scores, Lead/Lag onset summaries, and optional Monte Carlo dropout fields (blank when MCD is off). The excerpt is demonstrative.

28

Related documents

Record · ID 639671 · SHA-256 d80ab92d835bad1a
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive