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.

PubMed

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.

Related Concept Videos

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.
861
Electrocardiogram01:29

Electrocardiogram

An electrocardiogram (ECG or EKG) is a critical diagnostic tool that records the electrical signals produced by the heart during each heartbeat. This recording is achieved through electrodes placed strategically on the arms, legs, and chest. The electrocardiograph amplifies these signals and produces 12 distinct tracings, offering a comprehensive understanding of the heart's electrical activity.
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
1.8K
Disturbances in Heart Rhythm01:28

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...
744
ECG Interpretation of Arrhythmias I: Sinus Arrhythmias01:16

ECG Interpretation of Arrhythmias I: Sinus Arrhythmias

Arrhythmias are disturbances in the heart's rhythm that lead to abnormal heartbeats. These irregularities can originate from different parts of the heart and are classified based on their origin and nature.
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,...
159
Electrocardiogram Fundamentals01:28

Electrocardiogram Fundamentals

Introduction
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...
462
Pulse rhythm01:30

Pulse rhythm

Pulse rhythm refers to the pattern of pulsations within specific intervals, offering valuable insights into the regularity or irregularity of the heart's beats as observed through the pattern of pulsation within specific intervals. A regular pulse exhibits a consistent heart rate with uniform waveforms and pulsation force, variations of which can be classified as normal, weak, or bounding.
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
734