Abstract
We study the problem of predicting the political preference of users on the Twitter network, showing that the political preference of users can be predicted from their Twitter behavior towards political parties. We show this by building prediction models based on a variety of contextual and behavioral features, training the models by resorting to a distant supervision approach and considering party candidates to have a predefined preference towards their respective parties. A language model for each party is learned from the content of the tweets by the party candidates, and the preference of a user is assessed based on the alignment of user tweets with the language models of the parties. We evaluate our work in the context of two real elections: 2012 Albertan and 2013 Pakistani general elections. In both cases, we show that our model outperforms, in terms of the F-measure, sentiment and text classification approaches and is at par with the human annotators. We further use our model to analyze the preference changes over the course of the election campaign and report results that would be difficult to attain by human annotators.
Similar content being viewed by others
Notes
57 % Voter turnout, the highest since 1983: http://www.cbc.ca/news/canada/albertavotes2012/story/2012/04/24/albertavotes-2012-voter-turnout.html.
Alberta general election, 2012: http://en.wikipedia.org/wiki/Alberta_general_election,_2012.
The authors have shown that the top ten features perform as good as the full set of features.
The rest were moderate users which are ignored here.
Pakistani general election, 2013: http://en.wikipedia.org/wiki/Pakistani_general_election,_2013.
References
Benevenuto F, Magno G, Rodrigues T, Almeida V (2010) Detecting spammers on twitter. In: Proceedings of Collaboration, Electronic messaging, Anti-Abuse and Spam Conference (CEAS)
Choy M, Cheong MLF, Laik MN, Shung KP (2011) A sentiment analysis of Singapore presidential election 2011 using twitter data with census correction. CoRR abs/1108.5520
Conover M, Gonçalves B, Ratkiewicz J, Flammini A, Menczer F (2011a) Predicting the political alignment of Twitter users. In: Proceedings of SocialCom/PASSAT Conference, pp 192–199
Conover M, Ratkiewicz J, Francisco M, Gonçalves B, Menczer F, Flammini A (2011b) Political polarization on Twitter. In: Proceedings of the ICWSM Conference
Fleiss J et al (1971) Measuring nominal scale agreement among many raters. Psychol Bull 76(5):378–382
Golbeck J, Hansen DL (2011) Computing political preference among twitter followers. In: Proceedings of HCI Conference, pp 1105–1108
Hu M, Liu B (2004) Mining and summarizing customer reviews. In: Proceedings of KDD Conference, pp 168–177
Kucuktunc O, Cambazoglu B, Weber I, Ferhatosmanoglu H (2012) A large-scale sentiment analysis for Yahoo! answers. In: Proceedings of WSDM Conference, pp 633–642
Livne A, Simmons MP, Adar E, Adamic LA (2011) The party is over here: structure and content in the 2010 election. In: Proceedings of the ICWSM Conference
Makazhanov A, Rafiei D (2013) Predicting political preference of Twitter users. In: Proceedings of the ASONAM Conference, pp 298–305
Marchetti-Bowick M, Chambers N (2012) Learning for microblogs with distant supervision: political forecasting with Twitter. In: Proceedings of the EACL Conference, pp 603–612
Metaxas P, Mustafaraj E, Gayo-Avello D (2011) How (not) to predict elections. In: Proceedings of the SocialCom/PASSAT Conference, pp 165–171
Mustafaraj E, Finn S, Whitlock C, Metaxas PT (2011) Vocal minority versus silent majority: discovering the opionions of the long tail. In: SocialCom/PASSAT, pp 103–110
O’Connor B, Balasubramanyan R, Routledge BR, Smith NA (2010) From tweets to polls: linking text sentiment to public opinion time series. In: Proceedings of the ICWSM Conference
Ratkiewicz J, Conover M, Meiss M, Gonçalves B, Flammini A, Menczer F (2011) Detecting and tracking political abuse in social media. In: Proceedings of the ICWSM Conference
Sepehri HR, Makazhanov A, Rafiei D, Barbosa D (2012) Leveraging editor collaboration patterns in Wikipedia. In: Proceedings of the HT Conference, pp 13–22
Sparks D (2010) Birds of a feather tweet together: Partisan structure in online social networks. In: Presented at the 2010 meeting of the Midwest Political Science Association
Thelwall M, Buckley K, Paltoglou G, Cai D, Kappas A (2010) Sentiment strength detection in short informal text. J Am Soc Inf Sci Technol 61(12):2544–2558
Thelwall M, Buckley K, Paltoglou G (2011) Sentiment in Twitter events. J Am Soc Inf Sci Technol 62(2):406–418
Tumasjan A, Sprenger TO, Sandner PG, Welpe IM (2010) Predicting elections with Twitter: What 140 characters reveal about political sentiment. In: Proceedings of the ICWSM Conference
Wang H, Can D, Kazemzadeh A, Bar F, Narayanan S (2012) A system for real-time Twitter sentiment analysis of 2012 US Presidential election cycle. In: ACL (System Demonstrations), pp 115–120
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Makazhanov, A., Rafiei, D. & Waqar, M. Predicting political preference of Twitter users. Soc. Netw. Anal. Min. 4, 193 (2014). https://doi.org/10.1007/s13278-014-0193-5
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s13278-014-0193-5