The Impact of Linguistic Features on Emotion Detection in Social Media Texts

Nuk Ghurroh Setyoningrum, Neng Nelis Febriani SM, Alam Alam, Arif Muhamad Nurdin, Dede Rizal Nursamsi, Mae B Lodana

Abstract

Emotions are an important aspect of human life, and scientific theories on emotions have been widely developed in various research fields such as philosophy, psychology, and neuroscience. In human-computer interaction, understanding emotions is also very important. Detecting emotions not only enables better decision-making, but is also useful in various contexts such as business, politics, and mental health. The focus on identifying emotions in text arises because emotions are often implied without explicit words. Through the analysis of grammar and sentence structure, text mining techniques enable the extraction of sentiments and emotions. Detecting and identifying emotions in text is important because it can be applied in a variety of fields, including decision-making, prediction of human emotions, product assessment, analysis of political support, and identification of depression. Text as textual data is an important source of information due to its ability to convey human emotions. In this research, emotion detection uses the Naïve Bayes method, with attribute weighting to improve accuracy using count vector. This classification approach allows grouping text into six emotion categories: happy, sad, fear, love, shock, and anger. The Naïve Bayes method was chosen for its reliability in classifying data based on conditional probabilities. Thus, this research provides a deeper understanding of understanding and managing emotions in the context of social media. The data classification results yield precision, recall, F1-Measure, and accuracy values.

Full Text:

PDF (27-34)

References

A. D. L. Langure and M. Zareei, “Breaking Barriers in Sentiment Analysis and Text Emotion Detection: Toward a Unified Assessment Framework,” IEEE Access, vol. 11, pp. 125698–125715, 2023, doi: 10.1109/ACCESS.2023.3331323.

Y. Hu and H. Wang, “A Review of Mining User Needs Based on Text Sentiment Analysis Technology and KANO Model,” in Proceedings of the 2024 9th International Conference on Intelligent Information Processing, New York, NY, USA: ACM, Nov. 2024, pp. 257–264. doi: 10.1145/3696952.3696987.

A. Nurlaila and R. Saptono, “CLASSIFICATION OF CUSTOMERS EMOTION USING NAÏVE BAYES CLASSIFIER (Case Study: Natasha Skin Care).”

B. Li, H. Fei, F. Li, T. Chua, and D. Ji, “Multimodal Emotion-Cause Pair Extraction with Holistic Interaction and Label Constraint,” ACM Transactions on Multimedia Computing, Communications, and Applications, Aug. 2024, doi: 10.1145/3689646.

W.-C. Huang and Y.-L. Hsueh, “An Emotional Dialogue System Using Conditional Generative Adversarial Networks with a Sequence-to-Sequence Transformer Encoder,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 23, no. 12, pp. 1–23, Dec. 2024, doi: 10.1145/3698394.

Y. Jing and X. Zhao, “DQ-Former: Querying Transformer with Dynamic Modality Priority for Cognitive-aligned Multimodal Emotion Recognition in Conversation,” in MM 2024 - Proceedings of the 32nd ACM International Conference on Multimedia, Association for Computing Machinery, Inc, Oct. 2024, pp. 4795–4804. doi: 10.1145/3664647.3681599.

Y. Cai, R. Ye, J. Xie, Y. Zhou, Y. Xu, and Z. Wu, “Robust Representation Learning for Multimodal Emotion Recognition with Contrastive Learning and Mixup,” in Proceedings of the 2nd International Workshop on Multimodal and Responsible Affective Computing, New York, NY, USA: ACM, Oct. 2024, pp. 93–97. doi: 10.1145/3689092.3689418.

A. Buker and A. Vinciarelli, “Emotion Recognition for Multimodal Recognition of Attachment in School-Age Children,” in International Conference on Multimodel Interaction, New York, NY, USA: ACM, Nov. 2024, pp. 312–320. doi: 10.1145/3678957.3685747.

L. L. V and D. K. Anguraj, “A DENSE SPATIAL NETWORK MODEL FOR EMOTION RECOGNITION USING LEARNING APPROACHES,” ACM Transactions on Asian and Low-Resource Language Information Processing, Aug. 2024, doi: 10.1145/3688000.

S. J. Cantrell, R. M. Winters, P. Kaini, and B. N. Walker, “Sonification of Emotion in Social Media: Affect and Accessibility in Facebook Reactions,” Proc ACM Hum Comput Interact, vol. 6, no. CSCW1, Apr. 2022, doi: 10.1145/3512966.

F. Hasan, Y. Li, J. R. Foulds, S. Pan, and B. Bhattacharjee, “DoubleDistillation: Enhancing LLMs for Informal Text Analysis using Multistage Knowledge Distillation from Speech and Text,” in International Conference on Multimodel Interaction, New York, NY, USA: ACM, Nov. 2024, pp. 526–535. doi: 10.1145/3678957.3685705.

A. Fadjeri, K. Hidayat, and D. R. Handayani, “DETEKSI EMOSI PADA TEKS MENGGUNAKAN ALGORITMA NAÏVE BAYES,” vol. 1, no. 2, pp. 1–4, 2021, doi: 10.53863/juristik.v1i02.365.

Y. Xu, Y. Zhou, Y. Cai, J. Xie, R. Ye, and Z. Wu, “Multimodal Emotion Captioning Using Large Language Model with Prompt Engineering,” in Proceedings of the 2nd International Workshop on Multimodal and Responsible Affective Computing, New York, NY, USA: ACM, Oct. 2024, pp. 104–109. doi: 10.1145/3689092.3689403.

T. Thebaud et al., “Multimodal Emotion Recognition Harnessing the Complementarity of Speech, Language, and Vision,” in International Conference on Multimodel Interaction, New York, NY, USA: ACM, Nov. 2024, pp. 684–689. doi: 10.1145/3678957.3689332.

