News | National
7 Oct 2024 4:16
NZCity News
NZCity CalculatorReturn to NZCity

  • Start Page
  • Personalise
  • Sport
  • Weather
  • Finance
  • Shopping
  • Jobs
  • Horoscopes
  • Lotto Results
  • Photo Gallery
  • Site Gallery
  • TVNow
  • Dating
  • SearchNZ
  • NZSearch
  • Crime.co.nz
  • RugbyLeague
  • Make Home
  • About NZCity
  • Contact NZCity
  • Your Privacy
  • Advertising
  • Login
  • Join for Free

  •   Home > News > National

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

    A new model looked at more than 3.6 million sentences posted on X, with an 86% success rate in identifying the emotion being expressed.

    Sanghyub John Lee, Professional Casual Staff, University of Auckland, Waipapa Taumata Rau, Ho Seok Ahn, Senior Research Fellow, Department of Electrical, Computer and Software Engineering, University of Auckland, Waipapa Taumata Rau, Leo Paas, Professor,
    The Conversation


    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.

    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.

    The Conversation

    The authors do not work for, consult, own shares in or receive funding from any company or organisation that would benefit from this article, and have disclosed no relevant affiliations beyond their academic appointment.

    This article is republished from The Conversation under a Creative Commons license.
    © 2024 TheConversation, NZCity

     Other National News
     06 Oct: Taranaki have won the Ranfurly Shield off Tasman, running out 42-29 victors in their NPC challenge in Nelson
     06 Oct: The Waikato Expressway between Huntly and Taupiri has reopened after a fatal crash closed it in both directions this afternoon
     06 Oct: Emergency Management Otago Group Controller Matt Alley has acknowledged the huge amount of work ahead for many households, farmers and businesses in the aftermath of severe heavy rain
     06 Oct: The Ranfurly Shield is headed to Taranaki for the summer
     06 Oct: One person's assisting with Police enquiries after a violent assault in Central Wellington this morning
     06 Oct: A woman who was assaulted in September has died in hospital
     06 Oct: Relentless rainfall in Otago has highlighted the need for infrastructure improvements
     Top Stories

    RUGBY RUGBY
    Taranaki have won the Ranfurly Shield off Tasman, running out 42-29 victors in their NPC challenge in Nelson More...


    BUSINESS BUSINESS
    Emergency Management Otago Group Controller Matt Alley has acknowledged the huge amount of work ahead for many households, farmers and businesses in the aftermath of severe heavy rain More...



     Today's News

    Rugby:
    Taranaki have won the Ranfurly Shield off Tasman, running out 42-29 victors in their NPC challenge in Nelson 21:57

    Accident and Emergency:
    The Waikato Expressway between Huntly and Taupiri has reopened after a fatal crash closed it in both directions this afternoon 21:27

    International:
    Ukrainian forces say they have shot down a Russian fighter plane while Russia claims to have made gains in Ukraine's east 21:17

    Rugby League:
    Penrith Panthers halfback Jerome Luai is going to relish his final 80 minutes for the side as they take on the Melbourne Storm in tonight's NRL Grand Final 21:07

    International:
    Five Israeli strikes hit Beirut's south as IDF says it will retaliate against Iran in its own time 20:07

    Rugby:
    New Zealand Rugby hope to announce a 2026 All Blacks tour of South Africa within the next two months 18:57

    Business:
    Emergency Management Otago Group Controller Matt Alley has acknowledged the huge amount of work ahead for many households, farmers and businesses in the aftermath of severe heavy rain 18:37

    Rugby League:
    Could Kiwis halfback Jahrome Hughes finish the week a Dally M medallist and NRL premiership winner? 18:07

    Rugby:
    The Ranfurly Shield is headed to Taranaki for the summer 17:47

    Netball:
    16-test Silver Fern Margie Foster believes capitalising on turnover ball looms as the biggest improvement area for New Zealand ahead of tonight's dead rubber Taini Jamison Trophy fixture against England in Invercargill 17:47


     News Search






    Power Search


    © 2024 New Zealand City Ltd