IET Control Theory & Applications (Nov 2023)

Sentiment analysis and research based on two‐channel parallel hybrid neural network model with attention mechanism

  • Na Chen,
  • Yanqiu Sun,
  • Yan Yan

DOI
https://doi.org/10.1049/cth2.12463
Journal volume & issue
Vol. 17, no. 17
pp. 2259 – 2267

Abstract

Read online

Abstract Concerning the problems that the traditional Convolutional Neural Network (CNN) ignores contextual semantic information, and the traditional Recurrent Neural Network (RNN) has information memory loss and vanishing gradient, this paper proposes a Bi‐directional Encoder Representations from Transformers (BERT)‐based dual‐channel parallel hybrid neural network model for text sentiment analysis. The BERT model is used to convert text into word vectors; the dual‐channel parallel hybrid neural network model constructed by CNN and Bi‐directional Long Short‐Term Memory (BiLSTM) extracts local and global semantic features of the text, which can obtain more comprehensive sentiment features; the attention mechanism enables some words to get more attention that highlights important words and improves the model's sentiment classification ability. Finally, the dual‐channel output features are fused for sentiment classification. The experimental results on the hotel review datasets show that the Accuracy of the proposed model in sentiment classification reaches 92.35% and the F1 score reaches 91.59%.

Keywords