Hyperparameter Optimization of Ensemble Models for Spam Email Detection
Source abstract
Abstract
Unsolicited emails, popularly referred to as spam, have remained one of the biggest threats to cybersecurity globally. More than half of the emails sent in 2021 were spam, resulting in huge financial losses. The tenacity and perpetual presence of the adversary, the spammer, has necessitated the need for improved efforts at filtering spam. This study, therefore, developed baseline models of random forest and extreme gradient boost (XGBoost) ensemble algorithms for the detection and classification of spam emails using the Enron1 dataset. The developed ensemble models were then optimized using the grid-search cross-validation technique to search the hyperparameter space for optimal hyperparameter values. The performance of the baseline (un-tuned) and the tuned models of both algorithms were evaluated and compared. The impact of hyperparameter tuning on both models was also examined. The findings of the experimental study revealed that the hyperparameter tuning improved the performance of both models when compared with the baseline models. The tuned RF and XGBoost models achieved an accuracy of 97.78% and 98.09%, a sensitivity of 98.44% and 98.84%, and an F1 score of 97.85% and 98.16%, respectively. The XGBoost model outperformed the random forest model. The developed XGBoost model is effective and efficient for spam email detection.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Spam and Phishing Detection · Network Security and Intrusion Detection · Data Stream Mining Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Mathematics and Computer Science, Federal University of Health Sciences, Otukpo P.M.B. 145, Nigeria
Department of Mathematics and Statistics, Federal University Kashere, Gombe P.M.B. 0182, Nigeria
References (38)
Show source-provided references
1. Dixon, S. (2022, July 18). Global Average Daily Spam Volume 2021. Available online: https://www.statista.com/statistics/1270424/daily-spam-volume-global/.
2. FBI (2022, August 06). Federal Bureau of Investigation: Internet Crime Report 2021, Available online: https://www.ic3.gov/Media/PDF/AnnualReport/2021_IC3Report.pdf.
3. (2022, August 04). Securelist Types of Text-Based Fraud. Available online: https://securelist.com/mail-text-scam/106926/.
4. Development of a Machine Learning Model for Image-Based Email Spam Detection10.46792/fuoyejet.v6i4.718 ↗
5. Knowledge Base Representation of Emails Using Ontology for Spam Filtering10.1007/978-981-15-3514-7_55 ↗
6. A Systematic Literature Review on Spam Content Detection and Classification10.7717/peerj-cs.830 ↗
7. A New Semantic-Based Feature Selection Method for Spam Filtering10.1016/j.asoc.2018.12.008 ↗
8. Machine Learning Techniques for Spam Detection in Email and IoT Platforms: Analysis and Research Challenges
9. A Novel Approach for Spam Detection Using Horse Herd Optimization Algorithm10.1007/s00521-022-07148-x ↗
10. Efficient E-Mail Spam Detection Strategy Using Genetic Decision Tree Processing with NLP Features10.1155/2022/7710005 ↗
11. An Efficient Email Spam Detection Utilizing Machine Learning Approaches10.1007/978-981-16-7167-8_11 ↗
12. Evaluating the Effectiveness of Machine Learning Methods for Spam Detection10.1016/j.procs.2021.06.056 ↗
13. A Comprehensive Study of Spam Detection in E-Mails Using Bio-Inspired Optimization Techniques
14. Spam Filtering Using a Logistic Regression Model Trained by an Artificial Bee Colony Algorithm10.1016/j.asoc.2020.106229 ↗
15. Ensemble Learning: A Survey10.1002/widm.1249 ↗
16. Sheu, J.J., Chu, K.T., Li, N.F., and Lee, C.C. (2017). An Efficient Incremental Learning Mechanism for Tracking Concept Drift in Spam Filtering. PLoS ONE, 12.10.1371/journal.pone.0171518 ↗
17. CPSFS: A Credible Personalized Spam Filtering Scheme by Crowdsourcing10.1155/2017/1457870 ↗
18. Efficient Email Classification Approach Based on Semantic Methods10.1016/j.asej.2018.06.001 ↗
19. Agarwal, K., and Kumar, T. (2018, January 14–15). Email Spam Detection Using Integrated Approach of Naïve Bayes and Particle Swarm Optimization. Proceedings of the 2nd International Conference on Intelligent Computing and Control Systems, ICICCS 2018, Madurai, India.10.1109/ICCONS.2018.8662957 ↗
20. Machine Learning for Email Spam Filtering: Review, Approaches and Open Research Problems10.1016/j.heliyon.2019.e01802 ↗
21. Spam Mail Detection Using Data Mining: A Comparative Analysis10.1007/978-981-13-1921-1_56 ↗
22. Nandhini, S., and Marseline, D.J. (2020, January 24–25). Performance Evaluation of Machine Learning Algorithms for Email Spam Detection. Proceedings of the International Conference on Emerging Trends in Information Technology and Engineering, ic-ETITE 2020, Vellore, India.10.1109/ic-ETITE47903.2020.312 ↗
23. Spam Detection Approach for Secure Mobile Message Communication Using Machine Learning Algorithms
24. Smart Material to Build Mail Spam Filtering Technique Using Naive Bayes and MRF Methodologies10.1016/j.matpr.2021.04.630 ↗
25. A Weighted Feature Enhanced Hidden Markov Model for Spam SMS Filtering10.1016/j.neucom.2021.02.075 ↗
26. Classification of Unwanted E-Mails (Spam) with Turkish Text by Different Algorithms in Weka Program10.55195/jscai.1104694 ↗
27. Category-Learning Attention Mechanism for Short Text Filtering10.1016/j.neucom.2022.08.076 ↗
28. ENRON (2022, August 16). The Enron-Spam Datasets. Available online: https://www2.aueb.gr/users/ion/data/enron-spam/.
29. Wiechmann, M. (2022, August 17). GitHub—MWiechmann/Enron_spam_data: The Enron-Spam Dataset Preprocessed in a Single, Clean Csv File. Available online: https://github.com/MWiechmann/enron_spam_data.
30. Feinerer, I. (2022, August 16). Introduction to the Tm Package Text Mining in R. Available online: https://cran.r-project.org/web/packages/tm/vignettes/tm.pdf.
31. Anning-Dorson, T., Boateng, S.L., and Boateng, R. (2022). Delivering Distinctive Value in Emerging Economies, Productivity Press.
32. Random Forests10.1023/A:1010933404324 ↗
33. How Many Trees in a Random Forest?10.1007/978-3-642-31537-4_13 ↗
34. Integration of Orthoimagery and Lidar Data for Object-Based Urban Thematic Mapping Using Random Forests10.1080/01431161.2013.788261 ↗
35. Chen, T., and Guestrin, C. (2016, January 13–17). XGBoost: A Scalable Tree Boosting System. Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.10.1145/2939672.2939785 ↗
36. Oyewola, D.O., Dada, E.G., Omotehinwa, T.O., Emebo, O., and Oluwagbemi, O.O. (2022). Application of Deep Learning Techniques and Bayesian Optimization with Tree Parzen Estimator in the Classification of Supply Chain Pricing Datasets of Health Medications. Appl. Sci., 12.10.3390/app121910166 ↗
37. Impact of Hyperparameter Tuning on Machine Learning Models in Stock Price Forecasting10.1109/ACCESS.2021.3134138 ↗
38. A Comparative Analysis of Gradient Boosting Algorithms10.1007/s10462-020-09896-5 ↗