Attention-Based CNN and Bi-LSTM Model Based on TF-IDF and GloVe Word Embedding for Sentiment Analysis
Open Access
- 27 November 2021
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 11 (23) , 11255
Abstract
Sentiment analysis (SA) detects people’s opinions from text engaging natural language processing (NLP) techniques. Recent research has shown that deep learning models, i.e., Convolutional Neural Network (CNN), Recurrent Neural Network (RNN), and Transformer-based provide promising results for recognizing sentiment. Nonetheless, CNN has the advantage of extracting high-level features by using convolutional and max-pooling layers; it cannot efficiently learn a sequence of correlations. At the same time, Bidirectional RNN uses two RNN directions to improve extracting long-term dependencies. However, it cannot extract local features in parallel, and Transformer-based like Bidirectional Encoder Representations from Transformers (BERT) are the computational resources needed to fine-tune, facing an overfitting problem on small datasets. This paper proposes a novel attention-based model that utilizes CNNs with LSTM (named ACL-SA). First, it applies a preprocessor to enhance the data quality and employ term frequency-inverse document frequency (TF-IDF) feature weighting and pre-trained Glove word embedding approaches to extract meaningful information from textual data. In addition, it utilizes CNN’s max-pooling to extract contextual features and reduce feature dimensionality. Moreover, it uses an integrated bidirectional LSTM to capture long-term dependencies. Furthermore, it applies the attention mechanism at the CNN’s output layer to emphasize each word’s attention level. To avoid overfitting, the Guasiannoise and GuasianDroupout are adopted as regularization. The model’s robustness is evaluated on four English standard datasets, i.e., Sentiment140, US-airline, Sentiment140-MV, SA4A with various performance matrices, and compared efficiency with existing baseline models and approaches. The experiment results show that the proposed method significantly outperforms the state-of-the-art models.Keywords
Funding Information
- Innovation and Development of Shanghai Industrial Internet (XX-GYHL-01-19-2527)
This publication has 48 references indexed in Scilit:
- Enhancing deep learning sentiment analysis with ensemble techniques in social applicationsExpert Systems with Applications, 2017
- A review of natural language processing techniques for opinion mining systemsInformation Fusion, 2017
- Combine HowNet lexicon to train phrase recursive autoencoder for sentence-level sentiment analysisNeurocomputing, 2017
- Fuzzy Bag-of-Words Model for Document RepresentationIEEE Transactions on Fuzzy Systems, 2017
- Deep Pyramid Convolutional Neural Networks for Text Categorization2017
- Attention pooling-based convolutional neural network for sentence modellingInformation Sciences, 2016
- An empirical convolutional neural network approach for semantic relation classificationNeurocomputing, 2016
- Selecting publication keywords for domain analysis in bibliometrics: A comparison of three methodsJournal of Informetrics, 2016
- Dimensional Sentiment Analysis Using a Regional CNN-LSTM Model2016
- Automatic creation of stock market lexicons for sentiment analysis using StockTwits data2014