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

MIT algorithm learns to understand emotions and sarcasm through emojis

Add as a preferred source on Google

In less than a decade, emojis have become a cultural phenomenon. In 2011, comedian Aziz Ansari pointed out that a popular rap song could be nearly translated into emojis. July 17, 2014, was named the first annual World Emoji Day, and this summer we even got the The Emoji Movie.

Despite that unfortunate film, the emoji trend is far from dead. In fact, they’re as prevalent as ever, conveying meaning and emotion when words just aren’t enough.

Recommended Videos

Researchers at the Massachusetts Institute of Technology have now developed an artificial intelligence system that understands emotion and sarcasm after being trained on emojis.

Teaching meaning through emojis might sound like a whimsical lesson, but the researchers behind the project had more grand goals for their system, DeepMoji.

“We wanted to study racism and bullying on social media, but the traditional methods couldn’t handle modern slang,” Bjarke Felbo, a graduate student who worked on the project, told Digital Trends. “So we turned to the billions of emojis on social media and AI techniques for help.”

The model developed by Bjarke and his team, including associate professor Iyad Rahwan, learned to discern emotion and meaning from slang like bae and swag, while — more impressively — unraveling entire phrases. For example, the model realized that a phrase like “this is the shit” is actually a positive statement and “i love to clean toilets” is said sarcastically.

“Having an understanding of modern slang and sarcasm is critical to capture insults on social media,” Felbo said.

“The basic idea is that if the model is able to predict which emoji was included with a given sentence, then it has an understanding of the emotional content of that sentence,” he added. “We thus train our model to predict emojis on a dataset of 1.2 billion tweets.”

During its lesson, DeepMoji was tasked with grouping emojis into categories like negativity, positivity, and love. Within these categories, the model differentiated emojis into subcategories, such as angry or annoyed.

“Once the model has this nuanced understanding of emotional content in language, it’s much easier for it to learn concepts like sarcasm,” Felbo said. “Hopefully, with this model, AI researchers and social scientists can now go beyond the traditional dull positive and negative sentiment analysis.”

Felbo pointed out that DeepMoji is capable of understanding emotions in any text, not just emojis. “In fact,” he said, “we tested it across different types of text such as article headlines, written emotional experiences, serious debate forums … and beat state-of-the-art algorithms across all of these.”

Felbo and his team have developed a DeepMoji website where users can see the emoji aspect of the system in action. By highlighting certain parts of a sentence, the algorithm shows which emojis are most associated with the resulting phrase. Users can also annotate their own tweets in order to contribute to the research.

Dyllan Furness
Former Contributor
Dyllan Furness is a freelance writer from Florida. He covers strange science and emerging tech for Digital Trends, focusing…
The Apple Car may be dead, but it became the foundation of Apple Intelligence
A decade of work on a canceled car project reportedly laid the groundwork for Apple Intelligence.
Apple Intelligence in Apple Car

The Apple Car may have never left the garage, but it apparently gave birth to Apple's AI ambitions. According to Bloomberg's Mark Gurman, Apple's canceled autonomous vehicle project, one that consumed more than a decade of work and over $10 billion before being scrapped in 2024, ended up laying the technological foundation for Apple Intelligence. In a rather ironic twist, one of Apple's most expensive failures may also become one of its most important long-term investments.

The Apple Car forced Apple to think like an AI company

Read more
Researchers hid a prompt injection inside a PNG, and AI fell for it
Hacker

AI coding assistants like Claude are becoming every developer's favorite coworker. They can review code, explain confusing functions, and even write entire features with a single prompt. But new research suggests that this growing trust could also become their biggest weakness.

A team of security researchers (professor Sudipta Chattopadhyay and researcher Murali Ediga) has demonstrated an unusual attack that doesn't target the AI model directly. Instead, it targets what the AI doesn't pay enough attention to during code reviews. Rather than hiding malicious instructions in lines of code, the researchers tucked them inside an image file. Since many AI review tools treat images as decorative assets rather than as something worth inspecting, the pull request can appear perfectly harmless and sail through the review.

Read more
AI has already fallen into the wrong hands and they’re using it to make bombs
Logo, Text

Artificial intelligence has quickly become the go-to tool for everything from writing emails and summarizing meetings to helping students study or developers debug code. But the same technology that saves people time can also be misused, and a new report suggests that terrorist organizations are finding ways to do exactly that.

According to a research paper shared with The New York Times ahead of its publication, researchers found evidence that members of Boko Haram have been using popular AI chatbots to support both day-to-day activities and combat-related tasks. Interviews with 27 former members conducted in Nigeria over the past two years suggest that tools such as ChatGPT, Gemini, Claude, Grok, Meta AI, and DeepSeek were used to gather technical information, troubleshoot weapons, and even assist with planning attacks.

Read more