On-line Trend Analysis with Topic Models: \#twitter Trends Detection Topic Model Online

Jey Han Lau, Nigel Collier, Timothy Baldwin

Introduction

In the era of real-time information, microblogging platforms like Twitter (now X) serve as the primary source for breaking news. However, traditional trend detection systems often rely on "bursty term analysis"—identifying sudden spikes in specific keywords or hashtags. While computationally efficient, this method lacks semantic context; a single trending word rarely conveys the full nuance of a complex event.

Topic models, such as Latent Dirichlet Allocation (LDA), offer a solution by grouping related words into coherent themes. Yet, standard LDA is a batch-processing algorithm designed for static corpora, making it ill-suited for the continuous, high-velocity stream of social media. This paper presents a novel, online topic modeling approach that adapts to dynamic vocabularies and utilizes a mathematical metric to identify emerging trends in real-time.

Methodology

The proposed model extends LDA into a streaming framework using collapsed Gibbs sampling. To handle the unique challenges of microblog data, the authors introduced several architectural innovations:

  1. Sliding Time Window: Data is processed in discrete time slices. By maintaining a fixed window of recent slices and discarding older data, the model remains computationally efficient and sensitive to current events.
  2. Dynamic Vocabulary: Unlike standard online LDA variants that assume a fixed lexicon, this model regenerates its vocabulary at every update. It prunes low-frequency terms and incorporates new words, which is essential for capturing novel entities (e.g., names of people or places) that appear during breaking news.
  3. Parameter Transfer with Contribution Factor ($c$): To ensure temporal continuity, distributions from the previous slice serve as Dirichlet priors for the current slice. A contribution factor ($c$) is used to dampen the influence of historical data, preventing established topics from overshadowing emerging ones.
  4. Trend Detection via Topic Evolution: The system calculates the Jensen-Shannon divergence between a topic's word distribution before and after an update. When this score exceeds a specific threshold, the topic is flagged as "novel."
Table 1: Definitions of variables and dimensions used in the topic model.

Experimental Setup

Evaluating trend detection on Twitter is challenging due to the lack of ground-truth labels. To address this, the authors developed a synthetic benchmark by blending real Twitter streams with sentences from the TREC Topic Detection and Tracking (TDT3) corpus. This allowed the researchers to inject known "Novel" events into a realistic "Background" noise environment.

Table 2: Examples of background tweets versus injected novel event content from the TDT3 corpus.

In addition to synthetic tests, the model was deployed on real-world geotagged tweets from London and New York collected in February 2012 to assess its efficacy in identifying local and global events.

Key Results and Insights

Performance on Synthetic Data

The model demonstrated high robustness, achieving F-scores between 0.37 and 0.74 with the number of topics set to $T=50$. Notably, the system successfully detected novel events even when they represented as little as 1.8% of the total document volume, proving its sensitivity to subtle signals within a noisy stream.

Real-World Efficacy

In the February 2012 deployment, the model isolated highly specific events that traditional hashtag analysis might miss. In London, it captured specific sports controversies (e.g., the Suarez/Evra incident), while in New York, it tracked Super Bowl discussions. Both locations correctly identified major global events, such as the death of Whitney Houston and the rise of Valentine's Day chatter. The output was significantly more descriptive than a keyword list; for example, the Houston event was represented by a cluster: whitney, houston, rip, sad, music, r.i.p, love, voice.

Conclusion and Future Work

A primary takeaway is that dynamic vocabularies are non-negotiable for news-oriented topic modeling. By allowing the lexicon to evolve, the model captures the specific entities that define an event. Furthermore, the introduction of the contribution factor ($c$) effectively mitigates the "rich-gets-richer" effect inherent in LDA, where large existing topics tend to absorb new tokens.

While the model performed well, the authors noted that synthetic F-scores likely underestimate true performance, as the model often correctly identified real news events in the "background" data that were not part of the injected TDT3 set. Future work will focus on extreme scalability, moving toward hourly time slices and parallelized processing to handle the full global Twitter firehose.

Summary updated

BibTeX
@inproceedings{lau2012line,
  author = {Jey Han Lau and Nigel Collier and Timothy Baldwin},
  title = {{On-line Trend Analysis with Topic Models: \textbackslash\{\}\#twitter Trends Detection Topic Model Online}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2012},
}
Figure