No analysis yet
Hover over "Patients" to choose from 10 example cases,
or upload your own EEG data, then click "Run Analysis".
The PINN outputs 3D MNI coordinates of the
epileptogenic zone, constrained by Hodgkin-Huxley physics.
Raw EEG Channels
18-channel scalp EEG (10-20 bipolar montage). Red line = seizure onset.
Upload Format Guide
Your CSV should have:
- 18 columns — one per EEG channel (10-20 bipolar montage)
- 2560 rows — 10 seconds at 256 Hz (shorter files are zero-padded)
- No header row — just numeric values
- Channel order: FP1-F7, F7-T7, T7-P7, P7-O1, FP1-F3, F3-C3, C3-P3, P3-O1, FP2-F4, F4-C4, C4-P4, P4-O2, FP2-F8, F8-T8, T8-P8, P8-O2, FZ-CZ, CZ-PZ
Overview
This system predicts the epileptogenic zone (EZ) from scalp EEG data. It outputs exact 3D coordinates in MNI space and a confidence spread, visualised as a glowing hotspot on the interactive brain model.
Physics-Informed Neural Network
Unlike standard neural networks, a PINN is constrained by the laws of physics. The model learns to reject predictions that violate the Hodgkin-Huxley equations governing how neurons fire.
18ch × 2560t
3×128 Tanh
(x,y,z,σ)
V,m,h,n,I
The 4 Hodgkin-Huxley Equations
These equations describe electrical signal propagation through neurons via ion channels:
Inference Pipeline
When you click "Run Analysis", the following happens in your browser:
18-channel EEG is z-score normalised per channel to match training data distribution.
Pre-trained PINN outputs initial 3D coordinates and HH state variables (V, m, h, n) per timestep.
HH variables are refined via gradient descent, minimising the residual of all 4 Hodgkin-Huxley equations to improve physical plausibility.
Training Data
Trained on the CHB-MIT Scalp EEG Database (PhysioNet) — 5 paediatric patients with annotated seizure onsets. 8x data augmentation (noise, scaling, channel dropout, time shift). EZ ground truth derived from energy-weighted centroid of electrodes.
Limitations
Scalp EEG has ~1-2 cm spatial resolution. The predicted EZ is a probabilistic hotspot, not surgical-precision. This tool is for research and educational purposes only — not a medical device.