[Paper Review] Abusive and Threatening Language Detection in Urdu using Supervised Machine Learning and Feature Combinations
This paper presents a supervised machine learning approach for detecting abusive and threatening language in Urdu tweets using hybrid feature engineering and ensemble modeling. It achieves an F1 score of 0.8318 on Task A (abusive language detection) and 0.4931 on Task B (threatening language detection), with SVMs and optimized feature combinations—such as trigram n-grams and pre-trained Urdu Word2Vec—delivering the best performance after hyperparameter tuning and data balancing via oversampling.
This paper presents the system descriptions submitted at the FIRE Shared Task 2021 on Urdu's Abusive and Threatening Language Detection Task. This challenge aims at automatically identifying abusive and threatening tweets written in Urdu. Our submitted results were selected for the third recognition at the competition. This paper reports a non-exhaustive list of experiments that allowed us to reach the submitted results. Moreover, after the result declaration of the competition, we managed to attain even better results than the submitted results. Our models achieved 0.8318 F1 score on Task A (Abusive Language Detection for Urdu Tweets) and 0.4931 F1 score on Task B (Threatening Language Detection for Urdu Tweets). Results show that Support Vector Machines with stopwords removed, lemmatization applied, and features vector created by the combinations of word n-grams for n=1,2,3 produced the best results for Task A. For Task B, Support Vector Machines with stopwords removed, lemmatization not applied, feature vector created from a pre-trained Urdu Word2Vec (on word unigrams and bigrams), and making the dataset balanced using oversampling technique produced the best results. The code is made available for reproducibility.
Motivation & Objective
- To develop a robust system for identifying abusive and threatening language in Urdu social media content.
- To evaluate the effectiveness of various feature engineering techniques in low-resource NLP settings for Urdu.
- To improve classification performance through supervised machine learning with data balancing and linguistic preprocessing.
- To contribute a reproducible, open-source solution for Urdu abusive language detection.
- To achieve competitive results in the FIRE 2021 shared task on Urdu abusive and threatening language detection.
Proposed method
- Applied stopword removal and lemmatization to clean Urdu text inputs.
- Constructed feature vectors using combinations of unigrams, bigrams, and trigrams (n-grams) for Task A.
- Employed pre-trained Urdu Word2Vec embeddings for unigrams and bigrams in Task B.
- Utilized Support Vector Machines (SVMs) as the primary classifier for both tasks.
- Applied SMOTE oversampling to balance the imbalanced dataset in Task B.
- Optimized hyperparameters through iterative experimentation and cross-validation.
Experimental results
Research questions
- RQ1Which combination of linguistic preprocessing and feature engineering yields the highest F1 score for abusive language detection in Urdu?
- RQ2How does data imbalance affect the performance of threatening language detection models in low-resource Urdu NLP?
- RQ3Can pre-trained Word2Vec embeddings improve classification performance for threatening language detection in Urdu?
- RQ4What is the impact of lemmatization and stopword removal on model generalization in Urdu abusive language detection?
- RQ5How do different n-gram combinations compare in capturing abusive language patterns in Urdu tweets?
Key findings
- The best-performing model for Task A achieved an F1 score of 0.8318 using SVM with n-gram features (n=1,2,3), stopword removal, and lemmatization.
- For Task B, the highest F1 score of 0.4931 was achieved using SVM with pre-trained Urdu Word2Vec embeddings, no lemmatization, and SMOTE-based data oversampling.
- Lemmatization improved performance on Task A, while its removal slightly benefited Task B, suggesting task-specific linguistic preprocessing needs.
- Feature engineering with trigram n-grams significantly enhanced detection of abusive language in Urdu tweets.
- Data balancing via oversampling was critical for improving the F1 score in Task B, which had a highly imbalanced dataset.
- The final model outperformed the initial submission, demonstrating the value of post-competition hyperparameter tuning and experimentation.
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.