[Paper Review] Optimizing Transformer based on high-performance optimizer for predicting employment sentiment in American social media content
This paper proposes a high-performance optimizer-enhanced Transformer model to predict employment-related sentiment in American social media content. By integrating swarm intelligence optimization with text preprocessing and vectorization, the model achieves 82.91% test accuracy and 0.66 Kappa coefficient, demonstrating strong generalization and effectiveness in sentiment classification for employment-related social media texts.
This article improves the Transformer model based on swarm intelligence optimization algorithm, aiming to predict the emotions of employment related text content on American social media. Through text preprocessing, feature extraction, and vectorization, the text data was successfully converted into numerical data and imported into the model for training. The experimental results show that during the training process, the accuracy of the model gradually increased from 49.27% to 82.83%, while the loss value decreased from 0.67 to 0.35, indicating a significant improvement in the performance of the model on the training set. According to the confusion matrix analysis of the training set, the accuracy of the training set is 86.15%. The confusion matrix of the test set also showed good performance, with an accuracy of 82.91%. The accuracy difference between the training set and the test set is only 3.24%, indicating that the model has strong generalization ability. In addition, the evaluation of polygon results shows that the model performs well in classification accuracy, sensitivity, specificity, and area under the curve (AUC), with a Kappa coefficient of 0.66 and an F-measure of 0.80, further verifying the effectiveness of the model in social media sentiment analysis. The improved model proposed in this article not only improves the accuracy of sentiment recognition in employment related texts on social media, but also has important practical significance. This social media based data analysis method can not only capture social dynamics in a timely manner, but also promote decision-makers to pay attention to public concerns and provide data support for improving employment conditions.
Motivation & Objective
- To improve sentiment classification accuracy for employment-related content in American social media.
- To address the challenge of low accuracy in existing models for nuanced employment sentiment in informal text.
- To enhance model generalization by reducing overfitting between training and test sets.
- To evaluate the effectiveness of swarm intelligence-based optimization in improving Transformer performance on social media NLP tasks.
- To provide actionable data for policymakers by enabling real-time monitoring of public sentiment on employment issues.
Proposed method
- Text preprocessing was applied to clean and normalize employment-related social media content.
- Feature extraction and vectorization transformed textual data into numerical representations suitable for deep learning.
- A swarm intelligence-based high-performance optimizer was integrated into the Transformer architecture to improve weight optimization.
- The model was trained using cross-entropy loss with adaptive learning dynamics from the optimizer.
- Performance was evaluated using accuracy, F-measure, AUC, sensitivity, specificity, and Kappa coefficient on both training and test sets.
- Confusion matrices were analyzed to assess class-wise prediction performance and model robustness.
Experimental results
Research questions
- RQ1Can a high-performance optimizer improve sentiment classification accuracy in employment-related social media text?
- RQ2How does the proposed model perform in terms of generalization between training and test sets?
- RQ3To what extent does swarm intelligence optimization enhance the training dynamics of the Transformer model?
- RQ4What is the model's performance in terms of AUC, F-measure, and Kappa coefficient on employment sentiment classification?
- RQ5Can the model effectively capture public sentiment trends related to employment from informal social media content?
Key findings
- The model's training accuracy increased from 49.27% to 82.83% over the training process.
- The model's test set accuracy reached 82.91%, with a minimal gap of 3.24% from the training accuracy, indicating strong generalization.
- The confusion matrix showed a training set accuracy of 86.15%, confirming reliable class prediction.
- The model achieved a Kappa coefficient of 0.66, indicating substantial agreement beyond chance.
- The F-measure was 0.80, reflecting a balanced precision and recall in classification.
- The area under the ROC curve (AUC) was high, confirming strong discriminative performance across thresholds.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.