Related Experiment Video
Updated: Apr 3, 2026

Isolation of Proximal Fluids to Investigate the Tumor Microenvironment of Pancreatic Adenocarcinoma
Published on: November 5, 2020
Development and interpretable machine learning models for classification of pancreatic pseudocyst risk in acute
Hailong Feng1,2, Ping Wang3, Weihan He1,2
1Department of Gastroenterology, The First Affiliated Hospital, College of Clinical Medicine, Henan University of Science and Technology, Luoyang, Henan, China.
Introduction:
Pancreatic pseudocysts (PPC) are a late local complication of acute pancreatitis (AP). Persistent PPC carry a high risk of severe outcomes. Existing models, which are predominantly based on logistic regression, exhibit limited predictive performance and have not undergone temporal validation. This study aimed to develop and validate an interpretable machine learning model using routinely available clinical data for classifying AP patients according to PPC development status.
Materials And Methods:
We retrospectively analyzed 1,184 AP patients admitted to a tertiary hospital between 2018 and 2023. Data from 2018 to 2022 (n = 979) were randomly split into training (70%, n = 685) and internal test (30%, n = 294) sets, while the 2023 cohort (n = 205) served as an independent temporal validation set. Candidate predictors-including demographic characteristics, clinical history, and routine laboratory parameters-were screened via univariate analysis and further selected using LASSO regression to address multicollinearity. Nine machine learning algorithms were developed and compared: logistic regression, decision tree, random forest, artificial neural network, support vector machine, K-nearest neighbors, naïve Bayes, XGBoost, and LightGBM. Model performance was evaluated using area under the curve (AUC), accuracy, sensitivity, specificity, positive predictive value and negative predictive value. The optimal model was interpreted using SHapley Additive exPlanations (SHAP).
Results:
LASSO regression selected seven predictors: diabetes history, pancreatitis history, biliary surgery history, C-reactive protein, albumin, blood urea nitrogen, and serum calcium. The random forest model demonstrated the best classification performance, achieving an AUC of 0.884 (95% CI: 0.827-0.941) on the internal test set and 0.914 (95% CI: 0.845-0.983) on the temporal validation set. SHAP analysis identified serum calcium and C-reactive protein as the most important predictors, with low calcium and elevated CRP substantially increasing the probability of PPC classification.
Discussion:
We developed and temporally validated interpretable machine learning models for classifying PPC development status using seven routinely available clinical indicators. The random forest model demonstrated excellent discrimination and generalizability, while SHAP analysis provided transparent explanations of individual classifications. These models may facilitate early identification of high-risk AP patients and guide proactive clinical management.
More Related Videos
Related Concept Videos
Acute Pancreatitis II: Clinical Manifestations and Management
Chronic Pancreatitis II: Collaborative Care
Assessment:
Acute Pancreatitis I: Introduction
Acute pancreatitis is characterized by rapid inflammation of the pancreas, often caused by factors like gallstone blockage or excessive alcohol consumption. Chronic pancreatitis, on the other hand, is a slow, progressive inflammation that may result from long-term alcohol abuse, obstructions in the pancreatic duct, or genetic factors.
The causes of acute pancreatitis include:
Chronic Pancreatitis I: Introduction
Pancreatitis is the inflammation of the pancreas, which occurs when the immune system becomes active and causes swelling, pain, and disruptions in organ function. Pancreatitis can manifest as either an acute or chronic condition.
Acute pancreatitis arises suddenly and lasts for a brief duration, while chronic pancreatitis is a long-term affliction...

