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
. 2023:1:29.
doi: 10.1186/s44247-023-00029-w. Epub 2023 Aug 7.

A framework for multi-faceted content analysis of social media chatter regarding non-medical use of prescription medications

Affiliations

A framework for multi-faceted content analysis of social media chatter regarding non-medical use of prescription medications

Shaina Raza et al. BMC Digit Health. 2023.

Abstract

Background: Substance use, including the non-medical use of prescription medications, is a global health problem resulting in hundreds of thousands of overdose deaths and other health problems. Social media has emerged as a potent source of information for studying substance use-related behaviours and their consequences. Mining large-scale social media data on the topic requires the development of natural language processing (NLP) and machine learning frameworks customized for this problem. Our objective in this research is to develop a framework for conducting a content analysis of Twitter chatter about the non-medical use of a set of prescription medications.

Methods: We collected Twitter data for four medications-fentanyl and morphine (opioids), alprazolam (benzodiazepine), and Adderall® (stimulant), and identified posts that indicated non-medical use using an automatic machine learning classifier. In our NLP framework, we applied supervised named entity recognition (NER) to identify other substances mentioned, symptoms, and adverse events. We applied unsupervised topic modelling to identify latent topics associated with the chatter for each medication.

Results: The quantitative analysis demonstrated the performance of the proposed NER approach in identifying substance-related entities from data with a high degree of accuracy compared to the baseline methods. The performance evaluation of the topic modelling was also notable. The qualitative analysis revealed knowledge about the use, non-medical use, and side effects of these medications in individuals and communities.

Conclusions: NLP-based analyses of Twitter chatter associated with prescription medications belonging to different categories provide multi-faceted insights about their use and consequences. Our developed framework can be applied to chatter about other substances. Further research can validate the predictive value of this information on the prevention, assessment, and management of these disorders.

Keywords: Machine learning; Natural language processing; Social media; Substance use.

PubMed Disclaimer

Conflict of interest statement

Competing interests The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
Overview of proposed NLP framework for extracting non-medical prescription medication use-related information from Twitter chatter
Fig. 2
Fig. 2
The main components of the proposed NLP framework (a) Named Entity Recognition architecture with embedding layer, BiLSTM layer and CRF layer, (b) Topic modelling component
Fig. 3
Fig. 3
The coherence scores for the topics generated by BERTopic for four drugs: Fentanyl, Morphine, Alprazolam, and Adderall®. The coherence scores range between 0–1, with values closer to 1 indicating high coherence among the topics
Fig. 4
Fig. 4
Most frequent substances mentioned in tweets along with (a) fentanyl, (b) morphine, (c) alprazolam, and (d) Adderall®
Fig. 5
Fig. 5
Percentage distribution of adverse drug events (ADE) due to substance non-medical use. The scores are normalized, x-axis presents the frequency distribution and y-axis presents the ADE
Fig. 6
Fig. 6
Top-10 Substance Use Topics from May 2021 to October 2021. Each line or marker represents a specific topic, with the x-axis showing the date and the y-axis indicating the value (importance or frequency) of each topic

Similar articles

Cited by

References

    1. Ahmad FB, Cisewski JA, Rossen LM, Sutton P. Products - Vital Statistics Rapid Release - Provisional Drug Overdose Data. National Center for Health Statistics. 2022.
    1. Hughes A, Williams MR, Lipari RN, Bose J, Copello EA, Kroutil LA. Prescription drug use and misuse in the United States: results from the 2015 national survey on drug use and health. NSDUH data review, substance abuse and mental health services administration. Natl Survey Drug Use Health. 2016;2016:1–41.
    1. Singh J Centers for disease control and prevention. Indian J Pharmacol. 2004;36:268–9. https://www.cdc.gov/. Accessed 27 Jan 2022.
    1. U.S. Food and Drug Administration. Neurontin. 2017. https://www.accessdata.fda.gov/drugsatfda_docs/label/2017/020235s064_020.... Accessed 22 July 2023.
    1. Hochstein C, Goshorn J, Chang F. United states national library of medicine drug information portal. Med Ref Serv Q. 2009;28(2):154–63. - PMC - PubMed

LinkOut - more resources