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.

Scientific Reports
|May 11, 2026
PubMed

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.

Related Concept Videos

Dysrhythmias II: Classification of Tachyarrhythmias01:28

Dysrhythmias II: Classification of Tachyarrhythmias

Tachyarrhythmias are a type of dysrhythmia where the heart rate exceeds 100 beats per minute. Here are some common types of tachyarrhythmias:Sinus TachycardiaSinus tachycardia originates from increased impulses from the sinus node, leading to an elevated heart rate. It is often triggered by stress, fever, or exercise.Patients may experience palpitations, a sensation of a racing heart, dizziness, and chest discomfort.Causes and Risk Factors: Common causes include physical exertion, emotional...
Disturbances in Heart Rhythm01:29

Disturbances in Heart Rhythm

Arrhythmia or dysrhythmia refers to an abnormal heart rhythm caused by a defect in the heart's conduction system. It can cause the heart to beat irregularly, too quickly, or too slowly, leading to symptoms like chest pain, shortness of breath, and fainting. Factors such as stress, caffeine, alcohol, nicotine, cocaine, certain drugs, congenital defects, diseases, and electrolyte abnormalities can trigger arrhythmias.
Arrhythmias are categorized by their speed, rhythm, and origin. A slow heart...
Mechanism of Cardiac Arrhythmias01:28

Mechanism of Cardiac Arrhythmias

Arrhythmias are irregular heart rhythms occurring when the heart's electrical impulses become abnormal. These disturbances can lead to various symptoms, depending on their severity and the underlying cause. Some common factors contributing to arrhythmias include hypoxia, ischemia, electrolyte imbalances, excessive catecholamine exposure, drug toxicity, and muscle overstretching. Arrhythmias can be classified into two main types based on the rate and site of origin of abnormal heart rhythms.
Dysrhythmias VI: Management of Dysrhythmias01:25

Dysrhythmias VI: Management of Dysrhythmias

Dysrhythmia management involves a multifaceted approach, incorporating pharmacological treatments, medical procedures, surgical interventions, lifestyle modifications, and patient education.Pharmacological ManagementAntiarrhythmic Drugs:Class I (Sodium Channel Blockers): This class includes quinidine and procainamide, which reduce the speed of impulse conduction in the heart, stabilize the cardiac membrane, and control arrhythmias. Quinidine and procainamide are Class IA agents that prolong the...
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias01:25

ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias

Arrhythmia is a condition characterized by an irregular heart rhythm, with ECG changes that differ based on its origin and nature. The types of arrhythmias discussed below include atrial, junctional, and ventricular arrhythmias.Atrial ArrhythmiasPremature Atrial Complexes (PACs): PACs are early atrial beats caused by stress, caffeine, alcohol, electrolyte imbalances, hypoxia, hyperthyroidism, or certain medications (e.g., bronchodilators and decongestants). The ECG shows early P waves with an...
Dysrhythmias I: Introduction01:15

Dysrhythmias I: Introduction

Dysrhythmias refers to abnormalities in the heart's rhythm. They result from disruptions in the heart's electrical conduction system, which includes the sinoatrial(SA)node, atrioventricular(AV) node, the bundle of His, bundle branches, and Purkinje fibers.Definition and PathophysiologyDysrhythmias result from disorders of impulse formation, impulse conduction, or both. The heart contains specialized cells in the sinoatrial node, atrioventricular node, and the bundle of His and Purkinje fibers...