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
基金
中国国家自然科学基金;
关键词
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
相关论文
共 50 条
  • [41] Sentiment Analysis of Comment Texts on Online Courses Based on Hierarchical Attention Mechanism
    Su, Baohua
    Peng, Jun
    APPLIED SCIENCES-BASEL, 2023, 13 (07):
  • [42] A BERT-Based Two-Stage Model for Chinese Chengyu Recommendation
    Tan, Minghuan
    Jiang, Jing
    Dai, Bing Tian
    ACM TRANSACTIONS ON ASIAN AND LOW-RESOURCE LANGUAGE INFORMATION PROCESSING, 2021, 20 (06)
  • [43] Sentiment classification of microblog: A framework based on BERT and CNN with attention mechanism
    Jia, Keliang
    COMPUTERS & ELECTRICAL ENGINEERING, 2022, 101
  • [44] Arabic Sentiment Analysis Using BERT Model
    Chouikhi, Hasna
    Chniter, Hamza
    Jarray, Fethi
    ADVANCES IN COMPUTATIONAL COLLECTIVE INTELLIGENCE (ICCCI 2021), 2021, 1463 : 621 - 632
  • [45] BERT-Based Models with Attention Mechanism and Lambda Layer for Biomedical Named Entity Recognition
    Shi, Yuning
    Kimura, Masaomi
    2024 16TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND COMPUTING, ICMLC 2024, 2024, : 536 - 544
  • [46] Multi-source Multi-domain Sentiment Analysis with BERT-based Models
    Roccabruna, Gabriel
    Azzolin, Steve
    Riccardi, Giuseppe
    LREC 2022: THIRTEEN INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION, 2022, : 581 - 589
  • [47] Lexicon-Based vs. Bert-Based Sentiment Analysis: A Comparative Study in Italian
    Catelli, Rosario
    Pelosi, Serena
    Esposito, Massimo
    ELECTRONICS, 2022, 11 (03)
  • [48] BERT-based response selection in dialogue systems using utterance attention mechanisms
    Park, Yeongjoon
    Ko, Youngjoong
    Seo, Jungyun
    EXPERT SYSTEMS WITH APPLICATIONS, 2022, 209
  • [49] Task-Aware BERT-based Sentiment Analysis from Multiple Essences of the Text
    Jia-Hao Hsu
    Chung-Hsien Wu
    Tsung-Hsien Yang
    2021 ASIA-PACIFIC SIGNAL AND INFORMATION PROCESSING ASSOCIATION ANNUAL SUMMIT AND CONFERENCE (APSIPA ASC), 2021, : 1982 - 1986
  • [50] An Automatic Sentiment Analysis Method for Short Texts Based on Transformer-BERT Hybrid Model
    Xiao, Haiyan
    Luo, Linghua
    IEEE ACCESS, 2024, 12 : 93305 - 93317