Skip to main content
  1. Home
  2. Emerging Tech
  3. Computing
  4. News

Watch your tone! Machine-learning algorithm can detect sarcasm in tweets

Add as a preferred source on Google

You know what I love on a Monday? Coming into work to be handed a lengthy machine learning paper by my editor and asked to write up its findings by lunchtime. What could be better?

Any human reader out there can probably identify hints of sarcasm in these sentences (as it happens, this is a double sarcasm bluff: the paper’s actually pretty darn interesting). A computer, however, takes things literally — which is exactly the problem.

Recommended Videos

“The goal of my present work is sarcasm detection,” Silvio Amir at the University of Lisbon, Portugal, told Digital Trends. “Given a social media post, the goal is to figure out whether a certain tweet is sarcastic or not. This is important because we’ve been using social media analysis to study a lot of things, such as political participation, or the way that people are reacting to certain subjects. There is a lot of misinformation out there on the internet. If you use machine-learning models to analyze these things at face value, or in a literal sense, you’ll get a distorted or misleading picture when people express certain views ironically or sarcastically. That’s because sarcasm means saying something which is the literal opposite of the real meaning.”

The work carried out by Amir and other researchers at the University of Lisbon and University of Texas at Austin aimed to right this wrong by creating a deep learning model that looks at users’ past tweets to work out whether a particular message seems out of character.

“For example, if a person posts positively about Donald Trump, but their past messages show they have often spoken negatively about him, that could be a clue or signal that the person is maybe being sarcastic,” Amir continued.

Of course, there are still challenges present. People can change their opinions over time, or the original tweets the system is taking as genuine may have been sarcastic. However, the project has impressively been shown to be more effective than other rival approaches when it comes to solving the sarcasm conundrum, with the AI correctly guessing whether a tweet is sarcastic or not 87 percent of the time.

We couldn’t be more impressed. (Like, for real!)

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
OpenAI admits it needs to rethink what happens when AI goes rogue
As increasingly capable AI agents move beyond controlled tests, OpenAI is confronting a difficult question: When does strange model behavior become an incident the public deserves to know about?
OpenAI logo on blurred background

OpenAI has spent plenty of time explaining how it plans to stop increasingly capable AI agents from doing things they shouldn't. Now, the company says it needs to get better at telling everyone when those things have already happened. The admission follows reports of another previously undisclosed incident involving OpenAI's AI agents, this time affecting a German-language programming wiki. According to Reuters, agents made more than 15,000 unauthorized edits to DseWiki, using the site to communicate and share ways to bypass restrictions, cheat on tasks, and avoid detection.

OpenAI has now acknowledged what it calls the "wiki incident" and says the episode exposed a larger problem with how AI companies disclose unexpected model behavior. The company says it is developing a framework for deciding when and how to make incidents involving misaligned AI public.

Read more
AI has a safety problem nobody is ready for
AI safety efforts are ramping up, but their protections don’t work equally well everywhere. In developing countries, language gaps and cultural blind spots can turn everyday AI mistakes into serious real-world consequences.
Logo, Hockey, Ice Hockey

AI companies are spending an enormous amount of time worrying about what happens when their models become too capable. OpenAI even took the unusual step of temporarily pausing training on a model last month over safety concerns, as the industry grapples with risks ranging from autonomous behavior to increasingly sophisticated cyber capabilities.

But there’s another AI safety problem that is much easier to overlook: the protections already being built into these systems don’t necessarily work equally well for everyone. A new report from Rest of World highlights how AI safety efforts remain heavily centered around the needs of wealthier, English-speaking countries. That can leave people in parts of Asia, Africa, and other developing regions dealing with problems as basic and potentially dangerous as a chatbot misunderstanding their language.

Read more
The IFA 2026 Publisher Award Winners Bring Fresh Ideas to Everyday Tech
From Smarter Entry to Screen-Free Wellness, These IFA 2026 Winners Do Things Differently
IFA 2026 Publisher Awards

IFA is the kind of event where almost every corner promises the next big thing in tech. Some ideas are ambitious, others are surprisingly simple, and a few make you wonder why nobody thought of them sooner. But among hundreds of new products, the most memorable ones usually have something more going for them than novelty alone.

This year’s IFA Publisher Award winners are a good example. They span everything from smart entry and personal wellness to coffee, floor care, and big-screen entertainment. What connects them is how they take technology in interesting new directions while keeping its purpose grounded in how people actually use it.

Read more