Enhancing Sentiment Analysis for Chinese Texts Using a BERT-Based Model with a Custom Attention Mechanism

被引:0
作者
Ding, Linlin [1 ]
Han, Yiming [1 ]
Li, Mo [1 ]
Li, Dong [1 ]
机构
[1] Liaoning Univ, Sch Informat, Shenyang 110036, Peoples R China
来源
WEB INFORMATION SYSTEMS AND APPLICATIONS, WISA 2024 | 2024年 / 14883卷
基金
中国国家自然科学基金;
关键词
Emotion Classification; Social Media Analysis; BERT;
D O I
10.1007/978-981-97-7707-5_15
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The rise of social media has made automatic emotion recognition from extensive texts crucial in NLP(Natural language processing). Traditional sentiment analysis focuses on basic positive or negative sentiments, neglecting the broader spectrum of emotional complexity. Our innovative model addresses this by incorporating a pretrained BERT (Bidirectional Encoder Representations from Transformers) language model with an additional custom attention mechanism. This mechanism dynamically adjusts encoder layer weights to distinguish between semantically similar but emotionally distinct expressions, such as "anger" versus "sadness" or "happiness" versus "surprise." This approach enhances the model's sensitivity to emotional boundaries, allowing for more accurate identification and classification of complex emotions. Experimental results on two six-emotion datasets demonstrate superior performance in precision, recall, and F1-score compared to traditional models.
引用
收藏
页码:172 / 179
页数:8
相关论文
共 13 条
[1]   PG-RNN: using position-gated recurrent neural networks for aspect-based sentiment classification [J].
Bai, Qingchun ;
Zhou, Jie ;
He, Liang .
JOURNAL OF SUPERCOMPUTING, 2022, 78 (03) :4073-4094
[2]  
Deng H., 2023, Web Information Systems and Applications, WISA 2023, V14094, P284, DOI [10.1007/978- 981- 99- 6222-8-24, DOI 10.1007/978-981-99-6222-8-24]
[3]  
Devlin J, 2019, 2019 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES (NAACL HLT 2019), VOL. 1, P4171
[4]   Scalable multi-channel dilated CNN-BiLSTM model with attention mechanism for Chinese textual sentiment analysis [J].
Gan, Chenquan ;
Feng, Qingdong ;
Zhang, Zufan .
FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2021, 118 :297-309
[5]   Deep Pyramid Convolutional Neural Networks for Text Categorization [J].
Johnson, Rie ;
Zhang, Tong .
PROCEEDINGS OF THE 55TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2017), VOL 1, 2017, :562-570
[6]   Improved multi-lingual sentiment analysis and recognition using deep learning [J].
Khan, Amjad .
JOURNAL OF INFORMATION SCIENCE, 2025, 51 (01) :284-291
[7]  
Kim Y., 2014, ACL, DOI DOI 10.3115/V1/D14-1181
[8]  
Lan ZZ, 2020, Arxiv, DOI [arXiv:1909.11942, DOI 10.48550/ARXIV.1909.11942]
[9]   BERT- and BiLSTM-Based Sentiment Analysis of Online Chinese Buzzwords [J].
Li, Xinlu ;
Lei, Yuanyuan ;
Ji, Shengwei .
FUTURE INTERNET, 2022, 14 (11)
[10]  
Liu YH, 2019, Arxiv, DOI [arXiv:1907.11692, DOI 10.48550/ARXIV.1907.11692]