CTRhythm: Accurate Atrial Fibrillation Detection from Single-Lead ECG by Convolutional Neural Network and Transformer Integration

Zhanyu Liang,Chen Yang,Zhengyang Yu,Yinmingren Fu,Bozhen Ren,Maohuan Lin,Qingjiao Li,Xuemei Liu,Yangxin Chen,Li C. Xia
DOI: https://doi.org/10.1101/2024.10.26.24316175
2024-10-27
Abstract:Atrial Fibrillation (AF) is a common supraventricular arrhythmia that affects about 30 million people globally. Electrocardiogram (ECG) analysis is the primary diagnostic approach. The widespread adoption of wearable devices monitoring heart rhythm prompted the development of AF detection models for single-lead ECGs, benefitting real-time early diagnosis. Current state-of-the-art methods for AF detection are convolutional neural network (CNN) and convolutional recurrent neural network (CRNN) based models, which only focus on capturing local patterns despite heart rhythms exhibiting rich long-range dependencies. To address this limitation, we propose a novel method for single-lead ECG rhythm classification, termed CNN-Transformer Rhythm Classifier (CTRhythm), which integrates CNN with a Transformer encoder to capture local and global patterns effectively. CTRhythm achieved an overall F1 score of 0.831, outperforming the baseline deep learning models on the golden standard CINC2017 dataset. Moreover, pre-training with additional data improved the overall F1 score to 0.840. In two external validation datasets, CTRhythm showed its strong generalization capabilities. CTRhythm is freely available at https://github.com/labxscut/CTRhythm.
Health Informatics
What problem does this paper attempt to address?