Related Experiment Video
Updated: Jan 14, 2026

Patient Directed Recording of a Bipolar Three-Lead Electrocardiogram using a Smartwatch with ECG Function
Published on: December 11, 2019
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.
Abstract:
Cardiovascular diseases (CVDs) are still the leading cause of death worldwide, emphasizing the critical need for reliable diagnostic systems. This study aims to create a standardized electrocardiogram (ECG) dataset that can be used to detect and classify six major CVDs using machine learning techniques and investigate feature selection and extraction methods for improved performance. A large dataset of 34,580 12-lead ECG recordings was collected from Sher-i-Kashmir Institute of Medical Sciences (SKIMS), Srinagar, Jammu and Kashmir spanning six clinically confirmed classes: Normal, Cardiac Arrhythmia, Coronary Heart Disease, Cardiomyopathy, Stroke, and Heart Failure. Data pre-processing involved baseline correction, removal of artifacts and the extraction of 14 clinically informative features. To address class imbalance, the Synthetic Minority Oversampling Technique (SMOTE) was applied, resulting in an equal distribution of 16.7% of the data across each class. Ten Machine learning and deep learning models-Logistic Regression, Decision Tree, Random Forest, SVM, KNN, Naive Bayes, Gradient Boosting, MLP, DNN, and RNN-were trained and tested. SHAP and LIME methods were used for interpretability. On the raw dataset, Random Forest and Gradient Boosting produced highest performance with test accuracy of 99.88%, precision of 99.88%, recall of 99.88%, and F1-score of 99.88%. After SMOTE, DNN significantly improved (Accuracy: 97.62%, Precision: 97.66%, Recall: 97.62%, F1-score: 97.64%), while MLP obtained an F1-score of 98.49% and RNN obtained 94.76%. All models exhibited better generalization and stability after SMOTE. The balanced, heterogeneous, and clinically verified ECG dataset supported the highly accurate, interpretable, and real-time classification of CVD. SMOTE significantly improved the performance of the model, particularly for deep networks, substantiating its effectiveness in the class imbalance problem. These results place the proposed model and dataset as effective tools for clinical decision support in the diagnosis of cardiovascular disease.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
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...
Holter Monitor: 24-Hour Monitoring
Dysrhythmias V: Evaluating Dysrhythmias
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...

