Sentiment Analysis of Text Reviews Using Lexicon-Enhanced Bert Embedding (LeBERT) Model with Convolutional Neural Network
Source abstract
Abstract
Sentiment analysis has become an important area of research in natural language processing. This technique has a wide range of applications, such as comprehending user preferences in ecommerce feedback portals, politics, and in governance. However, accurate sentiment analysis requires robust text representation techniques that can convert words into precise vectors that represent the input text. There are two categories of text representation techniques: lexicon-based techniques and machine learning-based techniques. From research, both techniques have limitations. For instance, pre-trained word embeddings, such as Word2Vec, Glove, and bidirectional encoder representations from transformers (BERT), generate vectors by considering word distances, similarities, and occurrences ignoring other aspects such as word sentiment orientation. Aiming at such limitations, this paper presents a sentiment classification model (named LeBERT) combining sentiment lexicon, N-grams, BERT, and CNN. In the model, sentiment lexicon, N-grams, and BERT are used to vectorize words selected from a section of the input text. CNN is used as the deep neural network classifier for feature mapping and giving the output sentiment class. The proposed model is evaluated on three public datasets, namely, Amazon products’ reviews, Imbd movies’ reviews, and Yelp restaurants’ reviews datasets. Accuracy, precision, and F-measure are used as the model performance metrics. The experimental results indicate that the proposed LeBERT model outperforms the existing state-of-the-art models, with a F-measure score of 88.73% in binary sentiment classification.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Sentiment Analysis and Opinion Mining · Topic Modeling · Advanced Text Analysis Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Research and Consultancy, Kenya School of Government-Embu Campus, Embu P.O. Box 402-60100, Kenya
Department of Computing, Jomo Kenyatta University of Agriculture & Technology, Nairobi P.O. Box 62000-00200, Kenya
College of Engineering, Carnegie Mellon University Africa, Kigali Innovation City, Bumbogo, Kigali BP 6150, Rwanda
References (41)
Show source-provided references
1. Text Classification Using Novel Term Weighting Scheme-Based Improved TF-IDF for Internet Media Reports
2. Onan, A., and Üniversitesi, I.K. (2021). Ensemble of Classifiers and Term Weighting Schemes for Sentiment Analysis in Turkish. Sci. Res. Commun.10.52460/src.2021.004 ↗
3. An overview on research challenges in opinion mining and sentiment analysis
4. Social media data analytics for business decision making system to competitive analysis10.1016/j.ipm.2021.102751 ↗
5. Rao, L. (2022). Sentiment Analysis of English Text with Multilevel Features. Sci. Program.10.1155/2022/7605125 ↗
6. A feature selection model based on genetic rank aggregation for text sentiment classification10.1177/0165551515613226 ↗
7. Sentiment Analysis: Measuring Opinions10.1016/j.procs.2015.03.159 ↗
8. Mozetič, I., Grčar, M., and Smailović, J. (2016). Multilingual Twitter Sentiment Classification: The Role of Human Annotators. PLoS ONE, 11.10.1371/journal.pone.0155036 ↗
9. Li, B., and Guoyong, Y. (2012, January 27–29). Improvement of TF-IDF Algorithm based on Hadoop Framework. Proceedings of the 2nd International Conference on Computer Application and System Modeling, Taiyuan, China.
10. An Ensemble Classification System for Twitter Sentiment Analysis10.1016/j.procs.2018.05.109 ↗
11. The Impact of Features Extraction on the Sentiment Analysis10.1016/j.procs.2019.05.008 ↗
12. LSTM with sentence representations for document level sentiment classification10.1016/j.neucom.2018.04.045 ↗
13. Lexicon-pointed hybrid N-gram Features Extraction Model (LeNFEM) for sentence level sentiment analysis10.1002/eng2.12374 ↗
14. Sentiment analysis based on improved pre-trained word embeddings10.1016/j.eswa.2018.08.044 ↗
15. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv.
16. Pennington, J., Socher, R., and Manning, C. (2014, January 26–28). GloVe: Global Vectors for Word Representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Association for Computational Linguistics, Doha, Qatar.10.3115/v1/D14-1162 ↗
17. Enriching Word Vectors with Subword Information10.1162/tacl_a_00051 ↗
18. Kenton, J.D.M.W.C., and Toutanova, L.K. (2019, January 2). Bert: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the NaacL-HLT, Minneapolis, Minnesota.
19. Sentimental Short Sentences Classification by Using CNN Deep Learning Model with Fine Tuned Word2Vec10.1016/j.procs.2020.03.416 ↗
20. Dashtipour, K., Gogate, M., Adeel, A., Larijani, H., and Hussain, A. (2021). Sentiment Analysis of Persian Movie Reviews Using Deep Learning. Entropy, 23.10.3390/e23050596 ↗
21. Modelling context with neural networks for recommending idioms in essay writing10.1016/j.neucom.2017.11.005 ↗
22. Sentiment analysis leveraging emotions and word embeddings10.1016/j.eswa.2016.10.043 ↗
23. Baharudin, B., and Khan, A. (2011, January 19–20). Sentiment Classification Using Sentence-level Semantic Orientation of Opinion Terms from Blogs. Proceedings of the 2011 National Postgraduate Conference, Perak, Malaysia.
24. Mudinas, A., Zhang, D., and Levene, M. (2012, January 12). Combining lexicon and learning based approaches for concept-level sentiment analysis. Proceedings of the First International Workshop on Issues of Sentiment Discovery and Opinion Mining, Beijing, China.10.1145/2346676.2346681 ↗
25. Textual Analysis for Online Reviews: A Polymerization Topic Sentiment Model10.1109/ACCESS.2019.2920091 ↗
26. Fotis, A., Dimitrios, T., John, V., and Theodora, V. (April, January 29). Using N-Gram Graphs for Sentiment Analysis: An Extended Study on Twitter. Proceedings of the 2016 IEEE Second International Conference on Big Data Computing Service and Applications (BigDataService), Oxford, UK.
27. An Intelligent Cognitive-Inspired Computing with Big Data Analytics Framework for Sentiment Analysis and Classification10.1016/j.ipm.2021.102758 ↗
28. Enhancing deep learning sentiment analysis with ensemble techniques in social applications10.1016/j.eswa.2017.02.002 ↗
29. Mikolov, T., Sutskever, I., Chen, K., Corrado, G.S., and Dean, J. (2013, January 5–10). Distributed representations of words and phrases and their compositionality. Proceedings of the 26th International Conference on Neural Information Processing Systems, Lake Tahoe, CA, USA.
30. Multimodal sentimental analysis for social media applications: A comprehensive review. WIREs Data Min
31. Prottasha, N.J., Sami, A.A., Murad, S.A., Bairagi, A.K., Masud, M., and Baz, M. (2022). Transfer Learning for Sentiment Analysis Using BERT Based Supervised Fine-Tuning. Sensors, 22.10.3390/s22114157 ↗
32. Jain, P.K., Quamer, W., Saravanan, V., and Pamula, R. (2022). Employing BERT-DCNN with sentic knowledge base for social media sentiment analysis. J. Ambient. Intell. Humaniz. Comput., 1–13.10.1007/s12652-022-03698-z ↗
33. Bianchini, M., Piuri, V., Das, S., and Shaw, R.N. (2022). Advanced Computing and Intelligent Technologies, Springer. Lecture Notes in Networks and Systems.10.1007/978-981-16-2164-2 ↗
34. Kim, Y. (2014, January 26–28). Convolutional Neural Networks for Sentence Classification. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1181 ↗
35. Wang, Y., Huang, M., Zhu, X., and Zhao, L. (2016, January 1–5). Attention-based LSTM for Aspect-level Sentiment Classification. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, Austin, Texas.10.18653/v1/D16-1058 ↗
36. Cross-domain sentiment aware word embeddings for review sentiment analysis10.1007/s13042-020-01175-7 ↗
37. Automatic text summarization of konkani texts using pre-trained word embeddings and deep learning10.11591/ijece.v12i2.pp1990-2000 ↗
38. Hu, Y., Ding, J., Dou, Z., and Chang, H. (2022). Short-Text Classification Detector: A Bert-Based Mental Approach. Comput. Intell. Neurosci.10.1155/2022/8660828 ↗
39. Yang, H. (2022). Network Public Opinion Risk Prediction and Judgment Based on Deep Learning: A Model of Text Sentiment Analysis. Comput. Intell. Neurosci., 2022.10.1155/2022/1221745 ↗
40. Kotzias, D., Denil, M., de Freitas, N., and Smyth, P. (2015, January 15). From Group to Individual Labels Using Deep Features. Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Sydney, Australia.10.1145/2783258.2783380 ↗
41. A novel approach for dimension reduction using word embedding: An enhanced text classification approach