Modern Australian
The Times

Happy, sad or angry? AI can detect emotions in text according to new research

  • Written by Sanghyub John Lee, Professional Casual Staff, University of Auckland, Waipapa Taumata Rau

Artificial intelligence (AI) has begun to permeate many facets of the human experience. AI is not just a tool for analysing data – it’s transforming the way we communicate, work and live. From ChatGP through to AI video generators, the lines between technology and parts of our lives have become increasingly blurred.

But do these technological advances mean AI can identify our feelings online?

In our new research we examined whether AI could detect human emotions in posts on X (formerly Twitter).

Our research focused on how emotions expressed in use posts about certain non-profit organisations can influence actions such as the decision to make donations to them at a later point.

Using emotions to drive a response

Traditionally, researchers have relied on sentiment analysis, which categorises messages as positive, negative or neutral. While this method is simple and intuitive, it has limitations.

Human emotions are far more nuanced. For example, anger and disappointment are both negative emotions, but they can provoke very different reactions. Angry customers may react much more strongly than disappointed ones in a business context.

To address these limitations, we applied an AI model that could detect specific emotions – such as joy, anger, sadness and disgust – expressed in tweets.

Our research found emotions expressed on X could serve as a representation of the public’s general sentiments about specific non-profit organisations. These feelings had a direct impact on donation behaviour.

Detecting emotions

We used the “transformer transfer learning” model to detect emotions in text. Pre-trained on massive datasets by companies such as Google and Facebook, transformers are highly sophisticated AI algorithms that excel at understanding natural language (languages that have developed naturally as opposed to computer languages or code).

We fine-tuned the model on a combination of four self-reported emotion datasets (over 3.6 million sentences) and seven other datasets (over 60,000 sentences). This allowed us to map out a wide range of emotions expressed online.

For example, the model would detect joy as the dominant emotion when reading a X post such as,

Starting our mornings in schools is the best! All smiles at #purpose #kids.

Conversely, the model would pick up on sadness in a tweet saying,

I feel I have lost part of myself. I lost Mum over a month ago, Dad 13 years ago. I’m lost and scared.

The model achieved an impressive 84% accuracy in detecting emotions from text, a noteworthy accomplishment in the field of AI.

We then looked at tweets about two New Zealand-based organisations – the Fred Hollows Foundation and the University of Auckland. We found tweets expressing sadness were more likely to drive donations to the Fred Hollows Foundation, while anger was linked to an increase in donations to the University of Auckland.

ChatBot machine learning digital technology concept
Our new model was able to identify different emotions expressed in X posts. BlackJack3D/Getty Images

Ethical questions as AI evolves

Identifying specific emotions has significant implications for sectors such as marketing, education and health care.

Being able to identify people’s emotional responses in specific contexts online can support decision makers in responding to their individual customers or their broader market. Each specific emotion being expressed in social media posts online requires a different reaction from a company or organisation.

Our research demonstrated that different emotions lead to different outcomes when it comes to donations.

Knowing sadness in marketing messages can increase donations to non-profit organisations allows for more effective, emotionally resonant campaigns. Anger can motivate people to act in response to perceived injustice.

While the transformer transfer learning model excels at detecting emotions in text, the next major breakthrough will come from integrating it with other data sources, such as voice tone or facial expressions, to create a more complete emotional profile.

Imagine an AI that not only understands what you’re writing but also how you’re feeling. Clearly, such advances come with ethical challenges.

If AI can read our emotions, how do we ensure this capability is used responsibly? How do we protect privacy? These are crucial questions that must be addressed as the technology continues to evolve.

Authors: Sanghyub John Lee, Professional Casual Staff, University of Auckland, Waipapa Taumata Rau

Read more https://theconversation.com/happy-sad-or-angry-ai-can-detect-emotions-in-text-according-to-new-research-239376

Hoteliers Look to Clever Value Adds to Increase Revenue

The Australian hospitality industry is still in recovery mode after a notoriously rough patch in recent years. While there has been a post-COVID tra...

Moving to Queensland? Here’s How to Prep Your Car for the Big Move North

There’s no sign of the northern migration slowing down, with thousands of southerners fleeing from chaotic lifestyles and cooler climates for a brig...

Diesel Shortage to Impact Trades and Contractors

Strait of Hormuz blockage affecting all major parts of trades and construction Trades and construction across residential, commercial and industria...

Why Holiday Home Owners Turn to Rental Management Agents

The Allure — and the Reality — of Renting Out Your Property Owning a holiday home is a dream for many Australians. Whether it's a beachside sha...

Why Finding Reliable Doctors In Bundoora Is Important For Long-Term Health

Access to quality healthcare plays an important role in maintaining overall wellbeing and managing health concerns early. Trusted Doctors in Bundoor...

Understanding the Different Types of Car Services: Minor vs Major

When it comes to car maintenance, one of the most important things every vehicle owner should understand is the difference between a minor and a maj...

How Superannuation and TPD Insurance Work Together

Superannuation is an essential part of financial planning in Australia. It is designed to provide individuals with income during retirement, helping...

Tiny Towns funding granted for Mt Hotham and Mt Buller upgrades

Alpine Resorts Victoria (ARV) has welcomed funding support from the Victorian Government’s  Tiny Towns Fund, with both Mt Hotham and Mt Buller se...

Locksmith Services: Why Professional Security Solutions Matter More Than Ever

Security is a critical concern for homeowners, businesses, and vehicle owners alike. Whether it involves protecting a property, replacing damaged lo...

Why Tooth Fillings Are Important For Protecting Damaged Teeth

Cavities and minor tooth damage are common dental problems that can worsen if left untreated. Professional tooth fillings help restore damaged teeth, ...

The Connection Between Visibility and Driver Confidence

Operating a vehicle safely requires an immediate, uncompromised stream of visual information from the surrounding road environment. A driver's decis...

Important Things To Know Before Starting An SMSF Setup

Planning for retirement requires careful financial decisions, and many Australians are now looking for more direct control over how their superannua...

Why Retail Cleaning Plays a Key Role in Customer Experience and Business Success

Professional retail cleaning services are an essential part of maintaining a welcoming, safe, and professional environment for customers and staff...

Simple Ways to Make a Commercial Property More Appealing to Buyers

Selling or leasing a commercial property isn’t just about listing the square metres, taking a few photos and waiting for the right person to appea...

What Café Owners Should Know Before Upgrading Their Display Setup

A café display fridge does a lot more than keep cakes cold and sandwiches fresh. It quietly shapes the way customers browse, the way staff move beh...

Creating a Backyard That Feels Comfortable All Year Round

A great backyard doesn’t need to be huge, expensive or perfectly styled. Most of the time, the spaces people actually use are the ones that feel e...

How Homeowners Can Make Smarter Energy Decisions Before Upgrading

Energy upgrades used to feel like something you only looked into after a power bill gave you a nasty surprise. These days, though, more homeowners a...

Why Retail CX Breaks During Peak Sales Events and How to Prevent It

Retail customer experience has become one of the most important drivers of revenue growth, especially during high-intensity sales periods. However, ev...