A Machine Learning Model for the Classification of Human Emotions
DOI:
https://doi.org/10.26438/ijcse/v12i4.1723Keywords:
Machine Learning, LSTM, Classification, Human Emotions, Natural Language ProcessingAbstract
Emotions are expressed as part of ordinary speech. Facial expressions, speaking, utterance, writing, gestures and actions are all examples of how humans convey their emotions. Emotions are visible in a large body of research in the domains of psychology, linguistics, social science and communication.as a result, scientific research in emotion has been explored along multiple dimensions and has drawn research from various fields. This paper proposes a model which automatically learns emotions from texts to address the challenge of emotion recognition, noting that language is a powerful tool for communication. We provide automatic recognition in text form of six primary emotions. The use of microblogging was adopted as a rich source of opinion and emotion data. The text under investigation is made up of data gathered from blogs, which reflect writings with high emotional content and hence are appropriate for the study. The first challenge that comes to mind is to create a corpus that is annotated with emotion-related data. Unlike traditional approaches, which rely mostly on statistical methods, we propose a new method which infers and extracts the causes of emotions by incorporating knowledge and theories from other disciplines, such as sociology. The model incorporates Long Short Term Memory (LSTM) machine learning model capable of correctly predicting and classifying human emotions. The results showed that the model produced a 98 percent training accuracy and 88 percent validation accuracy. This concept can be deployed and used in a variety of corporate domains, including marketing, customer support and even the entertainment industry.
References
[1] Z. T. Sworna, Z. Mousavi, M. A. Babar, "NLP methods in host-based intrusion detection systems: A systematic review and future directions," Journal of Network and Computer Applications, Elsevier, 220, pp.1-29, 2023.
[2] A. Hur, N. Janjua, M. Ahmed, "Unifying context with labeled property graph: A pipeline-based system for comprehensive text representation in NLP," Expert Systems with Applications, Elsevier, Vol.239, 122269, pp.1-16, 2024.
[3] R. F. Baumeister, K. D. Vohs, N. Dewfall, L. Zhang, “How emotion shapes behavior: Feedback, anticipation, and reflection, rather than direct causation,” Personality and Social Psychology Review, Vol.11, Issue.2, pp.167–203, 2007.
[4] P. Ekman, "Basic emotions," Handbook of cognition and emotion 98, pp.45-60, 1999.
[5] D. A. Oyemade, D. Allenotor, “FAITH Software Life Cycle Model for Forex Expert Advisors,” Journal of Advances in Mathematical and Computational Sciences, Vol. 9 No.1, pp.1-12, 2021.
[6] H. V. Manalu , A. P. Rifai, “Detection of human emotions through facial expressions using hybrid convolutional neural network-recurrent neural network algorithm,” Intelligent Systems with Applications, 21, 200339, Elsevier, pp.1-18, 2024.
[7] J. Staiano, M. Guerini, “Depeche mood: a lexicon for emotion analysis from crowd-annotated news,” In the Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Baltimore, Maryland, Association for Computational Linguistics, pp.427-433, 2014.
[8] J. Vinay Kumar, S. Kumar, N. Jain, P. Verma, “A Novel Approach to Track Public Emotions Related to Epidemics in Multilingual Data," In 2nd International Conference and Youth School Information Technology and Nanotechnology (ITNT 2016), Russia, pp.883-889, 2016.
[9] S. Shaheen, W. El-Hajj, H. Hajj and S. Elbassuoni, "Emotion Recognition from Text Based on Automatically Generated Rules," 2014 IEEE International Conference on Data Mining Workshop, Shenzhen, China, pp.383-392, 2014.
[10] A. Balahur, J. M. Hermida, A. Montoyo, R. Muñoz, “EmotiNet: A Knowledge Base for Emotion Detection in Text Built on the Appraisal Theories,” In Muñoz, R., Montoyo, A., Métais, E. (eds) Natural Language Processing and Information Systems, NLDB 2011, Lecture Notes in Computer Science, Vol 6716, Springer, Berlin, Heidelberg, pp.27-39, 2011.
[11] S. M. Mohammad, P. D. Turney, “Emotions evoked by common words and phrases: using mechanical turk to create an emotion lexicon,” In Proceedings of the NAACL HLT 2010 Workshop on Computational Approaches to Analysis and Generation of Emotion in Text (CAAGET `10), Association for Computational Linguistics, USA, pp.26–34, 2010.
[12] S. M. Mohammad, P. D. Turney, “Crowdsourcing a word-emotion association lexicon,” Computational Intelligence, Vol.29, Issue.3, pp.436–465, 2013.
[13] John Atkinson, Daniel Campos, “Improving BCI-based emotion recognition by combining EEG feature selection and kernel classifiers,”Expert Systems with Applications, Vol.47, Elsevier, pp.35-41, 2016.
[14] Zahid Halim, Mehwish Waqar, Madiha Tahir, “A machine learning-based investigation utilizing the in-text features for the identification of dominant emotion in an email,” Knowledge-Based Systems, Vol.208, 106443, Elsevier, 2020.
[15] G. Santhi, “Enhanced Healthcare Provisioning through Emotion Recognition,” International Journal of Computer Sciences and Engineering, Vol.8, Issue 5, pp.182-186, 2020.
[16] Haposan Vincentius Manalu, Achmad Pratama Rifai, “Detection of human emotions through facial expressions using hybrid convolutional neural network-recurrent neural network algorithm,” Intelligent Systems with Applications, Vol. 21, 200339, Elsevier, pp.1-19, 2024.
[17] Pavel Kozlov, Alisher Akram, Pakizar Shamoi, “Fuzzy Approach for Audio-Video Emotion Recognition in Computer Games for Children,” In Soft Computing and Intelligent Systems: Theory and Applications (SCISTA 2023), Procedia Computer Science 231, Elsevier, pp.771–778, 2024.
[18] Asia Samreen, Syed Asif Ali, “Dataset construction to detect human behavior with the help of emotions, sentiments and mood for Roman Urdu,”, Data in Brief, Vol.52, 109906, Elsevier, pp.1-8, 2024.
[19] Zhiwei Liu, Tianlin Zhang, Kailai Yang, Paul Thompson, Zeping Yu, Sophia Ananiadou, “Emotion detection for misinformation: A review,” Information Fusion, Vol. 107, 102300, Elsevier, pp.1-29, 2024.
[20] Bingtao Wan, Peng Wu, Chai Kiat Yeo, Gang Li, “Emotion-cognitive reasoning integrated BERT for sentiment analysis of online public opinions on emergencies,”, Information Processing & Management, Vol. 61, Issue 2, 103609, Elsevier, pp.1-20, 2024.
[21] Carmen Bisogni, Lucia Cascone, Michele Nappi, Chiara Pero, :POSER: POsed vs Spontaneous Emotion Recognition using fractal encoding,”, Image and Vision Computing, Vol. 144, 104952, pp.1-10, 2024.
[22] V. Preethi, Nimisha Jadav, Komal Shirsat, Mohan Bonde, “Emotion Recognition from Text using LSTM algorithm,” International Journal of Computer Sciences and Engineering, Vol.8, Issue 6, pp. 30-33, 2020.
[23] G. Jerse, A. Marcucci, "Deep Learning LSTM-based approaches for 10.7 cm solar radio flux forecasting up to 45-days, Astronomy and Computing," Volume 46, Elsevier, 100786, pp.1-16, 2024.
[24] Rahul Venkatesh Kumar, Shahram Rahmanian, Hessa Albalooshi, “EmotionX-SmartDubai_NLP: Detecting User Emotions In Social Media Text,” In Proceedings of the Sixth International Workshop on Natural Language Processing for Social Media , pages Melbourne, Australia, July 20, 2018. c 2018 Association for Computational Linguistics, pp.45–49, 2018.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors contributing to this journal agree to publish their articles under the Creative Commons Attribution 4.0 International License, allowing third parties to share their work (copy, distribute, transmit) and to adapt it, under the condition that the authors are given credit and that in the event of reuse or distribution, the terms of this license are made clear.
