Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Sep 13:4:e51156.
doi: 10.2196/51156.

The Use of Natural Language Processing Methods in Reddit to Investigate Opioid Use: Scoping Review

Affiliations

The Use of Natural Language Processing Methods in Reddit to Investigate Opioid Use: Scoping Review

Alexandra Almeida et al. JMIR Infodemiology. .

Abstract

Background: The growing availability of big data spontaneously generated by social media platforms allows us to leverage natural language processing (NLP) methods as valuable tools to understand the opioid crisis.

Objective: We aimed to understand how NLP has been applied to Reddit (Reddit Inc) data to study opioid use.

Methods: We systematically searched for peer-reviewed studies and conference abstracts in PubMed, Scopus, PsycINFO, ACL Anthology, IEEE Xplore, and Association for Computing Machinery data repositories up to July 19, 2022. Inclusion criteria were studies investigating opioid use, using NLP techniques to analyze the textual corpora, and using Reddit as the social media data source. We were specifically interested in mapping studies' overarching goals and findings, methodologies and software used, and main limitations.

Results: In total, 30 studies were included, which were classified into 4 nonmutually exclusive overarching goal categories: methodological (n=6, 20% studies), infodemiology (n=22, 73% studies), infoveillance (n=7, 23% studies), and pharmacovigilance (n=3, 10% studies). NLP methods were used to identify content relevant to opioid use among vast quantities of textual data, to establish potential relationships between opioid use patterns or profiles and contextual factors or comorbidities, and to anticipate individuals' transitions between different opioid-related subreddits, likely revealing progression through opioid use stages. Most studies used an embedding technique (12/30, 40%), prediction or classification approach (12/30, 40%), topic modeling (9/30, 30%), and sentiment analysis (6/30, 20%). The most frequently used programming languages were Python (20/30, 67%) and R (2/30, 7%). Among the studies that reported limitations (20/30, 67%), the most cited was the uncertainty regarding whether redditors participating in these forums were representative of people who use opioids (8/20, 40%). The papers were very recent (28/30, 93%), from 2019 to 2022, with authors from a range of disciplines.

Conclusions: This scoping review identified a wide variety of NLP techniques and applications used to support surveillance and social media interventions addressing the opioid crisis. Despite the clear potential of these methods to enable the identification of opioid-relevant content in Reddit and its analysis, there are limits to the degree of interpretive meaning that they can provide. Moreover, we identified the need for standardized ethical guidelines to govern the use of Reddit data to safeguard the anonymity and privacy of people using these forums.

Keywords: NLP; Reddit; machine learning; natural language processing; opioid.

PubMed Disclaimer

Conflict of interest statement

Conflicts of Interest: None declared.

Figures

Figure 1
Figure 1
Diagram of the PRISMA (Preferred Reporting Items for Systematic Reviews and Meta-Analyses)–oriented review process. ACM: Association for Computing Machinery; NLP: natural language processing. Note: Under “Studies included in Review,” some of the papers were available on more than one database.
Figure 2
Figure 2
Number of studies investigating opioid use per year using Reddit data and studies’ overarching goals (each study could address more than 1 overarching goal).

Similar articles

Cited by

References

    1. Degenhardt L, Grebely J, Stone J, Hickman M, Vickerman P, Marshall BD, Bruneau J, Altice Fl, Henderson G, Rahimi-Movaghar A, Larney S. Global patterns of opioid use and dependence: harms to populations, interventions, and future action. Lancet. 2019 Oct 26;394(10208):1560–79. doi: 10.1016/S0140-6736(19)32229-9. https://europepmc.org/abstract/MED/31657732 S0140-6736(19)32229-9 - DOI - PMC - PubMed
    1. UNODC world drug report 2019. UN Office on Drugs and Crime. [2024-04-29]. https://tinyurl.com/zbxdwx7k .
    1. Drug overdose death rates. National Institute on Drug Abuse. 2023. [2024-04-29]. https://nida.nih.gov/research-topics/trends-statistics/overdose-death-rates .
    1. U.S. overdose deaths in 2021 increased half as much as in 2020 – but are still up 15% National Center for Health Statistics. 2022. [2024-04-18]. https://www.cdc.gov/nchs/pressroom/nchs_press_releases/2022/202205.htm#:... .
    1. Allem JP, Dharmapuri L, Unger JB, Cruz TB. Characterizing JUUL-related posts on Twitter. Drug Alcohol Depend. 2018 Sep 01;190:1–5. doi: 10.1016/j.drugalcdep.2018.05.018. https://europepmc.org/abstract/MED/29958115 S0376-8716(18)30333-8 - DOI - PMC - PubMed

Publication types

MeSH terms

Substances