Who Wrote This? Identifying Machine vs Human-Generated Text in Hausa

The advancement of large language models (LLMs) has allowed them to be proficient in various tasks, including content generation. However, their unregulated usage can lead to malicious activities such as plagiarism and generating and spreading fake news, especially for low-resource languages. Most existing machine-generated text detectors are trained on high-resource languages like English, French, etc. In this study, we developed the first large-scale detector that can distinguish between human- and machine-generated content in Hausa. We scrapped seven Hausa-language media outlets for the human-generated text and the Gemini-2.0 flash model to automatically generate the corresponding Hausa-language articles based on the human-generated article headlines. We fine-tuned four pre-trained Afri-centric models (AfriTeVa, AfriBERTa, AfroXLMR, and AfroXLMR-76L) on the resulting dataset and assessed their performance using accuracy and F1-score metrics. AfroXLMR achieved the highest performance with an accuracy of 99.23% and an F1 score of 99.21%, demonstrating its effectiveness for Hausa text detection. Our dataset is made publicly available to enable further research.
View on arXiv@article{sani2025_2503.13101, title={ Who Wrote This? Identifying Machine vs Human-Generated Text in Hausa }, author={ Babangida Sani and Aakansha Soy and Sukairaj Hafiz Imam and Ahmad Mustapha and Lukman Jibril Aliyu and Idris Abdulmumin and Ibrahim Said Ahmad and Shamsuddeen Hassan Muhammad }, journal={arXiv preprint arXiv:2503.13101}, year={ 2025 } }