Electrocardiogram classification using TSST-based spectrogram and ConViT

Pingping Bing1, Yang Liu2, Wei Liu2

  • 1Academician Workstation, Changsha Medical University, Changsha, China.

Insights

This study introduces ConViT, a deep learning model for Electrocardiogram (ECG) arrhythmia classification, achieving 99.5% accuracy. The novel approach enhances cardiovascular disease diagnosis by improving detection of irregular heart rhythms.

Area of Science:

  • Cardiology
  • Artificial Intelligence
  • Signal Processing

Background:

  • Electrocardiogram (ECG) is crucial for diagnosing arrhythmias and related cardiovascular diseases.
  • ECG arrhythmia classification presents significant challenges.
  • Existing methods often struggle with data imbalance and feature extraction.

Purpose of the Study:

  • To develop a novel deep learning model for accurate ECG arrhythmia classification.
  • To integrate the strengths of Convolutional Neural Networks (CNN) and Vision Transformers (ViT).
  • To address challenges like class imbalance and enhance feature extraction for improved diagnostic accuracy.

Main Methods:

  • A novel deep learning model, Convolutional Vision Transformer (ConViT), combining CNN and ViT architectures.
  • Gated Positional Self-Attention (GPSA) layers to integrate convolutional inductive bias with attention mechanisms.
  • Time-Reassigned Synchrosqueezing Transform (TSST) for enhanced time-frequency feature extraction.
  • SMOTE algorithm for data augmentation and Focal Loss (FL) for minority-class weighting to handle data imbalance.

Main Results:

  • The proposed ConViT model achieved an overall accuracy of 99.5% on the MIT-BIH arrhythmia database.
  • High performance metrics, including specificity, F1-Score, and Matthews Correlation Coefficient (MCC) exceeding 94% for supraventricular ectopic beats (S) and ventricular ectopic beats (V).
  • Demonstrated superiority over existing methods in ECG arrhythmia classification.

Conclusions:

  • The ConViT model offers a powerful and accurate solution for ECG arrhythmia classification.
  • The integration of advanced deep learning techniques and signal processing methods significantly improves diagnostic capabilities.
  • This approach holds promise for enhancing the early detection and management of cardiovascular diseases.

Related Concept Videos

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.0K
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...
814
Dysrhythmias II: Classification of Tachyarrhythmias01:28

Dysrhythmias II: Classification of Tachyarrhythmias

Tachyarrhythmias are a type of dysrhythmia where the heart rate exceeds 100 beats per minute. Here are some common types of tachyarrhythmias:Sinus TachycardiaSinus tachycardia originates from increased impulses from the sinus node, leading to an elevated heart rate. It is often triggered by stress, fever, or exercise.Patients may experience palpitations, a sensation of a racing heart, dizziness, and chest discomfort.Causes and Risk Factors: Common causes include physical exertion, emotional...
76
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....
2.9K
Classification of Signals01:30

Classification of Signals

In signal processing, signals are classified based on various characteristics: continuous-time versus discrete-time, periodic versus aperiodic, analog versus digital, and causal versus noncausal. Each category highlights distinct properties crucial for understanding and manipulating signals.
A continuous-time signal holds a value at every instant in time, representing information seamlessly. In contrast, a discrete-time signal holds values only at specific moments, often denoted as x(n), where...
705
Classification of Titrimetric Analysis Based on Reaction Types01:01

Classification of Titrimetric Analysis Based on Reaction Types

Titrimetric analysis in solution chemistry involves measuring the volume of solutions and is often called volumetric analysis. The standard solution of known concentration in the burette is called the titrant, whereas the solution of unknown concentration in the flask is called the analyte, or titrand. Titrimetric analyses can be classified into four types based on the reactions between the titrant and analyte.
Titrations between an acid and a base lead to neutralization reactions that form...
811