🤖 AI Summary
This study addresses the challenge of insufficient performance in detecting rare yet clinically critical arrhythmias in electrocardiogram (ECG) diagnosis, caused by long-tailed label distributions. To this end, the authors propose the AG-SCL framework, which uniquely integrates anisotropic angular Gaussian contrastive learning, adaptive logit adjustment, and tail-aware data augmentation. The method models full-class covariance uncertainty within a unit-normalized embedding space while preserving morphological features in the QRS-dominant frequency band (7–25 Hz). By incorporating bounded state-specific prior calibration and a multi-label long-tailed learning architecture, AG-SCL significantly enhances sensitivity to rare and morphologically unstable rhythms. Evaluated on the PTB-XL and Noc-ECG datasets, the approach achieves balanced accuracies of 0.838 and 0.918, respectively—demonstrating state-of-the-art macro-performance while maintaining high specificity.
📝 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 methods mainly address class frequency while overlooking direction-dependent morphological variability across ECG classes. This study proposes Angular Gaussian Supervised Contrastive Learning (AG-SCL) for long-tailed multi-label ECG diagnosis. AG-SCL integrates three components into a unified framework: an Angular Gaussian contrastive branch that models full-covariance class uncertainty on unit-normalized embeddings, Adaptive Logit Adjustment that learns bounded label-state-specific prior corrections instead of fixed frequency-based margins, and tail-aware augmentation that generates morphology-preserving views while protecting the 7-25 Hz QRS-dominant band. The method was evaluated on the public PTB-XL benchmark and a nocturnal ECG dataset comprising 1317 hours of recordings from 141 subjects. AG-SCL achieved the best macro-level performance on both datasets. On PTB-XL, it obtained a balanced accuracy of 0.838, sensitivity of 0.709, specificity of 0.968, mean average precision of 0.495, and TPR at 5% FPR of 0.778. On Noc-ECG, the corresponding values were 0.918, 0.889, 0.947, 0.488, and 0.900. The largest gains occurred in rare or morphologically unstable rhythm classes, while ablation studies confirmed the contributions of full-covariance modelling, Adaptive Logit Adjustment, and tail-aware augmentation. AG-SCL improves long-tailed ECG diagnosis by combining prior calibration with anisotropic representation learning, enhancing sensitivity to rare arrhythmias while maintaining clinically relevant specificity. Our code is available at: https://github.com/Open-EXG/AG-SCL-for-Long-Tailed-ECG.