Predicting first-episode homelessness among US Veterans using longitudinal EHR data: time-varying models and social risk factors

Rohan Pandey, Haijuan Yan, Hong Yu, Jack Tsai
2/2/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Homelessness among US veterans remains a critical public health challenge, yet risk prediction offers a pathway for proactive intervention. In this retrospective prognostic study, we analyzed electronic health record (EHR) data from 4,276,403 Veterans Affairs patients during a 2016 observation period to predict first-episode homelessness occurring 3-12 months later in 2017 (prevalence: 0.32-1.19%). We constructed static and time-varying EHR representations, utilizing clinician-informed logic to model the persistence of clinical conditions and social risks over time. We then compared the performance of classical machine learning, transformer-based masked language models, and fine-tuned large language models (LLMs). We demonstrate that incorporating social and behavioral factors into longitudinal models improved precision-recall area under the curve (PR-AUC) by 15-30%. In the top 1% risk tier, models yielded positive predictive values ranging from 3.93-4.72% at 3 months, 7.39-8.30% at 6 months, 9.84-11.41% at 9 months, and 11.65-13.80% at 12 months across model architectures. Large language models underperformed encoder-based models on discrimination but showed smaller performance disparities across racial groups. These results demonstrate that longitudinal, socially informed EHR modeling concentrates homelessness risk into actionable strata, enabling targeted and data-informed prevention strategies for at-risk veterans.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pandey2026predicting,
  title  = {Predicting first-episode homelessness among US Veterans using longitudinal EHR data: time-varying models and social risk factors},
  author = {Rohan Pandey and Haijuan Yan and Hong Yu and Jack Tsai},
  year   = {2026},
  eprint = {2602.02731},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.02731v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.02731.svg)](https://codeofpaper.com/paper/2602.02731)

Discussion