journal article·2021-11-27Open access

Attention-Based CNN and Bi-LSTM Model Based on TF-IDF and GloVe Word Embedding for Sentiment Analysis

Marjan Kamyab, Guohua Liu, Michael Adjeisah

Applied Sciences· Volume 11· Issue 23

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.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Sentiment Analysis and Opinion Mining · Advanced Text Analysis Techniques · Topic Modeling

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer Science and Technology, Donghua University, Shanghai 201620, China

College of Mathematics and Computer Science, Zhejiang Normal University, Jinhua 321004, China

Funding

Innovation and Development of Shanghai Industrial Internet

References (55)

Show source-provided references
1. Deep learning-based sentiment classification of evaluative text based on Multi-feature fusion10.1016/j.ipm.2019.02.018 ↗
2. AI-Skin: Skin disease recognition based on self-learning and wide data collection through a closed-loop framework10.1016/j.inffus.2019.06.005 ↗
3. Tai, K.S., Socher, R., and Manning, C.D. (2015, January 26–31). Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing, Beijing, China.10.3115/v1/P15-1150 ↗
4. Attention pooling-based convolutional neural network for sentence modelling10.1016/j.ins.2016.08.084 ↗
5. Combining attention-based bidirectional gated recurrent neural network and two-dimensional convolutional neural network for document-level sentiment classification10.1016/j.neucom.2019.09.012 ↗
6. Sentiment Classification Algorithm Based on Multi-Modal Social Media Text Information10.1109/ACCESS.2021.3061450 ↗
7. Wang, X., Liu, Y.C., Sun, C.J., Wang, B.X., and Wang, X.L. (2015, January 26–31). Predicting Polarities of Tweets by Composing Word Embeddings with Long Short-Term Memory. Proceedings of the 53rd Annual Meeting of the Association-for-Computational-Linguistics (ACS)/7th International Joint Conference on Natural Language Processing of the Asian-Federation-of-Natural-Language-Processing (IJCNLP), Beijing, China.10.3115/v1/P15-1130 ↗
8. Tweet Stance Detection Using Multi-Kernel Convolution and Attentive LSTM Variants10.1587/transinf.2019EDP7080 ↗
9. Temporal data-driven failure prognostics using BiGRU for optical networks10.1364/JOCN.390727 ↗
10. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv.
11. Song, Y., Wang, J., Jiang, T., Liu, Z., and Rao, Y. (2019). Attentional Encoder Network for Targeted Sentiment Classification. arXiv.10.1007/978-3-030-30490-4_9 ↗
12. Attention-based sentiment analysis using convolutional and recurrent neural network10.1016/j.future.2020.07.022 ↗
13. Rathi, M., Malik, A., Varshney, D., Sharma, R., and Mendiratta, S. (2018, January 2–4). Sentiment Analysis of Tweets Using Machine Learning Approach. Proceedings of the 2018 Eleventh International Conference on Contemporary Computing (IC3), Noida, India.10.1109/IC3.2018.8530517 ↗
14. Assessing product competitive advantages from the perspective of customers by mining user-generated content on social media10.1016/j.dss.2019.113079 ↗
15. Saeed, Z., Ayaz Abbasi, R., and Razzak, I. EveSense: What can you sense from Twitter?. Proceedings of the 42nd European Conference on IR Research, ECIR 2020, Lisbon, Portugal, 14–17 April 2020; Volume 12036 LNCS, Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics).10.1007/978-3-030-45442-5_64 ↗
16. Event Detection in Twitter Stream Using Weighted Dynamic Heartbeat Graph Approach [Application Notes]10.1109/MCI.2019.2919395 ↗
17. Oliveira, N., Cortez, P., and Areal, N. (2014). Automatic creation of stock market lexicons for sentiment analysis using stocktwits data. Proceedings of the 18th International Database Engineering and Applications Symposium, IDEAS 2014, Porto, Portugal, 7–9 July 2014, Association for Computing Machinery.10.1145/2628194.2628235 ↗
18. GAWA-A Feature Selection Method for Hybrid Sentiment Classification10.1109/ACCESS.2020.3030642 ↗
19. SACPC: A framework based on probabilistic linguistic terms for short text sentiment analysis10.1016/j.knosys.2020.105572 ↗
20. A review of natural language processing techniques for opinion mining systems10.1016/j.inffus.2016.10.004 ↗
21. Arun, C., Karthick, S., Selvakumarasamy, S., and Joseph James, S. (2021). Car parking location tracking, routing and occupancy monitoring system using cloud infrastructure. Mater. Today Proc.10.1016/j.matpr.2021.01.449 ↗
22. Klinov, P., and Mouromtsev, D. (2014). Automatic Term Extraction for Sentiment Classification of Dynamically Updated Text Collections into Three Classes. Knowledge Engineering and the Semantic Web, Springer International Publishing.10.1007/978-3-319-11716-4 ↗
23. Chen, X., Tang, W., Xu, H., and Hu, X. (2014, January 25–29). Double LDA: A Sentiment Analysis Model Based on Topic Model. Proceedings of the 2014 10th International Conference on Semantics, Knowledge and Grids, Beijing, China.10.1109/SKG.2014.20 ↗
24. Combine HowNet lexicon to train phrase recursive autoencoder for sentence-level sentiment analysis10.1016/j.neucom.2017.01.079 ↗
25. An empirical convolutional neural network approach for semantic relation classification10.1016/j.neucom.2015.12.091 ↗
26. Sentiment analysis through recurrent variants latterly on convolutional neural network of Twitter10.1016/j.future.2018.12.018 ↗
27. Deep Convolution Neural Networks for Twitter Sentiment Analysis10.1109/ACCESS.2017.2776930 ↗
28. Enhancing deep learning sentiment analysis with ensemble techniques in social applications10.1016/j.eswa.2017.02.002 ↗
29. Content Tree Word Embedding for document representation10.1016/j.eswa.2017.08.021 ↗
30. Fuzzy Bag-of-Words Model for Document Representation10.1109/TFUZZ.2017.2690222 ↗
31. Selecting publication keywords for domain analysis in bibliometrics: A comparison of three methods
32. A domain keyword analysis approach extending Term Frequency-Keyword Active Index with Google Word2Vec model10.1007/s11192-017-2574-9 ↗
33. Deep neural networks using a single neuron: Folded-in-time architecture using feedback-modulated delay loops10.1038/s41467-021-25427-4 ↗
34. Dang, N.C., Moreno-Garcia, M.N., and De la Prieta, F. (2020). Sentiment Analysis Based on Deep Learning: A Comparative Study. Electronics, 9.10.3390/electronics9030483 ↗
35. Deep pyramid convolutional neural networks for text categorization
36. Sentiment analysis based on improved pre-trained word embeddings10.1016/j.eswa.2018.08.044 ↗
37. Dos Santos, C.N., and Gatti, M. (2014, January 23–29). Deep convolutional neural networks for sentiment analysis of short texts. Proceedings of the 25th International Conference on Computational Linguistics, Dublin, Ireland.
38. Wang, J., Yu, L.C., Lai, K.R., and Zhang, X. (2016, January 7–12). Dimensional sentiment analysis using a regional CNN-LSTM model. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, ACL 2016, Berlin, Germany.10.18653/v1/P16-2037 ↗
39. Yoon, J., and Kim, H. (2017, January 27–28). Multi-channel lexicon integrated CNN-BILSTM models for sentiment analysis. Proceedings of the 29th Conference on Computational Linguistics and Speech Processing, ROCLING 2017, Taipei, Taiwan.
40. An ensemble method with sentiment features and clustering support10.1016/j.neucom.2019.08.071 ↗
41. Understanding Emotions in Text Using Deep Learning and Big Data10.1016/j.chb.2018.12.029 ↗
42. Bidirectional LSTM with attention mechanism and convolutional layer for text classification10.1016/j.neucom.2019.01.078 ↗
43. Wen, S., and Li, J. Recurrent convolutional neural network with attention for twitter and yelp sentiment classification arc model for sentiment classification. Proceedings of the 2018 International Conference on Algorithms, Computing and Artificial Intelligence, ACAI 2018, Sanya, China, 21–23 December 2018.10.1145/3302425.3302468 ↗
44. ABCDM: An Attention-based Bidirectional CNN-RNN Deep Model for sentiment analysis10.1016/j.future.2020.08.005 ↗
45. Bidirectional LSTM with self-attention mechanism and multi-channel features for sentiment classification10.1016/j.neucom.2020.01.006 ↗
46. Kumawat, S., Yadav, I., Pahal, N., and Goel, D. (2021, January 28–29). Sentiment Analysis Using Language Models: A Study. Proceedings of the 11th International Conference on Cloud Computing, Data Science and Engineering (Confluence), Noida, India.10.1109/Confluence51648.2021.9377043 ↗
47. Sun, C., Huang, L., and Qiu, X. (2019). Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence. arXiv.
48. Wang, S., Fang, H., Khabsa, M., Mao, H., and Ma, H. (2021). Entailment as Few-Shot Learner. arXiv.
49. A Term Weighted Neural Language Model and Stacked Bidirectional LSTM Based Framework for Sarcasm Identification10.1109/ACCESS.2021.3049734 ↗
50. Refining Word Embeddings Using Intensity Scores for Sentiment Analysis10.1109/TASLP.2017.2788182 ↗
51. Go, A., Bhayani, R., and Huang, L. (2021, October 20). Twitter Sentiment Classification Using Distant Supervision. CS224N Project Report, Stanford. Available online: https://cs.stanford.edu/people/alecmgo/papers/TwitterDistantSupervision09.pdf.
52. Kamyab, M., Tao, R., Mohammadi, M.H., and Rasool, A. Sentiment analysis on Twitter: A text mining approach to the Afghanistan status reviews. Proceedings of the 2018 International Conference on Artificial Intelligence and Virtual Reality, AIVR 2018, Nagoya, Japan, 23–25 November 2018.10.1145/3293663.3293687 ↗
53. Socher, R., Perelygin, A., Wu, J.Y., Chuang, J., Manning, C.D., Ng, A.Y., and Potts, C. Recursive deep models for semantic compositionality over a sentiment treebank. Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, EMNLP 2013, Seattle, WA, USA, 18–21 October 2013.
54. Subba, B., and Kumari, S. (2021). A heterogeneous stacking ensemble based sentiment analysis framework using multiple word embeddings. Comput. Intell., Early Access.10.1111/coin.12478 ↗
55. Yang, Z., Yang, D., Dyer, C., He, X., Smola, A., and Hovy, E. Hierarchical attention networks for document classification. Proceedings of the 15th Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL HLT 2016, San Diego, CA, USA, 12–17 June 2016.10.18653/v1/N16-1174 ↗