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.
Competing Interest StatementThe authors have declared no competing interest.
Funding StatementThis study was funded by the Guangdong Basic and Applied Basic Research Foundation (2022A1515-011426), in part by the National Natural Science Foundation of China (61873027, 81970200, and 82271609), in part by the Guangzhou Municipal Science and Technology Project (2023B01J1011), and in part by the Shenzhen Science and Technology Program (JCYJ20190808100817047 and RCBS20200714114909234).
Author DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.
Yes
The details of the IRB/oversight body that provided approval or exemption for the research described are given below:
The study used (or will use) ONLY openly available human data that were originally located at: https://physionet.org/content/challenge-2017/1.0.0/ https://physionet.org/content/ecg-arrhythmia/1.0.0/ http://2018.icbeb.org/Challenge.html https://physionet.org/content/mimic-iv-ecg/1.0/
I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.
Yes
I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).
Yes
I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.
Yes
Comments (0)