Proceedings of The International Conference on Computer Science, Engineering, Social Sciences, and Multidisciplinary Studies
Vol. 1 (2025)

Implementation of the Naive Bayes Algorithm in Spam Detection in SMS Messages

Fadil, Ulfi Muzayyanah (Unknown)
Siregar, Kalfida Eka Wati (Unknown)
Ramadani, Wily Supi (Unknown)



Article Info

Publish Date
27 Oct 2025

Abstract

This study discusses the application of the Naive Bayes algorithm to detect spam messages in Short Message Service (SMS) services. The background of this study is the increasing spread of spam messages containing advertisements, fraud, and malicious content, which necessitates an automated system to distinguish spam from non-spam. The methods used in this study include collecting labeled SMS data, preprocessing (text cleaning, tokenization, stopword removal, and stemming), and feature extraction using the Term Frequency-Inverse Document Frequency (TF-IDF) technique. The Naive Bayes model was trained on a Kaggle dataset and tested in Google Colab to evaluate classification performance using accuracy, precision, and recall metrics. The results showed that the Multinomial Naive Bayes model achieved an accuracy of 96.86%, with a strong ability to recognize ham (non-spam) messages and exemplary performance in detecting spam messages. These findings demonstrate that the Naive Bayes algorithm is effective and efficient at classifying Indonesian-language text messages, making it a suitable basis for developing a more innovative, faster automatic SMS spam detection system.

Copyrights © 2025






Journal Info

Abbrev

cessmuds

Publisher

Subject

Religion Computer Science & IT Decision Sciences, Operations Research & Management Education Electrical & Electronics Engineering Engineering

Description

The International Conference on Computer Science, Engineering, Social Science, and Multi-Disciplinary Studies (CESSMUDS) with ISSN No. 3123-2507 (online) is one of the activities organized by Raskha Media Group Publisher. The International Conference on Computer Science, Engineering, Social Science, ...