NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Estimating the Political Orientation of Twitter Users in Homophilic Networks

Morteza Shahrezaye, Orestis Papakyriakopoulos, Juan Carlos Medina Serrano, Simon HegelichAAAI 2019

Abstract

Estimating political orientation on social media is often limited by binary classification models and a reliance on high user activity. This study introduces a two-stage pipeline that utilizes metric learning and label propagation to predict political leanings in a multi-party system. By learning a Mahalanobis distance that accentuates homophilic structures within Twitter "friend" networks, the model achieves a 62% accuracy rate in the German six-party landscape. Notably, the approach requires minimal training data and functions independently of user-generated text, making it applicable to the "silent majority" of social media users who consume content without posting.

Introduction

Most research in political orientation prediction focuses on the U.S. two-party system, treating political leanings as a binary spectrum. However, many global political landscapes, such as Germany's, are multidimensional and multi-party. Furthermore, existing models often rely on Natural Language Processing (NLP) of tweets, which excludes "lurkers"—users who follow political actors but rarely tweet themselves. This paper addresses these gaps by proposing a generalized, multidimensional model that exploits network structure rather than content.

Methodology

The proposed method leverages the principle of homophily—the tendency of individuals to associate with similar others. The pipeline consists of two primary components:

  1. Metric Learning (LMNN): The authors employ Large Margin Nearest Neighbor (LMNN) classification to learn a linear transformation of the feature space. This essentially "warps" the social network space such that users with identical political labels are pulled closer together, while those with differing labels are pushed apart.
  2. Label Propagation: Following the transformation, a label propagation algorithm based on Gaussian fields and harmonic functions is applied. Political labels diffuse from a small set of labeled seed users to their neighbors across the graph, treating the network like a physical system of diffusion.

By using only the "friends" list (following relationships) as input, the model bypasses the need for text analysis entirely.

Experimental Setup

The study focuses on the German political sphere, utilizing a dataset of 623 members of the Bundestag across six major parties (CDU/CSU, SPD, Grüne, Linke, FDP, and AfD). A labeled set of 8,146 users was identified via retweet heuristics. The broader network included 50,000 random Twitter users, resulting in a high-dimensional matrix with over 550,000 features representing unique friend connections.

Results

The integration of metric learning proved critical to the model's performance. As shown in Figure 1, standard algorithms like Random Forest and Label Propagation perform poorly on raw, non-transformed data, yielding accuracies only slightly above random chance (~16.6% for six parties).

Comparison of classification accuracy between raw and transformed data states across different methods.

The application of the LMNN transformation resulted in a significant performance leap, specifically for the Label Propagation method, which reached 62% accuracy. This demonstrates that the metric learning step is the essential component for uncovering hidden information in the network structure. Furthermore, the model demonstrated high efficiency, reaching peak accuracy with as few as 40 training observations per party.

Discussion and Conclusion

The results demonstrate that homophily is a powerful signal for political orientation that can be mathematically amplified through metric learning. The model's independence from textual activity allows for the classification of "silent" users who have never sent a political tweet. However, limitations remain, including potential selection bias in the heuristic-based labeling and the high computational complexity of processing massive adjacency matrices. Future work may explore the application of this approach to other social clusters, such as brand loyalty or hobbyist groups, and investigate the impact of dynamic network changes over time.

Summary updated

BibTeX
@inproceedings{shahrezaye2019estimating,
  author = {Morteza Shahrezaye and Orestis Papakyriakopoulos and Juan Carlos Medina Serrano and Simon Hegelich},
  title = {{Estimating the Political Orientation of Twitter Users in Homophilic Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=HbYqbEqfFoT},
}
Figure