Skip to main content
QUICK REVIEW

[Paper Review] Patient Contrastive Learning: a Performant, Expressive, and Practical Approach to ECG Modeling

Nathaniel Diamant, Erik Reinertsen|arXiv (Cornell University)|Apr 9, 2021
ECG Monitoring and AnalysisMedicine20 references7 citations
TL;DR

This paper introduces Patient Contrastive Learning of Representations (PCLR), a self-supervised contrastive learning method that learns expressive, performant, and practical ECG representations by aligning ECGs from the same patient across time. Trained on 3.2 million unlabeled 12-lead ECGs, PCLR significantly improves performance on downstream clinical tasks—especially with fewer than 5,000 labeled examples—outperforming both handcrafted features and models pre-trained on rhythm classification.

ABSTRACT

Supervised machine learning applications in health care are often limited due to a scarcity of labeled training data. To mitigate this effect of small sample size, we introduce a pre-training approach, Patient Contrastive Learning of Representations (PCLR), which creates latent representations of ECGs from a large number of unlabeled examples. The resulting representations are expressive, performant, and practical across a wide spectrum of clinical tasks. We develop PCLR using a large health care system with over 3.2 million 12-lead ECGs, and demonstrate substantial improvements across multiple new tasks when there are fewer than 5,000 labels. We release our model to extract ECG representations at https://github.com/broadinstitute/ml4h/tree/master/model_zoo/PCLR.

Motivation & Objective

  • Address the challenge of limited labeled training data in clinical machine learning, particularly for rare conditions like sudden cardiac death.
  • Develop a pre-training method that is not only performant but also expressive and practical for clinical researchers without deep learning expertise.
  • Create a general-purpose representation learning framework for 12-lead ECGs that improves downstream performance across diverse clinical tasks.
  • Demonstrate that patient-centric contrastive learning outperforms disease-specific pre-training and handcrafted ECG features.

Proposed method

  • PCLR uses a contrastive learning framework inspired by SimCLR but redefined around patient identity rather than data augmentation.
  • Positive pairs are formed by ECGs from the same patient acquired at different times; negative pairs are ECGs from different patients.
  • The model learns a latent space where ECGs from the same patient are mapped close together, preserving patient-specific physiological patterns.
  • A contrastive loss function optimizes the representation space to maximize similarity between positive pairs and minimize similarity between negative pairs.
  • After pre-training on 3.2 million unlabeled ECGs, the model is fine-tuned via linear evaluation heads for specific tasks (e.g., sex classification, LVH, AF, age regression).
  • The final representations are designed to be directly usable with linear models, enabling easy deployment by non-expert clinical researchers.

Experimental results

Research questions

  • RQ1Can a self-supervised contrastive learning approach that prioritizes patient identity over data augmentation improve representation learning for ECGs?
  • RQ2How does PCLR perform compared to supervised pre-training on rhythm classification when fine-tuned on downstream clinical tasks with limited labels?
  • RQ3To what extent do PCLR representations outperform traditional handcrafted ECG features in clinical prediction tasks?
  • RQ4In what data regimes (e.g., low-shot learning) is PCLR most effective compared to training from scratch or using other pre-trained models?

Key findings

  • PCLR outperforms training from scratch on all four evaluated tasks—sex classification, LVH detection, AF classification, and age regression—when fewer than 5,000 labeled examples are available.
  • PCLR achieves substantial improvements in sex classification, likely due to the stable, patient-specific nature of sex as a physiological trait.
  • Linear models trained on PCLR representations significantly outperform those trained on standard ECG features (e.g., HR, PR, QRS duration) across LVH classification, sex classification, and age regression.
  • PCLR surpasses the performance of a rhythm classification pre-trained model (Ribeiro-R) in LVH and sex classification, indicating that patient-centric representations generalize better than task-specific ones.
  • The performance gain of PCLR is most pronounced in low-data regimes, demonstrating its effectiveness in data-scarce clinical settings.
  • The released PCLR model enables clinical researchers to extract high-quality ECG representations without requiring deep learning expertise, supporting broad practical adoption.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.