Analisis Komparasi Kinerja LSTM dan CNN dalam Deteksi Spam Email Berbasis Deep learning
Open Access
- 3 June 2025
- journal article
- Published by Forum Kerjasama Pendidikan Tinggi (FKPT) in Bulletin of Computer Science Research
- Vol. 5 (4) , 584-593
Abstract
Spam email remains a critical issue in digital communication due to its potential misuse in spreading false information and online fraud. This study aims to evaluate and compare the performance of two deep learning models Convolutional Neural Network (CNN) and Long Short-Term Memory (LSTM) for text-based spam email classification. The dataset used in this study was obtained from Kaggle and contains 5,572 labeled email entries categorized as spam and non-spam. The preprocessing stage included labeling, cleaning, lowercasing (casefolding), tokenization, stopword removal, and stemming. The data was split into training and testing sets with a 70:30 ratio. Both models were trained using the same configuration and evaluated using accuracy, loss, confusion matrix, and F1-score metrics. The results indicate that the LSTM model achieved the highest accuracy of 98.72% with a loss value of 0.0377, outperforming the CNN model, which achieved 87.78% accuracy and a loss of 0.3659. Based on these findings, LSTM demonstrated superior performance in detecting spam emails using text-based input. This research is expected to serve as a reference for developing more accurate and effective spam detection systems in the future.Keywords
This publication has 20 references indexed in Scilit:
- Deteksi Email Spam menggunakan Algoritma Convolutional Neural Network (CNN)Jurnal Edukasi dan Penelitian Informatika (JEPIN), 2024
- Precision in Classification: A Comparative Study of Logistic Regression, Naive Bayes, LSTM, and CNN for Spam Email DetectionInternational Journal on Recent and Innovation Trends in Computing and Communication, 2023
- Pendeteksian Spam pada E-mail menggunakan Pendekatan Natural Language ProcessingPROSIDING SEMINAR NASIONAL SAINS DATA, 2023
- Classifying spam emails using agglomerative hierarchical clustering and a topic-based approachApplied Soft Computing, 2023
- KOMBINASI METODE K-MEANS DAN DECISION TREE DENGAN PERBANDINGAN KRITERIA DAN SPLIT DATAJurnal Teknoinfo, 2022
- Perbandingan Metode LSTM dan GRU (RNN) untuk Klasifikasi Berita Palsu Berbahasa IndonesiaDinamika Rekayasa, 2021
- Implementasi Algoritma Jaro-Winkler Distance dan N-Gram untuk Deteksi dan Prediksi Perbaikan Kesalahan Penulisan Kata Bahasa Indonesia pada Karya Tulis Ilmiah MahasiswaJournal of Informatics and Computer Science (JINACS), 2021
- Spam Email Detection Using Deep Learning TechniquesProcedia Computer Science, 2021
- Comparison of Deep and Traditional Learning Methods for Email Spam FilteringInternational Journal of Advanced Computer Science and Applications, 2021
- Analisis dan Implementasi Diagnosis Penyakit Sawit dengan Metode Convolutional Neural Network (CNN)Paradigma - Jurnal Komputer dan Informatika, 2020