Distinguishing Social Isolation, Social Support, and Contextual False Positives in Clinical Notes Using Fine-Tuned Language Models: Multisite Validation Study
L. K. Chinthala, C. Lemon, A. Shaban-Nejad, G. Farage, R. L. Davis, H. Xu, C. Madlock-Brown
Key points
From the paper's conclusion- Conclusions: Fine-tuned language models can distinguish social isolation, social support, and contextually similar but unrelated language across heterogeneous clinical settings.
Abstract
Background: Social isolation and social support are clinically important but inconsistently represented in structured electronic health record data. Their identification from clinical narratives is complicated by nuanced, context-dependent language and by variation in how social connectedness is documented across clinical settings, patient populations, and geographic locations. Models intended for health care use must therefore distinguish social isolation from documented support, negation, ambiguous social circumstances, and non-social clinical uses of similar terminology while remaining robust to differences in documentation practices. Objective: This study aimed to develop and evaluate locally deployable, fine-tuned language models for context-aware classification of social isolation, social support, and contextually similar non-relevant clinical text across multiple health systems. Materials and Methods: We conducted a retrospective study using electronic health record data from 326,847 adults aged 50 years or older who received care at 3 Tennessee health systems from 2020 to 2023. Candidate clinical text was identified using social-environment ICD-10-CM Z codes and an established social isolation lexicon. Human annotators classified 9,748 spans from 9,578 clinical notes contributed by 6,881 patients as social isolation, social support, or no social isolation. The annotated corpus included social isolation and support concepts including negations, infection-control and microbiology terminology, institutional living arrangements, and other contextually ambiguous examples. FLAN-T5-Large, BERT, RoBERTa, and Gemma-2-2B were fine-tuned for 3-class span classification. Full fine-tuning and parameter-efficient fine-tuning using low-rank adaptation approaches were evaluated for the best performing model, FLAN-T5-Large. Performance was assessed using site-based internal-external cross-validation, with macro-F1 as the primary metric. Results: The annotated corpus included 2,318 social isolation spans, 638 social support spans, and 6,792 spans classified as no social isolation. Fully fine-tuned FLAN-T5-Large achieved the best performance, with a mean macro-F1 of 0.90 (SD 0.01). Class-specific F1 scores were 0.85 (SD 0.03) for social isolation, 0.87 (SD 0.04) for social support, and 0.96 (SD 0.02) for no social isolation. Gemma-2-2B achieved a macro-F1 of 0.85 (SD 0.01), compared with 0.84 (SD 0.06) for RoBERTa and 0.86 (SD 0.06) for BERT. Full fine-tuning also outperformed parameter-efficient fine-tuning in secondary pooled analyses (macro-F1 0.93 vs 0.90) in the corresponding held-out evaluation for the FLAN-T5-Large model. Remaining errors primarily involved patients who lived alone but received assistance, family presence without meaningful support, grief-related language, and non-social clinical uses of isolation terminology. Conclusions: Fine-tuned language models can distinguish social isolation, social support, and contextually similar but unrelated language across heterogeneous clinical settings. FLAN-T5-Large provided the strongest and most stable performance, including for the less frequent social support class. The 3-class annotation framework, inclusion of difficult negative examples, and multisite evaluation offer a practical approach for converting nuanced social-connectedness documentation into structured data. Further work should evaluate end-to-end identification in unselected clinical notes and prospective integration into clinical and population health workflows.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Prevalence of stigmatizing language in outpatient primary care medical records of middle and older aged adults: a cross-sectional studyBMC Primary Care · 2026
- Extracting Social Determinants of Health From Electronic Health Records: Development and Comparison of Rule-Based and Large Language Model MethodsJMIR Medical Informatics · 2026
- Clinical text de-identification with locally deployed open-weight large language models: a real-world evaluation of discharge notesFrontiers in Digital Health · 2026
- Developing a social vulnerability index from real-world electronic health records using natural language processingmedRxiv · 2026
- Detecting stigmatizing language in clinical notes with large language models for addiction carenpj Health Systems · 2026
- Counterfactual Auditing of Bias in Open-Source Large Language Models for Clinical TriagearXiv · 2026