Endoscopy 2024; 56(03): 165-171
DOI: 10.1055/a-2174-0534
Original article

A machine learning-based choledocholithiasis prediction tool to improve ERCP decision making: a proof-of-concept study

Steven N. Steinway
1   Division of Gastroenterology and Hepatology, Johns Hopkins Medical Institutions, Baltimore, United States
,
Bohao Tang
2   Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health, Baltimore, United States
,
Jeremy Telezing
2   Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health, Baltimore, United States
,
Aditya Ashok
1   Division of Gastroenterology and Hepatology, Johns Hopkins Medical Institutions, Baltimore, United States
,
Ayesha Kamal
1   Division of Gastroenterology and Hepatology, Johns Hopkins Medical Institutions, Baltimore, United States
,
Chung Yao Yu
3   Division of Gastroenterology, University of Southern California Keck School of Medicine, Los Angeles, United States (Ringgold ID: RIN12223)
,
4   Department of Gastroenterology, Asian Institute of Gastroenterology, Hyderabad, India (Ringgold ID: RIN78470)
,
James L. Buxbaum
5   Division of Gastroenterology, University of Southern California Keck School of Medicine, San Francisco, United States
,
Joseph Elmunzer
6   Division of Gastroenterology and Hepatology, Medical University of South Carolina, Charleston, United States
,
Sachin B. Wani
7   Division of Gastroenterology, University of Colorado Anschutz Medical Campus, Aurora, United States
,
Mouen A. Khashab
1   Division of Gastroenterology and Hepatology, Johns Hopkins Medical Institutions, Baltimore, United States
,
Brian S. Caffo
2   Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health, Baltimore, United States
,
1   Division of Gastroenterology and Hepatology, Johns Hopkins Medical Institutions, Baltimore, United States
› Author Affiliations


Abstract

Background Previous studies demonstrated limited accuracy of existing guidelines for predicting choledocholithiasis, leading to overutilization of endoscopic retrograde cholangiopancreatography (ERCP). More accurate stratification may improve patient selection for ERCP and allow use of lower-risk modalities.

Methods A machine learning model was developed using patient information from two published cohort studies that evaluated performance of guidelines in predicting choledocholithiasis. Prediction models were developed using the gradient boosting model (GBM) machine learning method. GBM performance was evaluated using 10-fold cross-validation and area under the receiver operating characteristic curve (AUC). Important predictors of choledocholithiasis were identified based on relative importance in the GBM.

Results 1378 patients (mean age 43.3 years; 61.2% female) were included in the GBM and 59.4% had choledocholithiasis. Eight variables were identified as predictors of choledocholithiasis. The GBM had accuracy of 71.5% (SD 2.5%) (AUC 0.79 [SD 0.06]) and performed better than the 2019 American Society for Gastrointestinal Endoscopy (ASGE) guidelines (accuracy 62.4% [SD 2.6%]; AUC 0.63 [SD 0.03]) and European Society of Gastrointestinal Endoscopy (ESGE) guidelines (accuracy 62.8% [SD 2.6%]; AUC 0.67 [SD 0.02]). The GBM correctly categorized 22% of patients directed to unnecessary ERCP by ASGE guidelines, and appropriately recommended as the next management step 48% of ERCPs incorrectly rejected by ESGE guidelines.

Conclusions A machine learning-based tool was created, providing real-time, personalized, objective probability of choledocholithiasis and ERCP recommendations. This more accurately directed ERCP use than existing ASGE and ESGE guidelines, and has the potential to reduce morbidity associated with ERCP or missed choledocholithiasis.

Supplementary Material



Publication History

Received: 05 March 2023

Accepted after revision: 12 September 2023

Accepted Manuscript online:
12 September 2023

Article published online:
29 November 2023

© 2023. Thieme. All rights reserved.

Georg Thieme Verlag KG
Rüdigerstraße 14, 70469 Stuttgart, Germany