Research Article

Movie sentiment analysis based on Long Short-Term Memory Network

Siyao Li1, Rui Qin2,*, Zijian Zhou3
1. Harbin Engineering University
2. Guangdong University of Technology
3. Central South University

* Corresponding author: [email protected]

Abstract

An important task in the study of Natural Language Processing (NLP) is the analysis of movie reviews. It finishes the task of classifying movie review texts into sentiment, such as positive, negative or neutral sentiment. Previous works mainly follow the pipeline of LSTM (Long Short-Term Memory Network). The network model is a variant of Recurrent Neural Network (RNN) and particularly suitable for processing natural language texts. Though existing LSTM-based works have improved the performance significantly, we argue that most of them deal with the problem of analyzing the sentiment of movie reviews while ignore analyze the model performance in different application scenarios, such as different lengths of the reviews and the frequency of sentiment adverbs in the reviews. To alleviate the above issue, in this paper, we constructed a simple LSTM model containing an embedding layer, a batch normalization layer, a dropout layer, a one-dimensional convolutional layer, a maximal pooling layer, a bi-directional LSTM layer and a fully connected layer. We used the existing IMDB movie review dataset to train the model, and selected two research scenarios of movie review length and frequency of occurrence of sentiment adverbs to test the model, respectively. From the experimental results, we proposed a model for the scenarios in which the LSTM model handles the problem of sentiment analysis with respect to the dataset construction, model stability and generalization ability, text fragment processing, data preprocessing and feature extraction, model optimization and improvement.

Keywords: Sentiment Analysis; LSTM; Movie Review; Different Application Scenarios
Published: February 7, 2024
DOI: 10.54254/2755-2721/38/20230524
Volume: ACE Vol.38
pp. 16-25
Download PDF

References

  1. Ullah K, Rashad A, Khan M, Ghadi Y, Aljuaid H, Nawaz Z. A Deep Neural Network-Based Approach for Sentiment Analysis of Movie Reviews. Complexity. 2022;2022. doi:https://doi.org/10.1155/2022/5217491
  2. Chen, C., Xu, B., Yang, J. H., & Liu, M. (2022). Sentiment analysis of animated film reviews using intelligent machine learning. Computational Intelligence and Neuroscience, 2022.
  3. Ghosh, S., & Ahammed, M. T. (2022). Effects of sentiment analysis on feedback loops between different types of movies. Journal of Media, Culture and Communication (JMCC) ISSN: 2799-1245, 2(02), 14-20.
  4. L. Zhang, M. Wang, M. Liu and H. Li, "Sentiment Analysis of Movie Reviews Based on LSTM-Adaboost," 2022 IEEE 5th Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC), Chongqing, China, 2022, pp. 186-190, doi: 10.1109/IMCEC55388.2022.10019969.
  5. M. Mishra and A. Patil, "Sentiment Prediction of IMDb Movie Reviews Using CNN-LSTM Approach," 2023 International Conference on Control, Communication and Computing (ICCC), Thiruvananthapuram, India, 2023, pp. 1-6, doi: 10.1109/ICCC57789.2023.10165155.
  6. S. M. Qaisar, "Sentiment Analysis of IMDb Movie Reviews Using Long Short-Term Memory," 2020 2nd International Conference on Computer and Information Sciences (ICCIS), Sakaka, Saudi Arabia, 2020, pp. 1-4, doi: 10.1109/ICCIS49240.2020.9257657.
  7. Rehman, A.U., Malik, A.K., Raza, B. et al. A Hybrid CNN-LSTM Model for Improving Accuracy of Movie Reviews Sentiment Analysis. Multimed Tools Appl 78, 26597–26613 (2019). https://doi.org/10.1007/s11042-019-07788-7 .
  8. Ranjith, V., Barick, R., Pallavi, C.V., Sandesh, S., Raksha, R. (2023). Sentiment Enhanced Smart Movie Recommendation System. In: Shakya, S., Balas, V.E., Haoxiang, W. (eds) Proceedings of Third International Conference on Sustainable Expert Systems . Lecture Notes in Networks and Systems, vol 587. Springer, Singapore. https://doi.org/10.1007/978-981-19-7874-6_4.
  9. S. Namitha, P. Sanjan, N. C. Reddy, Y. Srikar, H. Shanmugasundaram and B. P. Andraju, "Sentiment Analysis: Current State and Future Research Perspectives," 2023 7th International Conference on Intelligent Computing and Control Systems (ICICCS), Madurai, India, 2023, pp. 1115-1119, doi: 10.1109/ICICCS56967.2023.10142318.
  10. Rameshwer Singh, Rajeshwar Singh, Applications of sentiment analysis and machine learning techniques in disease outbreak prediction – A review, Materials Today: Proceedings,Volume 81, Part 2, 2023, Pages 1006-1011, ISSN 2214-7853, https://doi.org/10.1016/j.matpr.2021.04.356. (https://www.sciencedirect.com/science/article/pii/S2214785321032764)
  11. H. Ge, S. Zheng and Q. Wang, "Based BERT-BiLSTM-ATT Model of Commodity Commentary on The Emotional Tendency Analysis," 2021 IEEE 4th International Conference on Big Data and Artificial Intelligence (BDAI), Qingdao, China, 2021, pp. 130-133, doi: 10.1109/BDAI52447.2021.9515273.