Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Dec;5(4):224-231.
doi: 10.1016/j.livres.2021.10.001. Epub 2021 Oct 22.

Machine learning models compared to existing criteria for noninvasive prediction of endoscopic retrograde cholangiopancreatography-confirmed choledocholithiasis

Affiliations

Machine learning models compared to existing criteria for noninvasive prediction of endoscopic retrograde cholangiopancreatography-confirmed choledocholithiasis

Camellia Dalai et al. Liver Res. 2021 Dec.

Abstract

Background and aims: Noninvasive predictors of choledocholithiasis have generally exhibited marginal performance characteristics. We aimed to identify noninvasive independent predictors of endoscopic retrograde cholangiopancreatography (ERCP)-confirmed choledocholithiasis and accordingly developed predictive machine learning models (MLMs).

Methods: Clinical data of consecutive patients undergoing first-ever ERCP for suspected choledocholithiasis from 2015-2019 were abstracted from a prospectively-maintained database. Multiple logistic regression was used to identify predictors of ERCP-confirmed choledocholithiasis. MLMs were then trained to predict ERCP-confirmed choledocholithiasis using pre-ERCP ultrasound (US) imaging only and separately using all available noninvasive imaging (US/CT/magnetic resonance cholangiopancreatography). The diagnostic performance of American Society for Gastrointestinal Endoscopy (ASGE) "high-likelihood" criteria was compared to MLMs.

Results: We identified 270 patients (mean age 46 years, 62.2% female, 73.7% Hispanic/Latino, 59% with noninvasive imaging positive for choledocholithiasis) with native papilla who underwent ERCP for suspected choledocholithiasis, of whom 230 (85.2%) were found to have ERCP-confirmed choledocholithiasis. Logistic regression identified choledocholithiasis on noninvasive imaging (odds ratio (OR) = 3.045, P = 0.004) and common bile duct (CBD) diameter on noninvasive imaging (OR=1.157, P = 0.011) as predictors of ERCP-confirmed choledocholithiasis. Among the various MLMs trained, the random forest-based MLM performed best; sensitivity was 61.4% and 77.3% and specificity was 100% and 75.0%, using US-only and using all available imaging, respectively. ASGE high-likelihood criteria demonstrated sensitivity of 90.9% and specificity of 25.0%; using cut-points achieving this specificity, MLMs achieved sensitivity up to 97.7%.

Conclusions: MLMs using age, sex, race, presence of diabetes, fever, body mass index (BMI), total bilirubin, maximum CBD diameter, and choledocholithiasis on pre-ERCP noninvasive imaging predict ERCP-confirmed choledocholithiasis with good sensitivity and specificity and outperform the ASGE criteria for patients with suspected choledocholithiasis.

Keywords: Bile duct disorders; Common bile duct stones; Endoscopic retrograde cholangiopancreatography (ERCP); Gallstones; Machine learning models (MLMs); Noninvasive imaging.

PubMed Disclaimer

Conflict of interest statement

Declaration of competing interest The authors declare that they have no conflict of interest.

Figures

Fig. 1
Fig. 1
ERCP indication and outcome flow diagram. Study flow diagram demonstrating proportion of ERCPs performed for suspected choledocholithiasis, presence or absence of choledocholithiasis on noninvasive imaging, and subsequent ERCP result (confirmed choledocholithiasis or absence thereof). Abbreviations: CBD, common bile duct; ERCP, endoscopic retrograde cholangiopancreatography; US, ultrasound.
Fig. 2
Fig. 2
Multiple logistic regression model with demographic, biochemical, and radiological predictors of ERCP-confirmed choledocholithiasis assessed using (a) US only and (b) all available noninvasive imaging modalities. Abbreviations: CBD, common bile duct; ERCP, endoscopic retrograde cholangiopancreatography; US, ultrasound.
Fig. 3
Fig. 3
Receiver operator characteristic curves for MLMs trained to predict the presence of ERCP-confirmed choledocholithiasis. Model fit using predictors assessed on (a) US only and (b) all available noninvasive imaging modalities. AUC could not be calculated for the ASGE high-likelihood criteria because applying the criteria to our dataset does not generate class membership properties. The performance of the ASGE criteria is expressed as a single point here. Abbreviations: ASGE, American Society for Gastroenterology; AUC, area under the receiver operator characteristic curve; ERCP, endoscopic retrograde cholangiopancreatography; GLM, generalized linear model; MLM, machine learning model; RBF, radial basis function; SVM, support vector machine; US, ultrasound.

References

    1. Peery AF, Dellon ES, Lund J, et al. Burden of gastrointestinal disease in the United States: 2012 update. Gastroenterology. 2012;143:1179–1187(e3). doi: 10.1053/j.gastro.2012.08.002. - DOI - PMC - PubMed
    1. Russo MW, Wei JT, Thiny MT, et al. Digestive and liver diseases statistics. Gastroenterology. 2004;126:1448–1453. doi: 10.1053/j.gastro.2004.01.025. 2004. - DOI - PubMed
    1. Acalovschi M. Cholesterol gallstones: from epidemiology to prevention. Postgrad Med J. 2001;77:221–229. doi: 10.1136/pmj.77.906.221. - DOI - PMC - PubMed
    1. Bass G, Gilani SN, Walsh TN. Validating the 5Fs mnemonic for cholelithiasis: time to include family history. Postgrad Med J. 2013;89:638–641. doi: 10.1136/postgradmedj-2012-131341. - DOI - PubMed
    1. Chapman BA, Wilson IR, Frampton CM, et al. Prevalence of gallbladder disease in diabetes mellitus. Dig Dis Sci. 1996;41:2222–2228. doi: 10.1007/BF02071404. - DOI - PubMed