Related Experiment Video
Updated: May 17, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
ECG-based heart arrhythmia classification using feature engineering and a hybrid stacked machine learning
Raiyan Jahangir1, Muhammad Nazrul Islam2, Md Shofiqul Islam3
1Department of Computer Science and Engineering, Ahsanullah University of Science and Technology, Tejgaon, Dhaka, 1208, Bangladesh.
Insights
This study introduces a novel stack classifier model for accurately detecting heart arrhythmias from electrocardiogram (ECG) signals. The advanced machine learning approach significantly improves diagnostic accuracy, aiding in timely patient management.
Area of Science:
- Cardiology
- Biomedical Engineering
- Machine Learning
Background:
- Heart arrhythmias are irregular heart rhythms with increasing mortality rates.
- Early detection and management of arrhythmias are crucial for improving survival.
- Electrocardiogram (ECG) is the standard diagnostic tool, but expert analysis is time-consuming.
Purpose of the Study:
- To develop and evaluate a hybrid stack classifier model for automated heart arrhythmia classification from ECG signals.
- To compare the performance of the proposed model against conventional and other ensemble machine learning algorithms.
- To investigate the impact of feature selection techniques on classification accuracy.
Main Methods:
- Development of a hybrid stack classifier model using ensemble machine learning techniques.
- Feature engineering using Principal Component Analysis (PCA), Chi-Square, and Recursive Feature Elimination (RFE) to select 50, 65, 80, or 95 features.
- Training and evaluation of various classifiers, including conventional, bagging, boosting, and stack classifiers.
- Utilizing XGBoost as the meta-classifier in the proposed stack classifier model.
Main Results:
- The proposed stack classifier with XGBoost as the meta-classifier achieved the highest performance.
- The model trained with 65 features selected by PCA demonstrated superior results.
- Achieved exceptional performance metrics: 99.58% accuracy, 99.57% precision, 99.58% recall, and 99.57% F1-score.
Conclusions:
- The developed hybrid stack classifier model shows significant promise for accurate and automated arrhythmia diagnosis.
- This automated approach can reduce the reliance on extensive human intervention in ECG analysis.
- The findings suggest a potential for improved patient outcomes through early and precise arrhythmia detection.
Abstract:
A heart arrhythmia refers to a set of conditions characterized by irregular heart- beats, with an increasing mortality rate in recent years. Regular monitoring is essential for effective management, as early detection and timely treatment greatly improve survival outcomes. The electrocardiogram (ECG) remains the standard method for detecting arrhythmias, traditionally analyzed by cardiolo- gists and clinical experts. However, the incorporation of automated technology and computer-assisted systems offers substantial support in the accurate diagno- sis of heart arrhythmias. This research focused on developing a hybrid model with stack classifiers, which are state-of-the-art ensemble machine-learning techniques to accurately classify heart arrhythmias from ECG signals, eliminating the need for extensive human intervention. Other conventional machine-learning, bagging, and boosting ensemble algorithms were also explored along with the proposed stack classifiers. The classifiers were trained with a different number of features (50, 65, 80, 95) selected by feature engineering techniques (PCA, Chi-Square, RFE) from a dataset as the most important ones. As an outcome, the stack clas- sifier with XGBoost as the meta-classifier, trained with 65 important features determined by the Principal Component Analysis (PCA) technique, achieved the best performance among all the models. The proposed classifier achieved a perfor- mance of 99.58% accuracy, 99.57% precision, 99.58% recall, and 99.57% f1-score and can be promising for arrhythmia diagnosis.
More Related Videos
Related Concept Videos
Mechanism of Cardiac Arrhythmias
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow...
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,...
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...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...

