Modern Australian
Men's Weekly

.

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

How a Burleigh Heads Plumber Tests for Pipe Leaks

Pipe leaks can be deceptively difficult to spot. Some announce themselves with a steady drip under the sink, but many develop quietly behind walls, ...

What Local Businesses Should Expect from IT Services in Melbourne?

If you run a Melbourne business with roughly 7–100 staff, you have probably noticed something over the last couple of years. The IT problems got m...

How Professional Cleaning Improves Indoor Air Quality

Indoor air quality (IAQ) plays a crucial role in our health, comfort, and overall wellbeing. Australians spend nearly 90% of their time indoors-at hom...

Solar and Solar Battery Systems: Powering Smarter Homes in Victoria

As energy prices continue to rise and sustainability becomes a priority for Australian homeowners, more families are investing in Solar and Solar Ba...

Plumbing Emergency Melbourne: What to Do When Every Minute Counts

A sudden plumbing issue can quickly turn into a major disaster if not handled promptly. From burst pipes and overflowing toilets to leaking gas line...

Why Older Melbourne Homes Require Detailed Building & Pest Inspections

Older homes make up a large part of Melbourne’s housing stock. Victorian terraces, Edwardian houses, Californian bungalows, and post-war brick hom...

7 Essential Tips for Choosing Reliable Moving Services in Perth

Moving to a new home or office can be exciting, but it also comes with stress, planning, and plenty of decisions. One of the most important choices yo...

How to Find the Best Real Estate Agent Near You on the Central Coast

Choosing the right real estate agent can make a major difference to your final sale price, days on market, and overall experience. The Central Coast...

Unlock Durability And Beauty With Burnt Timber Cladding Solutions

Imagine a home or commercial space that not only stands the test of time but also tells a story through its very facade. In the world of architectur...

Offroad Caravans: Built for Adventure Beyond the Beaten Track

Australia’s vast and varied landscapes invite travellers to explore far beyond sealed roads and crowded parks. Offroad caravans are purpose-built ...

The Expert's Guide to Understanding Large Bore Steel Pipe Specifications

When it comes to infrastructure, construction, and various industrial applications, the choice of materials is paramount. Among the options availabl...

Preparing for Your First Trip to San Francisco in 2026

San Francisco has long occupied a particular place in the Australian imagination. It is compact yet complex, progressive but historic, and visually st...

Modern Office Painting in Australia - It's the Real Game Changer

Walk into any modern Australian office today and you'll be struck by the fact it's a whole different beast from the ones we grew up with. Gone are t...

How to Choose the Right Suburb for Your Lifestyle

Choosing the right suburb is one of the most important decisions you’ll make when buying or renting a home. Beyond the property itself, the suburb...

Considering Cryolipolysis Fat Freezing? Here’s What You Need to Know

Body confidence can shift over time, and sometimes even good diet and training can still leave a stubborn area of fat that won’t budge. If you’r...

From Local Tradie to Digital Leader: The Strategy Behind Auto Gate Guys Sydney’s Growth

For many small trade businesses, digital marketing still feels like a buzzword, not a necessity. They rely on word-of-mouth referrals, repeat clients...

Electric Automation System: Smarter Control for Modern Electrical Infrastructure

Modern buildings and industrial facilities are increasingly dependent on intelligent control and efficiency. An electric automation system brings t...

The Damp Truth: Why Your Overflowing Gutters Are an Open Invitation for Termites

When it comes to protecting your home, most people think about visible threats — storm damage, cracked tiles, break-ins. But one of the most destruc...