[Paper Review] Improved Twitter Sentiment Prediction through Cluster-then-Predict Model
This paper proposes a cluster-then-predict framework that improves Twitter sentiment analysis by first applying K-means clustering to group tweets, then using supervised models like Decision Trees and SVMs on the clustered data. The approach achieves higher accuracy than traditional methods by leveraging cluster-specific sentiment patterns, with a reported F1-score improvement of up to 12% on benchmark datasets.
Over the past decade humans have experienced exponential growth in the use of online resources, in particular social media and microblogging websites such as Facebook, Twitter, YouTube and also mobile applications such as WhatsApp, Line, etc. Many companies have identified these resources as a rich mine of marketing knowledge. This knowledge provides valuable feedback which allows them to further develop the next generation of their product. In this paper, sentiment analysis of a product is performed by extracting tweets about that product and classifying the tweets showing it as positive and negative sentiment. The authors propose a hybrid approach which combines unsupervised learning in the form of K-means clustering to cluster the tweets and then performing supervised learning methods such as Decision Trees and Support Vector Machines for classification.
Motivation & Objective
- To improve the accuracy of Twitter sentiment classification by addressing the noisy and unstructured nature of microblog data.
- To explore whether clustering tweets before classification enhances the performance of supervised sentiment models.
- To evaluate the effectiveness of a hybrid unsupervised-supervised approach on real-world Twitter datasets.
- To compare the proposed cluster-then-predict model against conventional sentiment classification methods.
Proposed method
- Applying K-means clustering to group tweets based on textual similarity, reducing dimensionality and noise.
- Using the cluster centroids as representative features for downstream supervised learning.
- Training supervised models—specifically Decision Trees and Support Vector Machines—on the clustered tweet data.
- Employing TF-IDF vectorization to represent tweets before clustering and classification.
- Assigning sentiment labels to clusters based on majority voting of labeled tweets within each cluster.
- Validating the model using standard NLP metrics such as precision, recall, and F1-score on benchmark Twitter datasets.
Experimental results
Research questions
- RQ1Does clustering tweets before classification improve sentiment prediction accuracy compared to direct classification?
- RQ2How do different clustering configurations (e.g., number of clusters) affect the performance of subsequent supervised models?
- RQ3Can cluster-specific sentiment patterns enhance model generalization on noisy social media text?
- RQ4How does the cluster-then-predict approach compare to traditional end-to-end sentiment classification on Twitter?
Key findings
- The cluster-then-predict model achieved a 12% higher F1-score compared to baseline models on the same dataset.
- K-means clustering effectively reduced noise and improved feature representation for sentiment classification.
- Support Vector Machines performed better than Decision Trees when applied to clustered data, indicating model sensitivity to cluster structure.
- The approach demonstrated robustness across varying cluster counts, with optimal performance observed at 5–7 clusters for the tested datasets.
- Majority voting within clusters improved label consistency and reduced misclassification of ambiguous tweets.
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.