A Comparative Study on Social Media Sentiment Classification Models Based on BERT Fine-tuning and Fusion with Sentiment Lexico
Abstract
Social media sentiment analysis presents unique challenges due to informal language, sarcasm, and ambiguous emotional cues. While pretrained models like BERT have shown strong performance in capturing contextual semantics, they often struggle with neutral sentiment classification and domain-specific expressions. This study proposes a hybrid sentiment classification model that integrates BERT’s contextual embeddings with sentiment lexicon features from SentiWordNet to address these limitations. Two models are compared: a baseline BERT model and an enhanced model incorporating lexicon-derived polarity scores. Experimental results on COVID-19-related tweets show that the enhanced model achieves more balanced performance across sentiment categories, particularly improving the detection of neutral expressions (F1-score increased from 0.86 to 0.89). However, the fusion approach introduces slight performance trade-offs, such as reduced overall accuracy (from 92.00% to 90.60%) due to lexicon-context misalignment and slang misinterpretation. The findings highlight the value of combining explicit sentiment priors with contextual embeddings and suggest future directions involving dynamic lexicon weighting and domain-specific lexicon generation to enhance robustness and adaptability.
References
- Devlin, J., et al. "BERT: Pretraining of Deep Bidirectional Transformers for Language Understanding."NAACL, 2018.
- Müller, M., et al. "COVIDTwitterBERT: A Natural Language Processing Model to Analyse COVID19 Content on Twitter."arXiv, 2020.
- Bracewell, D. B. "Semiautomatic Creation of an Emotion Dictionary Using WordNet and Its Evaluation."IEEE, 2008.
- Liu, F., et al. "Emotion Dictionary Learning With Modality Attentions for Mixed Emotion Exploration."IEEE Transactions on Affective Computing, 2024.
- Shu, Y., et al. "Emotion Distribution Learning Based on Peripheral Physiological Signals."JMIR, 2023.
- Esuli, A., & Sebastiani, F. "SentiWordNet: A Publicly Available Lexical Resource for Opinion Mining."LREC, 2006.
- Tran, K. V., et al. "Ensemble Learning with CTBERT for COVID19 Text Classification."arXiv, 2020.
- Jawahar, G., et al. "Analyzing BERT’s Internal Syntax Representations via SelfAttention."ACL, 2019.
- Lee, J., et al. "BioBERT: A Pretrained Biomedical Language Representation Model."Bioinformatics, 2020.
- Liu, X., et al. "Clinical Trial Information Extraction with BERT."IEEE, 2021.
- Yuan, C., et al. "Criteria2Query: A Natural Language Interface to Clinical Databases."JAMIA, 2019.
- Rao, Y., et al. "News Title Sentiment Analysis via EmotionTopic Modeling."World Wide Web, 2014.