Accepted for/Published in: Journal of Medical Internet Research
Date Submitted: May 8, 2025
Date Accepted: Oct 2, 2025
AI-ECG-AF as a Predictor of Postoperative Atrial Fibrillation Following Cardiac Surgery: Retrospective Cohort Study
ABSTRACT
Background:
Postoperative atrial fibrillation (AF) after cardiac surgery is common and is associated with substantial clinical and economic repercussions. However, existing strategies for preventing postoperative AF remain suboptimal, limiting proactive management. Advances in artificial intelligence (AI) may improve the prediction of postoperative AF. Studies have shown that deep learning applied to electrocardiograms (ECGs) can detect subtle patterns in non-AF ECGs associated with a history of (or impending) AF (referred to as the AI-ECG-AF model).
Objective:
We aimed to determine whether the AI-ECG-AF model can serve as an independent risk factor for postoperative AF after cardiac surgery, compare its predictive performance with existing postoperative AF prediction tools, and assess its additive value.
Methods:
This single-center retrospective cohort study included 2266 patients (5402 standard 12-lead ECGs) who underwent cardiac surgery at a tertiary hospital in South Korea between December 2018 and December 2023. The AI-ECG-AF model was trained on 4.05 million non-AF standard 12-lead ECGs (1.13 million patients) using a 1-dimensional EfficientNet-B0 architecture and achieved an area under the receiver operating characteristic curve (AUROC) of 0.901 (95% confidence interval: 0.900–0.902) in its held-out test set. Postoperative AF was defined as AF documented by ECG within 30 days after surgery. Using multivariable logistic regression, we assessed the association between the AI-ECG-AF model score and postoperative AF, adjusting for conventional clinical variables. We also investigated the additive or synergistic predictive value of the AI-ECG-AF model score when combined with an existing postoperative AF tool (the POAF score) or other risk factors, based on the AUROC.
Results:
After adjusting for other clinical variables, a 10% absolute increase in the AI-ECG-AF model score was associated with a 1.197 to 1.209-fold increase in the odds of developing postoperative AF. The AI-ECG-AF model score significantly enhanced postoperative AF prediction: the AUROC of the existing POAF score was 0.643; adding the AI-ECG-AF model score increased it to 0.680 (p < 0.001), and combining the AI-ECG-AF model score with other risk factors raised it to 0.710 (p < 0.001).
Conclusions:
The AI-ECG-AF model serves as a novel, robust, and independent risk factor for postoperative AF following cardiac surgery and provides additive or synergistic predictive value when integrated with existing postoperative AF prediction tools or other risk factors. Its incorporation can help identify high-risk patients, enabling targeted prophylaxis and closer monitoring during the perioperative period.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.