《计算机应用》唯一官方网站

• •    下一篇

基于话题博文的食品安全网络舆情评论文本多情感分析

吕星辰,林伟君,黄红星   

  1. 广东省农业科学院农业经济与信息研究所
  • 收稿日期:2024-12-06 修回日期:2025-04-15 接受日期:2025-04-18 发布日期:2025-04-24 出版日期:2025-04-24
  • 通讯作者: 林伟君
  • 基金资助:
    广东省哲学社会科学

Multi-sentiment analysis of network public opinion and review text in food safety based on topic and blog

  • Received:2024-12-06 Revised:2025-04-15 Accepted:2025-04-18 Online:2025-04-24 Published:2025-04-24

摘要: 为解决食品安全网络舆情中评论文本情感复杂多样,且依赖讨论的话题和博文信息的问题,提出融合话题博文信息的评论文本多情感分析模型(TBR-MSAM)。首先,使用RoBERTa和深度学习模型构建话题博文评论特征提取模块(TBR-FE)分别对话题、博文和评论信息进行上下文特征提取;其次,构建话题博文评论的交互注意力特征融合模块(TBR-IAFF)对话题-评论和博文-评论进行两两交互获得交互特征,并进行权重合理分配,挖掘话题、博文和评论之间的复杂关系;接着,构建话题博文评论的交叉特征融合模块(TBR-CFF)对多个信息进行深层次特征融合,挖掘用户潜在的情感特征;最后,通过softmax对食品安全网络舆情中评论文本的四种情感极性进行分类。在本文构建的3个食品安全网络舆情数据集上的实验结果表明,相较于无话题博文信息的最优基线模型,TBR-MSAM的Macro-F1和分类准确率分别至少提升了5.0%和5.8%,相较于融合话题博文信息的最优基线模型,Macro-F1和准确率分别至少提升0.2%和1.1%,相较于同时带有话题博文的最优基线模型,模型Macro-F1和准确率分别至少提升11.7%和10.0%,验证了本文构建的TBR-MSAM模型在食品安全网络舆情的多情感分类任务中的有效性。

关键词: 食品安全网络舆情, 多情感分析, RoBERTa, 交互注意力网络, 注意力机制, 特征融合

Abstract: To address the issues that the sentiment of comment texts in food safety network public opinions is various and depends on the topics or blog, a Multiple Sentiment Analysis Model for Comment Texts Integrating Topic and Blog Post Information (TBR-MSAM) was proposed. Firstly, the Topic Blog Review Feature Extraction Module (TBR-FE) was constructed by using RoBERTa and deep learning models, with which the contextual features of topic, blog post and review information were respectively extracted. Secondly, the Interactive Attention Feature Fusion Module for Topic Blog Review (TBR-IAFF) was built to conduct pairwise interactions between topic-review and blog-review to obtain interaction features, allocate weights reasonably and explore the complex relationships among topics, blog posts and reviews. Next, a Cross Feature Fusion Module for Topic Blog Review (TBR-CFF) was constructed to conduct in-depth feature fusion on multiple pieces of information and mine users' potential emotional features. Finally, softmax was used to classify the four emotional polarities of review texts in food safety network public opinions. The experimental results on the three food safety network public opinion datasets constructed show that, compared to the optimal baseline model without topic and blog information, the TBR-MSAM achieved at least 5.0% and 5.8% improvement in Macro-F1 and accuracy, compared to the optimal baseline model with cross-fused topic and blog information, the Macro-F1 and accuracy were enhanced by at least 0.2% and 1.1%, compared to the optimal baseline model incorporating topic and blog, the Macro-F1 and accuracy were increased by at least 11.7% and 10.0%. These findings verified the effectiveness of the proposed TBR-MSAM model in the multi-sentiment classification task for food safety network public opinion.

Key words: food safety network public opinion, multi-sentiment analysis, RoBERTa, interactive attention network, attention mechanism, feature fusion

中图分类号: