Machine learning models for predicting new-onset diabetes following acute pancreatitis using real-world data.
Djibril M Ba, Alireza Vafaei Sadr, Yue Zhang, Phil A Hart, Nazia Raja-Khan, Ruizhe Zhou, Ayesha Siddiqui, Tian Qiu,
Department of Public Health Sciences, Penn State College of Medicine, Hershey, Pennsylvania, USA. · Johns Hopkins Bloomberg School of Public Health, Baltimore, Maryland, USA.
Key points
From the paper's conclusion- In this first real-world evidence study using EHR data, we have developed and demonstrated the feasibility of using ML to predict the new onset of DM after AP. Clinical features such as age, pancreatic necrosis, prior glucose, BUN and anion gap had the highest overall importance scores and may inform tailored prevention strategies.
Abstract
INTRODUCTION: About one-quarter of patients with acute pancreatitis (AP) will develop diabetes mellitus (DM) within 3 years, but risk factors remain unclear. This study aims to determine whether machine learning models (ML) can be trained to accurately predict new-onset DM following AP and identify key clinical features using real-world data. METHODS: This retrospective cohort study used de-identified data from the TriNetX federated electronic health records (EHR) network from 1 January 2017 to 11 March 2024. A total of 58 746 patients with AP (International Classification of Diseases-10 code K85) and no prior diagnosis of DM were included. New-onset DM following AP was the main outcome of interest. Five ML models were trained across four prediction windows, including logistic regression (LR), eXtreme Gradient Boosting, Adaptive Boosting, Random Forest and support vector machine. Model performance was assessed using the area under the receiver operating characteristic curve (AUROC). RESULTS: Among the 58 746 patients with AP (mean (SD) age, 50.2 (16.6) years), the LR model demonstrated the highest overall performance, with a mean accuracy of 0.72 (SD, 0.009) and an AUROC of 0.79 (SD, 0.009). Key clinical features across models included age, pancreatic necrosis, body weight, body mass index, systolic blood pressure, number of medical visits and prior AP laboratory values such as glucose, anion gap, blood urea nitrogen (BUN) and total protein. CONCLUSIONS: In this first real-world evidence study using EHR data, we have developed and demonstrated the feasibility of using ML to predict the new onset of DM after AP. Clinical features such as age, pancreatic necrosis, prior glucose, BUN and anion gap had the highest overall importance scores and may inform tailored prevention strategies.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Development and external evaluation of an interpretable machine-learning model for early prediction of organ failure in higher-risk acute pancreatitis patients: A multicentre cohort study.PLOS digital health · 2026
- Early, unplanned readmission in diabetes inpatients: Comparing the utility and performance of machine learning and traditional prediction models to guide timely diabetes management team reviewDiabetic Medicine · 2025
- Development and validation of a machine learning-based diagnostic prediction model for frailty in older adults with diabetes.Geriatric nursing (New York, N.Y.) · 2026
- Machine learning-based prediction of incident delirium after a 24-hour landmark in critically ill patients with acute pancreatitis: Model development and external validation using the MIMIC-IV and eICU databases.Science progress · 2026
- Establishment and validation of a machine learning-based predictive model for in-hospital mortality risk in acute myocardial infarction patients complicated with diabetes mellitusFrontiers in Cardiovascular Medicine · 2026
- A machine learning model based on mPASS and imaging features for early assessment of clinically relevant outcomes in acute pancreatitis.BMC medical informatics and decision making · 2026