Dynamic ECG Heartbeat Classification and Arrhythmia Detection Using a Lightweight Distill Transformer-Based Deep Neural Network
Abstract
An electrocardiogram (ECG) monitors the electrical activity generated by the heart. The data collected from ECG monitoring is used to detect fatal heart diseases. Experts use multiple-lead ECGs, usually 12-lead ECGs, for clinical assessment of electrical activity generated by the heart. Large-size deep learning models are used to detect these diseases for proper electrical data analysis. These models are more complex, require more extended time, and require heavy computational resources. Hence, we propose a multi-view transformer-based neural network model for ECG classification to fix these issues. Knowledge distillation is used on top of the model to reduce computational complexity. It helps reduce the number of parameters of the teacher model while maintaining the accuracy of the student model. Extensive experiments have been conducted on the PTB-XL dataset. The model size is reduced by 80 % while keeping acceptable accuracy for the PTB-XL dataset. It makes our model suitable for deployment on small devices, especially wearables IoT devices..