{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T05:12:31Z","timestamp":1790745151050,"version":"4.1.0"},"reference-count":34,"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>The opioid crisis poses a significant health challenge in the United States, with increasing overdoses and death rates due to opioids mixed with other illicit substances. Various strategies have been developed by federal and local governments and health organizations to address this crisis. One of the most significant objectives is to understand the epidemic through better health surveillance, and machine learning techniques can support this by identifying opioid users at risk of overdose through the analysis of social media data, as many individuals may avoid direct testing but still share their experiences online.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"objective\">\n                    <jats:title>Objective<\/jats:title>\n                    <jats:p>In this study, we take advantage of recent developments in machine learning that allow for insights into patterns of opioid use and potential risk factors in a less invasive manner using self-reported information available on social platforms.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"methods\">\n                    <jats:title>Methods<\/jats:title>\n                    <jats:p>This study used YouTube comments posted between December 2020 and March 2024, in which individuals shared their self-reported experiences of opioid drugs mixed with other substances. We manually annotated our dataset into multiclass categories, capturing both the positive effects of opioid use, such as pain relief, euphoria, and relaxation, and negative experiences, including nausea, sadness, and respiratory depression, to provide a comprehensive understanding of the multifaceted impact of opioids. By analyzing this sentiment, we used 4 state-of-the-art machine learning models, 2 deep learning models, 3 transformer models, and 1 large language model (GPT-3.5 Turbo) to predict overdose risks to improve health care response and intervention strategies.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec sec-type=\"results\">\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>\n                      Our proposed methodology (GPT-3.5 Turbo) was highly precise and accurate, helping to automatically identify sentiment based on the adverse effects of opioid drug combinations and high-risk drug use in YouTube comments. Our proposed methodology demonstrated the highest achievable\n                      <jats:italic>F<\/jats:italic>\n                      <jats:sub>1<\/jats:sub>\n                      -score of 0.95 and a 3.26% performance improvement over traditional machine learning models such as extreme gradient boosting, which demonstrated an\n                      <jats:italic>F<\/jats:italic>\n                      <jats:sub>1<\/jats:sub>\n                      -score of 0.92.\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 leveraging machine learning and large language models, such as GPT-3.5 Turbo, to analyze public sentiment surrounding opioid use and its associated risks. By using YouTube comments as a rich source of self-reported data, the study provides valuable insights into both the positive and negative effects of opioids, particularly when mixed with other substances. The proposed methodology significantly outperformed traditional models, contributing to more accurate predictions of overdose risks and enhancing health care responses to the opioid crisis.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.2196\/70525","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T13:41:27Z","timestamp":1750340487000},"page":"e70525-e70525","source":"Crossref","is-referenced-by-count":17,"title":["Sentiment Analysis Using a Large Language Model\u2013Based Approach to Detect Opioids Mixed With Other Substances Via Social Media: Method Development and Validation"],"prefix":"10.2196","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0009-0003-8799-8212","authenticated-orcid":false,"given":"Muhammad","family":"Ahmad","sequence":"first","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"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3901-3522","authenticated-orcid":false,"given":"Grigori","family":"Sidorov","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1010","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"issue":"6","key":"R1","doi-asserted-by":"publisher","first-page":"24","DOI":"10.1097\/01.ASM.0001071728.63045.b4","article-title":"The global burden of chronic pain","volume":"78","author":"Jackson","journal-title":"ASA Monitor"},{"issue":"10159","key":"R2","doi-asserted-by":"publisher","first-page":"1789","DOI":"10.1016\/S0140-6736(18)32279-7","article-title":"Global, regional, and national incidence, prevalence, and years lived with disability for 354 diseases and injuries for 195 countries and territories, 1990-2017: a systematic analysis for the Global Burden of Disease Study 2017","volume":"392","author":"GBD 2017 Disease and Injury Incidence and Prevalence Collaborators","journal-title":"Lancet"},{"issue":"9","key":"R3","doi-asserted-by":"publisher","first-page":"1740","DOI":"10.1097\/j.pain.0000000000002557","article-title":"A global study of pain prevalence across 52 countries: examining the role of country-level contextual factors","volume":"163","author":"Zimmer","journal-title":"Pain"},{"issue":"2","key":"R4","doi-asserted-by":"publisher","first-page":"e273","DOI":"10.1016\/j.bja.2019.03.023","article-title":"Chronic pain: a review of its epidemiology and associated factors in population-based studies","volume":"123","author":"Mills","journal-title":"Br J Anaesth"},{"issue":"36","key":"R5","doi-asserted-by":"publisher","first-page":"1001","DOI":"10.15585\/mmwr.mm6736a2","article-title":"Prevalence of chronic pain and high-impact chronic pain among adults - United States, 2016","volume":"67","author":"Dahlhamer","journal-title":"MMWR Morb Mortal Wkly Rep"},{"issue":"2","key":"R6","doi-asserted-by":"publisher","first-page":"e328","DOI":"10.1097\/j.pain.0000000000002291","article-title":"Prevalence of chronic pain among adults in the United States","volume":"163","author":"Yong","journal-title":"Pain"},{"issue":"10289","key":"R7","doi-asserted-by":"publisher","first-page":"2082","DOI":"10.1016\/S0140-6736(21)00393-7","article-title":"Chronic pain: an update on burden, best practices, and new advances","volume":"397","author":"Cohen","journal-title":"The Lancet"},{"key":"R8","doi-asserted-by":"publisher","DOI":"10.2147\/JPR.S138864","article-title":"Pain as a disease: an overview","volume":"10","author":"Raffaeli","journal-title":"J Pain Res"},{"issue":"1","key":"R9","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1007\/s11916-017-0606-z","article-title":"Medication overuse in chronic pain","volume":"21","author":"Hsu","journal-title":"Curr Pain Headache Rep"},{"issue":"9","key":"R10","doi-asserted-by":"publisher","first-page":"1111","DOI":"10.1002\/jcph.1276","article-title":"Opioid therapy in acute and chronic pain","volume":"58","author":"Nafziger","journal-title":"J Clin Pharmacol"},{"issue":"2","key":"R11","doi-asserted-by":"publisher","first-page":"396","DOI":"10.1124\/jpet.119.259408","article-title":"The opioid crisis and the future of addiction and pain therapeutics","volume":"371","author":"Coussens","journal-title":"J Pharmacol Exp Ther"},{"issue":"23","key":"R12","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.2115714119","article-title":"Modeling the evolution of the US opioid crisis for national policy development","volume":"119","author":"Lim","journal-title":"Proc Natl Acad Sci U S A"},{"issue":"1","key":"R13","doi-asserted-by":"publisher","first-page":"1166","DOI":"10.1515\/jisys-2018-0299","article-title":"Aspect-oriented sentiment analysis: a topic modeling-powered approach","volume":"29","author":"Anoop","journal-title":"Journal of Intelligent Systems"},{"issue":"11","key":"R14","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"},{"issue":"4","key":"R15","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0194290","article-title":"Can Twitter be used to predict county excessive alcohol consumption rates?","volume":"13","author":"Curtis","journal-title":"PLoS One"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.2196\/47225","article-title":"Public surveillance of social media for suicide using advanced deep learning models in Japan: time series study from 2012 to 2022","volume":"25","author":"Wang","journal-title":"J Med Internet Res"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.3389\/fpsyt.2022.652167","article-title":"Detecting suicide ideation in the era of social media: the population neuroscience perspective","volume":"13","author":"Morese","journal-title":"Front Psychiatry"},{"issue":"1","key":"R18","doi-asserted-by":"publisher","first-page":"51","DOI":"10.1027\/0227-5910\/a000234","article-title":"Tracking suicide risk factors through Twitter in the US","volume":"35","author":"Jashinsky","journal-title":"Crisis"},{"issue":"7232","key":"R19","doi-asserted-by":"publisher","first-page":"1012","DOI":"10.1038\/nature07634","article-title":"Detecting influenza epidemics using search engine query data","volume":"457","author":"Ginsberg","journal-title":"Nature New Biol"},{"issue":"10","key":"R20","doi-asserted-by":"publisher","first-page":"13873","DOI":"10.1609\/aaai.v34i10.7209","article-title":"Suicide risk assessment via temporal psycholinguistic modeling (student abstract)","volume":"34","author":"Mathur","journal-title":"AAAI"},{"key":"R21","doi-asserted-by":"crossref","unstructured":"Aroyehun ST Gelbukh A . Detection of adverse drug reaction in tweets using a combination of heterogeneous word embeddings. Presented at: Proceedings of the Fourth Social Media Mining for Health Applications (#SMM4H) Workshop & Shared Task. Aug 2, 2019:Association for Computational Linguistics. 133-135; Florence, Italy. [doi: 10.18653\/v1\/W19-3224]","DOI":"10.18653\/v1\/W19-3224"},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1609\/icwsm.v16i1.19372","article-title":"Drink bleach or do what now? COVID-HeRA: a study of risk-informed health decision making in the presence of COVID-19 misinformation","volume":"16","author":"Dharawat","journal-title":"ICWSM"},{"issue":"8","key":"R23","doi-asserted-by":"publisher","first-page":"1382","DOI":"10.1017\/S0033291720000173","article-title":"Natural language processing of clinical mental health notes may add predictive value to existing suicide risk models","volume":"51","author":"Levis","journal-title":"Psychol Med"},{"issue":"10","key":"R24","doi-asserted-by":"publisher","DOI":"10.2196\/22635","article-title":"Natural language processing reveals vulnerable mental health support groups and heightened health anxiety on Reddit during COVID-19: observational study","volume":"22","author":"Low","journal-title":"J Med Internet Res"},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.2196\/50013","article-title":"Understanding public perceptions and discussions on opioids through Twitter: cross-sectional infodemiology study","volume":"25","author":"Carabot","journal-title":"J Med Internet Res"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1145\/3678470","article-title":"A text-inception-based natural language processing model for sentiment analysis of drug experiences","author":"Swaileh A. Alzaidi","journal-title":"ACM Trans Asian Low-Resour Lang Inf Process"},{"issue":"11","key":"R27","doi-asserted-by":"publisher","first-page":"982","DOI":"10.1080\/15563650.2021.1893742","article-title":"Methadone and suboxone mentions on Twitter: thematic and sentiment analysis","volume":"59","author":"Chenworth","journal-title":"Clin Toxicol (Phila)"},{"key":"R28","doi-asserted-by":"publisher","DOI":"10.7717\/peerj-cs.1976","article-title":"Deep learning-based method for sentiment analysis for patients\u2019 drug reviews","volume":"10","author":"Al-Hadhrami","journal-title":"PeerJ Comput Sci"},{"issue":"2","key":"R29","doi-asserted-by":"publisher","first-page":"901","DOI":"10.1007\/s11277-022-09981-8","article-title":"An enhanced exploration of sentimental analysis in health care","volume":"128","author":"Chakrapani","journal-title":"Wireless Pers Commun"},{"key":"R30","unstructured":"Nair AB Jaison DT Anoop VS . Hey..! This medicine made me sick: sentiment analysis of user-generated drug reviews using machine learning techniques. arXiv. Preprint posted online on 2024. URL: https:\/\/arxiv.org\/abs\/2404.13057 [Accessed 31-05-2025]"},{"key":"R31","doi-asserted-by":"publisher","DOI":"10.2196\/57395","article-title":"Public health discussions on social media: evaluating automated sentiment analysis methods","volume":"9","author":"Gandy","journal-title":"JMIR Form Res"},{"key":"R32","volume":"12","author":"Pedregosa","journal-title":"J Mach Learn Res"},{"key":"R33","unstructured":"Abadi M Barham P Chen J et al. TensorFlow: a system for {large-scale} machine learning. Presented at: 12th USENIX symposium on operating systems design and implementation (OSDI 16); Nov 2-4, 2016:265-283; Savannah, GA."},{"key":"R34","unstructured":"Gulli A Pal S . Deep Learning with Keras. Packt Publishing Ltd; 2017. ISBN: 978-1-78712-842-2"}],"container-title":["JMIR Infodemiology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/infodemiology.jmir.org\/2025\/1\/e70525","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T17:59:19Z","timestamp":1782842359000},"score":1,"resource":{"primary":{"URL":"https:\/\/infodemiology.jmir.org\/2025\/1\/e70525"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":34,"URL":"https:\/\/doi.org\/10.2196\/70525","relation":{},"ISSN":["2564-1891"],"issn-type":[{"value":"2564-1891","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]},"article-number":"v5i6e70525"}}