AI & method

AI & method

The monitoring problem, physiological signals and model design.

The question

The problem itself — who is affected, what goes unwitnessed, what the care gaps are — is on the Problem page. This page is about how AI answers it.

The question ICTRA answers

Can a student-buildable wearable that fuses EEG, ECG and EMG with a trained multimodal model detect seizures with clinically useful sensitivity and fewer than one false alarm per day, on patients it has never seen?

Why detection, not prediction

We asked whether ICTRA should forecast seizures minutes ahead instead of detecting them. We read the evidence and decided no. The best wearable forecasting study to date (11 patients, about 337 days of smartwatch heart rate and steps each, seizures confirmed by implanted EEG) reaches AUC 0.74–0.78 only after 2–3 months of training per patient, is better than chance in 5–10 of 11 people, and keeps the wearer in a "warning" state for 6–8 hours a day. A review of 72 heart-rate-variability studies found pre-ictal changes mostly within 5 minutes of onset, all patient-specific and retrospective. Our training data cannot support a forecasting claim either: hospital stays of 2–5 days, few seizures per patient, and de-identified clocks that remove the circadian cycles forecasting relies on.

What our own data do show is that the heart changes a few seconds before the behind-the-ear EEG in about half of focal seizures. That is early detection, and it is where fusion can shorten the alarm delay. We also ran one exploratory check for drift in the two minutes before onset against 5,350 patient-matched control points (Exp P): none of the four signals moves before the seizure starts, in any seizure type (details on the Evidence page). ICTRA detects and alerts; it does not forecast.

EEG, ECG and EMG during a seizure

Within seconds of onset, the EEG shows rhythmic discharges, the heart rate jumps rather than ramps, and muscles fire in sustained high-frequency bursts. No single signal is reliable on its own; together they are hard to fake.

Line drawing of a head and torso with four marked sensor sites: EEG behind the ear, ECG at the chest, EMG at the left shoulder, movement at the upper back.
Where each signal comes from. Four places on the body, four traces. The colour of each site is the colour that signal keeps everywhere else on this site and in our figures. Positions are the ones used in the SeizeIT2 recordings, not a design of our own.
Concept render: three white sensor patches on dark slate — a curved behind-the-ear EEG patch showing two silver electrode discs, a two-pad chest ECG patch joined by a short lead, and a thicker arm patch for EMG and motion
Three signals, three contact points. Concept render (AI-generated) Left to right: behind-the-ear EEG (two electrodes), chest ECG (two pads), upper-arm EMG with the accelerometer inside. This is the design intent for the wearable, AI-generated on 18 Oct 2026; the SeizeIT2 recordings ICTRA trains on were made with two Byteflies Sensor Dots and wired electrodes, as described on the Engineering page. About the renders
What each signal does at seizure onset (schematic)
Schematic, not patient data. Patterns follow the clinical literature: ictal rhythms and electrodecrement on EEG, ictal tachycardia of 50% or more above baseline on ECG, and tonic/clonic activation on EMG. Sources: Eggleston 2014 · EMG sites
Before any classifier: we measure the order of events

Our first experiment is not a detector. For every annotated seizure in the development set we align brain, heart and muscle to the onset and measure which signal moves first and by how many seconds: lag_eeg_to_hr, lag_eeg_to_emg, lag_emg_to_acc, by seizure type. The same question a landslide study asks of rain, soil water and ground motion. Heart and muscle are only useful at the moments they actually respond, so this timeline decides which signal to trust for which seizure. The measured version of the schematic above lands in Results.

False alarms per 24 h by sensor combination

Each added signal removes false alarms

Wearable detection of tonic-clonic seizures; sensitivity shown beside each bar

Behind-the-ear EEG study summarised in a 2025 review. source ↗
Single-signal ceiling on the newest benchmark

ECG-only detectors on SeizeIT2

Sensitivity at the sensitivity-optimised operating point, strict criterion; false alarms per hour in brackets

Reintjes et al., Sensors 2025, Table 2. The low-alarm operating points reach only 20–37% sensitivity. source ↗

