Context-based sentiment analysis using a BiGRU DistilBERT fusion model for COVID-19 tweets
摘要
The COVID-19 pandemic triggered an unprecedented surge in Twitter activity, providing a rich source of public opinions and emotions. This study proposes a fusion model combining a bidirectional GRU (BiGRU) and a DistilBERT transformer, with their learned features concatenated and fed into an XGBoost meta-classifier for final sentiment prediction. We evaluate our approach on over one million COVID-19-related English-language tweets collected from eight countries between January and April 2020. The fusion model (BiGRU + DistilBERT + XGBoost) achieves a classification accuracy of ~ 85.8%, outperforming individual models (for example, DistilBERT alone at 85.5% accuracy) in sentiment detection. Key results indicate that public sentiment evolved with pandemic phases: negative sentiments peaked during surges in cases and deaths, while positive sentiments rose during recovery periods. We also observe notable regional differences – for instance, sentiment trends vary across countries and between English- vs. non-English-speaking regions. These findings demonstrate the effectiveness of our context-infused approach, offering valuable insights for policymakers on social media sentiment during health crises.