skip to main content
10.1145/3508230.3508231acmotherconferencesArticle/Chapter ViewAbstractPublication PagesnlpirConference Proceedingsconference-collections
research-article

Text Sentiment Analysis based on BERT and Convolutional Neural Networks

Authors Info & Claims
Published:08 March 2022Publication History

ABSTRACT

The rapid development of the network has accelerated the speed of information circulation. Analyzing the emotional tendency contained in the network text is very helpful to tap the needs of users. However, most of the existing sentiment classification models rely on manually labeled text features, resulting in insufficient mining of deep semantic features hidden in the text, and it is difficult to improve the classification performance significantly. This paper presents a text sentiment classification model combining BERT and convolutional neural networks (CNN). The model uses BERT to complete the word embedding of the text, and then uses CNN to learn the deep semantic information about the text, so as mine the emotional tendency towards the text. Through verification on the large movie review dataset, BERT-CNN model can achieve an accuracy of 86.67%, which is significantly better than traditional classification method of textCNN. The results show that the method has good performance in this field.

References

  1. Apoorva Arya, Vishal Shukla, Arvind Negi, and Kapil Gupta. 2020. A Review: Sentiment Analysis and Opinion Mining. In Proceedings of the International Conference on Innovative Computing & Communications (ICICC). University of Delhi, New Delhi, India, Article 32, 6 Pages. http://dx.doi.org/10.2139/ssrn.3602548Google ScholarGoogle ScholarCross RefCross Ref
  2. Ramesh Wadawadagi, and Veerappa Pagi. 2020. Sentiment analysis with deep neural networks: comparative study and performance assessment. Artificial Intelligence Review. 53, (May 2020), 6155–6195. https://doi.org/10.1007/s10462-020-09845-2Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Ying Xia. 2020. Research on statistical machine translation model based on deep neural network. Computing. 102, (March 2020), 643-661. https://link.springer.com/article/10.1007/s00607-019-00752-1Google ScholarGoogle Scholar
  4. Ashima Yadav, and Dinesh Kumar Vishwakarma. 2020. Sentiment analysis using deep learning architectures: a review. Artificial Intelligence Review. 53, (August 2020), 4335–4385. https://link.springer.com/article/10.1007/s10462-019-09794-5Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Distributed Representations of Words and Phrases and their Compositionality. InProceedings of the 26th International Conference on Neural Information Processing Systems. ACM, NY, United States, 3111-3119. https://dl.acm.org/doi/10.5555/2999792.2999959Google ScholarGoogle Scholar
  6. Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global Vectors for Word Representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, Doha, Qatar, 1532–1543. http://dx.doi.org/10.3115/v1/D14-1162Google ScholarGoogle ScholarCross RefCross Ref
  7. MSR Hitesh, Vedhosi Vaibhav, Y.J Abhishek Kalki, Suraj Harsha Kamtam, and Santoshi Kumari. 2019. Real-Time Sentiment Analysis of 2019 Election Tweets using Word2vec and Random Forest Model. In 2019 2nd International Conference on Intelligent Communication and Computational Techniques (ICCT). IEEE, Jaipur, India, 146-151. http://dx.doi.org/10.1109/ICCT46177.2019.8969049Google ScholarGoogle ScholarCross RefCross Ref
  8. Chi Sun, Xipeng Qiu, Yige Xu, and Xuanjing Huang. 2019. How to Fine-Tune BERT for Text Classification? In.China National Conference on Chinese Computational Linguistics CCL 2019: Chinese Computational Linguistics. Springer, Kunming, China,194-206. https://doi.org/10.1007/978-3-030-32381-3_16Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Amit Kumar Sharma, Sandeep Chaurasia, and Devesh Kumar Srivastava. 2020. Sentimental Short Sentences Classification by Using CNN Deep Learning Model with Fine Tuned Word2Vec. Procedia Computer Science. 167, (January 2020), 1139-1147. http://dx.doi.org/10.1016/j.procs.2020.03.416Google ScholarGoogle Scholar
  10. Dongliang Xu, Zhihong Tian, Rufeng Lai, Xiangtao Kong, ZhiyuanTan, and WeiShie. 2020. Deep learning based emotion analysis of microblog texts. Information Fusion. 64, (December 2020), 1-11. https://doi.org/10.1016/j.inffus.2020.06.002Google ScholarGoogle Scholar
  11. Mohd Usama, Belal Ahmad, Enmin Song, M. Shamim Hossain, Mubarak Alrashoud, and Ghulam Muhammad. 2020. Attention-based sentiment analysis using convolutional and recurrent neural network. Future Generation Computer Systems. 113, (December 2020), 571-578. http://dx.doi.org/10.1016/j.future.2020.07.022Google ScholarGoogle Scholar
  12. Zhao A, and Yu Y. 2021. Knowledge-enabled BERT for aspect-based sentiment analysis. Knowledge-Based Systems. 227, (September 2021) , 107220. http://dx.doi.org/10.1016/j.knosys.2021.107220Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Kawin Ethayarajh. 2019. How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddings. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Association for Computational Linguistics, Hong Kong, China, 55-65. http://dx.doi.org/10.18653/v1/D19-1006Google ScholarGoogle Scholar
  14. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Retrieved May 24, 2019 from https://arxiv.org/abs/1810.04805Google ScholarGoogle Scholar
  15. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In 31st Conference on Neural Information Processing Systems (NIPS 2017). Curran Associates Inc, California, USA, 5998-6008. http://dl.acm.org/doi/abs/10.5555/3295222.3295349Google ScholarGoogle Scholar
  16. Yaojie Zhang, Bing Xu, and Tiejun Zhao. 2020. Convolutional multi-head self-attention on memory for aspect sentiment classification. IEEE/CAA Journal of Automatica Sinica. 7, 4 (July 2020), 1038 - 1044. https://doi.org/10.1109/JAS.2020.1003243Google ScholarGoogle ScholarCross RefCross Ref
  17. Jürgen Schmidhuber. 2015. Deep learning in neural networks: An overview. Neural networks. 61, (January 2015), 85-117. https://doi.org/10.1016/j.neunet.2014.09.003Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Jiuxiang Gu, Zhenhua Wang, Jason Kuen, Lianyang Ma, Amir Shahroudy, Bing Shuai, Ting Liu, Xingxing Wang, and Gang Wang. 2018. Recent advances in convolutional neural networks. Pattern Recognition. 77, (May 2018), 354-377. https://doi.org/10.1016/J.PATCOG.2017.10.013Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Other conferences
    NLPIR '21: Proceedings of the 2021 5th International Conference on Natural Language Processing and Information Retrieval
    December 2021
    175 pages
    ISBN:9781450387354
    DOI:10.1145/3508230

    Copyright © 2021 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 8 March 2022

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article
    • Research
    • Refereed limited

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format .

View HTML Format