NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AnyECG-Lab: An Exploration Study of Fine-tuning an ECG Foundation Model to Estimate Laboratory Values from Single-Lead ECG Signals

Yujie Xiao, Gongzhen Tang, Wenhui Liu, Jun Li, Guangkun Nie, Zhuoran Kan, Deyun Zhang, Qinghao Zhao, Shenda HongarXiv 2025 · DOI

Introduction

In modern clinical practice, laboratory blood tests are indispensable for diagnosis and monitoring. However, the process is inherently slow and invasive, requiring venous draws, transport, and chemical analysis. This latency often creates a critical bottleneck in emergency departments (ED) where rapid triage is essential. While Electrocardiography (ECG) is a ubiquitous, non-invasive, and rapid diagnostic tool, its use has traditionally been limited to assessing cardiac rhythm and structure.

The AnyECG-Lab project explores the hypothesis that the heart's electrical activity contains subtle "hematological signatures" reflecting systemic chemistry, such as electrolyte levels and metabolic markers. By leveraging a large-scale foundation model, the researchers aim to estimate laboratory values using only single-lead ECG signals, potentially transforming consumer wearables into real-time screening tools.

Methods

The researchers developed AnyECG-Lab by employing transfer learning on a foundation model named ECGFounder. This ResNet-based architecture was pre-trained on a massive corpus of ECG data to capture fundamental cardiac signal morphologies.

Fine-tuning and Loss Function

The model was fine-tuned to perform multi-label classification, predicting whether 108 different laboratory values were abnormal (high or low) versus normal. A significant challenge in clinical datasets is sparsity; patients rarely undergo a full battery of 100+ tests simultaneously. To address this, the team implemented a Masked Binary Cross-Entropy Loss. This approach allows the model to update weights based only on the labels present in the record, preventing missing data from introducing noise into the training process.

Signal Processing

To ensure consistency, the team standardized 10-second ECG segments. This normalization focused the model on physiological features rather than recording artifacts or hardware-specific variations.

Datasets

The study utilized the MC-MED (Multimodal Clinical Monitoring in the Emergency Department) dataset from Stanford University. This dataset includes data from 118,385 adult patients, comprising over 20 million standardized 10-second ECG segments paired with time-stamped laboratory results.

Demographic characteristics of the study population across training and testing sets.

The demographic breakdown (Figure 1) shows a diverse patient population, which is critical for ensuring the model's potential generalizability, though the study remains single-center.

Key Results and Insights

The performance of AnyECG-Lab varied across different laboratory indicators, revealing a "hierarchy of visibility" regarding how systemic markers manifest in cardiac electrical activity.

Predictive Performance

The model's efficacy was measured using the Area Under the Curve (AUC). The results categorized indicators into three tiers:

  1. Strong Predictors (AUC ≥ 0.65): The model showed high accuracy for markers like LDH Total (AUC 0.851), NT-proBNP (AUC 0.783), and Ionized Calcium (AUC 0.755).
  2. Moderate Predictors (AUC 0.55–0.65): This group included D-Dimer, Cholesterol, and Glucose.
  3. Weak Predictors (AUC < 0.55): Markers like Troponin I and Iron showed lower correlation in this specific single-lead setup.
Predictive performance (AUC) of AnyECG-Lab for various laboratory indicators within a 1-hour window.

As shown in Figure 2, the model excels at identifying markers with direct electrophysiological impacts (like Calcium) or those indicating significant systemic stress (like LDH and BNP).

The Value of Foundation Models

A key insight from the study is that pre-training is essential. The relationship between an ECG waveform and a specific biochemical marker is incredibly subtle. Without the "prior knowledge" of ECG morphology provided by ECGFounder, the model would likely fail to distinguish these signals from background noise. Furthermore, the success of Lead II data suggests that single-lead configurations common in smartwatches are sufficient for systemic monitoring.

Limitations and Future Work

While promising, AnyECG-Lab faces several hurdles before clinical deployment:

  • Generalizability: The model was trained on data from a single institution (Stanford). Validation across diverse populations and different wearable hardware is necessary.
  • From Classification to Regression: Current iterations identify "abnormal" states. Future work aims to predict precise numerical values (e.g., specific potassium concentrations).
  • Clinical Integration: Researchers are looking to integrate these AI-estimated values into existing clinical severity scores to enhance rapid triage in emergency settings.

Summary updated

BibTeX
@misc{xiao2025anyecg,
  author = {Yujie Xiao and Gongzhen Tang and Wenhui Liu and Jun Li and Guangkun Nie and Zhuoran Kan and Deyun Zhang and Qinghao Zhao and Shenda Hong},
  title = {{AnyECG-Lab: An Exploration Study of Fine-tuning an ECG Foundation Model to Estimate Laboratory Values from Single-Lead ECG Signals}},
  year = {2025},
  eprint = {2510.22301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.22301},
}
Figure