Related Experiment Video
Updated: May 30, 2025

Real-Time Cardiac Mapping with a Noninvasive Imageless Electrocardiographic Imaging System
Published on: April 11, 2025
A comparative analysis of CNNs and LSTMs for ECG-based diagnosis of arrythmia and congestive heart failure
Nitish Katal1, Hitendra Garg2, Bhisham Sharma3
1School of Electronics Engineering, Vellore Institute of Technology, Chennai, Tamil Nadu, India.
Insights
This study compared Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks for detecting cardiac arrhythmias from ECG data. VGG-16 (a CNN) showed superior accuracy for short ECG segments, while LSTMs are better for long-term monitoring.
Area of Science:
- Biomedical Engineering
- Artificial Intelligence in Healthcare
- Cardiology
Background:
- Cardiac arrhythmias pose a significant global health risk, necessitating early and accurate detection for effective diagnosis and management.
- Automated analysis of electrocardiogram (ECG) data holds promise for improving arrhythmia detection rates.
Purpose of the Study:
- To evaluate and compare the performance of Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks for classifying cardiac arrhythmias.
- To assess the suitability of different deep learning models for varying ECG data durations and monitoring scenarios.
Main Methods:
- Utilized three PhysioNet datasets containing ECG records, segmented into approximately 10-second intervals.
- Transformed ECG data into scalograms using Discrete Wavelet Transform (DWT) for training a VGG-16 (CNN) model.
- Employed Wavelet Transform (WTS) for feature extraction and dimensionality reduction to train an LSTM network.
Main Results:
- The VGG-16 model achieved a test accuracy of 96.44% in classifying cardiac arrhythmias.
- The LSTM network achieved a test accuracy of 92% for the same classification task.
- VGG-16 demonstrated higher effectiveness for analyzing short-duration ECG segments.
Conclusions:
- CNNs, specifically VGG-16, are highly effective for rapid, short-duration cardiac arrhythmia detection.
- LSTMs show potential for continuous, long-term monitoring of cardiac arrhythmias, particularly on edge devices for personalized healthcare applications.
Abstract:
Cardiac arrhythmias are major global health concern and their early detection is critical for diagnosis. This study comprehensively evaluates the effectiveness of CNNs and LSTMs for the classification of cardiac arrhythmias, considering three PhysioNet datasets. ECG records are segmented to accommodate around ∼10s of ECG data. Followed by transformation to scalograms using DWT for training VGG-16; and WTS for feature extraction and dimensionality reduction for training LSTM network. VGG-16 achieved 96.44% test accuracy while LSTM achieved 92%. Results also highlight the effectiveness of VGG-16 for short-duration ECG analysis, while LSTM excels in long-term monitoring on edge devices for personalized healthcare.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
ECG Interpretation of Arrhythmias I: Sinus Arrhythmias
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,...
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...
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...
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....

