Results and Methodological Implications of the Digital Epidemiology of Prescription Drug References Among Twitter Users: Latent Dirichlet Allocation (LDA) Analyses
- PMID: 37505795
- PMCID: PMC10422173
- DOI: 10.2196/48405
Results and Methodological Implications of the Digital Epidemiology of Prescription Drug References Among Twitter Users: Latent Dirichlet Allocation (LDA) Analyses
Abstract
Background: Social media is an important information source for a growing subset of the population and can likely be leveraged to provide insight into the evolving drug overdose epidemic. Twitter can provide valuable insight into trends, colloquial information available to potential users, and how networks and interactivity might influence what people are exposed to and how they engage in communication around drug use.
Objective: This exploratory study was designed to investigate the ways in which unsupervised machine learning analyses using natural language processing could identify coherent themes for tweets containing substance names.
Methods: This study involved harnessing data from Twitter, including large-scale collection of brand name (N=262,607) and street name (N=204,068) prescription drug-related tweets and use of unsupervised machine learning analyses (ie, natural language processing) of collected data with data visualization to identify pertinent tweet themes. Latent Dirichlet allocation (LDA) with coherence score calculations was performed to compare brand (eg, OxyContin) and street (eg, oxys) name tweets.
Results: We found people discussed drug use differently depending on whether a brand name or street name was used. Brand name categories often contained political talking points (eg, border, crime, and political handling of ongoing drug mitigation strategies). In contrast, categories containing street names occasionally referenced drug misuse, though multiple social uses for a term (eg, Sonata) muddled topic clarity.
Conclusions: Content in the brand name corpus reflected discussion about the drug itself and less often reflected personal use. However, content in the street name corpus was notably more diverse and resisted simple LDA categorization. We speculate this may reflect effective use of slang terminology to clandestinely discuss drug-related activity. If so, straightforward analyses of digital drug-related communication may be more difficult than previously assumed. This work has the potential to be used for surveillance and detection of harmful drug use information. It also might be used for appropriate education and dissemination of information to persons engaged in drug use content on Twitter.
Keywords: LDA; NLP; Twitter; data mining; digital epidemiology; drug; drug use; epidemiological; epidemiology; machine learning; natural language processing; pharmaceutic; pharmaceutical; pharmaceuticals; pharmacy; prescription; social media; text mining; tweet; tweets; unsupervised analysis.
©Maria A Parker, Danny Valdez, Varun K Rao, Katherine S Eddens, Jon Agley. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 28.07.2023.
Conflict of interest statement
Conflicts of Interest: None disclosed.
Figures





Similar articles
-
Digital Epidemiology of Prescription Drug References on X (Formerly Twitter): Neural Network Topic Modeling and Sentiment Analysis.J Med Internet Res. 2024 Aug 23;26:e57885. doi: 10.2196/57885. J Med Internet Res. 2024. PMID: 39178036 Free PMC article.
-
Social media mining for birth defects research: A rule-based, bootstrapping approach to collecting data for rare health-related events on Twitter.J Biomed Inform. 2018 Nov;87:68-78. doi: 10.1016/j.jbi.2018.10.001. Epub 2018 Oct 4. J Biomed Inform. 2018. PMID: 30292855 Free PMC article.
-
Exploring trends of nonmedical use of prescription drugs and polydrug abuse in the Twittersphere using unsupervised machine learning.Addict Behav. 2017 Feb;65:289-295. doi: 10.1016/j.addbeh.2016.08.019. Epub 2016 Aug 17. Addict Behav. 2017. PMID: 27568339
-
Methods to Establish Race or Ethnicity of Twitter Users: Scoping Review.J Med Internet Res. 2022 Apr 29;24(4):e35788. doi: 10.2196/35788. J Med Internet Res. 2022. PMID: 35486433 Free PMC article.
-
Mining social media for prescription medication abuse monitoring: a review and proposal for a data-centric framework.J Am Med Inform Assoc. 2020 Feb 1;27(2):315-329. doi: 10.1093/jamia/ocz162. J Am Med Inform Assoc. 2020. PMID: 31584645 Free PMC article. Review.
Cited by
-
Understanding public perceptions and discussions on diseases involving chronic pain through social media: cross-sectional infodemiology study.BMC Musculoskelet Disord. 2024 Jul 22;25(1):569. doi: 10.1186/s12891-024-07687-5. BMC Musculoskelet Disord. 2024. PMID: 39034398 Free PMC article.
-
Digital Epidemiology of Prescription Drug References on X (Formerly Twitter): Neural Network Topic Modeling and Sentiment Analysis.J Med Internet Res. 2024 Aug 23;26:e57885. doi: 10.2196/57885. J Med Internet Res. 2024. PMID: 39178036 Free PMC article.
-
Analyzing Themes, Sentiments, and Coping Strategies Regarding Online News Coverage of Depression in Hong Kong: Mixed Methods Study.J Med Internet Res. 2025 Feb 13;27:e66696. doi: 10.2196/66696. J Med Internet Res. 2025. PMID: 39946170 Free PMC article.
References
-
- Ahmad F, Cisewski J, Rossen LM, Sutton P. Provisional Drug Overdose Death Counts. National Center for Health Statistics. [2022-10-17]. https://www.cdc.gov/nchs/nvss/vsrr/drug-overdose-data.htm .
-
- Ciccarone D. The rise of illicit fentanyls, stimulants and the fourth wave of the opioid overdose crisis. Curr Opin Psychiatry. 2021 Jul 01;34(4):344–350. doi: 10.1097/YCO.0000000000000717. https://europepmc.org/abstract/MED/33965972 00001504-900000000-99040 - DOI - PMC - PubMed
-
- Auxier B, Anderson M. Social Media Use in 2021. Pew Research Center. 2021. Apr 07, [2023-03-20]. https://www.pewresearch.org/internet/2021/04/07/social-media-use-in-2021/
-
- Burgess J. The ‘digital town square’? What does it mean when billionaires own the online spaces where we gather? The Conversation. 2022. Apr 27, [2023-03-06]. http://theconversation.com/the-digital-town-square-what-does-it-mean-whe... .