Real-time ECG-based detection of cardiovascular diseases using balanced and interpretable machine learning approaches

Imteyaz Hussain Khan1, Amar Singh2, Hilal Ahmed Rather3

  • 1Department of Computer Applications, Lovely Professional University, Punjab, India.

Insights

This study developed a standardized electrocardiogram (ECG) dataset and machine learning models for accurate cardiovascular disease (CVD) detection. The approach significantly improved diagnostic performance, offering a valuable tool for clinical decision support.

Area of Science:

  • Cardiology and Medical Informatics
  • Machine Learning in Healthcare
  • Signal Processing for Biomedical Applications

Background:

  • Cardiovascular diseases (CVDs) remain the leading global cause of mortality.
  • There is a critical need for reliable and accurate diagnostic systems for CVDs.
  • Existing electrocardiogram (ECG) datasets may lack standardization or sufficient diversity for robust machine learning applications.

Purpose of the Study:

  • To create a standardized, large-scale 12-lead ECG dataset for classifying six major cardiovascular diseases.
  • To evaluate the efficacy of various machine learning and deep learning models for CVD detection.
  • To investigate feature selection and extraction techniques, including the impact of addressing class imbalance using SMOTE.

Main Methods:

  • Collected and pre-processed a dataset of 34,580 12-lead ECG recordings from a clinical setting.
  • Extracted 14 clinically informative features and applied the Synthetic Minority Oversampling Technique (SMOTE) to balance the dataset.
  • Trained and tested ten machine learning and deep learning models (e.g., Random Forest, DNN, MLP, RNN) and employed SHAP/LIME for interpretability.

Main Results:

  • On the raw dataset, Random Forest and Gradient Boosting achieved near-perfect performance (99.88% accuracy, precision, recall, F1-score).
  • After SMOTE, deep learning models showed significant improvements: DNN (97.62% accuracy) and MLP (98.49% F1-score), demonstrating enhanced generalization.
  • The balanced dataset and SMOTE application proved effective in improving model stability and performance, especially for deep networks.

Conclusions:

  • The developed standardized ECG dataset and machine learning models provide a highly accurate and interpretable tool for real-time CVD classification.
  • SMOTE is a crucial technique for mitigating class imbalance, significantly boosting the performance of deep learning models in cardiovascular diagnostics.
  • The findings support the clinical utility of the proposed system for decision support in diagnosing cardiovascular diseases.

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.3K
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
Correlation between ECG and Cardiac Cycle01:25

Correlation between ECG and Cardiac Cycle

The electrical signals recorded on an electrocardiogram (ECG) occur before the mechanical processes of contraction and relaxation during the 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...
11.7K
Holter Monitor: 24-Hour Monitoring01:23

Holter Monitor: 24-Hour Monitoring

Holter monitoring is a continuous electrocardiography (ECG) recording that tracks the heart's electrical activity over an extended period, generally 24 to 48 hours. This noninvasive diagnostic tool detects irregular heart rhythms that may not be captured during a standard ECG performed in a clinical setting.DeviceThe Holter monitor is a portable, small device connected to several electrodes on the patient's chest. These electrodes detect the heart's electrical signals and transmit them to the...
2.0K
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...
323
Instrumentation Amplifier01:25

Instrumentation Amplifier

An electrocardiography (ECG) machine is an essential piece of medical equipment used to monitor the electrical activity of the heart. It operates by detecting small electrical changes on the skin that result from the depolarization of the heart muscle during each heartbeat. However, these signals are in the microvolt range and can be easily overwhelmed by noise or interference.
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
1.0K