Transformer-based temporal sequence learners for arrhythmia classification
Related Experiment Video
Updated: Jul 27, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Ann Varghese1, Suraj Kamal2, James Kurian2
1Department of Electronics, Cochin University of Science and Technology, Cochin, 682022, Kerala, India. ann.doe@cusat.ac.in.
Abstract:
An electrocardiogram (ECG) plays a crucial role in identifying and classifying cardiac arrhythmia. Traditional methods employ handcrafted features, and more recently, deep learning methods use convolution and recursive structures to classify heart signals. Considering the time sequence nature of the ECG signal, a transformer-based model with its high parallelism is proposed to classify ECG arrhythmia. The DistilBERT transformer model, pre-trained for natural language processing tasks, is used in the proposed work. The signals are denoised and then segmented around the R peak and oversampled to get a balanced dataset. The input embedding step is skipped, and only positional encoding is done. The final probabilities are obtained by adding a classification head to the transformer encoder output. The experiments on the MIT-BIH dataset show that the suggested model is excellent in classifying various arrhythmias. The model achieved 99.92% accuracy, 0.99 precision, sensitivity, and F1 score on the augmented dataset with a ROC-AUC score of 0.999.
More Related Videos
Related Concept Videos
Dysrhythmias II: Classification of Tachyarrhythmias
Disturbances in Heart Rhythm
Arrhythmias are categorized by their speed, rhythm, and origin. A slow...
Dysrhythmias V: Evaluating Dysrhythmias
Dysrhythmias III: Characteristics of Dysrhythmias
Mechanism of Cardiac Arrhythmias
Dysrhythmias I: Introduction

