Abstract
Sentiment analysis of movie reviews can provide valuable insights into movie reactions and preferences. To this end, this study proposes the Convolutional Long Short-Term Memory (ConvLSTM) neural network for movie review sentiment analysis. ConvLSTM can efficiently capture sequential information due to its recurrent neural network characteristics. Specifically, the movie review data are first tokenized. Next, the ConvLSTM analysis model is constructed additionally by fine-tuning its parameters to optimize the performance. The ConvLSTM model consists of multiple storage units that retain contextual information, enabling the model to identify long-distance dependencies in the text. The network is trained using a combination of positive and negative movie reviews, and the training process involves adjusting the model weights to minimize the classification error. Experimental results demonstrate the effectiveness of the proposed method in accurately predicting movie review sentiment. It outperforms traditional machine learning methods in sentiment analysis tasks. The findings demonstrate the potential of LSTM-based sentiment analysis in various applications such as movie recommendation systems and market research. This study's findings help advance the development of sentiment analysis techniques and are of great relevance in understanding and catering to audience preferences in the movie industry.
Introduction
Sentiment analysis—the automated process of determining whether a text is positive or negative—is a cornerstone of modern natural language processing (NLP). In the film industry, this is vital for understanding audience reception at scale. However, movie reviews present a unique challenge: they often contain complex linguistic structures where the sentiment isn't just in the words themselves, but in their sequence and context.
Traditional machine learning approaches like Naive Bayes or Support Vector Machines (SVM) often fail to capture these nuances. Even standard deep learning models have inherent trade-offs: Convolutional Neural Networks (CNNs) excel at identifying local features (like specific phrases) but struggle with long-term context, while Recurrent Neural Networks (RNNs) or LSTMs are adept at handling sequences but can be computationally heavy or miss local "spatial" patterns in the text. This research seeks to bridge this gap by creating a hybrid model that captures both local and global textual features simultaneously.
Methodology
The study introduces a hybrid architecture referred to as a ConvLSTM model. In this context, it describes a multi-layer pipeline designed to extract different types of features from the IMDb Movie Reviews dataset.
Data Preprocessing
The raw text undergoes a standard NLP pipeline to ensure consistency:
- HTML tag removal: Cleaning web-scraped artifacts.
- Tokenization: Breaking text into individual words.
- Stop-word removal: Filtering out common words (e.g., "the", "is") that carry little sentiment.
- Lowercase conversion: Normalizing text case.
- Stemming: Reducing words to their root forms.
Model Architecture
The proposed architecture leverages the strengths of both CNNs and LSTMs. As shown in the figure below, the model processes input sequences through several specialized layers.
The pipeline consists of:
- Embedding Layer: Converts words into dense vectors to represent semantic relationships.
- Convolutional Branch: A 1D-convolutional layer with 128 kernels (size 5) identifies local patterns, acting as a sophisticated n-gram detector.
- Pooling and Flattening: A max-pooling layer reduces dimensionality to highlight prominent local features.
- LSTM Branch: Processes the sequence to capture long-term dependencies and the overall "flow" of the review.
- Merged Layer: Concatenates the outputs from the CNN (local features) and the LSTM (sequential features).
- Classification: A final fully connected layer with a Sigmoid activation function outputs a probability score for binary classification (positive or negative).
Results and Discussion
The proposed hybrid model was compared against standard LSTM and attention-based variants. The results indicate that the synergy of "space" (local patterns via CNN) and "time" (sequential dependencies via LSTM) provides a performance edge.
| Model | Average Accuracy |
|---|---|
| Standard LSTM | 87.2% |
| ConvLSTM with Attention | 89.0% |
| Proposed ConvLSTM (Hybrid) | 89.4% |
Interestingly, adding an attention mechanism slightly decreased performance (89.0% vs 89.4%), suggesting that for this specific dataset and hyperparameter configuration, the additional complexity did not yield benefits.
Performance Analysis
The training process was monitored over several epochs. While the model achieves high training accuracy, the validation metrics reveal important characteristics of the learning process.
As seen in the loss and accuracy plots, the model converges quickly. However, a primary limitation identified is overfitting. While training loss continues to decrease and training accuracy approaches 1.0, the validation loss begins to rise after the first few epochs. This indicates the model is beginning to "memorize" the training data rather than learning generalizable patterns, suggesting a need for more robust regularization or a larger dataset.
Conclusion
This study demonstrates that a hybrid ConvLSTM architecture effectively captures the complex sentiment patterns in movie reviews, outperforming standard sequential models. By treating text as both a spatial structure and a temporal sequence, the model achieves a superior accuracy of 89.4% on the IMDb dataset. Future work will explore more sophisticated architectures like Transformers, multi-language support, and the integration of domain-specific metadata to further refine sentiment predictions.
Summary updated