Accepted for/Published in: Journal of Medical Internet Research
Date Submitted: Oct 2, 2019
Date Accepted: Jan 27, 2020
Twitter Analysis of the Nonmedical Use and Side Effects of Methylphenidate: A Machine Learning Method
ABSTRACT
Background:
Methylphenidate, a stimulant used to treat attention deficit hyperactivity disorder (ADHD), has the potential to be used in non-medically, such as study and recreation. In an era when many people actively use social networking services (SNSs), experience with the nonmedical use or side effects of methylphenidate might be shared on Twitter.
Objective:
To analyze tweets about the nonmedical use and side effects of methylphenidate using a machine learning approach.
Methods:
A total of 34,293 tweets mentioning methylphenidate from August 2018 to July 2019 were collected using searches for ‘methylphenidate’ and its brand names. Tweets in a randomly selected training dataset (20%) were annotated as positive and negative for two dependent variables: nonmedical use and side effects. Features such as personal noun, nonmedical use terms, medical use terms, side effects terms, sentiment scores, and the presence of a uniform resource locator (URL) were generated for supervised learning. Using the labeled training dataset and features, support vector machine (SVM) classifiers were build and the performance was evaluated using F1 scores. The classifiers were applied to the test dataset to determine the number of tweets about nonmedical use and side effects.
Results:
Of the 6,860 tweets in the training dataset, 5.2% and 5.5% were about nonmedical use and side effects, respectively. Performance of SVM classifiers for nonmedical use and side effects, expressed as F1 scores, were 0.547 (precision: 0.926, recall: 0.388, and accuracy: 0.967) and 0.733 (precision: 0.920, recall: 0.609, and accuracy: 0.976), respectively. In the test dataset, the SVM classifiers identified 361 tweets about nonmedical use and 519 tweets about side effects. The proportion of tweets about nonmedical use was highest in May and December (both 1.8%).
Conclusions:
The SVM classifiers that were built in this study were highly precise and accurate, and will help to automatically identify the nonmedical use and side effects of methylphenidate using Twitter.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.