Using advanced machine learning, a cross disciplinary team of University of California San Diego researchers developed technology that mined Twitter to identify entities illegally selling prescription opioids online.
Between June and November 2015, some 619,937 tweets containing the keywords codeine, Percocet, fentanyl, Vicodin, Oxycontin, oxycodone and hydrocodone were collected. The findings, published online in the
American Journal of Public Health in October, detected 1,778 posts that were marketing the sale of controlled substances, 90 percent included hyperlinks to online sites for purchase.
“An unhealthy use of prescription and non-prescription opioid drugs continues to rise in the United States. Public policy and law enforcement efforts are trying to address this crisis, but closer attention to the potential negative influence of digital technologies is needed,” said Tim K. Mackey, PhD, UC San Diego School of Medicine associate professor of anesthesiology and global public health and first author. “Our study demonstrates the utility of a technology to aid in these efforts that searches social media for behavior that poses a public threat, such as the illegal sale of controlled substances.”
Mackey and researchers with UC San Diego School of Medicine and Jacobs School of Engineering used a three-step process that involved cloud-based computing to collect large volumes of tweets filtered by keywords, machine learning to isolate tweets related to the marketing of opioids, and web forensic examination to analyze posts that included hyperlinks to external websites.
During the five-month study period, less than 1 percent of tweets mentioning opioids were marketing prescription opioids, and only 46 of the hyperlinks included in those tweets were still live when the team analyzed the data eight months later. However, if the technology were used for active surveillance the data could be used to find more live links and could also be used for surveillance and detection of other health-related illegal online activities, said Mackey.
The Ryan Haight Online Pharmacy Consumer Protection Act prohibits the sale and marketing of controlled substances directly to consumers online. It was passed in 2008 after 18-year-old Ryan Haight of San Diego died after purchasing Vicodin online.
“This technology could help improve enforcement of the Ryan Haight Act,” said Mackey. “In addition, social media providers can use it to find or prohibit content that is illegal or violates laws to ensure consumers have a safer experience online.”
Forensics researchers connected marketing on Twitter to blogs, other social media platforms, user forms, online classified ads and websites. The majority of sites had foreign addresses, with many linked to Pakistan — a country recently identified as a source and exporter of fake, counterfeit and falsified medications, said Mackey.
“The online sale of controlled substances is directly prohibited by federal law. However, social media appears to act as a conduit for increased risk to substance abuse behavior,” said Mackey.
An interactive map of study findings is available here:
This study builds on a February 2017 study in the journal
Addictive Behaviors, which used the same machine learning technology to filter Twitter content to identify nonmedical uses of prescription drugs and behavioral trends.
Co-authors include: Janani Kalyanam, Takeo Katsuki, and Gert Lanckriet, UC San Diego.
This research was funded, in part, by Alliance for Safe Online Pharmacies.
Disclosure: Mackey is a non-compensated member of the Alliance for Safe Online Pharmacies academic advisory panel.