Twitter discussions and concerns about COVID-19 pandemic: Twitter data analysis using a machine learning approach

Jia Xue, Junxiang Chen, Ran Hu, ChengDa Zheng, Tingshao ZhuarXiv 2020

Introduction

This study provides a unique "time capsule" of the collective human psyche during the first major peak of the COVID-19 pandemic. By applying machine learning to millions of tweets, researchers mapped how global conversations shifted from curiosity about a distant virus to the visceral fear and political friction of local lockdowns. This analysis captures the critical transition period when the pandemic became a localized reality for millions in the West.

The Challenge of Infodemiology

Public health monitoring traditionally relies on clinical data, which often lags behind real-world events. During a fast-moving pandemic, understanding public sentiment, concerns, and the spread of misinformation is critical for effective policy and communication. The authors address the challenge of "infodemiology"—the study of how health information (and misinformation) flows through digital populations. While earlier studies focused on the initial outbreak in early 2020, this research examines the period between March and April 2020, when discourse shifted toward lockdowns and massive societal changes.

Methodology

The researchers employed a multi-stage computational pipeline to process and analyze the massive volume of social media data. The approach combined automated machine learning with qualitative human validation.

Overview of the research methodology, from data preparation to analysis.

Key components of the methodology included:

  • Latent Dirichlet Allocation (LDA): An unsupervised machine learning approach used to identify 13 latent topics within the text corpus, allowing researchers to see what people were discussing without pre-defining categories.
  • NRC Emotion Lexicon: A Natural Language Processing (NLP) tool used to classify tweets into eight primary emotions: anger, anticipation, fear, surprise, sadness, joy, disgust, and trust.
  • Qualitative Thematic Analysis: Following Braun and Clarke’s six-step method, the authors grouped the 13 machine-generated topics into five overarching themes.
  • Statistical Validation: One-tailed z-tests were used to determine if specific emotions were statistically more prevalent in certain topics compared to others.

Data Collection and Filtering

The study utilized a massive, custom-scraped dataset from Twitter, using 25 specific hashtags such as #coronavirus, #COVID19, #quarantine, and #StayHome. To ensure the analysis focused on original human sentiment rather than automated "echoes," the researchers implemented a rigorous filtering process.

Data filtering process resulting in over 4 million unique tweets for analysis.

Starting with over 35 million raw tweets, the team removed non-English content, duplicates, and retweets. This resulted in a final dataset of 4,196,020 unique tweets for analysis.

Key Insights and Thematic Analysis

The analysis identified 13 major discussion topics, which were categorized into five primary themes:

  1. Public health measures: Discussions on facemasks, lockdowns, and vaccines.
  2. Social stigma: The emergence of discriminatory names and political finger-pointing.
  3. New cases and deaths: Direct reporting and discussion of the virus's toll.
  4. COVID-19 in the United States: Specific focus on New York, protests, and federal task forces.
  5. Global cases: Updates regarding the UK and the broader global pandemic.

Sentiment Shifts

  • The Dominance of Anticipation: Across 12 of the 13 topics, "anticipation" was the leading sentiment, suggesting a public constantly searching for news or waiting for government measures.
  • The "Fear" Threshold: While anticipation was common, "fear" became the statistically dominant emotion (reaching 18.8%) when conversations turned specifically to new cases and death rates.
  • The Erosion of Trust: Unlike studies from earlier in 2020, "trust" in authorities was no longer a prominent emotion, suggesting that public confidence began to waver as the crisis deepened.
  • Localization and Stigma: Discourse shifted from global news to highly localized concerns (e.g., "Shelter-in-Place" orders in the U.S.). Simultaneously, the rise of terms like "Chinese virus" highlighted the early politicization of the pandemic.

Limitations and Future Work

While the study provides a robust overview of the "infodemic," it is limited by its focus on English-language tweets and the specific demographic skew of Twitter users, who tend to be younger and more tech-savvy than the general population. Future research should investigate the spread of misinformation more deeply and track how "trust" and "pandemic fatigue" evolve over longer durations.

Summary updated

BibTeX
@misc{xue2020twitter,
  author = {Jia Xue and Junxiang Chen and Ran Hu and Chen Chen and ChengDa Zheng and Tingshao Zhu},
  title = {{Twitter discussions and concerns about COVID-19 pandemic: Twitter data analysis using a machine learning approach}},
  year = {2020},
  eprint = {2005.12830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.12830},
}
Figure