Abstract
Social and Behavioral Determinants of Health (SBDoH) are critical predictors of clinical outcomes but are often poorly captured in structured electronic health records (EHRs). This study evaluates the efficacy of Transformer-based Natural Language Processing (NLP) models in extracting SBDoH from unstructured clinical notes. Using a cohort of lung cancer patients, researchers demonstrated that models like BERT and RoBERTa can accurately identify factors such as smoking, education, and employment status that are frequently missing from structured data. The findings suggest that NLP can significantly enhance the completeness of patient profiles for clinical research and risk assessment.
Introduction
In clinical research, Social and Behavioral Determinants of Health (SBDoH)—including smoking habits, education level, and employment status—are significant predictors of mortality and cancer risk. Despite their importance, these factors are rarely captured in structured formats like checkboxes or billing codes. For instance, the World Health Organization's "Z codes" for tracking these factors are utilized in less than 3% of patient records.
Consequently, vital patient context remains buried in unstructured clinical narratives—the free-text notes authored by healthcare providers. Without systematic extraction methods, researchers face confounding issues, potentially misattributing clinical outcomes to medical treatments rather than the patient's social environment. This study explores the use of state-of-the-art NLP to unlock this "hidden" data to better understand lung cancer outcomes.
Methods and Materials
The researchers framed the extraction of SBDoH as a Named-Entity Recognition (NER) task, identifying specific text spans and categorizing them into entities such as Employment or Education.
Model Architectures
Three primary architectures were compared:
- Transformers: BERT and RoBERTa models were tested, including versions pre-trained on general English (Wikipedia/Books) and those pre-trained on clinical text (MIMIC-III).
- LSTM-CRF: A traditional deep learning baseline for sequence labeling.
- Alignment Pipeline: To aggregate note-level extractions into patient-level profiles, a rule-based "majority voting" system was implemented.
Datasets
Data was sourced from the University of Florida (UF) Health Integrated Data Repository (1999–2020):
- General Cancer (GC) Cohort: 20,000 patients (1.5 million notes) used for model training.
- Lung Cancer Screening (LCS) Cohort: 864 patients (161,000+ notes) used to evaluate data recovery.
- Gold Standard Annotation: 500 clinical notes were manually annotated by experts to create a ground-truth dataset.
Results
The study revealed several key insights regarding the performance of NLP in clinical settings and the current state of structured data.
Model Performance
The BERT_general model emerged as the top performer, achieving a strict F1-score of 0.8791 and a lenient F1-score of 0.8999. Interestingly, models pre-trained on general English outperformed those pre-trained on clinical jargon. This suggests that SBDoH concepts are typically described using everyday language rather than specialized medical terminology. Both Transformer models significantly outperformed the LSTM-CRF baseline, highlighting the effectiveness of the "attention" mechanism in capturing the nuances of social history.
Addressing the Structured Data Gap
The most striking finding was the extent of missing data in structured records. In the lung cancer cohort, structured records contained zero information regarding education or employment. In contrast, the NLP model successfully extracted education data for 39% of patients and employment data for 47%.
While structured records have improved in tracking smoking status over time, they often provide only a static snapshot. The NLP approach captured smoking data for 71.57% of patients (compared to 56.44% in structured data) and provided a more granular, longitudinal history.
Discussion and Conclusion
This study demonstrates that Transformer-based NLP models can effectively bridge the gap between unstructured clinical notes and structured data for SBDoH. By identifying over 104,000 mentions of smoking and 22,000 mentions of education in the LCS cohort, the models made previously "invisible" data available for analysis.
Limitations and Future Work
The study was limited to five categories (Gender, Ethnicity, Smoking, Education, Employment) and conducted at a single institution. Future research should expand to include other critical factors like housing instability and food insecurity. Additionally, cross-institutional testing is necessary to ensure the models generalize across different documentation styles. As clinical workflows evolve to include more discrete data collection, NLP will remain a vital tool for complementing and enriching structured health records.
Summary updated