Related Experiment Video
Updated: Dec 5, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Inter- and intra-patient ECG heartbeat classification for arrhythmia detection: A sequence to sequence deep learning
Sajad Mousavi1, Fatemeh Afghah1
1School of Informatics, Computing and Cyber Systems, Northern Arizona University, Flagstaff, AZ.
This study introduces an advanced deep learning model for automatic heartbeat classification, significantly improving arrhythmia detection accuracy, especially with imbalanced datasets. The novel approach enhances diagnostic capabilities for electrocardiogram (ECG) analysis.
Area of Science:
- Cardiology
- Artificial Intelligence
- Biomedical Signal Processing
Background:
- Electrocardiogram (ECG) signals are crucial for studying heart function and diagnosing arrhythmias.
- Current arrhythmia classification methods struggle with imbalanced datasets, limiting diagnostic performance.
- There is a need for robust automatic heartbeat classification methods.
Purpose of the Study:
- To develop an automatic heartbeat classification method using deep convolutional neural networks and sequence-to-sequence models.
- To address the limitations of existing methods in handling imbalanced datasets for arrhythmia detection.
- To achieve superior performance in classifying different heart conditions from ECG signals.
Main Methods:
- Utilized deep convolutional neural networks (CNNs) for feature extraction from ECG signals.
- Employed sequence-to-sequence models to enhance the classification accuracy of heartbeat patterns.
- Evaluated the proposed method on the MIT-BIH arrhythmia database using intra-patient and inter-patient paradigms, adhering to the AAMI EC57 standard.
Main Results:
- The method demonstrated state-of-the-art performance across both intra-patient and inter-patient evaluation schemes.
- Achieved high positive predictive values (e.g., 96.46% for S, 98.68% for F in intra-patient) and sensitivity (e.g., 100% for S, 97.40% for F in intra-patient).
- Further excelled in inter-patient analysis with excellent metrics for categories S (92.57% PPV, 88.94% sensitivity) and V (99.50% PPV, 99.94% sensitivity).
Conclusions:
- The proposed deep learning approach effectively classifies heartbeats and improves arrhythmia detection, particularly with imbalanced data.
- The method sets a new benchmark in the literature for ECG-based arrhythmia classification.
- This work offers a promising solution for more accurate and reliable cardiac condition diagnosis.
More Related Videos
Related Concept Videos
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias
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,...
Dysrhythmias II: Classification of Tachyarrhythmias
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...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...

