Real-time collection of reliable and representative tweets datasets related to news events

Béatrice Mazoyer, Julia Cagé, Céline Hudelot, Marie-Luce Viaud

TL;DR

This paper tackles the challenge of collecting representative Twitter data related to news events, a crucial but difficult task due to Twitter API limitations. The authors propose two novel approaches: a vocabulary-constrained method that iteratively refines search queries based on news dispatches and a random tweet collection method enhanced by event clustering.

What Problem Does This Paper Address?

The proliferation of social media, particularly Twitter, has made it a significant source of real-time information and a platform for news dissemination. Researchers are keen to study how news propagates online, comparing it to traditional media, and understanding its impact. However, a major hurdle is the inability to collect a complete dataset of all tweets related to news events. The Twitter API imposes strict limitations on data retrieval, making it impossible to capture the "universe" of tweets. This necessitates the collection of representative samples. Without representative data, studies risk overestimating or underestimating phenomena, leading to biased conclusions. For instance, if a sample over-represents tweets from influential users, it might inflate the perceived impact of social media on news cycles. This paper aims to address this by developing methods to collect tweets that accurately reflect the broader Twitter activity surrounding news events.

Methods

The paper presents two primary approaches for collecting representative tweets:

  1. Vocabulary-constrained collection: This method starts with news dispatches from the Agence France-Presse (AFP) as a source of news events.
  2. Keywords Extraction: Named entities are extracted from the title and body of AFP dispatches to build initial search queries. These queries follow specific rules to ensure they are meaningful (e.g., combining entities, not just locations).
  3. Query Expansion: To improve recall and capture more relevant tweets, the initial queries are expanded using several techniques:
  4. URL Extraction: URLs from collected tweets are used to identify related content.
  5. Keyword Detection: TF-IDF scores are used to identify important terms from tweets related to an event.
  6. Synonyms: Word embeddings (specifically, a CBOW model trained on French tweets) are used to find synonyms and expand queries with Twitter-specific vocabulary. This aims to bridge the gap between formal news language and informal tweet language.
  7. Query Validation: A crucial step involves filtering out irrelevant queries. This is done by analyzing the temporal distribution of collected tweets. If tweets for a given query don't show a temporal peak around the event's time, the query is deemed incorrect.
  8. Random tweets collection followed by clustering: This approach leverages the Twitter Sample API, which provides a 1% stream of global tweets.
  9. Addressing Volume Limitations: The Sample API provides a very small volume of French tweets, making it insufficient for capturing many news events. To overcome this, the authors explore methods to increase the volume of French tweets.
  10. Clustering: Randomly collected tweets are clustered based on their co-occurrences to identify events. This is a more general approach to event detection within a random stream.

Datasets

  • AFP Dispatches: Used as the primary source for identifying news events in the vocabulary-constrained collection method.
  • Twitter Sample API: Used as a baseline for representativity evaluation and for training word embedding models.
  • French Tweets: The study focuses on French tweets to manage volume limitations imposed by the Twitter API, as French constitutes a smaller percentage of global tweets.

The paper does not explicitly introduce a new benchmark dataset but focuses on developing methods for collecting representative datasets.

Key Insights and Ideas

  • Bridging the Vocabulary Gap: A significant challenge in collecting news-related tweets is the difference in language between formal news articles and informal tweets. The use of word embeddings to find Twitter-specific synonyms is a novel approach to address this.
  • Temporal Validation is Key: Relying solely on keywords can lead to irrelevant results. Analyzing the temporal distribution of tweets is a robust method for validating query relevance and filtering out noise.
  • French as a Strategic Choice: Focusing on a less dominant language like French, while seemingly restrictive, can be advantageous for data collection due to the Twitter API's volume limits. A smaller slice of a less popular language can yield a larger proportion of relevant data compared to a tiny fraction of a highly popular language.
  • Clustering for Event Discovery: For random tweet streams, clustering is a viable method for identifying and grouping tweets related to specific events, even without explicit news event triggers.

Key Results

The paper presents preliminary results from experiments comparing different collection methods.

  • Vocabulary-constrained collection: The authors demonstrate that their query expansion techniques, particularly using word embeddings, aim to achieve higher recall than previous methods without sacrificing precision.
  • Random tweets collection: Experiments comparing different clustering strategies for random tweets show that methods using words clustered by co-occurrences perform better in terms of proximity to the Sample API's distribution. The volume of collected tweets using these methods was significantly higher (50 to 75 times) than the Sample API.
  • Representativity: Figure 2 shows the daily evolution of KL divergence between different collection methods and the Sample API. Lower KL divergence indicates higher similarity in word distribution, suggesting better representativity. Some clustering methods achieved consistently low KL divergence. Figure 3 shows the volume ratio, indicating that the proposed methods can collect substantially more data than the Sample API.

Limitations and Future Work

  • Evaluation Challenges: The authors acknowledge the lack of a labeled test set for precise evaluation of their tweet retrieval tool. They are developing a user interface for manual labeling to address this.
  • Manual Labeling: While they propose methods for automated collection, a definitive evaluation still relies on manual assessment of precision and recall.
  • Dynamic Linking: The current work focuses on collection. Future work will involve developing methods to dynamically link collected tweets to news events and to process tweets as multimodal objects (including URLs, mentions, images, videos) rather than just text.
  • Longer-term Testing: The authors emphasize the need to reproduce experiments over longer periods to confirm findings and conduct wider tests on all collection methods.
  • API Limitations: The fundamental limitations of the Twitter API remain a constraint on the scale and completeness of data collection.

Summary updated

BibTeX
@inproceedings{mazoyer2018real,
  author = {Béatrice Mazoyer and Julia Cagé and Céline Hudelot and Marie-Luce Viaud},
  title = {{Real-time collection of reliable and representative tweets datasets related to news events}},
  booktitle = {Brodyn@ecir},
  year = {2018},
}
Figure