OBJECTIVE: Bacterial resistance is known to diminish the effectiveness of antibiotics for treatment of urinary tract infections. Review of recent healthcare and antibiotic exposures, as well as prior culture results is recommended to aid in selection of empirical treatment. However, the optimal approach for assessing these data is unclear. We utilized data from the Veterans Health Administration to evaluate relationships between culture and treatment history and the subsequent probability of antibiotic-resistant bacteria identified in urine cultures to further guide clinicians in understanding these risk factors. METHODS: Using the XGBoost algorithm, a retrospective cohort of outpatients with urine culture results and antibiotic prescriptions from 2017 to 2022 was used to develop models for predicting antibiotic resistance for three classes of antibiotics: cephalosporins, fluoroquinolones, and trimethoprim/sulfamethoxazole (TMP/SMX) obtained from urine cultures. Model performance was assessed using Area Under the Receiver Operating Characteristic curve (AUC) and Precision-Recall AUC (PRAUC). RESULTS: There were 392,647 prior urine cultures identified in 214,656 patients. A history of bacterial resistance to the specific treatment was the most important predictor of subsequent resistance for positive cultures, followed by a history of specific antibiotic exposure. The models performed better than previously established risk factors alone, especially for fluoroquinolone resistance, with an AUC of .84 and PRAUC of .70. Notably, the models performance improved markedly (AUC = .90, PRAUC = .87) when applied to cultures from patients with a known history of resistance to any of the antibiotic classes. CONCLUSION: These predictive models demonstrate potential in guiding antibiotic prescription and improving infection management.