Research Article

Sentiment Analysis of Xiaohongshu Texts Based on the RoBERTa Model

Yidi Xie*
AIEN Institute, Shanghai Ocean University, Shanghai, 201315, China

* Corresponding author: [email protected]

Abstract

This study investigates a novel sentiment analysis model designed for the Xiaohongshu platform, leveraging the RoBERTa model combined with BiLSTM and attention mechanisms. Xiaohongshu, a prominent social commerce platform in China, offers unique challenges for sentiment analysis due to its user-generated content, which is often informal and multi-dimensional. The RoBERTa-BiLSTM-Attention model is introduced to capture complex semantic nuances and enhance the accuracy of sentiment classification. A comparative experiment was conducted to evaluate this model's effectiveness against traditional methods, including Word2vec-LSTM, Word2vec-BiLSTM, BERT-BiLSTM, and BERT-BiLSTM-Attention. Results show that the RoBERTa-BiLSTM-Attention model outperforms these models in terms of accuracy and F1-score, demonstrating its potential to capture and classify sentiment in user-generated content on Xiaohongshu with improved robustness and depth.

Keywords: Sentiment Analysis; RoBERTa; BiLSTM; Attention Mechanism; Xiaohongshu; Social Commerce; Natural Language Processing
Published: December 19, 2024
DOI: 10.54254/2755-2721/2024.18301
Volume: ACE Vol.113
pp. 46-51
Download PDF

References

  1. Lei Zhang, B. Liu. “Sentiment Analysis and Opinion Mining.” Synthesis Lectures on Human Language Technologies(2012).
  2. Jacob Devlin, Ming-Wei Chang et al. “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.” North American Chapter of the Association for Computational Linguistics (2019).
  3. Muhammad Rizwan Rashid Rana, Asif Nawaz et al. “Sentiment Analysis of Product Reviews Using Transformer Enhanced 1D-CNN and BiLSTM.” Cybernetics and Information Technologies(2024).
  4. B. Pang, Lillian Lee et al. “Thumbs up? Sentiment Classification using Machine Learning Techniques.” ArXiv(2002).
  5. A. Mitra. “Sentiment Analysis Using Machine Learning Approaches (Lexicon based on movie review dataset).” Journal of Ubiquitous Computing and Communication Technologies(2020).
  6. Nayeli Hernández, I. Batyrshin et al. “Evaluation of deep learning models for sentiment analysis.” J. Intell. Fuzzy Syst.(2022).
  7. Yue Zhang, Duy-Tin Vo. “Neural Networks for Sentiment Analysis.” Conference on Empirical Methods in Natural Language Processing (2016).
  8. Dr. G. S. N. Murthy, Shanmukha Rao et al. “Text based Sentiment Analysis using LSTM.” International Journal of Engineering Research and (2020).
  9. Alpna Patel, A. Tiwari. “Sentiment Analysis by using Recurrent Neural Network.” Materials Science eJournal (2019).
  10. Faliang Huang, Xuelong Li et al. “Attention-Emotion-Enhanced Convolutional LSTM for Sentiment Analysis.” IEEE Transactions on Neural Networks and Learning Systems(2021).
  11. Jacob Devlin, Ming-Wei Chang et al. “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.” North American Chapter of the Association for Computational Linguistics (2019).
  12. Yinhan Liu, Myle Ott et al. “RoBERTa: A Robustly Optimized BERT Pretraining Approach.” ArXiv (2019).
  13. K. N. Prasanthi, Rallabandi Eswari Madhavi et al. “A Novel Approach for Sentiment Analysis on social media using BERT & ROBERTA Transformer-Based Models.” 2023 IEEE 8th International Conference for Convergence in Technology (I2CT) (2023).
  14. Guixian Xu, Yueting Meng et al. “Sentiment Analysis of Comment Texts Based on BiLSTM.” IEEE Access (2019).
  15. Linkai Luo, Haiqing Yang et al. “EmotionX-DLC: Self-Attentive BiLSTM for Detecting Sequential Emotions in Dialogues.” ArXiv (2018).
  16. Shervin Minaee, Elham Azimi et al. “Deep-Sentiment: Sentiment Analysis Using Ensemble of CNN and Bi-LSTM Models.” ArXiv (2019).
  17. Md Abrar Jahin, Md Sakib et al. “TRABSA: Interpretable Sentiment Analysis of Tweets using Attention-based BiLSTM and Twitter-RoBERTa.” ArXiv (2024).
  18. Spyridon Kardakis, I. Perikos et al. “Examining Attention Mechanisms in Deep Learning Models for Sentiment Analysis.” Applied Sciences (2021).
  19. Wei Meng, Yongqing Wei et al. “Aspect Based Sentiment Analysis with Feature Enhanced Attention CNN-BiLSTM.” IEEE Access (2019).
  20. Huiyu Han, Jin Liu et al. “Attention-Based Memory Network for Text Sentiment Classification.” IEEE Access (2018).
  21. Maite Taboada, Julian Brooke et al. “Lexicon-Based Methods for Sentiment Analysis.” Computational Linguistics (2011).
  22. Minghui Huang, Haoran Xie et al. “Lexicon-Based Sentiment Convolutional Neural Networks for Online Review Analysis.” IEEE Transactions on Affective Computing (2020).