Related Experiment Video
Updated: Mar 13, 2026

Preparing a Mice Model of Severe Acute Pancreatitis via a Combination of Caerulein and Lipopolysaccharide Intraperitoneal Injection
Published on: May 10, 2024
Interpretable XGBoost-SHAP model predicts short-term recurrence after first-episode acute pancreatitis
1Emergency Department, Cangzhou Central Hospital, Yunhe Qu, Cangzhou City, China.
Objective:
To construct an eXtreme Gradient Boosting (XGBoost) model for predicting short-term recurrence after first-episode acute pancreatitis (AP) and employ SHapley Additive exPlanations (SHAP) analysis for feature interpretation.
Methods:
A total of 442 patients with first-episode AP admitted to Cangzhou Central Hospital from October 2018 to June 2023 were retrospectively analyzed. The short-term recurrence was defined as a second attack after first-episode AP within 1 year. The cohort was split randomly, with 70% of the patients (n = 321) used for model training and 30% (n = 121) reserved for validation. Cox regression analysis was employed to identify independent predictors affecting recurrence, and an XGBoost model was constructed based on predictors. The XGBoost model was assessed by using area under the curve (AUC), calibration curve, decision curve analysis (DCA), and SHAP analysis.
Results:
Three features were determined as predictors of recurrence. They included elevated triglycerides, alcohol drinking, and pancreatic necrosis. The XGBoost model demonstrated favorable performance, achieving an AUC of 0.933 (95% CI: 0.895-0.970) in the training cohort and of 0.874 (95% CI: 0.777-0.970) in the validation cohort. The calibration curve exhibited strong consistency between the anticipated and observed values, and DCA confirmed that the XGBoost model provided great clinical benefit. SHAP analysis also proved that elevated triglycerides, alcohol drinking, and pancreatic necrosis were decisive for the effect of the XGBoost model.
Conclusion:
The XGBoost model can accurately predict short-term recurrence. The SHAP approach can enhance the interpretability of the machine-learning model and support clinical decision-making.
Related Concept Videos
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:
Acute Pancreatitis II: Clinical Manifestations and Management
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...
Chronic Pancreatitis II: Collaborative Care
Assessment:

