Predicting High Urinary Tract Infection Rates in Skilled Nursing Facilities: A Machine Learning Approach.
Diane Dolezel, Tiankai Wang, Denise Gobert
Abstract
Open AccessObjectives: Urinary tract infections (UTIs) are the most common healthcare-associated infections in Skilled Nursing Facilities (SNFs); they are associated with longer lengths of stay, higher levels of care, increased treatment costs, and higher mortality rates. This study aimed to develop a machine learning classification model to predict the risk of high catheter-associated urinary tract infection rates based on SNF characteristics. Methods: We analyzed 94,877 total SNF-year observations from 2019 to 2024, not unique facilities; thus, individual SNFs may appear in multiple years. The factor variables were average length of stay in days, number of staffed beds, total nurse and total physical therapy staffing hours per resident per day, facility ownership, geographic classification, facility accreditation, Accountable Care Organization affiliations, Centers for Medicare and Medicaid Services SNF Overall Star Rating, and the SNF-year of the observations. We utilized three machine learning models for this analysis: Random Forest, XGBoost, and LightGBM. We used Shapley Additive exPlanations to interpret the best-performing machine learning model by visualizing feature importance and examining the relationship between key predictors and the outcome. Results: We found that machine learning models outperformed traditional logistic regression in predicting UTIs in skilled nursing facilities. Using the best-performing model, Random Forest, we identified rural SNFs, and the number of staffed beds as the most influential predictors of high UTI rates, followed by average length of stay, and geographic location. Conclusions: This study demonstrates the value of using facility-level characteristics to predict the risk of UTIs in SNFs with machine learning models. Results from this study can inform infection prevention efforts in post-acute care settings.