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.
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.
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.
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.
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
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.
How long does it take?
| When | Milestone |
|---|---|
| Oct 2022 | Project begins with a corpus of 10M+ COVID-related tweets. |
| Ongoing | Structural topic models with time as a covariate; model selection and validation. |
| Dec 2023 | Visualizations and reports on how public discourse shifted. |
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