SBDH-Reader: an LLM-powered method for extracting social and behavioral determinants of health from clinical notes

Zifan Gu, Li He, Ayesha Naeem, Pui Man Chan, A. A. Mohamed, Heba M. A. Khalil, Yujia Guo, Wenqi Shi, Matthew E. Dupre, Guanghua Xiao, Eric D. Peterson, Yang Xie, Ann Marie Návar, Donghan M. YangmedRxiv 2025

Abstract

A general-purpose LLM can accurately extract structured SBDH data through effective prompt engineering. The SBDH-Reader has the potential to serve as a scalable and effective method for collecting real-time, patient-level SBDH data to support clinical research and care.

Introduction

While biological markers are essential for clinical diagnosis, Social and Behavioral Determinants of Health (SBDH)—such as housing stability, employment status, and substance use—are often more potent predictors of long-term health outcomes and healthcare utilization. Despite their importance, SBDH data is rarely captured in structured fields within Electronic Health Records (EHRs). Instead, these details are typically buried within the "Social History" sections of unstructured clinical notes.

Extracting this information at scale presents a significant challenge. Manual chart review is labor-intensive and cost-prohibitive for large populations. Traditional Natural Language Processing (NLP) models, such as those based on BERT, often require massive amounts of domain-specific labeled data and can be "brittle," requiring complete retraining if clinical definitions or documentation standards change. To address these limitations, researchers have developed SBDH-Reader, a system leveraging Large Language Models (LLMs) and sophisticated prompt engineering to transform messy clinical narratives into high-quality, structured data.

Methodology: The SBDH-Reader Framework

The SBDH-Reader utilizes GPT-4o through a modular prompt engineering approach rather than traditional model fine-tuning. This design allows the system to remain flexible and easily updatable as clinical needs evolve. The core architecture consists of four primary components:

  1. Global Header: Establishes the model’s persona as a clinical data extractor and defines the overall task.
  2. Category-wise Instructions: Provides specific, granular definitions for six key SBDH categories: employment, housing, marital status, alcohol use, tobacco use, and drug use.
  3. Global Finisher: Instructs the model to prioritize current patient status over historical data or future predictions and mandates a structured JSON output.
  4. Evidence Extraction: Critically, the model is prompted to return the specific text snippet used to justify its classification. This "chain-of-thought" style evidence allows for human-in-the-loop verification and increases the transparency of the extraction process.

By using zero-shot and few-shot prompting, SBDH-Reader can be adapted to new categories or refined definitions simply by modifying the prompt text, bypassing the need for expensive, GPU-intensive retraining.

Experimental Validation

The system was developed and validated using three distinct datasets:

  • MIMIC-G & MIMIC-A: Subsets of the publicly available MIMIC-III database, totaling over 7,000 notes. These were used for iterative prompt refinement.
  • UTSW Validation Set: An independent, real-world test set comprising 971 full-length clinical notes from 437 heart failure patients at UT Southwestern Medical Center.

During the development phase, the researchers performed a rigorous "clean-up" of existing ground-truth labels in the MIMIC datasets. Interestingly, the LLM-driven process identified several errors in the original human-annotated labels, demonstrating the model's high precision in identifying subtle clinical details that human reviewers had previously overlooked.

Results and Performance

SBDH-Reader demonstrated state-of-the-art performance across all tested categories, with particularly strong results on the independent UTSW validation set:

  • Macro-average F1 Scores: Ranged from 0.85 to 0.98 across the six SBDH categories.
  • Adverse Attribute Detection: The model excelled at identifying high-risk factors (e.g., homelessness, unemployment, or active substance use), achieving F1 scores between 0.94 and 0.99.
  • Sensitivity: The system achieved a recall of 0.97 for adverse attributes, indicating that it missed very few critical social risk factors mentioned in the documentation.
  • Generalization: The model performed better on the modern UTSW validation set than on the older MIMIC datasets. This suggests that the structured nature of modern EHR systems (like Epic) complements the LLM’s extraction capabilities.

Discussion: Why LLMs Excel at SBDH

A key insight from this research is that SBDH information is often documented using "general domain" language. Unlike oncology or pathology reports, which require specialized medical vocabulary, descriptions of living situations or employment (e.g., "lives with spouse," "retired construction worker") align closely with the general-purpose training data of LLMs like GPT-4o. This allows the model to perform at a high level without medical-specific fine-tuning.

Furthermore, the SBDH-Reader provides a level of granularity that binary models lack. Instead of a simple "Smoker: Yes/No," the system extracts attributes such as "Past user," "Current user," or "Never user." This allows researchers to map data to various clinical definitions post-hoc without re-running the extraction. The inclusion of a "No Information" category also serves as a vital quality metric, highlighting gaps in clinical documentation that may point to health inequities.

Limitations and Future Work

While highly effective, the use of LLM APIs introduces considerations regarding cost and scalability. Processing millions of notes can be expensive. Future iterations may involve "note trimming"—using lightweight models to identify relevant sections of a note before sending them to the LLM for detailed extraction.

Additionally, while the evidence-extraction feature mitigates the risk of hallucinations, automated verification of these snippets remains an area for further development. Finally, the researchers aim to transition from single-note extraction to a "memory bank" system capable of tracking a patient’s social determinants longitudinally over years of clinical visits to build a comprehensive SBDH profile.

Conclusion

SBDH-Reader represents a scalable, accurate, and flexible solution for capturing the social context of patient health. By turning unstructured clinical narratives into actionable data, this tool provides a foundation for more personalized clinical care and more robust population health research.

Summary updated

BibTeX
@misc{gu2025sbdh,
  author = {Zifan Gu and Li He and Ayesha Naeem and Pui Man Chan and A. A. Mohamed and Heba M. A. Khalil and Yujia Guo and Wenqi Shi and Matthew E. Dupre and Guanghua Xiao and Eric D. Peterson and Yang Xie and Ann Marie Návar and Donghan M. Yang and Yang Xie and Ann Marie Navar and Donghan M. Yang},
  title = {{SBDH-Reader: an LLM-powered method for extracting social and behavioral determinants of health from clinical notes}},
  year = {2025},
  doi = {10.1101/2025.02.19.25322576},
  howpublished = {medRxiv},
}
Figure