Skip to main content
QUICK REVIEW

[Paper Review] 3KG: Contrastive Learning of 12-Lead Electrocardiograms using Physiologically-Inspired Augmentations

Bryan Gopal, Ryan Han|arXiv (Cornell University)|Apr 21, 2021
ECG Monitoring and AnalysisMedicine13 citations
TL;DR

3KG proposes a physiologically-inspired contrastive learning framework for 12-lead ECGs that generates positive views through 3D spatial and temporal augmentations in vectorcardiogram (VCG) space, improving representation learning. It achieves a 9.1% relative increase in mean AUC over the best self-supervised baseline when fine-tuned on just 1% of labeled data from the PhysioNet 2020 dataset.

ABSTRACT

We propose 3KG, a physiologically-inspired contrastive learning approach that generates views using 3D augmentations of the 12-lead electrocardiogram. We evaluate representation quality by fine-tuning a linear layer for the downstream task of 23-class diagnosis on the PhysioNet 2020 challenge training data and find that 3KG achieves a $9.1\\%$ increase in mean AUC over the best self-supervised baseline when trained on $1\\%$ of labeled data. Our empirical analysis shows that combining spatial and temporal augmentations produces the strongest representations. In addition, we investigate the effect of this physiologically-inspired pretraining on downstream performance on different disease subgroups and find that 3KG makes the greatest gains for conduction and rhythm abnormalities. Our method allows for flexibility in incorporating other self-supervised strategies and highlights the potential for similar modality-specific augmentations for other biomedical signals.

Motivation & Objective

  • To improve label efficiency in ECG diagnosis by developing a self-supervised contrastive learning method that leverages the spatiotemporal structure of ECGs.
  • To investigate whether incorporating physiological constraints into data augmentation improves downstream diagnostic performance on limited labeled data.
  • To evaluate the impact of different augmentation strategies—spatial, temporal, and their combinations—on representation quality for ECG analysis.
  • To analyze how pretraining with physiologically-inspired views affects performance across different ECG abnormality subgroups.
  • To demonstrate that contrastive learning with modality-specific augmentations can close the performance gap between self-supervised and fully supervised ECG models.

Proposed method

  • The method generates positive views by applying stochastic 3D spatial augmentations (rotation, scaling, and time masking) in the vectorcardiogram (VCG) space, which represents the heart's electrical activity along three orthogonal axes.
  • Spatial augmentations are applied to the VCG representation of a 12-lead ECG, followed by projection back into the ECG space to preserve lead structure and generate augmented ECG views.
  • Temporal augmentations such as time masking are applied to the reconstructed ECG signals to further diversify the positive views.
  • Leads are encoded independently and treated as positive pairs if they originate from the same patient, preserving spatial relationships across leads.
  • The contrastive learning objective minimizes the contrastive loss between positive pairs while maximizing it between negative pairs, using a momentum encoder for stability.
  • The final model is fine-tuned with a linear head on downstream 23-class arrhythmia diagnosis using the PhysioNet 2020 challenge dataset.

Experimental results

Research questions

  • RQ1Does incorporating physiologically-inspired 3D spatial and temporal augmentations into contrastive learning improve representation quality for 12-lead ECGs?
  • RQ2How does the combination of spatial and temporal augmentations compare to individual augmentation types in terms of downstream performance?
  • RQ3Does pretraining with physiologically-grounded views lead to greater performance gains on specific ECG abnormality subgroups, such as conduction or rhythm disorders?
  • RQ4How does the performance of 3KG compare to existing self-supervised and supervised baselines when only 1% of labeled data is available?
  • RQ5What is the impact of augmentation strength and composition on the quality of learned representations?

Key findings

  • 3KG achieves a mean AUROC of 0.826 on the 1% labeled data split, representing a 9.1% relative improvement over the best prior self-supervised baseline (0.757 AUROC).
  • The method reduces the performance gap between self-supervised and fully supervised learning, with 3KG achieving 91.9% of the performance of fully supervised learning (0.898 AUROC) when trained on only 1% of labels.
  • Combining spatial and temporal augmentations yields the strongest representations, outperforming any single augmentation type or their individual use.
  • 3KG makes the largest performance gains for conduction (mean AUROC gain = 0.22) and rhythm (mean AUROC gain = 0.17) abnormalities, with smaller gains for waveform abnormalities.
  • Stronger spatial augmentations lead to better representations, with performance peaking at moderate augmentation strength and declining slightly at the highest values, though no decline was observed for rotation within the tested range.
  • The method demonstrates that incorporating physiological inductive biases through data augmentation significantly improves generalization, especially for clinically relevant arrhythmia types.

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.