Research Article

Sentiment prediction based on neural network

Chen Kuangyu*
City University of Hong Kong, Tat Chee Avenue, Kowloon, Hong Kong SAR

* Corresponding author: [email protected]

Abstract

Recent years have seen a surge in interest in deep learning, and numerous new neural network models have appeared. In this study, we use CNN and LSTM, two popular deep learning models, to predict sentiment. We use the bidirectional model for the LSTM model. We make predictions by integrating the feature vectors of both sides after receiving sentences inputted in the reverse order from both ends. The recurrent neural network layer is replaced with the CNN model, which defines numerous one-dimensional convolution kernels to conduct convolution operations on the input. The two models are assessed and compared based on how well they anticipate and analyze sentence emotion tones. By comparison, we discover that the BiLSTM model's prediction accuracy on the test set is 10% greater than CNN's, despite requiring more training time.

Keywords: Deep learning; sentiment prediction; neural network
Published: May 30, 2023
DOI: 10.54254/2755-2721/5/20230583
Volume: ACE Vol.5
pp. 300-310
Download PDF

References

  1. Zhang, L., Tan, J., Han, D., & Zhu, H. (2017). From machine learning to deep learning: progress in machine intelligence for rational drug discovery. Drug Discovery Today, 22(11), 1680–1685.
  2. Agrawal, A., Lu, J., Antol, S., Mitchell, M., Zitnick, C. L., Parikh, D., & Batra, D. (2016). VQA: Visual Question Answering: www.visualqa.org. International Journal of Computer Vision, 123(1), 4–31.
  3. Yu, Y., Si, X., Hu, C., & Zhang, J. (2019). A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures. Neural Computation, 31(7), 1235–1270.
  4. Pouyanfar, S., Sadiq, S., Yan, Y., Tian, H., Tao, Y., Reyes, M., Shyu, M.-L., Chen, S.-C., & Iyengar, S. S. (2019). A Survey on Deep Learning: Algorithms, Techniques, and Applications. ACM Computing Surveys, 51(5), 1–36.
  5. Tian, K., Shao, M., Wang, Y., Guan, J., & Zhou, S. (2016). Boosting compound-protein interaction prediction by deep learning. Methods (San Diego, Calif.), 110, 64–72.
  6. Kumar, S., & Singh, S. K. (2020). Occluded Thermal Face Recognition Using Bag of CNN (BoCNN). IEEE Signal Processing Letters, 27, 975–979.
  7. Bengio, Y. (2009). Learning deep architectures for AI. Foundations and trends® in Machine Learning, 2(1), 1-127.
  8. Hinton G E, Salakhutdinov R R. Reducing the Dimensionality of Data with Neural Networks[J]. Science, 2006, 313(5786):504-507
  9. Potluri, S., Fasih, A., Vutukuru, L. K., Al Machot, F., & Kyamakya, K. (2011, July). CNN based high performance computing for real time image processing on GPU. In Proceedings of the Joint INDS'11 & ISTET'11 (pp. 1-7). IEEE.
  10. O'Shea, K., & Nash, R. (2015). An introduction to convolutional neural networks. arXiv preprint arXiv:1511.08458.
  11. Barman, P. P., & Boruah, A. (2018). A RNN based Approach for next word prediction in Assamese Phonetic Transcription. Procedia computer science, 143, 117-123.
  12. Hinton G E. Learning Distributed Representations of Concepts[C]. Proceedings of the 8th Annual Conference of the Cognitive Science Society. 1986, 1: 12.
  13. Sundermeyer, M., Schlüter, R., & Ney, H. (2012). LSTM neural networks for language modeling. In Thirteenth annual conference of the international speech communication association.
  14. Ruder, S. (2016). An overview of gradient descent optimization algorithms. arXiv preprint arXiv:1609.04747.
  15. Bottou, L. (2012). Stochastic gradient descent tricks. In Neural networks: Tricks of the trade (pp. 421-436). Springer, Berlin, Heidelberg.