Journal of Southern Medical University ›› 2025, Vol. 45 ›› Issue (3): 650-660.doi: 10.12122/j.issn.1673-4254.2025.03.23

Previous Articles    

A lightweight classification network for single-lead atrial fibrillation based on depthwise separable convolution and attention mechanism

Yong HONG(), Xin ZHANG, Mingjun LIN, Qiucen WU, Chaomin CHEN()   

  1. College of Biomedical Engineering, Southern Medical University, Guangzhou 510515, China
  • Received:2024-12-04 Online:2025-03-20 Published:2025-03-28
  • Contact: Chaomin CHEN E-mail:3547475276@qq.com;571611621@qq.com

Abstract:

Objective To design a deep learning model that balances model complexity and performance to enable its integration into wearable ECG monitoring devices for automated diagnosis of atrial fibrillation. Methods This study was performed based on data from 84 patients with atrial fibrillation, 25 patients with atrial fibrillation, and 18 subjects without obvious arrhythmia collected from the publicly available datasets LTAFDB, AFDB, and NSRDB, respectively. A lightweight attention network based on depthwise separable convolution and fusion of channel-spatial information, namely DSC-AttNet, was proposed. Depthwise separable convolution was introduced to replace standard convolution and reduce model parameters and computational complexity to realize high efficiency and light weight of the model. The multilayer hybrid attention mechanism was embedded to compute the attentional weights of the channels and spatial information at different scales to improve the feature expression ability of the model. Ten-fold cross-validation was performed on LTAFDB, and external independent testing was conducted on AFDB and NSRDB datasets. Results DSC-AttNet achieved a ten-fold average accuracy of 97.33% and a precision of 97.30% on the test set, both of which outperformed the other 4 comparison models as well as the 3 classical models. The accuracy of the model on the external test set reached 92.78%, better than those of the 3 classical models. The number of parameters of DSC-AttNet was 1.01M, and the computational volume was 27.19G, both smaller than the 3 classical models. Conclusion This proposed method has a smaller complexity, achieves better classification performance, and has a better generalization ability for atrial fibrillation classification.

Key words: electrocardiogram, atrial fibrillation, convolutional block attention module, MobileNet, lightweight convolutional neural network