[Paper Review] A Case Study in Text Mining: Interpreting Twitter Data From World Cup Tweets
This study compares k-means and Non-Negative Matrix Factorization (NMF) for clustering Twitter data during the World Cup, using a noise-removal pipeline combining DBSCAN and consensus clustering. NMF outperformed k-means by producing faster, more interpretable, and better-defined topics, especially in isolating distinct themes like Spanish-language tweets and player-specific discussions.
Cluster analysis is a field of data analysis that extracts underlying patterns in data. One application of cluster analysis is in text-mining, the analysis of large collections of text to find similarities between documents. We used a collection of about 30,000 tweets extracted from Twitter just before the World Cup started. A common problem with real world text data is the presence of linguistic noise. In our case it would be extraneous tweets that are unrelated to dominant themes. To combat this problem, we created an algorithm that combined the DBSCAN algorithm and a consensus matrix. This way we are left with the tweets that are related to those dominant themes. We then used cluster analysis to find those topics that the tweets describe. We clustered the tweets using k-means, a commonly used clustering algorithm, and Non-Negative Matrix Factorization (NMF) and compared the results. The two algorithms gave similar results, but NMF proved to be faster and provided more easily interpreted results. We explored our results using two visualization tools, Gephi and Wordle.
Motivation & Objective
- To evaluate the effectiveness of k-means and NMF in identifying meaningful topics from noisy Twitter text data.
- To address linguistic noise in real-world text data by combining DBSCAN with a consensus matrix to filter out irrelevant tweets.
- To compare the interpretability, computational efficiency, and clustering quality of k-means and NMF on a large-scale Twitter dataset.
- To explore the utility of visualization tools like Gephi and Wordle in interpreting cluster results.
- To determine whether NMF provides more coherent and distinct topics than k-means in the context of social media text mining.
Proposed method
- Collected approximately 30,000 tweets containing 'world cup' prior to the tournament using Twitter's API.
- Applied DBSCAN with a consensus matrix to filter out noisy, non-representative tweets, reducing the dataset from 29,353 to 17,023 tweets.
- Used TF-IDF vectorization to represent tweets as numerical vectors for clustering algorithms.
- Employed cosine distance as the similarity metric due to its efficiency and insensitivity to document length in sparse text data.
- Applied k-means clustering with cosine distance and k=9, using random initialization and iterative centroid reassignment until convergence.
- Used Non-Negative Matrix Factorization (NMF) with the Alternating Constrained Least Squares (ACLS) algorithm to factorize the term-document matrix into W (word-topic) and H (topic-document) matrices, with k=9 topics.
Experimental results
Research questions
- RQ1How do k-means and NMF compare in identifying coherent and interpretable topics from noisy Twitter text data?
- RQ2Can the combination of DBSCAN and consensus clustering effectively reduce linguistic noise in real-world text mining applications?
- RQ3Does NMF produce more interpretable and computationally efficient results than k-means when analyzing short, informal social media text?
- RQ4How do visualization tools like Gephi and Wordle enhance the interpretability of clustering results in text mining?
- RQ5To what extent do k-means and NMF differ in their ability to isolate distinct themes such as player-specific discussions or multilingual content?
Key findings
- NMF produced faster clustering results compared to k-means, which required multiple random initializations and iterative convergence steps.
- NMF generated more interpretable topics, with clearer word-topic associations and distinct thematic clusters, such as a dedicated topic for Spanish-language tweets.
- k-means often split coherent themes into multiple clusters—e.g., the 'Falcao/Spanish/Stadium' theme was fragmented—whereas NMF preserved such themes as single, cohesive topics.
- The consensus matrix approach successfully reduced noise by filtering tweets not consistently clustered across multiple runs, improving data quality.
- Visualizations using Gephi revealed that NMF clusters were more compact and well-separated, with edges indicating strong cross-topic relationships (e.g., 'FIFA' and 'Venue' topics shared 'stadium' and 'Brazil').
- Wordle visualizations confirmed that NMF produced more focused and distinct word clouds per topic, while k-means results were often diluted across overlapping themes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.