Research Article

Aspect category sentiment analysis based on multiple attention mechanisms and pre-trained models

Xiaoan Zhan1,*, Chenxi Shi2, Lianwei Li3, Kangming Xu4, Haotian Zheng5
1. Electrical Engineering, New York University, NY, USA
2. Telecommunication Systems Management, Northeastern University, MA, USA
3. Computer Science, The University of Texas at Arlington, Arlington, USA
4. Computer Science and Engineering, Santa Clara University, CA, USA
5. Electrical & Computer Engineering, New York University, New York, NY, USA

* Corresponding author: [email protected]

Abstract

The rapid rise of e-commerce platforms has changed people's shopping habits, driving the popularity of online shopping. Users express their opinions on products and services by purchasing products on platforms and posting comments. These comment data contain rich user experiences, which are crucial for enterprises to understand user needs and improve product quality. Sentiment analysis of comment text is an important research direction in text mining, focusing on how to extract user evaluations of products from comment data to provide comprehensive, authentic, and accurate product feedback. This paper mainly investigates aspect-based fine-grained sentiment analysis. Because users express multiple sentiments towards different aspects in comments, coarse-grained sentiment analysis cannot accurately capture users' sentiment tendencies. This study utilizes artificial intelligence technology based on deep learning, firstly, it constructs auxiliary training samples to transform aspect sentiment tasks into machine reading comprehension or language inference tasks, using BERT model to extract text features and sentence features from comment data. To guide the model to focus on the features most relevant to the given aspect, a cross-attention mechanism is utilized to cross-focus the features of text with aspect category features. Finally, the sentiment polarity of given aspect category text can be predicted through a forward network. Experimental results on multiple datasets demonstrate that this method outperforms other deep learning models.

Keywords: Deep Learning; Pretrained BERT; Aspect-level Sentiment Analysis; Machine Learning
Published: May 31, 2024
DOI: 10.54254/2755-2721/67/2024MA0055
Volume: ACE Vol.67
pp. 287-292
Download PDF

References

  1. Schouten K, Frasincar F. Survey on aspect-level sentiment analysis[J]. IEEE transactions on knowledge and data engineering, 2015, 28(3): 813-830.
  2. Do H H, Prasad P W C, Maag A, et al. Deep learning for aspect-based sentiment analysis: a comparative review[J]. Expert systems with applications, 2019, 118: 272-299.
  3. Zhou J, Huang J X, Chen Q, et al. Deep learning for aspect-level sentiment classification: survey, vision, and challenges[J]. IEEE access, 2019, 7: 78454-78483.
  4. Nazir A, Rao Y, Wu L, et al. Issues and challenges of aspect-based sentiment analysis: A comprehensive survey[J]. IEEE Transactions on Affective Computing, 2020, 13(2): 845-863.
  5. Liu H, Chatterjee I, Zhou M C, et al. Aspect-based sentiment analysis: A survey of deep learning methods[J]. IEEE Transactions on Computational Social Systems, 2020, 7(6): 1358-1375.
  6. Poria S, Hazarika D, Majumder N, et al. Beneath the tip of the iceberg: Current challenges and new directions in sentiment analysis research[J]. IEEE transactions on affective computing, 2020, 14(1): 108-132.
  7. Mao Y, Shen Y, Yang J, et al. Seq2path: Generating sentiment tuples as paths of a tree[C]//Findings of the Association for Computational Linguistics: ACL 2022. 2022: 2215-2225.
  8. Zhang W, Li X, Deng Y, et al. Towards generative aspect-based sentiment analysis[C]//Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers). 2021: 504-510.
  9. Yan H, Dai J, Qiu X, et al. A unified generative framework for aspect-based sentiment analysis[J]. arXiv preprint arXiv:2106.04300, 2021.
  10. Luo H, Li T, Liu B, et al. DOER: Dual cross-shared RNN for aspect term-polarity co-extraction[J]. arXiv preprint arXiv:1906.01794, 2019.
  11. Wan H, Yang Y, Du J, et al. Target-aspect-sentiment joint detection for aspect-based sentiment analysis[C]//Proceedings of the AAAI conference on artificial intelligence. 2020, 34(05): 9122-9129.
  12. Bu J, Ren L, Zheng S, et al. ASAP: A Chinese review dataset towards aspect category sentiment analysis and rating prediction[J]. arXiv preprint arXiv:2103.06605, 2021.
  13. Cai H, Xia R, Yu J. Aspect-category-opinion-sentiment quadruple extraction with implicit aspects and opinions[C]//Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 2021: 340-350.
  14. Xu L, Chia Y K, Bing L. Learning span-level interactions for aspect sentiment triplet extraction[J]. arXiv preprint arXiv:2107.12214, 2021.
  15. Xu H, Liu B, Shu L, et al. Double embeddings and CNN-based sequence labeling for aspect extraction[J]. arXiv preprint arXiv:1805.04601, 2018.
  16. Wang W, Pan S J, Dahlmeier D, et al. Recursive neural conditional random fields for aspect-based sentiment analysis[J]. arXiv preprint arXiv:1603.06679, 2016.
  17. Zeng B, Yang H, Xu R, et al. Lcf: A local context focus mechanism for aspect-based sentiment classification[J]. Applied Sciences, 2019, 9(16): 3389.