Research project 03

Public discourse during COVID-19

Measuring what people talked about, and how that changed, across more than ten million tweets.

Role
Analyst: topic modeling, visualization and reporting
Setting
University of Wisconsin-Madison, October 2022 to December 2023
Methods
Structural topic modeling in R (stm, tidyverse, ggplot2)
Outputs
Visualizations and reports on shifts in public discourse
  1. 01Objective
  2. 02Current practice
  3. 03Approach
  4. 04Impact
  5. 05Risks
  6. 06Resources
  7. 07Timeline
  8. 08Evaluation
01 Objective

What are we trying to do?

Measure how the public conversation about COVID-19 changed as the pandemic unfolded.

I worked with a PhD cognitive science student at the University of Wisconsin-Madison who studies changes in behavior and attitudes. My part was the analysis of more than 10 million COVID-related tweets.

02 Current practice

How is it done today, and what are the limits?

  • Surveys ask good questions, but they are slow, costly and fixed in advance, so they miss topics nobody thought to ask about.
  • Manual content analysis is careful, but cannot keep up with millions of posts.
  • Keyword counts scale, but miss themes that are expressed in many different words.
03 Approach

What is new, and why should it work?

Let the themes emerge from the text, and model how their prevalence changes over time within the model itself.

  • Structural topic modeling. Each tweet is modeled as a mixture of topics, and topic prevalence depends on covariates such as time, rather than time being added afterward.
  • Scale. The full corpus of 10M+ tweets, not a sample small enough to code by hand.
  • Human interpretation. Topics are named and checked by reading top words and example tweets, so the model's output is read as evidence, not taken as fact.
04 Impact

Who cares, and what difference does it make?

Researchers and communicators can see what the public was paying attention to, and when, at a scale surveys cannot reach.

  • The collaborating researcher gets measures of shifting discourse to relate to changes in attitudes and behavior.
  • Computational social scientists get an example of time-aware topic modeling at this scale.
  • Public health communicators can learn which concerns rose and faded over a crisis.
05 Risks

What could go wrong?

Risk
Mitigation
Twitter users are not the general public
Findings framed as evidence about platform discourse, with limits stated
Results depend on the number of topics chosen
Model diagnostics such as semantic coherence and exclusivity, combined with close reading
Topic labels are subjective
Labels checked against top words and representative tweets
Preprocessing choices shape the results
Choices documented and applied consistently across the corpus
06 Resources

What does it take?

Open-source tools and analyst time.

  • Data. A corpus of 10M+ COVID-related tweets.
  • Software. R and open-source packages (stm, tidyverse, ggplot2).
  • People. Modeling, validation and reporting by me, in collaboration with a PhD researcher.
07 Timeline

How long does it take?

WhenMilestone
Oct 2022Project begins with a corpus of 10M+ COVID-related tweets.
OngoingStructural topic models with time as a covariate; model selection and validation.
Dec 2023Visualizations and reports on how public discourse shifted.
08 Evaluation

How do we know it is working?

Midterm checks

  • Topics that are coherent, distinct and stable across reasonable choices of the number of topics
  • Labels that hold up against example tweets

Final checks

  • Reports that show how topic prevalence changed over time
  • Results the collaborating researcher can use in their own analysis