Skip to the main content

Original scientific paper

https://doi.org/10.2478/crdj-2023-0007

Effective Spam Detection with Machine Learning

Gordana Borotić ; University of Zagreb, Faculty of Electrical Engineering and Computing
Lara Granoša ; University of Zagreb, Faculty of Electrical Engineering and Computing
Jurica Kovačević ; University of Zagreb, Faculty of Electrical Engineering and Computing
Marina Bagić Babac ; University of Zagreb, Faculty of Electrical Engineering and Computing


Full text: english pdf 910 Kb

page 43-64

downloads: 88

cite


Abstract

This paper aims to provide results of empirical experiments on the accuracy of different machine learning algorithms for detecting spam messages, using a public dataset of spam messages. The originality of our study lies in the integration of topic modeling, specifically employing Latent Dirichlet Allocation (LDA) alongside machine learning algorithms for spam detection. By extracting hidden topics and uncovering patterns in spam and non-spam messages, we provide unique insights into the distinguishing characteristics of spam messages. Moreover, the integration of machine learning is a powerful tool in bolstering risk control measures ensuring the sustainability of digital platforms and communication channels. The research tests the accuracy of spam detection classifiers on an open-source dataset of spam messages. The key findings of this study reveal that the Logistic Regression classifier achieved the highest F score of 0.986, followed by the Support Vector Machine classifier with a score of 0.98 and the Naive Bayes classifier with a score of 0.955. The study concludes that Logistic Regression outperforms Naive Bayes and Support Vector Machine in text classification, particularly in spam detection, emphasizing the role of machine learning techniques in optimizing risk management strategies for sustained digital ecosystems. This capability stems from Logistic Regression's adeptness in modeling complex relationships, enabling it to achieve high accuracy on training and test datasets.

Keywords

spam; email; naive Bayes; logistic regression; support vector machine; risk; sustainability

Hrčak ID:

313834

URI

https://hrcak.srce.hr/313834

Publication date:

28.12.2023.

Visits: 162 *