Applied Mathematics and Nonlinear Sciences
Journal license

Journal

Applied Mathematics and Nonlinear Sciences


Volume
& Issue

Volume 7, Issue 1


Published
on

August 20, 2022


Pages

55-68


DOI

Article

A Sentiment Analysis Method Based on Bidirectional Long Short-Term Memory Networks


Authors

Haifei Zhang Affiliation:
School of Computer and Information Engineering, Nantong Institute of Technology, Nantong 226002, Jiangsu, China
, Jian Xu Affiliation:
School of Information Science and Technology, Nantong University, Nantong 226019, Jiangsu, China
, Liting Lei Affiliation:
School of Computer and Information Engineering, Nantong Institute of Technology, Nantong 226002, Jiangsu, China
, Qiu Jianlin Affiliation:
School of Computer and Information Engineering, Nantong Institute of Technology, Nantong 226002, Jiangsu, China
and Riyad Alshalabi Affiliation:
College of Administrative Sciences, Applied Science University-Bahrain, East Al-Ekir, Bahrain


Abstract

Although the traditional recurrent neural network (RNN) model can cover the time information of the whole sentence theoretically, the gradient is dominated by the short-term gradient, and the long-term gradient is very small, which makes it difficult for the model to learn the long-distance information, and thus the effect of RNN on long text sentence recognition is poor. The long short-term memory network (LSTM) introduces the gate mechanism, especially the forgetting gate, which improves the disappearance of the gradient of RNN. Therefore, LSTM can store long text information and remove or increase the ability of information interaction by adding gate structure, which has natural advantages for long text processing. Based on the word vector matrix of GloVe model, on the open-source comment sentiment140 data set, we use the TensorFlow framework to construct the LSTM neural network and divide the data into the training set and test set based on the ratio of 4:1, design and implement the sentiment analysis published by Twitter users based on LSTM model, and then propose the bidirectional LSTM (Bi-LSTM) sentiment analysis method. The experimental results show that the accuracy of bidirectional LSTM is higher than that of unidirectional LSTM in sentiment analysis.


Keywords

Sentiment analysis, deep learning, Bi-LSTM, 68T50


Citation

Zhang, H., Xu, J., Lei, L., Jianlin, Q., & Alshalabi, R. (2022). A sentiment analysis method based on bidirectional long short-term memory networks. Applied Mathematics and Nonlinear Sciences, 7(1), 55–68. https://doi.org/10.2478/amns.2022.1.00015

Published by: Engineering Journals

Engineering Journals Logo