F. Fanesya and R. Cahya Wihandika, “Deteksi Emosi Pada Twitter Menggunakan Metode Naïve Bayes Dan Kombinasi Fitur,” 2019. [Online]. Available: http://j-ptiik.ub.ac.id

C. Strapparava and R. Mihalcea, “SemEval-2007 Task 14: Affective Text,” 2007.

L. Bulla and M. Mongiovì, “Adequate Prompting Improves Performance of Regression Models of Emotional Content,” Association for Computing Machinery (ACM), Sep. 2024, pp. 135–142. doi: 10.1145/3677525.3678653.

“308-Article Text-377-1-10-20181116”.

C. Cherry, S. M. Mohammad, and B. De Bruijn, “Binary Classifiers and Latent Sequence Models for Emotion Detection in Suicide Notes,” Biomed Inform Insights, vol. 5s1, p. BII.S8933, Jan. 2012, doi: 10.4137/bii.s8933.

Md. A. Akber, T. Ferdousi, R. Ahmed, R. Asfara, R. Rab, and U. Zakia, “Personality and emotion—A comprehensive analysis using contextual text embeddings,” Natural Language Processing Journal, vol. 9, p. 100105, Dec. 2024, doi: 10.1016/j.nlp.2024.100105.

Y. Shang and T. Fu, “Multimodal fusion: A study on speech-text emotion recognition with the integration of deep learning,” Intelligent Systems with Applications, vol. 24, Dec. 2024, doi: 10.1016/j.iswa.2024.200436.

C. O. Alm, D. Roth, and R. Sproat, “Emotions from text: machine learning for text-based emotion prediction,” 2005. [Online]. Available: http://l2r.cs.uiuc.edu/

F. Anzum and M. L. Gavrilova, “Emotion Detection From Micro-Blogs Using Novel Input Representation,” IEEE Access, vol. 11, pp. 19512–19522, 2023, doi: 10.1109/ACCESS.2023.3248506.

A. Al Maruf, F. Khanam, M. M. Haque, Z. M. Jiyad, M. F. Mridha, and Z. Aung, “Challenges and Opportunities of Text-Based Emotion Detection: A Survey,” IEEE Access, vol. 12, pp. 18416–18450, 2024, doi: 10.1109/ACCESS.2024.3356357.

A. De Leon Langure and M. Zareei, “Evaluating the Effect of Emotion Models on the Generalizability of Text Emotion Detection Systems,” IEEE Access, vol. 12, pp. 70489–70500, 2024, doi: 10.1109/ACCESS.2024.3401203.

N. Shelke, S. Chaudhury, S. Chakrabarti, S. L. Bangare, G. Yogapriya, and P. Pandey, “An efficient way of text-based emotion analysis from social media using LRA-DNN,” Neuroscience Informatics, vol. 2, no. 3, p. 100048, Sep. 2022, doi: 10.1016/j.neuri.2022.100048.

S. Salloum, K. Alhumaid, A. Salloum, and K. Shaalan, “K-means Clustering of Tweet Emotions: A 2D PCA Visualization Approach,” Procedia Comput Sci, vol. 244, pp. 30–36, 2024, doi: 10.1016/j.procs.2024.10.175.

A. Chowanda, R. Sutoyo, Meiliana, and S. Tanachutiwat, “Exploring Text-based Emotions Recognition Machine Learning Techniques on Social Media Conversation,” in Procedia Computer Science, Elsevier B.V., 2021, pp. 821–828. doi: 10.1016/j.procs.2021.01.099.

C. Yang and Y. Zhang, “Public emotions and visual perception of the East Coast Park in Singapore: A deep learning method using social media data,” Urban For Urban Green, vol. 94, Apr. 2024, doi: 10.1016/j.ufug.2024.128285.

Z. Liu, T. Zhang, K. Yang, P. Thompson, Z. Yu, and S. Ananiadou, “Emotion detection for misinformation: A review,” Jul. 01, 2024, Elsevier B.V. doi: 10.1016/j.inffus.2024.102300.

B. Abu-Salih et al., “Emotion detection of social data: APIs comparative study,” Heliyon, vol. 9, no. 5, May 2023, doi: 10.1016/j.heliyon.2023.e15926.

R. G. C. Purtiwi, F. Artwodini, and R. Nadlifatin, “Analysis of the Role of the Use of Social Media and Emotions in Risk Perception and Prevention Behavior of Covid-19 Using the Preventive Behavior Model,” in Procedia Computer Science, Elsevier B.V., 2024, pp. 1145–1153. doi: 10.1016/j.procs.2024.03.110.

Y. Li, J. Chan, G. Peko, and D. Sundaram, “Mixed emotion extraction analysis and visualisation of social media text,” Data Knowl Eng, vol. 148, Nov. 2023, doi: 10.1016/j.datak.2023.102220.

C. Strapparava and R. Mihalcea, “SemEval-2007 Task 14: Affective Text,” 2007.

R. Pan, J. A. García-Díaz, M. Á. Rodríguez-García, and R. Valencia-García, “Spanish MEACorpus 2023: A multimodal speech–text corpus for emotion analysis in Spanish from natural environments,” Comput Stand Interfaces, vol. 90, Aug. 2024, doi: 10.1016/j.csi.2024.103856.

Q. Zhao, Y. Xia, Y. Long, G. Xu, and J. Wang, “Leveraging sensory knowledge into Text-to-Text Transfer Transformer for enhanced emotion analysis,” Inf Process Manag, vol. 62, no. 1, Jan. 2025, doi: 10.1016/j.ipm.2024.103876.

Refbacks

  • There are currently no refbacks.