Submit your papersSubmit Now
For Enquiries: [email protected]
IIARD LogoIIARD

Deep Learning-Based Detection of Hate Speech and Toxic Content in Nigerian Social Media

Enai Akpos Didi, Kizzy Nkem Elliot, Biobele Okardi, Anasuodei Bemoifie Moko

Abstract

The use of social media in Nigeria for communication, information access, and public discussion cannot be overemphasized. However, some individuals and organizations exploit it negatively, spreading hate speech, misinformation, and toxic content. Such abusive online behavior has led to politically, socially, and ethnically motivated protests across Nigeria. Manual moderation, where users flag abusive posts or comments, is largely ineffective due to the high volume of content generated online. Although deep learning has been widely applied to address this problem, most models are primarily trained in English. This limits performance in contexts such as Nigeria, where a significant portion of social media communication occurs in Nigerian Pidgin. This study presents a deep learning-based framework to automatically identify harmful content in Nigerian Pidgin. Leveraging models such as LSTM and Transformers, the framework captures contextual and linguistic patterns, including informal expressions and slang. Preprocessing strategies are tailored to local language nuances and cultural contexts. Conceptual evaluation indicates that this framework can support real-time content moderation, enhance online safety, and serve as a foundation for further research on AI-driven social media governance in Nigeria.

References

Adewura, T., Oladipo, O., & Okoro, S. (2020). Language Switching and Code Mixing in Nigerian Social Media: A Sociolinguistic Analysis. Journal of African Studies, 12(3), 45–58. Adeyemi, O., Salawu, S., & Aremu, A. (2022). NaijaHate: A Dataset for Hate Speech Detection in Nigerian Twitter Discourse. In Proceedings of the Workshop on African Natural Language Processing, 1–10. Adelani, D. I., Abbott, J., Neubig, G., & van Genabith, J. (2021). MasakhaNER: Named Entity Recognition for African Languages. Transactions of the Association for Computational Linguistics, 9, 1116–1131. https://doi.org/10.1162/tacl_a_00433 Aliyu, A., Suleiman, H., & Musa, A. (2022). HERDPhobia: Dataset and Analysis of Hate Speech Targeting Fulani Herders in Nigerian Online Conversations. Journal of Regional Social Media Research, 8(1), 19–34. Badjatiya, P., Gupta, S., Gupta, M., & Varma, V. (2017). Deep Learning for Hate Speech Detection in Tweets. In Proceedings of the 26th International Conference on World Wide Web, 759– 760. Davidson, T., Warmsley, D., Macy, M., & Weber, I. (2017). Automated Hate Speech Detection and the Problem of Offensive Language. In Proceedings of the 11th International AAAI Conference on Web and Social Media, 512–515. Fortuna, P., & Nunes, S. (2018). A Survey on Automatic Detection of Hate Speech in Text. ACM Computing Surveys, 51(4), 1–30. Ilevbare, B., & Okoye, C. (2024). EkoHate: A Political Code-Mixed Hate Speech Dataset for English, Pidgin, and Yoruba. In Proceedings of the 12th African Language Technology Workshop. Kwok, I., & Wang, Y. (2013). Locate the Hate: Detecting Tweets Against Blacks. In Proceedings of the Twenty-Seventh AAAI Conference on Artificial Intelligence, 1621–1622. Mishra, P., Del Tredici, M., Yannakoudakis, H., & Shutova, E. (2018). Author Profiling for Hate Speech Detection. In Proceedings of the 27th International Conference on Computational Linguistics, 2539–2549. Mozafari, M., Farahbakhsh, R., & Crespi, N. (2019). A BERT-based Transfer Learning Approach for Hate Speech Detection in Online Social Media. In Complex Networks and Their Applications VIII, 928–940. Olatunji, S. O., Adeyemi, O., & Salawu, S. (2023). NaijaXLM-T: A Transformer-Based Model for Nigerian Twitter Text Classification. Journal of African Artificial Intelligence Research, 2(1), 45–60. Oyewusi, L., & Adesina, T. (2020). Sentiment Analysis of Nigerian Pidgin English Tweets. African Journal of Computing & ICT, 13(2), 57–68. Salawu, S., He, Y., & Lumsden, J. (2020). Approaches to Automated Detection of Cyberbullying, Hate Speech, and Offensive Language: A Survey. IEEE Access, 8, 21866–21884. https://doi.org/10.1109/ACCESS.2020.2963834 Salawu, S., N. Adebayo, & AbdulHameed, M. A. (2020). African Language Resources and NLP Tasks: A Survey. Transactions on Asian and Low-Resource Language Information Processing, 19(4). Schmidt, A., & Wiegand, M. (2017). A Survey on Hate Speech Detection Using Natural Language Processing. Social Network Analysis and Mining, 7(1). Sosimi, D., Yusuf, A., & Adeniyi, M. (2020). Machine Learning Approaches to West African Pidgin Hate Speech Detection. International Journal of Computer Applications, 176(45), 25–32. The Guardian. (2022). Deborah Samuel killing sparks communal unrest. [Online]. Available: https://www.theguardian.com Vanguard News. (2022). Deborah Samuel: Mob kills student over blasphemy accusations. [Online]. Available: https://www.vanguardngr.com Zhang, Z., Robinson, P., & Tepper, J. (2018). Deep Learning for Text Classification: A Review. Journal of Data Mining and Knowledge Discovery, 32(4), 1–34. Tonneau, L., Adegboye, O., & Adebayo, R. (2024). NaijaHate: A Dataset and Transformer Model for Hate Speech Detection in Nigerian Social Media. Computational Linguistics in Africa. Warner, W., & Hirschberg, J. (2012). Detecting Hate Speech on the World Wide Web. In Proceedings of the Workshop on Linguistic Features for NLP.

More Articles from INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND MATHEMATICAL THEORY

Advances in Algorithmic Contract Scoring for Pre-Negotiation Yield Optimization and Risk Retention

Author: Ngozi Samuel Uzougbo, Michael Ominyi, Cyril Chimelie Anichukwueze, Blessing, Chika Jones

DevTest flow: Designing a Scalable Continuous Testing Pipeline for High-Velocity Software Delivery

Author: Lawal Ahmed Oladimeji, Achori Busayo, Akeju BusayoZainab, Saka Samson, Damilare, Mbah Demian Chidi, Runsewe Similoluwa Mayowa, Oladiti Luqman, Abiodun