A Comparative Evaluation of Afribert Base and Afribert Large for Hausa Hate Speech Detection

Authors

  • Bashir Idris Sulaiman Department of Secure Computing, Faculty of Computing, Kaduna State University, Kaduna, Nigeria.
  • Muhammad Aminu Ahmad

DOI:

https://doi.org/10.33003/fjs-2026-1023-6523

Keywords:

Hausa, Hate Speech Detection, AfriBERT, AfriBERT Base, AfriBERT Large, Low-Resource Languages, Text Classification

Abstract

Hate speech detection is an important task in Natural Language Processing (NLP), particularly with the growth of online communication. Automatic detection remains challenging for low-resource African languages such as Hausa because annotated datasets and language-specific computational resources are limited. This study comparatively evaluated AfriBERT Base and AfriBERT Large (AfriBERTXL) for Hausa hate speech detection using 6,000 annotated Hausa text samples classified into hate speech and non-hate speech. Both configurations were trained for three epochs and evaluated using accuracy, precision, recall, F1-score and Receiver Operating Characteristic Area Under the Curve (ROC-AUC). On the final test set, AfriBERT Base achieved 79.32% accuracy, 77.98% precision, 66.23% recall, 71.63% F1-score and 87.03% ROC-AUC. AfriBERT Large achieved 80.45% accuracy, 79.94% precision, 67.27% recall, 73.06% F1-score and 88.41% ROC-AUC. Thus, AfriBERT Large recorded higher values across all five reported metrics, although the improvements were modest. The findings provide a direct comparison of the two AfriBERT configurations for Hausa hate speech classification. However, the results should be interpreted in light of the dataset size and the methodological details that require fuller reporting, including dataset sampling, annotation procedures and experimental configuration.

References

Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., Grave, E., Ott, M., Zettlemoyer, L., & Stoyanov, V. (2020). Unsupervised cross-lingual representation learning at scale. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (pp. 8440–8451). Association for Computational Linguistics. https://doi.org/10.18653/v1/2020.acl-main.747

Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) (pp. 4171–4186). Association for Computational Linguistics. https://doi.org/10.18653/v1/N19-1423

Fortuna, P., & Nunes, S. (2018). A survey on automatic detection of hate speech in text. ACM Computing Surveys, 51(4), Article 85, 1–30. https://doi.org/10.1145/3232676

Mozafari, M., Farahbakhsh, R., & Crespi, N. (2020). Hate speech detection and racial bias mitigation in social media based on BERT model. PLOS ONE, 15(8), Article e0237861. https://doi.org/10.1371/journal.pone.0237861

Ogueji, K., Zhu, Y., & Lin, J. (2021). Small data? No problem! Exploring the viability of pretrained multilingual language models for low-resourced languages. In Proceedings of the 1st Workshop on Multilingual Representation Learning (pp. 116–126). Association for Computational Linguistics. https://doi.org/10.18653/v1/2021.mrl-1.11

Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention is all you need. In Advances in Neural Information Processing Systems (Vol. 30, pp. 5998–6008).

Model Training Configuration

Downloads

Published

13-11-2026

How to Cite

Sulaiman, B. I., & Ahmad, M. A. (2026). A Comparative Evaluation of Afribert Base and Afribert Large for Hausa Hate Speech Detection. FUDMA Journal of Sciences, 10(23), 180-183. https://doi.org/10.33003/fjs-2026-1023-6523

Most read articles by the same author(s)