[1]吴加辉,加云岗,王志晓,等.基于深度学习的微博疫情舆情文本情感分析[J].计算机技术与发展,2024,34(07):175-183.[doi:10.20165/j.cnki.ISSN1673-629X.2024.0087]
 WU Jia-hui,JIA Yun-gang,WANG Zhi-xiao,et al.Sentiment Analysis of Weibo Epidemic Public Opinion Text Based on Deep Learning[J].,2024,34(07):175-183.[doi:10.20165/j.cnki.ISSN1673-629X.2024.0087]
点击复制

基于深度学习的微博疫情舆情文本情感分析

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
34
期数:
2024年07期
页码:
175-183
栏目:
人工智能
出版日期:
2024-07-10

文章信息/Info

Title:
Sentiment Analysis of Weibo Epidemic Public Opinion Text Based on Deep Learning
文章编号:
1673-629X(2024)07-0175-09
作者:
吴加辉1加云岗1王志晓2张九龙2闫文耀3高昂4车少鹏5
1. 西安工程大学 计算机科学学院,陕西 西安 710600; 2. 西安理工大学 计算机科学与工程学院,陕西 西安 710048; 3. 延安大学 西安创新学院,陕西 西安 710100; 4. 国家卫星气象中心,北京 100080; 5. 清华大学 新闻与传播学院,北京 100084
Author(s):
WU Jia-hui1JIA Yun-gang1WANG Zhi-xiao2ZHANG Jiu-long2YAN Wen-yao3GAO Ang4CHE Shao-peng5
1. School of Computer Science,Xi'an Polytechnic University,Xi'an 710600,China; 2. School of Computer Science and Engineering,Xi'an University of Technology,Xi'an 710048,China; 3. School of Xi'an Innovation,Yan'an University,Xi'an 710100,China; 4. National Satellite Meteorological Centre,Beijing 100080,China; 5. School of Journalism and Communication,Tsinghua University,Beijing 100084,China
关键词:
RoBERTa情感分析特征提取词向量注意力机制BiGRU
Keywords:
RoBERTasentiment analysisfeature extractionword vectorsattention mechanismBiGRU
分类号:
TP391
DOI:
10.20165/j.cnki.ISSN1673-629X.2024.0087
摘要:
舆论情感分析重点研究公众对于公共事件的情感偏向,其中涉及公共卫生事件的舆论会直接影响社会稳定,所以对于微博的情感分析尤为重要。 该文采取有关疫情方面的文本数据集,使用 RoBERTa 和 BiGRU 以及双层 Attention 结合的 RoBERTa-BDA(RoBERTa-BiGRU-Double Attention)模型作为整体结构。 首先使用 RoBERTa 获取了蕴含文本上下文信息的词嵌入表示,其次使用 BiGRU 得到字符表示,然后使用注意力机制计算各个字符对于全局的影响,再使用 BiGRU得到句子表示,最后使用 Attention 机制计算出每个字符对于其所在的句子的权重占比,得出全文的文本表示,并通过softmax 函数对其进行情感分析。 为了验证 RoBERTa-BDA 模型的有效性,设计三种实验,在不同词向量对比实验中,RoBERTa 对比 BERT 中 Macro F1 和 Micro F1 值提高了 0. 42 百分点和 0. 84 百分点,在不同特征提取层模型对比实验中,BiGRU-Double Attention 对比 BiGRU-Attention 提高了 3. 62 百分点和 1. 34 百分点,在跨平台对比实验中,RoBERTa-BDA 在贴吧平台的 Macro F1 和 Micro F1 对比微博平台仅仅降低 1. 29 百分点 和 2. 88 百分点。
Abstract:
Public opinion sentiment analysis focuses on studying the public's emotional bias towards public events. Public opinions involving public health events will directly affect social stability,so sentiment analysis on Weibo is particularly important. We take text data sets related to the epidemic,and use RoBERTa,BiGRU,and the RoBERTa-BDA (RoBERTa-BiGRU-Double Attention) model combined with double-layer Attention as the overall structure. Firstly,RoBERTa is used to obtain word embedding representation of textual context information. Secondly,BiGRU is used to obtain the character representation,then the attention mechanism is used to calculate the global impact of each character, and then BiGRU is used to obtain the sentence representation. Finally, the Attention mechanism is used to calculate the weight ratio of each character to the sentence in which it is located,and the text representation of the full text is obtained, and the sentiment analysis is carried out through softmax function. In order to verify the effectiveness of the RoBERTa-BDA model,three experiments were designed. In the comparison experiment of different word vectors,the Macro F1 and Micro F1 values in RoBERTa compared with BERT increased by 0. 42 percentage points and 0. 84 percentage points,respectively,in different feature extraction layers. In the model comparison experiment,BiGRU-Double Attention increased by 3. 62 percentage points and 1. 34 percentage points compared to BiGRU - Attention. In the cross - platform comparison experiment, RoBERTa - BDA only decreased by 1. 29 percentage points and 2. 88 percentage points on the Tieba platform Macro F1 and Micro F1 compared to the Weibo platform.

