Related Experiment Video
Updated: May 24, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Autoencoder-based Arrhythmia Detection using Synthetic ECG Generation Technique
Insights
This study introduces a new method for detecting arrhythmia, a heart rhythm disorder, by treating it as an anomaly. The approach uses Generative Adversarial Networks (GANs) and autoencoders to overcome data imbalance issues in electrocardiogram (ECG) datasets, improving diagnostic accuracy.
Area of Science:
- Cardiology
- Medical Informatics
- Artificial Intelligence
Background:
- Cardiovascular disease (CVD) is a leading global cause of death, with arrhythmia accounting for a significant portion.
- Electrocardiogram (ECG) analysis is crucial for arrhythmia diagnosis, but existing datasets suffer from class imbalance.
- Traditional data augmentation techniques are often ineffective for addressing imbalance in ECG datasets.
Purpose of the Study:
- To propose a novel approach for arrhythmia detection by framing it as an anomaly detection problem.
- To address the challenges of data scarcity and class imbalance in ECG datasets for arrhythmia detection.
- To develop a more reliable and adaptable automated system for diagnosing arrhythmia.
Main Methods:
- Utilized Generative Adversarial Networks (GANs) to synthetically generate normal ECG instances from the MIT-BIH arrhythmia dataset.
- Employed an autoencoder (AE) for unsupervised anomaly detection, training solely on synthetically generated normal data.
- Evaluated the model on a separate test set containing both normal and abnormal ECG samples.
Main Results:
- The proposed model achieved an Area Under the Receiver Operating Characteristic Curve (AUC-ROC) of 0.6768.
- The Area Under the Precision-Recall Curve (AUC-PR) was recorded at 0.8537.
- The approach effectively tackled data scarcity and imbalance issues inherent in arrhythmia datasets.
Conclusions:
- The novel anomaly detection approach using GANs and AEs offers improved arrhythmia detection performance.
- This method provides a robust solution for handling imbalanced ECG data, enhancing diagnostic reliability.
- The study lays the groundwork for more adaptable and dependable automated arrhythmia detection systems in healthcare.
Abstract:
With a couple of million lives lost annually, cardiovascular disease (CVD) is the leading cause of death globally; about 80% of which are due to arrhythmia. Electrocardiogram (ECG) signals are important for arrhythmia diagnosis, researchers have used various ECG datasets in building arrhythmia detection systems to automate the manual time-consuming diagnostic process. However, existing datasets have class imbalance issues, and the traditional oversampling and undersampling techniques prove ineffective in handling the imbalance problem. We propose a novel approach to handling arrhythmia detection as an anomaly case to address this. In our proposed approach, we first use Generative Adversarial Networks (GANs) to synthetically generate normal training instances from the MIT-BIH arrhythmia dataset and then we use only the synthetically generated normal data to build the anomaly model using autoencoder (AE); employing the AE for unsupervised anomaly detection help in overcoming the GAN convergence issues. We evaluate the model using test data comprising both normal and abnormal samples that are not used by the GAN and compare its performance with other state-of-the-art works. The model achieved improved arrhythmia detection with an AUC-ROC of 0.6768 and an AUC-PR of 0.8537. While effectively tackling data scarcity and imbalance, this work also contributes valuable perspectives to enhance arrhythmia detection systems, providing a foundation for more reliable and adaptable solutions in healthcare.
Related Concept Videos
Mechanism of Cardiac Arrhythmias
ECG Interpretation of Arrhythmias I: Sinus Arrhythmias
Types of Arrhythmias
Sinus Node Arrhythmias
Sinus Bradycardia: Originating from the sinoatrial (SA) node, sinus bradycardia involves slower impulses, resulting in a heart rate of less than 60 beats per minute (bpm). Causes include sleep, vagal stimulation, beta-blockers, hypothyroidism,...
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...
Electrocardiogram Fundamentals
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin...

