Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models to Identify Social Determinants of Health in Electronic Health Records

Marco Guevara, Shan Chen|arXiv (Cornell University)|Aug 11, 2023
Chronic Disease Management StrategiesMedicine7 citations
TL;DR

This study evaluates fine-tuned large language models (LLMs) to extract social determinants of health (SDoH) from free-text electronic health records (EHRs), demonstrating that synthetic data augmentation improves performance—especially in smaller models—while reducing algorithmic bias. The best model achieved a macro-F1 of 0.71 on SDoH identification, outperforming zero- and few-shot GPT variants and capturing 93.8% of patients with adverse SDoH, compared to only 2.0% via ICD-10 codes.

ABSTRACT

Social determinants of health (SDoH) have an important impact on patient outcomes but are incompletely collected from the electronic health records (EHR). This study researched the ability of large language models to extract SDoH from free text in EHRs, where they are most commonly documented, and explored the role of synthetic clinical text for improving the extraction of these scarcely documented, yet extremely valuable, clinical data. 800 patient notes were annotated for SDoH categories, and several transformer-based models were evaluated. The study also experimented with synthetic data generation and assessed for algorithmic bias. Our best-performing models were fine-tuned Flan-T5 XL (macro-F1 0.71) for any SDoH, and Flan-T5 XXL (macro-F1 0.70). The benefit of augmenting fine-tuning with synthetic data varied across model architecture and size, with smaller Flan-T5 models (base and large) showing the greatest improvements in performance (delta F1 +0.12 to +0.23). Model performance was similar on the in-hospital system dataset but worse on the MIMIC-III dataset. Our best-performing fine-tuned models outperformed zero- and few-shot performance of ChatGPT-family models for both tasks. These fine-tuned models were less likely than ChatGPT to change their prediction when race/ethnicity and gender descriptors were added to the text, suggesting less algorithmic bias (p<0.05). At the patient-level, our models identified 93.8% of patients with adverse SDoH, while ICD-10 codes captured 2.0%. Our method can effectively extracted SDoH information from clinic notes, performing better compare to GPT zero- and few-shot settings. These models could enhance real-world evidence on SDoH and aid in identifying patients needing social support.

Motivation & Objective

  • To address the under-recording of social determinants of health (SDoH) in electronic health records (EHRs), which significantly impacts patient outcomes.
  • To evaluate the effectiveness of large language models (LLMs) in extracting SDoH from unstructured clinical notes.
  • To investigate whether synthetic clinical text can improve SDoH extraction performance in low-resource settings.
  • To assess algorithmic bias in LLMs when predicting SDoH, particularly regarding race and gender descriptors.
  • To compare fine-tuned LLMs against zero- and few-shot GPT models in SDoH detection accuracy and robustness.

Proposed method

  • Annotated 800 patient notes for 10 SDoH categories to create a gold-standard dataset for evaluation.
  • Fine-tuned multiple transformer-based LLMs, including Flan-T5 base, large, XL, and XXL variants, on the annotated EHR data.
  • Generated synthetic clinical text using prompt engineering and LLMs to augment training data and improve model generalization.
  • Evaluated model performance using macro-F1 scores on both in-hospital EHRs and the MIMIC-III dataset.
  • Assessed algorithmic bias by modifying input prompts with race/ethnicity and gender descriptors and measuring prediction consistency.
  • Compared fine-tuned models against zero- and few-shot inference using GPT-family models to evaluate performance differences.

Experimental results

Research questions

  • RQ1Can fine-tuned large language models effectively extract social determinants of health from unstructured EHR notes?
  • RQ2Does synthetic data generation improve the performance of LLMs in identifying SDoH, especially in low-resource settings?
  • RQ3How does the inclusion of demographic descriptors (e.g., race, gender) affect prediction stability and algorithmic bias in LLMs?
  • RQ4How do fine-tuned LLMs compare to zero- and few-shot GPT models in SDoH detection performance?
  • RQ5To what extent can LLMs identify patients with adverse SDoH compared to traditional ICD-10 coding?

Key findings

  • The best-performing model, fine-tuned Flan-T5 XL, achieved a macro-F1 score of 0.71 for any SDoH detection.
  • Smaller Flan-T5 models (base and large) showed the greatest performance gains from synthetic data augmentation, with F1 improvements of +0.12 to +0.23.
  • Fine-tuned models were significantly less likely than ChatGPT to alter predictions when race/ethnicity and gender descriptors were added, indicating reduced algorithmic bias (p < 0.05).
  • The best fine-tuned models outperformed zero- and few-shot GPT-family models in both SDoH extraction and prediction stability.
  • At the patient level, the best models identified 93.8% of patients with adverse SDoH, compared to only 2.0% captured by ICD-10 codes.
  • Model performance was consistent on in-hospital EHR data but lower on the MIMIC-III dataset, suggesting domain shift challenges.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.