Skip to content
Open access

Low-Resource Hate Speech Detection in English-Swahili Code-Switched Text Using Fine-Tuning of Pre-trained Language Models

Jul 2026 · International Journal for Research in Applied Science and Engineering Technology · 0 citations

TL;DR

This study explores a low-resource approach to detecting hate speech in English and Swahili code-switched text by fine-tuning pre-trained language models, and shows that fine-tuning modern language models can offer a practical and scalable solution for hate speech detection in multilingual environments.

Abstract

The use of social media in East Africa has grown rapidly, and with it, the spread of hate speech has become a serious concern. This problem is even more complex in online spaces where people often switch between English and Swahili within the same sentence or conversation. Such code-switching makes it difficult for existing systems to accurately detect harmful content, especially because there is limited labeled data and much of the language used is informal and context-dependent. This study explores a low-resource approach to detecting hate speech in English and Swahili code-switched text by fine-tuning pre-trained language models. In this work, transformer-based models such as BERT and AfriBERTa are adapted to better understand mixed-language communication. The models are trained on a carefully prepared dataset made up of real social media posts that reflect how people actually write and speak online. These posts are manually labeled to capture both direct and subtle forms of hate speech, including expressions that are influenced by local culture and everyday slang. The findings show that fine-tuned models perform better than traditional machine learning approaches, especially in terms of accuracy and overall detection quality. They are also more effective at handling informal language, abbreviations, and mixed grammar structures. Beyond performance, the study also looks at fairness and bias, emphasizing the need for systems that are sensitive to cultural and linguistic diversity. Overall, this work shows that fine-tuning modern language models can offer a practical and scalable solution for hate speech detection in multilingual environments.

Read PDF

Similar papers

#artificial intelligence Preprint Aug 2026

Efficient Adaptation of LLMs for Hate Speech Detection in Low-Resource Languages: A Comparative Study on Roman Urdu

It is challenging to detect hate speech in Low Resource Languages (LRLs) because of the absence of annotated data, the informality of its language structure, and the lack of standardized grammar. A good example of such a challenge is Roman Urdu which is broadly used by South Asians on social media and has a high variat...

Toneema Zubair, Muhammad Asif, F. Kamiran et al. · 0 citations
Open access Aug 2026

A Context-Aware and Target-Adaptive Multilingual Framework for Hate Speech Detection in Code-Switched Social Media Text

A Context-Aware and Target-Adaptive Multilingual Hate Speech Detection model that combines multilingual transformer-based embeddings with a context-aware attention mechanism to capture semantic dependencies in text and reduces false positives is introduced.

K. Shruthi, K. Shivanna · 0 citations
Review Open access Jul 2026

Detecting Hate Speech in Hindi Digital Discourse Using Transformer–Long Short-Term Memory Models

Evaluating advanced language models for analysing hate speech in Hindi social media content illustrates that language-specific computational tools can be used for both platform governance and communication research, provided that the cultural context is considered.

Rachna Narula, Vedika Gupta, Jawad Khan et al. · 0 citations
Review Open access Jul 2026

Deep Learning Approaches for Hate Speech Detection in Resource-Constrained Social Media Texts: A Comparative Evaluation

This paper further provides empirical evidence regarding the ability of the BERT model in detecting hate speech in a rough text environment and comparing directly with other deep learning techniques, suggesting that BERT has great potential as a multilingual content moderation tool to be applied in informal and unstruc...

Yosia Immanuel Bastian, Aditiya Hermawan, Ardiane Rossi Kurniawan Maranto et al. · 0 citations
Conference Aug 2026

Zero-Shot Cross-Lingual Transfer for Hate Speech Detection Using Multilingual Models

Detecting hate speech in low-resource and unseen languages remains challenging due to limited labeled data and linguistic diversity. This paper presents a comparative study of zero-shot cross-lingual transfer for hate speech detection using two multilingual transformer models: mDeBERTa-v3 and XLM-RoBERTa. To the best o...

Ghadeer Al-Badani, M. Alsurori, Akram Alsubari · 0 citations
Review Open access 2026

Culturally Aware Malay–English Code-Mixed Hate Speech Detection: A Systematic Review and Research Taxonomy

This study presents an evidence-informed systematic review and research-readiness taxonomy for culturally aware Malay-English hate speech detection and critically evaluates existing studies based on dataset availability, code-mix authenticity, annotation practice, cultural sensitivity, model architecture, evaluation st...

F. Azmi, Normaisharah Mamat, Rawad Abdulghafor et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.