Related Experiment Video
Updated: Aug 23, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Imbalanced ECG signal-based heart disease classification using ensemble machine learning technique
Adyasha Rath1, Debahuti Mishra1, Ganapati Panda2
1Department of Computer Science and Engineering, Siksha O Anusandhan (Deemed to be) University, Bhubaneswar, Odisha, India.
Insights
This study developed an ensemble machine learning model for heart disease detection using electrocardiogram (ECG) signals. The model achieved high accuracy, outperforming individual classifiers in identifying normal versus abnormal patients.
Area of Science:
- Cardiology
- Machine Learning
- Signal Processing
Background:
- Machine learning (ML) models are increasingly used for automated heart disease (HD) detection via physiological signals like ECG.
- Electrocardiogram (ECG)-based detection is the most prevalent clinical method for identifying heart conditions.
- This study addresses the challenge of using imbalanced ECG datasets for training classification models.
Purpose of the Study:
- To evaluate the efficacy of rarely used ML classifiers (SVM, LR, AdaBoost) for heart disease detection.
- To develop and assess an ensemble model combining top-performing classifiers for improved diagnostic accuracy.
- To validate the performance of the proposed models using established public ECG datasets.
Main Methods:
- Selected and trained Support Vector Machine (SVM), Logistic Regression (LR), and Adaptive Boosting (AdaBoost) models on imbalanced ECG data.
- Evaluated model performance using accuracy, F1-score, and Area Under Curve (AUC) metrics.
- Ensembled the top-performing LR and AdaBoost classifiers using a majority voting principle.
Main Results:
- AdaBoost and Logistic Regression classifiers demonstrated superior performance compared to SVM for heart disease detection.
- The proposed ensemble model achieved high performance metrics: Accuracy (0.946 PTB-ECG, 0.921 MIT-BIH), F1-score (0.949 PTB-ECG, 0.926 MIT-BIH), and AUC (0.951 PTB-ECG, 0.950 MIT-BIH).
- The ensemble approach significantly enhanced the detection capabilities for heart diseases.
Conclusions:
- The developed ensemble ML model offers a robust and accurate method for heart disease detection using ECG signals.
- The methodology shows potential for application with other physiological signals (ICG, MCG, HS) and for detecting different diseases.
- This approach provides a valuable tool for clinicians in diagnosing heart conditions more effectively.
Abstract:
The machine learning (ML)-based classification models are widely utilized for the automated detection of heart diseases (HDs) using various physiological signals such as electrocardiogram (ECG), magnetocardiography (MCG), heart sound (HS), and impedance cardiography (ICG) signals. However, ECG-based HD identification is the most common one used by clinicians. In the current investigation, the ECG records or subjects have been sampled and are used as inputs to the classification model to distinguish between normal and abnormal patients. The study has employed an imbalanced number of ECG samples for training the various classification models. Few ML methods such as support vector machine (SVM), logistic regression (LR), and adaptive boosting (AdaBoost) which have been rarely used for HD detection have been selected. The performance of the developed model has been evaluated in terms of accuracy, F1-score, and area under curve (AUC) values using ECG signals of subjects given in publicly available (PTB-ECG, MIT-BIH) datasets. Ranking of the models has been assigned based on these performance metrics and it is found that the AdaBoost and LR classifiers stand in first and second positions. These two models have been ensembled based on the majority voting principle and the performance measure of this ensemble model has also been determined. It is, in general, observed that the proposed ensemble model demonstrates the best HD detection performance of 0.946, 0.949, and 0.951 for the PTB-ECG dataset and 0.921, 0.926, and 0.950 for the MIT-BIH dataset in terms of accuracy, F1-score, and AUC, respectively. The proposed methodology can also be employed for the classification of HD using ICG, MCG, and HS signals as inputs. Further, the proposed methodology can also be applied to the detection of other diseases.
Related Concept Videos
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
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...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Heart Failure IV: Classification and Diagnostic Evaluation
Dysrhythmias V: Evaluating Dysrhythmias

