Skip to content
Review Open access

A Deep Learning Model for Detecting Bullying Content in Swahili SMS Messages in Tanzania

Aug 2026 · East African Journal of Information Technology · 0 citations

TL;DR

A context-aware deep learning model for binary classification of bullying and non-bullying Swahili SMS messages, an empirically evaluated FastText-BiLSTM architecture, and deployment guidance that positions automated detection as a triage mechanism for human review rather than an autonomous enforcement tool are contributed.

Abstract

Automated bullying-content detection has advanced rapidly for English and other high-resource languages, yet comparable evidence for Swahili remains limited, particularly for short message service (SMS) communication in Tanzania. This study developed and evaluated a context-aware deep learning model for binary classification of bullying and non-bullying Swahili SMS messages. A multi-source corpus of 7,228 messages was initially assembled from prior Swahili datasets, voluntary student contributions, and Google Forms; duplicate records were removed during data cleaning before the train-validation partition was created. Four Kiswahili graduates applied a common annotation framework that considered the target, communicative intent, and surrounding linguistic context rather than treating offensive vocabulary as a sufficient label criterion. The messages were normalised, tokenised with a 10,000-token vocabulary, padded to 100 tokens, and represented using trainable 300-dimensional FastText embeddings. A Bidirectional Long Short-Term Memory network used 160 units in each direction, followed by dropout, a 96-unit rectified linear dense layer with L2 regularisation, and a two-class Softmax output. Candidate configurations were assessed through Keras Tuner and validation-based model selection. On the 1,470-message internal validation set created after duplicate removal, the selected model achieved 90.07% accuracy, 90.09% macro precision, 90.05% macro recall, and 90.06% macro F1-score. The confusion matrix contained 641 true negatives, 683 true positives, 80 false positives, and 66 false negatives. Bullying recall reached 91.19%, indicating that the model identified most harmful messages, although the 8.01-percentage-point training-validation gap and divergent loss curves showed moderate overfitting. The study contributes a Tanzania-focused Swahili SMS resource, an empirically evaluated FastText-BiLSTM architecture, and deployment guidance that positions automated detection as a triage mechanism for human review rather than an autonomous enforcement tool.

Read PDF

Similar papers

#small language model Review Open access Aug 2026

A Machine-Learning Model for Phishing Detection in Swahili Messages: A Case of Tanzania

Phishing conducted in Swahili has become a persistent threat to the millions of Tanzanians who depend on mobile-money services, yet the detection tools in common use are built for English and transfer poorly to a language whose morphology, register, and transactional vocabulary differ sharply from it. This study makes...

Rehema Abdallah Njame, Gustaph Sanga, I. Tende · 0 citations
Open access Oct 2026

Sentence-Level Long Short-Term Memory Framework for Real-Time Cyberbullying Prediction on Twitter Data

Cyberbullying has become one of the most persistent risks associated with social networking platforms because abusive, discriminatory, and threatening messages can be produced and disseminated at speed, scale, and low cost. This manuscript repackages an attached project into a journal-style article and presents a sente...

Gbenga A. Odelade, C. Ugwu, L. Onyejegbu · 0 citations
Open access Aug 2026

Indonesian Cyberbullying Detection Using IndoBERTweet-BiGRU Model on Class-Imbalanced X (Twitter) Data

It is demonstrated that integrating contextual language representations with sequential modeling, supported by an efficient LLM-assisted labeling strategy and class imbalance handling, provides an effective approach for Indonesian cyberbullying detection and offers a practical solution for large-scale social media cont...

F. Nafiah, Aviolla Terza Damaliana, K. M. Hindrayani · 0 citations
Conference Open access 2026

LLM-Augmented Machine Learning for Phishing Email Detection: Enhancing Classification, Explainability, and Multilingual Support

Nowadays, email is the world’s primary communication channel, making it a dominant vector for phishing attacks that exploit urgency, authority, and trust. Advances in Large Language Models (LLMs) have intensified this threat by enabling attackers to generate persuasive, context-aware, and multilingual phishing emails a...

Farouk Aziz, Norbert Oláh · 0 citations

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