An extreme gradient boosting (XGBoost) machine learning model built from eight routinely collected clinical variables achieved an area under the receiver operating characteristic curve (AUC) of 0.775 in internal validation for predicting new-onset postoperative atrial fibrillation (NOAF) after isolated cardiac valve surgery. Published November 30, 2026, in Frontiers in Cardiovascular Medicine, the single-center retrospective study analyzed 967 adult patients treated at the First Affiliated Hospital of Zhengzhou University in China between January 2019 and December 2025. Jinglin Li, Jingchao Zhang, Xiaolei Zhao, and colleagues compared seven supervised learning algorithms and selected XGBoost based on its highest observed validation AUC and sensitivity of 74.7%. However, the researchers performed no formal statistical tests comparing models, did not establish superiority over conventional logistic regression, and emphasized that the model remains a preliminary tool requiring external and prospective validation before routine clinical use.
Postoperative atrial fibrillation is among the most frequent complications of cardiac surgery, occurring in approximately 40% to 50% of patients after valve procedures according to prior reports cited by the authors. Although frequently regarded as a transient arrhythmia, NOAF is associated with elevated risks of stroke, prolonged hospitalization, long-term adverse cardiovascular outcomes, and thromboembolic complications in patients undergoing valve surgery. In current practice, clinicians rely primarily on continuous rhythm monitoring during the early postoperative period, an approach that identifies the arrhythmia after onset rather than supporting proactive risk stratification. Individual risk assessment is further complicated by substantial heterogeneity in cardiac remodeling, functional status, and perioperative characteristics among valve surgery patients. Existing prediction models have relied mainly on conventional logistic regression, which is suited to linear relationships but may miss nonlinear patterns and higher-order interactions. To address these constraints, the team evaluated seven supervised algorithms alongside SHapley Additive exPlanations (SHAP) to quantify how individual variables shaped risk predictions.
The researchers initially screened 1,268 consecutive patients who underwent isolated cardiac valve surgery at their institution. To isolate genuine new-onset postoperative events, they excluded patients with concomitant severe coronary heart disease, infective endocarditis, congenital cardiac abnormalities, cardiac tumors, a documented history of atrial fibrillation or atrial flutter, prior catheter ablation or permanent pacemaker implantation, prophylactic perioperative amiodarone use, or preexisting thyroid dysfunction. After exclusions, 967 eligible adults aged 18 years or older formed the analytical cohort, with patient records de-identified and written informed consent waived by the hospital ethics committee due to the retrospective design. The team defined NOAF as any new-onset atrial fibrillation episode lasting at least 30 seconds, confirmed by 12-lead electrocardiography, continuous postoperative cardiac monitoring, or electronic medical records within seven days after surgery or before hospital discharge, whichever occurred earlier. Arrhythmias first appearing after discharge were excluded, while both transient and persistent inpatient episodes were jointly confirmed by cardiac surgeons and echocardiographers.
Using stratified random sampling with a fixed seed, the investigators divided the 967 patients at a 60:40 ratio into a training cohort of 581 patients and an internal validation cohort of 386 patients. Within the training cohort, 138 patients (24%) developed NOAF and 443 patients (76%) did not. Patients who developed NOAF were older, with a median age of 59.50 years (interquartile range, 54.00 to 65.00) compared with 56.00 years (48.00 to 62.00) among unaffected patients, and showed statistically significant differences across 13 additional perioperative measures. Notably, the NOAF group had higher median preoperative N-terminal pro-B-type natriuretic peptide (NT-proBNP) levels (406.39 versus 243.31 pg/mL), longer operative times (250.50 versus 234.00 minutes), and higher postoperative temperatures (38.30 versus 37.80 degrees Celsius). All 32 candidate predictors had missingness below 10%; missing values were imputed within the training set using multiple imputation by chained equations with predictive mean matching, generating five datasets of which one was selected, and those fitted imputation models were then applied to the validation set without refitting.
All feature selection and hyperparameter tuning were restricted to the training cohort. Starting from 32 candidate variables spanning demographics, medical history, preoperative echocardiography and laboratory tests, intraoperative intervals, and postoperative metrics, pairwise Pearson correlation analysis with Benjamini–Hochberg false discovery rate correction removed one highly collinear variable, leaving 31 candidates. The authors then applied three independent screening strategies to those 31 predictors. Multivariable logistic regression retained nine statistically significant variables from univariate screening; least absolute shrinkage and selection operator (LASSO) regression identified 11 predictors at an optimal penalty parameter of 0.034; and the Boruta algorithm selected 15 predictors based on importance Z-scores. Intersecting all three methods yielded eight final predictors: age, left ventricular ejection fraction (LVEF), left atrial diameter (LAD), NT-proBNP, thyroid-stimulating hormone (TSH), platelet-to-lymphocyte ratio (PLR), operative time, and postoperative temperature. With 138 training events across eight predictors, the events-per-variable ratio reached 17.25, though the authors noted this figure does not account for screening from the larger candidate set.
Using those eight predictors, the researchers built seven supervised classification models in Python: logistic regression, decision tree, random forest, XGBoost, LightGBM, support vector machine, and artificial neural network, optimizing each via grid search with five-fold cross-validation to maximize AUC. In the training cohort, AUCs ranged from 0.745 for the artificial neural network to 0.871 for XGBoost, alongside 0.870 for LightGBM, 0.859 for random forest, 0.809 for logistic regression, 0.798 for support vector machine, and 0.775 for decision tree. When evaluated on the 386-patient validation cohort, XGBoost achieved the highest observed AUC at 0.775 (95% confidence interval, 0.716 to 0.833) and the highest sensitivity at 74.7%, with an F1 score of 0.523, Cohen’s kappa of 0.312, and Youden index of 0.405. LightGBM remained competitive and surpassed XGBoost in validation accuracy, precision, specificity, F1 score, kappa, and Youden index, while logistic regression reached a validation AUC of 0.726. Prioritizing sensitivity to identify at-risk patients, the authors chose XGBoost as the final model while noting that the AUC gap with LightGBM was small.
Beyond discrimination, the team evaluated calibration and potential clinical utility in the validation cohort. XGBoost recorded the lowest observed Brier score at 0.141, indicating lower overall prediction error, although calibration intercept and slope were not calculated. In decision curve analysis, XGBoost generated a higher net benefit than “treat-all” and “treat-none” strategies across the examined threshold probabilities, suggesting possible value for postoperative risk assessment without proving that model-guided care improves patient outcomes. Situating their results within prior research, the authors noted that earlier valve-surgery logistic regression nomograms reported AUCs of 0.817 in 422 patients and 0.747 in 589 patients. Broader cardiac-surgery cohorts of 1,400 and 2,108 patients similarly found machine learning comparable to or outperformed by logistic regression. The authors also cited a systematic review showing that 32 of 39 postoperative atrial fibrillation prediction studies carried a high risk of bias, reinforcing why rigorous external validation is essential.
To address the black-box nature of ensemble tree models, the researchers applied SHAP values derived from game theory to explain XGBoost predictions across the cohort and for individual patients. Ranked from most to least influential, the eight predictors were NT-proBNP, postoperative body temperature, operative time, LAD, PLR, TSH, age, and LVEF, with NT-proBNP, postoperative temperature, and operative time representing the top three drivers of predicted risk. SHAP summary and dependence plots showed that higher NT-proBNP concentrations, elevated postoperative body temperature, prolonged operative duration, larger preoperative LAD, elevated PLR, and older age were associated with positive SHAP values, indicating higher predicted probabilities of NOAF. Conversely, higher LVEF and higher TSH levels tended to produce negative SHAP values, corresponding to lower predicted risk. Individual SHAP waterfall plots for two representative patients demonstrated how the model begins from the cohort average prediction and cumulatively adds or subtracts each variable’s contribution to yield a patient-specific risk estimate.
In discussing these predictors, the authors linked NT-proBNP, LAD, and LVEF to preexisting cardiac substrate. NT-proBNP marks myocardial wall stress and hemodynamic burden, with dependence plots suggesting a nonlinear increase in model output at higher levels, while enlarged LAD reflects atrial dilation and fibrosis from valvular overload and lower LVEF reflects reduced cardiac reserve. Elevated PLR and higher postoperative temperature were interpreted as markers of systemic inflammatory activation—with temperature serving as a surrogate indicator rather than a direct causal factor—while longer operative times reflect cumulative exposure to ischemia–reperfusion injury, inflammation, and autonomic dysregulation. Aging likewise promotes structural and electrical atrial remodeling. Notably, higher TSH was associated with lower predicted NOAF risk here, contradicting an earlier valve-surgery study that identified elevated TSH as a risk factor. Because the team did not formally analyze predictor combinations or clinical subgroups, the findings cannot establish distinct mechanisms or guide subgroup-specific prevention.
The authors highlighted several constraints that limit immediate clinical adoption. Because the study relied on a single-center retrospective cohort with only a random internal split, its generalizability across institutions and time periods remains untested, and the drop from a 0.871 training AUC to a 0.775 validation AUC indicates possible overfitting. Analyzing only one of five imputed datasets left imputation uncertainty unmeasured, while excluding pediatric patients restricts applicability to adults. Crucially, postoperative temperature was recorded as the highest reading before NOAF onset in affected patients but before discharge in unaffected patients, creating unequal, outcome-dependent observation windows that could introduce temporal bias and information leakage. Finally, the study did not define a clinical action threshold, warned against initiating or extending anticoagulation based solely on predicted risk, and did not track downstream thromboembolic events, myocardial infarction, heart failure, rehospitalization, or death, making multicenter prospective validation essential.
Subject of Research: Machine learning prediction of new-onset postoperative atrial fibrillation after isolated cardiac valve surgery
Article Title: Machine-learning-based predictive model for new-onset atrial fibrillation after isolated cardiac valve surgery
Article References: Li, J., Yu, X., Liu, K., Bu, X., Zhang, J., & Zhao, X. (2026). Machine-learning-based predictive model for new-onset atrial fibrillation after isolated cardiac valve surgery. Frontiers in Cardiovascular Medicine, 13, Article 2026547. https://doi.org/10.3389/fcvm.2026.2026547
Image Credits: AI Generated
DOI: 10.3389/fcvm.2026.2026547
Keywords: isolated cardiac valve surgery, postoperative atrial fibrillation, XGBoost, machine learning, SHAP analysis, NT-proBNP, postoperative temperature, operative time, left atrial diameter, platelet-to-lymphocyte ratio, thyroid-stimulating hormone, left ventricular ejection fraction, LASSO regression, Boruta algorithm, decision curve analysis, internal validation, cardiovascular medicine
News Source: Ophelia Keating. (December 2, 2026). Machine Learning Model Internally Validated for Postoperative Atrial Fibrillation After Valve Surgery. Scienmag.



