Interpretable machine learning-based model for predicting postoperative urinary tract infection after minimally invasive surgery for upper urinary tract calculi: development and external validation
This study sought to develop and externally validate an interpretable machine learning–based model to predict the risk of urinary tract infection (UTI) following minimally invasive surgery (MIS) in patients with upper urinary tract calculi. Clinical data from patients suffering upper urinary tract calculi who received MIS in the Department of Urology at our institution in 2024 were retrospectively collected as the development cohort. Data from another tertiary center were collected for external validation. Univariate analysis focused on identifying variables significantly associated with postoperative UTI, alongside feature selection with least absolute shrinkage and selection operator (LASSO) regression. A total of eight machine learning algorithms—logistic regression, K-nearest neighbors (KNN), support vector machine (SVM), Gaussian naive Bayes (GNB), elastic net, extreme gradient boosting (XGBoost), random forest, and Multilayer Perceptron (MLP)—were used to build prediction models. The performance of the models was quantified via receiver operating characteristic (ROC) curves. SHapley Additive exPlanation (SHAP) was adopted to more clearly explain the best-performance model. Among the 546 patients with 65 clinical variables included in the study, 62 developed postoperative UTI, yielding an infection rate of 11.35%. LASSO regression identified seven key predictors: urine specific gravity, platelet-to-albumin ratio (PAR), C-reactive protein (CRP), planned surgical approach, urinary white blood cell count, nitrite, and leukocyte esterase. Among all models, XGBoost showed the best discriminative performance, yielding an area under the curve (AUC) of 0.716 in the external validation cohort. An interpretable machine learning model based on readily available clinical parameters showed moderate discrimination in the external validation cohort and may assist in identifying patients at increased risk of postoperative UTI. Further prospective evaluation is required before clinical implementation.
Authors
- Zuheng Wang
- Yang Wang (ORCID: https://orcid.org/0000-0002-6630-8425)
- Fubo Wang
- Qianshi Jiang
- Fanchang Zeng
- Jiaquan Zhou
- Jing Yang
Institutions
- Guangxi Medical University (CN)
- First Affiliated Hospital of GuangXi Medical University (CN)
- Hainan General Hospital (CN)
- Hainan Medical University (CN)
Publication Details
- Journal
- BMC Urology
- Published
- 2026-09-28
- DOI
- https://doi.org/10.1186/s12894-026-02381-1
- Primary Topic
- Urinary Tract Infections Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00