Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-05T14:22:10.760Z Has data issue: false hasContentIssue false

Hasn: A hierarchical attention-guided network for robust sentiment analysis of movie reviews

Published online by Cambridge University Press:  01 October 2026

Kondaveti Raja*
Affiliation:
Department of Computer Science and Engineering, Gandhi Institute of Engineering and Technology University, India
Bhramara Bar Biswal
Affiliation:
Department of Computer Science and Engineering, Gandhi Institute of Engineering and Technology University, India
R. V. V. S. V. Prasad
Affiliation:
Department of Information Technology, Swarnandra College of Engineering and Technology, India
*
Corresponding author: Kondaveti Raja; Email: raja.kondaveti@giet.edu
Rights & Permissions [Opens in a new window]

Abstract

Sentimental analysis (SA) of movie reviews has become an essential means of supporting audiences, filmmakers, and investors to facilitate data-driven marketing, support audience engagement, and maximize audience development returns. Nevertheless, current SA models are yet to overcome potentially daunting problems such as noisy data, ambiguity of language, limited handling of negations, and a loss of rich semantic information during mirror preprocessing that ultimately decreases classification performance. To overcome this hurdle, a unique two-stage strategy entitled Hierarchical Attention-Guided Sentiment Network (HASN) is proposed that enables reliable and interpretable sentiment predictions. The first stage includes a clearly defined preprocessing pipeline of the IMDb dataset that features text cleaning, lemmatizing, removing stop words, negation, TF-IDF filtering of low-frequency terms, and lastly, Word2Vec embeddings, which create semantically consistent and contextually rich representations of potential inputs. The second stage integrates a tri-stream attention recurrent extractor (TARE), which reconstructs and merges previously learned outputs with the learned syntactic and semantic contexts with the benefits of stacked Bi-LSTMs, combines learned syntactic and semantic contexts with multi-head attention to identify the tokens that drive sentiment, and ends with a residual-normalized GRU (ResNorm-GRU), which sequentially refines the sequential process of intake. The attentive conditional random field (Attn-CRF) serves as a classifier by boosting coherence in label predictions through attention weighting with modeling of the sequential dependencies. The experiments with the IMDb dataset demonstrated that the best results detected were the following: 98.09, 98.47, 97.70, and 98.08%. In summary, the HASN framework is a precise, scalable, and interpretable model for analyzing sentiments in movie reviews.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Table 1. Overview of literature reviewsTable 1 long description.

Figure 1

Figure 1. Block diagram of the proposed methodology.

Figure 2

Table 2. Dataset characteristicsTable 2 long description.

Figure 3

Table 3. Example datasetTable 3 long description.

Figure 4

Figure 2. Structure of LSTM.

Figure 5

Figure 3. Structure of Bi-LSTM.

Figure 6

Figure 4. Figure 4 long description.Structure of stacked Bi-LSTM.

Figure 7

Figure 5. Structure of the multi-head attention mechanism.

Figure 8

Algorithm 1. Attentive conditional random fieldAlgorithm 1 long description.

Figure 9

Table 4. Hyperparameter configurationTable 4 long description.

Figure 10

Table 5. 5-fold cross validationTable 5 long description.

Figure 11

Figure 6. Training and validation accuracy of the proposed methodology.

Figure 12

Figure 7. Training and validation loss of the proposed methodology.

Figure 13

Table 6. Overall performance metricsTable 6 long description.

Figure 14

Figure 8. Confusion matrix.

Figure 15

Figure 9. ROC curve.

Figure 16

Figure 10. Accuracy comparison with existing classifiers.

Figure 17

Figure 11. Precision comparison with existing classifiers.

Figure 18

Figure 12. Recall comparison with existing classifiers.

Figure 19

Figure 13. F1-score comparison with existing classifiers.

Figure 20

Table 7. Overall comparison for proposed methodologyTable 7 long description.

Figure 21

Table 8. Ablation ExperimentTable 8 long description.