Data Availability
Python scripts for data preprocessing and modelling can be requested by contacting corresponding author QL (liqiang8@hust.edu.cn). The test dataset of the randomized clinical cohort in this study is publicly available at Mendeley Data, V1, DOI:10.17632/6jd4rn2z9x.1. The MIT-BIH atrial fibrillation database is a public dataset available at: https://archive.physionet.org/physiobank/database/afdb/. The training and validation sets in the randomized clinical cohort and all the data in the real-world clinical cohort will be available after approval by the corresponding author XY (yangxiaoyun321@126.com). Any data and code use will be restricted to non-commercial research purposes.