An approach to classifying and measuring stigmatizing and positive language at scale in electronic health records
Prior studies have demonstrated that clinicians’ attitudes towards patients can manifest in the language they use in clinical notes, and that this language can impact the attitudes of other clinicians reading those notes and the quality of care patients receive. To facilitate large-scale analysis of such language in the electronic health record (EHR), we developed an approach to identifying and semantically classifying stigmatizing and positive EHR language using natural language processing (NLP) methods. We first developed a dictionary of stigmatizing and positive terms used in clinicians’ notes and sorted them into semantic categories. We annotated 10,244 examples of those terms within clinical notes from 2 academic health systems, according to whether they conveyed stigmatizing or positive sentiments. We used these annotated examples to train and validate NLP models to identify and semantically categorize stigmatizing and positive EHR language. We ran our NLP models on a separate set of notes from a single health system, written between 2016 and 2023 in one of 4 clinical departments: Emergency Medicine, Internal Medicine, Obstetrics & Gynecology, and Surgery (including surgical subspecialties). We examined the prevalence of different semantic categories of EHR language, overall and across clinical departments, and used novel methods to evaluate the impact of note templates and copy-forward practices on language prevalence. Our dictionary included terms in 4 semantic categories: credibility, demeanor, conformity with recommended care, and physical appearance. Across 12,841,577 notes, stigmatizing terms related to patient conformity (e.g., noncompliant) were most common (4.23% of notes), followed by those suggesting the patient lacked credibility (0.86%) or had a challenging demeanor (0.82%). Stigmatizing terms were copied forward in up to 25% of notes; positive terms (e.g., pleasant) were commonly included in templates (up to 65% of notes). Both stigmatizing and positive terms varied in prevalence across clinical contexts. Stigmatizing and positive EHR language conveys different sentiments that vary in prevalence and reflect different underlying biases. Our methods can be used to measure EHR language as markers of institutional culture and bias, guide interventions to target the specific types of bias identified as most problematic, and monitor the impact of those interventions.
Authors
- Mary Catherine Beach (ORCID: https://orcid.org/0000-0002-1112-6309)
- Somnath Saha (ORCID: https://orcid.org/0000-0001-5027-8295)
- Brant Chee (ORCID: https://orcid.org/0000-0002-6174-4201)
- Anne R. Links (ORCID: https://orcid.org/0000-0003-0053-2878)
- Alya Ahmad (ORCID: https://orcid.org/0009-0003-3902-048X)
- Ayah Zirikly (ORCID: https://orcid.org/0000-0002-8441-1741)
- Keith Harrigian (ORCID: https://orcid.org/0000-0001-9483-8469)
- Dingfen Han
- Yahan Li
- Mark Dredze
Institutions
- Johns Hopkins University (US)
- Johns Hopkins Medicine (US)
- Johns Hopkins University Applied Physics Laboratory (US)
- Johns Hopkins Berman Institute of Bioethics (US)
- Johns Hopkins Center for Health Security (US)
Publication Details
- Journal
- BMC Health Services Research
- Published
- 2026-08-20
- DOI
- https://doi.org/10.1186/s12913-026-15358-5
- Primary Topic
- Patient-Provider Communication in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Institutes of Health