相似文献/References:

[1]李妍坊,许歆艺,刘功申. 面向情感倾向性识别的特征分析研究[J].计算机技术与发展,2014,24(09):33.
 LI Yan-fang,XU Xin-yi,LIU Gong-shen. Research on Feature Analysis Oriented Text Sentiment Identification[J].,2014,24(07):33.
[2]苏小英[][],孟环建[]. 基于神经网络的微博情感分析[J].计算机技术与发展,2015,25(12):161.
 SU Xiao-ying[][],MENG Huan-jian[]. Sentiment Analysis of Micro-blog Based on Neural Networks[J].,2015,25(07):161.
[3]陈耀东,彭蝶飞.一种面向旅游评论的情感特征识别方法[J].计算机技术与发展,2018,28(11):107.[doi:10.3969/ j. issn.1673-629X.2018.11.24]
 CHEN Yao-dong,PENG Die-fei.A Recognition Method of Sentiment Features for Tour Reviews[J].,2018,28(07):107.[doi:10.3969/ j. issn.1673-629X.2018.11.24]
[4]杨立月,王移芝.微博情感分析的情感词典构造及分析方法研究[J].计算机技术与发展,2019,29(02):13.[doi:10.3969/j.issn.1673-629X.2019.02.003]
 YANG Liyue,WANG Yizhi.Research on Construction and Analysis of Emotion Dictionary in Emotion Analysis of Micro-blog[J].,2019,29(07):13.[doi:10.3969/j.issn.1673-629X.2019.02.003]
[5]唐 莉,刘 臣.基于 CRF 和 HITS 算法的特征情感对提取[J].计算机技术与发展,2019,29(07):71.[doi:10. 3969 / j. issn. 1673-629X. 2019. 07. 014]
 TANG Li,LIU Chen.Extraction of Feature and Sentiment Word Pair Based on Conditional Random Fields and HITS Algorithm[J].,2019,29(07):71.[doi:10. 3969 / j. issn. 1673-629X. 2019. 07. 014]
[6]申静波,李井辉,孙丽娜.注意力机制在评论文本情感分析中的应用研究[J].计算机技术与发展,2020,30(07):169.[doi:10. 3969 / j. issn. 1673-629X. 2020. 07. 036]
 SHEN Jing-bo,LI Jing-hui,SUN Li-na.Research on Application of Attention Mechanism in Comment Text Emotional Analysis[J].,2020,30(07):169.[doi:10. 3969 / j. issn. 1673-629X. 2020. 07. 036]
[7]邱全磊,崔宗敏,喻 静.基于表情和语气的情感词典用于弹幕情感分析[J].计算机技术与发展,2020,30(08):178.[doi:10. 3969 / j. issn. 1673-629X. 2020. 08. 031]
 QIU Quan-lei,CUI Zong-min,YU Jing.Emotional Dictionary Based on Emoticons and Modal for Barrage Sentiment Analysis[J].,2020,30(07):178.[doi:10. 3969 / j. issn. 1673-629X. 2020. 08. 031]
[8]王连喜.基于“属性-情感词”汽车本体的文本情感分析[J].计算机技术与发展,2020,30(08):193.[doi:10. 3969 / j. issn. 1673-629X. 2020. 08. 034]
 WANG Lian-xi.Sentiment Analysis Method Based on Attribute-sentiment Ontology in Automobile Domain[J].,2020,30(07):193.[doi:10. 3969 / j. issn. 1673-629X. 2020. 08. 034]
[9]黄剑波,陈方灵,丁友东,等.基于情感分析的个性化电影推荐[J].计算机技术与发展,2020,30(09):132.[doi:10. 3969 / j. issn. 1673-629X. 2020. 09. 024]
 HUANG Jian-bo,CHEN Fang-ling,DING You-dong,et al.Personalized Movie Recommendation Based on Sentiment Analysis[J].,2020,30(07):132.[doi:10. 3969 / j. issn. 1673-629X. 2020. 09. 024]
[10]刘昌澍,李 响,詹瑾瑜,等.基于TextCNN和LightGBM 的导游违规行为检测[J].计算机技术与发展,2021,31(05):143.[doi:10. 3969 / j. issn. 1673-629X. 2021. 05. 025]
 ,,et al.IllegalTourGuideBehaviorDetectionBasedonTextCNNandLightGBM[J].,2021,31(07):143.[doi:10. 3969 / j. issn. 1673-629X. 2021. 05. 025]

更新日期/Last Update: 2024-07-10