Differential Analysis of Age, Gender, Race, Sentiment, and Emotion in Substance Use Discourse on Twitter During the COVID-19 Pandemic: A Natural Language Processing Approach (Preprint)
Preprint
- 8 October 2024
- preprint
- Published by JMIR Publications Inc. in JMIR Preprints
Abstract
BACKGROUND User demographics are often hidden in social media data due to privacy concerns. However, demographic information on substance use (SU) can provide valuable insights, allowing public health policy makers to focus on specific cohorts and develop efficient prevention strategies, especially during global crises such as the COVID-19 pandemic. OBJECTIVE This study aimed to analyze SU trends at the user level across different demographic dimensions, such as age, gender, race, and ethnicity, with a focus on the COVID-19 pandemic. The study also establishes a baseline for SU trends using social media data. METHODS The study was conducted using large-scale English-language data from Twitter (now known as X) over a 3-year period (2019, 2020, and 2021), comprising 1.13 billion posts. Following preprocessing, the SU posts were identified using our custom-trained deep learning model (Robustly Optimized Bidirectional Encoder Representations From Transformers Pretraining Approach [RoBERTa]), which resulted in the identification of 9 million SU posts. Then, demographic attributes, such as user type, age, gender, race, and ethnicity, as well as sentiments and emotions associated with each post, were extracted via a collection of natural language processing modules. Finally, various qualitative analyses were performed to obtain insight into user behaviors based on demographics. RESULTS The highest level of user participation in SU discussions was observed in 2020, with a 22.18% increase compared to 2019 and a 25.24% increase compared to 2021. Throughout the study period, male users and teenagers increasingly dominated the SU discussions across all substance types. During the COVID-19 pandemic, user participation in prescription medication discussions was notably higher among female users compared to other substance types. In addition, alcohol use increased by 80% within 2 weeks after the global pandemic declaration in 2020. CONCLUSIONS This study presents a large-scale, fine-grained analysis of SU on social media data, examining trends by age, gender, race, and ethnicity before, during, and after the COVID-19 pandemic. Our findings, contextualized with sociocultural and pandemic-specific factors, provide actionable insights for targeted public health interventions. This study establishes social media data (powered with artificial intelligence and natural language processing tools) as a valuable platform for real-time SU surveillance and prevention during crises.Keywords
All Related Versions
- Published version: JMIR Infodemiology, 5 (1), e67333.
This publication has 40 references indexed in Scilit:
- Racial and Ethnic Disparities and Prevalence in Prescription Drug Misuse, Illicit Drug Use, and Combination of Both Behaviors in the United StatesInternational Journal of Mental Health and Addiction, 2023
- Human-in-the-loop machine learning: a state of the artArtificial Intelligence Review, 2022
- Racial and Ethnic Disparities in Mental Health and Mental Health Care During The COVID-19 PandemicJournal of Racial and Ethnic Health Disparities, 2022
- Racial and Ethnic Disparities in Rates of COVID-19–Associated Hospitalization, Intensive Care Unit Admission, and In-Hospital Death in the United States From March 2020 to February 2021JAMA Network Open, 2021
- Changes in alcohol use as a function of psychological distress and social support following COVID-19 related University closingsAddictive Behaviors, 2020
- Age trends in rates of substance use disorders across ages 18–90: Differences by gender and race/ethnicityDrug and Alcohol Dependence, 2017
- Social Media Mining for Toxicovigilance: Automatic Monitoring of Prescription Medication Abuse from TwitterDrug Safety, 2016
- “I just wanted to tell you that loperamide WILL WORK”: A web-based study of extra-medical use of loperamideDrug and Alcohol Dependence, 2013
- Drug Trend Monitoring2010
- Emotions, Evolution, And Adaptive Processes1970