Skip to main content
QUICK REVIEW

[Paper Review] HP-BERT: A Fine-Tuned BERT Model for Detecting Hinduphobia and Sentiment Analysis

Qiang Yang, Hind Alamro|arXiv (Cornell University)|Jun 18, 2020
Misinformation and Its ImpactsSocial Sciences25 citations
TL;DR

HP-BERT proposes a fine-tuned BERT model for detecting Hinduphobia and performing multilingual sentiment analysis on social media during the COVID-19 pandemic. It leverages a multilingual, multi-label annotated dataset of 20K English and Arabic tweets and 21K Chinese Weibo posts, achieving high accuracy in detecting nuanced sentiments across six languages, revealing global emotional trends tied to pandemic events.

ABSTRACT

HP-BERT is a specialized BERT-based language model fine-tuned to detect Hinduphobic content on Twitter. The model was developed using the "Hinduphobic COVID-19 X (Twitter) Dataset" which includes over 8,000 tweets collected during the COVID-19 pandemic (November 2019 to December 2022). This dataset features 2,000 manually labeled tweets and additional annotations generated using GPT-3.5 Turbo API. HP-BERT employs a multi-stage fine-tuning strategy, incorporating additional training on the SenWave dataset to enhance its sentiment analysis capabilities. The model is further adapted for analyzing Hinglish (Hindi-English) data, making it highly effective for Indian social media content. HP-BERT is designed to identify Hinduphobic discourse, analyze sentiment polarity, and provide nuanced insights into the emotional tone and context of online discussions. Its applications include detecting toxic language, understanding user behavior, and studying the propagation of Hinduphobia during and post-COVID-19. HP-BERT has been rigorously tested on multiple datasets, including the Global COVID-19 Twitter dataset, capturing trends across six countries (Australia, Brazil, India, Indonesia, Japan, and the United Kingdom). The model offers robust performance in detecting Hinduphobia and abusive language while also contributing to the study of social media dynamics and hate speech detection. HP-BERT is available for public use, fostering further research and development in the fields of sentiment analysis, hate speech detection, and computational social science.

Motivation & Objective

  • To develop a multilingual sentiment analysis system capable of detecting nuanced emotions in social media during the global COVID-19 pandemic.
  • To create a high-quality, multi-label annotated dataset of 20K English and Arabic tweets and 21K Chinese Weibo posts for sentiment and Hinduphobia detection.
  • To train and evaluate a fine-tuned BERT-based model (HP-BERT) for detecting both sentiment and Hinduphobia across six languages: English, Spanish, French, Italian, Arabic, and Chinese.
  • To analyze temporal sentiment trends in response to key pandemic events, such as lockdowns, economic policies, and vaccine developments.
  • To provide a publicly available, multilingual, and fine-grained sentiment analysis resource for researchers studying social media reactions to global health crises.

Proposed method

  • Fine-tuned BERT using a multilingual, multi-label annotated dataset of 20K English and Arabic tweets and 21K Chinese Weibo posts, labeled across 10 sentiment categories including optimistic, anxious, sad, annoyed, and denial.
  • Employed the simpletransformers framework to train a multi-label classification model on the annotated data, enabling simultaneous prediction of multiple sentiment labels per post.
  • Translated 10K annotated English tweets into Spanish, French, and Italian to expand training data and improve model generalization across languages.
  • Collected and processed over 105 million tweets and Weibo messages from March 1, 2020, and January 20, 2020, respectively, to monitor real-time sentiment shifts.
  • Trained separate sentiment classification models for six languages using pre-trained multilingual BERT and fine-tuned on the annotated data to ensure cross-lingual performance.
  • Analyzed sentiment trends across seven pandemic-related topics—e.g., employment, working from home, herd immunity—by tracking sentiment fractions and volume changes over time.

Experimental results

Research questions

  • RQ1How do global sentiments expressed on social media evolve in response to key pandemic events across multiple languages?
  • RQ2What is the performance of a fine-tuned BERT model in detecting both sentiment and Hinduphobia in multilingual social media content?
  • RQ3How do sentiment patterns differ across languages and topics during the COVID-19 pandemic, and what do they reveal about public perception?
  • RQ4To what extent can translated training data improve the performance of sentiment analysis models in low-resource languages like Spanish, French, and Italian?
  • RQ5What are the most emotionally charged topics in social media discourse during the pandemic, and how do sentiment trends correlate with real-world events?

Key findings

  • The working from home (WFH) topic generated the highest proportion of optimistic sentiment, with 43% of tweets classified as optimistic, significantly higher than other topics.
  • The drug/medicine/vaccine topic had the highest volume of discussion, peaking at 20,000–40,000 daily messages, and triggered strong denial and annoyed sentiments during key events like the anti-malarial drug hype.
  • The topic of economic stimulus and job losses showed a shift from optimism in March to rising anxiety and sadness in April–May, peaking on May 8–10 when U.S. unemployment reached 14.7%.
  • The sentiment trends for all languages showed a similar pattern of rapid emotional rise followed by a slow decline, with strong negative reactions to herd immunity strategies.
  • The model achieved high performance in multilingual sentiment classification, with optimistic sentiment increasing over time and indicating a collective desire for a 'reset' toward a better post-pandemic world.
  • The annotated dataset of 20K English and Arabic tweets and 21K Chinese Weibo posts provides a rich, multi-label resource for future research in sentiment analysis and hate speech detection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.