Zero-Shot ECG Classification with Multimodal Learning and Test-time Clinical Knowledge Enhancement

Che Liu, Zhongwei Wan, Cheng Ouyang, Anand Shah, Wenjia Bai, Rossella Arcucci

Introduction

Electrocardiograms (ECGs) are fundamental to cardiac diagnostics. However, developing deep learning models for automated ECG interpretation typically requires vast amounts of expert-annotated data, which is both expensive and time-consuming to acquire. While Self-Supervised Learning (SSL) methods have attempted to mitigate this by utilizing unlabeled data, they often suffer from semantic distortion due to aggressive data augmentations and a lack of high-level clinical context.

The Multimodal ECG Representation Learning (MERL) framework addresses these challenges by training on paired ECG signals and clinical reports. By leveraging Large Language Models (LLMs) to incorporate expert medical knowledge at test-time, MERL achieves zero-shot classification performance that rivals or exceeds traditional methods trained on labeled data.

Methodology: The MERL Framework

MERL is built upon two core innovations designed to capture both low-level signal features and high-level clinical semantics.

1. Multimodal Training with CMA and UMA

Traditional ECG SSL often relies on raw signal augmentations (e.g., adding noise or masking segments), which can inadvertently destroy critical clinical features like the R-wave or P-wave. MERL introduces Uni-Modal Alignment (UMA) to solve this. Instead of augmenting the raw signal, UMA applies "latent augmentation" using dropout in the embedding space, forcing the model to learn robust features without corrupting the input data.

Furthermore, Cross-Modal Alignment (CMA) synchronizes ECG signal embeddings with their corresponding clinical report embeddings. This allows the model to learn the underlying medical reasoning described in text, rather than just statistical patterns in the signal.

The MERL architecture utilizes Cross-Modal Alignment (CMA) between ECG signals and clinical reports, alongside Uni-Modal Alignment (UMA) for robust feature learning.

2. Clinical Knowledge Enhanced Prompt Engineering (CKEPE)

For zero-shot classification, MERL uses text prompts to define target classes. Instead of simple labels (e.g., "Atrial Fibrillation"), the authors developed Clinical Knowledge Enhanced Prompt Engineering (CKEPE). This process uses an LLM (GPT-4) to query structured medical databases like SNOMEDCT and SCP statements. The LLM then generates detailed, expert-verified descriptions of the signal patterns associated with each condition, providing the model with a precise semantic target.

Evaluation and Results

The model was pre-trained on the MIMIC-ECG dataset (800k+ samples) and evaluated across a comprehensive benchmark including PTBXL, CPSC2018, and CSN, covering over 100 cardiac conditions.

Zero-Shot Superiority

A key finding is that MERL's zero-shot performance significantly outperforms traditional SSL baselines. As shown in the results, MERL using CKEPE prompts achieved an average AUC of 75.2%. Remarkably, this zero-shot performance (using 0% labeled data) is 3.2% higher than the best SSL methods performing linear probing on 10% of the labeled training data.

Key Insights

  • Reports vs. Labels: Clinical reports provide a richer supervisory signal than binary labels, enabling the model to understand the "why" behind signal morphologies.
  • Latent Augmentation: Moving augmentation to the latent space preserves the clinical integrity of medical signals, preventing the "semantic distortion" common in standard SSL.
  • Knowledge Retrieval: Grounding LLM prompts in expert databases like SNOMEDCT prevents hallucinations and ensures the model is guided by accurate medical facts.

Conclusion

MERL demonstrates that multimodal learning, combined with expert-knowledge-enhanced prompting, can bridge the gap between unsupervised pre-training and clinical utility. By achieving state-of-the-art zero-shot performance, it paves the way for more flexible and scalable diagnostic tools in cardiology. Future work aims to integrate additional modalities, such as electronic health records and cardiac imaging, to develop a comprehensive foundation model for cardiovascular health.

Summary updated

BibTeX
@inproceedings{liu2024zero,
  author = {Che Liu and Zhongwei Wan and Cheng Ouyang and Anand Shah and Wenjia Bai and Rossella Arcucci},
  title = {{Zero-Shot ECG Classification with Multimodal Learning and Test-time Clinical Knowledge Enhancement}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ZvJ2lQQKjz},
}
Figure