An Electrocardiogram Multi-Task Benchmark with Comprehensive Evaluations and Insightful Findings

You Lin Xu, Jiaying Lu, Sirui Ding, Defu Cao, Xiao Hu, Carl Yang

Abstract

The rapid advancement of foundation models (FMs) has sparked significant interest in their application to medical diagnostics. This paper provides a comprehensive evaluation of various AI architectures—including Large Language Models (LLMs), general time-series models, and specialized ECG models—on electrocardiogram (ECG) analysis. Utilizing the MIMIC-IV-ECG dataset, we benchmark performance across five clinical tasks under zero-shot, few-shot, and fine-tuning scenarios. Our findings reveal that while foundation models demonstrate superior interpretability and competitive fine-tuned performance, significant challenges remain in zero-shot applicability compared to traditional deep learning approaches.

Introduction

Electrocardiograms (ECGs) are fundamental to cardiac diagnostics, yet their accurate interpretation requires extensive clinical expertise. While traditional deep learning has automated many aspects of ECG analysis, these models often demand vast amounts of labeled data for each specific task. Foundation models (FMs) offer a potential "pre-train once, use everywhere" paradigm. However, the lack of standardized benchmarking makes it difficult to assess whether general-purpose models (like LLMs or general time-series models) can truly capture the physiological nuances of heart signals better than specialized architectures. This study addresses this gap by establishing a multi-task benchmark for fair comparison.

Methodology and Evaluation Framework

The study evaluates four distinct categories of AI architectures:

  1. Traditional Time-Series Deep Learning (TSDL): Baseline models such as TimesNet and DLinear.
  2. Large Language Models (LLM): Models like GPT-2 and Llama 3.1, utilizing ECG features as prompts.
  3. Time-Series Foundation Models (TSFM): General-purpose models like MOMENT and TEMPO, pre-trained on diverse non-medical time-series data.
  4. ECG Foundation Models (ECGFM): Specialized models like ECG-FM, pre-trained on millions of ECG recordings.

Models were tested across three learning paradigms: zero-shot (no task-specific training), few-shot (minimal training), and full fine-tuning. The evaluation utilized the MIMIC-IV-ECG dataset, comprising over 800,000 recordings from 161,352 patients.

Downstream Tasks

The benchmark covers five diverse tasks:

  • RR Interval Estimation: Measuring time between heartbeats.
  • Age Estimation: Predicting patient age from signal complexity.
  • Gender Classification: A binary classification task.
  • Potassium Abnormality Prediction: A challenging task involving high class imbalance.
  • Arrhythmia Detection: A 15-class classification task for various heart conditions.

Key Results and Performance Analysis

The experimental results indicate that foundation models are highly effective when fine-tuned, but they are not yet "plug-and-play" solutions for clinical settings.

Table 1: Comprehensive performance metrics across regression and classification tasks for various model architectures.

Performance Highlights:

  • Fine-Tuning Success: General time-series and ECG-specific FMs achieved a top performance rate of 80% across tasks after fine-tuning. MOMENT and ECG-FM emerged as the strongest performers, particularly in regression tasks.
  • LLM Limitations: Direct application of LLMs to ECG data yielded poor results. The conversion of waveforms into text-based prompts likely discards critical temporal information necessary for accurate rhythm analysis.
  • The "Generalist" Advantage: Interestingly, specialized ECG models did not vastly outperform general TSFMs. This suggests that the fundamental patterns in time-series data are somewhat universal, allowing models trained on non-medical data to adapt well to heartbeats.

Interpretability and Physiological Relevance

A key advantage of foundation models identified in this study is their superior interpretability. Using saliency maps, the researchers visualized which parts of the ECG signal influenced model decisions.

Figure 1: Saliency maps comparing the focus of different models. Foundation models (MOMENT, TEMPO, ECG-FM) show cleaner, more physiologically relevant focus on R-wave peaks compared to traditional models.

As shown in Figure 1, TSFMs and ECGFMs consistently "locked on" to the R-wave peaks—the most clinically significant part of the heartbeat. In contrast, traditional TSDL models often exhibited noisier focus, suggesting that FMs learn more physiologically meaningful features.

Discussion and Future Directions

While FMs show promise, their zero-shot and few-shot performance remains a significant bottleneck. For these models to be viable in resource-constrained clinical environments, their ability to perform with minimal local training must improve.

Future research should focus on:

  • Waveform Encoding: Developing encoders that allow LLMs to process raw signals without data loss.
  • Retrieval-Augmented Generation (RAG): Integrating clinical context with ECG signals to improve diagnostic accuracy.
  • Robustness: Enhancing pre-training to better handle the noise inherent in real-world hospital recordings.

Summary updated

BibTeX
@misc{xu2025electrocardiogram,
  author = {You Lin Xu and Jiaying Lu and Sirui Ding and Defu Cao and Xiao Hu and Carl Yang},
  title = {{An Electrocardiogram Multi-Task Benchmark with Comprehensive Evaluations and Insightful Findings}},
  year = {2025},
  eprint = {2512.08954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.08954},
}
Figure