Abstract
Nowadays, the use of social media such as Twitter is necessary to monitor trends of people on political issues. As a case study, we collected the main stream of Twitter related to the 2010 UK general election during the associated period. We analyse the characteristics of the three main parties in the election. Also, we propose a simple and practical algorithm to identify the political leaning of users using the amount of Twitter messages which seem related to political parties. The experimental results showed that the best-performing classification method—which uses the number of Twitter messages referring to a particular political party—achieved about 86% classification accuracy without any training phase.
Introduction: The Challenge of Real-Time Political Monitoring
Monitoring political sentiment in real-time is a "holy grail" for social scientists and campaign managers, but doing so computationally is challenging. Traditional machine learning approaches often require massive, labeled datasets and significant "tuning" of parameters, making them slow and computationally expensive.
Furthermore, social media data is dynamic. A user’s political stance might evolve or become more apparent as an election approaches. The authors sought a practical, low-cost algorithm that could classify users incrementally as new data arrives, rather than processing the entire dataset in one massive, "unacceptable" batch.
Methods: A Bayesian Approach to Political Leaning
The authors proposed a Bayesian Classification framework that treats a user's political affiliation as a probability distribution that updates over time. They tested two primary heuristics within this framework:
- Bayesian-Retweet: This model estimates a user’s leaning based on the known or inferred leanings of the people they retweet. It assumes that retweeting is a strong signal of endorsement.
- Bayesian-Volume: This model looks at the frequency of mentions of a specific party or its leader. It assumes that users are more likely to name-drop the party they support.
They compared these against standard baselines, including a Label Propagation method (which spreads "labels" through a network graph) and a Support Vector Machine (SVM) trained on six features (followers, replies, retweets, word count, hashtag count, and sentiment/emotion).
Datasets
The study utilized a custom dataset centered on the 2010 UK General Election:
- Raw Data: ~1.15 million tweets from ~220,000 users, collected between May 5th and 12th, 2010.
- Network Data: ~79 million follower/following relationships.
- Ground Truth: A manually identified set of 684 users who self-identified their party affiliation in their profiles (356 Labour, 159 Conservative, 169 Liberal Democrat).
- Expanded Set: Using label propagation, they expanded the ground truth to 11,448 "candidate" users to analyze broader party characteristics.
Key Insights: The "Echo Chamber" Effect
The researchers found that retweet graphs are highly segregated. Users almost never retweeted members of opposing parties. However, "mentions" (direct messages or @-replies) were common across party lines, likely representing debate or conflict rather than support. This suggests that while retweets indicate alignment, mentions often indicate engagement with the "other side."
Surprisingly, the simple volume of references to a party or its leader was a more reliable indicator of support than complex network features. The Bayesian-Volume model outperformed the SVM, likely because SVMs require expensive tuning and may struggle with the noisy, sparse nature of Twitter data compared to a direct Bayesian update based on specific keywords.
Key Results and Performance
The performance of the various classifiers was measured by their accuracy in predicting the affiliation of the self-identified ground-truth users:
| Classifier | Accuracy |
|---|---|
| Bayesian-Volume | 0.86 (86%) |
| Retweet (Label Propagation) | 0.73 (73%) |
| Bayesian-Retweet | 0.64 (64%) |
| SVM | 0.63 (63%) |
| Volume (Simple Count) | 0.60 (60%) |
The Bayesian-Volume model was the clear winner. Notably, its accuracy started at 0.5 (random chance for a binary-like choice) and climbed steadily as more tweets were processed, reaching its peak of 86% by the end of the election period. This temporal progression highlights the model's ability to learn as more data becomes available.
Limitations and Future Work
While the model achieved high accuracy, the authors acknowledge several limitations:
- Sarcasm and Negativity: The model assumes that mentioning a party or leader is a sign of support. While this held true for the 2010 UK election, it might not account for "hate-tweeting" or sarcasm in different political climates.
- Multi-Party Dynamics: The study focused on the three main UK parties. It is unclear how the model would perform in a more fragmented political landscape with many smaller parties.
- Temporal Shifts: While the model tracks probability over time, future work could more deeply analyze why and when users shift their political leanings during a campaign.
Summary updated