Paper discussion · Social media analytics

THANOS: Predicting Elections with Twitter and Polls

Can social-media activity add useful information to traditional polling? This paper explores that question by combining opinion polls with Twitter hashtag activity and network structure.

The core idea: polls are informative but slower; social media is fast but noisy.

Polling and Twitter see different parts of the campaign

Opinion polls

Designed to measure voter sentiment more systematically, but they arrive as periodic snapshots rather than a continuous stream.

+
The paper combines the depth of polling with the speed of social-media signals.

THOS and THANOS

Model 1

THOS

Twitter Hashtag-based Opinion Survey. THOS uses the frequency of campaign-related hashtags over time together with polling information.

Hashtag frequencyPollsTime series

In the paper, THOS is used as the simpler model and was most effective in examples with a clearer separation between the two sides.

Model 2

THANOS

Twitter Hashtag and Network-based Opinion Survey. THANOS adds network structure to the hashtag-and-poll framework.

Harmonic centralityRetweet ratiosInfluencersPolls

The network-enhanced model was developed for closer races, where hashtag counts alone may not capture enough of the campaign structure.

It is not only what people are tweeting — it is also how influence spreads through the network

Day 1 Day 10 Day 30 Day 45 A₁ A₂ B₁ B₂
Reconstructed from Figure 2 of the paper. The Ireland retweet network begins around four influential users and expands over the campaign as more users retweet and interact with them.

A simple tweet count does not tell the whole story. Two campaigns can generate similar volumes of tweets while having very different patterns of influence.

In the paper, the network is built from retweets and mentions. Four leading influencers anchor the illustrated network—two from each campaign—and the surrounding clusters expand from Day 1 to Day 45 as engagement increases.

Influencers

High-impact accounts sit near the centers of the major retweet clusters.

Diffusion

The clusters become denser and begin to bridge as information spreads across the campaign network.

Why THANOS adds this

Harmonic centrality and retweet proportions summarize network influence that hashtag volume alone cannot capture.

The figure is a visual reconstruction of the published network-growth figure rather than a new analysis.

What the paper reported

67.3% THOS prediction for “Yes” in Ireland’s 2018 36th Amendment referendum; the reported actual vote was 66.4%.
11 of 12 THANOS correctly identified the winning candidate in 11 of the 12 closest 2018 U.S. Senate races examined in the paper.
Florida: undecided For the closest race in the set, decided by a reported 0.12% margin, the model returned an undecided forecast.
Close-race example: the paper reports that the network-enhanced model improved on the hashtag-only model in cases where the victory margin was small, including Arizona.

What happens when tweets disappear?

The concern

Social-media datasets are incomplete. Tweets can be deleted, accounts can disappear, and historical samples may omit users.

The sensitivity analysis

The paper randomly removed up to 30% of tweets and reported that THANOS forecasts changed little. The authors attribute this stability to the emphasis on common hashtags, retweet structure, and highly influential nodes.

Social media as a supplement, not a replacement for polls

The paper’s conclusion is not that Twitter should replace polling. Rather, it presents a hybrid forecasting framework in which traditional polls provide a structured measure of public opinion while social-media activity contributes fast-moving information about campaign attention and network dynamics.

That framing is important because Twitter users are not a representative sample of voters. The contribution is the attempt to use the platform’s dynamics as an additional predictive signal rather than treating raw tweet volume as a direct proxy for the electorate.

THANOS: A Predictive Model of Electoral Campaigns Using Twitter Data and Opinion Polls

Dhrubajyoti Ghosh, William A. Boettcher, Rob Johnston, and Soumendra Lahiri · Data Science in Science, 2025.

Read the paper

This page is an accessible discussion of the published study. Numerical results and model descriptions above are reported from the paper; they are not forecasts of any current election.