Related Experiment Video
Updated: Oct 4, 2025

A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
Enhancing dynamic ECG heartbeat classification with lightweight transformer model
Lingxiao Meng1, Wenjun Tan2, Jiangang Ma3
1The Cyberspace Institute of Advanced Technology, Guangzhou University, Guangzhou 510006, China.
Insights
This study introduces a new lightweight model for detecting arrhythmias from wearable ECG data. The model achieves high accuracy in identifying premature ventricular contractions (PVCs) and supraventricular premature beats (SPBs) despite noisy signals.
Area of Science:
- Cardiology
- Biomedical Engineering
- Artificial Intelligence in Healthcare
Background:
- Arrhythmia, a major cardiovascular disease, causes significant global mortality.
- Wearable ECG devices offer continuous monitoring but face challenges with signal interference.
- Existing heartbeat classification models are often parameter-heavy and perform poorly on dynamic ECG data.
Purpose of the Study:
- To develop a novel, lightweight model for accurate arrhythmia detection using wearable ECG data.
- To address the limitations of traditional models in handling noisy signals and large parameter sizes.
- To improve the detection of premature ventricular contractions (PVCs) and supraventricular premature beats (SPBs).
Main Methods:
- Proposed a lightweight model, Lightweight Fussing Transformer, incorporating a novel LightConv Attention (LCA) mechanism.
- Replaced the self-attention component of the Fussing Transformer with the more efficient LCA.
- Developed an enhanced embedding structure using Convolutional Neural Networks with attention to better capture heartbeat morphology.
Main Results:
- The LCA mechanism achieved performance comparable to or exceeding self-attention with significantly fewer parameters.
- The enhanced embedding structure effectively improved the weighting of internal heartbeat features.
- Experimental validation on real datasets demonstrated outstanding accuracy in detecting PVCs and SPBs.
Conclusions:
- The proposed Lightweight Fussing Transformer with LCA offers an efficient and accurate solution for arrhythmia detection from wearable ECGs.
- This model overcomes the limitations of traditional methods, particularly in noisy environments.
- The findings support the potential of this lightweight model for early warning systems in wearable health devices.
Abstract:
Arrhythmia is a common class of Cardiovascular disease which is the cause for over 31% of all death over the world, according to WHOs' report. Automatic detection and classification of arrhythmia, as an effective tool of early warning, has recently been received more and more attention, especially in the applications of wearable devices for data capturing. However, different from traditional application scenarios, wearable electrocardiogram (ECG) devices have some drawbacks, such as being subject to multiple abnormal interferences, thus making accurate ventricular contraction (PVC) and supraventricular premature beat (SPB) detection to be more challenging. The traditional models for heartbeat classification suffer from the problem of large-scale parameters and the performance in dynamic ECG heartbeat classification is not satisfactory. In this paper, we propose a novel light model Lightweight Fussing Transformer to address these problems. We developed a more lightweight structure named LightConv Attention (LCA) to replace the self-attention of Fussing Transformer. LCA has reached remarkable performance level equal to or higher than self-attention with fewer parameters. In particular, we designed a stronger embedding structure (Convolutional Neural Network with attention mechanism) to enhance the weight of features of internal morphology of the heartbeat. Furthermore, we have implemented the proposed methods on real datasets and experimental results have demonstrated outstanding accuracy of detecting PVC and SPB.
Related Concept Videos
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...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
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...
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....
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...

