Related Experiment Video
Updated: Jun 13, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Enhancing ECG disease detection accuracy through deep learning models and P-QRS-T waveform features
Rida Nayyab1, Asim Waris1, Iqra Zaheer1
1Department of Biomedical Engineering and Sciences, School of Mechanical and Manufacturing Engineering, National University of Sciences and Technology (NUST), Islamabad, Pakistan.
Insights
This study developed a deep learning model for multi-class electrocardiogram (ECG) analysis, achieving 84% accuracy in classifying heart conditions like Hypertrophy. The method combines signal processing with deep learning for improved cardiovascular disease diagnosis.
Area of Science:
- Cardiology
- Biomedical Engineering
- Artificial Intelligence
Background:
- Cardiovascular diseases (CVDs) are the leading cause of global mortality.
- Electrocardiograms (ECGs) are crucial for non-invasive heart condition diagnosis.
- Existing ECG research often focuses on binary or arrhythmia classification, necessitating advanced multi-class models.
Purpose of the Study:
- To develop a robust deep learning method for multi-class classification of various heart abnormalities using ECG data.
- To enhance the accuracy of diagnosing specific conditions like Hypertrophy, Conduction Disturbance, Myocardial Infarction, and ST-T Changes.
Main Methods:
- Utilized the PTB-XL ECG database, applying Butterworth bandpass and Discrete Wavelet Transform (DWT) db-8 filtering.
- Extracted morphological features (P-QRS-T intervals and amplitudes) from R-peak detected signals.
- Employed Synthetic Minority Oversampling Technique for Nominal and Continuous (SMOTE-NC) for data balancing, followed by Convolutional Neural Network (CNN) and Deep Neural Network (DNN) models with 5-fold cross-validation.
Main Results:
- The Deep Neural Network (DNN) model achieved a mean accuracy of 84% (±0.01), outperforming the Convolutional Neural Network (CNN) model's 81% (±0.03) accuracy.
- Hypertrophy (HYP) classification demonstrated high consistency, reaching up to 98% accuracy.
- Evaluated performance using F1 score, recall, precision, and accuracy across normal and four abnormal cardiac classes.
Conclusions:
- Combining advanced signal processing (DWT) with deep learning (CNN, DNN) effectively enables precise multi-class heart disease classification from ECGs.
- The P-QRS-T morphological features are valuable for distinguishing various cardiac abnormalities.
- The developed models show promise for future real-time clinical applications in cardiovascular diagnostics.
Abstract:
Cardiovascular diseases (CVDs) have surpassed cancer and become the major cause of death worldwide. An electrocardiogram (ECG) is a non-invasive and quicker method for diagnosing abnormal heart conditions. While research has extensively focused on ECG analysis for disease classification, it has been primarily directed toward binary classification or classification of Arrhythmias, highlighting the dire need for detailed classification models. This study utilises the extensive PTB-XL database ECG records to develop a robust method for classifying various heart abnormalities. The data with unique labels is filtered through the Butterworth bandpass filter and Discrete Wavelet Transform (DWT) db-8. The R-peaks of the clean signal were used to detect the subsequent morphological features, i.e., P-QRS-T intervals and amplitudes. The feature set was balanced using the Synthetic Minority Oversampling Technique for Nominal and Continuous (SMOTE-NC) and fed into Convolutional Neural Network (CNN) and Deep Neural Network (DNN) with 5-fold cross-validation. The models classified the ECG records into one normal and four abnormal classes: Conduction Disturbance (CD), Myocardial Infarction (MI), Hypertrophy (HYP), and ST-T Changes (STTC). Performance metrics such as F1 score, recall, precision, and accuracy were evaluated for each model. The CNN model achieved a mean accuracy of 81% ± 0.03, while the DNN model achieved a mean accuracy of 84% ± 0.01. One key finding is that Hypertrophy (HYP) was consistently classified with up to 98% accuracy. Thus, the study demonstrates the effectiveness of combining advanced signal processing and deep learning techniques for precise multi-class heart disease classification using P-QRS-T features, paving the way for future real-time clinical applications.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
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...
ECG Interpretation of Rhythms
Components of the Electrocardiogram
The primary components of a normal ECG waveform in Normal sinus rhythm(NSR) include the P wave, PR interval, QRS complex, ST segment, T wave, and occasionally a U wave.
ECG waveforms are divided by vertical and horizontal lines at standard intervals.
The horizontal axis measures time and rate, and the vertical axis measures amplitude or voltage....
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...
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...

