Analyzing the conversation during the US Election Day

Analyzing the conversation during the US Election Day

Donald Trump has been elected 45th president of the United States of America and the surprising outcome has been reflected on the conversation on social media.

We recently released a simple tool called Tarsier that uses machine learning to analyze the conversation around the US elections.

General insights about the Election Day

Although the tool isn't real time (it updates every 24 hours), Tarsier has already analyzed hundreds of thousands of tweets on November 8th during the election day where we can observe some interesting insights.

For example, starting on November 7th, people started talking more positive than negative about the candidates, something very rare in the last 4 months of campaign, with Trump having better sentiment than Clinton (something that has been happening for a while):

machine learning twitter example

If you compare this to the general sentiment happening on Twitter 1 month ago, Trump has come a long way and actually improved a lot the sentiment around him:

machine learning twitter example

Insights about Donald Trump

If we analyze the most relevant keywords from the tweets made during the Election Day, we can see some interesting things. As an example, these are the keywords that appeared when people mentioned Donald Trump with a positive sentiment on Twitter:

machine learning twitter example

Positive keywords about tweets mentioning Donald Trump published on November 8th.

As you can see, most people mentioning Trump were wishing him good luck, talking about making America great again (as expected) and making references to God.

These are some examples of the positive tweets made yesterday about Trump:

machine learning twitter example

Positive tweets about Donald Trump published on November 8th.

Although the machine learning makes some mistakes (sentiment analysis is really hard), it's a general overview to understand how people were tweeting about Trump with a positive sentiment.

In terms of negative tweets about Trump, we can see some interesting keywords by analyzing yesterday tweets, like people inciting to go and vote (to stop Trump from winning), people complaining by saying 'fuck' or 'shit' or 'comedy show' (as a reaction to the preliminary results), people complaining about the 'establishment politicians' and even people accusing the 'rigged system':

machine learning twitter example

Negative keywords about tweets mentioning Donald Trump published on November 8th.

Insights about Hillary Clinton

On the other hand, it's interesting to understand how people were talking about Hillary Clinton during the Election Day. Like Trump, when people were talking positive about Clinton, people were wishing her good luck. But also people were making references to the 'first female president' and 'making the right thing' and also asking people to go out and vote (again, an attempt to stop Trump from winning):

machine learning twitter example

Positive keywords about tweets mentioning Hillary Clinton published on November 8th.

These are some of the positive tweets about Hillary Clinton made during the Election Day:

machine learning twitter example

Positive tweets about Hillary Clinton published on November 8th.

In contrast, people mentioning Hillary Clinton with a negative sentiment were talking about making a 'symbolic protest vote' (probably against the political establishment), people complaining about the pollsters, people talking about having a 'weird feeling' (maybe a hunch of what ended up happening), talking about corruption, insulting her and talking about the middle class:

machine learning twitter example

Negative keywords about tweets mentioning Hillary Clinton published on November 8th.

These are some examples of negative tweets detected by Tarsier:

machine learning twitter example

Negative tweets about Hillary Clinton published on November 8th.

Again, some tweets like "All my American friends plz get up and vote against hate and intolerance! @HillaryClinton for president!" was detected as negative sentiment but in favor of Clinton. Sentiment analysis is hard, there's work to do to improve these cases, but still is a tool that can give us a general overview of what's happening.

Last words

This year has proven to be a turbulent one; first the Brexit, then Colombian people voted to reject peace deal with the FARC and now Trump winning the US elections, a reflection of a massive shift in today's political landscape around the world.

It would be interesting to keep an eye on how the conversation evolves and check out Tarsier tomorrow in the morning (as we will have the analysis of today's tweets). At the end of the day, the elections are over but life goes on.

Federico Pascual

November 9th, 2016

Posts you might like...

MonkeyLearn Logo

Text Analysis with Machine Learning

Turn tweets, emails, documents, webpages and more into actionable data. Automate business processes and save hours of manual data processing.

Try MonkeyLearn
Clearbit LogoSegment LogoPubnub LogoProtagonist Logo