Detection of emotion by text analysis using machine learning

被引:3
|
作者
Machova, Kristina [1 ]
Szaboova, Martina [1 ]
Paralic, Jan [1 ]
Micko, Jan [2 ]
机构
[1] Tech Univ Kosice, Fac Elect Engn & Informat, Dept Cybernet & Artificial Intelligence, Kosice, Slovakia
[2] Tech Univ Kosice, Dept Social Sci, Kosice, Slovakia
来源
FRONTIERS IN PSYCHOLOGY | 2023年 / 14卷
关键词
detection of emotions; machine learning; neural networks; text analysis; human-machine interaction; chatbot;
D O I
10.3389/fpsyg.2023.1190326
中图分类号
B84 [心理学];
学科分类号
04 ; 0402 ;
摘要
Emotions are an integral part of human life. We know many different definitions of emotions. They are most often defined as a complex pattern of reactions, and they could be confused with feelings or moods. They are the way in which individuals cope with matters or situations that they find personally significant. Emotion can also be characterized as a conscious mental reaction (such as anger or fear) subjectively experienced as a strong feeling, usually directed at a specific object. Emotions can be communicated in different ways. Understanding the emotions conveyed in a text or speech of a human by a machine is one of the challenges in the field of human-machine interaction. The article proposes the artificial intelligence approach to automatically detect human emotions, enabling a machine (i.e., a chatbot) to accurately assess emotional state of a human and to adapt its communication accordingly. A complete automation of this process is still a problem. This gap can be filled with machine learning approaches based on automatic learning from experiences represented by the text data from conversations. We conducted experiments with a lexicon-based approach and classic methods of machine learning, appropriate for text processing, such as Naive Bayes (NB), support vector machine (SVM) and with deep learning using neural networks (NN) to develop a model for detecting emotions in a text. We have compared these models' effectiveness. The NN detection model performed particularly well in a multi-classification task involving six emotions from the text data. It achieved an F1-score = 0.95 for sadness, among other high scores for other emotions. We also verified the best model in use through a web application and in a Chatbot communication with a human. We created a web application based on our detection model that can analyze a text input by web user and detect emotions expressed in a text of a post or a comment. The model for emotions detection was used also to improve the communication of the Chatbot with a human since the Chatbot has the information about emotional state of a human during communication. Our research demonstrates the potential of machine learning approaches to detect emotions from a text and improve human-machine interaction. However, it is important to note that full automation of an emotion detection is still an open research question, and further work is needed to improve the accuracy and robustness of this system. The paper also offers the description of new aspects of automated detection of emotions from philosophy-psychological point of view.
引用
收藏
页数:14
相关论文
共 50 条
  • [1] Emotion Detection in Roman Urdu Text using Machine Learning
    Majeed, Adil
    Mujtaba, Hasan
    Beg, Mirza Omer
    [J]. 2020 35TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING WORKSHOPS (ASEW 2020), 2020, : 125 - 130
  • [2] Emotion Detection from Text and Sentiment Analysis of Ukraine Russia War using Machine Learning Technique
    Al Maruf, Abdullah
    Ziyad, Zakaria Masud
    Haque, Md Mahmudul
    Khanam, Fahima
    [J]. INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2022, 13 (12) : 868 - 882
  • [3] Systematic Analysis of Hateful Text Detection Using Machine Learning Classifiers
    Tani, Tanzina Akter
    Islam, Tabassum
    Newaz, Sayed Atique
    Sultana, Nahida
    [J]. PROCEEDINGS OF 2021 13TH INTERNATIONAL CONFERENCE ON INFORMATION & COMMUNICATION TECHNOLOGY AND SYSTEM (ICTS), 2021, : 330 - 335
  • [4] Multimodal Affective Communication Analysis: Fusing Speech Emotion and Text Sentiment Using Machine Learning
    Resende Faria, Diego
    Weinberg, Abraham Itzhak
    Ayrosa, Pedro Paulo
    [J]. APPLIED SCIENCES-BASEL, 2024, 14 (15):
  • [5] Comparative Analysis of Electrodermal Activity Decomposition Methods in Emotion Detection Using Machine Learning
    Sriram, Kumar P.
    Govarthan, Praveen Kumar
    Ganapathy, Nagarajan
    Agastinose Ronickom, Jac Fredo
    [J]. CARING IS SHARING-EXPLOITING THE VALUE IN DATA FOR HEALTH AND INNOVATION-PROCEEDINGS OF MIE 2023, 2023, 302 : 73 - 77
  • [6] Twitter Sentiment Analysis Based Public Emotion Detection using Machine Learning Algorithms
    Fahim, Safa
    Imran, Azhar
    Alzahrani, Abdulkareem
    Fahim, Marwa
    Alheeti, Khattab M. Ali
    Alfateh, Muhammad
    [J]. 2022 17TH INTERNATIONAL CONFERENCE ON EMERGING TECHNOLOGIES (ICET'22), 2022, : 107 - 112
  • [7] SMSDect: A Prediction Model for Smishing Attack Detection using Machine Learning and Text Analysis
    Patra, Chanchal
    Giri, Debasis
    Obaidat, Mohammad S.
    Maitra, Tanmoy
    [J]. IEEE CONFERENCE ON GLOBAL COMMUNICATIONS, GLOBECOM, 2023, : 3837 - 3842
  • [8] Hate Speech Detection Using Text Mining and Machine Learning
    Alaoui, Safae Sossi
    Farhaoui, Yousef
    Aksasse, Brahim
    [J]. INTERNATIONAL JOURNAL OF DECISION SUPPORT SYSTEM TECHNOLOGY, 2022, 14 (01)
  • [9] Clinical Text Analysis Using Machine Learning Methods
    Chodey, Krishna Prasad
    Hu, Gongzhu
    [J]. 2016 IEEE/ACIS 15TH INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION SCIENCE (ICIS), 2016, : 1087 - 1092
  • [10] Student Engagement Detection Using Emotion Analysis, Eye Tracking and Head Movement with Machine Learning
    Sharma, Prabin
    Joshi, Shubham
    Gautam, Subash
    Maharjan, Sneha
    Khanal, Salik Ram
    Reis, Manuel Cabral
    Barroso, Joao
    de Jesus Filipe, Vitor Manuel
    [J]. TECHNOLOGY AND INNOVATION IN LEARNING, TEACHING AND EDUCATION, TECH-EDU 2022, 2022, 1720 : 52 - 68