Skip to main content
QUICK REVIEW

[Paper Review] Text mining and sentiment analysis of COVID-19 tweets

Qihuang Zhang, Grace Y. Yi|arXiv (Cornell University)|Jun 26, 2021
Neural Networks and Reservoir ComputingComputer Science24 references9 citations
TL;DR

This study applies text mining and sentiment analysis to Twitter data from eight North American cities (Feb 2020–Oct 2020) using VADER and NRC models to assess public sentiment toward COVID-19, masks, vaccines, and lockdowns. It integrates echo state networks and convergent cross-mapping to reveal that sentiment significantly influences Twitter activity and is instantaneously linked to infection rates, with negative sentiment most prominent toward vaccines and lockdowns, while mask-related sentiment is generally positive.

ABSTRACT

The human severe acute respiratory syndrome coronavirus 2 (SARS-Cov-2), causing the COVID-19 disease, has continued to spread all over the world. It menacingly affects not only public health and global economics but also mental health and mood. While the impact of the COVID-19 pandemic has been widely studied, relatively fewer discussions about the sentimental reaction of the population have been available. In this article, we scrape COVID-19 related tweets on the microblogging platform, Twitter, and examine the tweets from Feb~24, 2020 to Oct~14, 2020 in four Canadian cities (Toronto, Montreal, Vancouver, and Calgary) and four U.S. cities (New York, Los Angeles, Chicago, and Seattle). Applying the Vader and NRC approaches, we evaluate the sentiment intensity scores and visualize the information over different periods of the pandemic. Sentiment scores for the tweets concerning three anti-epidemic measures, masks, vaccine, and lockdown, are computed for comparisons. The results of four Canadian cities are compared with four cities in the United States. We study the causal relationships between the infected cases, the tweet activities, and the sentiment scores of COVID-19 related tweets, by integrating the echo state network method with convergent cross-mapping. Our analysis shows that public sentiments regarding COVID-19 vary in different time periods and locations. In general, people have a positive mood about COVID-19 and masks, but negative in the topics of vaccine and lockdown. The causal inference shows that the sentiment influences people's activities on Twitter, which is also correlated to the daily number of infections.

Motivation & Objective

  • To investigate public emotional responses to the COVID-19 pandemic through social media sentiment analysis.
  • To examine how sentiment varies across time, location, and specific anti-epidemic measures (masks, vaccines, lockdowns).
  • To model causal relationships between sentiment, tweet activity, and confirmed infection rates using advanced time series techniques.
  • To address limitations in prior work, such as ignoring word interactions, typos, and lack of causal inference in sentiment analysis.

Proposed method

  • Text mining of 1.2 million COVID-19-related tweets collected from eight North American cities between February 24, 2020, and October 14, 2020.
  • Sentiment analysis using the VADER and NRC lexicon-based approaches to compute sentiment intensity scores for topics: COVID-19, masks, vaccines, and lockdowns.
  • Application of echo state networks to model temporal dynamics in sentiment, infection rates, and social media activity.
  • Use of convergent cross-mapping (CCM) to infer causal relationships between sentiment, infection counts, and tweet activity features (tweets, likes, replies, retweets).
  • Lag-based correlation analysis to identify directional causality, with peak correlation at optimal time lags.
  • Visualization of sentiment trends across pandemic periods and cities to compare emotional responses across regions and time.

Experimental results

Research questions

  • RQ1How does public sentiment toward COVID-19 and its anti-epidemic measures evolve over time in different cities?
  • RQ2What is the causal relationship between sentiment scores, social media activity (tweeting, liking, replying, retweeting), and daily confirmed infection counts?
  • RQ3How do sentiment patterns differ between Canadian and U.S. cities, and what role do local public health measures play in shaping these patterns?
  • RQ4To what extent do sentiment changes precede or follow changes in infection rates and online activity?

Key findings

  • Public sentiment toward masks was consistently positive, while sentiment toward vaccines and lockdowns was predominantly negative across all cities and time periods.
  • Sentiment scores were instantaneously correlated with both infection rates and tweet activity, indicating bidirectional influence at time lag zero.
  • Causal inference via convergent cross-mapping revealed that sentiment significantly influences Twitter activity (tweets, likes, replies, retweets), but not vice versa, with peak correlation at τ=8 for sentiment to tweet activity.
  • The correlation between sentiment and infection rates was weak (ρ=0.006 and ρ=0.169), suggesting sentiment is not a strong predictor of case numbers but may still influence behavior.
  • Tweet activity features (tweets, likes, replies, retweets) were instantaneously correlated with each other, indicating a self-reinforcing online engagement loop.
  • The analysis revealed that sentiment changes likely drive behavioral changes on social media, which may in turn affect transmission risk, highlighting the role of emotional dynamics in pandemic behavior.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.