Forecasting Shockable In-Hospital Cardiac Arrest from Continuous Telemetry

Mayank Keoliya, Seewon Choi, Neelay Velingker, Alaia Solko-Breslin, Alireza Oraii, Sameed Ahmed M. Khatana, Mayur Naik, Gary E. Weissman, Eric Wong, Rajeev Alur, Rajat DeoML4H 2026 Poster 2026

TL;DR

Every year, hundreds of thousands of hospitalized patients suffer in-hospital cardiac arrest, and for "shockable" rhythms like ventricular tachycardia (VT) and ventricular fibrillation (VF), even a one-to-two-minute delay in defibrillation slashes survival odds by more than half. This paper introduces CAMEL, an ECG-language model that reads raw, continuous cardiac telemetry to forecast impending VT/VF minutes to hours before it happens. Evaluated on a newly collected dataset of 911 patients, CAMEL provides at least 10 minutes of advance warning for 57.5% of events (with a median lead time of 97 minutes) while keeping false alarms to 3.07 per patient-day—nearly half that of prior ECG foundation models.

What Problem Does This Paper Address?

In-hospital cardiac arrest strikes roughly 290,000 patients annually in the United States, with about a quarter involving shockable rhythms (VT/VF). While hospitals routinely monitor patients with continuous cardiac telemetry, AI models for electrocardiograms (ECGs) have mostly been trained on 10-second snapshots to diagnose existing conditions or estimate long-term risk.

Forecasting imminent VT/VF from continuous telemetry is a different beast altogether. It requires tracking subtle, evolving cardiac instability over minutes and hours. Until now, two major roadblocks stood in the way:

  1. Data scarcity: Public telemetry datasets tend to be too short, have too few leads, lack precise cardiologist-annotated event onset times, or contain very few VT/VF cases.
  2. Modeling inefficiency: General-purpose and specialized ECG-language models typically process ECGs as images, which is token-inefficient and poorly suited for hours-long, multi-lead continuous streams.

Methods

The authors frame real-time VT/VF forecasting as a rolling-window prediction task. Every 60 seconds, the model looks at the preceding 60 seconds of telemetry and estimates the probability of VT/VF onset within the next 2 hours. Predictions made less than 10 minutes before onset are excluded so clinicians would actually have time to intervene. To prevent alarm fatigue, once an alarm fires, repeat alerts are suppressed for 30 minutes.

To model the raw waveforms efficiently, the authors built CAMEL (Cardiac Autoregressive Model for ECG Language Modeling). Instead of converting ECG tracings into images, CAMEL uses a CNN-based encoder to map each one-second, single-lead ECG segment directly into a single token. They pretrain this encoder alongside a LoRA-adapted MedGemma language model using a multi-stage ECG–text alignment curriculum, teaching it both beat-level and rhythm-level representations. For VT/VF forecasting, they freeze the pretrained backbone and train only a lightweight two-layer MLP prediction head.

Datasets

To overcome the lack of suitable benchmarks, the authors collected PennVT, a retrospective dataset from an academic health system at the University of Pennsylvania. It comprises 9,368 hours of continuous, eight-lead telemetry from 911 hospitalized patients:

  • 80 VT/VF cases, with exact onset times adjudicated by two expert cardiologists (using up to 3 hours of telemetry immediately preceding onset).
  • 831 control patients sampled from the same clinical units and study period (using a randomly selected 3-hour interval).

Key Insights and Ideas

  • CAMEL tracks evolving instability, not just baseline sickness: As VT/VF onset approaches, CAMEL's predicted risk rises and sustained warnings (10+ consecutive above-threshold predictions) jump from 15.2% to 24.2% of patients. A static baseline that simply reuses each patient's initial 60-second risk score generates 2.7× more false alarms, confirming that CAMEL is picking up acute deterioration.
  • Raw waveforms carry signal that summary metrics miss: Random forests trained on standard ECG measurements (like QRS duration) or vital-sign-based risk scores (CART) perform significantly worse, showing that raw telemetry contains predictive patterns beyond standard intervals and heart rate.
  • Pretraining is essential: Deep learning architectures trained from scratch (CNN, TCN, and Transformer) perform comparably to or worse than the measurement-based random forest. Having raw waveform access isn't enough—pretrained representations are what unlock forecasting performance.
  • Alarm policy matters as much as the model: Adding a 30-minute suppression window after an alert drops false alarms from 44.13 to 3.07 per patient-day without sacrificing event sensitivity.

Key Results

In five-fold cross-validation on PennVT under the primary configuration (2-hour horizon, 60-second lookback, 30-minute suppression):

  • Early Warning: CAMEL provides at least 10 minutes of advance warning for 57.5% (46 of 80) of VT/VF events, with a median lead time of 97 minutes from the first true alarm to onset.
  • False Alarm Burden: 91.8% of control patients receive no alarm at all; false alarms are concentrated in 8.2% of controls, averaging 3.07 false alarms per patient-day (compared to 5.64–9.78 for prior ECG foundation models like OpenTSLM, xECG, and ECG-CPC, and ~4.8× more for CART).
  • Discrimination: CAMEL achieves an AUROC of 0.832 and an alarm PPV of 34.9%, outperforming the ECG-measurement random forest (0.749 AUROC) and CART (0.623 AUROC) by 0.083 and 0.209, respectively.
Event sensitivity and false alarm burden trade-offs

Limitations and Future Work

The authors note that PennVT's 80 VT/VF cases represent a modest sample size relative to the diversity of patients and arrhythmia mechanisms, and all data came from a single health system. Because this is a retrospective benchmark, external and prospective validation will be needed to determine whether CAMEL's sensitivity–alarm trade-off is actionable in live clinical workflows. Finally, while CAMEL's rising risk scores correlate with approaching VT/VF, the model does not yet explain which specific electrophysiological changes are driving its predictions.

Summary updated

BibTeX
@inproceedings{keoliya2026forecasting,
  author = {Mayank Keoliya and Seewon Choi and Neelay Velingker and Alaia Solko-Breslin and Alireza Oraii and Sameed Ahmed M. Khatana and Mayur Naik and Gary E. Weissman and Eric Wong and Rajeev Alur and Rajat Deo},
  title = {{Forecasting Shockable In-Hospital Cardiac Arrest from Continuous Telemetry}},
  booktitle = {ML4H 2026 Poster},
  year = {2026},
  url = {https://openreview.net/forum?id=Xpo7k7exva},
}
Figure