Text sentiment analysis and classification based on bidirectional Gated Recurrent Units (GRUs) model
Abstract
This paper explores the importance of text sentiment analysis and classification in the field of natural language processing, and proposes a new approach to sentiment analysis and classification based on the bidirectional gated recurrent units (GRUs) model. The study firstly analyses the word cloud model of the text with six sentiment labels, and then carries out data preprocessing, including the steps of removing special symbols, punctuation marks, numbers, stop words and non-alphabetic parts. Subsequently, the data set is divided into training set and test set, and through model training and testing, it is found that the accuracy of the validation set is increased from 85% to 93% with training, which is an increase of 8%; at the same time, the loss value of the validation set decreases from 0.7 to 0.1 and tends to be stable, and the model is gradually close to the actual value, which can effectively classify the text emotions. The confusion matrix shows that the accuracy of the model on the test set reaches 94.8%, the precision is 95.9%, the recall is 99.1%, and the F1 score is 97.4%, which proves that the model has good generalisation ability and classification effect. Overall, the study demonstrated an effective method for text sentiment analysis and classification with satisfactory results.
References
- Peng, Qucheng, et al. "RAIN: regularization on input and network for black-box domain adaptation." Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, 2023.
- Liu, Ziyu, et al. "Named Entity Recognition and Named Entity on Esports Contents." 2020 15th Conference on Computer Science and Information Systems (FedCSIS), IEEE, 2020.
- Chen, Tin-Chih Toly, Hsin-Chieh Wu, and Min-Chi Chiu. "A deep neural network with modified random forest incremental interpretation approach for diagnosing diabetes in smart healthcare." Applied Soft Computing 152 (2024): 111183.
- Zhao, Jinman, et al. "Structural Realization with GGNNs." Proceedings of the Fifteenth Workshop on Graph-Based Methods for Natural Language Processing (TextGraphs-15), edited by Alexander Panchenko et al., Association for Computational Linguistics, 2021, pp. 115–124. https://doi.org/10.18653/v1/2021.textgraphs-1.11.
- Al-Tameemi, Israa K. Salman, et al. "Interpretable multimodal sentiment classification using deep multi-view attentive network of image and text data." IEEE Access (2023).
- Haque, Rezaul, et al. "Multi-class sentiment classification on Bengali social media comments using machine learning." International journal of cognitive computing in engineering 4 (2023): 21-35.
- Zou, Haochen, and Zitao Wang. "A semi-supervised short text sentiment classification method based on improved Bert model from unlabelled data." Journal of Big Data 10.1 (2023): 35.
- Zhang, **angsen, et al. "Text sentiment classification based on BERT embedding and sliced multi-head self-attention Bi-GRU." Sensors 23.3 (2023): 1481.
- Qorich, Mohammed, and Rajae El Ouazzani. "Text sentiment classification of Amazon reviews using word embeddings and convolutional neural networks." The Journal of Supercomputing 79.10 (2023): 11029-11054.
- Khan, Jawad, et al. "Sentiment and context-aware hybrid DNN with attention for text sentiment classification." IEEE Access 11 (2023): 28162-28179.