CYBERBULLYING DETECTION IN LOW-RESOURCE ROMAN URDU: A COMPARATIVE ANALYSIS OF TF-IDF-BASED WORD AND CHARACTER N-GRAM FEATURES

Authors

  • Muhammad Tayyab Waqar Author
  • Rana Abdul Wahab Author
  • Zaid Ismail Author
  • Imtiaz Hussain Author
  • Ghulam Abbas Author
  • Adnan Adnan Author
  • Tahir Jamil Author
  • Salman Masih Author

Keywords:

Cyberbullying, Roman Urdu, Machine Learning, Natural Language Processing, TF-IDF, N-Gram

Abstract

Social media has become an important platform for communication and has generated a large amount of user-generated data. With the growth of social media communication, cyberbullying has become a major problem for online communities. Existing research has largely focused on resource-rich languages such as English, while comparatively less attention has been given to low-resource languages such as Roman Urdu. This study investigates cyberbullying detection in Roman Urdu text using supervised machine learning techniques and TF-IDF-based word and character N-Gram feature representations. A total of 4,120 comments were manually collected from YouTube because a standard cyberbullying dataset specifically developed for Roman Urdu was not publicly available. After data cleaning and preprocessing, 4,115 instances remained for experimental analysis. TF-IDF with three-word N-Gram and six-character N-Gram representations was used for feature extraction. The final dataset was divided into 70% training and 30% testing sets. Twelve supervised classifiers representing eight machine learning techniques were evaluated. For word N-Grams, Naïve Bayes Multinomial achieved the highest accuracy of 87.5203% using TF-IDF with word unigram features. For character N-Grams, Random Forest achieved the highest accuracy of 91.1669% using TF-IDF with character four-gram features. Overall, character N-Gram features produced the highest accuracy among the evaluated configurations on the studied dataset.

Downloads

Published

2026-10-21