Social determinants of health extraction from clinical notes across institutions using large language models
Detailed social determinants of health (SDoH) is often buried within clinical text in EHRs. Most current NLP efforts for SDoH have limitations, investigating limited factors, deriving data from a single institution, using specific patient cohorts/note types, with reduced focus on generalizability. We aim to address these issues by creating cross-institutional corpora and developing and evaluating the generalizability of classification models, including large language models (LLMs), for detecting SDoH factors using data from four institutions. Clinical notes were annotated with 21 SDoH factors at two levels: level 1 (SDoH factors only) and level 2 (SDoH factors and associated values). Compared to other models, instruction tuned LLM achieved top performance with micro-averaged F1 over 0.9 on level 1 corpora and over 0.84 on level 2 corpora. While models performed well when trained and tested on individual datasets, cross-dataset generalization highlighted remaining obstacles. Access to trained models will be made available at https://github.com/BIDS-Xu-Lab/LLMs4SDoH .
Authors
- Salih Selek (ORCID: https://orcid.org/0000-0001-5197-5682)
- Xinghan Chen (ORCID: https://orcid.org/0000-0002-7013-3920)
- Yujia Zhou (ORCID: https://orcid.org/0000-0003-0889-2261)
- Sunyang Fu (ORCID: https://orcid.org/0000-0003-1691-5179)
- Cynthia Brandt (ORCID: https://orcid.org/0000-0001-8179-1796)
- Qingyu Chen (ORCID: https://orcid.org/0000-0002-6036-1516)
- Jungwei Fan (ORCID: https://orcid.org/0000-0001-6349-3752)
- Karen Wang (ORCID: https://orcid.org/0000-0002-7866-9498)
- Cui Tao (ORCID: https://orcid.org/0000-0002-4267-1924)
- Yifang Dang (ORCID: https://orcid.org/0000-0002-4014-2957)
- Xinyue Hu (ORCID: https://orcid.org/0009-0006-2685-951X)
- Vipina K. Keloth (ORCID: https://orcid.org/0000-0001-6919-1122)
- Hua Xu (ORCID: https://orcid.org/0000-0002-5274-4672)
- Huan He (ORCID: https://orcid.org/0000-0002-6032-3392)
- Hongfang Liu (ORCID: https://orcid.org/0000-0003-2570-3741)
- Christopher Gilman (ORCID: https://orcid.org/0009-0003-1753-2046)
Institutions
- Yale University (US)
- Mayo Clinic in Florida (US)
- The University of Texas Health Science Center at Houston (US)
Publication Details
- Journal
- npj Digital Medicine
- Published
- 2025-05-17
- DOI
- https://doi.org/10.1038/s41746-025-01645-8
- Citations
- 8
- Primary Topic
- Chronic Disease Management Strategies
- Type
- article
- Field-Weighted Citation Impact
- 10.83
Funders
- National Institute on Aging
- National Human Genome Research Institute