A BERT-based multi-task learning framework for social media opinion mining with risk detection
Wei-Wei Liu
Key points
From the paper's conclusion- The model performs two tasks in one inference, reducing deployment complexity while enabling reliable negative sentiment detection for social media opinion monitoring.
Abstract
This paper proposes a BERT-based multi-task learning framework for social media mining and risk detection. Unlike traditional open-loop architectures, the proposed system establishes a closed-loop feedback mechanism among crawling, analysis, and alerting modules, focusing on high-accuracy negative sentiment detection for social risk detection. A dataset of 4,238 texts is constructed, covering eight topic categories and three sentiment labels. A BERT-based multi-task framework with shared encoder and two task-specific heads jointly optimizes topic classification and sentiment analysis. Training uses AdamW (learning rate 2e-5, batch size 16, max length 128) for three epochs. The multi-task BERT model achieves 97.97% F1 for topic classification and 99.89% F1 for sentiment analysis. Negative sentiment detection reaches 100% accuracy. Compared to single-task models (98.34% and 99.76%), the multi-task model maintains comparable topic performance while improving sentiment analysis. Removing pre-training fine-tuning reduces training time by 7.9% with stable performance. The model performs two tasks in one inference, reducing deployment complexity while enabling reliable negative sentiment detection for social media opinion monitoring.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Parametrically modified BERT for emotion prediction through sentiment analysisDiscover Computing · 2026
- XP-STM: A cross-platform sentiment transferability model for negative public sentiment identification and mitigationJournal of Engineering Research · 2025
- A Bayesian latent class analysis approach for assessing the accuracy of natural language processing models classifying topic and sentiment of public health-related social media content.AJE advances : research in epidemiology · 2026
- Explainable AI For Social Media Opinion Analysis Using Efficient Language ModellingJournal of Intelligent Decision Making and Information Science · 2026
- Topic-Aware Multi-Task Mental Health Classification with Active Learning-Based Stepwise Relabeling for Social Media ConversationsarXiv · 2026
- Ordinal sentiment classification in cancer support forums: a controlled benchmark of machine learning and transformer models.Frontiers in digital health · 2026