TRACE: Expert-Aligned ECG Representation Learning with Rigorous Benchmarking and Real-World Validation in Acute Cardiac Care

Lovely Yeswanth Panchumarthi, Andrew Lu, Saurabh Kataria, Delgersuren Bold, Minxiao Wang, Runze Yan, Patricia Dykes, Brian J. Gow, Tom J. Pollard, Jessica K. Zègre-Hemsey, Dillon J. Dzikowicz, Lekshmi Kumar, Xiao Hu, Ran XiaoarXiv 2026

TL;DR

TRACE (Text-Reinforced Analysis of Cardio ECGs) is a new multimodal foundation model that combines fine-grained ECG signal reconstruction with high-fidelity clinical text alignment. By using an LLM to "clean" noisy cardiologist reports and a self-balancing loss function, it significantly outperforms current clinical practice in detecting acute coronary occlusions—potentially saving lives by identifying high-risk patients that traditional criteria miss.

What Problem Does This Paper Address?

The 12-lead electrocardiogram (ECG) is the frontline tool for diagnosing heart attacks and arrhythmias, but expert interpretation is a bottleneck. While AI models have shown promise, they face two major hurdles:

  1. Noisy Supervision: Most multimodal models (like those using CLIP-style training) try to align ECG signals with raw cardiologist reports. However, these reports are "noisy"—they contain information about medications, patient history, and prior imaging that isn't actually visible in the ECG tracing itself. This confuses the model.
  2. Scale Mismatch: Models usually focus either on "local" signal shapes (morphology) or "global" clinical meaning (semantics). Combining these two objectives is difficult because their mathematical loss functions operate at completely different scales, often leading one to dominate and degrade the other.

TRACE aims to bridge this gap, moving beyond "algorithmic invention" toward a "domain-strategic" solution that works in high-stakes clinical environments.

Methods

The authors propose a three-pronged approach to build a more robust ECG representation:

  • LLM-Based Curation: Instead of using raw, messy reports, they used a large language model (Qwen3-32B) to extract only the findings directly attributable to the ECG signal (like rhythm, axis, and ST-T changes). This "distilled" text provides a much cleaner signal for the model to learn from.
  • Hybrid Architecture: TRACE uses a shared encoder to perform two tasks simultaneously:
  • Masked Autoencoder (MAE): It hides parts of the ECG signal and forces the model to reconstruct them, teaching it to understand fine-grained morphological details.
  • Contrastive Multimodal Alignment (CMA): It aligns the global ECG features with the curated cardiologist findings, grounding the signal in clinical meaning.
  • Uncertainty-Weighted Multi-Task Learning: To solve the scale mismatch, the authors implemented a learnable weighting system. The model automatically adjusts the importance of the reconstruction loss versus the alignment loss based on task uncertainty, ensuring stable optimization.

Datasets

The model was pretrained on a curated version of MIMIC-IV-ECG, resulting in approximately 494,000 high-quality ECG-report pairs.

For evaluation, the researchers used:

  • Public Benchmarks: PTB-XL (structural abnormalities), CPSC2018 (arrhythmia), and Chapman-Shaoxing-Ningbo (CSN) for rhythm classification.
  • Real-World Validation: A large private ACO (Acute Coronary Occlusion) dataset consisting of 5,813 prehospital ECGs linked to emergency medical services (EMS) and hospital records. This dataset is particularly valuable because the "ground truth" was adjudicated by experts reviewing angiographic findings and clinical outcomes.

Key Insights and Ideas

  • Data Quality Over Model Scale: Interestingly, the authors found that a smaller, domain-specific text encoder (MedCPT) outperformed a general-purpose LLM (Qwen3-32B) that was 300x larger. This suggests that for specialized medical tasks, "alignment-compatible" pretraining is more important than raw parameter count.
  • Complementary Objectives: The ablation studies proved that MAE and CMA are not redundant. MAE captures the "what" (the shape of the wave), while CMA captures the "why" (the clinical diagnosis). Together, they provide a +6.4 point gain in AUROC over unimodal pretraining.
  • Beyond the ST-Segment: Saliency mapping showed that TRACE looks at the entire cardiac cycle—including the QRS complex and T-wave—to detect occlusions. This explains why it succeeds where traditional clinical criteria (which focus heavily on the ST-segment) often fail.

Key Results

TRACE demonstrated state-of-the-art performance across the board:

  • Public Benchmarks: It outperformed 15 established baselines, including major foundation models like ECGFounder, despite being trained on significantly less data.
  • Clinical Impact on ACO: In the most critical test, TRACE significantly outperformed real-world clinical practice. At the same false-positive rate as human clinicians, TRACE achieved a 19.0% relative gain in sensitivity.
  • Reducing Diagnostic Delay: In the private dataset, TRACE identified 90 additional patients with true occlusions who were initially misclassified by humans. These patients had previously waited an average of 20.8 hours for treatment; TRACE could have flagged them in seconds.
  • Economic and Safety Gains: The model also identified over 1,600 patients who were unnecessarily sent for invasive catheterization, representing a potential reduction in false positives by 62.6%.

Limitations and Future Work

While impressive, the authors note several boundaries:

  • Single-Site Validation: The clinical validation relied on a single county-level EMS cohort. Multi-site, prospective trials are needed before widespread deployment.
  • Text-Only Multimodal: The current version does not integrate other modalities like cardiac ultrasound (echocardiography) or MRI, which could further enrich the representations.
  • Non-Generative: TRACE provides structured predictions (like classification scores) rather than free-text explanations. While this avoids "hallucinations," it means the model cannot yet engage in interactive reasoning with a doctor.

Future work will likely focus on integrating more imaging data and coupling this powerful encoder with generative reasoning modules for a more "chat-like" clinical assistant.

Summary updated

BibTeX
@misc{panchumarthi2026trace,
  author = {Lovely Yeswanth Panchumarthi and Andrew Lu and Saurabh Kataria and Delgersuren Bold and Minxiao Wang and Runze Yan and Patricia Dykes and Brian J. Gow and Tom J. Pollard and Jessica K. Zègre-Hemsey and Dillon J. Dzikowicz and Lekshmi Kumar and Xiao Hu and Ran Xiao},
  title = {{TRACE: Expert-Aligned ECG Representation Learning with Rigorous Benchmarking and Real-World Validation in Acute Cardiac Care}},
  year = {2026},
  eprint = {2609.34088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.34088},
}
Figure