Development and validation of a practical prediction model for post-ERCP pancreatitis using machine learning

Tianyu De1, Guohui Du2, Hongkun Yin2

  • 1Department of Hepatobiliary Surgery, General Hospital of Ningxia Medical University, Yinchuan, China.

Frontiers in Surgery
|November 19, 2025
PubMed

Insights

This study developed a machine learning model to predict post-ERCP pancreatitis (PEP) risk. The model identifies key clinical features to aid in early PEP risk assessment and personalized prevention strategies.

Area of Science:

  • Gastroenterology
  • Artificial Intelligence
  • Medical Informatics

Background:

  • Post-endoscopic retrograde cholangiopancreatography (ERCP) pancreatitis (PEP) is a significant complication.
  • Advancements in AI offer potential for improved PEP risk prediction.

Purpose of the Study:

  • Develop and validate a concise predictive model for PEP risk.
  • Create a simplified scoring system for bedside application.

Main Methods:

  • Utilized logistic regression, LightGBM, SVM, XGBoost, and MLP models.
  • Selected 688 patients for training (70%) and validation (30%).
  • Employed Stepwise Backward Selection for feature identification and incorporated ML models.

Main Results:

  • Identified key predictors: periampullary diverticulum, pancreatic stent, guidewire passages, bile duct dilation, age, and coronary artery disease.
  • ML models outperformed logistic regression, with XGBoost, SVM, LightGBM, and MLP showing acceptable performance.
  • A simplified LightGBM-based scoring system achieved an AUC of 0.75.

Conclusions:

  • A validated predictive model and scoring system for PEP risk were developed.
  • The model facilitates individual risk assessment and selection of preventive strategies.
Abstract