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

Expert Plumbing Solutions in Perth: From Hot Water Systems to Leak Detection

Plumbing is one of those things we often take for granted—until something goes wrong. From stepping into an unexpectedly cold shower to discovering ...

Eco-smart Car Removal in Sydney: Practical Steps That Cut Waste and Return Value

Sydney’s ageing cars add up to a serious waste stream, and choosing the right removal service makes a measurable difference. Your decision sends m...

Measuring the Success of Your Bus Advertising Campaign

Bus ads turn everyday travel into high-reach media. They move through busy corridors, sit in traffic where people can read them, and keep working af...

Partner Visa Pathways: Onshore vs Offshore Applications Explained

Choosing between Australia’s onshore and offshore partner visa routes affects timing, travel, work rights and budget. This guide explains the stru...

Serving Styles Compared: Buffet, Grazing, or Plated for the Office

Choosing how to serve food at a work function shapes the pace of the event, how people mingle and how smoothly the agenda runs. The right format dep...

5 Essential Tips for Hiring Gold Coast Plumbers

Finding the best plumber on the Gold Coast can be as complex as navigating a network of pipes, requiring an expert who is capable, reliable, and s...

Hidden Costs of Moving You Need to Budget For (And How to Avoid Them)

Moving house ranks among life's most busy experiences, and discovering unexpected expenses along the way certainly doesn't help with stress levels. Wh...

Understanding Australian Building Regulations: What Every Mornington Builder Wants You to Know

If you live on the Mornington Peninsula, you likely already feel the risk of bushfires,hot, dry summers, nearby bushland, and epic wind events. That...

Top 5 Home Exercises Recommended by Chiropractors for Better Posture

In today’s world of endless screen time and back-to-back Zoom meetings, it’s no surprise that posture-related issues are on the rise. From achin...

Simple Home Exercises to Manage Chronic Pain and Improve Mobility

Living with chronic pain doesn’t have to mean a life of limitation. Many people struggling with persistent discomfort find themselves moving less...

Smart Renovation Tips for a Sleek, Low-Maintenance Interior

In a world where time is tight and stress is high, our homes should feel like a refuge not another to-do list. That’s why smart renovations are tr...

Stay Cool in Queensland: The Complete Guide to Choosing the Right Air Conditioner

Introduction Queensland’s warm, humid climate makes a reliable air conditioning system an essential part of daily life. Whether you’re creating a...

Proving Partner Visas with Lawyers and Solid Evidence

You’re ready to build a life with your partner in Australia but the visa process quickly turns something personal into something official. Suddenl...

The History and Philosophy Behind Osteopathic Medicine

Osteopathy is more than just a hands-on approach to relieving pain—it’s a holistic health philosophy with roots in history, science, and a deep ...

Common Bathroom Renovation Mistakes and How to Avoid Them

Renovating a bathroom can be one of the most rewarding home improvement projects, offering both enhanced functionality and a fresh aesthetic. Howeve...

5 Simple Home Modifications to Support Occupational Therapy Goals

Every year, thousands of Australians face mobility challenges, chronic pain, or sensory issues that make daily tasks difficult. Simple changes at ho...

The Cost of Converting a Shipping Container into a Liveable Space

Container conversions often require more planning and labour than expected Early costs include foundations, framing, and structural reinforceme...

Marriage Celebrant for Modern Lovers Who Want Something Different

Many couples today feel pressure to follow the same wedding traditions their parents or grandparents did. They might sit through long ceremonies that ...