Related Experiment Video
Updated: Sep 25, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Generalizable Beat-by-Beat Arrhythmia Detection by Using Weakly Supervised Deep Learning
Yang Liu1, Qince Li1,2, Runnan He2
1School of Computer Science and Technology, Harbin Institute of Technology (HIT), Harbin, China.
Insights
This study introduces a weakly supervised deep learning framework (WSDL-AD) for accurate beat-by-beat arrhythmia detection using electrocardiogram (ECG) data. The WSDL-AD model significantly improves the detection of ectopic beats, outperforming existing methods.
Area of Science:
- Cardiology
- Artificial Intelligence
- Biomedical Engineering
Background:
- Beat-by-beat arrhythmia detection in ambulatory ECG monitoring is crucial but challenging due to the demanding nature of manual analysis and limitations in current automated methods.
- Existing automatic arrhythmia detection systems struggle with generalization due to insufficient large-sample, finely-annotated ECG data for training.
- The lack of detailed beat-level annotations in large ECG datasets hinders the development of robust and widely applicable arrhythmia detection models.
Purpose of the Study:
- To develop a weakly supervised deep learning framework for arrhythmia detection (WSDL-AD) that enables fine-grained, beat-by-beat analysis using coarsely annotated ECG data.
- To improve the generalization ability of arrhythmia detection models by leveraging large datasets with less granular labels.
- To enhance the accuracy and stability of heartbeat classification under weak supervision through novel techniques.
Main Methods:
- Proposed a weakly supervised deep learning framework (WSDL-AD) integrating heartbeat and recording classification for end-to-end training with only recording-level labels.
- Employed techniques such as knowledge-based features, masked aggregation, and supervised pre-training to enhance weak supervision for heartbeat classification.
- Trained the WSDL-AD model for detecting ventricular ectopic beats (VEB) and supraventricular ectopic beats (SVEB) on multiple large-sample, coarsely annotated datasets.
Main Results:
- The WSDL-AD model demonstrated significant improvements in detection accuracy compared to state-of-the-art supervised learning methods.
- Achieved an 8%-290% improvement in F1 score for supraventricular ectopic beats detection and a 4%-11% improvement for ventricular ectopic beats detection.
- Validated performance on three independent benchmarks according to AAMI recommendations, confirming enhanced generalization and fine detection granularity.
Conclusions:
- The WSDL-AD framework effectively utilizes abundant coarsely labeled ECG data to achieve superior generalization ability compared to previous methods.
- The proposed approach retains fine detection granularity, making it suitable for clinical and telehealth applications.
- This weakly supervised method offers a promising solution for improving the efficiency and accuracy of ambulatory ECG analysis for cardiac arrhythmias.
Abstract:
Beat-by-beat arrhythmia detection in ambulatory electrocardiogram (ECG) monitoring is critical for the evaluation and prognosis of cardiac arrhythmias, however, it is a highly professional demanding and time-consuming task. Current methods for automatic beat-by-beat arrhythmia detection suffer from poor generalization ability due to the lack of large-sample and finely-annotated (labels are given to each beat) ECG data for model training. In this work, we propose a weakly supervised deep learning framework for arrhythmia detection (WSDL-AD), which permits training a fine-grained (beat-by-beat) arrhythmia detector with the use of large amounts of coarsely annotated ECG data (labels are given to each recording) to improve the generalization ability. In this framework, heartbeat classification and recording classification are integrated into a deep neural network for end-to-end training with only recording labels. Several techniques, including knowledge-based features, masked aggregation, and supervised pre-training, are proposed to improve the accuracy and stability of the heartbeat classification under weak supervision. The developed WSDL-AD model is trained for the detection of ventricular ectopic beats (VEB) and supraventricular ectopic beats (SVEB) on five large-sample and coarsely-annotated datasets and the model performance is evaluated on three independent benchmarks according to the recommendations from the Association for the Advancement of Medical Instrumentation (AAMI). The experimental results show that our method improves the F 1 score of supraventricular ectopic beats detection by 8%-290% and the F1 of ventricular ectopic beats detection by 4%-11% on the benchmarks compared with the state-of-the-art methods of supervised learning. It demonstrates that the WSDL-AD framework can leverage the abundant coarsely-labeled data to achieve a better generalization ability than previous methods while retaining fine detection granularity. Therefore, this framework has a great potential to be used in clinical and telehealth applications. The source code is available at https://github.com/sdnjly/WSDL-AD.
Related Concept Videos
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow heart...
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...
Dysrhythmias V: Evaluating Dysrhythmias
Dysrhythmias II: Classification of Tachyarrhythmias
Dysrhythmias I: Introduction

