Authors

  1. An, Ruopeng PhD, MPP
  2. Yang, Yuyi MB
  3. Batcheller, Quinlan BS
  4. Zhou, Qianzi BA

Abstract

Context: As a primary source of added sugars, sugar-sweetened beverage (SSB) consumption may contribute to the obesity epidemic. A soda tax is an excise tax charged on selling SSBs to reduce consumption. Currently, 8 cities/counties in the United States have imposed soda taxes.

 

Objective: This study assessed people's sentiments toward soda taxes in the United States based on social media posts on Twitter.

 

Design: We designed a search algorithm to systematically identify and collect soda tax-related tweets posted on Twitter. We built deep neural network models to classify tweets by sentiments.

 

Setting: Computer modeling.

 

Participants: Approximately 370 000 soda tax-related tweets posted on Twitter from January 1, 2015, to April 16, 2022.

 

Main Outcome Measure: Sentiment associated with a tweet.

 

Results: Public attention paid to soda taxes, indicated by the number of tweets posted annually, peaked in 2016, but has declined considerably ever since. The decreasing prevalence of tweets quoting soda tax-related news without revealing sentiments coincided with the rapid increase in tweets expressing a neutral sentiment toward soda taxes. The prevalence of tweets expressing a negative sentiment rose steadily from 2015 to 2019 and then slightly leveled off, whereas that of tweets expressing a positive sentiment remained unchanged. Excluding news-quoting tweets, tweets with neutral, negative, and positive sentiments occupied roughly 56%, 29%, and 15%, respectively, during 2015-2022. The authors' total number of tweets posted, followers, and retweets predicted tweet sentiment. The finalized neural network model achieved an accuracy of 88% and an F1 score of 0.87 in predicting tweet sentiments in the test set.

 

Conclusions: Despite its potential to shape public opinion and catalyze social changes, social media remains an underutilized source of information to inform government decision making. Social media sentiment analysis may inform the design, implementation, and modification of soda tax policies to gain social support while minimizing confusion and misinterpretation.