Zero-Shot Emotion Detection for Semi-Supervised Sentiment Analysis Using Sentence Transformers and Ensemble Learning
Source abstract
Abstract
We live in a digitized era where our daily life depends on using online resources. Businesses consider the opinions of their customers, while people rely on the reviews/comments of other users before buying specific products or services. These reviews/comments are usually provided in the non-normative natural language within different contexts and domains (in social media, forums, news, blogs, etc.). Sentiment classification plays an important role in analyzing such texts collected from users by assigning positive, negative, and sometimes neutral sentiment values to each of them. Moreover, these texts typically contain many expressed or hidden emotions (such as happiness, sadness, etc.) that could contribute significantly to identifying sentiments. We address the emotion detection problem as part of the sentiment analysis task and propose a two-stage emotion detection methodology. The first stage is the unsupervised zero-shot learning model based on a sentence transformer returning the probabilities for subsets of 34 emotions (anger, sadness, disgust, fear, joy, happiness, admiration, affection, anguish, caution, confusion, desire, disappointment, attraction, envy, excitement, grief, hope, horror, joy, love, loneliness, pleasure, fear, generosity, rage, relief, satisfaction, sorrow, wonder, sympathy, shame, terror, and panic). The output of the zero-shot model is used as an input for the second stage, which trains the machine learning classifier on the sentiment labels in a supervised manner using ensemble learning. The proposed hybrid semi-supervised method achieves the highest accuracy of 87.3% on the English SemEval 2017 dataset.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Sentiment Analysis and Opinion Mining · Topic Modeling · Advanced Text Analysis Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Software Engineering, Kaunas University of Technology, 51368 Kaunas, Lithuania
Department of Applied Informatics, Vytautas Magnus University, 44404 Kaunas, Lithuania
References (68)
Show source-provided references
1. A review on multi-lingual sentiment analysis by machine learning methods10.25103/jestr.132.19 ↗
2. Transformer models for text-based emotion detection: A review of BERT-based approaches10.1007/s10462-021-09958-2 ↗
3. Cross-lingual deep neural transfer learning in sentiment analysis10.1016/j.procs.2020.08.014 ↗
4. Multi-class sentiment analysis of social media data with machine learning algorithms
5. A comprehensive survey on sentiment analysis in twitter data10.4018/IJDST.300352 ↗
6. Extended feature spaces based classifier ensembles for sentiment analysis of short texts
7. Alonso, M.A., Vilares, D., Gómez-Rodríguez, C., and Vilares, J. (2021). Sentiment analysis for fake news detection. Electronics, 10.10.3390/electronics10111348 ↗
8. Aldjanabi, W., Dahou, A., Al-Qaness, M.A.A., Elaziz, M.A., Helmi, A.M., and Damaševičius, R. (2021). Arabic offensive and hate speech detection using a cross-corpora multi-task learning model. Informatics, 8.10.3390/informatics8040069 ↗
9. Homophobic and hate speech detection using multilingual-BERT model on turkish social media10.5755/j01.itc.51.2.29988 ↗
10. Tesfagergish, S.G., Damaševičius, R., and Kapočiūtė-Dzikienė, J. (2021, January 13–16). Deep fake recognition in tweets using text augmentation, word embeddings and deep learning. Proceedings of the 21st International Conference on Computational Science and Its Applications, ICCSA 2021, Cagliari, Italy. Part VI.10.1007/978-3-030-86979-3_37 ↗
11. Social media analysis and public opinion: The 2010 UK general election10.1111/jcc4.12102 ↗
12. Lampert, J., and Lampert, C.H. (2021, January 15–18). Overcoming rare-language discrimination in multi-lingual sentiment analysis. Proceedings of the 2021 IEEE International Conference on Big Data, Big Data 2021, Orlando, FL, USA.10.1109/BigData52589.2021.9672003 ↗
13. Liang, M., Zhou, J., Sun, Y., and He, L. (2021, January 5–7). Working with few samples: Methods that help analyze social attitude and personal emotion. Proceedings of the 2021 IEEE 24th International Conference on Computer Supported Cooperative Work in Design, CSCWD 2021, Dalian, China.10.1109/CSCWD49262.2021.9437799 ↗
14. Issues and challenges of aspect-based sentiment analysis: A comprehensive survey10.1109/TAFFC.2020.2970399 ↗
15. Pelicon, A., Pranjić, M., Miljković, D., Škrlj, B., and Pollak, S. (2020). Zero-shot learning for cross-lingual news sentiment classification. Appl. Sci., 10.10.3390/app10175993 ↗
16. Choi, H., Kim, J., Joe, S., Min, S., and Gwon, Y. (2020, January 10–15). Analyzing zero-shot cross-lingual transfer in supervised NLP tasks. Proceedings of the International Conference on Pattern Recognition, Milan, Italy.
17. Phan, K.T., Ngoc Hao, D., Thin, D.V., and Luu-Thuy Nguyen, N. (2021, January 15–16). Exploring zero-shot cross-lingual aspect-based sentiment analysis using pre-trained multilingual language models. Proceedings of the 2021 International Conference on Multimedia Analysis and Pattern Recognition, MAPR, Hanoi, Vietnam.10.1109/MAPR53640.2021.9585242 ↗
18. Sentiment analysis using XLM-R transformer and zero-shot transfer learning on resource-poor indian language
19. Pribán, P., and Steinberger, J. (2021, January 1–3). Are the multilingual models better? Improving czech sentiment with transformers. Proceedings of the International Conference Recent Advances in Natural Language Processing, RANLP, Online.
20. A cross-lingual sentiment topic model evolution over time10.3233/IDA-184449 ↗
21. Coarse alignment of topic and sentiment: A unified model for cross-lingual sentiment classification10.1109/TNNLS.2020.2979225 ↗
22. A review on sentiment analysis and emotion detection from text10.1007/s13278-021-00776-6 ↗
23. Al-Saffar, A., Awang, S., Tao, H., Omar, N., Al-Saiagh, W., and Al-bared, M. (2018). Malay sentiment analysis based on combined classification approaches and senti-lexicon algorithm. PLoS ONE, 13.10.1371/journal.pone.0194852 ↗
24. CatSent: A catalan sentiment analysis website10.1007/s11042-019-07877-7 ↗
25. The applications of sentiment analysis for russian language texts: Current challenges and future perspectives10.1109/ACCESS.2020.3002215 ↗
26. Systematic literature review of sentiment analysis in the spanish language
27. Pota, M., Ventura, M., Catelli, R., and Esposito, M. (2021). An effective bert-based pipeline for twitter sentiment analysis: A case study in italian. Sensors, 21.10.3390/s21010133 ↗
28. Sentiment analysis of sinhala news comments10.1145/3445035 ↗
29. Kydros, D., Argyropoulou, M., and Vrana, V. (2021). A content and sentiment analysis of greek tweets during the pandemic. Sustainability, 13.10.3390/su13116150 ↗
30. Arabic aspect-based sentiment analysis: A systematic literature review10.1109/ACCESS.2021.3127140 ↗
31. Sentiment analysis in Turkish: Supervised, semi-supervised, and unsupervised techniques10.1017/S1351324920000200 ↗
32. Khan, L., Amjad, A., Afaq, K.M., and Chang, H. (2022). Deep sentiment analysis using CNN-LSTM architecture of English and Roman Urdu text shared in social media. Appl. Sci., 12.10.3390/app12052694 ↗
33. Fujihira, K., and Horibe, N. (2020, January 1–15). Multilingual sentiment analysis for web text based on word to word translation. Proceedings of the 2020 9th International Congress on Advanced Applied Informatics, IIAI-AAI, Kitakyushu, Japan.10.1109/IIAI-AAI50415.2020.00025 ↗
34. Baliyan, A., Batra, A., and Singh, S.P. (2021, January 17–19). Multilingual sentiment analysis using RNN-LSTM and neural machine translation. Proceedings of the 2021 8th International Conference on Computing for Sustainable Global Development, INDIACom, New Delhi, India.
35. Recommendation based on review texts and social communities: A hybrid model10.1109/ACCESS.2019.2897586 ↗
36. Text messaging-based medical diagnosis using natural language processing and fuzzy logic10.1155/2020/8839524 ↗
37. Liapis, C.M., Karanikola, A., and Kotsiantis, S. (2021). A multi-method survey on the use of sentiment analysis in multivariate financial time series forecasting. Entropy, 23.10.3390/e23121603 ↗
38. Deep learning and multilingual sentiment analysis on social media data: An overview10.1016/j.asoc.2021.107373 ↗
39. Sentiment analysis algorithms and applications: A survey10.1016/j.asej.2014.04.011 ↗
40. A multi-layer network for aspect-based cross-lingual sentiment classification10.1109/ACCESS.2021.3116053 ↗
41. Kapočiūtė-Dzikienė, J., Damaševičius, R., and Woźniak, M. (2019). Sentiment analysis of Lithuanian texts using traditional and deep learning approaches. Computers, 8.10.3390/computers8010004 ↗
42. Kapočiūtė-Dzikienė, J., Damaševičius, R., and Woźniak, M. (2018). Sentiment Analysis of Lithuanian Texts using Deep Learning Methods. Proceedings of the ICIST 2018: Information and Software Technologies, Vilnius, Lithuania, 4–6 October 2018, Springer.10.3390/computers8010004 ↗
43. Sarkar, A., Reddy, S., and Iyengar, R.S. (2019, January 28–30). Zero-shot multilingual sentiment analysis using hierarchical attentive network and BERT. Proceedings of the NLPIR 2019: 2019 the 3rd International Conference on Natural Language Processing and Information Retrieval, Tokushima, Japan. ACM International Conference Proceeding Series.10.1145/3342827.3342850 ↗
44. Xu, Y., Cao, H., Du, W., and Wang, W. (2022). A survey of cross-lingual sentiment analysis: Methodologies, models and evaluations. Data Sci. Eng.10.1007/s41019-022-00187-3 ↗
45. A survey of the state-of-the-art models in neural abstractive text summarization10.1109/ACCESS.2021.3052783 ↗
46. KEAHT: A Knowledge-Enriched Attention-Based Hybrid Transformer Model for Social Sentiment analysis
47. Jebbara, S., and Cimiano, P. (2019, January 2–7). Zero-shot cross-lingual opinion target extraction. Proceedings of the NAACL HLT 2019—2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies 2019, Minneapolis, MN, USA.
48. Deep Learning-Based Methods for Sentiment Analysis on Nepali COVID-19-Related Tweets10.1155/2021/2158184 ↗
49. Ekman, P. (1999). Basic Emotions. Handbook of Cognition and Emotion, John Wiley & Sons, Ltd.. Chapter 3.10.1002/0470013494.ch3 ↗
50. Plutchik, R. (1980). A general psychoevolutionary theory of emotion. Theories of Emotion, Elsevier.10.1016/B978-0-12-558701-3.50007-7 ↗
51. Romera-Paredes, B., and Torr, P.H.S. (2015, January 6–11). An embarrassingly simple approach to zero-shot learning. Proceedings of the 32nd International Conference on Machine Learning, Lille, France.10.1007/978-3-319-50077-5_2 ↗
52. (2022, March 26). Facebook/Bart-Large-Mnli Hugging Face. Available online: https://huggingface.co/facebook/bart-large-mnli.
53. Yin, W., Hay, J., and Roth, D. (2019, January 3–7). Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approach. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP/IJCNLP), Hong Kong, China.10.18653/v1/D19-1404 ↗
54. (2022, March 26). Oigele/Fb_Improved_Zeroshot Hugging Face. Available online: https://huggingface.co/oigele/Fb_improved_zeroshot.
55. (2022, March 26). Digitalepidemiologylab/Covid-Twitter-Bert-V2-Mnli Hugging Face. Available online: https://huggingface.co/digitalepidemiologylab/covid-twitter-bert-v2-mnli.
56. Müller, M., Salathé, M., and Kummervold, P.E. (2020). COVID-Twitter-BERT: A Natural Language Processing Model to Analyse COVID-19 Content on Twitter. arXiv.
57. (2022, March 26). Joeddav/Bart-Large-Mnli-Yahoo-Answers Hugging Face. Available online: https://huggingface.co/joeddav/bart-large-mnli-yahoo-answers.
58. Rosenthal, S., Nakov, P., Kiritchenko, S., Mohammad, S.M., Ritter, A., and Stoyanov, V. (2015, January 4–5). SemEval-2015 task 10: Sentiment analysis in Twitter. Proceedings of the 9th International Workshop on Semantic Evaluation (SemEval), Denver, CO, USA.10.18653/v1/S15-2078 ↗
59. Cross-lingual transfer of sentiment classifiers
60. Peng, S., Cao, L., Zhou, Y., Ouyang, Z., Yang, A., Li, X., and Yu, S. (2021). A survey on deep learning for textual emotion analysis in social networks. Digit. Commun. Netw., in press.
61. Sharma, T., and Kaur, K. (2021). Benchmarking deep learning methods for aspect level sentiment classification. Appl. Sci., 11.10.3390/app112210542 ↗
62. Deep learning based techniques for sentiment analysis: A survey10.31449/inf.v45i7.3674 ↗
63. Research on text sentiment analysis based on neural network and ensemble learning
64. Statistical comparisons of classifiers over multiple data sets
65. Maas, A.L., Daly, R.E., Pham, P.T., Huang, D., Ng, A.Y., and Christopher Potts, C. (2011, January 19–24). Learning Word Vectors for Sentiment analysis. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics (ACL 2011), Portland, OR, USA.
66. Go, A., Bhayani, R., and Huang, L. (2009). Twitter Sentiment Classification Using Distant Supervision, Stanford. CS224N Project Report.
67. Rosenthal, S., Farra, N., and Nakov, P. (2019). SemEval-2017 Task 4: Sentiment analysis in Twitter. arXiv.10.18653/v1/S17-2088 ↗
68. Part-of-speech tagging via deep neural networks for northern-ethiopic languages10.5755/j01.itc.49.4.26808 ↗