TL;DR
Imagine trying to predict an electrical storm in the brain by looking only at a few noisy sensors, ignoring the rest of the body and the surrounding environment—that is how most automated epilepsy models work today. NeuroNTP changes this by treating brainwaves, heart rate, blood oxygen, and clinical notes as a single, continuous "language" modeled by a modern recurrent architecture (xLSTM). Pretrained on a massive 150,000-hour clinical dataset, it streams multi-day recordings with constant memory and sets a new state-of-the-art for detecting and forecasting seizures—even on hospital setups it has never seen before.
What Problem Does This Paper Address?
Epilepsy affects roughly 50 million people worldwide. Diagnosing and managing it requires continuous monitoring via electroencephalography (EEG), which measures electrical activity on the scalp. Manually reading days of multi-channel squiggly lines is exhausting and error-prone, making automated detection and forecasting a holy grail for patient safety.
However, existing deep learning and "brain foundation models" hit four major walls in the real world:
- Tunnel vision (Unimodality): Seizures are systemic events—heart rate spikes (captured by ECG) or oxygen drops ($\text{SpO}_2$) often precede brainwave changes. Furthermore, chewing food can look suspiciously like a seizure on an EEG unless you have a nurse's note saying "patient eating." Most models look only at EEG.
- The Transformer memory trap: Standard Transformers suffer from quadratic compute scaling, and even with key-value caching, their memory and latency grow endlessly as a multi-day recording streams in.
- Hardware rigidity: Different hospitals place electrodes in different layouts (montages). Models trained on one setup often break on another.
Methods
NeuroNTP unifies heterogeneous clinical data into an autoregressive, next-token prediction framework—similar to how GPT models text, but tailored for continuous physiology.
Here is how the pieces fit together:
- Multimodal Tokenization & 3D Geometry: Raw biosignals (EEG, ECG, $\text{SpO}_2$) are converted into spectrograms and passed through a shared convolutional stem, followed by lightweight, low-rank adapters for each specific channel. Crucially, instead of hardcoding channel order, EEG tokens are tagged with their 3D spatial coordinates on the scalp. Clinical notes are embedded via a frozen medical-BERT model. All tokens from a given timestep are flattened into a single sequence.
- Stateful xLSTM Backbone: Rather than a Transformer, NeuroNTP uses an Extended Long Short-Term Memory (xLSTM) network. Equipped with exponential gating and matrix memory, xLSTM scales linearly with sequence length and maintains a recurrent state—meaning it can stream days of continuous hospital data with constant memory and latency per update.
- Seizure-Proximity Supervision: Alongside predicting the next biosignal token (using a robust L1-style loss), the model is trained with auxiliary heads at every token. The standout innovation here is predicting Time-to-Seizure (TTS) and Time-Past-Seizure (TPS). Only TPS is fed as an input (to prevent cheating by looking into the future), forcing the model's latent space to track the slow, pre-seizure build-up rather than just memorizing background noise.
Datasets
- Pretraining — KUK Dataset (Private): One of the largest retrospective epilepsy cohorts ever assembled, recorded at Kepler Universitätsklinikum. It spans 150,000+ hours (>16 TB) across 1,302 patients, pairing EEG with synchronized ECG, $\text{SpO}_2$, and 101 types of time-aligned clinical text markers (e.g., "oral automatisms", "nursing staff enters").
- Downstream Evaluation (Public): To test out-of-domain generalization, the authors evaluate on CHB-MIT (long-term pediatric scalp EEG) and Siena Scalp EEG (adult recordings with distinct clinical montages), using only biosignals at test time.
Key Insights and Ideas
- Multimodal pretraining makes unimodal inference smarter: Even when NeuroNTP is tested using only EEG signals (no text notes, no heart rate) and with its backbone completely frozen, the model pretrained with clinical text and ECG vastly outperforms a model pretrained on EEG alone (jumping from 63.1% to 78.9% AUROC on KUK linear probing). Teaching the model what a nurse's note or heart rate spike means during training permanently organizes its internal representation of brainwaves.
- Context kills false alarms: When clinical notes are provided during KUK evaluation, detection performance skyrockets. Environmental annotations allow the model to separate everyday muscle artifacts from genuine epileptic discharges.
- Plug-and-play electrode transfer: By decoupling signal content from 3D electrode coordinates, NeuroNTP adapts to unseen sensor layouts on public datasets simply by initializing new channel adapters from the spatially nearest pretrained electrode.
Key Results
Across both private and public benchmarks, NeuroNTP consistently beats specialized supervised baselines and recent Transformer/state-space EEG foundation models.
- In-Domain Seizure Detection (KUK): Using biosignals alone, NeuroNTP achieves 84.2% AUROC and 71.5% Balanced Accuracy (BACC), beating the strongest baseline (FFCL at 81.7% AUROC / 61.7% BACC). Adding clinical annotations pushes NeuroNTP to 94.3% AUROC.
- Zero-Text Public Generalization: Fine-tuned on EEG-only public benchmarks, NeuroNTP sets new state-of-the-art marks: 93.8% AUROC / 84.7% BACC on CHB-MIT (+4.4% AUROC over EEGMamba) and 93.6% AUROC / 87.5% BACC on Siena (+2.8% AUROC over CSBrain).
- Seizure Prediction & Semantic Alignment: On KUK, NeuroNTP forecasts seizures within a 0–15 minute horizon at 85.0% AUROC. Without any task-specific fine-tuning, it can also infer expert EEG phenomenon annotations directly from raw biosignals with an 81.6% F1 score.
Limitations and Future Work
- Data Privacy & Single-Center Bias: Due to strict medical privacy laws, the 150k-hour KUK dataset cannot be released (though code and pretrained weights are open-sourced), and pretraining on a single hospital's cohort may introduce local clinical biases.
- Fixed Sampling & Ordering: The tokenizer currently lacks temporal invariance (requiring fixed-rate resampling) and flattens simultaneous multimodal tokens in a fixed order, which may introduce subtle ordering biases.
- Clinical Deployment Hurdles: High AUROC does not automatically solve "alarm fatigue" in hospital wards; operating thresholds must still be calibrated per care setting. Future work aims to validate NeuroNTP prospectively in live hospital monitoring, incorporate wearable sensors (like smartwatches), and use federated learning and quantization for privacy-preserving edge deployment.
Summary updated