Construction and validation of an interpretable XGBoost machine learning model to predict ESBL positivity rates based on urinalysis data.

IF 3.7 3区 医学 Q2 INFECTIOUS DISEASES
Lulu Zhang, Shaokui Hua, Yu Zhang, Yan Jiang, Qunlian Huang, Baoyuan Chang, Dengke Li
{"title":"Construction and validation of an interpretable XGBoost machine learning model to predict ESBL positivity rates based on urinalysis data.","authors":"Lulu Zhang, Shaokui Hua, Yu Zhang, Yan Jiang, Qunlian Huang, Baoyuan Chang, Dengke Li","doi":"10.1007/s10096-025-05155-z","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Microbiological culture and drug susceptibility testing of urine samples have lengthy turnaround times, increasing the risk of extended-spectrum β-lactamase (ESBL)-positive urinary tract infection (UTI) patients progressing to sepsis.</p><p><strong>Objective: </strong>To develop an efficient machine learning model for the identification of ESBL positivity in UTI patients.</p><p><strong>Methods: </strong>This retrospective study included 528 samples that had undergone drug susceptibility testing, based on inclusion and exclusion criteria. Variables were screened using Lasso regression, with 70% of the samples used to construct nine machine learning models (XGBClassifier, LogisticRegression, LGBMClassifier, AdaBoostClassifier, SVC, MLPClassifier, ComplementNB, GaussianNB, and GradientBoostingClassifier). Model selection was based on criteria including accuracy, sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), F1 score, Kappa score, and Area Under the Curve (AUC). The best model type was identified through ten-fold cross-validation, which was then built using the remaining 30% of the data as a test set. Interpretations of predictive results were provided using the SHAP model, clarifying the impact of each feature on predictions and enhancing model transparency and interpretability.</p><p><strong>Results: </strong>The variables selected by the Lasso regression model are as follows: gender + urinary protein + urobilinogen + leukocytes + occult blood + age + pH + specific gravity + leukocyte count + erythrocyte count + epithelial cell count + cast count.The XGBoost model outperformed others in ten-fold cross-validation, with scores on the validation set as follows: AUC (95%CI): 0.924 (0.860-0.989); cutoff: 0.664(0.637-0.690); accuracy: 0.862(0.839-0.885); sensitivity: 0.9(0.879-0.920); specificity: 0.725(0.618-0.832); PPV: 0.923(0.896-0.950); NPV: 0.667(0.626-0.707); F1 score: 0.911(0.896-0.925); Kappa: 0.603(0.527-0.679). The final model achieved an AUC of 0.968 and accuracy of 0.943 on the test set.</p><p><strong>Conclusion: </strong>This study developed a rapid and efficient machine learning model capable of identifying ESBL positivity based solely on routine urine test data.</p>","PeriodicalId":11782,"journal":{"name":"European Journal of Clinical Microbiology & Infectious Diseases","volume":" ","pages":""},"PeriodicalIF":3.7000,"publicationDate":"2025-05-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"European Journal of Clinical Microbiology & Infectious Diseases","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1007/s10096-025-05155-z","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"INFECTIOUS DISEASES","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Microbiological culture and drug susceptibility testing of urine samples have lengthy turnaround times, increasing the risk of extended-spectrum β-lactamase (ESBL)-positive urinary tract infection (UTI) patients progressing to sepsis.

Objective: To develop an efficient machine learning model for the identification of ESBL positivity in UTI patients.

Methods: This retrospective study included 528 samples that had undergone drug susceptibility testing, based on inclusion and exclusion criteria. Variables were screened using Lasso regression, with 70% of the samples used to construct nine machine learning models (XGBClassifier, LogisticRegression, LGBMClassifier, AdaBoostClassifier, SVC, MLPClassifier, ComplementNB, GaussianNB, and GradientBoostingClassifier). Model selection was based on criteria including accuracy, sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), F1 score, Kappa score, and Area Under the Curve (AUC). The best model type was identified through ten-fold cross-validation, which was then built using the remaining 30% of the data as a test set. Interpretations of predictive results were provided using the SHAP model, clarifying the impact of each feature on predictions and enhancing model transparency and interpretability.

Results: The variables selected by the Lasso regression model are as follows: gender + urinary protein + urobilinogen + leukocytes + occult blood + age + pH + specific gravity + leukocyte count + erythrocyte count + epithelial cell count + cast count.The XGBoost model outperformed others in ten-fold cross-validation, with scores on the validation set as follows: AUC (95%CI): 0.924 (0.860-0.989); cutoff: 0.664(0.637-0.690); accuracy: 0.862(0.839-0.885); sensitivity: 0.9(0.879-0.920); specificity: 0.725(0.618-0.832); PPV: 0.923(0.896-0.950); NPV: 0.667(0.626-0.707); F1 score: 0.911(0.896-0.925); Kappa: 0.603(0.527-0.679). The final model achieved an AUC of 0.968 and accuracy of 0.943 on the test set.

Conclusion: This study developed a rapid and efficient machine learning model capable of identifying ESBL positivity based solely on routine urine test data.

基于尿检数据预测ESBL阳性率的可解释XGBoost机器学习模型的构建与验证
背景:尿样微生物培养和药敏试验周期长,增加了广谱β-内酰胺酶(ESBL)阳性尿路感染(UTI)患者发展为败血症的风险。目的:建立一种高效的机器学习模型来识别尿路感染患者的ESBL阳性。方法:采用纳入和排除标准,对528份经药敏试验的样品进行回顾性研究。使用Lasso回归筛选变量,其中70%的样本用于构建9个机器学习模型(XGBClassifier, LogisticRegression, LGBMClassifier, AdaBoostClassifier, SVC, MLPClassifier, ComplementNB, GaussianNB和GradientBoostingClassifier)。模型选择的标准包括准确性、敏感性、特异性、阳性预测值(PPV)、阴性预测值(NPV)、F1评分、Kappa评分和曲线下面积(AUC)。通过十倍交叉验证确定最佳模型类型,然后使用剩余30%的数据作为测试集构建模型类型。使用SHAP模型对预测结果进行了解释,阐明了每个特征对预测的影响,提高了模型的透明度和可解释性。结果:Lasso回归模型选取的变量为:性别+尿蛋白+尿胆素原+白细胞+隐血+年龄+ pH +比重+白细胞计数+红细胞计数+上皮细胞计数+铸型计数。XGBoost模型在十倍交叉验证中优于其他模型,验证集得分为:AUC (95%CI): 0.924 (0.860-0.989);截止:0.664 (0.637 - -0.690);准确性:0.862 (0.839 - -0.885);灵敏度:0.9 (0.879 - -0.920);特异性:0.725 (0.618 - -0.832);PPV: 0.923 (0.896 - -0.950);净现值:0.667 (0.626 - -0.707);F1评分:0.911(0.896-0.925);卡帕:0.603(0.527 - -0.679)。最终模型在测试集上的AUC为0.968,准确率为0.943。结论:本研究开发了一种快速有效的机器学习模型,能够仅根据常规尿检数据识别ESBL阳性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
10.40
自引率
2.20%
发文量
138
审稿时长
1 months
期刊介绍: EJCMID is an interdisciplinary journal devoted to the publication of communications on infectious diseases of bacterial, viral and parasitic origin.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信