Proposing feature engineering method based on deep learning and K-NNs for ECG beat classification and arrhythmia

Toktam Khatibi1,2, Nooshin Rabinezhadsadatmahaleh3

  • 1Faculty of Industrial and Systems Engineering, Tarbiat Modares University (TMU), 14117-13114, Tehran, Iran. toktamk.khatibi@modares.ac.ir.

Insights

This study introduces a novel deep learning and K-NNs feature engineering method for accurate arrhythmia detection from electrocardiogram (ECG) beats. The proposed approach achieves high accuracy, offering a valuable tool for automated heartbeat classification.

Area of Science:

  • Biomedical Engineering
  • Artificial Intelligence in Medicine
  • Cardiology

Background:

  • Arrhythmia, characterized by abnormal heart rhythms, poses diagnostic challenges due to ECG variability.
  • Manual electrocardiogram (ECG) interpretation is prone to errors and requires specialized expertise.
  • Computer-aided diagnosis systems are crucial for accessible arrhythmia detection, especially in remote areas.

Purpose of the Study:

  • To develop and evaluate a novel feature engineering method for classifying ECG beats for arrhythmia detection.
  • To classify four distinct heartbeat classes using the proposed methodology.
  • To compare the performance of the proposed method against traditional machine learning and deep learning approaches.

Main Methods:

  • A novel feature engineering technique combining deep learning and K-Nearest Neighbors (K-NNs) was developed.
  • Extracted features were classified using various algorithms including decision trees, Support Vector Machines (SVMs), and random forests.
  • A fivefold cross-validation strategy was employed to assess performance.

Main Results:

  • The proposed method achieved high classification performance with an average Accuracy of 99.77%, AUC of 99.99%, Precision of 99.75%, and Recall of 99.30%.
  • Demonstrated a favorable balance between sensitivity and specificity, indicating robust feature extraction capabilities.
  • Exhibited significantly lower computational time compared to training deep learning models from scratch.

Conclusions:

  • The developed feature engineering method provides a highly accurate and computationally efficient solution for ECG beat classification and arrhythmia detection.
  • This approach offers a promising alternative to traditional machine learning and full deep learning models for automated cardiac rhythm analysis.
  • The method's effectiveness supports its suitability for developing accessible computer-aided diagnosis tools for heart rhythm disorders.

Related Concept Videos

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...
5.2K
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...
1.3K
Dysrhythmias V: Evaluating Dysrhythmias01:30

Dysrhythmias V: Evaluating Dysrhythmias

Dysrhythmias, also known as arrhythmias, are disturbances in the heart's rhythm that range from benign to life-threatening. A thorough evaluation is crucial for appropriate management and involves a comprehensive medical history, physical examination, and various diagnostic tests.Medical HistorySymptoms: Collect detailed information on palpitations, dizziness, syncope, chest pain, and fatigue. Note their onset, frequency, and triggers.Previous Cardiac Issues: Document any history of heart...
262
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,...
686
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...
394
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...
1.3K