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.
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.
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...

