Machine learning-based prediction of recurrent extrahepatic bile duct stones after common bile duct exploration: a comparative study of models and SHAP-driven interpretability analysis
Authors:
Open Access
- 12 December 2025
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Medicine
- Vol. 12, 1691519
Abstract
Purpose: This study aimed to construct and compare machine learning models for predicting recurrent extrahepatic bile duct stones after common bile duct exploration and to clarify the contribution of key risk factors using SHAP analysis, thereby providing a reliable tool for clinical risk assessment and intervention. Methods: Retrospective analysis of 1,363 patients (2010–2024, Huangshi Central Hospital/Honghu People’s Hospital) with extrahepatic bile duct stones (156 recurrent cases). LASSO regression selected 8 predictors; 9 machine learning models were built, evaluated by AUC, accuracy, etc., and SHAP interpreted the optimal model. Results: Random Forest (RF) performed best: training/validation/external cohort AUC 97.99%/93.66%/83.1%, accuracy 0.953/0.902/0.829. SHAP identified maximum stone diameter, common bile duct diameter, and direct bilirubin as top risks, with nonlinearity (stones >15 mm elevated risk) and synergistic interactions. Conclusion: Random Forest (RF) is confirmed as the most reliable tool for predicting recurrent extrahepatic bile duct stones post-common bile duct exploration, outperforming other models in generalization. SHAP analysis clarifies that max stone diameter, CBD diameter, and direct bilirubin (with nonlinear effects like stones >15 mm elevating risk) are key synergistic risks. This study enables personalized clinical risk assessment and targeted interventions to reduce postoperative recurrence.Keywords
This publication has 12 references indexed in Scilit:
- Comparative efficacy and safety of 3 endoscopic techniques for the treatment of large common bile duct stones (≥15 mm): long-term follow-upGastrointestinal Endoscopy, 2024
- A machine learning-based choledocholithiasis prediction tool to improve ERCP decision making: a proof-of-concept studyEndoscopy, 2023
- Risk factors for recurrent common bile duct stones: a systematic review and meta-analysisExpert Review of Gastroenterology & Hepatology, 2023
- Predicting the Recurrence of Common Bile Duct Stones After ERCP Treatment with Automated Machine Learning AlgorithmsDigestive Diseases and Sciences, 2023
- Percutaneous Transhepatic Papillary Balloon Dilation versus Endoscopic Retrograde Cholangiopancreatography for Common Bile Duct Stones: A Multicenter Prospective StudyRadiology, 2021
- Changes in plasma bile acids are associated with gallbladder stones and polypsBMC Gastroenterology, 2020
- Recurrence of common bile duct stones following laparoscopic common bile duct exploration: a multicenter studyJournal of Hepato-Biliary-Pancreatic Sciences, 2019
- Genetics of gallstone diseaseEuropean Journal of Clinical Investigation, 2018
- Long-term follow-up of common bile duct diameter after endoscopic sphincterotomy in patients with common bile duct stonesIndian Journal of Gastroenterology, 2010
- Random ForestsMachine Learning, 2001