P-282. Leveraging Machine Learning and Electronic Health Record Data to Identify Patients at Risk of HIV Care Lapses: A Statewide Analysis in Maryland

Abstract Background Retention in HIV care is essential to end the HIV epidemic and improve individual patient outcomes, yet 1/3 of people living with HIV in Maryland are not consistently retained in care. Predictive modeling using electronic health record (EHR) data is a promising strategy to identify patients at risk for lapses in care; however, existing efforts remain limited. Regional analyses using statewide health systems can uniquely inform local strategies by accounting for demographic, clinical, and structural variations. This study aimed to develop predictive models utilizing comprehensive EHR data from the University of Maryland Medical System (UMMS) to identify people living with HIV who are at risk of lapsing in care.Figure 1.Receiver Operating Characteristic (ROC) Curve demonstrating the performance of the Random Forest model in predicting lapses in HIV care. The model achieved an area under the curve (AUC) of 0.91, with high recall (98%) and precision (81%), indicating strong predictive capability for identifying patients at risk of lapsing in HIV care.Figure 2.SHAP summary illustrating the impact of key features on the Random Forest model's predictions of HIV care lapses. Each dot represents a patient encounter, with dot colors indicating feature value magnitude (high in red, low in blue). Methods Utilizing EHR data from UMMS including HIV-related prescriptions, laboratory tests and clinical visits from adults receiving antiretroviral therapy from 1/2016-6/2024, we identified 8,518 patients with 205,633 encounters. Consolidating multiple encounters within 10 days as one encounter, and including only encounters preceding the last recorded encounter for both lapsed and non-lapsed groups, resulted in 4,735 patients. Of those, 2,667 (56%) had lapses - defined as not having an HIV-related clinical encounter within 12 months. We used a Random Forest classifier with extensive hyperparameter tuning via randomized search cross-validation. Model performance was assessed via the performance matrices and SHAP values for feature importance. Results The Random Forest model demonstrated an AUC of 0.91 with 98% recall for lapses, and 81% precision (Figure 1). Feature importance analysis highlighted significant predictors, including time on treatment, age, BMI, alcohol use, employment status, racial demographics, and comorbidities such as hypertension and diabetes (Figure 2). Conclusion Predictive modeling using EHR data from a comprehensive statewide health system can effectively identify patients at risk for lapses in HIV care. Clinically actionable predictors, such as treatment duration, demographics, and specific health conditions, provide practical insights that can guide interventions to enhance patient retention and ultimately improve health outcomes for people living with HIV. Disclosures All Authors: No reported disclosures

Authors

Institutions

Publication Details

Journal
Open Forum Infectious Diseases
Published
2026-01-01
DOI
https://doi.org/10.1093/ofid/ofaf695.503
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

P-282. Leveraging Machine Learning and Electronic Health Record Data to Identify Patients at Risk of HIV Care Lapses: A Statewide Analysis in Maryland

Elana Rosenthal, Divya Hosangadi, Kristen A. Stafford, CS Reilly et al.
Open Forum Infectious Diseases
Machine Learning in Healthcare
article

P-282. Leveraging Machine Learning and Electronic Health Record Data to Identify Patients at Risk of HIV Care Lapses: A Statewide Analysis in Maryland

Elana Rosenthal, Divya Hosangadi, Kristen A. Stafford, CS Reilly, Colleen M. Ennett, Chaitrali-Shiri Kher, Seyed M Shams
article en

Abstract

Abstract Background Retention in HIV care is essential to end the HIV epidemic and improve individual patient outcomes, yet 1/3 of people living with HIV in Maryland are not consistently retained in care. Predictive modeling using electronic health record (EHR) data is a promising strategy to identify patients at risk for lapses in care; however, existing efforts remain limited. Regional analyses using statewide health systems can uniquely inform local strategies by accounting for demographic, clinical, and structural variations. This study aimed to develop predictive models utilizing comprehensive EHR data from the University of Maryland Medical System (UMMS) to identify people living with HIV who are at risk of lapsing in care.Figure 1.Receiver Operating Characteristic (ROC) Curve demonstrating the performance of the Random Forest model in predicting lapses in HIV care. The model achieved an area under the curve (AUC) of 0.91, with high recall (98%) and precision (81%), indicating strong predictive capability for identifying patients at risk of lapsing in HIV care.Figure 2.SHAP summary illustrating the impact of key features on the Random Forest model's predictions of HIV care lapses. Each dot represents a patient encounter, with dot colors indicating feature value magnitude (high in red, low in blue). Methods Utilizing EHR data from UMMS including HIV-related prescriptions, laboratory tests and clinical visits from adults receiving antiretroviral therapy from 1/2016-6/2024, we identified 8,518 patients with 205,633 encounters. Consolidating multiple encounters within 10 days as one encounter, and including only encounters preceding the last recorded encounter for both lapsed and non-lapsed groups, resulted in 4,735 patients. Of those, 2,667 (56%) had lapses - defined as not having an HIV-related clinical encounter within 12 months. We used a Random Forest classifier with extensive hyperparameter tuning via randomized search cross-validation. Model performance was assessed via the performance matrices and SHAP values for feature importance. Results The Random Forest model demonstrated an AUC of 0.91 with 98% recall for lapses, and 81% precision (Figure 1). Feature importance analysis highlighted significant predictors, including time on treatment, age, BMI, alcohol use, employment status, racial demographics, and comorbidities such as hypertension and diabetes (Figure 2). Conclusion Predictive modeling using EHR data from a comprehensive statewide health system can effectively identify patients at risk for lapses in HIV care. Clinically actionable predictors, such as treatment duration, demographics, and specific health conditions, provide practical insights that can guide interventions to enhance patient retention and ultimately improve health outcomes for people living with HIV. Disclosures All Authors: No reported disclosures

Open Forum Infectious DiseasesVol. 13(Supplement_1)
University of Maryland, Baltimore (US), University of Maryland Medical System (US), Foundation for the National Institutes of Health (US), Institute of Human Virology (NG)
Good health and well-being
Openalex Percentile: Top 91%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.