Enhancing Emotion Classification Through Neural Networks and Data Augmentation
Abstract
Emotion classification is a key task in natural language processing with lots of applications in our daily life.Traditional methods, such as Logistic Regression, struggle to capture the complex semantic and contextual dependencies in informal and diverse text, often leading to suboptimal performance. To address these limitations, we propose a novel approach that combines BERT with BiLSTM networks and utilizes data augmentation techniques. BERT’s pre-trained embeddings contain rich contextual information, while the BiLSTM layer models long-range dependencies within the text. Data augmentation is applied to expand the training dataset, improving the model's generalization and robustness. Experimental results on the ACL IMDB dataset demonstrate that our approach outperforms traditional models, with the BERT + BiLSTM model achieving a testing accuracy of 88%, compared to 82% for BERT alone. This study shows that combining BERT, BiLSTM, and data augmentation significantly enhances the accuracy and robustness of emotion classification models, particularly for complex and informal text.
References
- Joachims, Thorsten. "Text categorization with support vector machines: Learning with many relevant features." European conference on machine learning. Berlin, Heidelberg: Springer Berlin Heidelberg, 1998.
- McCallum, Andrew, and Kamal Nigam. "A comparison of event models for naive bayes text classification." AAAI-98 workshop on learning for text categorization. Vol. 752. No. 1. 1998.
- Quinlan, J. Ross. "Induction of decision trees." Machine learning 1 (1986): 81-106.
- Chen, Yahui. Convolutional neural network for sentence classification. MS thesis. University of Waterloo, 2015.
- Mikolov, Tomas, et al. "Recurrent neural network based language model." Interspeech. Vol. 2. No. 3. 2010.
- Hochreiter, Sepp, and Jürgen Schmidhuber. "Long short-term memory." Neural computation 9.8 (1997): 1735-1780.
- Schuster, Mike, and Kuldip K. Paliwal. "Bidirectional recurrent neural networks." IEEE transactions on Signal Processing 45.11 (1997): 2673-2681.
- Devlin, Jacob, et al. "Bert: Pre-training of deep bidirectional transformers for language understanding." Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers). 2019.
- V. Ovidiu-Mihai, I. Tudor-Alexandru and M. Petrescu, "Using BERT to extract emotions from personal journals," 2022 IEEE 18th International Conference on Intelligent Computer Communication and Processing (ICCP), Cluj-Napoca, Romania, 2022, pp. 89-94, doi: 10.1109/ICCP56966.2022.10053943. keywords: {Emotion recognition; Schedules; Mood; Machine learning; Predictive models; Depression; Data models; BERT; emotion detection; machine learning},
- Mikolov, Tomas, et al. "Distributed representations of words and phrases and their compositionality." Advances in neural information processing systems 26 (2013).
- Pennington, Jeffrey, Richard Socher, and Christopher D. Manning. "Glove: Global vectors for word representation." Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP). 2014.
- Pennington, Jeffrey, Richard Socher, and Christopher D. Manning. "Glove: Global vectors for word representation." Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP). 2014.
- Sajjad, Muhammad, and Soonil Kwon. "Clustering-based speech emotion recognition by incorporating learned features and deep BiLSTM." IEEE access 8 (2020): 79861-79875.
- Al-Omari, Hani, Malak A. Abdullah, and Samira Shaikh. "Emodet2: Emotion detection in english textual dialogue using bert and bilstm models." 2020 11th International Conference on Information and Communication Systems (ICICS). IEEE, 2020.
- Gou, Zhinan, and Yan Li. "Integrating BERT embeddings and BiLSTM for emotion analysis of dialogue." Computational Intelligence and Neuroscience 2023.1 (2023): 6618452.
- Gou, Zhinan, and Yan Li. "Integrating BERT embeddings and BiLSTM for emotion analysis of dialogue." Computational Intelligence and Neuroscience 2023.1 (2023): 6618452.