Research Article

Performance analysis of sentiment classification based neural network

Jingyi Wang1,*, Ruijie Xu2
1. Queen’s University, 99 University Ave, Kingston, ON Canada K7L 3N6, Canada
2. University of the Fraser Valley, 33844 King Road, Abbotsford, BC, Canada V2S 7M8, Canada

* Corresponding author: [email protected]

Abstract

Deep learning has more significant advantages for word embedding technology than sentiment analysis. This paper studies the application of deep learning on the word embedding problem in context, mainly discusses the RNN model with Word2Vec and without Word2Vec, then compares and analyzes their performance in the experiment, mainly evaluating the accuracy and test loss of seven models. This paper compares and illustrates the model which gets the different results in experiments, complementing the model and re-running the model, and analyzing the reasons for the difference in the performance of each model. The seven models are a single-layer neural network, multiple-layer (two and three) feed-forward neural networks, Convolutional Neural Network (CNN)- A feedforward neural network, which consists of single or multiple convolutional layers, pooling layers, and a fully connected layer on top, so this model is good at image processing. Long Short Term Memory (LSTM)- A temporal recurrent neural network, the advantage of the model is it could solve the gradient disappearance and explosion problem when it handles the long-sequence problem. Bi-directional Long Short Term Memory (Bi-LSTM)-Composed of forwarding LSTM and backward LSTM, it is very common for sequence labelling tasks that are related to the top and bottom, which are often used to model context information in NLP. Bi-directional Encoder Representation from Transformers (BERT)- A bidirectional language model. Finally, this paper analyses and evaluates these models with a specific illustration and research.

Keywords: Deep Learning; Sentiment classification; Classification; Word embedding; Machine Learning.
Published: May 31, 2023
DOI: 10.54254/2755-2721/5/20230633
Volume: ACE Vol.5
pp. 513-518
Download PDF

References

  1. F. Poecze, C. Ebster, and C. Strauss, “Social media metrics and sentiment analysis to evaluate the effectiveness of social media posts,” Procedia Computer Science, vol. 130, pp. 660–666, 2018.
  2. M. Thomas and L. C.A, “Sentimental analysis using recurrent neural network,” International Journal of Engineering & Technology, vol. 7, no. 2.27, p. 88, 2018.
  3. S. Sukheja, S. Chopra, and M. Vijayalakshmi, “Sentiment analysis using Deep Learning – A Survey,” 2020 International Conference on Computer Science, Engineering and Applications (ICCSEA), 2020.
  4. K. Cho, B. van Merrienboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio, “Learning phrase representations using RNN encoder–decoder for statistical machine translation,” Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014.
  5. X. Rong, “[PDF] word2vec parameter learning explained: Semantic scholar,” undefined, 01-Jan-1970. [Online]. Available: https://www.semanticscholar.org/paper/word2vec-Parameter-Learning-Explained-Rong/940e8c477f3e7ddb1d3aa2f216a38c8f9486e544. [Accessed: 01-Nov-2022].
  6. Q. Zeng, X. Zhao, X. Hu, H. Duan, Z. Zhao, and C. Li, “Learning emotional word embeddings for sentiment analysis,” Journal of Intelligent & Fuzzy Systems, vol. 40, no. 5, pp. 9515–9527, 2021.
  7. M. Arora and V. Kansal, “Character level embedding with deep convolutional neural network for text normalization of unstructured data for Twitter sentiment analysis,” Social Network Analysis and Mining, vol. 9, no. 1, 2019.
  8. N. Garg, L. Schiebinger, D. Jurafsky, and J. Zou, “Word embeddings quantify 100 years of gender and ethnic stereotypes,” Proceedings of the National Academy of Sciences, vol. 115, no. 16, 2018.
  9. W. zhang, S. Jiang, S. Zhao, K. Hou, Y. Liu, and L. Zhang, “A Bert-BILSTM-CRF model for Chinese Electronic Medical Records named entity recognition,” 2019 12th International Conference on Intelligent Computation Technology and Automation (ICICTA), 2019.
  10. Z. Dai, X. Wang, P. Ni, Y. Li, G. Li, and X. Bai, “Named entity recognition using Bert BiLSTM CRF for Chinese Electronic Health Records,” 2019 12th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), 2019.
  11. Q. Zhang, Y. Sun, L. Zhang, Y. Jiao, and Y. Tian, “Named entity recognition method in health preserving field based on bert,” Procedia Computer Science, vol. 183, pp. 212–220, 2021.