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

DevFeed: [Machine Learning-Based Detection of Mobile Money Scan Messages in Ghana: A Comparative Evaluation of Naive Bayes, Support Vector Machine, and Randon Forest Classifiers](<https://devfeed.tech/articles/machine-learning-based-detection-of-mobile-money-scan-messages-in-ghana-a-comparative-evaluation-of-naive-bayes-support-vector-machine-and-randon-forest-classifiers-108926.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.40544>)

Author: Ibrahim Salifu, Muhaisin Tiyumba Nantogmah

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [text-classification](<https://devfeed.tech/topics/text-classification.md>), [Model Development](<https://devfeed.tech/topics/model-development.md>), [Feature Engineering](<https://devfeed.tech/topics/feature-engineering.md>), [On-device AI](<https://devfeed.tech/topics/on-device-ai.md>)

Tags: [bayes](<https://devfeed.tech/tags/bayes.md>), [classifiers](<https://devfeed.tech/tags/classifiers.md>), [cross-validation](<https://devfeed.tech/tags/cross-validation.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [detection](<https://devfeed.tech/tags/detection.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [fraud-detection](<https://devfeed.tech/tags/fraud-detection.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [on-device](<https://devfeed.tech/tags/on-device.md>), [scam](<https://devfeed.tech/tags/scam.md>), [sms](<https://devfeed.tech/tags/sms.md>), [text](<https://devfeed.tech/tags/text.md>)

## AI overview

The study reports high classification performance for Ghanaian mobile money scam SMS using a labelled corpus of 220 messages spanning 18 subcategories. After normalising currency amounts, phone numbers and USSD codes, it applied unigram and bigram TF-IDF features to Multinomial Naive Bayes, linear SVM and Random Forest. On the held-out test set, Naive Bayes and linear SVM each scored 1.00 for accuracy, F1 and AUC; cross-validated accuracy was 96.6%, 94.9% and 92.0%, respectively. Scam indicators included urgent requests and PIN terms, while legitimate messages used confirmatory or cautionary wording. The authors caution that the small, template-based corpus may create ceiling effects and point to larger, more naturalistic multilingual data as a next step.

## Source excerpt

arXiv:2610.40544v1 Announce Type: new Abstract: Mobile money (MoMo) is Ghana's preferred retail payment channel, recording GHC518.4 billion in transactions in December 2025 and over 26.7 million active accounts (Graphic Online, 2026). This growth has coincided with increased social-engineering fraud over Short Message Service (SMS) and Unstructured Supplementary Service Data (USSD), where fraudsters impersonate network operators, agents, relatives, or regulators to obtain personal identification numbers (PINs), identity data, or funds. We present a supervised machine-learning pipeline for classifying scam and legitimate Ghanaian MoMo SMS messages using a labelled corpus of 220 messages across 18 scam and legitimate subcategories. Domain-specific normalisation of currency amounts, phone numbers, and USSD codes preceded TF-IDF vectorisation of unigrams and bigrams. Using stratified five-fold cross-validation and a 20% held-out test set, we trained and evaluated Multinomial Naive Bayes, linear support vector machine (SVM), and Random Forest classifiers using accuracy, precision, recall, F1-score, Matthews correlation coefficient (MCC), and area under the receiver operating characteristic curve (AUC-ROC). Held-out accuracy, F1, and AUC were 1.00 for Naive Bayes and linear SVM; cross-validated accuracy averaged 96.6% (+/-3.3), 94.9% (+/-4.6), and 92.0% (+/-4.2). Discriminative n-grams reflected imperative urgency ("send," "claim," "please send") and PIN solicitation ("PIN," "pincode"); legitimate messages featured confirmatory and cautionary language ("balance," "successful," "do not share"). Findings are contextualised in Sub-Saharan African SMS fraud detection, small template-based corpus ceiling effects, and a pathway toward larger naturalistic multilingual corpora. Interpretable classical classifiers achieve high accuracy on structured MoMo scam text and suit carrier- or handset-level filtering in low-resource, on-device settings.