[Paper Review] QutNocturnal@HASOC'19: CNN for Hate Speech and Offensive Content Identification in Hindi Language
This paper presents QutNocturnal@HASOC'19, a top-performing CNN model for hate speech and offensive content detection in Hindi, leveraging domain-specific word embeddings pretrained on 0.5M relevant Hindi and Hinglish tweets. The approach achieves state-of-the-art performance with 82% accuracy on the test set, outperforming LSTM and traditional models due to CNN's robustness to tweet noise and ability to capture local patterns.
We describe our top-team solution to Task 1 for Hindi in the HASOC contest organised by FIRE 2019. The task is to identify hate speech and offensive language in Hindi. More specifically, it is a binary classification problem where a system is required to classify tweets into two classes: (a) \emph{Hate and Offensive (HOF)} and (b) \emph{Not Hate or Offensive (NOT)}. In contrast to the popular idea of pretraining word vectors (a.k.a. word embedding) with a large corpus from a general domain such as Wikipedia, we used a relatively small collection of relevant tweets (i.e. random and sarcasm tweets in Hindi and Hinglish) for pretraining. We trained a Convolutional Neural Network (CNN) on top of the pretrained word vectors. This approach allowed us to be ranked first for this task out of all teams. Our approach could easily be adapted to other applications where the goal is to predict class of a text when the provided context is limited.
Motivation & Objective
- To address the lack of effective NLP solutions for hate speech and offensive content detection in low-resource languages like Hindi.
- To improve classification performance in noisy, informal social media text by leveraging transfer learning with task-specific word embeddings.
- To investigate whether CNNs outperform RNNs like LSTMs in detecting offensive language in short, noisy, and contextually complex Hindi tweets.
- To demonstrate that fine-tuning word vectors on relevant, unlabeled social media data enhances model generalization for low-resource language tasks.
Proposed method
- Pretrained word embeddings on a 0.5 million tweet corpus consisting of random Hindi and sarcastic Hinglish tweets to capture domain-specific linguistic patterns.
- Applied extensive preprocessing including de-identification, character normalization, HTML unescaping, and multilingual lemmatization using spaCy and a lightweight Hindi stemmer.
- Trained a custom Convolutional Neural Network (CNN) on top of the pretrained word vectors for end-to-end classification of Hindi tweets into HOF (Hate or Offensive) or NOT.
- Used transfer learning by fine-tuning the pretrained word vectors during CNN training to adapt them to the downstream classification task.
- Employed 10-fold cross-validation on the training set for hyperparameter tuning and reserved 20% of the training data for validation.
- Compared the CNN model against multiple baselines including DNN, SVM, RF, XGBoost, kNN, LSTM, and MNB to evaluate performance.
Experimental results
Research questions
- RQ1Can domain-specific word embeddings trained on unlabeled Hindi and Hinglish tweets improve hate speech detection performance compared to general-domain pretraining?
- RQ2Does a CNN-based architecture outperform RNN-based models like LSTM in classifying offensive content in short, noisy Hindi social media text?
- RQ3How effective is transfer learning with task-specific word vectors in low-resource language settings like Hindi?
- RQ4To what extent do linguistic patterns such as sarcasm, misspellings, and code-mixing affect the performance of different deep learning architectures in offensive language detection?
Key findings
- The CNN model achieved 82% accuracy on the test set, with a macro F1-score of 0.81, making it the top-ranked solution in the HASOC'19 Hindi hate speech detection task.
- The CNN model outperformed LSTM, which achieved a macro F1-score of 0.78, demonstrating CNN's superior robustness to noise in tweets.
- The model achieved a precision of 0.85 and recall of 0.74 for the HOF class, and 0.80 precision and 0.89 recall for the NOT class on the test set.
- Fine-tuning domain-specific word embeddings led to a 10% improvement in F1-score over baseline models like kNN and MNB, which scored below 0.52.
- The results indicate that CNNs are more effective than sequence-based models like LSTM for this task due to their ability to capture local, non-sequential patterns even when noise distorts word order.
- Transfer learning using a relevant, unlabeled tweet corpus for word embedding pretraining significantly enhanced model performance, especially in low-resource settings.
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.