Latest in Science

Image credit:

Researchers are training computers to recognize sarcasm on Twitter

The system is identifying sarcastic tweets with 85 percent accuracy.

Shares
Share
Tweet
Share
Save

Twitter contains multitudes. On any given day you'll find earnest and passionate rumination, breaking news and analysis, silly hashtag games, horribly abusive idiots spewing hate and much, much more. Another constant across the platform is sarcastic reactions to all manner of events big and small. Indeed, when you're fully ensconced in the echo chamber that is Twitter, it can sometimes be hard to tell what's real and what's not. Fortunately, some researchers at Carnegie Mellon University have our backs: they're training computers to recognize sarcasm on Twitter, and they've had some solid success so far.

Authors David Bamman and Noah A. Smith from CMU's School of Computer Science noted that while most computational approaches to detecting sarcasm simply analyze the linguistics, sarcasm is all about context -- and including that context on Twitter has made their detection methods much more reliable. As they write in their research paper, "the relationship between author and audience is central for understanding the sarcasm phenomenon." But things get trickier on social media, because the notion of "audience" becomes much more complicated: on social media, "a user's 'audience' is often unknown, underspecified or 'collapsed', making it difficult to fully establish the shared ground required for sarcasm to be detected, and understood, by its intended (or imagined) audience."

To properly test for sarcasm, the researchers built out a number of factors to test on. Individual tweets subjected to a number of factors, but the study also took into account details from the author's profile, historical content and details from that author's audience. It's a complicated bit of modeling, but testing on the tweet, its author, its audience and its response helped the researcher's sarcasm detector reach an 85 percent accuracy level. That's significantly higher than the 75 percent accuracy rate it hit when analyzing just the content of a tweet without additional factors included.

It's fair to ask why you'd want to go to all this trouble to train a computer to recognize sarcasm on Twitter, but there's a lot of interest in helping machines better understand both the spoken and written word. In fact, the Secret Service previously was trying to find software to detect "sarcasm and false positives" on Twitter to make it easier to determine whether frustrated tweets about blowing up an airport are just someone blowing off steam or an actual threat. While Bamman and Smith's paper doesn't get into the practical applications of their research, there's little doubt that training computers to understand human language constructs like sarcasm can go a long way towards making them smarter.

From around the web