TweetCast knows (probably) who gets your vote

Today the Knight Lab quietly took the wraps off a project that seeks to uncover a secret most Americans hold — who we plan to vote for in this week’s presidential election.

The project, Tweet Cast Your Vote (tweetcast.knightlabproject.com), is experimental, but accurately predicts the candidate Twitter users plan to vote for up to 80 percent of the time.

For now the tool is an interesting experience for the user — a sort of political Guess Your Weight game. But the strategy and algorithms behind the tool are a whole other level of awesome.

“The technology observes people on Twitter who we know support Obama or Romney and runs algorithms that find patterns in their Twitter activity,” said Shawn O’Banion, a Northwestern University Ph.D. student who created the technology with Larry Birnbaum, a Knight Lab co-founder and professor of computer science at the McCormick School of Engineering.

“That initial observation allows us to predict the behavior of ‘unknowns,’ or users who we have not already observed and who we do not know to be on one side or the other,” O’Banion said.

Specifically the technology tracks words, @-mentions, hashtags and links in the Twitter feeds of known political supporters and compares those to the same elements in the feeds of other potential voters. The greater the similarity between the two, the more likely they are to support the same candidate, O’Banion said.

The system is most accurate — about 80 percent — with users who tweet about political issues. It’s less accurate — about 65 percent — with users who aren’t obviously political, O’Banion said.

A variety of factors lead to TweetCast’s miscalculations, but the biggest is sample size. It’s difficult to find users known to support a specific candidate and a larger sample size would improve the system’s accuracy, he said.

Apart from a more robust sample, other avenues could be used to improve the technology — using TweetCast’s user feedback system to fine tune results, for example, or by including other sources of data from Twitter like favorited tweets, or a user’s network of followers.

Though the technology is an intriguing capability demonstration at the moment, it’s easy to see its practical application — either in helping to predict the outcome of an election, or in targeting political advertising to undecided voters.

Imagine how much the Romney or Obama campaigns would like to do that.

The Knight Lab isn't the only group interested in finding political persuasions in Twitter data. We  were excited to see that a similar project launched just this week: Prez-O-Meter by SwiftKey.

“I'm impressed with SwiftKey's work,” O’Banion said. “I particularly like how they show you where on the ‘spectrum’ of political ideology you fall. The main difference between our work and theirs is that while they are comparing you to the candidates themselves, we compare you to other, normal Twitter users that we know support either Obama or Romney.”

TweetCast’s approach is unique “because it can learn patterns that may be useful in predicting political preference, such as hobbies, interests, religious practices, etc.” that aren’t directly tied to politics, O’Banion said.

Check out both projects. And be sure to let us know how TweetCast works for you.

TweetCast is part of the Knight Lab’s Social Loupe Projects — which includes twxRay and HashTagger — that seek to find meaning and utility in social media data.

Also, a special thanks to Medill’s Jeremy Gilbert and our own Miranda Mulligan for stepping up and helping Shawn develop TweetCast’s front end.

About the author

Ryan Graff

Communications and Outreach Manager, 2011-2016

Journalism, revenue, whitewater, former carny. Recently loving some quality time @KelloggSchool.

Latest Posts

  • A Big Change That Will Probably Affect Your Storymaps

    A big change is coming to StoryMapJS, and it will affect many, if not most existing storymaps. When making a storymap, one way to set a style and tone for your project is to set the "map type," also known as the "basemap." When we launched StoryMapJS, it included options for a few basemaps created by Stamen Design. These included the "watercolor" style, as well as the default style for new storymaps, "Toner Lite." Stamen...

    Continue Reading

  • Introducing AmyJo Brown, Knight Lab Professional Fellow

    AmyJo Brown, a veteran journalist passionate about supporting and reshaping local political journalism and who it engages, has joined the Knight Lab as a 2022-2023 professional fellow. Her focus is on building The Public Ledger, a data tool structured from local campaign finance data that is designed to track connections and make local political relationships – and their influence – more visible. “Campaign finance data has more stories to tell – if we follow the...

    Continue Reading

  • Interactive Entertainment: How UX Design Shapes Streaming Platforms

    As streaming develops into the latest age of entertainment, how are interfaces and layouts being designed to prioritize user experience and accessibility? The Covid-19 pandemic accelerated streaming services becoming the dominant form of entertainment. There are a handful of new platforms, each with thousands of hours of content, but not much change or differentiation in the user journeys. For the most part, everywhere from Netflix to illegal streaming platforms use similar video streaming UX standards, and...

    Continue Reading

  • Innovation with collaborationExperimenting with AI and investigative journalism in the Americas.

    Lee este artículo en español. How might we use AI technologies to innovate newsgathering and investigative reporting techniques? This was the question we posed to a group of seven newsrooms in Latin America and the US as part of the Americas Cohort during the 2021 JournalismAI Collab Challenges. The Collab is an initiative that brings together media organizations to experiment with AI technologies and journalism. This year,  JournalismAI, a project of Polis, the journalism think-tank at...

    Continue Reading

  • Innovación con colaboraciónCuando el periodismo de investigación experimenta con inteligencia artificial.

    Read this article in English. ¿Cómo podemos usar la inteligencia artificial para innovar las técnicas de reporteo y de periodismo de investigación? Esta es la pregunta que convocó a un grupo de siete organizaciones periodísticas en América Latina y Estados Unidos, el grupo de las Américas del 2021 JournalismAI Collab Challenges. Esta iniciativa de colaboración reúne a medios para experimentar con inteligencia artificial y periodismo. Este año, JournalismAI, un proyecto de Polis, la think-tank de periodismo...

    Continue Reading

  • AI, Automation, and Newsrooms: Finding Fitting Tools for Your Organization

    If you’d like to use technology to make your newsroom more efficient, you’ve come to the right place. Tools exist that can help you find news, manage your work in progress, and distribute your content more effectively than ever before, and we’re here to help you find the ones that are right for you. As part of the Knight Foundation’s AI for Local News program, we worked with the Associated Press to interview dozens of......

    Continue Reading

Storytelling Tools

We build easy-to-use tools that can help you tell better stories.

View More