BMC urology

Using interpretable machine learning model to predict orchiectomy after testicular torsion.

Pengfeng Gong, Xuan Wen, Jun Zhou, Cheng Chen, Zinong Tian, You Zhao, Tianwei Zhang

Department of Urology, The Third Affiliated Hospital of Soochow University, Changzhou, China. · Department of Urology, The Third Affiliated Hospital of Sun Yat-sen University, Guangzhou, China.

Computational · n=204

Key points

From the paper's conclusion
  • We developed and internally validated interpretable ML models for predicting orchiectomy risk in patients with testicular torsion. The LightGBM model, incorporating seven predictors, showed promising performance for perioperative risk assessment. Further external validation is required before routine clinical implementation.

Abstract

BACKGROUND: This study aimed to develop and evaluate machine learning (ML) models for the perioperative prediction of orchiectomy in patients with testicular torsion. METHODS: We conducted a retrospective analysis of 204 patients with intraoperatively confirmed testicular torsion who underwent surgical exploration between January 2003 and April 2025. The patient cohort was partitioned into a training set (70%) and a testing set (30%) using stratified sampling. Least Absolute Shrinkage and Selection Operator (LASSO) regression was employed to identify seven predictors. Subsequently, five ML models were developed using these predictors. Five-fold cross-validation was applied during model development in the training set, and the final models were evaluated in the testing set. Model performance was evaluated using the area under the receiver operating characteristic curve (AUC), accuracy, sensitivity, and specificity. Shapley Additive Explanations (SHAP) were used to assess model interpretability and quantify the contribution of each feature to model predictions. RESULTS: Among the five ML models, the Light Gradient Boosting Machine (LightGBM) model demonstrated the best overall predictive performance in the testing set, with an AUC of 0.8902 (95% confidence interval [CI]: 0.7937-0.9866) and an accuracy of 0.8710. SHAP analysis identified symptom duration as the most influential predictor, followed by fibrinogen, markedly reduced or absent testicular blood flow on initial ultrasonography, degree of torsion, manual detorsion at first presentation, lymphocyte-to-monocyte ratio (LMR), and abdominal pain. CONCLUSION: We developed and internally validated interpretable ML models for predicting orchiectomy risk in patients with testicular torsion. The LightGBM model, incorporating seven predictors, showed promising performance for perioperative risk assessment. Further external validation is required before routine clinical implementation.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Using interpretable machine learning model to predict orchiectomy after testicular torsion — Science Skim