Abstract
Extracting demographics, social determinants of health (SDoH), and family history from unstructured electronic health record (EHR) notes is critical for improving healthcare outcomes. This study investigates the efficacy of GPT-3.5 in a zero-shot learning environment, using minimal instructions to extract these entities. By evaluating performance through both traditional Named Entity Recognition (NER) metrics and semantic similarity, the research highlights the model's ability to capture clinical meaning despite rephrasing. Results show high performance in demographics (0.975 F1) and competitive results for family history (0.722 F1) and SDoH (0.615 F1), suggesting a path toward reducing manual annotation labor in clinical research.
Introduction: The Unstructured Data Challenge
Electronic Health Records (EHRs) contain vast amounts of patient information, yet much of the most granular data—such as living conditions, employment, and detailed family medical history—remains trapped in unstructured narrative notes. Traditionally, extracting this information required labor-intensive manual labeling to train specialized Named Entity Recognition (NER) models. This study explores whether Large Language Models (LLMs) like GPT-3.5 can bypass this bottleneck through zero-shot learning, requiring only simple natural language instructions to perform complex extraction tasks.
Methodology: Minimum Instruction, Maximum Potential
The researchers employed GPT-3.5 via the OpenAI API, adopting a "minimum instruction" approach. The model was provided with a basic system prompt defining its role as an annotator and a list of target categories: Age, Gender, Ethnicity, Family History, and Social History.
A key innovation in the methodology was the use of semantic evaluation. Because LLMs often rephrase text (e.g., converting "rheumatologist" to "employed as a rheumatologist"), traditional exact-match metrics can underestimate performance. The authors utilized Sentence-BERT embeddings to calculate cosine similarity, providing a more accurate reflection of the model's clinical utility.
Datasets and Scope
The study utilized 1,000 de-identified primary care MD progress notes from a University hospital. These notes were manually annotated by experts to create a gold-standard ground truth. The extraction scope included demographics and six specific SDoH sub-types.
Key Results and Insights
The model demonstrated varying levels of success based on entity complexity:
- Demographics: Achieved a near-perfect 0.975 F1-score, as these entities are typically explicit and unambiguous.
- Family History: Reached a 0.722 F1-score, showing strong capability in identifying familial medical patterns.
- Social Determinants (SDoH): Averaged a 0.615 F1-score. Within this category, Tobacco use was the most accurately identified, while Education status proved the most challenging.
The study confirmed that semantic similarity scores consistently outperformed traditional NER metrics, validating the hypothesis that GPT-3.5 captures the underlying clinical meaning even when it deviates from the original phrasing.
Discussion: Limitations and Future Directions
Despite the promising results, several hurdles remain for clinical deployment. The researchers noted a consistency gap, where the model might miss an entity in one run but identify it in another. Furthermore, the risk of hallucination—generating information not present in the source text—remains a concern.
Future research will focus on bridging these gaps through few-shot learning, clinical-specific fine-tuning, and active learning frameworks to enhance the reliability and precision of automated clinical data extraction.
Summary updated