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.

Related Concept Videos

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...
9.1K
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...
3.6K
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...
973
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...
919
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....
5.1K
Instrumentation Amplifier01:25

Instrumentation Amplifier

An electrocardiography (ECG) machine is an essential piece of medical equipment used to monitor the electrical activity of the heart. It operates by detecting small electrical changes on the skin that result from the depolarization of the heart muscle during each heartbeat. However, these signals are in the microvolt range and can be easily overwhelmed by noise or interference.
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
741