cs.LGAug 19, 2026

Atrial Fibrillation Detection with Arbitrary Leads via a Codebook-Based Reconstruction-Classification Framework

Authors: Hongtao Li, Jia Wei, Guoyao Li, Yuchen Lei, Guangnian Ma, Jia Xiao, Yuanjun Lai, Shuzhen Lv, 

Organizations: Information Center, The People’s Hospital of Baoan Shenzhen, Shenzhen, 518101, Guangdong, China · School of Computer Science and Engineering, South China University of Technology, Guangzhou, 510006, Guangdong, China · Department of Cardiology, The People’s Hospital of Baoan Shenzhen, Shenzhen, 518101, Guangdong, China · Institute for Advanced Study, Shenzhen University, Shenzhen, 518060, Guangdong, China

Abstract

Background and Objective: Reliable atrial fibrillation (AF) detection from electrocardiogram (ECG) signals remains challenging in real-world clinical settings due to variable lead configurations, cross-dataset domain shifts, and pervasive physiological and technical artifacts. So we develop a robust and generalizable deep learning model for accurate AF detection.\ Methods: We propose the Dual-Codebook Graph Collaborative Network (DCGCNet), a novel end-to-end vector-quantized variational autoencoder that jointly performs AF classification and ECG reconstruction. DCGCNet introduces two key components: (1) a Local-Global Contrastive Module for learning noise-invariant representations, and (2) an Adaptive Codebook Vector Quantizer that dynamically refines codebook prototypes to better align with input data distributions, thereby preventing codebook collapse and enhancing generalization.\ Results: DCGCNet achieves state-of-the-art performance in standard intra-dataset 12-lead evaluation and demonstrates exceptional cross-dataset generalization across seven diverse settings, consistently attaining AUC > 0.98 in all cases. Furthermore, it maintains high diagnostic accuracy under realistic noisy conditions, including baseline wander, powerline interference, and EMG artifacts.\ Conclusions: DCGCNet establishes a new benchmark for robust, generalizable, and noise-resilient AF detection, showing strong potential for deployment in real-world clinical environments.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FOUND-AF: Benchmarking ECG Foundation Models for Atrial Fibrillation Detection

    Aug 4, 2026Amirhossein Taleshinosrati, Yangyang Wang, Atitaya Phoemsuk +5Atrial Fibrillation DetectionElectrocardiogram Foundation Models

  2. A Dataset and Benchmarks for Atrial Fibrillation Detection from Electrocardiograms of Intensive Care Unit Patients

    Dec 19, 2025Sarah Nassar, Nooshin Maghsoodi, Sophia Mannina +7Atrial Fibrillation DetectionElectrocardiogram Foundation Models

  3. HeartBeatAI: An Interpretable and Robust Deep Learning Framework for Multi-Label ECG Arrhythmia Detection

    May 23, 2026Shubham Gupta, Nikhil Panwar, Partha Pratim RoyElectrocardiographyDomain Generalization