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 (, 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

  • Building a Community for VR and AR Storytelling

    In 2016 we founded the Device Lab to provide a hub for the exploration of AR/VR storytelling on campus. In addition to providing access to these technologies for Medill and the wider Northwestern community, we’ve also pursued a wide variety of research and experimental content development projects. We’ve built WebVR timelines of feminist history and looked into the inner workings of ambisonic audio. We’ve built virtual coral reefs and prototyped an AR experience setting interviews...

    Continue Reading

  • A Brief Introduction to NewsgamesCan video games be used to tell the news?

    When the Financial Times released The Uber Game in 2017, the game immediately gained widespread popularity with more than 360,000 visits, rising up the ranks as the paper’s most popular interactive piece of the year. David Blood, the game’s lead developer, said that the average time spent on the page was about 20 minutes, which was substantially longer than what most Financial Times interactives tend to receive, according to Blood. The Uber Game was so successful that the Financial...

    Continue Reading

  • With the 25th CAR Conference upon us, let’s recall the first oneWhen the Web was young, data journalism pioneers gathered in Raleigh

    For a few days in October 1993, if you were interested in journalism and technology, Raleigh, North Carolina was the place you had to be. The first Computer-Assisted Reporting Conference offered by Investigative Reporters & Editors brought more than 400 journalists to Raleigh for 3½ days of panels, demos and hands-on lessons in how to use computers to find stories in data. That seminal event will be commemorated this week at the 25th CAR Conference, which...

    Continue Reading

  • Prototyping Augmented Reality

    Something that really frustrates me is that, while I’m excited about the potential AR has for storytelling, I don’t feel like I have really great AR experiences that I can point people to. We know that AR is great for taking a selfie with a Pikachu and it’s pretty good at measuring spaces (as long as your room is really well lit and your phone is fully charged) but beyond that, we’re really still figuring...

    Continue Reading

  • Capturing the Soundfield: Recording Ambisonics for VR

    When building experiences in virtual reality we’re confronted with the challenge of mimicking how sounds hit us in the real world from all directions. One useful tool for us to attempt this mimicry is called a soundfield microphone. We tested one of these microphones to explore how audio plays into building immersive experiences for virtual reality. Approaching ambisonics with the soundfield microphone has become popular in development for VR particularly for 360 videos. With it,...

    Continue Reading

  • Audience Engagement and Onboarding with Hearken Auditing the News Resurrecting History for VR Civic Engagement with City Bureau Automated Fact Checking Conversational Interface for News Creative Co-Author Crowdsourcing for Journalism Environmental Reporting with Sensors Augmented Reality Visualizations Exploring Data Visualization in VR Fact Flow Storytelling with GIFs Historical Census Data Information Spaces in AR/VR Contrasting Forms Of Interactive 3D Storytelling Interactive Audio Juxtapose Legislator Tracker Storytelling with Augmented Reality Music Magazine Navigating Virtual Reality Open Data Reporter Oscillations Personalize My Story Photo Bingo Photojournalism in 3D for VR and Beyond Podcast Discoverability Privacy Mirror Projection Mapping ProPublica Illinois Rethinking Election Coverage SensorGrid API and Dashboard Sidebar Smarter News Exploring Software Defined Radio Story for You Storyline: Charts that tell stories. Storytelling Layers on 360 Video Talking to Data Visual Recipes Watch Me Work Writing and Designing for Chatbots
  • Prototyping Spatial Audio for Movement Art

    One of Oscillations’ technical goals for this quarter’s Knight Lab Studio class was an exploration of spatial audio. Spatial audio is sound that exists in three dimensions. It is a perfect complement to 360 video, because sound sources can be localized to certain parts of the video. Oscillations is especially interested in using spatial audio to enhance the neuroscientific principles of audiovisual synchrony that they aim to emphasize in their productions. Existing work in spatial......

    Continue Reading

Storytelling Tools

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

View More