Complexity (Jan 2022)

A Deep Neural Network-Based Approach for Sentiment Analysis of Movie Reviews

  • Kifayat Ullah,
  • Anwar Rashad,
  • Muzammil Khan,
  • Yazeed Ghadi,
  • Hanan Aljuaid,
  • Zubair Nawaz

DOI
https://doi.org/10.1155/2022/5217491
Journal volume & issue
Vol. 2022

Abstract

Read online

The number of comments/reviews for movies is enormous and cannot be processed manually. Therefore, machine learning techniques are used to efficiently process the user’s opinion. This research work proposes a deep neural network with seven layers for movie reviews’ sentiment analysis. The model consists of an input layer called the embedding layer, which represents the dataset as a sequence of numbers called vectors, and two consecutive layers of 1D-CNN (one-dimensional convolutional neural network) for extracting features. A global max-pooling layer is used to reduce dimensions. A dense layer for classification and a dropout layer are also used to reduce overfitting and improve generalization error in the neural network. A fully connected layer is the last layer to predict between two classes. Two movie review datasets are used and widely accepted by the research community. The first dataset contains 25,000 samples, half positive and half negative, whereas the second dataset contains 50,000 specimens of movie reviews. Our neural network model performs sentiment classification among positive and negative movie reviews called binary classification. The model achieves 92% accuracy on both datasets, which is more efficient than traditional machine learning models.