首页|期刊导航|肝胆胰外科杂志|基于机器学习的肝硬化失代偿期患者多重耐药菌感染早期预测模型的构建

基于机器学习的肝硬化失代偿期患者多重耐药菌感染早期预测模型的构建OA

Construction of an early prediction model for multi-drug resistant organism infection in patients with decompensated cirrhosis based on machine learning

中文摘要英文摘要

目的 基于机器学习算法构建肝硬化失代偿期患者多重耐药菌(MDRO)感染的早期预测模型,为临床早期识别高危人群提供决策工具.方法 回顾性选取2022年3月至2024年11月间在宿迁市第一人民医院住院治疗的220例肝硬化失代偿期患者,根据是否发生MDRO感染将其分为MDRO感染组(n=61)和非MDRO感染组(n=159),采用Logistic回归分析确定构建MDRO感染预测模型的特征变量.研究按照7∶3比例将220例患者随机分为训练集(154例)和测试集(66例),基于机器学习算法构建支持向量机(SVM)、逻辑回归(LR)、梯度提升决策树(GBDT)、随机森林(RF)及极端梯度提升(XGBoost)5种预测模型,并评估、比较各模型的预测性能,采用沙普利加和解释(SHAP)值对最优模型进行解释.选取2024年12月至2025年3月期间宿迁市第一人民医院收治的68例符合相同纳排标准的肝硬化失代偿期患者,作为验证集,用于对最优模型进行外部验证.结果 220例肝硬化失代偿期患者MDRO感染发生率为27.73%(61/220);从61例MDRO感染患者中共分离出89株菌株,以革兰氏阳性菌为主,其中屎肠球菌(48.32%)、粪肠球菌(16.85%)合计占比高达65.17%;革兰氏阴性菌占比33.71%.分析显示,两组终末期肝病模型(MELD)评分、住院时间、侵入性操作、低蛋白血症、使用抗生素、C反应蛋白与白蛋白比值(CAR)差异有统计学意义(均P<0.05);Logistic回归分析显示,上述6种因素均为MDRO感染的独立危险因素(P<0.05).在SVM、LR、GBDT、RF及XGBoost 5 种 预 测 模 型 中,XGBoost 模型性能最优,在测试集上的受试者工作特征(ROC)曲线下面积(AUC)、准确率(accuracy)、召回率(recall)、精确率(precision)及F1分数(F1-score)均为最高;SHAP值可视化分析表明XGBoost模型各特征变量均对MDRO感染具有显著影响,特征重要性排序依次为CAR、住院时间、MELD评分、低蛋白血症、侵入性操作、使用抗生素;对验证集的分析显示,XGBoost模型在MDRO感染预测中的准确率为88.24%,Kappa值为0.722(95%CI 0.613-0.850).结论 基于MELD评分、住院时间、侵入性操作、低蛋白血症、使用抗生素、CAR构建的XGBoost预测模型可为肝硬化失代偿期患者MDRO感染的早期识别、风险分层及临床干预提供量化工具,帮助改善患者预后并促进抗菌药物的合理使用.

Objective This study aimed to develop a machine learning-based model for the early prediction of multi-drug resistant organism(MDRO)infection in patients with decompensated cirrhosis,providing a clinical decision-making tool for the early identification of high-risk groups.Methods A total of 220 patients with decompensated cirrhosis,hospitalized at Suqian First Hospital from March 2022 to November 2024,were retrospectively enrolled.Based on the occurrence of MDRO infection,they were classified into an MDRO infection group(n=61)and a non-MDRO infection group(n=159).Logistic regression analysis was performed to identify characteristic variables for the prediction model.The patients were randomly partitioned into a training set(154 cases)and a test set(66 cases)in a 7:3 ratio.Five predictive models—Support Vector Machine(SVM),Logistic Regression(LR),Gradient Boosting Decision Tree(GBDT),Random Forest(RF),and Extreme Gradient Boosting(XGBoost)—were constructed using machine learning algorithms.The predictive performance of each model was evaluated and compared.The optimal model was interpreted using SHapley Additive exPlanations(SHAP)values.A total of 68 patients with decompensated liver cirrhosis who met the same inclusion and exclusion criteria,admitted to Suqian First Hospital between December 2024 and March 2025,were selected as the validation cohort for external validation of the optimal model.Results Among 220 patients with decompensated cirrhosis,the incidence of MDRO infection was 27.73%(61/220).A total of 89 strains were isolated from these 61 patients,predominantly Gram-positive bacteria,with Enterococcus faecium(48.32%)and Enterococcus faecalis(16.85%)constituting 65.17%of the isolates.Gram-negative bacteria accounted for 33.71%of the isolates.Analysis revealed statistically significant difference between the two groups in terms of Model for End-stage Liver Disease(MELD)score,length of hospital stay,invasive procedures,hypoalbuminemia,antibiotic use,and C-reactive protein-to-albumin ratio(CAR)(P<0.05).Multivariate Logistic regression identified all these six indicators as independent risk factors for MDRO infection(P<0.05).Among the five prediction models—SVM,LR,GBDT,RF,and XGBoost—the XGBoost model achieved superior performance on the test set,demonstrating the highest area under the curve(AUC),accuracy,recall,precision,and F1-score.SHAP visualization analysis indicated that all feature variables in the XGBoost model significantly influenced MDRO infection,with feature importance ranked as follows:CAR,length of hospital stay,MELD score,hypoalbuminemia,invasive procedures,and antibiotic use.Analysis of a validation set showed that the XGBoost model had an accuracy of 88.24%and a Kappa value of 0.722(95%CI 0.613 to 0.850)for predicting MDRO infection.Conclusion The XGBoost prediction model developed using the MELD score,length of hospital stay,invasive procedures,hypoalbuminemia,antibiotic use,and CAR provides a quantitative tool for the early identification,risk stratification,and clinical intervention of MDRO infection in patients with decompensated cirrhosis,thereby improving patients prognosis and promoting the rational application of antibacterial agents.

韩笑笑;张振江;温欢欢

宿迁市第一人民医院感染病科,江苏 宿迁 223800宿迁市第一人民医院感染病科,江苏 宿迁 223800上海中医药大学附属龙华医院感染病科,上海 200032

医药卫生

肝硬化失代偿期多重耐药菌感染机器学习XGBoost模型风险预测SHAP值

cirrhosisdecompensated stagemulti-drug resistant organism(MDRO)infectionmachine learningXGBoost modelrisk predictionSHAP value

《肝胆胰外科杂志》 2026 (9)

626-633,8

10.11952/j.issn.1007-1954.2026.09.004

评论