AUTHOR=Li Rixuan TITLE=Predicting atrial fibrillation in patients with acute respiratory failure using machine learning: application of the MIMIC-III and MIMIC-IV datasets JOURNAL=Frontiers in Cardiovascular Medicine VOLUME=Volume 12 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/cardiovascular-medicine/articles/10.3389/fcvm.2025.1696609 DOI=10.3389/fcvm.2025.1696609 ISSN=2297-055X ABSTRACT=BackgroundAcute respiratory failure (ARF) and atrial fibrillation (AF) are common diseases. This study established a predictive model for the risk of atrial fibrillation in patients with ARF, aiming to provide tools for clinical application.MethodsThis study examined the data of 21,594 patients in the MIMIC-IV database, including factors such as age, vital signs, and laboratory results on the first day of admission. Six feature selection techniques and six machine learning algorithms were used to construct the prediction model, and then the prediction model was verified using the MIMIC-III database. Evaluate the performance of the model through the comparison of results.ResultsA total of 59 predictor variables were identified, among which age was the most important factor. These variables are used to establish predictive models. The verification results show that the XGBoost model (AUC: 0.816) and the Random Forest (RF) model (AUC: 0.822) have the best performance. This study presents the first predictive model for atrial fibrillation in patients with acute respiratory failure.ConclusionsBoth the XGBoost and RF models demonstrated outstanding performance. These findings will make significant contributions to the diagnosis of clinical complications and the resolution of public health issues.