Model architecture and decision rule

A heart-rate threshold alarms on a staircase. An EMG threshold alarms on a shopping bag. An EEG amplitude threshold alarms on every blink. What identifies a seizure is the joint, time-evolving pattern across brain, heart and muscle, and it differs by person and seizure type. Learning that pattern from hundreds of annotated seizures is what a model can do and a hand-written rule cannot.

Three independent model variants

A: EEG. B: EEG + ECG. C: EEG + ECG + EMG + motion.

These are separate comparison models, not stages feeding predictions into one another. All use the same patient splits and evaluation protocol.

Open the full-size model comparison diagram ↗
Three independently trained model variants: A uses EEG; B uses EEG and ECG; C uses EEG, ECG, EMG and motion. All use the same patient splits and evaluation protocol.
Schematic drawn from the pipeline code. The input sets and shared evaluation are explained above; the feature cells and trees are schematic. View full-size diagram ↗ · Image provenance
BIG IDEA 1

Perception

Electrodes turn microvolt activity into samples; filters and spectrograms turn samples into features the model can see. We keep 1–25 Hz for EEG because ictal rhythms live there, and we filter out mains hum rather than learn it.

BIG IDEA 2

Representation & Reasoning

A 4 s window becomes a short vector of physical quantities: band powers and line length for the brain, heart rate and its rise over the last five minutes for the heart, burst energy for the muscle. The model reasons over those, and we can read back which ones it used.

BIG IDEA 3

Learning

Supervised learning from clinician-annotated seizures in SeizeIT2 only, split by patient. The locked test patients and five external datasets are opened once, after a hashed pre-registration. Within-patient splits inflate accuracy; we refuse them.

BIG IDEA 4

Natural Interaction

The system talks to humans at the right moment: an alert a caregiver can act on, a dashboard a neurologist can audit, no screen the patient must watch.

BIG IDEA 5

Societal Impact

A medical-grade capability at consumer cost, data kept local, and an ethics section that names who the model was not trained on.

The decision rule, visualised

k of n: three of the last five windows must agree

Fused probability per 4-second window (2-second hop); example threshold τ = 0.70. One spike (window 3) is ignored; sustained evidence (windows 7–9) fires the alert.

Requiring agreement across consecutive windows is the single most effective false-alarm reducer in the seizure-detection literature. It costs a few seconds of latency, which we measure and report.
Model specifications and comparison methods
ComponentArchitectureOutputWhy
Model A · EEGGradient-boosted trees (XGBoost on GPU; LightGBM, logistic regression and random forest as comparisons) on band powers 1–4 / 4–8 / 8–13 / 13–25 Hz, line length, variance, zero-crossings, spectral edge and kurtosis per channel, plus each feature's change against its own rolling 5-minute medianp(seizure) per 4 s windowTrains in minutes, runs on a laptop; importances show which rhythm fired
Model B · + ECGAdds heart rate, its maximum, rise over the rolling 5-minute baseline (bpm and %), SDNN, RMSSD, slope, and a beat-quality flagp(seizure) per windowIctal tachycardia is a jump, not a level: the baseline comparison is the feature
Model C · + EMG + motionAdds EMG envelope (log RMS), zero-crossings, burst fraction, change vs baseline; accelerometer magnitude, jerk and 1–8 Hz powerp(seizure) per windowSeparates a tonic phase from lifting a bag by duration, rhythm and spectrum
RulesFour single-signal thresholds (heart-rate rise, EMG level, EEG line length, movement), each tuned exactly like the modelsalert on/offThe honest baseline every model has to beat
Decisionk-of-n (3 of 5 windows) above τ; τ tuned on an inner split of the training patients for maximum event F1, then frozen; alarms closer than 90 s mergealert on/offTwo hyper-parameters, fully explainable; the same rule for every model
Planned comparisonA small 1-D CNN on the raw behind-the-ear EEG, and a 2-D CNN on spectrograms, run as later versions against the same rule—Accepted only if they beat the tree model on the development folds under the pre-set rule