# Artificial Intelligence for Opioid Safety Surveillance from Clinical Text: A Clinically Focused Review

**Authors:** Md Muntasir Zitu, Dwight Owen, Ashish Manne, Yuxi Zhu, Samar Binkheder, Lang Li

PMC · DOI: 10.3390/jcm15041649 · 2026-02-22

## TL;DR

This paper reviews how artificial intelligence can detect opioid-related harms in clinical text, offering a more accurate and detailed approach than traditional methods.

## Contribution

The paper synthesizes 47 studies on AI methods for opioid safety surveillance, highlighting advancements from rule-based systems to transformer models.

## Key findings

- AI methods can identify opioid-related events missed by traditional coding systems like ICD-10.
- Transformer-based models and large language models improve extraction of contextual details from clinical narratives.
- Current systems are best suited for detection-to-triage support rather than autonomous diagnosis.

## Abstract

Opioid-related iatrogenic harms, including opioid use disorder, overdose, and opioid-induced respiratory depression, constitute a major patient safety challenge. Although clinicians document key safety signals in unstructured clinical narratives, many of these indicators are not readily captured by conventional surveillance approaches that rely on structured administrative data. This clinically focused narrative review synthesizes 47 empirical studies published between 2009 and 2025 that applied artificial intelligence (AI) methods to identify opioid-related harms from clinical text and to address the resulting ascertainment gap. Across studies, administrative coding systems, including ICD-10, often under-ascertain opioid-related events, whereas text-based AI can identify additional cases and contextual details often documented primarily in narrative records, such as fluctuating mental status, suspected drug causality, and responses to naloxone. Methodologically, the literature has progressed from interpretable rule-based lexicons to machine learning and deep learning models and, more recently, to transformer-based approaches, including large language models (LLMs) for classification and schema-driven extraction. Rule-based systems established the feasibility of transparent surveillance and frequently recovered clinically documented cases missed by billing codes. Subsequent supervised and deep learning approaches expanded scalability and, in a smaller subset of studies, were integrated into electronic health record workflows with operational metrics reported. More recent transformer- and LLM-based studies emphasize richer extraction schemas and benchmark development, including characterization of overdose context and intentionality and identification of potential prodromal neurocognitive signals, although external validation, calibration, and prospective outcome evaluation remain inconsistently reported. Given that the evidence base is predominantly retrospective and that clinical workflow studies remain comparatively few, a pragmatic near-term clinical role is to provide detection-to-triage decision support rather than autonomous diagnosis, in which systems surface candidate cases with reviewable evidence for clinician adjudication. Future progress will require greater standardization of phenotype definitions, routine equity auditing and subgroup reporting, stronger external validation and calibration at operational thresholds, and a shift from retrospective discrimination metrics toward prospective assessments of the clinical workflow impact, clinical utility, and patient-centered outcomes.

## Full-text entities

- **Diseases:** OUD (MESH:D009293), acute and chronic pain (MESH:D059787), analgesia (MESH:D000699), -9/10 (MESH:C557827), OIRD (MESH:D012131), LLM (MESH:D007806), AI (MESH:C538142), fatigue (MESH:D005221), delirium (MESH:D003693), DL (MESH:D007859), Drug Abuse (MESH:D019966), poisoning (MESH:D011041), Aberrant Behavior (MESH:D002869), cancer (MESH:D009369), injury to (MESH:D014947), Pain (MESH:D010146), cancer-related pain (MESH:D000072716), Overdose (MESH:D062787), chronic pain (MESH:D059350), Cardiovascular Disease (MESH:D002318), Neurocognitive Symptoms (MESH:D012816), hallucinations (MESH:D006212), Opioid Overdose (MESH:D000083682), Classification of Diseases (MESH:D008310), death (MESH:D003643)
- **Chemicals:** fentanyl (MESH:D005283), buprenorphine (MESH:D002047), hydrocodone (MESH:D006853), morphine (MESH:D009020), Narcan (MESH:D009270), Flan-T5 (-), oxycodone (MESH:D010098), methadone (MESH:D008691)
- **Species:** Homo sapiens (human, species) [taxon 9606]
- **Mutations:** rs4364183

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12942020/full.md

---
Source: https://tomesphere.com/paper/PMC12942020