Skip to main content
QUICK REVIEW

[Paper Review] A Simple Self-Supervised ECG Representation Learning Method via Manipulated Temporal-Spatial Reverse Detection

Wenrui Zhang, Shijia Geng|arXiv (Cornell University)|Feb 25, 2022
ECG Monitoring and AnalysisMedicine4 citations
TL;DR

This paper proposes a simple self-supervised method for learning general electrocardiogram (ECG) representations by training a model to detect manipulated temporal-spatial reversals of ECG signals. The approach outperforms baseline methods in atrial fibrillation detection, with temporal reverse manipulation proving more effective than spatial reverse for capturing clinically relevant ECG features.

ABSTRACT

Learning representations from electrocardiogram (ECG) signals can serve as a fundamental step for different machine learning-based ECG tasks. In order to extract general ECG representations that can be adapted to various downstream tasks, the learning process needs to be based on a general ECG-related task which can be achieved through self-supervised learning (SSL). However, existing SSL approaches either fail to provide satisfactory ECG representations or require too much effort to construct the learning data. In this paper, we propose the T-S reverse detection, a simple yet effective self-supervised approach to learn ECG representations. Inspired by the temporal and spatial characteristics of ECG signals, we flip the original signals horizontally (temporal reverse), vertically (spatial reverse), and both horizontally and vertically (temporal-spatial reverse). Learning is then done by classifying four types of signals including the original one. To verify the effectiveness of the proposed method, we perform a downstream task to detect atrial fibrillation (AF) which is one of the most common ECG tasks. The results show that the ECG representations learned with our method achieve remarkable performance. Furthermore, after exploring the representation feature space and investigating salient ECG locations, we conclude that the temporal reverse is more effective for learning ECG representations than the spatial reverse.

Motivation & Objective

  • To develop a simple yet effective self-supervised method for learning general ECG representations without requiring manual annotation.
  • To address the limitations of existing self-supervised approaches—particularly reconstruction-based methods with poor downstream performance and contrastive learning with complex data construction.
  • To investigate whether manipulating ECG signals via temporal and spatial reversals can serve as a strong pretext task for representation learning.
  • To evaluate the effectiveness of the learned representations on a downstream clinical task: atrial fibrillation (AF) detection.
  • To analyze the contribution patterns of different ECG components through interpretability methods like LRP.

Proposed method

  • The method constructs four signal types: original, temporally reversed (horizontal flip), spatially reversed (vertical flip), and both temporally and spatially reversed.
  • A contrastive classification head is trained to distinguish between these four signal types, using the inherent structure of ECG signals as supervisory signal.
  • The model consists of an encoder to extract representations and a classifier head to perform the reverse detection task.
  • The representation space is evaluated via clustering and visualization to assess class separability and feature compactness.
  • Local Relevance Propagation (LRP) is applied to interpret model attention and identify salient ECG regions contributing to predictions.
  • Data preprocessing includes splitting ECGs into 10-second segments (3000 points) with a 5-second stride and normalizing each segment to [0,1].

Experimental results

Research questions

  • RQ1Can a simple self-supervised pretext task based on signal reversals effectively learn general ECG representations?
  • RQ2How does temporal reverse detection compare to spatial reverse detection in learning clinically meaningful ECG features?
  • RQ3Do representations learned via reverse detection lead to improved performance on downstream atrial fibrillation detection?
  • RQ4Which ECG components (e.g., P-waves, R-peaks) do models attend to when trained on different reverse detection tasks?
  • RQ5Can the learned representations capture structural patterns such as RR interval irregularity and P-wave absence in AF?

Key findings

  • The proposed T-S reverse detection method achieved state-of-the-art performance in atrial fibrillation detection, outperforming multiple baseline self-supervised methods.
  • Temporal reverse detection led to significantly better downstream performance than spatial reverse detection, indicating its greater capacity to learn discriminative ECG features.
  • Visualization of the representation space showed that ECG segments with the same label (e.g., Normal or AF) were more closely clustered when using temporal reverse detection.
  • LRP heatmaps revealed that models trained on temporal reverse detection attended to multiple ECG components, including P-waves and T-waves, while spatial reverse detection models focused almost exclusively on R-peaks.
  • The results suggest that temporal reverse detection better captures the dynamic morphology and timing irregularities characteristic of AF, such as absent P-waves and irregular RR intervals.
  • The method is simple to implement, requires no data labeling, and achieves competitive performance with more complex contrastive learning frameworks.

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.