arXiv:2610.40544cs.LGOct 2026

Manuscript Offprint

arXiv:2610.40544

Machine Learning-Based Detection of Mobile Money Scan Messages in Ghana: A Comparative Evaluation of Naive Bayes, Support Vector Machine, and Randon Forest Classifiers

Ibrahim Salifu, Muhaisin Tiyumba Nantogmah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Machine Learning-Based Detection of Mobile Money Scam Messages in Ghana: A Comparative Evaluation of Naïve Bayes, Support Vector Machine, and Random Forest Classifiers

Ibrahim Salifu 1^{1}

Muhaisin Tiyumba Nantogmah 2^{2}

1^{1}Department of Computer Science, University of Technology and Applied Sciences, Navrongo, Ghana

sibrahim26.stu@utas.edu.gh

2^{2}Department of Computer Science, University for Development Studies, Tamale, Ghana

muhaisintiyumbana1848@uds.edu.gh

Abstract

Mobile money (MoMo) has emerged as the preferred payment channel for retail transactions in Ghana, accounting for a record GH5518.4 billion worth of transactions in December 2025 alone, and with over 26.7 million active accounts across the country. In tandem with this explosive growth, the same growth has occurred also in social-engineering fraud over Short Message Service (SMS) and Unstructured Supplementary Service Data (USSD) channels, where the fraudsters pretend to be network operators, agents, relatives or regulators and elicit victims to reveal their personal identification numbers (PINs) and/or identity and/or transfer funds. In this study, we propose a supervised machine learning pipeline to discriminate between scam and legitimate Ghanaian mobile money SMS messages in a labelled corpus of 220 SMS messages from 18 different sub-categories of scam and legitimate messages. Pre-processing domain-specific normalisation for currency amounts, phone numbers and USSD codes was done, and vectorised using term frequency-inverse document frequency (TF-IDF) weighted unigrams and bigrams. Stratified five-fold cross validation with a held out test set of 20% of the data was used to train and evaluate three classifiers: Multinomial Naive Bayes, linear Support Vector Machine (SVM), and Random Forest. These classifiers were evaluated using accuracy, precision, F1-score, Matthews Correlation Coefficient (MCC), and Area Under the Receiver Operating Characteristic Curve (AUC-ROC). The held-out test performance (accuracy, F1 and AUC) showed perfect performance (accuracy = 1.00, F1 = 1.00 and AUC = 1.00) for Naive Bayes and linear SVM, and averaged 96.6% (±3.3), 94.9% (±4.6) and 92.0% (±4.2), respectively for cross-validated accuracy over folds for Naive Bayes, SVM and Random Forest. The most discriminative n-grams were found in the imperative urgency words used in scam messages (e.g., “send”, “claim”, “please send”) and the PIN-solicitation words used in the scam messages (e.g., “PIN”, “pincode”). In legitimate messages, the words, such as “balance”, “successful”, and “do not share”, concentrated on confirmatory and cautionary language. We put these results in the context of the broader body of work on fraud detection using SMS in Sub-Saharan Africa, and consider the ceiling effect of small and template-based corpora, and suggest a pathway toward larger, naturalistic, multilingual corpora. The results show that lightweight and interpretable classical classifiers show high discriminative accuracy on structured mobile money scam text and are well suited to be deployed in carrier level or handset level filtering systems in low-resource settings on device.

Keywords: mobile money fraud, SMS scam detection, smishing, machine learning, Naive Bayes, support vector machine, random forest, TF-IDF, Ghana, and fintech security.