{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,3]],"date-time":"2026-09-03T08:28:00Z","timestamp":1788424080855,"version":"build-2803163510"},"reference-count":56,"publisher":"JMIR Publications Inc.","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["JMIR Infodemiology"],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:sec sec-type=\"background\">\n                    <jats:title>Background<\/jats:title>\n                    <jats:p>Opioid overdose is a global public health emergency, with the United States experiencing high rates of morbidity and mortality due to prescription and illicit opioid use. Traditional public health monitoring systems often fail to provide real-time insights, limiting their capacity for early detection and intervention. Social media platforms, especially Reddit, offer a promising alternative for timely toxicovigilance due to the abundance of user-generated, real-time content.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"objective\">\n                    <jats:title>Objective<\/jats:title>\n                    <jats:p>This study aimed to explore the use of Reddit as a real-time, high-volume source for toxicovigilance and develop an automated system that can classify and analyze opioid-related social media posts to detect behavioral patterns and monitor the evolution of public discourse on opioid use.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"methods\">\n                    <jats:title>Methods<\/jats:title>\n                    <jats:p>\n                      To investigate evolving social media discourse around opioid use, we collected a large-scale dataset from Reddit spanning 6 years, from January 1, 2018, to December 30, 2023. Using a comprehensive opioid lexicon\u2014including formal drug names, street slang, common misspellings, and abbreviations\u2014we filtered relevant posts for further analysis. A subset of these data was manually annotated according to well-defined annotation guidelines into 4 categories: self-misuse\n                      <jats:italic>,<\/jats:italic>\n                      external misuse\n                      <jats:italic>,<\/jats:italic>\n                      information\n                      <jats:italic>,<\/jats:italic>\n                      and unrelated, with distributions of 37.21%, 27.25%, 27.57%, and 7.97%, respectively. To automate the classification of opioid-related chatter, we developed a robust natural language processing pipeline leveraging classical machine learning algorithms, deep learning models, and transformer-based architecture, and fine-tuned a state-of-the-art large language model (LLM; OpenAI GPT-3.5 Turbo). In the final stage, the trained LLM was deployed on an unlabeled dataset comprising 74,975 additional Reddit chatter posts. This enabled a detailed temporal analysis of opioid-related discussions, aligned with 6 years of opioid-related death records from the Centers for Disease Control and Prevention (CDC). For this study, self-misuse and external misuse were merged into a misuse category for direct comparison with the CDC\u2019s mortality data, examining whether trends in social media discourse on opioid misuse reflect patterns in real-world mortality statistics.\n                    <\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"results\">\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>\n                      The fine-tuned GPT-3.5 Turbo model achieved the highest classification accuracy of 0.93, outperforming the baseline (random forest 0.85) by representing a performance improvement of 9.14% over the machine learning model. The temporal analysis of the unlabeled data revealed evolving trends in opioid-related discussions, indicating shifts in user behavior and overdose-related chatter over time. To quantify this relationship, we calculated the Pearson correlation coefficient between misuse-related posts and CDC death records (\n                      <jats:italic>r<\/jats:italic>\n                      =0.854). This correlation was statistically significant (\n                      <jats:italic>P<\/jats:italic>\n                      &lt;.001), indicating a strong positive relationship between web-based discussions and CDC mortality data.\n                    <\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"conclusions\">\n                    <jats:title>Conclusions<\/jats:title>\n                    <jats:p>This study demonstrates the potential of integrating advanced natural language processing techniques and LLMs with social media data to support real-time public health surveillance. Reddit provides a valuable platform for identifying emerging trends in opioid use and overdose risk. The proposed system offers a proactive tool for researchers, clinicians, and policymakers to better understand and respond to the opioid crisis.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.2196\/77279","type":"journal-article","created":{"date-parts":[[2025,11,4]],"date-time":"2025-11-04T20:14:14Z","timestamp":1762287254000},"page":"e77279-e77279","source":"Crossref","is-referenced-by-count":5,"title":["Monitoring Opioid-Related Social Media Chatter Using Natural Language Processing and Large Language Models: Temporal Analysis"],"prefix":"10.2196","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3901-3522","authenticated-orcid":false,"given":"Grigori","family":"Sidorov","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-8799-8212","authenticated-orcid":false,"given":"Muhammad","family":"Ahmad","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0545-1105","authenticated-orcid":false,"given":"Pierpaolo","family":"Basile","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-5419-5441","authenticated-orcid":false,"given":"Muhammad","family":"Waqas","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6152-8034","authenticated-orcid":false,"given":"Rita","family":"Orji","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0241-7902","authenticated-orcid":false,"given":"Ildar","family":"Batyrshin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1010","published-online":{"date-parts":[[2025,11,4]]},"reference":[{"key":"R1","doi-asserted-by":"crossref","unstructured":"National Academies of Sciences, Engineering, and Medicine. Pain Management and the Opioid Epidemic: Balancing Societal and Individual Benefits and Risks of Prescription Opioid Use. National Academies Press; 2017. [doi: 10.17226\/24781]","DOI":"10.17226\/24781"},{"key":"R2","unstructured":"Drug overdose deaths: facts and figures. National Institute on Drug Abuse. 2019. URL: https:\/\/nida.nih.gov\/research-topics\/trends-statistics\/overdose-death-rates [Accessed 11-09-2019]"},{"issue":"5152","key":"R3","doi-asserted-by":"publisher","first-page":"1419","DOI":"10.15585\/mmwr.mm675152e1","article-title":"Drug and opioid-involved overdose deaths - United States, 2013-2017","volume":"67","author":"Scholl","journal-title":"MMWR Morb Mortal Wkly Rep"},{"issue":"4","key":"R4","doi-asserted-by":"publisher","first-page":"344","DOI":"10.1097\/YCO.0000000000000717","article-title":"The rise of illicit fentanyls, stimulants and the fourth wave of the opioid overdose crisis","volume":"34","author":"Ciccarone","journal-title":"Curr Opin Psychiatry"},{"key":"R5","unstructured":"Opioid overdose: drug overdose deaths. Centers for Disease Control and Prevention. 2018. URL: https:\/\/www.cdc.gov\/drugoverdose\/data\/statedeaths.html [Accessed 11-09-2019]"},{"issue":"1","key":"R6","doi-asserted-by":"publisher","first-page":"67","DOI":"10.5811\/westjem.2014.10.24197","article-title":"Prescription drug monitoring programs: examining limitations and future approaches","volume":"16","author":"Griggs","journal-title":"West J Emerg Med"},{"issue":"7","key":"R7","doi-asserted-by":"publisher","first-page":"847","DOI":"10.1002\/pds.4003","article-title":"Characteristics of state prescription drug monitoring programs: a state-by-state survey","volume":"25","author":"Manasco","journal-title":"Pharmacoepidemiol Drug Saf"},{"issue":"6","key":"R8","doi-asserted-by":"publisher","first-page":"959","DOI":"10.1002\/cpt.992","article-title":"Public health policy strategies to address the opioid epidemic","volume":"103","author":"Holton","journal-title":"Clin Pharmacol Ther"},{"key":"R9","doi-asserted-by":"publisher","DOI":"10.1146\/annurev-publhealth-031914-122957","article-title":"The prescription opioid and heroin crisis: a public health approach to an epidemic of addiction","volume":"36","author":"Kolodny","journal-title":"Annu Rev Public Health"},{"issue":"2S","key":"R10","doi-asserted-by":"publisher","first-page":"S148","DOI":"10.1016\/j.japh.2017.01.001","article-title":"Strategies and policies to address the opioid epidemic: a case study of Ohio","volume":"57","author":"Penm","journal-title":"J Am Pharm Assoc (2003)"},{"issue":"16","key":"R11","doi-asserted-by":"publisher","first-page":"1537","DOI":"10.1001\/jama.2017.14567","article-title":"Ten steps the federal government should take now to reverse the opioid addiction epidemic","volume":"318","author":"Kolodny","journal-title":"JAMA"},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1016\/j.jbi.2015.02.004","article-title":"Utilizing social media data for pharmacovigilance: a review","volume":"54","author":"Sarker","journal-title":"J Biomed Inform"},{"issue":"10","key":"R13","doi-asserted-by":"publisher","first-page":"2600","DOI":"10.1111\/add.15458","article-title":"Heroin use cannot be measured adequately with a general population survey","volume":"116","author":"Reuter","journal-title":"Addiction"},{"key":"R14","unstructured":"Statement from FDA commissioner Scott Gottlieb, M.D., on FDA\u2019s new strategic framework to advance use of real-world evidence to support development of drugs and biologics. Food and Drug Administration. 2018. URL: https:\/\/www.fda.gov\/news-events\/press-announcements\/statement-fda-commissioner-scott-gottlieb-mdfdas-new-strategic-framework-advance-use-real-world [Accessed 11-09-2019]"},{"key":"R15","doi-asserted-by":"crossref","unstructured":"Meng J Tench R . The role of social media influencers in public health communication: case COVID-19 pandemic. In: Strategic Communication and the Global Pandemic. Routledge; 2025:118-134. [doi: 10.4324\/9781003466437-9]","DOI":"10.4324\/9781003466437-9"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.13223184","article-title":"Stigma against mental illness and mental health: the role of social media","author":"Rizzo","journal-title":"Adv Med Psychol Public Health"},{"issue":"1","key":"R17","doi-asserted-by":"publisher","first-page":"223","DOI":"10.1007\/s10389-023-02012-1","article-title":"The global prevalence of social media addiction among university students: a systematic review and meta-analysis","volume":"33","author":"Salari","journal-title":"J Public Health (Berl)"},{"issue":"4","key":"R18","doi-asserted-by":"publisher","first-page":"1534","DOI":"10.1111\/phn.13554","article-title":"I found it on Instagram: exploring the impact of social media on public health communication","volume":"42","author":"Carton-Erlandsson","journal-title":"Public Health Nurs"},{"issue":"2","key":"R19","doi-asserted-by":"publisher","first-page":"111","DOI":"10.1080\/15398285.2025.2463047","article-title":"The role of social media for health communication during COVID-19: a scoping review","volume":"29","author":"Wella","journal-title":"J Consum Health Internet"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.2196\/48519","article-title":"Detecting substance use disorder using social media data and the dark web: time- and knowledge-aware study","volume":"5","author":"Lokala","journal-title":"JMIRx Med"},{"issue":"1","key":"R21","doi-asserted-by":"publisher","first-page":"56","DOI":"10.1111\/dar.13716","article-title":"Understanding and preventing the advertisement and sale of illicit drugs to young people through social media: a multidisciplinary scoping review","volume":"43","author":"Fuller","journal-title":"Drug Alcohol Rev"},{"issue":"2","key":"R22","doi-asserted-by":"publisher","first-page":"31","DOI":"10.3390\/ai6020031","article-title":"Leveraging transformer models for enhanced pharmacovigilance: a comparative analysis of ADR extraction from biomedical and social media texts","volume":"6","author":"Elbiach","journal-title":"AI"},{"issue":"1","key":"R23","doi-asserted-by":"publisher","first-page":"332","DOI":"10.33093\/jiwe.2025.4.1.24","article-title":"Personalized drug recommendation system using Wasserstein auto-encoders and adverse drug reaction detection with weighted feed forward neural network (WAES-ADR) in healthcare","volume":"4","author":"Omana","journal-title":"J Inform Web Eng"},{"key":"R24","doi-asserted-by":"publisher","DOI":"10.2196\/54601","article-title":"Using large language models to detect and understand drug discontinuation events in web-based forums: development and validation study","volume":"27","author":"Trevena","journal-title":"J Med Internet Res"},{"key":"R25","unstructured":"Ahmad M Waqas M Sidorov G . Leveraging large language models for multi-class and multi-label detection of drug use and overdose symptoms on social media. arXiv. Preprint posted online on Apr 16, 2025. [doi: 10.48550\/arXiv.2504.12355]"},{"key":"R26","unstructured":"Social media fact sheet. Pew Reseach Center. Jun 12, 2019. URL: https:\/\/www.pewinternet.org\/fact-sheet\/social-media [Accessed 01-09-2019]"},{"issue":"5","key":"R27","doi-asserted-by":"publisher","DOI":"10.1016\/j.isci.2025.112503","article-title":"Predictors of medical and non-medical motives of cannabis use in Finland: a cross-sectional survey study","volume":"28","author":"Hupli","journal-title":"iScience"},{"key":"R28","doi-asserted-by":"publisher","DOI":"10.2196\/59076","article-title":"Large-scale deep learning-enabled infodemiological analysis of substance use patterns on social media: insights from the COVID-19 pandemic","volume":"5","author":"Maharjan","journal-title":"JMIR Infodemiology"},{"issue":"4","key":"R29","doi-asserted-by":"publisher","first-page":"303","DOI":"10.1080\/10550887.2015.1074505","article-title":"Drug use in the Twittersphere: a qualitative contextual analysis of tweets about prescription drugs","volume":"34","author":"Shutler","journal-title":"J Addict Dis"},{"key":"R30","doi-asserted-by":"publisher","DOI":"10.3389\/fpsyt.2024.1282026","article-title":"Insights from the Twittersphere: a cross-sectional study of public perceptions, usage patterns, and geographical differences of tweets discussing cocaine","volume":"15","author":"Castillo-Toledo","journal-title":"Front Psychiatry"},{"key":"R31","doi-asserted-by":"crossref","unstructured":"Hu H Phan N Geller J et al. An ensemble deep learning model for drug abuse detection in sparse twitter-sphere. In: MEDINFO 2019: Health and Wellbeing e-Networks for All. IOS Press; 2019:163-167.","DOI":"10.3233\/SHTI190204"},{"issue":"13","key":"R32","doi-asserted-by":"publisher","first-page":"2132","DOI":"10.1080\/10826084.2018.1458319","article-title":"Opioid discussion in the Twittersphere","volume":"53","author":"Graves","journal-title":"Subst Use Misuse"},{"key":"R33","unstructured":"Ahmad M Farid H Ameer I et al. Opioid named entity recognition (ONER-2025) from Reddit. arXiv. Preprint posted online on Mar 28, 2025. [doi: 10.48550\/arXiv.2504.00027]"},{"key":"R34","doi-asserted-by":"publisher","DOI":"10.2196\/70525","article-title":"Sentiment analysis using a large language model-based approach to detect opioids mixed with other substances via social media: method development and validation","volume":"5","author":"Ahmad","journal-title":"JMIR Infodemiology"},{"issue":"7","key":"R35","doi-asserted-by":"publisher","first-page":"545","DOI":"10.3390\/info16070545","article-title":"Opioid crisis detection in social media discourse using deep learning approach","volume":"16","author":"Ahmad","journal-title":"Information"},{"key":"R36","doi-asserted-by":"publisher","DOI":"10.1016\/j.socscimed.2019.112642","article-title":"A critical content analysis of media reporting on opioids: the social construction of an epidemic","volume":"244","author":"Webster","journal-title":"Soc Sci Med"},{"issue":"2","key":"R37","doi-asserted-by":"publisher","first-page":"340","DOI":"10.1177\/0022042620986508","article-title":"Tweeting stigma: an exploration of Twitter discourse regarding medications used for both opioid use disorder and chronic pain","volume":"51","author":"Dekeseredy","journal-title":"J Drug Issues"},{"issue":"2","key":"R38","doi-asserted-by":"publisher","first-page":"83","DOI":"10.1177\/0091450920929102","article-title":"Where the fault lies: representations of addiction in audience reactions to media coverage of the opioid epidemic","volume":"47","author":"Russell","journal-title":"Contemp Drug Probl"},{"key":"R39","unstructured":"Hedberg S . Erratic mothers and wild animals: a critical discourse analysis of online newspapers\u2019 representations of female and male opioid users [Master\u2019s thesis]. Malm\u00f6 University; 2019. URL: https:\/\/www.diva-portal.org\/smash\/get\/diva2:1481656\/FULLTEXT01.pdf [Accessed 30-10-2025]"},{"issue":"1","key":"R40","doi-asserted-by":"publisher","first-page":"123","DOI":"10.1111\/soin.12269","article-title":"The kids are all White: examining race and representation in news media coverage of opioid overdose deaths in Canada","volume":"90","author":"Johnston","journal-title":"Sociol Inq"},{"issue":"3","key":"R41","doi-asserted-by":"publisher","DOI":"10.47172\/2965-730X.SDGsReview.v5.n03.pe05445","article-title":"Drug addiction awareness discourse on social media: a corpus linguistic study in the context of sustainable development goals","volume":"5","author":"Jaafar","journal-title":"J Lifestyle SDG Rev"},{"key":"R42","unstructured":"Henson TD . Fentanyl, social media, and health policy: a mixed-methods health policy analysis of public comments on Youtube videos about fentanyl [Dissertation]. Central Michigan University; 2024. URL: https:\/\/scholarly.cmich.edu\/?a=d&d=CMUGR2024-009.1.28&e=-------en-10--1--txt-txIN%7CtxAU%7CtxTI-------- [Accessed 30-10-2025]"},{"issue":"11","key":"R43","doi-asserted-by":"publisher","DOI":"10.1001\/jamanetworkopen.2019.14672","article-title":"Machine learning and natural language processing for geolocation-centric monitoring and characterization of opioid-related social media chatter","volume":"2","author":"Sarker","journal-title":"JAMA Netw Open"},{"key":"R44","doi-asserted-by":"publisher","DOI":"10.1016\/j.compbiomed.2020.104132","article-title":"Utilizing a multi-class classification approach to detect therapeutic and recreational misuse of opioids on Twitter","volume":"129","author":"Fodeh","journal-title":"Comput Biol Med"},{"key":"R45","doi-asserted-by":"crossref","unstructured":"Ali AG LoveJennifer S . Large-Scale Social Media Analysis Reveals Emotions Associated with Nonmedical Prescription Drug Use. Health Data Science; 2022. [doi: 10.34133\/2022\/9851989]","DOI":"10.34133\/2022\/9851989"},{"key":"R46","doi-asserted-by":"publisher","DOI":"10.1016\/j.invent.2021.100467","article-title":"Detecting risk level in individuals misusing fentanyl utilizing posts from an online community on Reddit","volume":"26","author":"Garg","journal-title":"Internet Interv"},{"issue":"3","key":"R47","doi-asserted-by":"publisher","DOI":"10.2196\/33919","article-title":"Using named entity recognition to identify substances used in the self-medication of opioid withdrawal: natural language processing study of Reddit data","volume":"6","author":"Preiss","journal-title":"JMIR Form Res"},{"issue":"11","key":"R48","doi-asserted-by":"publisher","DOI":"10.2196\/15293","article-title":"Detection of suicidality among opioid users on Reddit: machine learning-based approach","volume":"22","author":"Yao","journal-title":"J Med Internet Res"},{"issue":"1","key":"R49","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-025-01642-x","article-title":"Monitoring the opioid epidemic via social media discussions","volume":"8","author":"Smith","journal-title":"NPJ Digit Med"},{"issue":"2","key":"R50","doi-asserted-by":"publisher","DOI":"10.22146\/ijccs.104757","article-title":"Exploring the impact of back-translation on BERT\u2019s performance in sentiment analysis of code-mixed language data","volume":"19","author":"Setiono","journal-title":"Indonesian J Computing Cybern Syst"},{"key":"R51","doi-asserted-by":"publisher","DOI":"10.1016\/j.eswa.2021.115033","article-title":"Using back-and-forth translation to create artificial augmented textual data for sentiment analysis models","volume":"178","author":"Body","journal-title":"Expert Syst Appl"},{"key":"R52","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00051","article-title":"Enriching word vectors with subword information","volume":"5","author":"Bojanowski","journal-title":"Trans Assoc Computational Linguistics"},{"key":"R53","doi-asserted-by":"crossref","unstructured":"Pennington J Socher R Manning CD . Glove: global vectors for word representation. Presented at: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP); Oct 25-29, 2014:1532-1543; Doha, Qatar. [doi: 10.3115\/v1\/D14-1162]","DOI":"10.3115\/v1\/D14-1162"},{"key":"R54","unstructured":"Bishop CM Spiegelhalter D Winn J . VIBES: a variational inference engine for bayesian networks. In: Becker S Thrun S Obermayer K , editors. Advances in Neural Information Processing Systems 15 (NIPS 2002). MIT Press; 1999:382-388. ISBN: 9780262025508"},{"key":"R55","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2025.3573955","article-title":"A comprehensive overview and analysis of large language models: trends and challenges","volume":"13","author":"Mohammed","journal-title":"IEEE Access"},{"key":"R56","unstructured":"National Center for Health Statistics. Provisional drug overdose death counts. Centers for Disease Control and Prevention. Aug 13, 2025. URL: https:\/\/www.cdc.gov\/nchs\/nvss\/vsrr\/drug-overdose-data.htm [Accessed 13-08-2025]"}],"container-title":["JMIR Infodemiology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/infodemiology.jmir.org\/2025\/1\/e77279","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T18:09:24Z","timestamp":1782842964000},"score":1,"resource":{"primary":{"URL":"https:\/\/infodemiology.jmir.org\/2025\/1\/e77279"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,11,4]]},"references-count":56,"URL":"https:\/\/doi.org\/10.2196\/77279","relation":{},"ISSN":["2564-1891"],"issn-type":[{"value":"2564-1891","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,11,4]]},"article-number":"v5i5152e77279"}}