{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,9,16]],"date-time":"2025-09-16T17:08:13Z","timestamp":1758042493234,"version":"3.44.0"},"reference-count":40,"publisher":"Public Library of Science (PLoS)","issue":"9","license":[{"start":{"date-parts":[[2025,9,11]],"date-time":"2025-09-11T00:00:00Z","timestamp":1757548800000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["www.plosone.org"],"crossmark-restriction":false},"short-container-title":["PLoS One"],"abstract":"<jats:sec id=\"sec001\">\n<jats:title>Background<\/jats:title>\n<jats:p>New-onset atrial fibrillation (NOAF) increases the risk of embolism and sudden death in critically ill patients; however, limited data exist attempting to identify modifiable risk factors and predict the incidence of NOAF. We aimed to investigate the risk factors for NOAF and develop an optimized clinical prediction model based on machine learning algorithms.<\/jats:p>\n<\/jats:sec>\n<jats:sec id=\"sec002\">\n<jats:title>Materials and methods<\/jats:title>\n<jats:p>Data from patients admitted to the intensive care unit (ICU) of the Affiliated Hospital of Nanjing University of Chinese Medicine from August 2019 to January 2022 were retrospectively analyzed. LASSO regression and Random Forest (RF) algorithms were used to screen predictive variables. Logistic Regression, RF, Gradient Boosting and Support Vector Machine models were constructed to evaluate the recognition ability of different machine learning algorithms. The confusion matrix and calibration curve were used to assess the degree of accuracy of the four models. Decision curve analysis (DCA) was conducted to evaluate the utility of the model in decision-making. The net reclassification index (NRI) and integrated discrimination improvement (IDI) were also calculated to evaluate the performance of the models. The learning curves of the four models were plotted to evaluate the precision of different models. The SHapley Additive exPlanations (SHAP) was used to explain the supreme-performing model.<\/jats:p>\n<\/jats:sec>\n<jats:sec id=\"sec003\">\n<jats:title>Results<\/jats:title>\n<jats:p>In total, 417 patients were enrolled in the study, and 333 patients were allocated to the training group and 84 to the validation group. The baseline characteristic distributions were similar between the two groups. Age, heart rate, mean arterial pressure, activated partial thromboplastin time, and brain natriuretic peptide were revealed as independent predictors of NOAF by LASSO regression and the RF algorithm. The RF model had the best performance, with the area under the receiver operator characteristic curve (AUROC) of 0.758, the area under the precision-recall curve (AUPRC) of 0.524, and accuracy of 0.735 in the training set, paralleled by AUROC of 0.796, AUPRC of 0.686, and accuracy of 0.702 in the validation set. The confusion matrix and calibration curves showed that RF had the best performance. DCAs also showed that the RF model provided the highest net benefit in the clinical setting. The NRI results showed that the RF significantly improved reclassification ability compared to the baseline model (NRI = 0.38). The IDI results further demonstrated a moderate improvement in discrimination ability for the RF (IDI = 0.033) compared to the baseline. The learning curves revealed that RF also showed superior performance. SHAP could be used visualized individual NOAF risk predicted by the model.<\/jats:p>\n<\/jats:sec>\n<jats:sec id=\"sec004\">\n<jats:title>Conclusions<\/jats:title>\n<jats:p>The RF model exhibited the best performance in predicting NOAF in critically ill patients and has the potential to help clinicians identify high-risk patients and guide clinical decision making.<\/jats:p>\n<\/jats:sec>","DOI":"10.1371\/journal.pone.0331857","type":"journal-article","created":{"date-parts":[[2025,9,11]],"date-time":"2025-09-11T17:27:54Z","timestamp":1757611674000},"page":"e0331857","update-policy":"https:\/\/doi.org\/10.1371\/journal.pone.corrections_policy","source":"Crossref","is-referenced-by-count":0,"title":["Optimizing clinical prediction model for new-onset atrial fibrillation in critically ill patient: Based on machine learning"],"prefix":"10.1371","volume":"20","author":[{"given":"Da-cheng","family":"Wang","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-4603-0164","authenticated-orcid":true,"given":"Xin-yuan","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Xiao-huan","family":"Zhuang","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6286-1621","authenticated-orcid":true,"given":"Yan","family":"Zhuang","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"340","published-online":{"date-parts":[[2025,9,11]]},"reference":[{"issue":"1","key":"pone.0331857.ref001","doi-asserted-by":"crossref","first-page":"35","DOI":"10.1080\/14779072.2023.2160319","article-title":"Atrial fibrillation and stroke","volume":"21","author":"SE Choi","year":"2023","journal-title":"Expert Rev Cardiovasc Ther"},{"issue":"9","key":"pone.0331857.ref002","doi-asserted-by":"crossref","first-page":"1124","DOI":"10.1097\/CCM.0000000000005883","article-title":"Atrial Fibrillation (AFIB) in the ICU: Incidence, Risk Factors, and Outcomes: The International AFIB-ICU Cohort Study","volume":"51","author":"M Wetterslev","year":"2023","journal-title":"Crit Care Med"},{"issue":"71","key":"pone.0331857.ref003","doi-asserted-by":"crossref","first-page":"1","DOI":"10.3310\/hta25710","article-title":"Pharmacological and non-pharmacological treatments and outcomes for new-onset atrial fibrillation in ICU patients: the CAFE scoping review and database analyses","volume":"25","author":"J Bedford","year":"2021","journal-title":"Health Technol Assess"},{"issue":"8","key":"pone.0331857.ref004","first-page":"620","article-title":"New-onset atrial fibrillation in intensive care: epidemiology and outcomes","volume":"11","author":"JP Bedford","year":"2022","journal-title":"Eur Heart J Acute Cardiovasc Care"},{"issue":"8","key":"pone.0331857.ref005","doi-asserted-by":"crossref","first-page":"1380","DOI":"10.1111\/pace.14301","article-title":"New-onset atrial fibrillation incidence and associated outcomes in the medical intensive care unit","volume":"44","author":"R Brunetti","year":"2021","journal-title":"Pacing Clin Electrophysiol"},{"issue":"4","key":"pone.0331857.ref006","doi-asserted-by":"crossref","first-page":"547","DOI":"10.3390\/jpm12040547","article-title":"Prevalence of New-Onset Atrial Fibrillation and Associated Outcomes in Patients with Sepsis: A Systematic Review and Meta-Analysis","volume":"12","author":"B Corica","year":"2022","journal-title":"J Pers Med"},{"issue":"7","key":"pone.0331857.ref007","doi-asserted-by":"crossref","first-page":"928","DOI":"10.1007\/s00134-019-05633-x","article-title":"New-onset atrial fibrillation in adult critically ill patients: a scoping review","volume":"45","author":"M Wetterslev","year":"2019","journal-title":"Intensive Care Med"},{"issue":"2","key":"pone.0331857.ref008","doi-asserted-by":"crossref","first-page":"165","DOI":"10.1159\/000534368","article-title":"Predictors of New Onset Atrial Fibrillation Burden in the Critically Ill","volume":"149","author":"D Lancini","year":"2024","journal-title":"Cardiology"},{"issue":"1","key":"pone.0331857.ref009","doi-asserted-by":"crossref","DOI":"10.1161\/CIR.0000000000001193","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","volume":"149","author":"JA Joglar","year":"2024","journal-title":"Circulation"},{"issue":"36","key":"pone.0331857.ref010","doi-asserted-by":"crossref","first-page":"3443","DOI":"10.1093\/eurheartj\/ehad375","article-title":"New-onset atrial fibrillation prediction: the HARMS2-AF risk score","volume":"44","author":"L Segan","year":"2023","journal-title":"Eur Heart J"},{"issue":"1","key":"pone.0331857.ref011","article-title":"PROBAST: A Tool to Assess Risk of Bias and Applicability of Prediction Model Studies: Explanation and Elaboration","volume":"170","author":"KGM Moons","year":"2019","journal-title":"Ann Intern Med"},{"issue":"5","key":"pone.0331857.ref012","doi-asserted-by":"crossref","first-page":"661","DOI":"10.1177\/0272989X221078789","article-title":"Uncertainty and the Value of Information in Risk Prediction Modeling","volume":"42","author":"M Sadatsafavi","year":"2022","journal-title":"Med Decis Making"},{"issue":"1","key":"pone.0331857.ref013","doi-asserted-by":"crossref","first-page":"40","DOI":"10.1038\/s41580-021-00407-0","article-title":"A guide to machine learning for biologists","volume":"23","author":"JG Greener","year":"2022","journal-title":"Nat Rev Mol Cell Biol"},{"issue":"8","key":"pone.0331857.ref014","doi-asserted-by":"crossref","first-page":"4876","DOI":"10.1097\/JS9.0000000000001599","article-title":"Establishment and validation of an artificial intelligence web application for predicting postoperative in-hospital mortality in patients with hip fracture: a national cohort study of 52 707 cases","volume":"110","author":"M Lei","year":"2024","journal-title":"Int J Surg"},{"key":"pone.0331857.ref015","doi-asserted-by":"crossref","first-page":"6123","DOI":"10.2147\/JIR.S443319","article-title":"A Predictive Model of New-Onset Atrial Fibrillation After Percutaneous Coronary Intervention in Acute Myocardial Infarction Based on the Lymphocyte to C-Reactive Protein Ratio","volume":"16","author":"Z Gao","year":"2023","journal-title":"J Inflamm Res"},{"issue":"5","key":"pone.0331857.ref016","doi-asserted-by":"crossref","first-page":"408","DOI":"10.1016\/j.jjcc.2023.04.013","article-title":"Atrial fibrillation in young hospitalized patients: Clinical characteristics, predictors of new onset, and outcomes","volume":"82","author":"A Segev","year":"2023","journal-title":"J Cardiol"},{"key":"pone.0331857.ref017","doi-asserted-by":"crossref","first-page":"968615","DOI":"10.3389\/fcvm.2022.968615","article-title":"Development and validation of a predictive model for new-onset atrial fibrillation in sepsis based on clinical risk factors","volume":"9","author":"Z Li","year":"2022","journal-title":"Front Cardiovasc Med"},{"issue":"8","key":"pone.0331857.ref018","doi-asserted-by":"crossref","first-page":"1873","DOI":"10.1016\/j.jacep.2024.04.006","article-title":"Machine Learning of Cardiac Anatomy and the Risk of New-Onset Atrial Fibrillation After TAVR","volume":"10","author":"MS Brahier","year":"2024","journal-title":"JACC Clin Electrophysiol"},{"issue":"2","key":"pone.0331857.ref019","first-page":"82","article-title":"Machine Learning to Identify Patients at Risk of Developing New-Onset Atrial Fibrillation after Coronary Artery Bypass","volume":"10","author":"O Parise","year":"2023","journal-title":"J Cardiovasc Dev Dis"},{"issue":"8","key":"pone.0331857.ref020","doi-asserted-by":"crossref","first-page":"269","DOI":"10.3390\/bios11080269","article-title":"Atrial Fibrillation Prediction from Critically Ill Sepsis Patients","volume":"11","author":"SK Bashar","year":"2021","journal-title":"Biosensors (Basel)"},{"issue":"4","key":"pone.0331857.ref021","doi-asserted-by":"crossref","first-page":"344","DOI":"10.1016\/j.jclinepi.2007.11.008","article-title":"The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: guidelines for reporting observational studies","volume":"61","author":"E von Elm","year":"2008","journal-title":"J Clin Epidemiol"},{"issue":"15","key":"pone.0331857.ref022","doi-asserted-by":"crossref","DOI":"10.1161\/CIR.0000000000001133","article-title":"Atrial Fibrillation Occurring During Acute Hospitalization: A Scientific Statement From the American Heart Association","volume":"147","author":"JY Chyou","year":"2023","journal-title":"Circulation"},{"key":"pone.0331857.ref023","article-title":"Calculating the sample size required for developing a clinical prediction model","volume":"368","author":"RD Riley","year":"2020","journal-title":"BMJ"},{"key":"pone.0331857.ref024","doi-asserted-by":"crossref","first-page":"92","DOI":"10.1016\/j.ijcard.2018.02.051","article-title":"Risk factors for new-onset atrial fibrillation: A focus on Asian populations","volume":"261","author":"Y Li","year":"2018","journal-title":"Int J Cardiol"},{"issue":"1","key":"pone.0331857.ref025","doi-asserted-by":"crossref","first-page":"68","DOI":"10.1002\/clc.23760","article-title":"NT Pro-BNP can be used as a risk predictor of clinical atrial fibrillation with or without left atrial enlargement","volume":"45","author":"X Zhao","year":"2022","journal-title":"Clin Cardiol"},{"issue":"4","key":"pone.0331857.ref026","doi-asserted-by":"crossref","first-page":"1091","DOI":"10.1093\/cvr\/cvaa163","article-title":"Stretch-induced sarcoplasmic reticulum calcium leak is causatively associated with atrial fibrillation in pressure-overloaded hearts","volume":"117","author":"Y Zhang","year":"2021","journal-title":"Cardiovasc Res"},{"issue":"9","key":"pone.0331857.ref027","doi-asserted-by":"crossref","first-page":"1639","DOI":"10.1097\/HJH.0000000000003223","article-title":"Arterial stiffness and atrial fibrillation: shared mechanisms, clinical implications and therapeutic options","volume":"40","author":"R Vio","year":"2022","journal-title":"J Hypertens"},{"issue":"21","key":"pone.0331857.ref028","doi-asserted-by":"crossref","first-page":"2218","DOI":"10.1001\/jama.2020.23700","article-title":"Atrial Fibrillation","volume":"325","author":"JR Baman","year":"2021","journal-title":"JAMA"},{"issue":"5","key":"pone.0331857.ref029","doi-asserted-by":"crossref","first-page":"1452","DOI":"10.3390\/biomedicines11051452","article-title":"Biomarkers of Atrial Fibrillation Recurrence in Patients with Paroxysmal or Persistent Atrial Fibrillation Following External Direct Current Electrical Cardioversion","volume":"11","author":"O Demirel","year":"2023","journal-title":"Biomedicines"},{"issue":"16","key":"pone.0331857.ref030","doi-asserted-by":"crossref","first-page":"3991","DOI":"10.3390\/ijms20163991","article-title":"Natriuretic Peptides in the Cardiovascular System: Multifaceted Roles in Physiology, Pathology and Therapeutics","volume":"20","author":"S Rubattu","year":"2019","journal-title":"Int J Mol Sci"},{"issue":"5","key":"pone.0331857.ref031","doi-asserted-by":"crossref","DOI":"10.1093\/eurjpc\/zwab148","article-title":"Resting heart rate, cardiovascular events, and all-cause mortality: the REGICOR study","volume":"29","author":"E Puig","year":"2022","journal-title":"Eur J Prev Cardiol"},{"issue":"1","key":"pone.0331857.ref032","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1186\/s12871-022-01586-9","article-title":"Association between circadian variation of heart rate and mortality among critically ill patients: a retrospective cohort study","volume":"22","author":"J Zhang","year":"2022","journal-title":"BMC Anesthesiol"},{"issue":"4","key":"pone.0331857.ref033","doi-asserted-by":"crossref","first-page":"805","DOI":"10.1536\/ihj.18-470","article-title":"Resting Heart Rate and the Risk of Atrial Fibrillation","volume":"60","author":"X Liu","year":"2019","journal-title":"Int Heart J"},{"issue":"1","key":"pone.0331857.ref034","doi-asserted-by":"crossref","first-page":"257","DOI":"10.1186\/s13054-021-03684-5","article-title":"Treatment strategies for new onset atrial fibrillation in patients treated on an intensive care unit: a systematic scoping review","volume":"25","author":"L Drikite","year":"2021","journal-title":"Crit Care"},{"issue":"1","key":"pone.0331857.ref035","doi-asserted-by":"crossref","first-page":"1994","DOI":"10.1080\/07853890.2022.2098376","article-title":"Beta-blocker treatment in the critically ill: a systematic review and meta-analysis","volume":"54","author":"M Heliste","year":"2022","journal-title":"Ann Med"},{"issue":"2","key":"pone.0331857.ref036","doi-asserted-by":"crossref","first-page":"165","DOI":"10.5114\/ait.2020.96484","article-title":"Isolated prolongation of activated partial thromboplastin time in intensive care unit patients: a practical diagnostic algorithm and management options","volume":"52","author":"PF Czempik","year":"2020","journal-title":"Anaesthesiol Intensive Ther"},{"issue":"3","key":"pone.0331857.ref037","doi-asserted-by":"crossref","first-page":"555","DOI":"10.1161\/HYPERTENSIONAHA.116.07671","article-title":"Arterial Stiffness Predicts Incident Atrial Fibrillation in the Framingham Heart Study: A Mechanistic Contribution in People With High Blood Pressure or History of Hypertension","volume":"68","author":"SE Kjeldsen","year":"2016","journal-title":"Hypertension"},{"issue":"5","key":"pone.0331857.ref038","doi-asserted-by":"crossref","first-page":"823","DOI":"10.1016\/j.bja.2023.08.026","article-title":"Intraoperative hypotension and postoperative outcomes: a meta-analysis of randomised trials","volume":"131","author":"F D\u2019Amico","year":"2023","journal-title":"Br J Anaesth"},{"key":"pone.0331857.ref039","doi-asserted-by":"crossref","first-page":"5193","DOI":"10.2147\/DDDT.S474818","article-title":"Catecholamine Vasopressors and the Risk of Atrial Fibrillation After Noncardiac Surgery: A Prospective Observational Study","volume":"18","author":"W Li","year":"2024","journal-title":"Drug Des Devel Ther"},{"issue":"7","key":"pone.0331857.ref040","first-page":"1577","article-title":"Outcomes of Vasopressin-Receptor Agonists Versus Norepinephrine in Adults With Perioperative Hypotension: A Systematic Review","volume":"38","author":"K Heybati","year":"2024","journal-title":"J Cardiothorac Vasc Anesth"}],"container-title":["PLOS One"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dx.plos.org\/10.1371\/journal.pone.0331857","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,11]],"date-time":"2025-09-11T17:28:01Z","timestamp":1757611681000},"score":1,"resource":{"primary":{"URL":"https:\/\/dx.plos.org\/10.1371\/journal.pone.0331857"}},"subtitle":[],"editor":[{"given":"Chiara","family":"Lazzeri","sequence":"first","affiliation":[],"role":[{"role":"editor","vocabulary":"crossref"}]}],"short-title":[],"issued":{"date-parts":[[2025,9,11]]},"references-count":40,"journal-issue":{"issue":"9","published-online":{"date-parts":[[2025,9,11]]}},"URL":"https:\/\/doi.org\/10.1371\/journal.pone.0331857","relation":{},"ISSN":["1932-6203"],"issn-type":[{"type":"electronic","value":"1932-6203"}],"subject":[],"published":{"date-parts":[[2025,9,11]]}}}