Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan 9;25(1):13.
doi: 10.1186/s12911-024-02819-2.

Prediction of urinary tract infection using machine learning methods: a study for finding the most-informative variables

Affiliations

Prediction of urinary tract infection using machine learning methods: a study for finding the most-informative variables

Sajjad Farashi et al. BMC Med Inform Decis Mak. .

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.

PubMed Disclaimer

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

Fig. 1
Fig. 1
Comparison between UTI-infected and non-UTI (non-infected) cases, considering the most informative features
Fig. 2
Fig. 2
Correlation matrix of selected variables with categorical values. The color indicates the correlation value and each number indicates the p-value (*: p < 0.05, **: p < 0.01)
Fig. 3
Fig. 3
ROC curve for comparison of predictor performance for different age spans. AUC was 86.42 (0.17) (Age: 18–40), 87.71 (0.22) (Age: 40–60), and 89.42 (0.25) (Age > 60), respectively
Fig. 4
Fig. 4
ROC curve for comparison of predictor performance according to the gender. AUC was 91.42 (0.32) and 86.16 (0.23) for males and females, respectively

Similar articles

Cited by

References

    1. Stamm WE, Norrby SR. Urinary tract infections: disease panorama and challenges. J Infect Dis. 2001;183(Suppl 1):S1–4. 10.1086/318850. - PubMed
    1. Burton RJ, Albur M, Eberl M, Cuff SM. Using artificial intelligence to reduce diagnostic workload without compromising detection of urinary tract infections. BMC Med Inf Decis Mak. 2019;19(1):171. 10.1186/s12911-019-0878-9. - PMC - PubMed
    1. Goździkiewicz N, Zwolińska D, Polak-Jonkisz D. The Use of Artificial Intelligence algorithms in the diagnosis of urinary tract Infections-A literature review. J Clin Med. 2022;11. 10.3390/jcm11102734. - PMC - PubMed
    1. Taylor RA, Moore CL, Cheung K-H, Brandt C. Predicting urinary tract infections in the emergency department with machine learning. PLoS ONE. 2018;13(3):e0194085. 10.1371/journal.pone.0194085. - PMC - PubMed
    1. 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

LinkOut - more resources