Related Experiment Video
Updated: Aug 22, 2025

Author Spotlight: Advancing Early Detection and Treatment of Gastrointestinal Tumors
Published on: February 16, 2024
Machine learning for the prediction of post-ERCP pancreatitis risk: A proof-of-concept study
Livia Archibugi1, Gianmarco Ciarfaglia1, Karina Cárdenas-Jaén2
1Pancreato-Biliary Endoscopy and Endosonography Division, Pancreas Translational & Clinical Research Center, San Raffaele Scientific Institute IRCCS, Vita-Salute San Raffaele University, Milan, Italy.
Background:
Predicting Post-Endoscopic Retrograde Cholangiopancreatography (ERCP) pancreatitis (PEP) risk can be determinant in reducing its incidence and managing patients appropriately, however studies conducted thus far have identified single-risk factors with standard statistical approaches and limited accuracy.
Aim:
To build and evaluate performances of machine learning (ML) models to predict PEP probability and identify relevant features.
Methods:
A proof-of-concept study was performed on ML application on an international, multicenter, prospective cohort of ERCP patients. Data were split in training and test set, models used were gradient boosting (GB) and logistic regression (LR). A 10-split random cross-validation (CV) was applied on the training set to optimize parameters to obtain the best mean Area Under Curve (AUC). The model was re-trained on the whole training set with the best parameters and applied on test set. Shapley-Additive-exPlanation (SHAP) approach was applied to break down the model and clarify features impact.
Results:
One thousand one hundred and fifty patients were included, 6.1% developed PEP. GB model outperformed LR with AUC in CV of 0.7 vs 0.585 (p-value=0.012). GB AUC in test was 0.671. Most relevant features for PEP prediction were: bilirubin, age, body mass index, procedure time, previous sphincterotomy, alcohol units/day, cannulation attempts, gender, gallstones, use of Ringer's solution and periprocedural NSAIDs.
Conclusion:
In PEP prediction, GB significantly outperformed LR model and identified new clinical features relevant for the risk, most being pre-procedural.
More Related Videos
04:09Predicting Treatment Response to Image-Guided Therapies Using Machine Learning: An Example for Trans-Arterial Treatment of Hepatocellular Carcinoma
Published on: October 10, 2018
07:38Preparing a Mice Model of Severe Acute Pancreatitis via a Combination of Caerulein and Lipopolysaccharide Intraperitoneal Injection
Published on: May 10, 2024
Related Concept Videos
Chronic Pancreatitis II: Collaborative Care
Assessment:
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...
Endoscopic Procedures V: ERCP
Patient...
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: