Conceptio › Archive › NCBI PubMed Central
NCBI PubMed Central open access

A fairness framework for natural language processing in substance use disorders and overdose.

Zhu DT et al. · ncbi_pmc
NCBI PubMed Central · Papers
Open Source ↗Direct PDF ↓
machine-learning-systems
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

A fairness framework for natural language processing in substance use disorders and overdose - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice PLOS Digit Health . 2026 Jun 5;5(6):e0001480. doi: 10.1371/journal.pdig.0001480 A fairness framework for natural language processing in substance use disorders and overdose David T Zhu 1, * , Suhanee Mitragotri 2 , Suzanne Tamang 3, 4 Editor: Rawan Abulibdeh 5 Author information Article notes Copyright and License information 1 Medical‌‌ Scientist Training Program, School of Medicine, Virginia Commonwealth University, Richmond, Virginia, United States of America 2 Harvard College, Harvard University, Cambridge, Massachusetts, United States of America 3 Department of Medicine, Stanford University School of Medicine, Stanford, California, United States of America 4 Department of Veterans Affairs, Program Evaluation Resource Center, Office of Mental Health and Suicide Prevention, Menlo Park, California, United States of America 5 University of Toronto - St George Campus: University of Toronto, CANADA ✉ * E-mail: davetzhu@gmail.com The authors have declared that no competing interests exist. Roles David T Zhu : Conceptualization, Writing – original draft, Writing – review & editing Suhanee Mitragotri : Conceptualization, Writing – original draft, Writing – review & editing Suzanne Tamang : Conceptualization, Writing – original draft, Writing – review & editing Rawan Abulibdeh : Editor Collection date 2026 Jun. © 2026 Zhu et al This is an open access article distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. PMC Copyright notice PMCID: PMC13240862  PMID: 42247378 The overdose crisis claimed nearly 70,000 lives in the 12-month period ending December 2025 [ 1 ]. Researchers, clinicians, and public health agencies are increasingly interested in machine learning (ML) approaches, such as natural language processing (NLP), to identify patients at risk, extract timely clinical and toxicological information, and support targeted interventions [ 2 ]. These NLP tools are commonly implemented using deep learning architectures such as transformer-based models, recurrent neural networks (RNNs), and convolutional neural networks (CNNs), which are well-suited for modeling sequential and unstructured text data from sources such as clinical notes and social media posts [ 3 ]. In particular, transformer-based models are now widely used in modern NLP because of their ability to capture long-range contextual dependencies at scale, making them a common foundation for downstream training and fairness interventions. Despite their promise, these tools also carry substantial risks. Without deliberate safeguards, NLP models may reinforce the same structural inequities that have long marginalized people who use drugs (PWUD), particularly if fairness is not prioritized in their design and evaluation [ 4 ]. “Fairness” entails developing and applying algorithms that perform equitably across racial, socioeconomic, and geographic subgroups, while accounting for the historical and structural biases embedded in health and social data . In this Opinion, we propose a conceptual framework for developing and deploying fairness-centered NLP applications in the overdose crisis. Specifically, we advance three pillars: bias detection and mitigation, equity-centered design, and community engagement. This framework builds on established ML fairness approaches, including equal opportunity and demographic parity, while extending fairness beyond model performance to address the structural inequities affecting patients with substance use disorders. Firstly, NLP models must be explicitly evaluated in the populations most affected by the overdose crisis. Although Black and American Indian/Alaska Native populations experience disproportionately high overdose mortality rates [ 5 ], assessments of model bias or subgroup-specific performance in these groups remain uncommon. In one study, a NLP model trained to detect opioid misuse from clinical notes demonstrated an absolute false negative rate of 32% among Black patients, nearly twice the rate observed among White patients [ 6 ]. Missed cases among Black patients were associated with worse clinical outcomes, including higher risks of hospitalization and death [ 6 ]. If left unaddressed, such disparities may delay timely interventions for patients already facing structural barriers to care and further erode trust in health systems. Even when models appear fair on average, uneven performance across subgroups undermines the principle of equal opportunity fairness , which holds that individuals at comparable risk should be equally likely to be flagged for intervention [ 7 ]. These inequities often remain hidden unless performance is explicitly disaggregated by race and ethnicity, socioeconomic status, or geography. Techniques such as subgroup-specific threshold calibration, which adjusts decision thresholds separately across groups to equalize error rates, offer one potential pathway to mitigate these gaps without sacrificing overall accuracy [ 6 ]. It should be noted, however, that key protected attributes such as race and ethnicity are often not reliably or consistently documented across electronic health record systems, complicating fairness evaluation and limiting the feasibility of subgroup-specific analyses. Future work should therefore explore complementary approaches to fairness assessment in settings with incomplete or misclassified demographic data. Secondly, in considering equity-centered design, we must recognize that bias is often embedded in training data itself. Such bias may arise from multiple sources, including representational bias due to systematic underrepresentation of certain populations, measurement bias from differential documentation or coding practices, and historical bias reflecting entrenched structural racism within healthcare systems. Clinical documentation, a common input for NLP models, can contain stigmatizing or stereotypical language [ 8 ]. For example, Black patients are more frequently labeled as “noncompliant” or “agitated,” terms that reflect biased provider perception rather than objective clinical differences [ 8 ]. When models are trained naïvely on such data, they may learn to associate such descriptors with overdose risk because they reflect racialized stereotypes embedded in the data. These concerns extend beyond clinical notes to other data sources increasingly used in overdose surveillance and prediction, including social media posts, toxicology reports, and emergency medical services narratives, all of which are influenced by social context and institutional practices. Similar risks apply to other medically underserved populations with substance use disorders, including rural populations, justice-involved individuals, people experiencing homelessness, and those with intersecting marginalized identities. Rather than treating such data as neutral sources of information, developers must interrogate what the model is learning and why. Counterfactual data augmentation (CDA) offers one promising strategy to address these challenges. CDA improves fairness by training models to discount demographic signals that are not directly linked to risk [ 9 ]. It does so by generating matched inputs that differ only in protected attributes, such as race, gender, or dialect, while holding clinically-relevant content constant. For example, if a model assigns a higher risk score to “Black male, noncompliant” than to an otherwise identical note reading “White male, noncompliant,” CDA penalizes that discrepancy, while preserving differences driven by clinically meaningful descriptors. In this way, CDA encourages models to focus on clinically justified features rather than socially coded ones. In a foundational sentiment classification study, Kaushik et al. demonstrated that models trained on counterfactual examples were significantly more robust to spurious correlations [ 9 ]. This principle is directly relevant to overdose-related NLP. By incorporating carefully designed “what-if” examples drawn from clinical notes or social media, models can learn to distinguish meaningful clinical signals from bias. When implemented thoughtfully, CDA strengthens both equity and validity by helping models learn what they should and unlearn what they should not. Although CDA is model-agnostic and applicable across architectures, including transformers, RNNs, and CNNs, it can be computationally intensive and difficult to scale for large clinical datasets. Moreover, additional studies and reviews are needed to evaluate the effectiveness of CDA and other sources of algorithmic bias in clinical NLP and overdose prediction contexts. Such work must grapple with inherent tradeoffs among fairness objectives; for example, improvements in equal opportunity may come at the expense of demographic parity, necessitating explicit, context-specific decisions and further research to characterize these tradeoffs during model evaluation and deployment. Thirdly, artificial intelligence tools intended to help communities should be developed with them, not just for them. Despite increasing recognition of this need, fewer than 0.2% of studies on artificial intelligence in healthcare broadly report any form of community involvement [ 10 ]. This lack of inclusion not only undermines trust but weakens technical performance by overlooking lived experiences that are essential to understanding evolving drug trends and often fails to adequately address community needs to meet people where they are at. Community engagement is particularly salient for NLP applications related to xylazine, a veterinary sedative increasingly detected in the illicit drug supply and associated with severe skin wounds and prolonged sedation [ 5 ]. NLP-based surveillance of xylazine highlights the value of community-based participatory design approaches, including community forums, participatory annotation, and compensated collaboration with PWUD. In one study, researchers applied Reddit-based NLP to identify emerging discourse, then consulted with PWUD to validate and contextualize the findings [ 11 ]. Future efforts could also involve PWUD during study conceptualization (e.g., identifying relevant outcomes, data sources, and terminology), model deployment (e.g., determining appropriate use cases and safeguards to minimize harm), and post-deployment monitoring and evaluation (e.g., assessing changes in drug use over time, misclassification, or unintended consequences). Within the context of a rapidly evolving overdose crisis, such engagement provides essential domain knowledge to refine model inputs and outputs. Community participants could help identify colloquial terminology, such as “tranq” or anestesia de caballo (“horse anesthesia”), that may otherwise elude traditional keyword-based detection methods in electronic health record data. They can also shed light on emerging patterns of polysubstance use, including combinations of xylazine with opioids and stimulants in “speedball” formulations that are increasingly common [ 5 ]. Integrating this experiential knowledge into NLP development improves contextual sensitivity and ensures alignment with lived realities of substance use. Despite these benefits, community-engaged NLP research has important limitations that warrant careful consideration. These include ethical concerns related to privacy, consent, and the risk of reinforcing stigma or surveillance-related harms. Implementation may also pose feasibility challenges for smaller health systems and under-resourced public health settings, emphasizing the need for scalable, context-appropriate engagement and governance models. Clear compensation frameworks, data governance agreements, and explicit boundaries around how model outputs are used are essential to ensure that participation is not extractive and that resulting tools benefit, rather than harm, the communities most affected. When implemented thoughtfully, however, community engagement can strengthen the ethical development and deployment of NLP systems addressing xylazine and the broader overdose crisis. NLP presents a powerful tool to strengthen epidemiological surveillance and public health interventions in the face of a rapidly evolving overdose crisis. As these technologies gain traction, researchers and public health systems face a critical opportunity to advance equity by embedding fairness throughout the entire pipeline, from model development and validation to procurement, deployment, and downstream use. For researchers and NLP developers, this may involve treating bias detection and mitigation, equity-centered design, and community engagement as core design objectives rather than a post hoc consideration. For clinicians and public health agencies, it may include integrating fairness audits into implementation decisions, monitoring performance across populations over time, and seeking ongoing feedback from clinical and public health professionals. Sustaining these efforts will require long-term institutional and public investment in data infrastructure, interdisciplinary expertise, and community partnerships, rather than one-time pilot funding. Ultimately, a fairness-centered approach to NLP in the overdose crisis demands coordination across research, practice, and policy to ensure that these technologies improve surveillance and prediction in ways that are equitable, accountable, and responsive to the communities most affected by substance use disorders and overdose. Funding Statement The authors received no specific funding for this work. References 1. Centers for Disease Control and Prevention. Provisional drug overdose death counts. 2025. [cited 2025 April 1]. Available from: https://www.cdc.gov/nchs/nvss/vsrr/drug-overdose-data.htm 2. Goodman-Meza D, Shover CL, Medina JA, Tang AB, Shoptaw S, Bui AAT. Development and validation of machine models using natural language processing to classify substances involved in overdose deaths. JAMA Netw Open. 2022;5(8):e2225593. doi: 10.1001/jamanetworkopen.2022.25593 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 3. Sajja GS, Meesala MK, Addula SR, Ravipati P. Optimizing retail supply chain sales forecasting with a mayfly algorithm-enhanced bidirectional gated recurrent unit. SN COMPUT SCI. 2025;6(6). doi: 10.1007/s42979-025-04209-5 [ DOI ] [ Google Scholar ] 4. Obermeyer Z, Powers B, Vogeli C, Mullainathan S. Dissecting racial bias in an algorithm used to manage the health of populations. Science. 2019;366(6464):447–53. doi: 10.1126/science.aax2342 [ DOI ] [ PubMed ] [ Google Scholar ] 5. Zhu DT. Racial and ethnic disparities in fentanyl and polysubstance overdose deaths. JAMA Psychiatry. 2025;82(1):99–100. doi: 10.1001/jamapsychiatry.2024.3435 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 6. Thompson HM, Sharma B, Bhalla S, Boley R, McCluskey C, Dligach D, et al. Bias and fairness assessment of a natural language processing opioid misuse classifier: detection and mitigation of electronic health record data disadvantages across racial subgroups. J Am Med Inform Assoc. 2021;28(11):2393–403. doi: 10.1093/jamia/ocab148 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 7. Hardt M, Price E, Srebro N. Equality of opportunity in supervised learning. 2016. https://doi.org/arXiv.1610.02413 8. Hovy D, Prabhumoye S. Five sources of bias in natural language processing. Lang Linguist Compass. 2021;15(8):e12432. doi: 10.1111/lnc3.12432 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 9. Kaushik D, Lipton ZC. Learning the difference that makes a difference with counterfactually-augmented data. arXiv. 2019. 10.48550/arXiv.1909.12434 [ DOI ] 10. Loftus TJ, Balch JA, Abbott KL, Hu D, Ruppert MM, Shickel B, et al. Community-engaged artificial intelligence research: a scoping review. PLOS Digit Health. 2024;3(8):e0000561. doi: 10.1371/journal.pdig.0000561 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 11. Spadaro A, O’Connor K, Lakamana S, Sarker A, Wightman R, Love JS, et al. Self-reported xylazine experiences: a mixed-methods study of reddit subscribers. J Addict Med. 2023;17(6):691–4. doi: 10.1097/ADM.0000000000001216 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Articles from PLOS Digital Health are provided here courtesy of PLOS ACTIONS View on publisher site PDF (154.9 KB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top

Related documents

Record · ID 265333 · SHA-256 20eef6d65b4eca41
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive