Skip to main content

MIT algorithm learns to understand emotions and sarcasm through emojis

emojis
Image used with permission by copyright holder
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.

Please enable Javascript to view this content

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 Digital Trends Contributor
Dyllan Furness is a freelance writer from Florida. He covers strange science and emerging tech for Digital Trends, focusing…
Dodge’s Charger EV muscles up to save the planet from ‘self-driving sleep pods’
dodges charger ev muscles up to save the planet from self driving sleep pods stellantis dodge daytona

Strange things are happening as the electric vehicle (EV) industry sits in limbo ahead of the incoming Trump administration’s plans to end tax incentives on EV purchases and production.

The latest exemple comes from Dodge, which is launching a marketing campaign ahead of the 2025 release of its first fully electric EV, the Daytona Charger.

Read more
Many hybrids rank as most reliable of all vehicles, Consumer Reports finds
many hybrids rank as most reliable of all vehicles evs progress consumer reports cr tout cars 0224

For the U.S. auto industry, if not the global one, 2024 kicked off with media headlines celebrating the "renaissance" of hybrid vehicles. This came as many drivers embraced a practical, midway approach rather than completely abandoning gas-powered vehicles in favor of fully electric ones.

Now that the year is about to end, and the future of tax incentives supporting electric vehicle (EV) purchases is highly uncertain, it seems the hybrid renaissance still has many bright days ahead. Automakers have heard consumer demands and worked on improving the quality and reliability of hybrid vehicles, according to the Consumer Reports (CR) year-end survey.

Read more
U.S. EVs will get universal plug and charge access in 2025
u s evs will get universal plug charge access in 2025 ev car to charging station power cable plugged shutterstock 1650839656

And then, it all came together.

Finding an adequate, accessible, and available charging station; charging up; and paying for the service before hitting the road have all been far from a seamless experience for many drivers of electric vehicles (EVs) in the U.S.

Read more