<!DOCTYPE article
PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "JATS-archivearticle1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><?properties manuscript?><processing-meta base-tagset="archiving" mathml-version="3.0" table-model="xhtml" tagset-family="jats"><restricted-by>pmc</restricted-by></processing-meta><front><journal-meta><journal-id journal-id-type="nlm-journal-id">8007166</journal-id><journal-id journal-id-type="pubmed-jr-id">4796</journal-id><journal-id journal-id-type="nlm-ta">J Hosp Infect</journal-id><journal-id journal-id-type="iso-abbrev">J Hosp Infect</journal-id><journal-title-group><journal-title>The Journal of hospital infection</journal-title></journal-title-group><issn pub-type="ppub">0195-6701</issn><issn pub-type="epub">1532-2939</issn></journal-meta><article-meta><article-id pub-id-type="pmid">40339918</article-id><article-id pub-id-type="pmc">12875383</article-id><article-id pub-id-type="doi">10.1016/j.jhin.2025.04.024</article-id><article-id pub-id-type="manuscript">HHSPA2136801</article-id><article-categories><subj-group subj-group-type="heading"><subject>Article</subject></subj-group></article-categories><title-group><article-title>Comparative Analysis of Machine Learning Models for Predicting Hospital- and Community-Associated Urinary Tract Infections Using Demographic, Hospital, and Socioeconomic Predictors</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>Arjmand</surname><given-names>Arash</given-names></name><xref rid="A1" ref-type="aff">1</xref></contrib><contrib contrib-type="author"><name><surname>Bani-Yaghoub</surname><given-names>Majid</given-names></name><xref rid="A1" ref-type="aff">1</xref><xref rid="CR1" ref-type="corresp">*</xref></contrib><contrib contrib-type="author"><name><surname>Sutkin</surname><given-names>Gary</given-names></name><xref rid="A2" ref-type="aff">2</xref></contrib><contrib contrib-type="author"><name><surname>Corkran</surname><given-names>Kiel</given-names></name><xref rid="A1" ref-type="aff">1</xref></contrib><contrib contrib-type="author"><name><surname>Paschal</surname><given-names>Susanna</given-names></name><xref rid="A3" ref-type="aff">3</xref></contrib></contrib-group><aff id="A1"><label>1</label>Division of Computing, Analytics and Mathematics, School of Science and Engineering, University of Missouri-Kansas City, Kansas City, MO 64110, USA.</aff><aff id="A2"><label>2</label>Department of Biomedical and Health Informatics, School of Medicine, University of Missouri-Kansas City, Kansas City, MO 64108, USA</aff><aff id="A3"><label>3</label>University Health, Kansas City Hospital 2301 Holmes Street, Kansas City, MO 64108, USA</aff><author-notes><corresp id="CR1"><label>*</label>Corresponding author <email>baniyaghoubm@umkc.edu</email></corresp></author-notes><pub-date pub-type="nihms-submitted"><day>30</day><month>1</month><year>2026</year></pub-date><pub-date pub-type="ppub"><month>8</month><year>2025</year></pub-date><pub-date pub-type="epub"><day>06</day><month>5</month><year>2025</year></pub-date><pub-date pub-type="pmc-release"><day>05</day><month>2</month><year>2026</year></pub-date><volume>162</volume><fpage>263</fpage><lpage>271</lpage><abstract id="ABS1"><sec id="S1"><title>Background:</title><p id="P1">Urinary tract infections (UTI) are among the most common infections encountered in both community and healthcare settings. Differentiating between community-associated UTI (CA-UTI) and healthcare-associated UTI (HA-UTI) is crucial for understanding their epidemiology, identifying risk factors, and developing appropriate treatment strategies. Machine learning (ML) techniques have shown significant potential in improving the accuracy of predicting these infections, enabling more effective interventions and better patient outcomes. While previous studies have demonstrated the utility of ML models in various healthcare settings, there is still a need for a comparative analysis of different ML approaches, particularly in distinguishing between CA-UTI and HA-UTI and assessing the risk of UTI among hospitalized patients.</p></sec><sec id="S2"><title>Objective:</title><p id="P2">Using 2019&#x02013;2023 patient demographics, hospital, and socioeconomic data, this study aims to build, validate, and compare machine learning models&#x02014;Decision Tree (DT), Neural Network (NN), Logistic Regression (LR), Random Forest (RF), and Extreme Gradient Boosting (XGBoost) to differentiate between the incidences of HA-UTI and CA-UTI. Additionally, it seeks to identify key predictors of UTI using demographic, hospital, and socioeconomic variables.</p></sec><sec id="S3"><title>Results:</title><p id="P3">The <bold>DT</bold> model demonstrated the highest sensitivity, particularly in handling the highly imbalanced data of HAI, with a sensitivity of 87%. <bold>LR</bold> achieved the best overall accuracy, at 95.9% for HA-UTI and 93.2% for HA-UTI vs. CA-UTI. <bold>RF</bold> performed best in cross-validation, reaching 99.1% for HA-UTI and 96.2% for HA-UTI vs. CA-UTI. <bold>NN</bold> showed the highest specificity, at 93.4%, for HA-UTI vs. CA-UTI. The <bold>AUC</bold> values further supported these findings, ranging from 71.9% for <bold>NN</bold> to 96% for <bold>RF</bold>, reflecting the robustness of these models across different annual datasets. Among patient demographics, hospital, and socioeconomic variables, all models consistently identified the nurse units (e.g., inpatient units and mental health units) as the most significant predictors of UTI. In addition to nurse units, <bold>LR</bold> and <bold>DT</bold> identified location (e.g., various clinics and medical centers) as a key predictor. For HA-UTI versus CA-UTI, variations were observed across the years, with patient age, median household income, and gender intermittently emerging as key predictors.</p></sec><sec id="S4"><title>Conclusion:</title><p id="P4">The predictive accuracy of the machine learning models is relatively the same, with some differences in sensitivity and specificity for identifying both HA-UTI vs. CA-UTI and HA-UTI. Nurse units consistently emerge as the most significant predictors across all years. The importance of all predictors, such as socioeconomic factors and location, varies from year to year, highlighting the need for incorporating those variables in the surveillance systems to optimize the accuracy of predictions.</p></sec></abstract><kwd-group><kwd>Urinary tract infection</kwd><kwd>community-associated infection</kwd><kwd>healthcare-associated infection</kwd><kwd>machine learning</kwd><kwd>socioeconomic factors</kwd></kwd-group></article-meta></front><body><sec id="S5"><label>1.</label><title>Introduction</title><p id="P5">Urinary tract infections (UTI) are among the most common infections encountered in both community and healthcare settings, contributing significantly to healthcare costs and patient morbidity. Differentiating between community-associated (CA-UTI) and healthcare-associated UTI (HA-UTI) is crucial for understanding their distinct epidemiological patterns and risk factors and developing effective treatment strategies.</p><p id="P6">The growing prevalence of multidrug-resistant organisms (MDROs) has made timely and accurate diagnosis of UTIs a crucial step to minimize the spread of MDROs. Traditional methods like urine dipstick tests and urine cultures are either too slow or lack diagnostic accuracy. New technologies, such as nucleic acid tests, mass spectrometry, biosensors, and microfluidic platforms, are improving the speed and accuracy of pathogen identification and antimicrobial susceptibility testing (AST). These emerging diagnostic technologies, which can deliver rapid results directly from urine samples, hold the potential to revolutionize UTI diagnosis and treatment by enabling precision medicine. With MDROs becoming a global health threat, accurate UTI prediction and early identification of resistance markers are essential for guiding antimicrobial therapy and improving patient outcomes [<xref rid="R17" ref-type="bibr">17</xref>].</p><p id="P7">Machine learning (ML) techniques have shown considerable promise in improving the accuracy of predicting various healthcare-associated infections, including UTI. Previous studies have demonstrated that ML models can predict hospital-onset UTI with greater Positive Predictive Value (PPV) than traditional methods, facilitating timely interventions and improving patient outcomes [<xref rid="R1" ref-type="bibr">1</xref>, <xref rid="R2" ref-type="bibr">2</xref>]. When integrated with electronic health records (EHRs), these models serve as powerful tools for identifying patients at risk of HA-UTI, enabling healthcare providers to implement preventive measures proactively [<xref rid="R3" ref-type="bibr">3</xref>, <xref rid="R9" ref-type="bibr">9</xref>].</p><p id="P8">In both community and hospital settings, the microbial landscape and resistance patterns of UTI differ significantly, necessitating tailored approaches for diagnosis and treatment. Research has shown that HA-UTI often involves highly resistant pathogens compared to CA-UTI, highlighting the need for predictive models to distinguish between these two types [<xref rid="R4" ref-type="bibr">4</xref>, <xref rid="R8" ref-type="bibr">8</xref>]. Furthermore, sociodemographic factors such as socioeconomic status and access to healthcare have been identified as significant predictors of UTI risk, particularly for multidrug-resistant infections, suggesting that these variables should be incorporated into predictive modeling [<xref rid="R7" ref-type="bibr">7</xref>].</p><p id="P9">While various ML models have been applied to predict UTI in specific contexts, such as recurrent UTI [<xref rid="R10" ref-type="bibr">10</xref>] or infections in intensive care units [<xref rid="R5" ref-type="bibr">5</xref>], there remains a gap in systematically comparing different ML techniques to optimize UTI prediction across diverse settings. This study aims to address this gap by training, validating, and comparing five supervised ML models: Decision Trees (DT), Neural Network (NN), Logistic Regression (LR), Random Forest (RF), and Extreme Gradient Boosting (XGBoost). By evaluating these models, we aim to determine the most effective approach for distinguishing between CA-UTI and HA-UTI and to identify key predictors using a comprehensive set of demographic, hospital, and socioeconomic variables.</p><p id="P10">Through this research, we aim to contribute to more accurate UTI predictions, leading to better-targeted interventions and ultimately improved patient outcomes in both community and healthcare settings. By leveraging advanced ML techniques, we also hope to provide valuable insights that will enhance the management and prevention of UTI, particularly in the face of rising MDROs.</p></sec><sec id="S6"><label>2.</label><title>MATERIALS AND METHODS</title><sec id="S7"><label>2.1</label><title>Study Site and Patient Data.</title><p id="P11">We obtained daily patient data from 2019 to 2023 through Cerner Corporation, Kansas City. The data originates from University Health (UH) in Kansas City, Missouri, which encompasses 35 facilities, including two main campuses: University Health Truman Medical Center and University Health Lakewood Medical Center, as well as several primary care clinics. University Health Truman Medical Center is a 314-bed urban hospital with a Level I trauma center designation, offering both acute care and outpatient services. University Health Lakewood Medical Center, a 101-bed facility, provides similar comprehensive care. Both campuses are located in Kansas City, Missouri.</p><p id="P12">In this study, hospital location and nursing unit data were recoded based on the incidence and prevalence of infections to facilitate analysis. Locations with low incidence rates were categorized as &#x0201c;Other&#x0201d; to streamline the data into more manageable groups. Hospital locations were grouped into four main categories: UH Lakewood Medical Center, UH Truman Medical Center, UH Truman Medical Center BH, and Other. Similarly, nursing units were categorized according to their primary functions, which included Inpatient Units, Mental Health Units, Surgery Units, Rehabilitation and Observation Units, Critical Care and Intensive Care Units, and Others. The Inpatient Units included wards such as Inpatient-3 Blue (indicated third floor of the hospital inpatient unit blue region), Inpatient-3 Gold, Inpatient-3 Red, Inpatient-4 Blue, Inpatient-4 Green, Inpatient-4 Red, and Inpatient-5 North. The Mental Health Units comprised Behavioral Health Services, Center of Mental Health, and Geriatric Psychiatry. Surgery Units included Surgery ICU, Med/Surg North, and Med/Surg South. Rehabilitation and Observation Units comprised Medical Rehab and 4 Gold Observation, while the Critical Care and Intensive Care Units included ICU, MICU II, Progressive Care Unit, and Cardiac Care Unit. All remaining nursing units were classified under the &#x0201c;Other&#x0201d; category.</p><p id="P13">This recoding process was undertaken to ensure that similar units were grouped together, thereby facilitating more meaningful comparisons across different hospital settings. <xref rid="T1" ref-type="table">Table 1</xref> provides a summary of data across three categories: HA-UTI, CA-UTI, and UTI-free (i.e., patients without UTI) from 2019 to 2023.</p></sec><sec id="S8"><label>2.2</label><title>Predicted Outcomes</title><p id="P14">We compared two primary groups: HA-UTI versus CA-UTI, and HA-UTI versus UTI-free. This approach allowed us to investigate differences in patient characteristics and outcomes between UTI associated with community versus healthcare settings, as well as the impact of UTI presence or absence in patients with prolonged hospital stays. It is widely accepted that a hospital-acquired infection (HAI) is defined by a minimum length of stay (LOS) of 48 hours. In this study, however, we adopted a slightly different approach. We categorized UTI as community-associated if the LOS was less than 96 hours (four days), and healthcare-associated if the LOS was four days or longer. This distinction is supported by research indicating that UTIs typically result in an additional four days (95% CI: 3.1&#x02013;5.0 days) of hospitalization [<xref rid="R37" ref-type="bibr">37</xref>]. As such, hospitalized patients who develop a UTI are expected to remain in the hospital for at least four days on average. Due to the significant imbalance between UTI and non-UTI patients in the CA group, we did not compare UTI versus non-UTI patients within that group to avoid skewed results.</p></sec><sec id="S9"><label>2.3</label><title>Model predictors</title><p id="P15">In this study, we included patient demographics, hospital variables, and socioeconomic factors. Specifically, demographic predictors included age, gender, ethnicity, marital status, and employment status. Hospital-related variables included the hospital location and the specific nurse unit. Socioeconomic factors, such as poverty level, the percentage of the population, level of education, median income, and population density, were not directly obtained from individual patients. Instead, these factors were assigned based on the ZIP code of the patient&#x02019;s residence, with data acquired from [<xref rid="R11" ref-type="bibr">11</xref>]. This means that while we did not have individual-level socioeconomic data, we used the median household income and other factors associated with the patient&#x02019;s ZIP code as proxies.</p></sec><sec id="S10"><label>2.4</label><title>Supervised Machine Learning Models</title><p id="P16">We employed several other machine-learning techniques for predictive modeling, including Logistic Regression (LR), Decision Tree (DT), Neural Network (NN), Random Forest (RF), and Extreme Gradient Boosting (XGBoost). We began with a multivariable logistic regression model [<xref rid="R18" ref-type="bibr">18</xref>], employing a stepwise approach to select the most relevant variables. This method iteratively adds variables to the model, ceasing when no further improvement is observed, as determined by the Akaike information criterion. DTs [<xref rid="R19" ref-type="bibr">19</xref>] are one of the most commonly used classification methods in machine learning, as they partition datasets into smaller, manageable groups based on specific criteria. This process of splitting is performed in a hierarchical structure, beginning from a root node and moving toward leaf nodes, where final classifications are made based on Boolean decisions at each step [<xref rid="R12" ref-type="bibr">12</xref>]. In our study, the DT segmented the patient population using features such as age, nurse unit, and socioeconomic factors, optimizing these splits at each decision point independently. The Gini coefficient was used to measure node impurity, allowing the model to choose the most effective splits. This approach is advantageous due to its simplicity and interpretability, especially in clinical settings where understanding the decision-making process is critical [<xref rid="R12" ref-type="bibr">12</xref>]. NNs, on the other hand, consist of multiple layers that transform input data through a combination of linear and nonlinear functions, capturing complex relationships between variables [<xref rid="R20" ref-type="bibr">20</xref>]. The NN used in our study was constructed with two hidden layers and employed a sigmoid activation function at the output layer. RF, an ensemble learning method, constructs multiple decision trees during training and aggregates their outputs by taking the mode of the classes (for classification) or the mean prediction (for regression [<xref rid="R21" ref-type="bibr">21</xref>]). This method combines decision trees with bootstrapping and aggregation techniques, providing a versatile framework capable of handling both regression and classification tasks. RF is particularly effective in improving prediction accuracy and reducing overfitting by averaging the results of individual trees. Additionally, due to its structure, RF is highly scalable and can be parallelized to handle large datasets, making it suitable for Big Data applications [<xref rid="R13" ref-type="bibr">13</xref>]. Additionally, XGBoost, a powerful gradient-boosting technique, improves predictive accuracy by sequentially adding new models to correct errors made by previous models [<xref rid="R22" ref-type="bibr">22</xref>]. Known for its scalability and efficiency, XGBoost has been optimized to handle large datasets with sparse or structured data and is renowned for its high computational performance by leveraging parallel and distributed computing. Its innovations, such as handling sparse data and implementing a weighted quantile sketch, make it highly effective for real-world machine-learning tasks [<xref rid="R14" ref-type="bibr">14</xref>].</p><p id="P17">To handle missing values, we applied an imputation technique as follows. We utilized the K-Nearest Neighbor (K-NN) imputation method to estimate and fill in missing values, following the approach described by Malarvizhi and Thanamani [<xref rid="R15" ref-type="bibr">15</xref>]. This step ensured that our dataset was complete and that the models could be trained effectively without bias due to missing data.</p><p id="P18">To address the class imbalance issue present in the data, we used the SMOTE (Synthetic Minority Over-sampling Technique [<xref rid="R23" ref-type="bibr">23</xref>]). Using the SMOTE, we enhanced the representation of the minority class, i.e., the incidences of HAIs, and minimized the likelihood of potentially biased model predictions. Briefly, the SMOTE generates synthetic samples by interpolating between randomly selected minority class examples and their nearest neighbors, identified using the K-NN algorithm [<xref rid="R16" ref-type="bibr">16</xref>]. This approach contrasts with traditional oversampling methods [<xref rid="R24" ref-type="bibr">24</xref>], which simply duplicate existing minority classes to reduce overfitting while improving model generalization.</p><p id="P19">After applying SMOTE, the dataset was split into training and testing sets, with 80% of the data allocated for training and the remaining 20% reserved for testing. Cross-validation was also conducted to refine the models further and ensure robustness in the evaluation. Model performance was assessed using the area under the curve (AUC) metric, and confusion matrices were generated for each model with a classification threshold set at 0.5. Additionally, the structure of the decision tree model was presented for transparency and interpretability, allowing for a clearer understanding of the decision-making process within the model.</p></sec></sec><sec id="S11"><label>3.</label><title>Results</title><sec id="S12"><label>3.1</label><title>Descriptive statistics</title><p id="P20"><xref rid="T2" ref-type="table">Table 2</xref> provides descriptive statistics of 2019&#x02013;2023 patients with healthcare-associated infections (HAIs). We can observe distinct differences between those with and without urinary tract infections (UTI) based on various demographic, hospital, and socioeconomic factors. Patients with UTI tend to be older, with an average age of 63.5 years compared to 48.2 years for those without UTI. A higher percentage of UTI patients are female (65.7%) compared to those without UTI (56%). The length of stay (LOS) is significantly longer for UTI-free patients (78.5 days) compared to HA-UTI patients (20.1 days). This difference stems from the study&#x02019;s selection criteria, which included only patients hospitalized for four or more days in the UTI-free group, thereby excluding short-stay, non-UTI cases. Consequently, this group mainly comprises long-term hospitalized patients with chronic conditions or post-surgical complications. LOS also varied across years, with annual averages ranging from 55.1 to 91.3 days, contributing to the overall median of 78.5 days. UTI patients are associated with specific nurse units (58.7%) and hospital locations (72.9%) compared to those without UTI, who have much lower association with specific nurse units (8.3%) and different healthcare facilities (18.2%). In terms of socioeconomic factors, there are minor differences between the two groups.</p><p id="P21"><xref rid="SD1" ref-type="supplementary-material">Table S1</xref> compares patients with healthcare-associated UTIs (HA-UTI) and community-associated UTIs (CA-UTI). There are notable differences based on demographic, hospital, and socioeconomic factors. HA-UTI patients are older compared to CA-UTI patients (average age of 63.5 years compared to 49.7 years). A higher percentage of CA-UTI patients are female (84.7%) compared to HA-UTI patients (65.7%). The length of stay is significantly longer for HA-UTI patients, averaging 20.1 days, compared to 0.6 days for CA-UTI patients. HA-UTI patients are more frequently located in the inpatient units (58.7%), mainly at UH Truman Medical Center (72.9%), compared to CA-UTI patients (4.0% and 30.1%, respectively). In terms of socioeconomic factors, both groups show similar levels of income, poverty, and education, with minor differences.</p></sec><sec id="S13"><label>3.2</label><title>Model Accuracies</title><p id="P22"><xref rid="T3" ref-type="table">Tables 3</xref> and <xref rid="SD1" ref-type="supplementary-material">S2</xref> summarize the performance of the DT, NN, LR, RF, and XGBoost models across two predictive tasks: differentiating between HA-UTI and UTI-free cases(<xref rid="T3" ref-type="table">Table 3</xref>) and distinguishing between HA-UTI and CA-UTI (<xref rid="SD1" ref-type="supplementary-material">Table S2</xref>). The Logistic Regression (LR) model performs robustly in both tasks, with an overall accuracy of 95.9% (HAI with or without UTI) and 93.2% (HA-UTI vs. CA-UTI). It achieves high specificity (96.4% in <xref rid="T3" ref-type="table">Table 3</xref>, 92.6% in <xref rid="SD1" ref-type="supplementary-material">Table S2</xref>) and AUC (94 and 96, respectively), positioning it as a reliable general-purpose model. The Decision Tree (DT) model excels in sensitivity, with 87% in <xref rid="T3" ref-type="table">Table 3</xref> and 95% in <xref rid="SD1" ref-type="supplementary-material">Table S2</xref>, making it effective in identifying positive cases, though it trades off some Positive Predictive Value (PPV) (8% in <xref rid="T3" ref-type="table">Table 3</xref>, 56% in <xref rid="SD1" ref-type="supplementary-material">Table S2</xref>). The Neural Network (NN) model, while having lower sensitivity (48%&#x02212;88%), compensates with strong specificity, particularly in <xref rid="SD1" ref-type="supplementary-material">Table S2</xref> (93.4%).</p><p id="P23">The Random Forest (RF) model strikes a balance between sensitivity and specificity, with the PPV of 13.5% for the HA-UTI prediction (<xref rid="T3" ref-type="table">Table 3</xref>) and 60.2%&#x02212;64.5% for HA-UTI vs. CA-UTI (<xref rid="SD1" ref-type="supplementary-material">Table S2</xref>). It also shows high cross-validation stability, achieving 99.1% (<xref rid="T3" ref-type="table">Table 3</xref>) and 96.2% (<xref rid="SD1" ref-type="supplementary-material">Table S2</xref>), demonstrating robustness across different data subsets. XGBoost performs well in both tasks, especially in AUC (92.1 in <xref rid="T3" ref-type="table">Table 3</xref> and 95.7 in <xref rid="SD1" ref-type="supplementary-material">Table S2</xref>), highlighting its effectiveness for structured data and consistency in producing accurate predictions.</p></sec><sec id="S14"><label>3.3</label><title>Logistics regression</title><p id="P24">We utilized stepwise logistic regression to develop predictive models in two distinct analyses: first, to differentiate between (HAI) and (CAI) among UTI patients, and second, to distinguish between (HAI) in patients with and without UTI. Stepwise logistic regression works by iteratively adding or removing variables based on their statistical significance in predicting the outcome. It begins with the most significant variable and adds one more variable at each step, testing the model&#x02019;s performance and removing any variable that no longer contributes meaningfully. This process continues until the best-fitting model, with only the most relevant predictors, is constructed.</p><p id="P25">The results of the stepwise logistic regression analysis of HA-UTI versus UTI-free are shown in <xref rid="T4" ref-type="table">Table 4</xref>. An Odds Ratio (OR) greater than 1 suggests an increased likelihood of HA-UTI, while an OR less than 1 indicates a decreased likelihood of HA-UTI. For instance, in 2022, patients in UH Truman Medical Center (UHTMC) had 12.66 times higher odds of having an HA-UTI compared to those not in other facilities, highlighting the elevated risk in these settings due to factors such as prolonged stays or invasive procedures. Also, in 2019, the Mental Health nurse unit showed a decreased likelihood of patients acquiring an HA-UTI compared to those without (OR = 0.38). This trend continues in 2022 and 2023, with ORs of 0.38 and 0.27, respectively. Age is also a significant predictor, with increasing odds of HA-UTI in older patients, with ORs of 1.65 in 2020 and 1.51 in 2022. Gender also plays a role, with females showing a lower likelihood of acquiring HA-UTI compared to males without UTI, as seen in 2021 (OR = 0.33) and 2022 (OR = 0.41). Both UH Truman Medical Center (UHTMC) and UH Lakewood Medical Center (UHLMC) show higher odds of HAI with UTI in 2020, with ORs of 12.66 and 7.81, respectively, indicating a greater risk of acquiring HA-UTI in these locations. Ethnicity emerges as a predictor only in 2022, with an OR of 3.18, suggesting that certain ethnic groups may face a higher risk of acquiring UTI among HAI patients.</p><p id="P26">Similarly, <xref rid="SD1" ref-type="supplementary-material">Table S3</xref> identifies significant predictors for HA-UTI versus CA-UTI. An Odds Ratio (OR) greater than 1 suggests an increased likelihood of HA-UTI, while an OR less than 1 indicates a decreased likelihood of HA-UTI. For instance, in 2019, patients in mental health units had 45 times higher odds of having an HA-UTI versus CA-UTI compared to those not in these units (OR = 45.32), highlighting the elevated risk in these settings due to factors such as prolonged stays or invasive procedures. The inpatient nurse unit also shows a positive association with HA-UTI, especially in 2022 (OR = 1.83), suggesting that patients in these units face higher infection risk, potentially due to longer hospital stays or more complex care needs. Both UH Lakewood and UH Truman Medical Centers show varying degrees of positive associations with HA-UTI. For example, UH Truman demonstrated strong associations with HA-UTI in 2020 (OR = 17.63), indicating an increased risk in these hospital locations. Age consistently appears as a predictor, with increasing age associated with a slightly higher likelihood of HA-UTI (OR ~1.4 in 2020 and 2021). Overall, this analysis underscores the importance of specific nurse units and hospital locations in influencing the risk of HA-UTI compared to CA-UTI, and it suggests the need for targeted interventions, particularly in mental health and inpatient units, as well as ongoing monitoring of risk factors like age.</p></sec><sec id="S15"><label>3.4</label><title>Classification and Regression Tree</title><p id="P27">Normalized importance in CRT represents how much each variable contributes to improving the model&#x02019;s classification accuracy. <xref rid="T5" ref-type="table">Table 5</xref> shows the normalized importance of variables for distinguishing between HA-UTI and CA-UTI from 2019 to 2023. The Nurse Unit (Other) consistently ranks as the most significant predictor across all years, with importance scores ranging from 73.3% in 2020 to 97.3% in 2021, underscoring its central role in distinguishing HA-UTI from CA-UTI. Other variables such as Age, Poverty, Level of education, and Median Income show varying degrees of importance over time but are notably less influential compared to the Nurse Unit (Other). For instance, Age reaches its highest importance in 2022 (2.9%), and Poverty is particularly significant in 2020 (11.3%). Facility locations, like UH Truman Medical Center (UHTMC), also feature intermittently, particularly in 2019 (0.9%) and 2020 (5.5%), reflecting its shifting dynamics in predicting HA-UTI vs. CA-UTI over the years. This variation underscores the evolving nature of the contributing factors, especially for socioeconomic variables, which are more prominent in some years than others. Overall, <xref rid="T5" ref-type="table">Table 5</xref> clearly indicates that the Nurse Unit (Other) remains the dominant factor, with other demographic and socioeconomic variables playing supporting but less consistent roles over time.</p><p id="P28">Similarly, <xref rid="SD1" ref-type="supplementary-material">Table S4</xref> presents the normalized importance factors for predicting HA-UTI versus UTI-free from 2019 to 2023. Again, the Nurse Unit (Other) consistently ranks as the most influential predictor across all years, with importance scores ranging from 58.2% in 2020 to 93.6% in 2021, underscoring its central role in distinguishing between HA-UTI and UTI-free cases. Other variables, such as Gender (Male), Age, and Income, contribute less consistently. For example, Income shows a strong influence in 2020 (22.7%), while Gender (Male) holds importance in 2019 (3.3%) and 2022 (3.4%). Age also plays a role, particularly in 2022 (6.7%). Hospital locations, such as UH Truman Medical Center (UHTMC) and UH Lakewood Medical Center (UHLMC), are relevant in some years, with UHTMC showing a 7.7% importance in 2020 and UHLMC contributing 3.0% in 2023. Socioeconomic factors, such as Population Density and Poverty, emerge sporadically, with Population Density having a higher significance in 2022 (3.2%) and Poverty playing a role in 2023 (1.5%).</p><p id="P29">Overall, <xref rid="SD1" ref-type="supplementary-material">Table S4</xref> highlights the dominant role of the Nurse Unit (Other), with demographic, socioeconomic, and hospital location factors contributing variably over the years.</p><p id="P30">The tree diagrams corresponding to each decision tree model are provided in <xref rid="SD1" ref-type="supplementary-material">Section S5</xref> of the <xref rid="SD1" ref-type="supplementary-material">supplementary document</xref>. The size of each compartment reflects the proportion of the population that belongs to the respective group. Additionally, distinct colour codes have been applied to differentiate between HA-UTI, CA-UTI, and UTI-free cases. As illustrated in <xref rid="SD1" ref-type="supplementary-material">Figures S3</xref>&#x02013;<xref rid="SD1" ref-type="supplementary-material">S12</xref>, the tree diagram results align with the normalized variable importance rankings shown in <xref rid="T5" ref-type="table">Tables 5</xref> and <xref rid="SD1" ref-type="supplementary-material">S4</xref>.</p><p id="P301"> The decision tree in <xref rid="F1" ref-type="fig">figure 1</xref> classifies UTIs as either Healthcare-Associated Infection (HAI) or Community-Acquired Infection (CAI) based on several factors. The root node splits based on Nurse Unit (Other). If the nursing unit is classified as &#x0201c;Other,&#x0201d; the left branch is taken. This branch further splits into &#x0201c;Rehabilitation and Observation Units,&#x0201d; then &#x0201c;Nurse Unit Surgery,&#x0201d; and finally &#x0201c;AGE.&#x0201d; The right branch, where the nursing unit is <italic toggle="yes">not</italic> &#x0201c;Other,&#x0201d; splits based on &#x0201c;Poverty,&#x0201d; then &#x0201c;Location: UH Lakewood Medical Center,&#x0201d; and &#x0201c;Graduate degree. The tree suggests that the type of nursing unit is a strong initial predictor. Rehabilitation and Observation Units show a higher propensity for HAI. Within the &#x0201c;Other&#x0201d; nursing unit category, surgical units also lean towards HAI, though age plays a role too. For cases not in the &#x0201c;Other&#x0201d; category, poverty, location at UH Lakewood Medical Center, and lower levels of graduate education are associated with CAI. The colours blue and orange represent HAI and CAI, respectively. The Gini index indicates the impurity of each node, with higher values indicating a more even mix of HAI and CAI.</p></sec></sec><sec id="S16"><label>4.</label><title>Discussion</title><p id="P31">This study evaluates the strengths and limitations of five commonly used machine learning models in health and medical research. Namely, we applied Decision Tree (DT), Neural Network (NN), Logistic Regression (LR), Random Forest (RF), and eXtreme Gradient Boosting (XGBoost) to distinguish between HA-UTI and CA-UTI as well as between HA-UTI and UTI-free, using patient demographic, hospital, and socioeconomic variables. Our findings show that while LR generally achieved the highest overall accuracy and AUC, the RF model offered a balanced performance with superior sensitivity, making it particularly valuable in detecting cases of HAI. However, the DT model was superior not only for its higher sensitivity but also for its interpretability, making it easier to understand and communicate the risk factors to healthcare providers.</p><p id="P32"><bold>DT</bold>&#x02019;s higher sensitivity highlights its utility in scenarios where minimizing missed infections is critical, while <bold>NN</bold> demonstrated higher specificity, reducing the likelihood of false positives. This distinction underscores the need to balance sensitivity and specificity depending on the clinical context. For instance, in situations where the consequences of missed <bold>HA-UTI</bold> are severe, sensitivity may be prioritized, making <bold>DT</bold> a more suitable choice.</p><p id="P33">When considering PPV and F1 score, <bold>LR</bold> and <bold>RF</bold> performed better, suggesting they are more reliable in correctly identifying true positive cases and balancing PPV and sensitivity (see <xref rid="T3" ref-type="table">Table3</xref>). This makes them strong candidates for applications where both PPV and sensitivity are crucial. However, the interpretability of <bold>DT</bold>, which clearly explains the influence of each predictor, provides an important advantage for practical implementation in healthcare settings, where clear communication of risk factors is essential.</p><p id="P34">The choice of evaluation metrics is particularly important in imbalanced datasets, such as in this study, where the HA-UTI group is significantly smaller than the UTI-free group. Accuracy alone may not provide a meaningful assessment of model performance in such cases, as a model that predominantly predicts the majority class could achieve high accuracy without effectively identifying the minority class.</p><p id="P35">Thus, PPV and sensitivity are more appropriate measures in this scenario. Sensitivity evaluates the model&#x02019;s ability to correctly identify HA-UTI cases, while PPV ensures that a high proportion of predicted HA-UTI cases are truly positive. The observed discrepancy between accuracy and PPV across models (<xref rid="T3" ref-type="table">Table 3</xref>) highlights this issue&#x02014;some models achieve high accuracy but low PPV, indicating they may not be as effective in clinical decision-making, where false positives can lead to unnecessary treatments or interventions. This reinforces the importance of balancing sensitivity, PPV, and accuracy when evaluating model performance for healthcare applications.</p><p id="P36">All machine learning models ranked Nurse Unit as a significant predictor of HA-UTI likely due to several factors. First, nursing units often serve populations with varying health conditions and comorbidities, which may predispose certain groups to a higher risk of developing a HA-UTI [<xref rid="R25" ref-type="bibr">25</xref>&#x02013;<xref rid="R27" ref-type="bibr">27</xref>, <xref rid="R35" ref-type="bibr">35</xref>]. For example, units that care for patients with compromised immune systems [<xref rid="R28" ref-type="bibr">28</xref>, <xref rid="R29" ref-type="bibr">29</xref>], those undergoing invasive procedures [<xref rid="R30" ref-type="bibr">30</xref>], or individuals with limited mobility [<xref rid="R31" ref-type="bibr">31</xref>] may inherently face higher UTI incidence. Second, HA-UTI rates may reflect broader health conditions, as UTI can be a marker of overall health and functional status, both of which can differ across nursing units [<xref rid="R25" ref-type="bibr">25</xref>, <xref rid="R28" ref-type="bibr">28</xref>, <xref rid="R30" ref-type="bibr">30</xref>].</p><p id="P361">Furthermore, differences in catheter management practices [<xref rid="R32" ref-type="bibr">32</xref>, <xref rid="R33" ref-type="bibr">33</xref>] among staff in different nursing units could also contribute to this variability. Catheter use protocols, hygiene practices, and frequency of catheter changes might differ between units, further influencing HA-UTI rates [<xref rid="R32" ref-type="bibr">32</xref>, <xref rid="R33" ref-type="bibr">33</xref>]. Other factors include nurse-to-patient ratio [<xref rid="R34" ref-type="bibr">34</xref>], overcrowding, higher patient turnover [<xref rid="R27" ref-type="bibr">27</xref>], and decreased monitoring time [<xref rid="R34" ref-type="bibr">34</xref>, <xref rid="R36" ref-type="bibr">36</xref>]. As shown in <xref rid="SD1" ref-type="supplementary-material">Table S3</xref>, Rehabilitation and Inpatient Units were identified as significant predictors of HA-UTI, reinforcing the role of specific hospital environments in infection risk. These factors together highlight the complex, multifactorial nature of UTI risk as it relates to Nurse Unit.</p></sec><sec id="S17"><label>5.</label><title>Limitations</title><p id="P37">This study has several limitations that should be acknowledged. First, variables associated with the Socioeconomic Status (SES) were based on the ZIP code of the patients rather than individual-level data, which may not accurately reflect the true SES of each patient. Second, we defined community-associated UTI as those occurring in patients with a hospital length of stay of fewer than 4 days, and healthcare-associated UTI as those in patients with a stay of 4 days or more; however, this criterion is not definitive and may not capture all cases accurately. Third, we did not model the CA-UTI versus UTI-free patients due to extremely low incidences of CA-UTI, which would have affected the reliability of the models. Additionally, our dataset, particularly the HA-UTI versus UTI-free, was highly imbalanced. Although we employed techniques such as SMOTE to address this issue partially, imbalance remained a challenge throughout the study. Lastly, our analysis was limited to the variables available in the dataset, as we were constrained by the absence of certain potentially relevant factors that could have provided a more comprehensive understanding of the predictors and outcomes.</p><p id="P38">Another key limitation of this study is the absence of additional clinical data, such as past hospitalization history, antibiotic use, previous urinary tract infections, use of urinary catheters, kidney disease, diabetes, and neurological symptoms. Incorporating these variables into the models could have improved their accuracy and provide a more comprehensive understanding of the factors influencing patient outcomes. Nonetheless, such data was not available at the time of study.</p><p id="P39">Additionally, the higher percentage of UTI cases at UH Truman Medical Center may be attributed to the hospital&#x02019;s patient demographics, including higher acuity and comorbidities, as well as differences in UTI screening and diagnostic protocols compared to other participating hospitals. These factors likely contributed to a greater detection rate of UTIs at this facility.</p></sec><sec id="S18"><label>6.</label><title>Conclusion</title><p id="P40">The machine learning models demonstrated relatively high predictive accuracy. Among all models, the nurse unit consistently emerged as the most significant predictor, while the importance of socioeconomic factors and locations varied from year to year. These findings underscore the potential of machine learning models to improve infection prediction and patient outcomes, with the optimal model choice depending on specific clinical objectives, such as prioritizing sensitivity, specificity, or interpretability.</p></sec><sec sec-type="supplementary-material" id="SM1"><title>Supplementary Material</title><supplementary-material id="SD1" position="float" content-type="local-data"><label>Supp Doc for the UTI paper</label><media xlink:href="NIHMS2136801-supplement-Supp_Doc_for_the_UTI_paper.pdf" id="d67e530" position="anchor"/></supplementary-material></sec></body><back><ack id="S19"><title>Acknowledgment:</title><p id="P41">This study was supported by the Center for Disease Control and Prevention under grant number 1U01CK000671-01.</p></ack><fn-group><fn id="FN1"><p id="P42">Model Implementation and Reproducibility</p><p id="P43">To replicate our study with a hypothetical dataset, researchers can download and run the source codes at the following GitHub link: <ext-link xlink:href="https://github.com/AArjcode/UTI_MachineLearning_HAI_vs_CAI" ext-link-type="uri">https://github.com/AArjcode/UTI_MachineLearning_HAI_vs_CAI</ext-link> Detailed instructions on how to run the codes and how to interpret the outputs can be found in the supplementary word document entitled, &#x0201c;Instructions to Run Simulations&#x0201d;.</p></fn><fn id="FN2"><p id="P44"><bold>Ethics:</bold> This study was approved by the Institutional Review Board at the University of Missouri&#x02013;Kansas City, IRB #2094337-KC.</p></fn><fn fn-type="COI-statement" id="FN3"><p id="P45"><bold>Conflict of Interest Statement:</bold> None</p></fn><fn id="FN4"><p id="P46"><bold>Declaration of generative AI and AI-assisted technologies in the writing process:</bold> During the preparation of this work, the authors used Grammarly and ChatGPT to improve their writing style. After using these tools, the authors reviewed and edited the content as needed and took full responsibility for the content of the publication.</p></fn></fn-group><ref-list><title>References</title><ref id="R1"><label>1.</label><mixed-citation publication-type="journal"><name><surname>Zachariah</surname><given-names>P</given-names></name>, <name><surname>Sanabria</surname><given-names>E</given-names></name>, <name><surname>Liu</surname><given-names>J</given-names></name>, <name><surname>Cohen</surname><given-names>B</given-names></name>, <name><surname>Yao</surname><given-names>D</given-names></name> and <name><surname>Larson</surname><given-names>E</given-names></name>, <year>2020</year>. <article-title>Novel strategies for predicting healthcare-associated infections at admission: Implications for nursing care</article-title>. <source>Nursing Research</source>, <volume>69</volume>(<issue>5</issue>), pp.<fpage>399</fpage>&#x02013;<lpage>403</lpage>.<pub-id pub-id-type="pmid">32604154</pub-id>
</mixed-citation></ref><ref id="R2"><label>2.</label><mixed-citation publication-type="journal"><name><surname>Taylor</surname><given-names>RA</given-names></name>, <name><surname>Moore</surname><given-names>CL</given-names></name>, <name><surname>Cheung</surname><given-names>KH</given-names></name> and <name><surname>Brandt</surname><given-names>C</given-names></name>, <year>2018</year>. <article-title>Predicting urinary tract infections in the emergency department with machine learning</article-title>. <source>PLOS ONE</source>, <volume>13</volume>(<issue>3</issue>), p.<fpage>e0194085</fpage>.<pub-id pub-id-type="pmid">29513742</pub-id>
</mixed-citation></ref><ref id="R3"><label>3.</label><mixed-citation publication-type="journal"><name><surname>M&#x000f8;ller</surname><given-names>JK</given-names></name>, <name><surname>S&#x000f8;rensen</surname><given-names>M</given-names></name> and <name><surname>Hardahl</surname><given-names>C</given-names></name>, <year>2021</year>. <article-title>Prediction of risk of acquiring urinary tract infection during hospital stay based on machine-learning: A retrospective cohort study</article-title>. <source>PLOS ONE</source>, <volume>16</volume>(<issue>3</issue>), p.<fpage>e0248636</fpage>.<pub-id pub-id-type="pmid">33788888</pub-id>
</mixed-citation></ref><ref id="R4"><label>4.</label><mixed-citation publication-type="journal"><name><surname>Medina-Polo</surname><given-names>J</given-names></name>, <name><surname>Naber</surname><given-names>KG</given-names></name> and <name><surname>Johansen</surname><given-names>TEB</given-names></name>, <year>2021</year>. <article-title>Healthcare-associated urinary tract infections in urology</article-title>. <source>International Journal of Urology</source>, <volume>28</volume>(<issue>4</issue>), pp.<fpage>359</fpage>&#x02013;<lpage>366</lpage>.</mixed-citation></ref><ref id="R5"><label>5.</label><mixed-citation publication-type="journal"><name><surname>Barchitta</surname><given-names>M</given-names></name>, <name><surname>Maugeri</surname><given-names>A</given-names></name>, <name><surname>Favara</surname><given-names>G</given-names></name>, <name><surname>Riela</surname><given-names>PM</given-names></name>, <name><surname>Gallo</surname><given-names>G</given-names></name> and <name><surname>Mura</surname><given-names>I</given-names></name>, <year>2021</year>. <article-title>A machine learning approach to predict healthcare-associated infections at intensive care unit admission: Findings from the SPIN-UTI project</article-title>. <source>Journal of Hospital Infection</source>, <volume>112</volume>, pp.<fpage>94</fpage>&#x02013;<lpage>101</lpage>.</mixed-citation></ref><ref id="R6"><label>6.</label><mixed-citation publication-type="journal"><name><surname>Aguilar-Duran</surname><given-names>S</given-names></name>, <name><surname>Horcajada</surname><given-names>JP</given-names></name>, <name><surname>Sorli</surname><given-names>L</given-names></name>, <name><surname>Montero</surname><given-names>M</given-names></name>, <name><surname>Salvado</surname><given-names>M</given-names></name>, <name><surname>Grau</surname><given-names>S</given-names></name>, <name><surname>Gomez</surname><given-names>J</given-names></name> and <name><surname>Knobel</surname><given-names>H</given-names></name>, <year>2012</year>. <article-title>Community-onset healthcare-related urinary tract infections: Comparison with community and hospital-acquired urinary tract infections</article-title>. <source>Journal of Infection</source>, <volume>64</volume>(<issue>3</issue>), pp.<fpage>258</fpage>&#x02013;<lpage>264</lpage>.</mixed-citation></ref><ref id="R7"><label>7.</label><mixed-citation publication-type="journal"><name><surname>Casey</surname><given-names>JA</given-names></name>, <name><surname>Rudolph</surname><given-names>KE</given-names></name>, <name><surname>Robinson</surname><given-names>SC</given-names></name>, <name><surname>Bruxvoort</surname><given-names>K</given-names></name>, <name><surname>Raphael</surname><given-names>E</given-names></name>, <name><surname>Hong</surname><given-names>V</given-names></name>, <name><surname>Pressman</surname><given-names>A</given-names></name>, <name><surname>Morello-Frosch</surname><given-names>RX</given-names></name> and <name><surname>Tartof</surname><given-names>SY</given-names></name>, <year>2020</year>. <article-title>Sociodemographic inequalities in urinary tract infection in 2 large California health systems</article-title>. <source>Clinical Infectious Diseases</source>, <volume>71</volume>(<issue>1</issue>), pp.<fpage>e114</fpage>&#x02013;<lpage>e121</lpage>.</mixed-citation></ref><ref id="R8"><label>8.</label><mixed-citation publication-type="journal"><name><surname>Mancini</surname><given-names>A</given-names></name>, <name><surname>Pucciarelli</surname><given-names>S</given-names></name>, <name><surname>Lombardi</surname><given-names>FE</given-names></name>, <name><surname>Barocci</surname><given-names>S</given-names></name> and <name><surname>Pauri</surname><given-names>P</given-names></name>, <year>2019</year>. <article-title>Differences between community- and hospital-acquired urinary tract infections in a tertiary care hospital</article-title>. <source>Journal of Global Antimicrobial Resistance</source>, <volume>17</volume>, pp.<fpage>64</fpage>&#x02013;<lpage>68</lpage>.</mixed-citation></ref><ref id="R9"><label>9.</label><mixed-citation publication-type="journal"><name><surname>Park</surname><given-names>JI</given-names></name>, <name><surname>Bliss</surname><given-names>DZ</given-names></name>, <name><surname>Chi</surname><given-names>CL</given-names></name>, <name><surname>Delaney</surname><given-names>CW</given-names></name> and <name><surname>Westra</surname><given-names>BL</given-names></name>, <year>2021</year>. <article-title>Knowledge discovery with machine learning for hospital-acquired catheter-associated urinary tract infections</article-title>. <source>Nursing Research</source>, <volume>70</volume>(<issue>2</issue>), pp.<fpage>118</fpage>&#x02013;<lpage>125</lpage>.</mixed-citation></ref><ref id="R10"><label>10.</label><mixed-citation publication-type="journal"><name><surname>Jeng</surname><given-names>SL</given-names></name>, <name><surname>Huang</surname><given-names>ZJ</given-names></name>, <name><surname>Yang</surname><given-names>DC</given-names></name>, <name><surname>Teng</surname><given-names>CH</given-names></name> and <name><surname>Wang</surname><given-names>MC</given-names></name>, <year>2021</year>. <article-title>Machine learning to predict the development of recurrent urinary tract infection related to single uropathogen, Escherichia coli</article-title>. <source>Scientific Reports</source>, <volume>11</volume>(<issue>1</issue>), p.<fpage>3452</fpage>.<pub-id pub-id-type="pmid">33568737</pub-id>
</mixed-citation></ref><ref id="R11"><label>11.</label><mixed-citation publication-type="webpage"><source>United States Zip Codes</source>
<ext-link xlink:href="https://www.unitedstateszipcodes.org" ext-link-type="uri">https://www.unitedstateszipcodes.org</ext-link>.</mixed-citation></ref><ref id="R12"><label>12.</label><mixed-citation publication-type="journal"><name><surname>Charbuty</surname><given-names>B</given-names></name> and <name><surname>Abdulazeez</surname><given-names>A</given-names></name>, <year>2021</year>. <article-title>Classification based on decision tree algorithm for machine learning</article-title>. <source>Journal of Applied Science and Technology Trends</source>, <volume>2</volume>(<issue>01</issue>), pp.<fpage>20</fpage>&#x02013;<lpage>28</lpage>.</mixed-citation></ref><ref id="R13"><label>13.</label><mixed-citation publication-type="journal"><name><surname>Genuer</surname><given-names>R</given-names></name>, <name><surname>Poggi</surname><given-names>JM</given-names></name>, <name><surname>Tuleau-Malot</surname><given-names>C</given-names></name> and <name><surname>Villa-Vialaneix</surname><given-names>N</given-names></name>, <year>2017</year>. <article-title>Random forests for big data</article-title>. <source>Big Data Research</source>, <volume>9</volume>, pp.<fpage>28</fpage>&#x02013;<lpage>46</lpage>.</mixed-citation></ref><ref id="R14"><label>14.</label><mixed-citation publication-type="book"><name><surname>Chen</surname><given-names>T</given-names></name> and <name><surname>Guestrin</surname><given-names>C</given-names></name>, <year>2016</year>, <month>August</month>. <part-title>Xgboost: A scalable tree boosting system</part-title>. In <source>Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining</source> (pp. <fpage>785</fpage>&#x02013;<lpage>794</lpage>).</mixed-citation></ref><ref id="R15"><label>15.</label><mixed-citation publication-type="journal"><name><surname>Malarvizhi</surname><given-names>R</given-names></name> and <name><surname>Thanamani</surname><given-names>AS</given-names></name>, <year>2012</year>. <article-title>K-nearest neighbor in missing data imputation</article-title>. <source>Int. J. Eng. Res. Dev</source>, <volume>5</volume>(<issue>1</issue>), pp.<fpage>5</fpage>&#x02013;<lpage>7</lpage>.</mixed-citation></ref><ref id="R16"><label>16.</label><mixed-citation publication-type="journal"><name><surname>Chawla</surname><given-names>NV</given-names></name>, <name><surname>Bowyer</surname><given-names>KW</given-names></name>, <name><surname>Hall</surname><given-names>LO</given-names></name> and <name><surname>Kegelmeyer</surname><given-names>WP</given-names></name>, <year>2002</year>. <article-title>SMOTE: synthetic minority over-sampling technique</article-title>. <source>Journal of artificial intelligence research</source>, <volume>16</volume>, pp.<fpage>321</fpage>&#x02013;<lpage>357</lpage>.</mixed-citation></ref><ref id="R17"><label>17.</label><mixed-citation publication-type="journal"><name><surname>Davenport</surname><given-names>M</given-names></name>, <name><surname>Mach</surname><given-names>KE</given-names></name>, <name><surname>Shortliffe</surname><given-names>LMD</given-names></name>, <name><surname>Banaei</surname><given-names>N</given-names></name>, <name><surname>Wang</surname><given-names>TH</given-names></name> and <name><surname>Liao</surname><given-names>JC</given-names></name>, <year>2017</year>. <article-title>New and developing diagnostic technologies for urinary tract infections</article-title>. <source>Nature Reviews Urology</source>, <volume>14</volume>(<issue>5</issue>), pp.<fpage>296</fpage>&#x02013;<lpage>310</lpage>.<pub-id pub-id-type="pmid">28248946</pub-id>
</mixed-citation></ref><ref id="R18"><label>18.</label><mixed-citation publication-type="journal"><name><surname>Stoltzfus</surname><given-names>JC</given-names></name> (<year>2011</year>). <article-title>Logistic regression: a brief primer</article-title>. <source>Academic emergency medicine</source>, <volume>18</volume>(<issue>10</issue>), <fpage>1099</fpage>&#x02013;<lpage>1104</lpage>.<pub-id pub-id-type="pmid">21996075</pub-id>
</mixed-citation></ref><ref id="R19"><label>19.</label><mixed-citation publication-type="journal"><name><surname>Rana</surname><given-names>KK</given-names></name> (<year>2014</year>). <article-title>A survey on decision tree algorithm for classification</article-title>. <source>International journal of Engineering development and research</source>, <volume>2</volume>(<issue>1</issue>), <fpage>1</fpage>&#x02013;<lpage>5</lpage>.</mixed-citation></ref><ref id="R20"><label>20.</label><mixed-citation publication-type="journal"><name><surname>Goldberg</surname><given-names>Y</given-names></name> (<year>2016</year>). <article-title>A primer on neural network models for natural language processing</article-title>. <source>Journal of Artificial Intelligence Research</source>, <volume>57</volume>, <fpage>345</fpage>&#x02013;<lpage>420</lpage>.</mixed-citation></ref><ref id="R21"><label>21.</label><mixed-citation publication-type="journal"><name><surname>Biau</surname><given-names>G</given-names></name> (<year>2012</year>). <article-title>Analysis of a random forests model</article-title>. <source>The Journal of Machine Learning Research</source>, <volume>13</volume>(<issue>1</issue>), <fpage>1063</fpage>&#x02013;<lpage>1095</lpage>.</mixed-citation></ref><ref id="R22"><label>22.</label><mixed-citation publication-type="journal"><name><surname>Chen</surname><given-names>T</given-names></name>, <name><surname>He</surname><given-names>T</given-names></name>, <name><surname>Benesty</surname><given-names>M</given-names></name>, <name><surname>Khotilovich</surname><given-names>V</given-names></name>, <name><surname>Tang</surname><given-names>Y</given-names></name>, <name><surname>Cho</surname><given-names>H</given-names></name>, &#x02026; &#x00026; <name><surname>Zhou</surname><given-names>T</given-names></name>. (<year>2015</year>). <article-title>Xgboost: extreme gradient boosting</article-title>. <source>R package version 0.4&#x02013;2</source>, <volume>1</volume>(<issue>4</issue>), <fpage>1</fpage>&#x02013;<lpage>4</lpage>.</mixed-citation></ref><ref id="R23"><label>23.</label><mixed-citation publication-type="journal"><name><surname>Nitesh</surname><given-names>VC</given-names></name> (<year>2002</year>). <article-title>SMOTE: synthetic minority over-sampling technique</article-title>. <source>J Artif Intell Res</source>, <volume>16</volume>(<issue>1</issue>), <fpage>321</fpage>.</mixed-citation></ref><ref id="R24"><label>24.</label><mixed-citation publication-type="book"><name><surname>Gosain</surname><given-names>A</given-names></name>, &#x00026; <name><surname>Sardana</surname><given-names>S</given-names></name> (<year>2017</year>, <month>September</month>). <part-title>Handling class imbalance problem using oversampling techniques: A review</part-title>. In <source>2017 international conference on advances in computing, communications and informatics (ICACCI)</source> (pp. <fpage>79</fpage>&#x02013;<lpage>85</lpage>). <publisher-name>IEEE</publisher-name>.</mixed-citation></ref><ref id="R25"><label>25.</label><mixed-citation publication-type="journal"><name><surname>Briongos-Figuero</surname><given-names>LS</given-names></name>, <name><surname>G&#x000f3;mez-Traveso</surname><given-names>T</given-names></name>, <name><surname>Bachiller-Luque</surname><given-names>P</given-names></name>, <name><surname>Dom&#x000ed;nguez-Gil Gonz&#x000e1;lez</surname><given-names>M</given-names></name>, <name><surname>G&#x000f3;mez-Nieto</surname><given-names>A</given-names></name>, <name><surname>Palacios-Mart&#x000ed;n</surname><given-names>T</given-names></name>, &#x02026; &#x00026; <name><surname>P&#x000e9;rez-Castrill&#x000f3;n</surname><given-names>JL</given-names></name>. (<year>2012</year>). <article-title>Epidemiology, risk factors and comorbidity for urinary tract infections caused by extended-spectrum beta-lactamase (ESBL)-producing enterobacteria</article-title>. <source>International journal of clinical practice</source>, <volume>66</volume>(<issue>9</issue>), <fpage>891</fpage>&#x02013;<lpage>896</lpage>.<pub-id pub-id-type="pmid">22897466</pub-id>
</mixed-citation></ref><ref id="R26"><label>26.</label><mixed-citation publication-type="journal"><name><surname>Laudisio</surname><given-names>A</given-names></name>, <name><surname>Marinosci</surname><given-names>F</given-names></name>, <name><surname>Gemma</surname><given-names>A</given-names></name>, <name><surname>Bartoli</surname><given-names>IR</given-names></name>, <name><surname>Montenegro</surname><given-names>N</given-names></name>, &#x00026; <name><surname>Incalzi</surname><given-names>RA</given-names></name> (<year>2017</year>). <article-title>The burden of comorbidity is associated with antibiotic resistance among institutionalized elderly with urinary infection: a retrospective cohort study in a single Italian nursing home between 2009 and 2014</article-title>. <source>Microbial Drug Resistance</source>, <volume>23</volume>(<issue>4</issue>), <fpage>500</fpage>&#x02013;<lpage>506</lpage>.<pub-id pub-id-type="pmid">27525808</pub-id>
</mixed-citation></ref><ref id="R27"><label>27.</label><mixed-citation publication-type="journal"><name><surname>Sara</surname><given-names>SM</given-names></name>, <name><surname>Thota</surname><given-names>RC</given-names></name>, <name><surname>Uddin</surname><given-names>MYS</given-names></name>, <name><surname>Bani-Yaghoub</surname><given-names>M</given-names></name>, <name><surname>Sutkin</surname><given-names>G</given-names></name>, &#x00026; <name><surname>Abourraja</surname><given-names>MN</given-names></name> (<year>2024</year>). <article-title>Patient flow modeling and simulation to study HAI incidence in an Emergency Department</article-title>. <source>Smart Health</source>, <volume>32</volume>, <fpage>100467</fpage>.</mixed-citation></ref><ref id="R28"><label>28.</label><mixed-citation publication-type="journal"><name><surname>De Pinho</surname><given-names>AM</given-names></name>, <name><surname>Lopes</surname><given-names>GS</given-names></name>, <name><surname>Ramos-Filho</surname><given-names>CF</given-names></name>, <name><surname>da R Santos</surname><given-names>O</given-names></name>, <name><surname>De Oliveira</surname><given-names>MP</given-names></name>, <name><surname>Halpern</surname><given-names>M</given-names></name>, &#x02026; &#x00026; <name><surname>Schechter</surname><given-names>M</given-names></name>. (<year>1994</year>). <article-title>Urinary tract infection in men with AIDS</article-title>. <source>Sexually Transmitted Infections</source>, <volume>70</volume>(<issue>1</issue>), <fpage>30</fpage>&#x02013;<lpage>34</lpage>.</mixed-citation></ref><ref id="R29"><label>29.</label><mixed-citation publication-type="book"><name><surname>Jarzembowski</surname><given-names>T</given-names></name>, <name><surname>Daca</surname><given-names>A</given-names></name>, &#x00026; <name><surname>D&#x00119;bska-&#x0015a;lizie&#x00144;</surname><given-names>MA</given-names></name> (Eds.). (<year>2018</year>). <part-title>Urinary Tract Infection: The Result of the Strength of the Pathogen, or the Weakness of the Host</part-title>. <source>BoD&#x02013;Books on Demand</source>.</mixed-citation></ref><ref id="R30"><label>30.</label><mixed-citation publication-type="book"><name><surname>Goldberg</surname><given-names>B</given-names></name>, &#x00026; <name><surname>Jantausch</surname><given-names>B</given-names></name> (<year>2016</year>). <part-title>Urinary tract infection</part-title>. In <source>Clinical pediatric nephrology</source> (pp. <fpage>983</fpage>&#x02013;<lpage>1008</lpage>). <publisher-name>CRC Press</publisher-name>.</mixed-citation></ref><ref id="R31"><label>31.</label><mixed-citation publication-type="journal"><name><surname>Rogers</surname><given-names>MA</given-names></name>, <name><surname>Fries</surname><given-names>BE</given-names></name>, <name><surname>Kaufman</surname><given-names>SR</given-names></name>, <name><surname>Mody</surname><given-names>L</given-names></name>, <name><surname>McMahon</surname><given-names>LF</given-names></name>, &#x00026; <name><surname>Saint</surname><given-names>S</given-names></name> (<year>2008</year>). <article-title>Mobility and other predictors of hospitalization for urinary tract infection: a retrospective cohort study</article-title>. <source>BMC geriatrics</source>, <volume>8</volume>, <fpage>1</fpage>&#x02013;<lpage>8</lpage>.<pub-id pub-id-type="pmid">18194534</pub-id>
</mixed-citation></ref><ref id="R32"><label>32.</label><mixed-citation publication-type="journal"><name><surname>Cravens</surname><given-names>DD</given-names></name>, &#x00026; <name><surname>Zweig</surname><given-names>S</given-names></name> (<year>2000</year>). <article-title>Urinary catheter management</article-title>. <source>American family physician</source>, <volume>61</volume>(<issue>2</issue>), <fpage>369</fpage>&#x02013;<lpage>376</lpage>.<pub-id pub-id-type="pmid">10670503</pub-id>
</mixed-citation></ref><ref id="R33"><label>33.</label><mixed-citation publication-type="journal"><name><surname>Nicolle</surname><given-names>LE</given-names></name> (<year>2005</year>). <article-title>Catheter-related urinary tract infection</article-title>. <source>Drugs &#x00026; aging</source>, <volume>22</volume>, <fpage>627</fpage>&#x02013;<lpage>639</lpage>.<pub-id pub-id-type="pmid">16060714</pub-id>
</mixed-citation></ref><ref id="R34"><label>34.</label><mixed-citation publication-type="book"><name><surname>Zalamar</surname><given-names>M</given-names></name> (<year>2024</year>). <source>The Impact of Nurse-to-Patient Ratio on Patient Outcomes and Quality of Care: A Healthcare Policy Analysis and Advocacy</source> (Doctoral dissertation, <publisher-name>Jacksonville University</publisher-name>).</mixed-citation></ref><ref id="R35"><label>35.</label><mixed-citation publication-type="journal"><name><surname>Al Kadria</surname><given-names>HM</given-names></name>, <name><surname>El-Metwally</surname><given-names>AA</given-names></name>, <name><surname>Al Sudairy</surname><given-names>AA</given-names></name>, <name><surname>Al-Dahash</surname><given-names>RA</given-names></name>, <name><surname>Al Khateeb</surname><given-names>BF</given-names></name>, &#x00026; <name><surname>Al Johani</surname><given-names>SM</given-names></name> (<year>2024</year>). <article-title>Antimicrobial Resistance Among Pregnant Women with Urinary Tract Infections is on Rise: Findings from Meta-analysis of Observational Studies</article-title>. <source>Journal of Infection and Public Health</source>.</mixed-citation></ref><ref id="R36"><label>36.</label><mixed-citation publication-type="book"><name><surname>Thota</surname><given-names>RC</given-names></name>, <name><surname>Sara</surname><given-names>SM</given-names></name>, <name><surname>Uddin</surname><given-names>MYS</given-names></name>, <name><surname>Bani-Yaghoub</surname><given-names>M</given-names></name>, &#x00026; <name><surname>Sutkin</surname><given-names>G</given-names></name> (<year>2024</year>, <month>May</month>). <part-title>Accurate Estimation of Individual Transmission Rates Through Contact Analytics Using UWB Based Indoor Location Data</part-title>. In <source>2024 International Conference on Smart Applications, Communications and Networking (SmartNets)</source> (pp. <fpage>1</fpage>&#x02013;<lpage>8</lpage>). <publisher-name>IEEE</publisher-name>.</mixed-citation></ref><ref id="R37"><label>37.</label><mixed-citation publication-type="journal"><name><surname>Mitchell</surname><given-names>BG</given-names></name>, <name><surname>Ferguson</surname><given-names>JK</given-names></name>, <name><surname>Anderson</surname><given-names>M</given-names></name>, <name><surname>Sear</surname><given-names>J</given-names></name>, &#x00026; <name><surname>Barnett</surname><given-names>A</given-names></name> (<year>2016</year>). <article-title>Length of stay and mortality associated with healthcare-associated urinary tract infections: a multi-state model</article-title>. <source>Journal of Hospital Infection</source>, <volume>93</volume>(<issue>1</issue>), <fpage>92</fpage>&#x02013;<lpage>99</lpage>.<pub-id pub-id-type="pmid">26944900</pub-id>
</mixed-citation></ref></ref-list></back><floats-group><fig position="float" id="F1"><label>Figure 1:</label><caption><p id="P47">Decision Tree for CAI UTI vs HAI UTI (2021)</p></caption><graphic xlink:href="nihms-2136801-f0001" position="float"/></fig><table-wrap position="float" id="T1"><label>Table1.</label><caption><p id="P48">University Health patient flow according to HA-UTI, CA-UTI, and HA-free during 2019&#x02013;2023</p></caption><table frame="hsides" rules="groups"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="center" valign="top" rowspan="1" colspan="1"/><th align="center" valign="top" rowspan="1" colspan="1">2019</th><th align="center" valign="top" rowspan="1" colspan="1">2020</th><th align="center" valign="top" rowspan="1" colspan="1">2021</th><th align="center" valign="top" rowspan="1" colspan="1">2022</th><th align="center" valign="top" rowspan="1" colspan="1">2023</th></tr></thead><tbody><tr><td align="left" valign="top" rowspan="1" colspan="1">HA-UTI</td><td align="center" valign="top" rowspan="1" colspan="1">383</td><td align="center" valign="top" rowspan="1" colspan="1">399</td><td align="center" valign="top" rowspan="1" colspan="1">410</td><td align="center" valign="top" rowspan="1" colspan="1">357</td><td align="center" valign="top" rowspan="1" colspan="1">328</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">CA-UTI</td><td align="center" valign="top" rowspan="1" colspan="1">2,957</td><td align="center" valign="top" rowspan="1" colspan="1">2,592</td><td align="center" valign="top" rowspan="1" colspan="1">3,346</td><td align="center" valign="top" rowspan="1" colspan="1">3,535</td><td align="center" valign="top" rowspan="1" colspan="1">3,179</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">UTI-free</td><td align="center" valign="top" rowspan="1" colspan="1">32,025</td><td align="center" valign="top" rowspan="1" colspan="1">35,040</td><td align="center" valign="top" rowspan="1" colspan="1">37,008</td><td align="center" valign="top" rowspan="1" colspan="1">37,137</td><td align="center" valign="top" rowspan="1" colspan="1">43,819</td></tr></tbody></table></table-wrap><table-wrap position="float" id="T2"><label>Table 2.</label><caption><p id="P49">Descriptive statistics of 2019&#x02013;2023 data organized according to patient demographics, hospital characteristics, and socioeconomic factors. Median values are reported for each group across the years, with minimum and maximum values presented in parentheses.</p></caption><table frame="hsides" rules="groups"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="left" valign="bottom" rowspan="1" colspan="1">Model</th><th align="center" valign="bottom" rowspan="1" colspan="1">Patients with HA-UTI</th><th align="center" valign="bottom" rowspan="1" colspan="1">Patients without UTI</th><th align="center" valign="bottom" rowspan="1" colspan="1">P-value</th></tr></thead><tbody><tr style="border-bottom: solid 1px"><td align="left" valign="bottom" rowspan="1" colspan="1">Population Size</td><td align="center" valign="bottom" rowspan="1" colspan="1">383 (328, 410)</td><td align="center" valign="bottom" rowspan="1" colspan="1">37008 (32025, 43819)</td><td align="center" valign="bottom" rowspan="1" colspan="1"/></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Average Age<sup><xref rid="TFN3" ref-type="table-fn">3</xref></sup></td><td align="center" valign="bottom" rowspan="1" colspan="1">63.5 (58.9, 65.3)</td><td align="center" valign="bottom" rowspan="1" colspan="1">48.2 (44.9, 51.3)</td><td align="center" valign="bottom" rowspan="1" colspan="1">&#x0003c;0.01</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Female<sup><xref rid="TFN3" ref-type="table-fn">3</xref></sup> (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">65.7 (61.6, 71.0)</td><td align="center" valign="bottom" rowspan="1" colspan="1">56.0 (55.3, 59.1)</td><td align="center" valign="bottom" rowspan="1" colspan="1">&#x0003c;0.01</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Married (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">16.4 (12.5, 20.7)</td><td align="center" valign="bottom" rowspan="1" colspan="1">20.1 (18.2, 21.7)</td><td align="center" valign="bottom" rowspan="1" colspan="1">&#x0003c;0.01</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Employed (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">99.7 (92.4, 100)</td><td align="center" valign="bottom" rowspan="1" colspan="1">97.0 (84.3, 99.7)</td><td align="center" valign="bottom" rowspan="1" colspan="1">Varies*</td></tr><tr style="border-bottom: solid 1px"><td align="left" valign="bottom" rowspan="1" colspan="1">Hispanic (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">8.5 (6.3, 10.1)</td><td align="center" valign="bottom" rowspan="1" colspan="1">9.8 (9.0, 14.9)</td><td align="center" valign="bottom" rowspan="1" colspan="1">Varies*</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Length of Stay<sup><xref rid="TFN5" ref-type="table-fn">5</xref></sup></td><td align="center" valign="bottom" rowspan="1" colspan="1">20.1 (16.2, 27.0)</td><td align="center" valign="bottom" rowspan="1" colspan="1">78.5 (55.1, 91.3)</td><td align="center" valign="bottom" rowspan="1" colspan="1">&#x0003c;0.01</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Nurse Unit<sup><xref rid="TFN1" ref-type="table-fn">1</xref></sup> (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">58.7 (53.9, 63.7)</td><td align="center" valign="bottom" rowspan="1" colspan="1">8.3 (5.9, 9.3)</td><td align="center" valign="bottom" rowspan="1" colspan="1">&#x0003c;0.01</td></tr><tr style="border-bottom: solid 1px"><td align="left" valign="bottom" rowspan="1" colspan="1">Location<sup><xref rid="TFN2" ref-type="table-fn">2</xref></sup> (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">72.9 (62.7, 74.2)</td><td align="center" valign="bottom" rowspan="1" colspan="1">18.2 (16.4, 19.5)</td><td align="center" valign="bottom" rowspan="1" colspan="1">&#x0003c;0.01</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Median Income</td><td align="center" valign="bottom" rowspan="1" colspan="1">50,180.1 (49,141.7, 51,620.2)</td><td align="center" valign="bottom" rowspan="1" colspan="1">49,371.1 (48,956.4, 50,236.3)</td><td align="center" valign="bottom" rowspan="1" colspan="1">Varies*</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Poverty (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">18.7 (18.1, 19.3)</td><td align="center" valign="bottom" rowspan="1" colspan="1">19.7 (18.8, 19.8)</td><td align="center" valign="bottom" rowspan="1" colspan="1">Varies*</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Graduate Degree (%)</td><td align="center" valign="bottom" rowspan="1" colspan="1">7.9 (7.5, 8.2)</td><td align="center" valign="bottom" rowspan="1" colspan="1">8.2 (8.0, 8.2)</td><td align="center" valign="bottom" rowspan="1" colspan="1">Varies*</td></tr><tr><td align="left" valign="bottom" rowspan="1" colspan="1">Population Density<sup><xref rid="TFN4" ref-type="table-fn">4</xref></sup></td><td align="center" valign="bottom" rowspan="1" colspan="1">2,870 (2,760, 2,936)</td><td align="center" valign="bottom" rowspan="1" colspan="1">2,900 (2,735, 3,075)</td><td align="center" valign="bottom" rowspan="1" colspan="1">Varies*</td></tr></tbody></table><table-wrap-foot><fn id="TFN1"><label>1</label><p id="P50">Percent of patients in the Inpatient Nurse Unit, this percentages reflect only the Inpatient Nurse Unit, with the remaining patients assigned to other units not explicitly shown in the table. ,</p></fn><fn id="TFN2"><label>2</label><p id="P51">Percent of patients in UH Truman Medical Center,</p></fn><fn id="TFN3"><label>3</label><p id="P52">Age, gender, marital status, length of stay, nurse unit and location were significant at the level of 0.01 for all 5 years 2019&#x02013;2023. Varies&#x0201d; indicates that the statistical significance of these variables fluctuated across study years. For all five years (2019&#x02013;2023), results for employment, ethnicity, median income, poverty, graduate degree, and population density were not consistently significant across all years.</p></fn><fn id="TFN4"><label>4</label><p id="P53">Number of individuals per square mile.</p></fn><fn id="TFN5"><label>5</label><p id="P54">This variable was excluded from all machine learning models. The unusually long length of stay for some patients was attributed to cases involving individuals in custody, where their hospital stays remained open beyond their discharge. The length of stay was capped at 365 days to address this issue in the analysis. This variable was not used in any of the machine learning modeling</p></fn></table-wrap-foot></table-wrap><table-wrap position="float" id="T3"><label>Table 3.</label><caption><p id="P55">Evaluation Results of Decision Tree (DT), Neural Network (NN), Logistic Regression (LR), Random Forest (RF), and eXtreme Gradient Boosting (XGBoost) for HA-UTI versus UTI-free cases.</p></caption><table frame="hsides" rules="groups"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="center" valign="bottom" rowspan="1" colspan="1">Metrics</th><th align="center" valign="bottom" rowspan="1" colspan="1">DT</th><th align="center" valign="bottom" rowspan="1" colspan="1">NN</th><th align="center" valign="bottom" rowspan="1" colspan="1">LR</th><th align="center" valign="bottom" rowspan="1" colspan="1">RF</th><th align="center" valign="bottom" rowspan="1" colspan="1">XGBoost</th></tr></thead><tbody><tr><td align="center" valign="top" rowspan="1" colspan="1">Accuracy</td><td align="center" valign="top" rowspan="1" colspan="1">88.6 (87.4, 92.8)</td><td align="center" valign="top" rowspan="1" colspan="1">95.7 (94.1, 97.3)</td><td align="center" valign="top" rowspan="1" colspan="1"><bold>95.9 (95.4, 96.8</bold>)</td><td align="center" valign="top" rowspan="1" colspan="1">95.8 (94.7, 97)</td><td align="center" valign="top" rowspan="1" colspan="1">94.9 (93.1, 96.2)</td></tr><tr><td align="center" valign="top" rowspan="1" colspan="1">Sensitivity</td><td align="center" valign="top" rowspan="1" colspan="1">
<bold>87 (74, 90)</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">48 (45, 55)</td><td align="center" valign="top" rowspan="1" colspan="1">49 (45, 52)</td><td align="center" valign="top" rowspan="1" colspan="1">58.1 (47.9, 62.3)</td><td align="center" valign="top" rowspan="1" colspan="1">59 (49.3, 62.1)</td></tr><tr><td align="center" valign="top" rowspan="1" colspan="1">Specificity</td><td align="center" valign="top" rowspan="1" colspan="1">88.6 (87.4, 92.9)</td><td align="center" valign="top" rowspan="1" colspan="1">96.2 (94.6, 97.7)</td><td align="center" valign="top" rowspan="1" colspan="1">
<bold>96.4 (96, 97.2)</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">96.3 (95, 97.4)</td><td align="center" valign="top" rowspan="1" colspan="1">95.4 (93.5, 96.3)</td></tr><tr><td align="center" valign="top" rowspan="1" colspan="1">PPV</td><td align="center" valign="top" rowspan="1" colspan="1">8 (7, 9)</td><td align="center" valign="top" rowspan="1" colspan="1">13 (9, 15)</td><td align="center" valign="top" rowspan="1" colspan="1">13 (11, 15)</td><td align="center" valign="top" rowspan="1" colspan="1">
<bold>13.5 (11.9, 16.4)</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">11.8 (9, 12.6)</td></tr><tr><td align="center" valign="top" rowspan="1" colspan="1">F1 Score</td><td align="center" valign="top" rowspan="1" colspan="1">14.7 (12.9, 16.3)</td><td align="center" valign="top" rowspan="1" colspan="1">21 (15.2, 22.7)</td><td align="center" valign="top" rowspan="1" colspan="1">20 (18, 23.3)</td><td align="center" valign="top" rowspan="1" colspan="1">
<bold>25.6 (21.3, 35.1)</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">19.6 (15.6, 20.4)</td></tr><tr><td align="center" valign="top" rowspan="1" colspan="1">CV<sup><xref rid="TFN6" ref-type="table-fn">1</xref></sup></td><td align="center" valign="top" rowspan="1" colspan="1">94.5 (93.4, 96.4)</td><td align="center" valign="top" rowspan="1" colspan="1">NA</td><td align="center" valign="top" rowspan="1" colspan="1">NA</td><td align="center" valign="top" rowspan="1" colspan="1">
<bold>99.1 (98.7, 99.3)</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">99 (98.6, 99.2)</td></tr><tr><td align="center" valign="top" rowspan="1" colspan="1">AUC<sup><xref rid="TFN7" ref-type="table-fn">2</xref></sup></td><td align="center" valign="top" rowspan="1" colspan="1">89.4 (87.4, 93)</td><td align="center" valign="top" rowspan="1" colspan="1">71.9 (71.3, 75.6)</td><td align="center" valign="top" rowspan="1" colspan="1">
<bold>94 (93, 95)</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">89.2 (87.4, 90.3)</td><td align="center" valign="top" rowspan="1" colspan="1">92.1 (91.1, 94)</td></tr></tbody></table><table-wrap-foot><fn id="TFN6"><label>1</label><p id="P56">Cross Validation (CV),</p></fn><fn id="TFN7"><label>2</label><p id="P57">Area Under the Curve (AUC) associated with the Receiver Operating Characteristic (ROC) curves.</p></fn></table-wrap-foot></table-wrap><table-wrap position="float" id="T4"><label>Table 4.</label><caption><p id="P58">Stepwise Logistic Regression Estimates for Predicting HA-UTI versus UTI-free across various years. The values are associated with different units and facility locations.</p></caption><table frame="hsides" rules="none"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="left" valign="middle" rowspan="1" colspan="1">Predictors</th><th align="center" valign="middle" rowspan="1" colspan="1">2019</th><th align="center" valign="middle" rowspan="1" colspan="1">2020</th><th align="center" valign="middle" rowspan="1" colspan="1">2021</th><th align="center" valign="middle" rowspan="1" colspan="1">2022</th><th align="center" valign="middle" rowspan="1" colspan="1">2023</th></tr></thead><tbody><tr><td align="left" valign="middle" rowspan="1" colspan="1">Other<sup><xref rid="TFN8" ref-type="table-fn">1</xref></sup></td><td align="center" valign="middle" rowspan="1" colspan="1">0.01</td><td align="center" valign="middle" rowspan="1" colspan="1">0.06</td><td align="center" valign="middle" rowspan="1" colspan="1">0.00</td><td align="center" valign="middle" rowspan="1" colspan="1">0.01</td><td align="center" valign="middle" rowspan="1" colspan="1">0.00</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Mental Health<sup><xref rid="TFN8" ref-type="table-fn">1</xref></sup></td><td align="center" valign="middle" rowspan="1" colspan="1">0.38</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;<sup><xref rid="TFN10" ref-type="table-fn">3</xref></sup></td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">0.38</td><td align="center" valign="middle" rowspan="1" colspan="1">0.27</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Rehabilitation<sup><xref rid="TFN8" ref-type="table-fn">1</xref></sup></td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">0.18</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Surgery<sup><xref rid="TFN8" ref-type="table-fn">1</xref></sup></td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">1.92</td><td align="center" valign="middle" rowspan="1" colspan="1">1.57</td><td align="center" valign="middle" rowspan="1" colspan="1">1.91</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">UHTMC<sup><xref rid="TFN9" ref-type="table-fn">2</xref></sup> (UHLMC<sup><xref rid="TFN10" ref-type="table-fn">3</xref></sup>)</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">12.66 (7.81)</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">UHTMC-BH</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">5.93</td><td align="center" valign="middle" rowspan="1" colspan="1">0.12</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Age</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02013;</td><td align="center" valign="middle" rowspan="1" colspan="1">1.65</td><td align="center" valign="middle" rowspan="1" colspan="1">1.41</td><td align="center" valign="middle" rowspan="1" colspan="1">1.51</td><td align="center" valign="middle" rowspan="1" colspan="1">1.28</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Gender</td><td align="center" valign="middle" rowspan="1" colspan="1">0.43</td><td align="center" valign="middle" rowspan="1" colspan="1">0.46</td><td align="center" valign="middle" rowspan="1" colspan="1">0.33</td><td align="center" valign="middle" rowspan="1" colspan="1">0.41</td><td align="center" valign="middle" rowspan="1" colspan="1">0.44</td></tr></tbody></table><table-wrap-foot><fn id="TFN8"><label>1</label><p id="P59"><italic toggle="yes">Nurse Unit is divided into</italic> Inpatient Units, Mental Health Units, Surgery Units, Rehabilitation and Observation Units, Critical Care and Intensive Care Units, and Others,</p></fn><fn id="TFN9"><label>2</label><p id="P60">University Health Truman Medical Center (UHTMC). Note that Mental Health is an outpatient unit,</p></fn><fn id="TFN10"><label>3</label><p id="P61">&#x0201c;&#x02013;&#x0201d; denotes that the variable was not selected or did not meet statistical significance for the given year in the stepwise logistic regression model</p></fn></table-wrap-foot></table-wrap><table-wrap position="float" id="T5"><label>Table 5.</label><caption><p id="P62">Normalized Importance of variables in prediction of HA-UTI vs CA-UTI across years 2019&#x02013;2023</p></caption><table frame="hsides" rules="groups"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="left" valign="middle" rowspan="1" colspan="1">2019</th><th align="left" valign="middle" rowspan="1" colspan="1">2020</th><th align="left" valign="middle" rowspan="1" colspan="1">2021</th><th align="left" valign="middle" rowspan="1" colspan="1">2022</th><th align="left" valign="middle" rowspan="1" colspan="1">2023</th></tr></thead><tbody><tr><td align="left" valign="top" rowspan="1" colspan="1">Other<sup><xref rid="TFN11" ref-type="table-fn">1</xref></sup> (93.1)</td><td align="left" valign="top" rowspan="1" colspan="1">Other<sup><xref rid="TFN11" ref-type="table-fn">1</xref></sup> (73.3)</td><td align="left" valign="top" rowspan="1" colspan="1">Other<sup><xref rid="TFN11" ref-type="table-fn">1</xref></sup> (97.3)</td><td align="left" valign="top" rowspan="1" colspan="1">Other<sup><xref rid="TFN11" ref-type="table-fn">1</xref></sup> (91.6)</td><td align="left" valign="top" rowspan="1" colspan="1">Other<sup><xref rid="TFN11" ref-type="table-fn">1</xref></sup> (90.1)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Age (2.1)</td><td align="left" valign="top" rowspan="1" colspan="1">Poverty (11.3)</td><td align="left" valign="top" rowspan="1" colspan="1">Age (0.7)</td><td align="left" valign="top" rowspan="1" colspan="1">Age (2.9)</td><td align="left" valign="top" rowspan="1" colspan="1">Age (1.6)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">UHTMC (0.9)</td><td align="left" valign="top" rowspan="1" colspan="1">UHTMC (5.5)</td><td align="left" valign="top" rowspan="1" colspan="1">Degree<sup><xref rid="TFN13" ref-type="table-fn">3</xref></sup> (0.7)</td><td align="left" valign="top" rowspan="1" colspan="1">Density<sup><xref rid="TFN14" ref-type="table-fn">4</xref></sup> (2.8)</td><td align="left" valign="top" rowspan="1" colspan="1">Ethnicity<sup><xref rid="TFN16" ref-type="table-fn">6</xref></sup> (1.3)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Income<sup><xref rid="TFN15" ref-type="table-fn">5</xref></sup> (0.8)</td><td align="left" valign="top" rowspan="1" colspan="1">Age (3.1)</td><td align="left" valign="top" rowspan="1" colspan="1">Density<sup><xref rid="TFN14" ref-type="table-fn">4</xref></sup> (0.3)</td><td align="left" valign="top" rowspan="1" colspan="1">Poverty (0.8)</td><td align="left" valign="top" rowspan="1" colspan="1">E. Status<sup><xref rid="TFN17" ref-type="table-fn">7</xref></sup> (1.2)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Degree<sup><xref rid="TFN13" ref-type="table-fn">3</xref></sup> (0.7)</td><td align="left" valign="top" rowspan="1" colspan="1">Income<sup><xref rid="TFN15" ref-type="table-fn">5</xref></sup> (2.0)</td><td align="left" valign="top" rowspan="1" colspan="1">Median Income (0.2)</td><td align="left" valign="top" rowspan="1" colspan="1">Income<sup><xref rid="TFN15" ref-type="table-fn">5</xref></sup> (0.5)</td><td align="left" valign="top" rowspan="1" colspan="1">M. Status<sup><xref rid="TFN18" ref-type="table-fn">8</xref></sup> (1.1)</td></tr></tbody></table><table-wrap-foot><fn id="TFN11"><label>1</label><p id="P63"><italic toggle="yes">Nurse Unit is divided into</italic> Inpatient Units, Mental Health Units, Surgery Units, Rehabilitation and Observation Units, Critical Care and Intensive Care Units, and Others,</p></fn><fn id="TFN12"><label>2</label><p id="P64">University Health Truman Medical Center (UHTMC),</p></fn><fn id="TFN13"><label>3</label><p id="P65">Percent Graduate Degree,</p></fn><fn id="TFN14"><label>4</label><p id="P66">Population Density,</p></fn><fn id="TFN15"><label>5</label><p id="P67">Median Household Income,</p></fn><fn id="TFN16"><label>6</label><p id="P68">Hispanic vs. Non-Hispanic,</p></fn><fn id="TFN17"><label>7</label><p id="P69">Employment Status,</p></fn><fn id="TFN18"><label>8</label><p id="P70">Marital Status</p></fn></table-wrap-foot></table-wrap></floats-group></article>