Department of General Surgery, Royal Hobart Hospital, Hobart, Tasmania, Australia.
Tasmanian School of Medicine, University of Tasmania, Hobart, Tasmania, Australia.
ANZ J Surg. 2024 Jul-Aug;94(7-8):1260-1265. doi: 10.1111/ans.18950. Epub 2024 Mar 25.
Prompt diagnosis of choledocholithiasis is crucial for reducing disease severity, preventing complications and minimizing length of stay. Magnetic resonance cholangiopancreatography (MRCP) is commonly used to evaluate patients with suspected choledocholithiasis but is expensive and may delay definitive intervention. To optimize patient care and resource utilization, we have developed five machine learning models that predict a patients' risk of choledocholithiasis based on clinical presentation and pre-MRCP investigation results.
Inpatients admitted to the Royal Hobart Hospital from 2018 to 2023 with a suspicion of choledocholithiasis were included. Exclusion criteria included prior hepatobiliary surgery, known hepatobiliary disease, or incomplete records. Variables related to clinical presentation, laboratory testing, and sonographic or CT imaging were collected. Four machine learning techniques were employed: logistic regression, XGBoost, random forest, and K-nearest neighbours. The three best performing models were combined to create an ensemble model. Model performance was compared against the American Society for Gastrointestinal Endoscopy (ASGE) choledocholithiasis risk stratification guidelines.
Of the 222 patients included, 113 (50.9%) had choledocholithiasis. The most successful models were the random forest (accuracy: 0.79, AUROC: 0.83) and ensemble (accuracy and AUROC: 0.81). Every model outperformed the ASGE guidelines. Key variables influencing the models' predictions included common bile duct diameter, lipase, imaging evidence of cholelithiasis, and liver function tests.
Machine learning models can accurately assess a patient's risk of choledocholithiasis and could assist in identifying patients who could forgo an MRCP and proceed directly to intervention. Ongoing validation on prospective data is necessary to refine their accuracy and clinical utility.
及时诊断胆总管结石对于减轻疾病严重程度、预防并发症和缩短住院时间至关重要。磁共振胰胆管成像(MRCP)常用于评估疑似胆总管结石的患者,但费用较高,且可能会延迟明确的干预措施。为了优化患者护理和资源利用,我们开发了五种机器学习模型,这些模型基于临床表现和 MRCP 检查前的结果预测患者患胆总管结石的风险。
纳入 2018 年至 2023 年期间因怀疑患有胆总管结石而入住皇家霍巴特医院的住院患者。排除标准包括既往肝胆手术、已知肝胆疾病或记录不完整的患者。收集与临床表现、实验室检查以及超声或 CT 成像相关的变量。采用逻辑回归、XGBoost、随机森林和 K-最近邻四种机器学习技术。将表现最佳的三种模型结合起来创建一个集成模型。将模型性能与美国胃肠内镜学会(ASGE)的胆总管结石风险分层指南进行比较。
在纳入的 222 名患者中,113 名(50.9%)患有胆总管结石。表现最成功的模型是随机森林(准确性:0.79,AUROC:0.83)和集成模型(准确性和 AUROC:0.81)。每个模型的表现均优于 ASGE 指南。影响模型预测的关键变量包括胆总管直径、脂肪酶、影像学提示胆石症和肝功能检查。
机器学习模型可以准确评估患者患胆总管结石的风险,有助于识别可以避免 MRCP 并直接进行干预的患者。需要对前瞻性数据进行进一步验证,以提高其准确性和临床实用性。