Metode Algoritma Logistic Regression dalam Klasifikasi Email Spam
Main Article Content
Abstract
This study aims to implement the Logistic Regression algorithm in spam email classification using an experimental method. Using a dataset of 4,073 emails categorized as spam and non-spam, the research involves several stages, including data preprocessing, feature extraction using the TF-IDF method, and the application of Logistic Regression for classification. The experimental evaluation of the model shows excellent performance with an accuracy of 98%, along with precision, recall, and F1-Score of 98% each. The model successfully classifies spam and non-spam emails with minimal errors, making it an effective solution for filtering unwanted emails and preventing data breaches and phishing attacks. This research demonstrates that Logistic Regression, validated through experimental analysis, is a reliable and efficient method for spam email classification and can be applied in real-world email filtering systems.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
S. Ulya, M. A. Soeleman, and F. Budiman, “Optimasi Parameter K Pada Algoritma K-NN Untuk Klasifikasi Prioritas Bantuan Pembangunan Desa,” Techno.Com, vol. 20, no. 1, pp. 83–96, 2021, doi: 10.33633/tc.v20i1.4215.
N. L. W. S. R. Ginantra et al., Data Mining dan Penerapan Algoritma. 2021.
H. Hendra, B. T. S. SP., and A. A. Setyawan, “Menggunakan Binary Classification Untuk Mendeteksi Spam Pada Sms Dengan Metode Logistic Regression,” CONTEN Comput. Netw. Technol., vol. 4, no. 1, pp. 21–30, 2024, doi: 10.31294/conten.v4i1.3543.
A. Nur, R. Hasanah, R. A. Krestianti, and S. Wati, “Implementasi Algoritma Regresi Logistik untuk Binary Classification dalam Spam SMS dan WhatsApp,” Agustus, vol. 7, pp. 2549–7952, 2023, [Online]. Available: https://proceeding.unpkediri.ac.id/index.php/inotex/
M. A. I. Hutagalung and Sutarman, “Penalized Maximum Likelihood Estimation dengan Algoritma Gradient descent pada Model Regresi Logistik Multinomial,” IJM Indones. J. Multidiscip., vol. 2, no. 6 SE-Articles, pp. 673–683, 2024, [Online]. Available: http://journal.csspublishing.com/index.php/ijm/article/view/951
A. N. Salim, A. Adryani, and T. Sutabri, “Deteksi Email Spam dan Non-Spam Berdasarkan Isi Konten Menggunakan Metode K-Nearest Neighbor dan Support Vector Machine,” Syntax Idea, vol. 6, no. 2, pp. 991–1001, 2024, doi: 10.46799/syntax-idea.v6i2.3052.
E. P. Laksono and A. Wicaksono, “Penyaringan Spam email menggunakan K-Means,” J. Spektro, vol. 5, no. 2, pp. 26–32, 2022, [Online]. Available: https://ejurnal.undana.ac.id/index.php/spektro/article/view/9531%0Ahttps://ejurnal.undana.ac.id/index.php/spektro/article/download/9531/4687
H. Rianto and R. S. Wahono, “Resampling Logistic Regression untuk Penanganan Ketidakseimbangan Class pada Prediksi Cacat Software,” J. Softw. Eng., vol. 1, no. 1, pp. 46–53, 2015.
Brury Barth Tangkere, “Analisis Performa Logistic Regression dan Support Vector Classification untuk Klasifikasi Email Phising,” J. Ekon. Manaj. Sist. Inf., vol. 5, no. 4, pp. 442–450, 2024, doi: 10.31933/jemsi.v5i4.1916.
D. Septiani and I. Isabela, “Analisis Term Frequency Inverse Document Frequency (TF-IDF) Dalam Temu Kembali Informasi Pada Dokumen Teks,” SINTESIA J. Sist. dan Teknol. Inf. Indones., vol. 1, no. 2, pp. 81–88, 2023.
E. Laksono, A. Basuki, and F. Bachtiar, “Optimization of K Value in KNN Algorithm for Spam and Ham Email Classification,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 4, no. 2, pp. 377–383, 2020, doi: 10.29207/resti.v4i2.1845.
J. Junifer Pangaribuan, H. Tanjaya, and K. Kenichi, “Mendeteksi Penyakit Jantung Menggunakan Machine Learning Dengan Algoritma Logistic Regression,” J. Inf. Syst. Dev., vol. 06, no. 02, pp. 1–10, 2021.
A. S. Lukmanul Hakim, Introduction to Machine Learning Using R. IPB Press, 2022.
I. Ir. Heliza Rahmania Hatta, S.Kom., M.Kom. et al., Intelligent Systems, no. June. Kota Batam: Penerbit Yayasan Cendikia Mulia Mandiri, 2024.