Prediction of urinary tract infection using machine learning methods: a study for finding the most-informative variables
- PMID: 39789596
- PMCID: PMC11715496
- DOI: 10.1186/s12911-024-02819-2
Prediction of urinary tract infection using machine learning methods: a study for finding the most-informative variables
Abstract
Background: Urinary tract infection (UTI) is a frequent health-threatening condition. Early reliable diagnosis of UTI helps to prevent misuse or overuse of antibiotics and hence prevent antibiotic resistance. The gold standard for UTI diagnosis is urine culture which is a time-consuming and also an error prone method. In this regard, complementary methods are demanded. In the recent decade, machine learning strategies that employ mathematical models on a dataset to extract the most informative hidden information are the center of interest for prediction and diagnosis purposes.
Method: In this study, machine learning approaches were used for finding the important variables for a reliable prediction of UTI. Several types of machines including classical and deep learning models were used for this purpose.
Results: Eighteen selected features from urine test, blood test, and demographic data were found as the most informative features. Factors extracted from urine such as WBC, nitrite, leukocyte, clarity, color, blood, bilirubin, urobilinogen, and factors extracted from blood test like mean platelet volume, lymphocyte, glucose, red blood cell distribution width, and potassium, and demographic data such as age, gender and previous use of antibiotics were the determinative factors for UTI prediction. An ensemble combination of XGBoost, decision tree, and light gradient boosting machines with a voting scheme obtained the highest accuracy for UTI prediction (AUC: 88.53 (0.25), accuracy: 85.64 (0.20)%), according to the selected features. Furthermore, the results showed the importance of gender and age for UTI prediction.
Conclusion: This study highlighted the potential of machine learning strategies for UTI prediction.
Keywords: Feature extraction; Machine learning; Prediction; Urinary tract infection.
© 2024. The Author(s).
Conflict of interest statement
Declarations. Ethical approval: Not applicable. Consent for publication: Not applicable. Consent to participate: Not applicable. Competing interests: The authors declare no competing interests.
Figures




Similar articles
-
Predicting urinary tract infections in the emergency department with machine learning.PLoS One. 2018 Mar 7;13(3):e0194085. doi: 10.1371/journal.pone.0194085. eCollection 2018. PLoS One. 2018. PMID: 29513742 Free PMC article.
-
Adaptation and External Validation of Pathogenic Urine Culture Prediction in Primary Care Using Machine Learning.Ann Fam Med. 2023 Jan-Feb;21(1):11-18. doi: 10.1370/afm.2902. Ann Fam Med. 2023. PMID: 36690486 Free PMC article.
-
Prediction of risk of acquiring urinary tract infection during hospital stay based on machine-learning: A retrospective cohort study.PLoS One. 2021 Mar 31;16(3):e0248636. doi: 10.1371/journal.pone.0248636. eCollection 2021. PLoS One. 2021. PMID: 33788888 Free PMC article.
-
Artificial intelligence and machine learning applications in urinary tract infections identification and prediction: a systematic review and meta-analysis.World J Urol. 2024 Aug 1;42(1):464. doi: 10.1007/s00345-024-05145-4. World J Urol. 2024. PMID: 39088072
-
Recurrent Urinary Tract Infections in Females and the Overlap with Overactive Bladder.Curr Urol Rep. 2018 Sep 13;19(11):94. doi: 10.1007/s11934-018-0839-3. Curr Urol Rep. 2018. PMID: 30215140 Review.
Cited by
-
Early detection of positive urine culture in patients with urolithiasis: a machine learning model with dynamic online nomogram.Ann Med. 2025 Dec;57(1):2550582. doi: 10.1080/07853890.2025.2550582. Epub 2025 Aug 25. Ann Med. 2025. PMID: 40853723 Free PMC article.
-
Artificial Neural Network for the Fast Screening of Samples from Suspected Urinary Tract Infections.Antibiotics (Basel). 2025 Jul 30;14(8):768. doi: 10.3390/antibiotics14080768. Antibiotics (Basel). 2025. PMID: 40867963 Free PMC article.
References
-
- Stamm WE, Norrby SR. Urinary tract infections: disease panorama and challenges. J Infect Dis. 2001;183(Suppl 1):S1–4. 10.1086/318850. - PubMed
-
- Choi MH, Kim D, Park Y, Jeong SH. Development and validation of artificial intelligence models to predict urinary tract infections and secondary bloodstream infections in adult patients. J Infect Public Health. 2024;17(1):10–7. 10.1016/j.jiph.2023.10.021. - PubMed
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Medical