<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">J Med Internet Res</journal-id><journal-id journal-id-type="publisher-id">jmir</journal-id><journal-id journal-id-type="index">1</journal-id><journal-title>Journal of Medical Internet Research</journal-title><abbrev-journal-title>J Med Internet Res</abbrev-journal-title><issn pub-type="epub">1438-8871</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v27i1e77164</article-id><article-id pub-id-type="doi">10.2196/77164</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Artificial Intelligence&#x2013;Based Electrocardiogram Model as a Predictor of Postoperative Atrial Fibrillation Following Cardiac Surgery: Retrospective Cohort Study</article-title></title-group><contrib-group><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Han</surname><given-names>Changho</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Soh</surname><given-names>Sarah</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Park</surname><given-names>Je-Wook</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Pak</surname><given-names>Hui-Nam</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Yoon</surname><given-names>Dukyong</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff6">6</xref></contrib></contrib-group><aff id="aff1"><institution>Department of Biomedical Systems Informatics, Yonsei University College of Medicine</institution><addr-line>331 Dongbaekjukjeon-daero, Giheung-gu</addr-line><addr-line>Yongin</addr-line><country>Republic of Korea</country></aff><aff id="aff2"><institution>Department of Anesthesiology and Pain Medicine, Yonsei University College of Medicine</institution><addr-line>Seoul</addr-line><country>Republic of Korea</country></aff><aff id="aff3"><institution>Institute for Innovation in Digital Healthcare, Yonsei University</institution><addr-line>Seoul</addr-line><country>Republic of Korea</country></aff><aff id="aff4"><institution>Division of Cardiology, Department of Internal Medicine, Yongin Severance Hospital, Yonsei University College of Medicine</institution><addr-line>Yongin</addr-line><country>Republic of Korea</country></aff><aff id="aff5"><institution>Division of Cardiology, Department of Internal Medicine, Yonsei University College of Medicine</institution><addr-line>Seoul</addr-line><country>Republic of Korea</country></aff><aff id="aff6"><institution>Center for Digital Health, Yongin Severance Hospital, Yonsei University Health System</institution><addr-line>Yongin</addr-line><country>Republic of Korea</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Coristine</surname><given-names>Andrew</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Gissel</surname><given-names>Christian</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Huang</surname><given-names>Pin</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Dukyong Yoon, MD, PhD, Department of Biomedical Systems Informatics, Yonsei University College of Medicine, 331 Dongbaekjukjeon-daero, Giheung-gu, Yongin, 16995, Republic of Korea, 82 3151898450; <email>dukyong.yoon@yonsei.ac.kr</email></corresp><fn fn-type="equal" id="equal-contrib1"><label>*</label><p>these authors contributed equally</p></fn></author-notes><pub-date pub-type="collection"><year>2025</year></pub-date><pub-date pub-type="epub"><day>10</day><month>11</month><year>2025</year></pub-date><volume>27</volume><elocation-id>e77164</elocation-id><history><date date-type="received"><day>08</day><month>05</month><year>2025</year></date><date date-type="rev-recd"><day>02</day><month>10</month><year>2025</year></date><date date-type="accepted"><day>02</day><month>10</month><year>2025</year></date></history><copyright-statement>&#x00A9; Changho Han, Sarah Soh, Je-Wook Park, Hui-Nam Pak, Dukyong Yoon. Originally published in the Journal of Medical Internet Research (<ext-link ext-link-type="uri" xlink:href="https://www.jmir.org">https://www.jmir.org</ext-link>), 10.11.2025. </copyright-statement><copyright-year>2025</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://www.jmir.org/">https://www.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://www.jmir.org/2025/1/e77164"/><abstract><sec><title>Background</title><p>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). As a noninvasive test routinely performed throughout the perioperative period, the ECG presents a unique opportunity for additional risk stratification.</p></sec><sec><title>Objective</title><p>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.</p></sec><sec sec-type="methods"><title>Methods</title><p>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 1D EfficientNet-B0 architecture and achieved an area under the receiver operating characteristic curve (AUROC) of 0.901 (95% CI 0.900&#x2010;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 postoperative atrial fibrillation score) or other risk factors, based on the AUROC.</p></sec><sec sec-type="results"><title>Results</title><p>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 postoperative atrial fibrillation score was 0.643; adding the AI-ECG-AF model score increased it to 0.680 (<italic>P</italic>&#x003C;.001), and combining the AI-ECG-AF model score with other risk factors raised it to 0.710 (<italic>P</italic>&#x003C;.001).</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>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. By capturing atrial electrophysiological vulnerability not reflected in conventional clinical scores, the AI-ECG-AF model may function as a noninvasive biomarker for preoperative risk stratification for postoperative AF prediction in cardiac surgery patients, potentially enabling targeted prophylaxis and closer monitoring during the perioperative period.</p></sec></abstract><kwd-group><kwd>postoperative atrial fibrillation</kwd><kwd>cardiac surgery</kwd><kwd>electrocardiogram</kwd><kwd>artificial intelligence</kwd><kwd>deep learning</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Postoperative atrial fibrillation (AF) is recognized as the most frequently occurring complication following cardiac surgery, with reported incidence rates reaching as high as 50% in various studies [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref4">4</xref>]. The development of postoperative AF is associated with substantial clinical and economic repercussions, including an increased risk of mortality, heightened rates of morbidity, extended durations of hospitalization, and significantly elevated health care costs [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref4">4</xref>]. Despite ongoing advancements that have led to improved overall outcomes in cardiac surgery, the reported prevalence of postoperative AF has remained largely unchanged over the past several decades [<xref ref-type="bibr" rid="ref2">2</xref>].</p><p>Despite its high prevalence and substantial clinical impact, existing strategies for preventing postoperative AF remain suboptimal. While current guidelines endorse the perioperative administration of oral beta blockers or amiodarone to mitigate the risk of postoperative AF, surveys indicate that these medications are not routinely prescribed in clinical practice [<xref ref-type="bibr" rid="ref2">2</xref>,<xref ref-type="bibr" rid="ref5">5</xref>]. This reluctance is primarily driven by concerns over potential side effects, such as hypotension and bradycardia, which may introduce additional complications for surgical patients [<xref ref-type="bibr" rid="ref2">2</xref>]. Therefore, identifying patients with a high likelihood of developing postoperative AF to initiate tailored prophylactic therapy and implement targeted monitoring during the perioperative period is crucial for effective management.</p><p>Efforts to develop or assess risk scores for predicting postoperative AF have faced challenges, as these systems have been statistically weak and inconclusive, failing to be widely accepted [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref7">7</xref>]. However, advances in artificial intelligence (AI) may improve postoperative AF prediction. Numerous studies have demonstrated the successful application of AI to electrocardiograms (ECGs), the electrical fingerprints of the heart [<xref ref-type="bibr" rid="ref8">8</xref>-<xref ref-type="bibr" rid="ref12">12</xref>]. As a noninvasive test routinely performed throughout the perioperative period, the ECG presents a unique opportunity for additional risk stratification. If postoperative AF risk could be further assessed from these widely available ECGs, it would offer significant clinical value.</p><p>Studies have shown that deep learning (ie, AI) applied to 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) [<xref ref-type="bibr" rid="ref13">13</xref>]. AF is often paroxysmal and asymptomatic and thus frequently goes undetected in its early stages. However, even subclinical AF represents a major risk factor for stroke, highlighting the importance of early detection. In this context, the AI-ECG-AF model has important implications for AF screening. AI-ECG-AF can be understood as a model that identifies subtle ECG patterns potentially associated with structural substrates for AF, thereby serving as a tool for detecting preexisting atrial vulnerability [<xref ref-type="bibr" rid="ref13">13</xref>].</p><p>In patients undergoing cardiac surgery, those with underlying atrial vulnerabilities are at elevated risk of developing postoperative AF when exposed to the stressors of cardiac surgery [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref14">14</xref>,<xref ref-type="bibr" rid="ref15">15</xref>]. Therefore, the AI-ECG-AF model may hold significant value in identifying individuals at increased risk of postoperative AF in this population.</p><p>In this study, we evaluated whether the AI-ECG-AF model score could serve as an independent risk factor for postoperative AF following cardiac surgery. Furthermore, we evaluated its additive or synergistic predictive value when combined with other risk factors or an existing postoperative AF prediction tool. In doing so, we explored the potential applicability of the AI-ECG-AF model as a novel biomarker for postoperative AF after cardiac surgery, leveraging its ability to detect latent atrial vulnerability. By capturing electrophysiological vulnerability that may not be reflected in conventional clinical scores, the AI-ECG-AF model may function as a noninvasive biomarker for preoperative risk stratification and improve the accuracy of existing preoperative risk prediction strategies.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Ethical Considerations</title><p>The Department of Anesthesiology at Severance Hospital in Seoul, South Korea, has established a cardiac surgery registry that compiles extensive perioperative clinical data. The hospital&#x2019;s institutional review board approved this study (approval numbers: 4-2022-1506 and 4-2024-1515), waived the requirement for informed consent because only anonymized data were used retrospectively, and limited data usage to the approved timeframe. All data were de-identified before analysis in accordance with institutional anonymization protocols, and no personally identifiable information was accessible to the investigators. As this study analyzed retrospective anonymized registry data without direct participant involvement, no financial or other compensation was provided to participants. No images or supplementary materials contain identifiable individuals.</p></sec><sec id="s2-2"><title>Cardiac Surgery Cohort Data</title><p>Adult patients (age &#x2265;19 y) who underwent cardiac surgery at Severance Hospital between December 2018 and December 2023 were included (<xref ref-type="fig" rid="figure1">Figure 1</xref>). For patients who underwent multiple surgeries during this period, only the first surgery was included. Preoperative clinical data reflecting patient status, including demographics, medical history, laboratory results, physiological measurements, medications, and type of surgery were collected from the institutional cardiac surgery registry (Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). Variables with missing rates exceeding 5% in the entire cohort were excluded, and the remaining missing data were handled using mean imputation.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Flow of the study and the datasets. (A) The overall study flow involves labeling non-AF ECGs for that history of (or impending) AF, training the AI-ECG-AF model, and applying it to cardiac surgery patients to evaluate whether the AI-ECG-AF model score is an independent risk factor for postoperative AF and assess its additive predictive value beyond existing tools. (B) The AI-ECG-AF model development cohort was derived from a large ECG database containing 5.09 million ECGs from 1.18 million patients. For AI-ECG-AF model development, 4.05 million non-AF ECGs from 1.13 million patients were used for modeling. (C) The cardiac surgery cohort was selected from an institutional registry, with a final cohort of 5204 ECGs from 2266 patients. AF: atrial fibrillation; AI: artificial intelligence; ECG: electrocardiogram.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e77164_fig01.png"/></fig><p>Standard 10-second 12-lead ECGs of these patients were also extracted. AF ECGs were defined as those with an automatic interpretation indicating <italic>atrial fibrillation</italic> or <italic>atrial flutter</italic>. We excluded patients who had an AF ECG recorded before surgery, those with a known history of AF, or those undergoing the MAZE procedure (a surgical treatment for AF). For the remaining patients, only ECGs taken within 30 days before the surgery were included in the analysis. ECGs with automatic interpretations indicating paced rhythms, poor quality, or lead reversals were also excluded. While there is no consensus on the precise definition of postoperative AF [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref16">16</xref>,<xref ref-type="bibr" rid="ref17">17</xref>], we defined it as AF documented by ECG within 30 days after surgery, with this 30-day cutoff being widely used across multiple studies. Patients with first AF observed after this 30-day postoperative period were excluded. A sensitivity analysis was conducted using a 7-day definition for postoperative AF.</p></sec><sec id="s2-3"><title>AI-ECG-AF Model Development</title><p>Our primary objective was to evaluate the AI-ECG-AF model from a clinical perspective, focusing on its utility as a novel predictive biomarker for postoperative AF in patients undergoing cardiac surgery. Accordingly, we developed the AI-ECG-AF model using a methodology similar to that of a previous study [<xref ref-type="bibr" rid="ref13">13</xref>], with some modifications, and concentrated our efforts on its clinical evaluation. The details of the model development are described below.</p><p>The standard 12-lead ECG database from Severance Hospital contained 5.1 million ECGs from 1.2 million patients from 1993 to 2022 (<xref ref-type="fig" rid="figure1">Figure 1</xref>). The ECGs were utilized in their original form as raw 1D waveform time-series data. All non-AF ECGs were used for modeling. We classified patients into two groups: patients positive for AF, who had at least one AF ECG recorded in the database, and patients negative for AF, who had no AF ECG recorded in the database and had no diagnostic codes for AF in their electronic medical record. Patients who had an AF diagnosis code but lacked ECG confirmation were excluded from the analysis to avoid ambiguity (referred to as <italic>unverified AF</italic>). ECGs with automatic interpretations indicating paced rhythms, poor quality, or lead reversals were excluded. ECGs from patients included in the cardiac surgery cohort were also excluded to prevent data leakage.</p><p>For patients positive for AF, we used non-AF ECGs recorded starting from 31 days before their first AF ECG and onward. Structural changes associated with AF would be present before the first recorded AF episode, so while we could use ECGs from before the first AF ECG, we chose a relatively short time interval as a conservative measure to avoid using ECGs before any structural changes developed, as done in the previous study [<xref ref-type="bibr" rid="ref13">13</xref>]. For patients negative for AF, all their non-AF ECGs were used for modeling.</p><p>We used the 1D EfficientNet-B0 architecture (Figure S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) [<xref ref-type="bibr" rid="ref18">18</xref>]. Given the extensive size of the dataset, we utilized only the middle 5 seconds of the 10-second ECG (ie, from 2.5 to 7.5 s). The ECGs, originally at 250 or 500 Hz, were standardized to 250 Hz by downsampling the 500 Hz. Each lead was z-normalized (mean=0, standard deviation=1). No additional signal filtering was applied. Since four of the six limb leads can be linearly derived from any two leads using the Einthoven law and the Goldberger equation [<xref ref-type="bibr" rid="ref19">19</xref>,<xref ref-type="bibr" rid="ref20">20</xref>], we used eight leads (I, II, V1-V6) as input. We randomly split the dataset at a 6:2:2 ratio (stratified) into training, validation, and test sets while ensuring no individual overlap. During each training epoch, we balanced classes by randomly oversampling the minority class and undersampling the majority class to equal sizes while maintaining the original dataset size. No such resampling was applied to the validation or test sets, which were kept in their original distributions. Hyperparameter optimization was performed through a grid search based on learning rate, batch size, and weight decay. We used the Adam optimizer, and a learning rate of 0.003, batch size of 512, and weight decay of 0 were ultimately selected. A learning rate halving strategy was applied, reducing the learning rate by half if the validation loss from the validation set did not improve for 5 consecutive epochs. The model was trained on the training set, with early stopping applied if the validation loss from the validation set did not improve for up to 15 consecutive epochs. The final evaluation was conducted on the test set. The model produces an output score ranging from 0 to 1, where higher scores indicate a greater likelihood of AF as predicted by the model.</p></sec><sec id="s2-4"><title>Objectives</title><p>Our first objective was to verify whether the AI-ECG-AF model score is an independent risk factor for postoperative AF in cardiac surgery patients. We applied the AI-ECG-AF model to the ECGs from our cardiac surgery cohort to obtain prediction outputs. We performed multivariable logistic regression with postoperative AF as the dependent variable and the AI-ECG-AF model score along with clinical variables as independent variables. To ensure the robustness of results, we conducted the logistic regression analyses with two sets of clinical variables.</p><p>In the first logistic regression, we included both the AI-ECG-AF model score and clinical variables from the POAF score [<xref ref-type="bibr" rid="ref7">7</xref>], an existing postoperative AF prediction tool, which comprised age category (&#x003C;60, &#x2265;60 and &#x003C;70, &#x2265;70 and &#x003C;80, and &#x2265;80), chronic obstructive pulmonary disease (COPD), estimated glomerular filtration rate &#x003C;15 mL/min, emergency surgery, preoperative intra-aortic balloon pump/extracorporeal membrane oxygenation/ventricular assist device, left ventricular ejection fraction &#x003C;30%, and valve surgery as independent variables.</p><p>In the second logistic regression, we utilized all preoperative clinical data from the institutional cardiac surgery registry (Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) and performed stepwise logistic regression with backward elimination, incorporating the AI-ECG-AF model score alongside clinical variables as independent variables. The resulting postoperative AF prediction score was termed the AI-enhanced post-cardiac-operative AF (AI-COAF) score.</p><p>Subgroup analyses by sex, age (&#x003C;65 and &#x2265;65 y), and type of surgery (valve and nonvalve) were additionally performed for both logistic regression analyses. For the second logistic regression, the subgroup analyses utilized the predetermined dependent variables identified during the backward selection process to ensure consistency.</p><p>Our second objective was to evaluate the additive or synergistic predictive value of the AI-ECG-AF model score when combined with other risk factors or the existing POAF score [<xref ref-type="bibr" rid="ref7">7</xref>]. We compared the AI-ECG-AF&#x2019;s predictive ability (via the area under the receiver operating characteristic curve [AUROC] and average precision) with the POAF score and tested if adding the AI-ECG-AF score to the POAF score (AI-POAF [artificial-intelligence&#x2013;augmented postoperative atrial fibrillation] score=POAF score+&#x03B1;&#x00D7;AI-ECG-AF score) improved predictions. We found the optimal weighting factor (<italic>&#x03B1;</italic>=4) using data from December 2018 to December 2021 (derivation dataset). All model comparisons used data from January 2022 to December 2023 (comparison dataset). We also retrained the AI-POAF score using the predetermined dependent variables on the derivation dataset and compared its performance with other models on the comparison dataset. Performance metrics, including accuracy, sensitivity, specificity, positive predictive value, negative predictive value, and the <italic>F</italic><sub>1</sub>-score, were calculated in the comparison dataset using the threshold that maximized the Youden J index in the derivation dataset.</p></sec><sec id="s2-5"><title>Statistical Analyses and Software</title><p>Normality of continuous variables was assessed with the Shapiro-Wilk test. Since no continuous variables were normally distributed, Mann-Whitney <italic>U</italic> tests were used for comparisons. Categorical variables were compared using the <italic>&#x03C7;</italic><sup>2</sup> test. The determination of 95% CI of AUROC and AUROC comparisons used the Delong&#x2019;s method (paired and two-sided) [<xref ref-type="bibr" rid="ref21">21</xref>]. Statistical significance was set at <italic>P</italic>&#x003C;.05.</p><p>Model training and evaluation were performed in Python (version 3.10.6) using Pytorch (version 2.0.1) and Scikit-learn (version 1.3.0), while statistical analyses were conducted with the TableOne package (version 0.8.0). Regression analyses were performed in R (version 4.0.4).</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Performance of the AI-ECG-AF Model</title><p>For AI-ECG-AF development, 4.05 million non-AF ECGs from 1.13 million patients were used for modeling (<xref ref-type="fig" rid="figure1">Figure 1</xref>). Within this dataset, a subset of 0.61 million ECGs, corresponding to 0.04 million patients, was labeled as positive for AF, while the remaining 3.45 million ECGs, derived from 1.09 million patients, were categorized as negative for AF. Among all the ECGs included in the AI-ECG-AF development process, the average age at the time of measurement was 60.3 years, with a standard deviation of 10.3 years. Additionally, 55.3% of the ECGs in the dataset were recorded from male patients. In terms of performance, the AI-ECG-AF model achieved an AUROC of 0.901, with a 95% CI ranging from 0.900 to 0.902, for identifying the electrocardiographic signature of AF in non-AF ECGs in the test set of the AI-ECG-AF development cohort (<xref ref-type="fig" rid="figure2">Figure 2</xref>). The fully developed AI-ECG-AF model, along with comprehensive instructions detailing its usage, has been made entirely accessible to the public through our dedicated online repository [<xref ref-type="bibr" rid="ref22">22</xref>].</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>ROC curve of the AI-ECG-AF model in the test set of its development cohort. The AI-ECG-AF model achieved an AUROC of 0.901 (95% CI 0.900&#x2010;0.902) for identifying the electrocardiographic signature of AF in non-AF ECGs in the test set of the AI-ECG-AF development cohort. AF: atrial fibrillation; AI: artificial intelligence; AUROC: area under the receiver operating characteristics curve; ECG: electrocardiogram; ROC: receiver operating characteristic.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e77164_fig02.png"/></fig></sec><sec id="s3-2"><title>Dataset Characteristics</title><p>A total of 5204 ECGs obtained from a cohort of 2266 patients who had undergone cardiac surgery were included in the final analysis (<xref ref-type="table" rid="table1">Table 1</xref> and <xref ref-type="fig" rid="figure1">Figure 1</xref>). Patients with postoperative AF (1815 ECGs from 763 patients) had a lower proportion of males (66.7% [1210/1815] vs 70.5% [2390/3389], <italic>P</italic>=.005), were older (&#x2265;80 y: 8.8% [159/1815] vs 3.2% [109/3389]; 70&#x2010;79 y: 40.1% [727/1815] vs 27.1% [919/3389]; <italic>P</italic>&#x003C;.001), had a higher prevalence of COPD (7.6% [138/1815] vs 3.3% [112/3389], <italic>P</italic>&#x003C;.001), a higher rate of valve surgery (47.7% [865/1815] vs 41.5% [1405/3389], <italic>P</italic>&#x003C;.001), and higher POAF score (median [IQR]: 2 [1-3] vs 2 [1-2], <italic>P</italic>&#x003C;.001), and AI-ECG-AF model scores (median [IQR]: 0.553 [0.313&#x2010;0.763] vs 0.346 [0.154&#x2010;0.601], <italic>P</italic>&#x003C;.001) compared to those who were negative for postoperative AF (3389 ECGs from 1503 patients). The remaining preoperative clinical characteristics from the institutional cardiac surgery registry are summarized in Table S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. Figure S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> provides a visual representation of the incidence of POAF across different postoperative days, showing that the highest incidence occurred between postoperative days 1 and 4.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Patient characteristics.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="middle"/><td align="left" valign="middle">Postoperative AF<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup> negative (n=3389)</td><td align="left" valign="middle">Postoperative AF positive (n=1815)</td><td align="left" valign="middle"><italic>P</italic> value</td></tr></thead><tbody><tr><td align="left" valign="middle">Number of patients, n</td><td align="left" valign="top">1503</td><td align="left" valign="top">763</td><td align="left" valign="middle"/></tr><tr><td align="left" valign="middle">Sex (male), n (%)</td><td align="left" valign="top">2390 (70.5)</td><td align="left" valign="top">1210 (66.7)</td><td align="left" valign="top">.005</td></tr><tr><td align="left" valign="middle">Age category, n (%)</td><td align="left" valign="middle"/><td align="left" valign="middle"/><td align="left" valign="middle">&#x003C;.001</td></tr><tr><td align="left" valign="middle"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;60 years</td><td align="left" valign="top">1269 (37.4)</td><td align="left" valign="top">318 (17.5)</td><td align="left" valign="middle"/></tr><tr><td align="left" valign="middle"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>60 to 69 years</td><td align="left" valign="top">1092 (32.2)</td><td align="left" valign="top">611 (33.7)</td><td align="left" valign="middle"/></tr><tr><td align="left" valign="middle"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>70 to 79 years</td><td align="left" valign="top">919 (27.1)</td><td align="left" valign="top">727 (40.1)</td><td align="left" valign="middle"/></tr><tr><td align="left" valign="middle"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>80 years</td><td align="left" valign="top">109 (3.2)</td><td align="left" valign="top">159 (8.8)</td><td align="left" valign="middle"/></tr><tr><td align="left" valign="middle">COPD<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup>, n (%)</td><td align="left" valign="top">112 (3.3)</td><td align="left" valign="top">138 (7.6)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="middle">eGFR<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup> &#x003C;15 mL/min, n (%)</td><td align="left" valign="top">203 (6.)</td><td align="left" valign="top">130 (7.2)</td><td align="left" valign="top">.112</td></tr><tr><td align="left" valign="middle">Emergency surgery, n (%)</td><td align="left" valign="top">108 (3.2)</td><td align="left" valign="top">49 (2.7)</td><td align="left" valign="top">.371</td></tr><tr><td align="left" valign="middle">Preoperative IABP<sup><xref ref-type="table-fn" rid="table1fn4">d</xref></sup>/ECMO<sup><xref ref-type="table-fn" rid="table1fn5">e</xref></sup>/VAD<sup><xref ref-type="table-fn" rid="table1fn6">f</xref></sup>, n (%)</td><td align="left" valign="top">43 (1.3)</td><td align="left" valign="top">28 (1.5)</td><td align="left" valign="top">.492</td></tr><tr><td align="left" valign="middle">LVEF<sup><xref ref-type="table-fn" rid="table1fn7">g</xref></sup> &#x003C;30%, n (%)</td><td align="left" valign="top">241 (7.1)</td><td align="left" valign="top">150 (8.3)</td><td align="left" valign="top">.147</td></tr><tr><td align="left" valign="middle">Valve surgery, n (%)</td><td align="left" valign="top">1405 (41.5)</td><td align="left" valign="top">865 (47.7)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="middle">POAF<sup><xref ref-type="table-fn" rid="table1fn8">h</xref></sup> score, median [IQR<sup><xref ref-type="table-fn" rid="table1fn9">i</xref></sup>]</td><td align="left" valign="top">2 [1 &#x2013; 2]</td><td align="left" valign="top">2 [1 &#x2013; 3]</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="middle">AI<sup><xref ref-type="table-fn" rid="table1fn10">j</xref></sup>-ECG<sup><xref ref-type="table-fn" rid="table1fn11">k</xref></sup>-AF<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup> model score, median [IQR]</td><td align="left" valign="top">0.346 [0.154&#x2010;0.601]</td><td align="left" valign="top">0.553 [0.313&#x2010;0.763]</td><td align="left" valign="top">&#x003C;.001</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>AF: atrial fibrillation.</p></fn><fn id="table1fn2"><p><sup>b</sup>COPD: chronic obstructive pulmonary disease.</p></fn><fn id="table1fn3"><p><sup>c</sup>eGFR: estimated glomerular filtration rate.</p></fn><fn id="table1fn4"><p><sup>d</sup>IABP: intra-aortic balloon pump.</p></fn><fn id="table1fn5"><p><sup>e</sup>ECMO: extracorporeal membrane oxygenation.</p></fn><fn id="table1fn6"><p><sup>f</sup>VAD: ventricular assist device.</p></fn><fn id="table1fn7"><p><sup>g</sup>LVEF: left ventricular ejection fraction.</p></fn><fn id="table1fn8"><p><sup>h</sup>POAF: postoperative atrial fibrillation.</p></fn><fn id="table1fn9"><p><sup>i</sup>IQR: interquartile range.</p></fn><fn id="table1fn10"><p><sup>j</sup>AI: artificial intelligence.</p></fn><fn id="table1fn11"><p><sup>k</sup>ECG: electrocardiogram.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-3"><title>Regression Analyses Results</title><p><xref ref-type="fig" rid="figure3">Figure 3</xref> shows the results of the logistic regression analyses. To facilitate a more intuitive interpretation, the AI-ECG-AF model scores, originally on a scale from 0 to 1, were rescaled to a range of 0 to 10 by multiplying by ten. This adjustment allows the odds ratios displayed in <xref ref-type="fig" rid="figure3">Figure 3</xref> to represent the change in odds associated with a 10% absolute increase in the AI-ECG-AF model score after accounting for other relevant clinical variables.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Adjusted odds ratios per 10% absolute increase in AI-ECG-AF model score. To facilitate a more intuitive interpretation, the AI-ECG-AF model scores, originally on a scale from 0 to 1, were rescaled to a range of 0 to 10 by multiplying by ten. As a result, the odds ratios for the AI-ECG-AF model scores now reflect the change in odds associated with a 10% absolute increase in the AI-ECG-AF model score after adjusting for other clinical variables. Logistic regression analysis 1 was adjusted for variables included in the POAF score. Logistic regression analysis 2 was adjusted for variables extracted from the institutional cardiac surgery registry, as detailed in Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>, with variables selected using stepwise logistic regression with backward elimination. OR: odds ratio; POAF: postoperative atrial fibrillation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e77164_fig03.png"/></fig><p>After adjusting for the variables included in the POAF score, a 10% absolute increase in the AI-ECG-AF model score was found to be associated with a 19.7% rise in the odds of developing postoperative AF (95% CI 16.9%&#x2010;22.6%). The AI-ECG-AF model score was identified as an independent risk factor for postoperative AF, not only when analyzing the entire patient cohort but also consistently across all demographic and surgical subgroups. A comprehensive list of odds ratios for all analyzed variables is provided in Table S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p><p>Similarly, after adjusting for variables extracted from the institutional cardiac surgery registry, which were selected using stepwise logistic regression with backward elimination, a 10% absolute increase in the AI-ECG-AF model score was associated with a 20.9% rise in the odds of developing postoperative AF (95% CI 17.8%&#x2010;24.2%). The AI-ECG-AF model score remained an independent risk factor for postoperative AF in the entire cohort as well as across all demographic and surgical subgroups. The odds ratios for all variables are provided in Table S4 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p><p>To further assess the robustness of these findings, a sensitivity analysis was performed using a more stringent 7-day definition for postoperative AF. In this analysis, an additional 188 ECGs from 72 patients, who had their first recorded AF episode occurring beyond the initial 7-day postoperative period but within 30 days, were excluded. The AI-ECG-AF model score remained a significant independent risk factor for postoperative AF across both regression models, with adjusted odds ratios for AI-ECG-AF model score&#x00D7;10 of 1.200 (95% CI 1.171&#x2010;1.231) and 1.221 (95% CI 1.188&#x2010;1.254), respectively (Figure S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). Furthermore, the association remained consistent across all demographic and surgical subgroups.</p></sec><sec id="s3-4"><title>Predictive Performance for Postoperative Atrial Fibrillation</title><p><xref ref-type="fig" rid="figure4">Figure 4</xref> shows the ROC and precision&#x2013;recall curves of the models for predicting postoperative AF. The AUROCs were 0.643, 0.644, 0.680, and 0.710 for the POAF score, AI-ECG-AF model score, AI-POAF score, and AI-COAF score, respectively. According to the Delong test, both the AI-POAF score and AI-COAF score demonstrated significantly higher AUROCs than the POAF score (both <italic>P</italic>&#x003C;.001), whereas there was no statistically significant difference between the POAF score and the AI-ECG-AF model score (<italic>P</italic>=.927). The respective average precisions were 0.429, 0.430, 0.489, and 0.513. <xref ref-type="table" rid="table2">Table 2</xref> shows the performance at the threshold determined at maximum Youden J index.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>ROC and PR curves of the models in the comparison dataset. AUROC comparisons: POAF score versus AI-ECG-AF model score (<italic>P</italic>=.927), POAF score versus AI-POAF score (<italic>P</italic>&#x003C;.001), and POAF score versus AI-COAF score (<italic>P</italic>&#x003C;.001). AF: atrial fibrillation; AI: artificial intelligence; AI-COAF score: AI-enhanced post-cardiac-operative AF score; AP: average precision; AUROC: area under the receiver operating characteristic curve; ECG: electrocardiogram; POAF: postoperative atrial fibrillation; PR: precision-recall; ROC: receiver operating characteristic.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e77164_fig04.png"/></fig><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Performance of the models at maximum Youden J index.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Accuracy</td><td align="left" valign="bottom">Sensitivity</td><td align="left" valign="bottom">Specificity</td><td align="left" valign="bottom">PPV<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup></td><td align="left" valign="bottom">NPV<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score</td></tr></thead><tbody><tr><td align="left" valign="top">POAF<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup> score</td><td align="left" valign="top">0.569</td><td align="left" valign="top">0.692</td><td align="left" valign="top">0.511</td><td align="left" valign="top">0.398</td><td align="left" valign="top">0.780</td><td align="left" valign="top">0.506</td></tr><tr><td align="left" valign="top">AI<sup><xref ref-type="table-fn" rid="table2fn4">d</xref></sup>-ECG<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup>-AF<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup> model score</td><td align="left" valign="top">0.582</td><td align="left" valign="top">0.701</td><td align="left" valign="top">0.526</td><td align="left" valign="top">0.409</td><td align="left" valign="top">0.790</td><td align="left" valign="top">0.517</td></tr><tr><td align="left" valign="top">AI-POAF<sup><xref ref-type="table-fn" rid="table2fn7">g</xref></sup> score</td><td align="left" valign="top">0.649</td><td align="left" valign="top">0.557</td><td align="left" valign="top">0.693</td><td align="left" valign="top">0.459</td><td align="left" valign="top">0.770</td><td align="left" valign="top">0.503</td></tr><tr><td align="left" valign="top">AI-COAF score</td><td align="left" valign="top">0.663</td><td align="left" valign="top">0.646</td><td align="left" valign="top">0.671</td><td align="left" valign="top">0.479</td><td align="left" valign="top">0.802</td><td align="left" valign="top">0.550</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>PPV: positive predictive value.</p></fn><fn id="table2fn2"><p><sup>b</sup>NPV: negative predictive value.</p></fn><fn id="table2fn3"><p><sup>c</sup>POAF: postoperative atrial fibrillation.</p></fn><fn id="table2fn4"><p><sup>d</sup>AI: artificial intelligence.</p></fn><fn id="table2fn5"><p><sup>e</sup>ECG: electrocardiogram.</p></fn><fn id="table2fn6"><p><sup>f</sup>AF: atrial fibrillation.</p></fn><fn id="table2fn7"><p><sup>g</sup>AI-COAF score: AI-enhanced post-cardiac-operative AF score.</p></fn></table-wrap-foot></table-wrap><p>For the sensitivity analysis using a 7-day definition for postoperative AF, the AUROCs were 0.647, 0.641, 0.678, and 0.706 for the POAF score, AI-ECG-AF model score, AI-POAF score, and AI-COAF score, respectively (Figure S4 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). Consistent with the primary analysis, the Delong test indicated that the AUROCs of the AI-POAF score and AI-COAF score remained significantly higher than that of the POAF score (both <italic>P</italic>&#x003C;.001), while no significant difference was observed between the POAF score and the AI-ECG-AF model score (<italic>P</italic>=.692).</p></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>In this study, we evaluated the potential of the AI-ECG-AF model as a predictor for postoperative AF in cardiac surgery patients. 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. We demonstrated that the AI-ECG-AF model score provides additive or synergistic predictive value when integrated with an existing postoperative AF prediction tool or other risk factors: the AUROC of the existing POAF score was 0.643; adding the AI-ECG-AF model score increased it to 0.680 (<italic>P</italic>&#x003C;.001), and combining the AI-ECG-AF model score with other risk factors raised it to 0.710 (<italic>P</italic>&#x003C;.001).</p></sec><sec id="s4-2"><title>Comparison to Prior Work</title><p>Attempts to predict postoperative AF have faced significant challenges. Various studies have evaluated various scoring systems, originally developed for different purposes, for predicting postoperative AF in cardiac surgery patients [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. For example, the European System for Cardiac Operative Risk Evaluation (for predicting mortality after cardiac surgery) [<xref ref-type="bibr" rid="ref24">24</xref>], the Congestive Heart Failure, Hypertension, Age&#x2265;75 years, Diabetes Mellitus, Stroke&#x2013;Vascular Disease, Age 65-74 years, and Sex Category Score (for predicting stroke risk in AF patients) [<xref ref-type="bibr" rid="ref25">25</xref>], and the Hypertension, Age&#x2265;75 years, Transient Ischemic Attack or Stroke, Chronic Obstructive Pulmonary Disease, and Heart Failure Score (for predicting progression from paroxysmal to sustained AF) [<xref ref-type="bibr" rid="ref26">26</xref>] have been evaluated for predicting postoperative AF in cardiac surgery patients. However, these scoring systems have only demonstrated moderate performance at best [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. Although the POAF score was specifically developed for predicting postoperative AF in cardiac surgery patients [<xref ref-type="bibr" rid="ref7">7</xref>], it similarly showed only moderate performance and has not been widely adopted in clinical practice or subsequent research [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. There remains a clear unmet need for more effective postoperative AF risk stratification in cardiac surgery patients, and modern approaches such as AI may offer better solutions.</p></sec><sec id="s4-3"><title>Clinical Implications</title><p>AI applications to ECG, the electrical fingerprint of the heart, are opening up new possibilities. There is growing evidence that advanced AI techniques with deep convolutional neural networks are capable of detecting subtle signals and patterns from ECGs that do not fit traditional knowledge and are unrecognizable by the human eye, enabling prediction of diseases that were previously unpredictable with ECGs [<xref ref-type="bibr" rid="ref8">8</xref>-<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref27">27</xref>,<xref ref-type="bibr" rid="ref28">28</xref>]. The AI-ECG-AF model exemplifies this advancement, as it detects the electrocardiographic signature of AF present in non-AF ECGs [<xref ref-type="bibr" rid="ref13">13</xref>]. This has particularly important implications because AF is often paroxysmal and therefore difficult to capture during ECG screening, yet it remains a major risk factor for stroke that requires anticoagulation [<xref ref-type="bibr" rid="ref13">13</xref>,<xref ref-type="bibr" rid="ref29">29</xref>]. There is robust evidence supporting the real-world effectiveness of this model, with a prospective trial demonstrating that AI-ECG-AF model-guided targeted screening of AF with ECGs resulted in a significant increase in AF detection rates, particularly among those classified as high risk by the model [<xref ref-type="bibr" rid="ref30">30</xref>].</p><p>AI-ECG-AF can be understood as a model that identifies subtle ECG patterns potentially associated with structural substrates for AF, such as atrial fibrotic changes related to aging [<xref ref-type="bibr" rid="ref13">13</xref>,<xref ref-type="bibr" rid="ref31">31</xref>]. Cardiac surgery induces significant stress on the heart, including inflammation, fluid shifts, and changes in the autonomic nervous system, all of which can further exacerbate preexisting atrial vulnerabilities and increase the likelihood of developing postoperative AF [<xref ref-type="bibr" rid="ref3">3</xref>,<xref ref-type="bibr" rid="ref14">14</xref>,<xref ref-type="bibr" rid="ref15">15</xref>,<xref ref-type="bibr" rid="ref32">32</xref>]. The findings from our study suggest that the AI-ECG-AF model is capable of identifying these underlying predispositions in patients undergoing cardiac surgery, allowing for the recognition of individuals at heightened risk for postoperative AF.</p><p>We demonstrated that the AI-ECG-AF model was an independent risk factor for postoperative AF and enhanced the predictive performance of conventional clinical scores. Unlike existing tools such as the POAF score&#x2014;which are derived from clinical risk factors&#x2014;the AI-ECG-AF model offers complementary information by capturing atrial electrophysiological vulnerability embedded in the ECG. When used in combination, the two scores provided significantly improved prediction, underscoring the potential of the AI-ECG-AF score as a novel biomarker that complements traditional clinical models and supports the implementation of more targeted prophylactic interventions and perioperative monitoring strategies. Notably, the AI-ECG-AF model, though originally developed in a general patient population, demonstrated clinical utility as a predictive biomarker even in the high-risk setting of cardiac surgery, highlighting its potential generalizability. This suggests its broader applicability, including possible integration into preoperative risk assessment protocols across various cardiac conditions. Of note, our results remained consistent irrespective of whether the broader 30-day definition or the more restrictive 7-day definition for postoperative AF was applied.</p><p>In contrast to the previous study that limited its AI-ECG-AF model development to normal sinus rhythm ECGs [<xref ref-type="bibr" rid="ref13">13</xref>], our study incorporated all non-AF ECGs, excluding only those with lead misplacements, artifacts, or artificial pacemakers. We successfully demonstrated that the AI-ECG-AF model could maintain high performance even when processing diverse, heterogeneous ECGs, thus expanding its clinical applicability. Our model was trained on a comprehensive dataset of 4.05 million ECGs from 1.13 million patients, including 0.61 million AF-positive ECGs from 0.04 million patients. This extensive dataset helps minimize overfitting, accounts for broader ECG variability, and enhances the model&#x2019;s generalizability in real-world clinical applications [<xref ref-type="bibr" rid="ref33">33</xref>]. The developed AI-ECG-AF model, along with detailed usage instructions, has been made fully accessible to the public through our online repository [<xref ref-type="bibr" rid="ref22">22</xref>].</p><p>Although multiple studies have demonstrated that amiodarone or beta-blockers can provide a protective effect against postoperative AF following cardiac surgery [<xref ref-type="bibr" rid="ref34">34</xref>,<xref ref-type="bibr" rid="ref35">35</xref>], there remains a lack of conclusive evidence supporting the routine use of these medications in all patients [<xref ref-type="bibr" rid="ref36">36</xref>]. Furthermore, patients who develop postoperative AF are often advised to undergo long-term oral anticoagulation therapy, which has been shown to offer potential benefits in reducing the risk of thromboembolic events [<xref ref-type="bibr" rid="ref37">37</xref>,<xref ref-type="bibr" rid="ref38">38</xref>]. Given these considerations, accurately identifying individuals at an elevated risk of developing postoperative AF is of critical importance, as these patients require close rhythm monitoring not only in the immediate postoperative period but also throughout long-term follow-up. The AI-ECG-AF model may serve as a novel biomarker in recognizing high-risk patients who could potentially benefit from preoperative administration of amiodarone or beta-blockers, in addition to targeted strategies for the prevention of thromboembolic complications. Future studies should also aim to define and validate clinically meaningful thresholds for the AI-based scores evaluated in this study (ie, the AI-ECG-AF, AI-POAF, and AI-COAF scores), incorporating health-economic analyses and expert consensus to balance the benefits of intervention against potential harms, thereby facilitating clinical implementation.</p></sec><sec id="s4-4"><title>Limitations and Future Directions</title><p>This study&#x2019;s findings should be interpreted in light of the following limitations. The study is subject to limitations inherent in its single-center retrospective design. First, as the data were derived from a single institution, the generalizability of our results to other populations or health care settings may be limited. External validation across diverse institutions is warranted to confirm the robustness of our findings. AI-ECG-AF has the advantage of being applicable using ECGs alone, but subtle waveform variations between different ECG machines may affect model performance, potentially necessitating institution-specific fine-tuning. Additionally, differences in population characteristics may require local calibration of composite scores such as AI-POAF or AI-COAF to ensure predictive accuracy. Second, our analysis was limited to cardiac surgery, yet approximately 85% of surgeries are noncardiac, which still show postoperative AF rates of 2%&#x2010;30% [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. Although the mechanisms underlying POAF after noncardiac surgery are multifactorial and not fully defined, systemic inflammation, perioperative sympathetic surges, and other stressors may exacerbate atrial vulnerability and trigger AF [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. Accordingly, AI-ECG-AF may also serve as a risk factor for POAF in this broader surgical population, warranting future investigation. Third, AF was defined based solely on documented episodes in stored standard 12-lead ECGs, so transient AF episodes could have been missed. In particular, AF episodes not recorded in the database&#x2014;such as those detected only on continuous telemetry monitoring&#x2014;or paroxysmal AF episodes occurring transiently in daily life may not have been captured. Such omissions could have influenced both the performance of the AI-ECG-AF model and the evaluation of postoperative AF. Fourth, while perioperative antiarrhythmic medications likely influence postoperative AF, we could not adjust for all such medications due to the retrospective nature of the study and the heterogeneity in medication protocols. Some antiarrhythmic medications, such as preoperative beta-blockers, were systematically recorded in our institutional registry and included in certain analyses. However, comprehensive data on all antiarrhythmic drugs were unavailable, and accurate retrospective collection was infeasible. Furthermore, detailed information such as dosage, timing, and route of administration was not reliably captured. Fifth, although AI-ECG-AF was first introduced several years ago [<xref ref-type="bibr" rid="ref13">13</xref>], our model development did not pursue novel advances in architecture or feature extraction. Instead, we focused on clinical evaluation, assessing its utility as a predictive biomarker for POAF in cardiac surgery patients. Despite using an older architecture (EfficientNet-B0) and a standard pipeline, the model achieved an AUROC exceeding 0.9 in the development test set&#x2014;deemed sufficient for clinical validation. Future studies could explore more advanced architectures or innovative techniques to enhance model performance, potentially leading to even stronger results in clinical validation. Sixth, our logistic regression analyses included multiple ECGs per patient, but we treated each as an independent observation, which may have led to underestimated standard errors and overstated statistical significance. Statistical techniques that explicitly account for within-patient correlation were not applied. Nonetheless, the large sample size and consistent subgroup findings support the robustness of our results. Finally, the AI-ECG-AF model was not trained to distinguish between different AF phenotypes (eg, paroxysmal vs persistent), and future models may be improved by incorporating more granular AF phenotype data.</p></sec><sec id="s4-5"><title>Conclusions</title><p>In conclusion, 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 with other risk factors. By capturing atrial electrophysiological vulnerability not reflected in conventional clinical scores, the AI-ECG-AF model may function as a noninvasive biomarker for preoperative risk stratification for postoperative AF prediction in cardiac surgery patients, potentially enabling health care providers to initiate tailored prophylactic therapy and implement targeted monitoring during the perioperative period.</p></sec></sec></body><back><notes><sec><title>Funding</title><p>This research was supported by a grant of the MD-PhD/Medical Scientist Training Program through the Korea Health Industry Development Institute (KHIDI), funded by the Ministry of Health &#x0026; Welfare, Republic of Korea. This research was supported by a grant of the Korea Health Technology R&#x0026;D Project through the KHIDI, funded by the Ministry of Health &#x0026; Welfare, Republic of Korea (grant number: RS-2022-KH125153). This study was supported by the Severance Hospital Research Fund for Clinical Excellence (C-2024&#x2010;0019). The funders had no role in the study design, data collection, analysis, interpretation, manuscript preparation, or decision to submit for publication.</p></sec><sec><title>Data Availability</title><p>We have released the weights of our AI-ECG-AF (Artificial Intelligence-Electrocardiogram-Atrial Fibrillation) model, along with usage instructions [<xref ref-type="bibr" rid="ref22">22</xref>]. Our code is available at [<xref ref-type="bibr" rid="ref41">41</xref>]. Data from Severance Hospital contain potentially identifying or sensitive patient information and are therefore only accessible to researchers who fulfill the confidentiality requirements stipulated by the Institutional Review Board. For further details, please contact the corresponding authors.</p></sec></notes><fn-group><fn fn-type="con"><p>Conceptualization: CH, DY, SS</p><p>Data curation: SS, CH</p><p>Formal analysis: CH, JWP, SS</p><p>Funding acquisition: DY, SS, CH</p><p>Methodology: CH, JWP, SS, DY, HNP</p><p>Project administration: DY, SS</p><p>Resources: DY, SS, HNP</p><p>Supervision: DY, SS, HNP</p><p>Visualization: CH</p><p>Writing &#x2013; original draft: CH, JWP</p><p>Writing &#x2013; review &#x0026; editing: CH, JWP, SS, DY, HNP</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">AF</term><def><p>atrial fibrillation</p></def></def-item><def-item><term id="abb2">AI</term><def><p>artificial intelligence</p></def></def-item><def-item><term id="abb3">AI-COAF</term><def><p>artificial-intelligence&#x2013;enhanced post-cardiac-operative atrial fibrillation score</p></def></def-item><def-item><term id="abb4">AI-POAF</term><def><p>artificial-intelligence&#x2013;augmented postoperative atrial fibrillation score</p></def></def-item><def-item><term id="abb5">AUROC</term><def><p>area under the receiver operating characteristic curve</p></def></def-item><def-item><term id="abb6">COPD</term><def><p>chronic obstructive pulmonary disease</p></def></def-item><def-item><term id="abb7">ECG</term><def><p>electrocardiogram</p></def></def-item><def-item><term id="abb8">POAF</term><def><p>postoperative atrial fibrillation (score)</p></def></def-item><def-item><term id="abb9">ROC</term><def><p>receiver operating characteristic (curve)</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gaudino</surname><given-names>M</given-names> </name><name name-style="western"><surname>Di Franco</surname><given-names>A</given-names> </name><name name-style="western"><surname>Rong</surname><given-names>LQ</given-names> </name><name name-style="western"><surname>Piccini</surname><given-names>J</given-names> </name><name name-style="western"><surname>Mack</surname><given-names>M</given-names> </name></person-group><article-title>Postoperative atrial fibrillation: from mechanisms to treatment</article-title><source>Eur Heart J</source><year>2023</year><month>03</month><day>21</day><volume>44</volume><issue>12</issue><fpage>1020</fpage><lpage>1039</lpage><pub-id pub-id-type="doi">10.1093/eurheartj/ehad019</pub-id><pub-id pub-id-type="medline">36721960</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Muehlschlegel</surname><given-names>JD</given-names> </name><name name-style="western"><surname>Burrage</surname><given-names>PS</given-names> </name><name name-style="western"><surname>Ngai</surname><given-names>JY</given-names> </name><etal/></person-group><article-title>Society of Cardiovascular Anesthesiologists/European Association of Cardiothoracic Anaesthetists Practice Advisory for the management of perioperative atrial fibrillation in patients undergoing cardiac surgery</article-title><source>Anesth Analg</source><year>2019</year><month>01</month><volume>128</volume><issue>1</issue><fpage>33</fpage><lpage>42</lpage><pub-id pub-id-type="doi">10.1213/ANE.0000000000003865</pub-id><pub-id pub-id-type="medline">30550473</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dobrev</surname><given-names>D</given-names> </name><name name-style="western"><surname>Aguilar</surname><given-names>M</given-names> </name><name name-style="western"><surname>Heijman</surname><given-names>J</given-names> </name><name name-style="western"><surname>Guichard</surname><given-names>JB</given-names> </name><name name-style="western"><surname>Nattel</surname><given-names>S</given-names> </name></person-group><article-title>Postoperative atrial fibrillation: mechanisms, manifestations and management</article-title><source>Nat Rev Cardiol</source><year>2019</year><month>07</month><volume>16</volume><issue>7</issue><fpage>417</fpage><lpage>436</lpage><pub-id pub-id-type="doi">10.1038/s41569-019-0166-5</pub-id><pub-id pub-id-type="medline">30792496</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Suero</surname><given-names>OR</given-names> </name><name name-style="western"><surname>Ali</surname><given-names>AK</given-names> </name><name name-style="western"><surname>Barron</surname><given-names>LR</given-names> </name><name name-style="western"><surname>Segar</surname><given-names>MW</given-names> </name><name name-style="western"><surname>Moon</surname><given-names>MR</given-names> </name><name name-style="western"><surname>Chatterjee</surname><given-names>S</given-names> </name></person-group><article-title>Postoperative atrial fibrillation (POAF) after cardiac surgery: clinical practice review</article-title><source>J Thorac Dis</source><year>2024</year><month>02</month><day>29</day><volume>16</volume><issue>2</issue><fpage>1503</fpage><lpage>1520</lpage><pub-id pub-id-type="doi">10.21037/jtd-23-1626</pub-id><pub-id pub-id-type="medline">38505057</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><collab>Authors/Task Force Members</collab><name name-style="western"><surname>Jeppsson</surname><given-names>A</given-names> </name><collab>(Co-Chairperson) (Sweden)</collab><etal/></person-group><article-title>2024 EACTS Guidelines on perioperative medication in adult cardiac surgery</article-title><source>Eur J Cardiothorac Surg</source><year>2024</year><month>12</month><day>26</day><volume>67</volume><issue>1</issue><fpage>ezae355</fpage><pub-id pub-id-type="doi">10.1093/ejcts/ezae355</pub-id><pub-id pub-id-type="medline">39385505</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pandey</surname><given-names>A</given-names> </name><name name-style="western"><surname>Okaj</surname><given-names>I</given-names> </name><name name-style="western"><surname>Ichhpuniani</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Risk scores for prediction of postoperative atrial fibrillation after cardiac surgery: a systematic review and meta-analysis</article-title><source>Am J Cardiol</source><year>2023</year><month>12</month><day>15</day><volume>209</volume><fpage>232</fpage><lpage>240</lpage><pub-id pub-id-type="doi">10.1016/j.amjcard.2023.08.161</pub-id><pub-id pub-id-type="medline">37922611</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mariscalco</surname><given-names>G</given-names> </name><name name-style="western"><surname>Biancari</surname><given-names>F</given-names> </name><name name-style="western"><surname>Zanobini</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Bedside tool for predicting the risk of postoperative atrial fibrillation after cardiac surgery: the POAF score</article-title><source>J Am Heart Assoc</source><year>2014</year><month>03</month><day>24</day><volume>3</volume><issue>2</issue><fpage>e000752</fpage><pub-id pub-id-type="doi">10.1161/JAHA.113.000752</pub-id><pub-id pub-id-type="medline">24663335</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Siontis</surname><given-names>KC</given-names> </name><name name-style="western"><surname>Noseworthy</surname><given-names>PA</given-names> </name><name name-style="western"><surname>Attia</surname><given-names>ZI</given-names> </name><name name-style="western"><surname>Friedman</surname><given-names>PA</given-names> </name></person-group><article-title>Artificial intelligence-enhanced electrocardiography in cardiovascular disease management</article-title><source>Nat Rev Cardiol</source><year>2021</year><month>07</month><volume>18</volume><issue>7</issue><fpage>465</fpage><lpage>478</lpage><pub-id pub-id-type="doi">10.1038/s41569-020-00503-2</pub-id><pub-id pub-id-type="medline">33526938</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Attia</surname><given-names>ZI</given-names> </name><name name-style="western"><surname>Harmon</surname><given-names>DM</given-names> </name><name name-style="western"><surname>Behr</surname><given-names>ER</given-names> </name><name name-style="western"><surname>Friedman</surname><given-names>PA</given-names> </name></person-group><article-title>Application of artificial intelligence to the electrocardiogram</article-title><source>Eur Heart J</source><year>2021</year><month>12</month><day>7</day><volume>42</volume><issue>46</issue><fpage>4717</fpage><lpage>4730</lpage><pub-id pub-id-type="doi">10.1093/eurheartj/ehab649</pub-id><pub-id pub-id-type="medline">34534279</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Cho</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Yoon</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kim</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Artificial intelligence-based electrocardiographic biomarker for outcome prediction in patients with acute heart failure: prospective cohort study</article-title><source>J Med Internet Res</source><year>2024</year><month>07</month><day>3</day><volume>26</volume><fpage>e52139</fpage><pub-id pub-id-type="doi">10.2196/52139</pub-id><pub-id pub-id-type="medline">38959500</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lu</surname><given-names>SC</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>GY</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>AS</given-names> </name><etal/></person-group><article-title>Deep learning-based electrocardiogram model (EIANet) to predict emergency department cardiac arrest: development and external validation study</article-title><source>J Med Internet Res</source><year>2025</year><month>02</month><day>28</day><volume>27</volume><fpage>e67576</fpage><pub-id pub-id-type="doi">10.2196/67576</pub-id><pub-id pub-id-type="medline">40053733</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Han</surname><given-names>C</given-names> </name><name name-style="western"><surname>Song</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Lim</surname><given-names>HS</given-names> </name><etal/></person-group><article-title>Automated detection of acute myocardial infarction using asynchronous electrocardiogram signals-preview of implementing artificial intelligence with multichannel electrocardiographs obtained from smartwatches: retrospective study</article-title><source>J Med Internet Res</source><year>2021</year><month>09</month><day>10</day><volume>23</volume><issue>9</issue><fpage>e31129</fpage><pub-id pub-id-type="doi">10.2196/31129</pub-id><pub-id pub-id-type="medline">34505839</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Attia</surname><given-names>ZI</given-names> </name><name name-style="western"><surname>Noseworthy</surname><given-names>PA</given-names> </name><name name-style="western"><surname>Lopez-Jimenez</surname><given-names>F</given-names> </name><etal/></person-group><article-title>An artificial intelligence-enabled ECG algorithm for the identification of patients with atrial fibrillation during sinus rhythm: a retrospective analysis of outcome prediction</article-title><source>Lancet</source><year>2019</year><month>09</month><day>7</day><volume>394</volume><issue>10201</issue><fpage>861</fpage><lpage>867</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(19)31721-0</pub-id><pub-id pub-id-type="medline">31378392</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Echahidi</surname><given-names>N</given-names> </name><name name-style="western"><surname>Pibarot</surname><given-names>P</given-names> </name><name name-style="western"><surname>O&#x2019;Hara</surname><given-names>G</given-names> </name><name name-style="western"><surname>Mathieu</surname><given-names>P</given-names> </name></person-group><article-title>Mechanisms, prevention, and treatment of atrial fibrillation after cardiac surgery</article-title><source>J Am Coll Cardiol</source><year>2008</year><month>02</month><day>26</day><volume>51</volume><issue>8</issue><fpage>793</fpage><lpage>801</lpage><pub-id pub-id-type="doi">10.1016/j.jacc.2007.10.043</pub-id><pub-id pub-id-type="medline">18294562</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Bidar</surname><given-names>E</given-names> </name><name name-style="western"><surname>Bramer</surname><given-names>S</given-names> </name><name name-style="western"><surname>Maesen</surname><given-names>B</given-names> </name><name name-style="western"><surname>Maessen</surname><given-names>JG</given-names> </name><name name-style="western"><surname>Schotten</surname><given-names>U</given-names> </name></person-group><article-title>Post-operative atrial fibrillation - pathophysiology, treatment and prevention</article-title><source>J Atr Fibrillation</source><year>2013</year><volume>5</volume><issue>6</issue><fpage>781</fpage><pub-id pub-id-type="doi">10.4022/jafib.781</pub-id><pub-id pub-id-type="medline">28496829</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Meenashi Sundaram</surname><given-names>D</given-names> </name><name name-style="western"><surname>Vasavada</surname><given-names>AM</given-names> </name><name name-style="western"><surname>Ravindra</surname><given-names>C</given-names> </name><name name-style="western"><surname>Rengan</surname><given-names>V</given-names> </name><name name-style="western"><surname>Meenashi Sundaram</surname><given-names>P</given-names> </name></person-group><article-title>The management of postoperative atrial fibrillation (POAF): a systematic review</article-title><source>Cureus</source><year>2023</year><month>08</month><volume>15</volume><issue>8</issue><fpage>e42880</fpage><pub-id pub-id-type="doi">10.7759/cureus.42880</pub-id><pub-id pub-id-type="medline">37664333</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Perezgrovas-Olaria</surname><given-names>R</given-names> </name><name name-style="western"><surname>Alzghari</surname><given-names>T</given-names> </name><name name-style="western"><surname>Rahouma</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Differences in postoperative atrial fibrillation incidence and outcomes after cardiac surgery according to assessment method and definition: a systematic review and meta-analysis</article-title><source>J Am Heart Assoc</source><year>2023</year><month>10</month><day>3</day><volume>12</volume><issue>19</issue><fpage>e030907</fpage><pub-id pub-id-type="doi">10.1161/JAHA.123.030907</pub-id><pub-id pub-id-type="medline">37776213</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Tan</surname><given-names>M</given-names> </name><name name-style="western"><surname>Le</surname><given-names>QV</given-names> </name></person-group><article-title>EfficientNet: rethinking model scaling for convolutional neural networks</article-title><source>arXiv</source><comment>Preprint posted online on 2019</comment><pub-id pub-id-type="doi">10.48550/ARXIV.1905.11946</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Einthoven</surname><given-names>W</given-names> </name></person-group><article-title>Weiteres &#x00FC;ber das Elektrokardiogramm</article-title><source>Pfl&#x00FC;ger, Arch</source><year>1908</year><month>05</month><volume>122</volume><issue>12</issue><fpage>517</fpage><lpage>584</lpage><pub-id pub-id-type="doi">10.1007/BF01677829</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Goldberger</surname><given-names>E</given-names> </name></person-group><article-title>A simple, indifferent, electrocardiographic electrode of zero potential and a technique of obtaining augmented, unipolar, extremity leads</article-title><source>Am Heart J</source><year>1942</year><month>04</month><volume>23</volume><issue>4</issue><fpage>483</fpage><lpage>492</lpage><pub-id pub-id-type="doi">10.1016/S0002-8703(42)90293-X</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>DeLong</surname><given-names>ER</given-names> </name><name name-style="western"><surname>DeLong</surname><given-names>DM</given-names> </name><name name-style="western"><surname>Clarke-Pearson</surname><given-names>DL</given-names> </name></person-group><article-title>Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach</article-title><source>Biometrics</source><year>1988</year><month>09</month><volume>44</volume><issue>3</issue><fpage>837</fpage><lpage>845</lpage><pub-id pub-id-type="medline">3203132</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="web"><source>Changho8142/AI_ECG_AF_Yonsei</source><access-date>2025-01-20</access-date><publisher-name>Hugging Face</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://huggingface.co/Changho8142/AI_ECG_AF_Yonsei">https://huggingface.co/Changho8142/AI_ECG_AF_Yonsei</ext-link></comment></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>McIntyre</surname><given-names>WF</given-names> </name></person-group><article-title>Post-operative atrial fibrillation after cardiac surgery: challenges throughout the patient journey</article-title><source>Front Cardiovasc Med</source><year>2023</year><volume>10</volume><fpage>1156626</fpage><pub-id pub-id-type="doi">10.3389/fcvm.2023.1156626</pub-id><pub-id pub-id-type="medline">36960472</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Nashef</surname><given-names>SAM</given-names> </name><name name-style="western"><surname>Roques</surname><given-names>F</given-names> </name><name name-style="western"><surname>Sharples</surname><given-names>LD</given-names> </name><etal/></person-group><article-title>EuroSCORE II</article-title><source>Eur J Cardiothorac Surg</source><year>2012</year><month>04</month><volume>41</volume><issue>4</issue><fpage>734</fpage><lpage>744</lpage><pub-id pub-id-type="doi">10.1093/ejcts/ezs043</pub-id><pub-id pub-id-type="medline">22378855</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lip</surname><given-names>GYH</given-names> </name><name name-style="western"><surname>Nieuwlaat</surname><given-names>R</given-names> </name><name name-style="western"><surname>Pisters</surname><given-names>R</given-names> </name><name name-style="western"><surname>Lane</surname><given-names>DA</given-names> </name><name name-style="western"><surname>Crijns</surname><given-names>H</given-names> </name></person-group><article-title>Refining clinical risk stratification for predicting stroke and thromboembolism in atrial fibrillation using a novel risk factor-based approach: the euro heart survey on atrial fibrillation</article-title><source>Chest</source><year>2010</year><month>02</month><volume>137</volume><issue>2</issue><fpage>263</fpage><lpage>272</lpage><pub-id pub-id-type="doi">10.1378/chest.09-1584</pub-id><pub-id pub-id-type="medline">19762550</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>de Vos</surname><given-names>CB</given-names> </name><name name-style="western"><surname>Pisters</surname><given-names>R</given-names> </name><name name-style="western"><surname>Nieuwlaat</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Progression from paroxysmal to persistent atrial fibrillation clinical correlates and prognosis</article-title><source>J Am Coll Cardiol</source><year>2010</year><month>02</month><day>23</day><volume>55</volume><issue>8</issue><fpage>725</fpage><lpage>731</lpage><pub-id pub-id-type="doi">10.1016/j.jacc.2009.11.040</pub-id><pub-id pub-id-type="medline">20170808</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yoon</surname><given-names>D</given-names> </name><name name-style="western"><surname>Jang</surname><given-names>JH</given-names> </name><name name-style="western"><surname>Choi</surname><given-names>BJ</given-names> </name><name name-style="western"><surname>Kim</surname><given-names>TY</given-names> </name><name name-style="western"><surname>Han</surname><given-names>CH</given-names> </name></person-group><article-title>Discovering hidden information in biosignals from patients using artificial intelligence</article-title><source>Korean J Anesthesiol</source><year>2020</year><month>08</month><volume>73</volume><issue>4</issue><fpage>275</fpage><lpage>284</lpage><pub-id pub-id-type="doi">10.4097/kja.19475</pub-id><pub-id pub-id-type="medline">31955546</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Petmezas</surname><given-names>G</given-names> </name><name name-style="western"><surname>Stefanopoulos</surname><given-names>L</given-names> </name><name name-style="western"><surname>Kilintzis</surname><given-names>V</given-names> </name><etal/></person-group><article-title>State-of-the-art deep learning methods on electrocardiogram data: systematic review</article-title><source>JMIR Med Inform</source><year>2022</year><month>08</month><day>15</day><volume>10</volume><issue>8</issue><fpage>e38454</fpage><pub-id pub-id-type="doi">10.2196/38454</pub-id><pub-id pub-id-type="medline">35969441</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Joglar</surname><given-names>JA</given-names> </name><name name-style="western"><surname>Chung</surname><given-names>MK</given-names> </name><name name-style="western"><surname>Armbruster</surname><given-names>AL</given-names> </name><etal/></person-group><article-title>2023 ACC/AHA/ACCP/HRS Guideline for the diagnosis and management of atrial fibrillation: a report of the American College of Cardiology/American Heart Association Joint Committee on clinical practice guidelines</article-title><source>Circulation</source><year>2024</year><month>01</month><day>2</day><volume>149</volume><issue>1</issue><fpage>e1</fpage><lpage>e156</lpage><pub-id pub-id-type="doi">10.1161/CIR.0000000000001193</pub-id><pub-id pub-id-type="medline">38033089</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Noseworthy</surname><given-names>PA</given-names> </name><name name-style="western"><surname>Attia</surname><given-names>ZI</given-names> </name><name name-style="western"><surname>Behnken</surname><given-names>EM</given-names> </name><etal/></person-group><article-title>Artificial intelligence-guided screening for atrial fibrillation using electrocardiogram during sinus rhythm: a prospective non-randomised interventional trial</article-title><source>Lancet</source><year>2022</year><month>10</month><day>8</day><volume>400</volume><issue>10359</issue><fpage>1206</fpage><lpage>1212</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(22)01637-3</pub-id><pub-id pub-id-type="medline">36179758</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Christopoulos</surname><given-names>G</given-names> </name><name name-style="western"><surname>Attia</surname><given-names>ZI</given-names> </name><name name-style="western"><surname>Van Houten</surname><given-names>HK</given-names> </name><etal/></person-group><article-title>Artificial intelligence-electrocardiography to detect atrial fibrillation: trend of probability before and after the first episode</article-title><source>Eur Heart J Digit Health</source><year>2022</year><month>06</month><volume>3</volume><issue>2</issue><fpage>228</fpage><lpage>235</lpage><pub-id pub-id-type="doi">10.1093/ehjdh/ztac023</pub-id><pub-id pub-id-type="medline">36713006</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Bessissow</surname><given-names>A</given-names> </name><name name-style="western"><surname>Khan</surname><given-names>J</given-names> </name><name name-style="western"><surname>Devereaux</surname><given-names>PJ</given-names> </name><name name-style="western"><surname>Alvarez-Garcia</surname><given-names>J</given-names> </name><name name-style="western"><surname>Alonso-Coello</surname><given-names>P</given-names> </name></person-group><article-title>Postoperative atrial fibrillation in non-cardiac and cardiac surgery: an overview</article-title><source>J Thromb Haemost</source><year>2015</year><month>06</month><volume>13 Suppl 1</volume><fpage>S304</fpage><lpage>12</lpage><pub-id pub-id-type="doi">10.1111/jth.12974</pub-id><pub-id pub-id-type="medline">26149040</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ying</surname><given-names>X</given-names> </name></person-group><article-title>An overview of overfitting and its solutions</article-title><source>J Phys: Conf Ser</source><year>2019</year><month>03</month><day>1</day><volume>1168</volume><fpage>022022</fpage><pub-id pub-id-type="doi">10.1088/1742-6596/1168/2/022022</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ozaydin</surname><given-names>M</given-names> </name><name name-style="western"><surname>Icli</surname><given-names>A</given-names> </name><name name-style="western"><surname>Yucel</surname><given-names>H</given-names> </name><etal/></person-group><article-title>Metoprolol vs. carvedilol or carvedilol plus N-acetyl cysteine on post-operative atrial fibrillation: a randomized, double-blind, placebo-controlled study</article-title><source>Eur Heart J</source><year>2013</year><month>02</month><volume>34</volume><issue>8</issue><fpage>597</fpage><lpage>604</lpage><pub-id pub-id-type="doi">10.1093/eurheartj/ehs423</pub-id><pub-id pub-id-type="medline">23232844</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Tisdale</surname><given-names>JE</given-names> </name><name name-style="western"><surname>Wroblewski</surname><given-names>HA</given-names> </name><name name-style="western"><surname>Wall</surname><given-names>DS</given-names> </name><etal/></person-group><article-title>A randomized trial evaluating amiodarone for prevention of atrial fibrillation after pulmonary resection</article-title><source>Ann Thorac Surg</source><year>2009</year><month>09</month><volume>88</volume><issue>3</issue><fpage>886</fpage><lpage>893</lpage><pub-id pub-id-type="doi">10.1016/j.athoracsur.2009.04.074</pub-id><pub-id pub-id-type="medline">19699916</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Van Gelder</surname><given-names>IC</given-names> </name><name name-style="western"><surname>Rienstra</surname><given-names>M</given-names> </name><name name-style="western"><surname>Bunting</surname><given-names>KV</given-names> </name><etal/></person-group><article-title>2024 ESC Guidelines for the management of atrial fibrillation developed in collaboration with the European Association for Cardio-Thoracic Surgery (EACTS)</article-title><source>Eur Heart J</source><year>2024</year><month>09</month><day>29</day><volume>45</volume><issue>36</issue><fpage>3314</fpage><lpage>3414</lpage><pub-id pub-id-type="doi">10.1093/eurheartj/ehae176</pub-id><pub-id pub-id-type="medline">39210723</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Frag&#x00E3;o-Marques</surname><given-names>M</given-names> </name><name name-style="western"><surname>Teixeira</surname><given-names>F</given-names> </name><name name-style="western"><surname>Mancio</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Impact of oral anticoagulation therapy on postoperative atrial fibrillation outcomes: a systematic review and meta-analysis</article-title><source>Thromb J</source><year>2021</year><month>11</month><day>19</day><volume>19</volume><issue>1</issue><fpage>89</fpage><pub-id pub-id-type="doi">10.1186/s12959-021-00342-2</pub-id><pub-id pub-id-type="medline">34798896</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Neves</surname><given-names>IA</given-names> </name><name name-style="western"><surname>Magalh&#x00E3;es</surname><given-names>A</given-names> </name><name name-style="western"><surname>Lima da Silva</surname><given-names>G</given-names> </name><etal/></person-group><article-title>Anticoagulation therapy in patients with post-operative atrial fibrillation: systematic review with meta-analysis</article-title><source>Vascul Pharmacol</source><year>2022</year><month>02</month><volume>142</volume><fpage>106929</fpage><pub-id pub-id-type="doi">10.1016/j.vph.2021.106929</pub-id><pub-id pub-id-type="medline">34757209</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Joshi</surname><given-names>KK</given-names> </name><name name-style="western"><surname>Tiru</surname><given-names>M</given-names> </name><name name-style="western"><surname>Chin</surname><given-names>T</given-names> </name><name name-style="western"><surname>Fox</surname><given-names>MT</given-names> </name><name name-style="western"><surname>Stefan</surname><given-names>MS</given-names> </name></person-group><article-title>Postoperative atrial fibrillation in patients undergoing non-cardiac non-thoracic surgery: a practical approach for the hospitalist</article-title><source>Hosp Pract (1995)</source><year>2015</year><volume>43</volume><issue>4</issue><fpage>235</fpage><lpage>244</lpage><pub-id pub-id-type="doi">10.1080/21548331.2015.1096181</pub-id><pub-id pub-id-type="medline">26414594</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Jiang</surname><given-names>S</given-names> </name><name name-style="western"><surname>Liao</surname><given-names>X</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Li</surname><given-names>B</given-names> </name></person-group><article-title>Exploring postoperative atrial fibrillation after non-cardiac surgery: mechanisms, risk factors, and prevention strategies</article-title><source>Front Cardiovasc Med</source><year>2023</year><volume>10</volume><fpage>1273547</fpage><pub-id pub-id-type="doi">10.3389/fcvm.2023.1273547</pub-id><pub-id pub-id-type="medline">38130687</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="web"><article-title>GitHub</article-title><source>CMI-Laboratory/AI_ECG_AF_POAF</source><access-date>2025-11-06</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://github.com/CMI-Laboratory/AI_ECG_AF_POAF/">https://github.com/CMI-Laboratory/AI_ECG_AF_POAF/</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>EfficientNet-B0 architecture, preoperative clinical data, and results of logistic regression.</p><media xlink:href="jmir_v27i1e77164_app1.docx" xlink:title="DOCX File, 841 KB"/></supplementary-material></app-group></back></article>