Related Experiment Video
Updated: May 13, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Minority class-aware multiclass arrhythmia detection using conditional GAN augmentation
Abhishek Tiwari1, Jaydeep Kishore2, Rohit Singh3
1Department of CSE, Birla Institute of Technology, Mesra, Ranchi, India.
Insights
This study introduces a new method using conditional Wasserstein GAN with gradient penalty (cWGAN-GP) to improve the detection of rare cardiac arrhythmias. The advanced technique significantly boosts F1-scores for minority supraventricular and fusion beats in ECG data.
Area of Science:
- Biomedical Engineering
- Artificial Intelligence
- Cardiology
Background:
- Cardiac arrhythmias detection from ECG is crucial for preventing sudden cardiac deaths.
- Class imbalance in datasets like MIT-BIH severely impacts minority beat detection (e.g., supraventricular and fusion beats).
- Conventional augmentation methods often yield low-fidelity samples and fail to preserve ECG morphology.
Purpose of the Study:
- To propose a novel framework for high-fidelity minority class augmentation in ECG signals.
- To enhance the detection of uncommon arrhythmias by addressing class imbalance.
- To improve F1-scores for supraventricular (S) and fusion (F) beats.
Main Methods:
- Developed a conditional Wasserstein GAN with gradient penalty (cWGAN-GP) for realistic ECG beat generation, conditioned on class labels.
- Integrated cWGAN-GP with a hierarchical multi-stream ResNet34 classifier utilizing raw, Parzen-filtered, and similarity map features.
- Employed gradient penalties and Wasserstein distance to prevent mode collapse and ensure high-fidelity generation.
Main Results:
- Achieved significant improvements on the MIT-BIH arrhythmia database (5 AAMI classes).
- Minority S and F classes showed F1-score increases up to 28%.
- Macro F1-score improved from 0.78 (baseline) to 0.94, outperforming state-of-the-art GAN-augmented models.
Conclusions:
- The proposed cWGAN-GP framework effectively generates high-fidelity minority ECG beats, significantly improving arrhythmia detection accuracy.
- The approach is computationally efficient, suitable for wearable device deployment.
- This method offers a substantial advancement in accurately identifying rare cardiac arrhythmias.
Abstract:
The detection of cardiac arrhythmias from electrocardiogram (ECG) signals is essential for preventing sudden cardiac deaths. However, model performance on minority classes, such as supraventricular (S) and fusion (F) beats, which make up less than 3% of samples, is severely hampered by severe class imbalance in benchmark datasets like MIT-BIH. Conventional methods, such as basic GAN-based augmentation, oversampling, and undersampling, frequently result in low-fidelity synthetic samples or fail to preserve important ECG morphological features, leading to less-than-ideal F1-scores for uncommon arrhythmias. In this paper, a novel framework for high-fidelity minority class augmentation using conditional Wasserstein GAN with gradient penalty (cWGAN-GP) is proposed. It is integrated with a hierarchical multi-stream ResNet34 classifier that combines raw, Parzen-filtered, and similarity map features. In order to generate realistic ECG beats, the cWGAN-GP conditions generation on class labels. Mode collapse is prevented by enforcing gradient penalties and Wasserstein distance. Extensive experiments on the MIT-BIH arrhythmia database (5 AAMI classes) demonstrate significant improvements: minority S and F classes achieve F1-score increases of up to 28%, while the macro F1-score improves from 0.78 (baseline) to 0.94. The approach is computationally efficient for possible wearable device deployment and outperforms state-of-the-art GAN-augmented models in minority class detection.
Related Concept Videos
Dysrhythmias II: Classification of Tachyarrhythmias
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow heart...
Mechanism of Cardiac Arrhythmias
Dysrhythmias VI: Management of Dysrhythmias
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias
Dysrhythmias I: Introduction