Back to Search View Original Cite This Article

Abstract

<jats:p>Automated electrocardiogram (ECG) interpretation has advanced, yet most systems remain narrow classifiers that emit fixed labels rather than the narratives or endpoint–specific answers clinicians need. Generative approaches could instead produce rich narratives, but are constrained by the gap between continuous biosignals and discrete language tokens. Here we present DeepECG–Tok, which reframes ECG interpretation as a unified instruction–following problem. A residual vector-quantization tokenizer (QINCo) maps 12–lead waveforms to language–model–compatible tokens. Its frozen embeddings achieved a macro–averaged area under the receiver operating characteristic curve (AUROC) of 0.96 for 77–condition classification, outperforming supervised and self–supervised baselines. Aligned with a large language model, a single instruction-tuned model performed ECG interpretation, structured reporting and clinical endpoint prediction, including left ventricular ejection fraction, structural heart disease and atrial fibrillation risk, using 7.27 million question answer pairs. Endpoint classifiers using the frozen tokenizer transferred without retraining to four external cohorts, retaining AUROCs of 0.88—0.90. Evaluated end to end using an ontology–grounded large language model as a judge, which achieved a mean agreement (Cohen′s K) of 0.82 against two cardiologists, the unified instruction-tuned model scored 0.71 internally and 0.50—0.53 in the same external cohorts. In a blinded reader study, board-certified cardiologists and residents rated its free-text reports comparably to reference clinician reports, with a paired win–tie–loss distribution of 32:35:33 and a forced-choice preference of 0.53 among decided cases, with no significant difference between the model and reference reports in either comparison. These findings establish discrete ECG tokenization as a foundation for general–purpose models that generate clinically useful interpretations and answer diverse questions directly from cardiac waveforms.</jats:p>

Show More

Keywords

model interpretation language using reports

Related Articles

PORE

About

Connect