{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T20:56:25Z","timestamp":1792184185556,"version":"4.4.0"},"reference-count":71,"publisher":"JMIR Publications Inc.","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J Med Internet Res"],"abstract":"<jats:sec>\n                    <jats:title>Background<\/jats:title>\n                    <jats:p>Data from the social media platform X (formerly Twitter) can provide insights into the types of language that are used when discussing drug use. In past research using latent Dirichlet allocation (LDA), we found that tweets containing \u201cstreet names\u201d of prescription drugs were difficult to classify due to the similarity to other colloquialisms and lack of clarity over how the terms were used. Conversely, \u201cbrand name\u201d references were more amenable to machine-driven categorization.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Objective<\/jats:title>\n                    <jats:p>This study sought to use next-generation techniques (beyond LDA) from natural language processing to reprocess X data and automatically cluster groups of tweets into topics to differentiate between street- and brand-name data sets. We also aimed to analyze the differences in emotional valence between the 2 data sets to study the relationship between engagement on social media and sentiment.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Methods<\/jats:title>\n                    <jats:p>We used the Twitter application programming interface to collect tweets that contained the street and brand name of a prescription drug within the tweet. Using BERTopic in combination with Uniform Manifold Approximation and Projection and k-means, we generated topics for the street-name corpus (n=170,618) and brand-name corpus (n=245,145). Valence Aware Dictionary and Sentiment Reasoner (VADER) scores were used to classify whether tweets within the topics had positive, negative, or neutral sentiments. Two different logistic regression classifiers were used to predict the sentiment label within each corpus. The first model used a tweet\u2019s engagement metrics and topic ID to predict the label, while the second model used those features in addition to the top 5000 tweets with the largest term-frequency\u2013inverse document frequency score.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>Using BERTopic, we identified 40 topics for the street-name data set and 5 topics for the brand-name data set, which we generalized into 8 and 5 topics of discussion, respectively. Four of the general themes of discussion in the brand-name corpus referenced drug use, while 2 themes of discussion in the street-name corpus referenced drug use. From the VADER scores, we found that both corpora were inclined toward positive sentiment. Adding the vectorized tweet text increased the accuracy of our models by around 40% compared with the models that did not incorporate the tweet text in both corpora.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Conclusions<\/jats:title>\n                    <jats:p>BERTopic was able to classify tweets well. As with LDA, the discussion using brand names was more similar between tweets than the discussion using street names. VADER scores could only be logically applied to the brand-name corpus because of the high prevalence of non\u2013drug-related topics in the street-name data. Brand-name tweets either discussed drugs positively or negatively, with few posts having a neutral emotionality. From our machine learning models, engagement alone was not enough to predict the sentiment label; the added context from the tweets was needed to understand the emotionality of a tweet.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.2196\/57885","type":"journal-article","created":{"date-parts":[[2024,8,23]],"date-time":"2024-08-23T10:45:40Z","timestamp":1724409940000},"page":"e57885","source":"Crossref","is-referenced-by-count":6,"title":["Digital Epidemiology of Prescription Drug References on X (Formerly Twitter): Neural Network Topic Modeling and Sentiment Analysis"],"prefix":"10.2196","volume":"26","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-7704-1974","authenticated-orcid":false,"given":"Varun K","family":"Rao","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2355-9881","authenticated-orcid":false,"given":"Danny","family":"Valdez","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-0362-4890","authenticated-orcid":false,"given":"Rasika","family":"Muralidharan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2345-8850","authenticated-orcid":false,"given":"Jon","family":"Agley","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7783-4156","authenticated-orcid":false,"given":"Kate S","family":"Eddens","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7826-7114","authenticated-orcid":false,"given":"Aravind","family":"Dendukuri","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-3298-1889","authenticated-orcid":false,"given":"Vandana","family":"Panth","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9763-1129","authenticated-orcid":false,"given":"Maria A","family":"Parker","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1010","published-online":{"date-parts":[[2024,8,23]]},"reference":[{"key":"ref1","unstructured":"YeungDThe 'digital town square' problemRAND Corporation202301132024-04-29https:\/\/www.rand.org\/blog\/2023\/01\/the-digital-town-square-problem.html"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.2105\/ajph.2016.303512"},{"key":"ref3","doi-asserted-by":"publisher","DOI":"10.1146\/annurev-publhealth-040119-094402"},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0083672"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1016\/j.vaccine.2021.06.014"},{"key":"ref6","doi-asserted-by":"publisher","DOI":"10.1145\/2487575.2487709"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1007\/s11606-020-05988-8"},{"key":"ref8","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pntd.0008484"},{"key":"ref9","doi-asserted-by":"publisher","DOI":"10.1145\/3463677.3463718"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1007\/s13178-022-00690-2"},{"key":"ref11","doi-asserted-by":"publisher","DOI":"10.2196\/publichealth.3953"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1016\/j.jenvman.2021.112159"},{"key":"ref13","doi-asserted-by":"publisher","DOI":"10.3390\/ijerph17228557"},{"key":"ref14","doi-asserted-by":"publisher","DOI":"10.1080\/01612840.2020.1814914"},{"key":"ref15","unstructured":"Social media use by agePew Research Center2024-04-29https:\/\/www.pewresearch.org\/internet\/chart\/social-media-use-by-age\/"},{"key":"ref16","unstructured":"AtskeSSocial media use in 2021Pew Research Center20212024-04-04https:\/\/www.pewresearch.org\/internet\/2021\/04\/07\/social-media-use-in-2021\/"},{"key":"ref17","unstructured":"HughesAWojcikSSizing up Twitter usersPew Research Center20192024-04-29https:\/\/www.pewresearch.org\/internet\/2019\/04\/24\/sizing-up-twitter-users\/"},{"key":"ref18","unstructured":"VogelsEAGelles-WatnickRMassaratNTeens, social media and technologyPew Research Center20222024-04-29https:\/\/www.pewresearch.org\/internet\/2022\/08\/10\/teens-social-media-and-technology-2022\/"},{"key":"ref19","unstructured":"RainieMAVogelsEAPerrinARainieLConnection, creativity and drama: teen life on social media in 2022Pew Research Center20222024-04-29https:\/\/www.pewresearch.org\/internet\/2022\/11\/16\/connection-creativity-and-drama-teen-life-on-social-media-in-2022\/"},{"key":"ref20","unstructured":"U.S. overdose deaths decrease in 2023, first time since 2018Centers for Disease Control and Prevention202405152024-04-29https:\/\/www.cdc.gov\/nchs\/pressroom\/nchs_press_releases\/2024\/20240515.htm"},{"key":"ref21","unstructured":"JanetWSeanMCzarinaBExpanding access to naloxone: a review of distribution strategiesHealth Policy and Services Research20192024-04-29https:\/\/digirepo.nlm.nih.gov\/catalog\/nlm:nlmuid-101750194-pdf"},{"key":"ref22","doi-asserted-by":"publisher","DOI":"10.1016\/j.japh.2017.01.001"},{"key":"ref23","doi-asserted-by":"publisher","DOI":"10.1176\/appi.ajp.20230918"},{"key":"ref24","unstructured":"National survey on drug use and health: summary of methodological studies, 1971\u20132014Substance Abuse and Mental Health Services Administration20142024-04-29https:\/\/www.ncbi.nlm.nih.gov\/books\/NBK519735\/"},{"key":"ref25","doi-asserted-by":"publisher","DOI":"10.1002\/rth2.12493"},{"key":"ref26","doi-asserted-by":"publisher","DOI":"10.1145\/2389707.2389713"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.1007\/s41666-018-0018-9"},{"key":"ref28","doi-asserted-by":"publisher","DOI":"10.1007\/s13721-017-0159-4"},{"key":"ref29","doi-asserted-by":"publisher","DOI":"10.1007\/s40264-015-0379-4"},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.3233\/SHTI190238"},{"key":"ref31","doi-asserted-by":"publisher","DOI":"10.1109\/icde.2017.221"},{"key":"ref32","doi-asserted-by":"publisher","DOI":"10.1111\/dar.13048"},{"key":"ref33","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0135072"},{"key":"ref34","doi-asserted-by":"publisher","DOI":"10.1016\/j.jadohealth.2014.10.270"},{"key":"ref35","doi-asserted-by":"publisher","DOI":"10.2196\/jmir.3247"},{"key":"ref36","doi-asserted-by":"publisher","DOI":"10.2196\/16191"},{"key":"ref37","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0187691"},{"key":"ref38","doi-asserted-by":"publisher","DOI":"10.2196\/48405"},{"key":"ref39","doi-asserted-by":"publisher","DOI":"10.2196\/jmir.5144"},{"key":"ref40","doi-asserted-by":"publisher","DOI":"10.2196\/41198"},{"key":"ref41","doi-asserted-by":"publisher","DOI":"10.1609\/icwsm.v8i1.14550"},{"key":"ref42","author":"Grootendorst, M","journal-title":"arXiv"},{"key":"ref43","doi-asserted-by":"publisher","DOI":"10.1016\/j.eswa.2015.02.055"},{"key":"ref44","unstructured":"About the scoringVaderSentiment20212024-04-29https:\/\/vadersentiment.readthedocs.io\/en\/latest\/pages\/about_the_scoring.html"},{"key":"ref45","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0254114"},{"key":"ref46","doi-asserted-by":"publisher","DOI":"10.2196\/21418"},{"key":"ref47","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0219550"},{"key":"ref48","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pdig.0000143"},{"key":"ref49","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.2024292118"},{"key":"ref50","doi-asserted-by":"publisher","DOI":"10.1177\/0956797611413294"},{"key":"ref51","doi-asserted-by":"publisher","DOI":"10.1109\/wiiat50758.2020.00084"},{"key":"ref52","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.1618923114"},{"key":"ref53","doi-asserted-by":"publisher","DOI":"10.1007\/s13278-017-0439-0"},{"key":"ref54","doi-asserted-by":"publisher","DOI":"10.1038\/s41562-017-0213-3"},{"key":"ref55","unstructured":"GrootendorstMBERTopic: c-TF-IDFGitHub20242024-04-29https:\/\/maartengr.github.io\/BERTopic\/getting_started\/ctfidf\/ctfidf.html"},{"key":"ref56","doi-asserted-by":"publisher","DOI":"10.1108\/00220410410560582"},{"key":"ref57","doi-asserted-by":"crossref","first-page":"137","DOI":"10.1007\/978-3-540-76917-0_9","author":"Olson, DL","year":"2008","journal-title":"Advanced Data Mining Techniques"},{"key":"ref58","doi-asserted-by":"publisher","DOI":"10.2196\/16678"},{"key":"ref59","author":"Manning, CD","year":"2008","journal-title":"Introduction to Information Retrieval"},{"key":"ref60","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0035781"},{"key":"ref61","doi-asserted-by":"publisher","DOI":"10.2196\/17648"},{"key":"ref62","unstructured":"ForrestM43 things to know about Justin Trudeau\u2019s new rivalPolitico202209102024-04-29https:\/\/www.politico.com\/news\/2022\/09\/09\/conservative-pierre-poilievre-in-his-own-words-00055343"},{"key":"ref63","unstructured":"FDA announces shortage of AdderallU.S. Food and Drug Administration20232024-04-29https:\/\/www.fda.gov\/drugs\/drug-safety-and-availability\/fda-announces-shortage-adderall"},{"key":"ref64","doi-asserted-by":"publisher","DOI":"10.2196\/publichealth.4488"},{"key":"ref65","doi-asserted-by":"publisher","DOI":"10.2196\/18350"},{"key":"ref66","doi-asserted-by":"publisher","DOI":"10.1080\/08897077.2017.1356795"},{"key":"ref67","doi-asserted-by":"publisher","DOI":"10.1080\/10550887.2020.1834812"},{"key":"ref68","doi-asserted-by":"publisher","DOI":"10.1186\/s12911-020-01335-3"},{"key":"ref69","doi-asserted-by":"publisher","DOI":"10.2196\/17073"},{"key":"ref70","doi-asserted-by":"publisher","DOI":"10.1177\/0022042620986508"},{"key":"ref71","doi-asserted-by":"publisher","DOI":"10.34133\/2022\/9851989"}],"container-title":["Journal of Medical Internet Research"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.jmir.org\/2024\/1\/e57885","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T17:49:04Z","timestamp":1782841744000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.jmir.org\/2024\/1\/e57885"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,23]]},"references-count":71,"URL":"https:\/\/doi.org\/10.2196\/57885","relation":{"has-preprint":[{"id-type":"doi","id":"10.2196\/preprints.57885","asserted-by":"object"}]},"ISSN":["1438-8871"],"issn-type":[{"value":"1438-8871","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,8,23]]}}}