Related Experiment Video
Updated: Feb 20, 2026

Author Spotlight: An Efficient Methodology to Confidently Differentiate and Characterize Fentanyl Analogs
Published on: November 8, 2024
Twitter-Based Detection of Illegal Online Sale of Prescription Opioid
Tim K Mackey1, Janani Kalyanam1, Takeo Katsuki1
1Tim K. Mackey is with the Department of Anesthesiology and Department of Medicine, University of California, San Diego, and the Global Health Policy Institute, San Diego. Janani Kalyanam is with the Global Health Policy Institute and the Department of Electrical and Computer Engineering, University of California, San Diego. Takeo Katsuki is with the Kavli Institute for Brain and Mind, University of California, San Diego. Gert Lanckriet is with the Department of Electrical and Computer Engineering, University of California, San Diego.
Objectives:
To deploy a methodology accurately identifying tweets marketing the illegal online sale of controlled substances.
Methods:
We first collected tweets from the Twitter public application program interface stream filtered for prescription opioid keywords. We then used unsupervised machine learning (specifically, topic modeling) to identify topics associated with illegal online marketing and sales. Finally, we conducted Web forensic analyses to characterize different types of online vendors. We analyzed 619 937 tweets containing the keywords codeine, Percocet, fentanyl, Vicodin, Oxycontin, oxycodone, and hydrocodone over a 5-month period from June to November 2015.
Results:
A total of 1778 tweets (< 1%) were identified as marketing the sale of controlled substances online; 90% had imbedded hyperlinks, but only 46 were "live" at the time of the evaluation. Seven distinct URLs linked to Web sites marketing or illegally selling controlled substances online.
Conclusions:
Our methodology can identify illegal online sale of prescription opioids from large volumes of tweets. Our results indicate that controlled substances are trafficked online via different strategies and vendors. Public Health Implications. Our methodology can be used to identify illegal online sellers in criminal violation of the Ryan Haight Online Pharmacy Consumer Protection Act.
More Related Videos
Related Concept Videos
Prescription, Nonprescription and Orphan Drugs
The misuse and addiction to prescription drugs is a growing problem that can affect people of all age groups, specifically teenagers. This can happen when prescription medications are used in ways not intended by the prescriber, such as taking someone else's prescription or using medication for...
Opioid Analgesics: Synthetic and Semisynthetic Opioids
Opioid Analgesics: Morphine and Other Natural Cogeners
Opioid Receptors: Overview
Drug Classes and Categories
Pharmaceutical Poisoning: Potential Scenarios

