Journal of Computer Applications ›› 2025, Vol. 45 ›› Issue (12): 3786-3795.DOI: 10.11772/j.issn.1001-9081.2024111712

• Artificial intelligence • Previous Articles     Next Articles

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

Xingchen LYU1,2, Weijun LIN1,2, Hongxing HUANG1,2   

  1. 1.Institute of Agricultural Economics and Information,Guangdong Academy of Agricultural Sciences,Guangzhou Guangdong 510640,China
    2.Key Laboratory of Urban Agriculture in South China,Ministry of Agriculture and Rural Affairs (Guangdong Academy of Agricultural Sciences),Guangzhou Guangdong 510640,China
  • Received:2024-12-06 Revised:2025-04-15 Accepted:2025-04-18 Online:2025-04-24 Published:2025-12-10
  • Contact: Weijun LIN
  • About author:LYU Xingchen, born in 1993, Ph. D., assistant research fellow. Her research interests include data mining, agricultural network public opinion.
    LIN Weijun, born in 1965, M. S., research fellow. His research interests include agricultural informatization.
    HUANG Hongxing, born in 1979, M. S., research fellow. His research interests include agricultural information technology.

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

吕星辰1,2, 林伟君1,2, 黄红星1,2   

  1. 1.广东省农业科学院 农业经济与信息研究所,广州 510640
    2.农业农村部华南都市农业重点实验室(广东省农业科学院),广州 510640
  • 通讯作者: 林伟君
  • 作者简介:吕星辰(1993—),女,湖北襄阳人,助理研究员,博士,主要研究方向:数据挖掘、农业网络舆情
    林伟君(1965—),男,广东广州人,研究员,硕士,主要研究方向:农业信息化
    黄红星(1979—),男,广东梅州人,研究员,硕士,主要研究方向:农业信息技术。
  • 基金资助:
    2024年度广东省哲学社会科学规划项目(GD24XGL021)

Abstract:

To address the issues that the sentiments of review texts in food safety network public opinions are various and depend on the topic and blog information, a Multi-Sentiment analysis model for review texts integrating topics and blogs named TBR-MSAM (Topic Blog Review-Multi-Sentiment Analysis Model) was proposed. Firstly, a Topic Blog Review-Feature Extraction (TBR-FE) module was constructed by using RoBERTa (Robustly optimized BERT (Bidirectional Encoder Representations from Transformers)pretraining approach) and deep learning models, and was used to extract contextual features of topic, blog and review information respectively. Secondly, a Topic Blog Review-Interactive Attention Feature Fusion (TBR-IAFF) module was built to conduct pairwise interactions between topic-review and blog-review to obtain interaction features and allocate weights reasonably, thereby exploring the complex relationships among topics, blogs and reviews. Thirdly, a Topic Blog Review-Cross Feature Fusion (TBR-CFF) module was constructed to conduct in-depth feature fusion on multiple pieces of information, thereby exploring users’ potential sentimental features. Finally, Softmax was used to classify the four sentiment polarities of review texts in food safety network public opinions. Experimental results on three constructed food safety network public opinion datasets show that compared to the optimal baseline model without topic and blog information, TBR-MSAM achieves at least 5.0 and 5.8 percentage points improvements in Macro-F1 and accuracy, respectively; compared to the optimal baseline model with topic and blog information, TBR-MSAM achieves the Macro-F1 and accuracy enhanced by at least 0.2 and 1.1 percentage points, respectively; compared to the optimal baseline model with topic, blog, and review text information, TBR-MSAM achieves the Macro-F1 and accuracy increased by at least 11.7 and 10.0 percentage points, respectively. The above verifies the effectiveness of TBR-MSAM in multi-sentiment classification task for food safety network public opinion.

Key words: food safety network public opinion, multi-sentiment analysis, RoBERTa (Robustly optimized BERT (Bidirectional Encoder Representations from Transformers)pretraining approach), Interactive Attention Network (IAN), attention mechanism, feature fusion

摘要:

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

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

CLC Number: