Hate speech detection in Hausa code-mixed tweets using machine learning
Science World Journal · 18.03.2026 · 20 (4) · 1473-1478
DOI: 10.4314/swj.v20i4.21 ↗Kurz gefasst
Fachartikel in der Zeitschrift Science World Journal, online erschienen am 18.03.2026. Verfasst von Bashir Idris Sulaiman und 1 weiteren Autor:innen.
Abstract (Originalsprache)
Code-mixed communication in Nigeria, involving English, Nigerian Pidgin, Hausa, Yoruba, and Igbo, poses challenges for Natural Language Processing (NLP) systems, especially in detecting hate speech. Existing research typically focuses on high-resource languages, leaving code-mixed African data underexplored. This study applies logistic regression and random forest algorithms to identify hate speech in Hausa code-mixed tweets, utilizing two datasets of annotated posts. Key preprocessing steps included text normalization and feature extraction using TF-IDF and Bag-ofWords. Results showed that the Logistic Regression model with TF-IDF features outperformed Random Forest in accuracy, recall, and F1-score, while the optimized Random Forest model demonstrated notable performance improvements. The results demonstrate the effectiveness of machine learning for hate speech detection in low-resource languages like Hausa.
Zitieren
APA
Sulaiman, B. I., & Ahmad, M. A. (2026). Hate speech detection in Hausa code-mixed tweets using machine learning. Science World Journal, 20(4), 1473-1478. https://doi.org/10.4314/swj.v20i4.21
Vancouver
Sulaiman BI, Ahmad MA. Hate speech detection in Hausa code-mixed tweets using machine learning. Science World Journal. 2026;20(4):1473-1478. doi:10.4314/swj.v20i4.21
BibTeX
@article{Sulaiman2026,
author = {Sulaiman, Bashir Idris and Ahmad, Muhammad Aminu},
title = {Hate speech detection in Hausa code-mixed tweets using machine learning},
journal = {Science World Journal},
year = {2026},
volume = {20},
number = {4},
pages = {1473--1478},
doi = {10.4314/swj.v20i4.21}
}
EUVIMED