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.

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...
2.1K
ECG Interpretation of Arrhythmias I: Sinus Arrhythmias01:16

ECG Interpretation of Arrhythmias I: Sinus Arrhythmias

Arrhythmias are disturbances in the heart's rhythm that lead to abnormal heartbeats. These irregularities can originate from different parts of the heart and are classified based on their origin and nature.
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,...
181
Electrocardiogram Fundamentals01:28

Electrocardiogram Fundamentals

Introduction
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...
494
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...
754
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...
3.3K
ECG Interpretation of Rhythms01:24

ECG Interpretation of Rhythms

An electrocardiogram (ECG)graphically represents the heart's electrical activity on ECG paper or a monitor.
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....
436