Related Experiment Video
Updated: Jul 28, 2025

Author Spotlight: Addressing Technical and Subjective Challenges in Measuring Classroom Attention
Published on: December 15, 2023
Automatic cardiac arrhythmias classification using CNN and attention-based RNN network
1School of Cyber Science and Engineering Ningbo University of Technology Ningbo Zhejiang China.
Insights
This study introduces an AI model combining CNN and RNN for accurate cardiac arrhythmia detection from ECG signals. The model shows high performance, aiding early diagnosis and improving patient outcomes.
Area of Science:
- Cardiology
- Biomedical Engineering
- Artificial Intelligence
Background:
- Cardiac disease poses a significant public health threat, with 0.29 billion patients in China alone.
- Early diagnosis of cardiac conditions is crucial for reducing mortality and enhancing life quality.
- Electrocardiogram (ECG) signals are a vital, non-invasive, and cost-effective tool for heart disease diagnosis.
Purpose of the Study:
- To develop an automated classification model for distinguishing various cardiac arrhythmias.
- To leverage deep learning techniques, specifically Convolutional Neural Networks (CNN) and Recurrent Neural Networks (RNN), for ECG analysis.
- To improve the accuracy of arrhythmia classification by incorporating an attention mechanism.
Main Methods:
- Utilized a hybrid model combining CNN for feature extraction and a bidirectional Gated Recurrent Unit (GRU) network for sequence analysis.
- Employed an attention mechanism to emphasize critical features within the ECG signal sequences.
- Evaluated the model on two datasets, including the MIT-BIH arrhythmia database and the China Physiological Signal Challenge 2018 database, addressing class imbalance.
Main Results:
- The proposed model achieved an average F1 score of 0.9110 on a public dataset.
- The model demonstrated strong performance on a subject-specific dataset with an average F1 score of 0.9082.
- The integration of CNN, bidirectional GRU, and attention mechanism proved effective in classifying cardiac arrhythmias.
Conclusions:
- The developed automatic classification model shows significant potential for practical application in diagnosing cardiac arrhythmias.
- The hybrid deep learning approach offers a robust method for analyzing ECG signals and improving diagnostic accuracy.
- Addressing class imbalance in datasets is critical for reliable performance in real-world cardiac monitoring.
Abstract:
Cardiac disease has become a severe threat to public health according to the government report. In China, there are 0.29 billion cardiac patients and early diagnosis will greatly reduce mortality and improve life quality. Electrocardiogram (ECG) signal is a priority tool in the diagnosis of heart diseases because it is non-invasive and easily available with a simple diagnostic tool of low cost. The paper proposes an automatic classification model by combing convolutional neural network (CNN) and recurrent neural network (RNN) to distinguish different types of cardiac arrhythmias. Morphology features of the raw ECG signals are extracted by CNN blocks and fed into a bidirectional gated recurrent unit (GRU) network. Attention mechanism is used to highlight specific features of the input sequence and contribute to the performance improvement of classification. The model is evaluated with two datasets considering the class imbalance problem constructed with records from MIT-BIH arrhythmia database and China Physiological Signal Challenge 2018 database. Experimental results show that this model achieves good performance with an average F1 score of 0.9110 on public dataset and 0.9082 on subject-specific dataset, which may have potential practical applications.
Related Concept Videos
Dysrhythmias II: Classification of Tachyarrhythmias
Mechanism of Cardiac Arrhythmias
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow...
Dysrhythmias I: Introduction
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 V: Evaluating Dysrhythmias

