Cyberbullying Detection in Hausa Language on X Social Medium Using Machine Learning.
  • Author(s): Muhammad Awwal Ibrahim; DT Chinyio
  • Paper ID: 1714681
  • Page: 2018-2032
  • Published Date: 03-03-2026
  • Published In: Iconic Research And Engineering Journals
  • Publisher: IRE Journals
  • e-ISSN: 2456-8880
  • Volume/Issue: Volume 9 Issue 8 February-2026
Abstract

The rise of social media has intensified cyberbullying, impacting users across diverse languages, yet low-resource languages like Hausa lack effective detection tools. With over 100 million Hausa speakers predominantly in Nigeria and Niger, addressing this gap is crucial for fostering safer online environments. This study aims to develop a machine learning model to detect cyberbullying in Hausa tweets on X (formerly Twitter). The methodology involved collecting and annotating Hausa-language tweets, preprocessing the data through cleaning and removal of stopwords using Natural Language Tokenization (NLTK) Library, and extracting features using TF-IDF technique. Multiple classifiers, including Support Vector Machine (SVM), XGBoost, and Logistic Regression, were trained and evaluated based on accuracy, precision, and recall. Results showed that the SVM outperformed others with an accuracy of 0.98, followed by Random Forest 0.9794, then XGBoost 0.9769, while Logistic Regression had the lowest accuracy 0.9527. The findings demonstrate that culturally-sensitive, language-specific models can enhance cyberbullying detection in Hausa, contributing to safer digital spaces and providing a basis for further research in low-resource language NLP applications.

Keywords

Support Vector Machine, Tweets on X XGBoost, Natural Language Tokenization

Citations

IRE Journals:
Muhammad Awwal Ibrahim, DT Chinyio "Cyberbullying Detection in Hausa Language on X Social Medium Using Machine Learning." Iconic Research And Engineering Journals Volume 9 Issue 8 2026 Page 2018-2032 https://doi.org/10.64388/IREV9I8-1714681

IEEE:
Muhammad Awwal Ibrahim, DT Chinyio "Cyberbullying Detection in Hausa Language on X Social Medium Using Machine Learning." Iconic Research And Engineering Journals, 9(8) https://doi.org/10.64388/IREV9I8-1714681