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…
Yet another study says AI is bad for elections, and the rabbit hole gets worse
AI may be an election bomb waiting for someone to light the fuse
Voters cast their ballots on Election Day

Another election, another study has concluded that asking an AI chatbot for political guidance is a spectacularly bad idea. Research conducted during Hungary’s 2026 parliamentary election found that ChatGPT and Google Gemini offered not just inaccurate but also inconsistent and unreliable voting advice. The chatbots misclassified voter profiles, overlooked relevant parties, recommended parties absent from the ballot, and sometimes produced materially different answers when given the same information repeatedly.

AI keeps failing the voter test

Read more
Samsung’s humanoid robot ambitions are real, but factories come first
Samsung’s new robotics division has humanoids in its sights, although its immediate business is far more practical factory automation
Robot Touch Human Finger

Samsung wants a place in the humanoid race, but its new robotics push begins with machines built for factories rather than homes.

The CEO-led RX robotics division will initially focus on manufacturing robots. Samsung has separately identified humanoids as a priority, although it hasn’t announced a commercial model or explained where one fits into the division’s immediate plans.

Read more
The future of AI may depend on this one behind-the-scenes change
Running Claude on Android.

Whenever a new AI model arrives, it's easy to get caught up in the bells and whistles. We talk about how much smarter it is, how quickly it answers questions, or how realistic its images have become. But here's the thing: none of that matters much if the AI can't reliably work with the apps and services people use every day.

That's why an upcoming update to the Model Context Protocol (MCP) caught my attention. It isn't a new chatbot or a fancy AI model. In fact, most people will never even know it's happening. But it could quietly make the AI ecosystem a lot healthier. If you've never heard of MCP before, don't worry. Think of it as a shared language that lets AI assistants safely talk to apps like Gmail, Slack, calendars, databases, and countless other services. Instead of every company inventing its own way to make those connections, MCP gives everyone a common rulebook.

Read more