AG-SCL Improves Long-Tailed ECG Arrhythmia Diagnosis

Jin Dai, Qiuzhen Zhang, Chenyun Dai, Danmei Lan, Can Han· July 17, 2026 View original

Summary

This study proposes Angular Gaussian Supervised Contrastive Learning (AG-SCL) to improve the diagnosis of long-tailed electrocardiogram (ECG) arrhythmias. AG-SCL addresses class frequency and morphological variability by integrating an Angular Gaussian contrastive branch, Adaptive Logit Adjustment, and tail-aware augmentation, achieving superior macro-level performance on benchmark datasets.

This research tackles the challenge of accurately diagnosing rare or "long-tailed" arrhythmias from electrocardiogram (ECG) data, a problem where deep learning models often struggle due to imbalanced class distributions and varied ECG morphologies. The proposed solution is Angular Gaussian Supervised Contrastive Learning (AG-SCL), a unified framework designed to enhance diagnostic reliability. AG-SCL incorporates three key components: an Angular Gaussian contrastive branch that models full-covariance class uncertainty on unit-normalized embeddings, allowing for better capture of direction-dependent morphological variations; Adaptive Logit Adjustment, which learns flexible, label-state-specific prior corrections instead of fixed frequency-based margins; and tail-aware augmentation, which generates morphology-preserving views while protecting critical QRS-dominant bands. Evaluated on the PTB-XL benchmark and a nocturnal ECG dataset, AG-SCL demonstrated superior macro-level performance, with significant gains observed particularly in rare or morphologically unstable rhythm classes, confirming the effectiveness of its integrated approach.

Why it matters

For healthcare professionals and AI developers in medical diagnostics, AG-SCL offers a more robust and sensitive tool for detecting rare but clinically important cardiac arrhythmias, potentially leading to earlier and more accurate diagnoses and improved patient outcomes.

How to implement this in your domain

  1. 1Evaluate existing ECG arrhythmia diagnosis models for performance on rare or imbalanced classes.
  2. 2Explore integrating supervised contrastive learning techniques into your medical image/signal analysis pipelines.
  3. 3Investigate adaptive logit adjustment or similar dynamic prior correction methods for long-tailed data distributions.
  4. 4Consider implementing tail-aware data augmentation strategies that preserve critical morphological features for rare classes.

Who benefits

HealthcareMedical DevicesAI/ML DevelopmentPharmaceuticals

Key takeaways

  • AG-SCL improves diagnosis of long-tailed ECG arrhythmias.
  • It addresses both class imbalance and morphological variability.
  • Key components include Angular Gaussian contrastive learning and Adaptive Logit Adjustment.
  • The method shows superior performance, especially for rare arrhythmia classes.

Original post by Jin Dai, Qiuzhen Zhang, Chenyun Dai, Danmei Lan, Can Han

"arXiv:2607.14613v1 Announce Type: new Abstract: Long-tailed label distributions reduce the reliability of deep learning for electrocardiogram (ECG) arrhythmia diagnosis, particularly for clinically important but rare abnormalities. Existing rebalancing and logit adjustment method…"

View on X

Originally posted by Jin Dai, Qiuzhen Zhang, Chenyun Dai, Danmei Lan, Can Han on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses