Related Experiment Video
Updated: May 21, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Extracting Social Determinants of Health From Electronic Health Records: Development and Comparison of Rule-Based and
Bo Wang1,2,3,4, Dia Kabir1,2,3, Cheryl Renee Clark5
1Center for Precision Psychiatry, Massachusetts General Hospital, Boston, MA, United States.
Extracting social determinants of health (SDoH) from clinical notes is crucial. Large language models (LLMs) like GPT-5 and GPT-4o, especially when combined with rule-based systems, show superior performance in identifying SDoH compared to traditional methods.
Area of Science:
- Natural Language Processing (NLP)
- Clinical Informatics
- Population Health Research
Background:
- Social determinants of health (SDoH) significantly impact health outcomes.
- SDoH data are often underrepresented in structured electronic health records (EHRs).
- Unstructured clinical notes are a rich source of SDoH information.
Purpose of the Study:
- To develop and evaluate cost-efficient methods for extracting SDoH from clinical text.
- To compare rule-based NLP and large language model (LLM) approaches for SDoH extraction.
- To assess the performance of various GPT models and ensemble methods.
Main Methods:
- Construction of a gold-standard annotated corpus of clinical text from 171 patients.
- Development and evaluation of a rule-based system (RBS).
- Assessment of 7 OpenAI GPT models (GPT-4o, GPT-4.1, GPT-4.1-mini, o4-mini, GPT-5, GPT-5-mini, GPT-3) in zero-shot and few-shot settings.
- Implementation of late-fusion ensemble methods combining RBS and LLM outputs.
Main Results:
- RBS achieved high precision (0.96) but low recall (0.68) for SDoH domains.
- GPT models consistently outperformed RBS in recall and F1-scores.
- GPT-5 and GPT-5-mini achieved the best domain-level performance (F1=0.89) in few-shot settings.
- o4-mini showed the highest subcategory-level performance (F1=0.88).
- Late-fusion ensemble improved domain-level performance (F1=0.92) with balanced precision (0.93) and recall (0.90).
Conclusions:
- Advanced GPT models, including mini versions, demonstrate strong SDoH extraction performance without fine-tuning.
- LLM-based methods consistently outperform rule-based NLP systems for SDoH extraction.
- Integrating rule-based and LLM methods via late fusion enhances domain-level extraction.
- A cost-efficient framework for accurate SDoH identification from clinical text is established.
- This facilitates advancements in population health research and clinical informatics.
Related Concept Videos
Statistical Methods for Analyzing Epidemiological Data
Methods of Documentation VII: EMR
Models of Health Promotion and Illness Prevention I
The health belief model (HBM) attempts to predict health-related behavior in specific belief patterns. According to the HBM, a person's...
Steps in Outbreak Investigation
Mechanistic Models: Compartment Models in Individual and Population Analysis
Introduction to Epidemiology
