Multiple Machine Learning Algorithms for Spam Mail Detection
DOI:
https://doi.org/10.54097/hset.v39i.6698Keywords:
Spam Mail Detection; Support Vector Machine; Naïve Bayes; Decision Tree; Neural Network.Abstract
Due to several issues including clogging mailboxes and obscuring critical personal correspondence caused by a large amount of spam mail, spam filtering application based on machine learning models has become more and more essential. This paper gives a comprehensive evaluation of 4 classic machine learning models including the Naïve Bayes classifier, support vector machine, neural network, and the decision tree in the task of spam email evaluation. In order to make fair comparisons between the algorithms, they were all built by learning from the same training dataset and asked to make predictions on the same testing dataset. More specifically, the Naïve Bayes classifier uses the conditional probability of the Naïve Bayes theorem and consumes the words that appear independently in the emails. The decision tree algorithm keeps recursively splitting the dataset to build a predictive theory. Support vector machine is able to make predictions by transforming the training dataset to a linear equation in n-dimensions. And neural networks can recognize the non-linear relationships between the inputs and outputs by constructing the front, hidden, and output layers. It is observed from the result that all machine learning models have successfully classified spam emails with high testing accuracy which are all above 90%. More specifically, the neural network achieves the highest testing accuracy followed by the support vector machine and decision tree. While the Naïve Bayes classifier does not perform well enough as it must assume the appearance of words happens independently.
Downloads
References
Wikipedia, Email Spam, Available at: https://en.wikipedia.org/wiki/Email_spam, 2022.
Sabrina I. Pacifici. What's On the Other Side of Your Inbox - 20 SPAM Statistics for 2022. Available at: https://www.bespacific.com/20-spam-statistics-for-2022/, 2022.
Vikas P. Deshpande, Robert F. Erbacher, Chris Harris. An Evaluation of Naïve Bayesian Anti-Spam Filtering Techniques. IEEE, 2007.
H. Drucker, Donghui Wu, V.N. Vapnik. Support vector machines for spam categorization. IEEE Transactions on Neural Networks, 2007.
Aman Goel. Spam Detection Using Neural Networks in Python. Available at: https://medium. com/ emergent-future/spam-detection-using-neural-networks-in-python-9b2b2a062272, 2016.
Meunier, Laurent, et al. A dynamical system perspective for Lipschitz neural networks. International Conference on Machine Learning. PMLR, 2022.
Q. Yu et al. Semantic segmentation of intracranial hemorrhages in head CT scans. In 2019 IEEE 10th International Conference on Software Engineering and Service Science (ICSESS) (pp. 112-115). IEEE. 2019.
Guo, Jianyuan, et al. Cmt: Convolutional neural networks meet vision transformers. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2022.
IBM Cloud Education. Neural Networks. Available at https://www.ibm.com/cloud/learn/neural-networks, 2020.
Wikipedia, Decision Tree, Available at: https://en.wikipedia.org/wiki/Decision_tree, 2022.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







