Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: Journal of Medical Internet Research

Date Submitted: Dec 16, 2019
Date Accepted: Jun 11, 2020

The final, peer-reviewed published version of this preprint can be found here:

Machine Learning Classifiers for Twitter Surveillance of Vaping: Comparative Machine Learning Study

Visweswaran S, Colditz JB, O’Halloran P, Han NR, Taneja SB, Welling J, Chu KH, Sidani JE, Primack BA

Machine Learning Classifiers for Twitter Surveillance of Vaping: Comparative Machine Learning Study

J Med Internet Res 2020;22(8):e17478

DOI: 10.2196/17478

PMID: 32784184

PMCID: 7450367

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Machine Learning for Twitter Surveillance of Vaping

  • Shyam Visweswaran; 
  • Jason B. Colditz; 
  • Patrick O’Halloran; 
  • Na-Rae Han; 
  • Sanya B. Taneja; 
  • Joel Welling; 
  • Kar-Hai Chu; 
  • Jaime. E. Sidani; 
  • Brian A. Primack

ABSTRACT

Background:

While vaping is considered to be safer than smoking tobacco and can help with successful smoking cessation, there is rising concern that it increases addiction among non-smokers, especially adolescents. Twitter presents a relevant, valuable, and feasible social media platform to study perspectives related to vaping.

Objective:

Our objective is to use Twitter to assess key factors such as sentiment, marketing, procurement, health effects, and policy that will provide unique perspectives related to vaping. We investigated both traditional and deep learning methods to develop classifiers that can identify vaping relevant tweets, commercial tweets, and tweets with pro and anti-vaping sentiments.

Methods:

We continuously collected tweets that matched vaping-related keywords over a seven-month period. From this corpus of tweets, we annotated a randomly selected set of 4,000 tweets for relevance (vape relevant or not), commercial (commercial or not), and sentiment (pro-vape or not). We evaluated several traditional classification methods including logistic regression (LR), random forest (RF), linear support vector machine (SVM), and multinomial naive Bayes (NB). We also evaluated several deep learning methods including convolutional neural network (CNN), long short-term memory (LSTM) network, LSTM-CNN network, and bidirectional LSTM (BiLSTM) network. The deep learning methods employed two types of pre-trained vectors including one that was vaping-specific and another that was not.

Results:

LSTM-CNN performed the best with the highest area under the ROC curve (AUC) score of 0.96, 95% C.I. [0.93-0.98] for relevance; all deep leaning methods including LSTM-CNN performed the best with AUCs of 0.99, 95% C.I. [0.98-0.99] for distinguishing commercial from non-commercial tweets; and BiLSTM performed the with AUC of 0.83, 95% C.I. [0.78-0.89]. Overall, LSTM-CNN performed the best for all three classification tasks.

Conclusions:

We developed and evaluated machine learning classifiers to classify vaping related tweets by relevance, commercial and sentiment polarity. We evaluated both traditional and deep learning classifiers. Overall, deep learning classifiers like LSTM-CNN had superior performance and had the added advantage of requiring no preprocessing. The performance of these classifiers support the development of automated vaping surveillance applications.


 Citation

Please cite as:

Visweswaran S, Colditz JB, O’Halloran P, Han NR, Taneja SB, Welling J, Chu KH, Sidani JE, Primack BA

Machine Learning Classifiers for Twitter Surveillance of Vaping: Comparative Machine Learning Study

J Med Internet Res 2020;22(8):e17478

DOI: 10.2196/17478

PMID: 32784184

PMCID: 7450367

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© 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.