Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

A unified 12-lead ECG-language model for interpretation and clinical-endpoint prediction

View ORCID ProfileRohan Banerjee, View ORCID ProfileJuliette Beaulieu, View ORCID ProfileNicolas Dostie, Blandine Mondésert, View ORCID ProfileRam Ahuja, View ORCID ProfileAlexis Nolin-Lapalme, View ORCID ProfileGilbert Jabbour, View ORCID ProfileShreya Shree Srikanth, View ORCID ProfileGuillaume Marquis-Gravel, Olivier Tastet, Achille Sowa, View ORCID ProfileJulia Cadrin-Tourigny, View ORCID ProfileJacques Delfrate, View ORCID ProfileRobert Avram
doi: https://doi.org/10.64898/2026.07.22.26358591
Rohan Banerjee
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Rohan Banerjee
Juliette Beaulieu
cUniversité de Montréal, Montreal, Quebec, Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Juliette Beaulieu
Nicolas Dostie
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
cUniversité de Montréal, Montreal, Quebec, Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Nicolas Dostie
Blandine Mondésert
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
cUniversité de Montréal, Montreal, Quebec, Canada
dKaren and Murray Dalfen Arrhythmia Center, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
eAdult Congenital Heart Disease Center, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ram Ahuja
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
fFaculty of Medicine, University of Ottawa, Roger Guindon Hall, 451 Smyth Rd, Ottawa, ON K1H 8M5
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Ram Ahuja
Alexis Nolin-Lapalme
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
cUniversité de Montréal, Montreal, Quebec, Canada
gMila - Québec AI Institute, Montreal, Quebec, Canada H2S 3H1
MD-PhD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Alexis Nolin-Lapalme
Gilbert Jabbour
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Gilbert Jabbour
Shreya Shree Srikanth
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
hDepartment of Computer Science, University of Toronto, 27 King’s College Cir, Toronto, ON, M5S 1A1 Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Shreya Shree Srikanth
Guillaume Marquis-Gravel
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
cUniversité de Montréal, Montreal, Quebec, Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Guillaume Marquis-Gravel
Olivier Tastet
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Achille Sowa
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Julia Cadrin-Tourigny
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
cUniversité de Montréal, Montreal, Quebec, Canada
dKaren and Murray Dalfen Arrhythmia Center, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
iCardiovascular Genetics Center, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
MD-PhD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Julia Cadrin-Tourigny
Jacques Delfrate
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
MSc
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Jacques Delfrate
Robert Avram
aDepartment of Medicine, Montreal Heart Institute, 5000 Belanger Street, QC, H1T 1C8 Canada
bHeartWise.ai Laboratory, 5000 Belanger Street, QC, H1T 1C8 Canada
MD-MSc
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Robert Avram
  • For correspondence: robert.avram.md{at}gmail.com
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Supplementary material
  • Data/Code
  • Preview PDF
Loading

Abstract

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. Frozen-tokenizer diagnostic classification transferred without retraining to two external cohorts, retaining macro-averaged AUROCs of 0.88–0.90, and clinical-endpoint prediction transferred to two further cohorts (external LVEF ≤40% AUROC 0.74–0.76). Evaluated end to end using an ontology-grounded large language model as a judge, which achieved a mean agreement (Cohen’s κ) 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.

Competing Interest Statement

Guillaume Marquis-Gravel has received speaker honoraria or advisory board fees from Novartis, Amgen, Novo Nordisk, Boston Scientific, HLS Therapeutics, Metapharm, and JAMP. Robert Avram, MD, MSc: Spiralis Medical Inc. (stock option), Divoco AI (stock), FrontRx (co-founder and equity holder), Abbott (speaker fee), Boston Scientific (speaker fee), Boehringer Ingelheim (speaker fee), Novartis (speaker fee), Bristol Myers Squibb (investigator-initiated research grant), co-inventor on pending patent application WO 2022/261641 A1 (Method and System for Automated Analysis of Coronary Angiograms). The other authors declare no competing interests.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

