A lightweight residual dilated temporal transformer block for ECG classification on edge devices
G. Antoni Gracy, Sheena Christabel Pravin
Vellore Institute of Technology University
Key points
From the paper's conclusion- It combines residual dilated convolutions with a deep Transformer architecture enhanced by positional encoding, channel-wise attention (SE blocks), and class balanced data augmentation using SMOTE and jitter noise.
Abstract
Wearable devices play a crucial role in healthcare by enabling continuous monitoring of vital physiological signals such as ECG, heart rate, respiration, body temperature, oxygen saturation, blood pressure, and activity metrics. These systems facilitate early detection and ongoing management of cardiovascular diseases, extending clinical capabilities beyond traditional settings. However, since the wearables are continually powered, there are stringent constraints on energy efficiency, processing latency, and data privacy. While cloud-based inference introduces high communication overhead, on-device deep learning raises computational and thermal challenges, demanding lightweight, accurate, and privacy-aware solutions. In this work, we propose a highly efficient and resource conscious deep learning model for ECG classification of three clinically significant classes: Arrhythmia (ARR), Congestive Heart Failure (CHF), and Normal Sinus Rhythm (NSR). The model is specifically optimized for deployment on edge devices. It combines residual dilated convolutions with a deep Transformer architecture enhanced by positional encoding, channel-wise attention (SE blocks), and class balanced data augmentation using SMOTE and jitter noise. Despite having only 692K parameters (2.64 MB) and approximately 0.234 GFLOPs, the model achieves 99.34% classification accuracy, Macro AUROC of 0.9996, Cohen's Kappa of 0.9891, and Log Loss of 0.0495. It further demonstrates strong generalization with a Hamming Loss of 0.0062 and Matthews Correlation Coefficient (MCC) of 0.9891 on the benchmark ECG dataset. The proposed method achieves an exceptional trade off between accuracy, model complexity, and inference speed, making it well suited for real-time, privacy preserving cardiac monitoring on low power, latency constrained platforms such as wireless body sensor networks and wearable edge devices.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A lightweight progressive residual convolutional network for interpretable arrhythmia classification.Physical and engineering sciences in medicine · 2026
- ArrythML-II: An Optimized TinyML Framework for ECG Arrhythmia Detection and Multi-Class Beat Classification on Wearable DevicesarXiv · 2026
- HCTG-Net: A Hybrid CNN–Transformer Network with Gated Fusion for Automatic ECG Arrhythmia DiagnosisBioengineering · 2025
- A Multihead Self-Attention and Adaptive Multiscale Dilated Convolution Model for Generalizable Arrhythmia Classification from ECG SignalsModelling · 2026
- Artificial Intelligence in Wearable ECG and PPG Devices for Arrhythmia Detection: A Narrative Review : Short title: Artificial Intelligence in Wearable Devices for Arrhythmia Detection.Galen medical journal · 2026
- Cardiac-Net: A Wearable ECG Prototype and Hybrid CNN–Transformer Model for Atrial Fibrillation Detection in Long-Term ECG RecordingsBioMedInformatics · 2026