PofoliaDaily literature tracker

Journal of the American Medical Informatics Association· 2026Q1

Large language models can disambiguate opioid slang on social media

Kristy A. Carpenter, Issah Abubakari Samori, Mathew Vinhhoa Kiang, Keith N. Humphreys et al.

Short summary

Four state-of-the-art large language models (LLMs) significantly outperformed lexicon-based strategies in identifying opioid-related slang on social media, achieving F1 scores up to 0.972 in lexicon-based tasks and 0.784 in emergent slang identification.

AI-generated from the title and abstract; the full text is not read.

Key points

  • LLMs achieved higher F1 scores than lexicon strategies in identifying opioid slang on social media.
  • In lexicon-based tasks, LLM F1 scores ranged from 0.540 to 0.972, far exceeding lexicon scores.
  • LLMs also outperformed lexicons in lexicon-free tasks (F1: 0.544-0.769 vs. 0.080-0.540) and emergent slang identification (average accuracy: 0.784).
  • The consistent performance across four LLMs suggests generalizability of these capabilities.

AI-generated from the title and abstract; the full text is not read.

Abstract

Objectives Social media text shows promise for monitoring trends in the opioid overdose crisis. However, many slang terms for opioids used on social media have common non-opioid meanings. The reasoning capability of large language models (LLMs) presents an opportunity to disambiguate these slang terms at scale to better assemble corpora of opioid-related text. Materials and methods We present 3 tasks on which to evaluate 4 state-of-the-art LLMs (GPT-4, GPT-5, Gemini 2.5 Pro, and Claude Sonnet 4.5): a lexicon-based setting, a lexicon-free setting, and an emergent slang setting. We assemble datasets of Twitter posts to conduct each task. Results In both subtasks of the lexicon-based setting, LLM F1 scores (“fenty” subtask: 0.824-0.972; “smack” subtask: 0.540-0.862) exceeded those of the best lexicon strategy (0.126 and 0.009, respectively). In the lexicon-free task, LLM F1 scores (0.544-0.769) surpassed those of lexicons (0.080-0.540), and LLMs demonstrated uniformly higher recall. On emergent slang, all LLMs had higher accuracy (average: 0.784), F1 score (average: 0.712), precision (average: 0.981), and recall (average: 0.587) than the 2 lexicons assessed. Discussion The consistency of performance across the 4 LLMs assessed suggests that these findings generalize across LLMs broadly. Our results show that LLMs can be used to identify relevant content for low-prevalence topics, including but not limited to opioid references, enhancing data provided to downstream analyses and predictive models. Conclusion LLMs can be a useful tool for curating opioid-related social media text datasets that can in turn forecast trends in the opioid crisis.

The authors' abstract, as published at the source. Journal of the American Medical Informatics Association, 2026 · DOI ↗

TakeawaysFree for 3 days Ask the paperFree account

Continue with a free account

Ask the paper: 5 free questions a day about this paper; save it, get its citation, new summaries every day for your field. A new account opens the takeaways for its first 3 days.

Continue free on the web

Sign in with Google or Apple; no card needed. You come back to this paper.

On your phone:

Field: Public Health, Environmental and Occupational Health

Public Health, Environmental and Occupational HealthMedicine