This retrospective study was reviewed by the Ethics Board of the Montreal Heart Institute (MHI) (Project #2023-3160) which approved the protocol and waived the need for informed consent as the study represents secondary analysis of data.

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

The anonymized ECG dataset supporting the LLM-as-a-judge findings of this study will be made publicly available on PhysioNet (https://physionet.org/) Upon Peer Review Publication. The dataset comprises 25,000 twelve-lead ECGs selected from the DeepECG biobank at the Montreal Heart Institute (2006–2023), including raw signal files (NumPy .npy, 12 leads, 2,500 samples/lead at 250 Hz), standardized ECG images (PNG), and clinically validated question–answer pairs. Access requires PhysioNet credentialing, completion of CITI Data or Specimens Only Research training, and a signed data use agreement. Data are available from the Canadian Longitudinal Study on Aging (www.clsa-elcv.ca) for researchers who meet the criteria for access to de-identified CLSA data.

Funder Information Declared

Fonds de recherche du Québec, https://ror.org/00w3qhf76, FRQ 5232
Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-ND 4.0 International license.
Back to top
PreviousNext
Posted July 24, 2026.
Download PDF

Supplementary Material

Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
A unified 12-lead ECG-language model for interpretation and clinical-endpoint prediction
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
A unified 12-lead ECG-language model for interpretation and clinical-endpoint prediction
Rohan Banerjee, Juliette Beaulieu, Nicolas Dostie, Blandine Mondésert, Ram Ahuja, Alexis Nolin-Lapalme, Gilbert Jabbour, Shreya Shree Srikanth, Guillaume Marquis-Gravel, Olivier Tastet, Achille Sowa, Julia Cadrin-Tourigny, Jacques Delfrate, Robert Avram
medRxiv 2026.07.22.26358591; doi: https://doi.org/10.64898/2026.07.22.26358591
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
A unified 12-lead ECG-language model for interpretation and clinical-endpoint prediction
Rohan Banerjee, Juliette Beaulieu, Nicolas Dostie, Blandine Mondésert, Ram Ahuja, Alexis Nolin-Lapalme, Gilbert Jabbour, Shreya Shree Srikanth, Guillaume Marquis-Gravel, Olivier Tastet, Achille Sowa, Julia Cadrin-Tourigny, Jacques Delfrate, Robert Avram
medRxiv 2026.07.22.26358591; doi: https://doi.org/10.64898/2026.07.22.26358591

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Cardiovascular Medicine
Subject Areas
All Articles
  • Addiction Medicine (639)
  • Allergy and Immunology (922)
  • Anesthesia (354)
  • Cardiovascular Medicine (5027)
  • Dentistry and Oral Medicine (496)
  • Dermatology (430)
  • Emergency Medicine (680)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1697)
  • Epidemiology (16293)
  • Forensic Medicine (36)
  • Gastroenterology (1243)
  • Genetic and Genomic Medicine (7301)
  • Geriatric Medicine (755)
  • Health Economics (1095)
  • Health Informatics (5312)
  • Health Policy (1476)
  • Health Systems and Quality Improvement (1839)
  • Hematology (599)
  • HIV/AIDS (1383)
  • Infectious Diseases (except HIV/AIDS) (16512)
  • Intensive Care and Critical Care Medicine (1203)
  • Medical Education (701)
  • Medical Ethics (157)
  • Nephrology (754)
  • Neurology (7626)
  • Nursing (380)
  • Nutrition (1134)
  • Obstetrics and Gynecology (1297)
  • Occupational and Environmental Health (1043)
  • Oncology (3752)
  • Ophthalmology (1097)
  • Orthopedics (411)
  • Otolaryngology (468)
  • Pain Medicine (503)
  • Palliative Medicine (143)
  • Pathology (722)
  • Pediatrics (1865)
  • Pharmacology and Therapeutics (758)
  • Primary Care Research (788)
  • Psychiatry and Clinical Psychology (6158)
  • Public and Global Health (10021)
  • Radiology and Imaging (2544)
  • Rehabilitation Medicine and Physical Therapy (1528)
  • Respiratory Medicine (1274)
  • Rheumatology (663)
  • Sexual and Reproductive Health (807)
  • Sports Medicine (600)
  • Surgery (806)
  • Toxicology (109)
  • Transplantation (320)
  • Urology (309)