Skip to main content
QUICK REVIEW

[Paper Review] Twitter Reveals: Using Twitter Analytics to Predict Public Protests

Mohsen Bahrami, Yasin Fındık|arXiv (Cornell University)|May 1, 2018
Social Media and PoliticsSocial Sciences40 references13 citations
TL;DR

This paper proposes a machine learning approach to predict public protests using Twitter analytics, leveraging event-specific features and trending hashtags. By analyzing tweets related to protests following Trump's 2016 election, the model achieved over 75% average prediction accuracy—up to 100%—demonstrating Twitter's utility as a real-time early warning system for civil unrest.

ABSTRACT

The right to protest is perceived as one of the primary civil rights. Citizens participate in mass demonstrations to express themselves and exercise their democratic rights. However, because of the large number of participants, protests may lead to violence and destruction, and hence can be costly. Thus, it is important to predict such demonstrations in advance to safeguard against such damages. Recent research has shown that about 75 percent of protests that are regarded as legal, are planned in advance. Twitter, the prominent micro-blogging website, has been used as a tool by protestors for planning, organizing, and announcing many of the recent protests worldwide such as those that led to the Arab Spring, Britain riots, and those against Mr. Trump after the presidential election in the U.S. In this paper, we aim to predict protests by means of machine learning algorithms. In particular, we consider the case of protests against the then-president-elect Mr. Trump after the results of the presidential election were announced in November 2016. We first identify the hashtags calling for demonstration from Trending Topics on Twitter, and download the corresponding tweets. We then apply four machine learning algorithms to make predictions. Our findings indicate that Twitter can be used as a powerful tool for predicting future protests with an average prediction accuracy of over 75 percent (up to 100 percent). We further validate our model by predicting the protests held in the U.S. airports after President Trump's executive order banning citizens of seven Muslim countries from entering the U.S. An important contribution of our study is the inclusion of event specific features for prediction purposes which helps to achieve high levels of accuracy.

Motivation & Objective

  • To develop a predictive model for public protests using social media data, specifically Twitter.
  • To investigate whether real-time Twitter analytics can detect early signals of planned mass demonstrations.
  • To improve prediction accuracy by incorporating event-specific features such as protest-related hashtags and temporal patterns.
  • To validate the model on real-world protest events, including the 2017 Muslim ban protests at U.S. airports.
  • To demonstrate the feasibility of using social media as a tool for early warning systems in civil unrest prevention.

Proposed method

  • Collected trending hashtags related to protests from Twitter's Trending Topics API following the 2016 U.S. presidential election.
  • Downloaded all tweets associated with identified protest-related hashtags using Twitter's streaming and search APIs.
  • Extracted a comprehensive set of features, including temporal patterns, sentiment, retweet frequency, and event-specific metadata.
  • Applied four machine learning algorithms—logistic regression, random forest, gradient boosting, and SVM—for classification of protest vs. non-protest tweets.
  • Trained and evaluated models on temporal splits of the data to simulate real-time prediction scenarios.
  • Validated the model’s performance on an independent dataset from the 2017 Muslim ban protests at U.S. airports.

Experimental results

Research questions

  • RQ1Can Twitter analytics reliably detect early signals of planned public protests?
  • RQ2How effective are machine learning models in distinguishing protest-related activity from general social media traffic?
  • RQ3To what extent do event-specific features improve prediction accuracy compared to generic social media metrics?
  • RQ4Can the model generalize to different protest events across time and context, such as the 2017 Muslim ban protests?
  • RQ5What is the upper bound of prediction accuracy achievable using Twitter data for protest forecasting?

Key findings

  • The proposed model achieved an average prediction accuracy of over 75% when forecasting protests following the 2016 U.S. presidential election.
  • In some cases, the model reached 100% prediction accuracy, particularly when event-specific features were included.
  • The inclusion of event-specific features—such as protest-related hashtags, temporal spikes in activity, and sentiment trends—significantly improved model performance.
  • The model successfully predicted the 2017 protests at U.S. airports following the Muslim ban executive order, validating its generalizability.
  • Temporal patterns and volume spikes in protest-related hashtags were strong indicators of impending demonstrations.
  • Among the four machine learning algorithms tested, gradient boosting and random forest outperformed logistic regression and SVM in terms of precision and recall.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.