Extracting COVID-19 Events from Twitter

Shi Zong, Ashutosh Baheti, Wei Xu, Alan Ritter

Abstract

In this paper, we present a manually annotated corpus of 10,000 tweets containing public reports of five COVID-19 events, including positive and negative tests, deaths, denied access to testing, claimed cures and preventions. We designed slot-filling questions for each event type and annotated a total of 31 fine-grained slots, such as the location of events, recent travel, and close contacts. We show that our corpus can support fine-tuning BERT-based classifiers to automatically extract publicly reported events and help track the spread of a new disease. We also demonstrate that, by aggregating events extracted from millions of tweets, we achieve surprisingly high precision when answering complex queries, such as "Which organizations have employees that tested positive in Philadelphia?" We will release our corpus, automatic extraction models, and the corresponding knowledge base to the research community.

Introduction

During a fast-moving pandemic, official data often suffers from two major drawbacks: latency and lack of granularity. While health departments might report total case counts daily, they rarely provide the fine-grained details—such as specific travel histories, employer-related clusters, or individual symptoms—that appear almost instantly on social media.

However, social media is a "firehose" of noisy, unstructured text. Extracting reliable, structured information (e.g., "Who tested positive?" "Where did they travel recently?") requires moving beyond simple keyword searches toward sophisticated Event Extraction. The challenge lies in the lack of high-quality, human-annotated data specifically tailored to pandemic-related events on Twitter.

Methodology

The authors framed the extraction task as a supervised slot-filling problem.

  1. Two-Phase Annotation: Researchers hired crowd workers to annotate 10,000 tweets. First, workers identified if a tweet referred to a specific event (Specificity). Second, they filled "slots" by highlighting text spans that answered questions like "Who tested positive?" or "Where was the person unable to obtain a test?"
Example of a "Tested Positive" event report on Twitter.
  1. Model Architecture: They compared standard Logistic Regression against BERT-based models. The top performer was CT-BERT (COVID-Twitter-BERT), a large-scale model pre-trained on 22.5 million COVID-related tweets.
  2. Knowledge Base Construction: To build COVIDKB, they ran their best extractor over 20 million raw tweets.
  3. The "Redundancy" Strategy: Recognizing that individual tweet extraction is imperfect, the system aggregates extractions. If multiple tweets report the same event, the system gains confidence, allowing it to achieve high precision in the final knowledge base even if the underlying model's F1 score on a single tweet is modest.

Datasets

  • Annotated Corpus: 10,000 English tweets covering five event types: Tested Positive, Tested Negative, Can Not Test, Death, and Cure & Prevention. It includes 28 fine-grained slots (e.g., age, employer, recent travel).
  • COVIDKB: A resulting knowledge base of ~4.2M events extracted from a pool of 20M tweets collected between January 2020 and April 2022.
  • External Validation: The authors used global case data from the Johns Hopkins COVID-19 dashboard to validate that their extracted event trends correlated with real-world pandemic waves.

Experimental Results

  • Extraction Performance: The CT-BERT model achieved a micro F1 score of 0.67 across all slots. Performance was highest for "who" and "age" slots (often >0.80 F1) and lower for more subtle relations like "close contact."
  • KB Precision: One of the most important findings is that social media's repetitive nature helps overcome NLP errors. While a model might only have a 0.67 F1 score on a single tweet, aggregating across many people tweeting about the same public figure or news event pushes the Knowledge Base precision (P@10) toward 90-100%. In manual evaluations of complex queries, the system achieved 100% precision (P@10) for several advanced query types.
System overview showing the extraction of structured information from tweets to answer complex queries.

Discussion and Future Work

Twitter users are not a representative sample of the global population, which may introduce demographic biases into the data. Additionally, the study relied on the Twitter Stream API, which only provides a 1% sample of all tweets, potentially missing rarer events. The model still struggles with "subtle inferences," such as identifying when two different phrases (e.g., "Boris Johnson" and "the British PM") refer to the same person in a complex context.

Future work suggests this methodology could be rapidly pivoted to other crises, such as natural disasters or future disease outbreaks, providing a blueprint for "emergency" knowledge base construction.

Summary updated

Abstract

In this paper, we present a manually annotated corpus of 10,000 tweets containing public reports of five COVID-19 events, including positive and negative tests, deaths, denied access to testing, claimed cures and preventions. We designed slot-filling questions for each event type and annotated a total of 31 fine-grained slots, such as the location of events, recent travel, and close contacts. We show that our corpus can support fine-tuning BERT-based classifiers to automatically extract publicly reported events and help track the spread of a new disease. We also demonstrate that, by aggregating events extracted from millions of tweets, we achieve surprisingly high precision when answering complex queries, such as "Which organizations have employees that tested positive in Philadelphia?" We will release our corpus (with user-information removed), automatic extraction models, and the corresponding knowledge base to the research community.
BibTeX
@inproceedings{zong2022extracting,
  author = {Shi Zong and Ashutosh Baheti and Wei Xu and Alan Ritter},
  title = {{Extracting COVID-19 Events from Twitter}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=Xx9tbHarVf},
}
Figure