Machine Learning-Based Spam Email Classification
DOI:
https://doi.org/10.61173/stecep16052Keywords:
Spam detection, machine learning, XGBoost, random forest, text classificationAbstract
Electronic communication forms the foundation of today's digital infrastructure. Contemporary filter systems need to handle high-dimensional textual sparsity and fluctuating vocabulary distributions continuously by bypassing static defenses. Fluctuations in the dataset and an increase in the demand for low-latency inference at some network edge nodes have also raised the operating risk of the enterprise infrastructure. Given the above problems, the low-complexity operational baseline is provided by traditional probabilistic frameworks. Deep neural networks and pre-trained large language models (LLMs) can achieve contextual zero-shot classification but are computationally intensive and lack interpretability. Tree-based ensemble classifiers have achieved a good trade-off between prediction accuracy and inference speed for high-dimensional text matrices. Random forest models use parallel dual-randomness sampling and majority voting to handle token noise, and XGBoost employs second-order Taylor approximations and L2 regularization for fast convergence under strict latency constraints and class imbalance. This paper provides a mathematical foundation for well-known tree-based ensemble classifiers, including XGBoost and random forest. By investigating the basic structure of features and optimisation surfaces, this paper proposes all-encompassing structural plans for building high-adaptability text classification systems that can handle various data shifts.
References
Amjady N. Short-term hourly load forecasting using time series modeling with peak load estimation capability. IEEE Transactions on Power Systems, 2001, 16(4): 798-805.
Ahmed N, Amin R, Aldabbas H, Koundal D, Alouffi B, Shah T. Machine learning techniques for spam detection in email and IoT platforms: Analysis and research challenges. Security and Communication Networks, 2022: 1862888.
Munga S, Mathenge R, Karani J, Muriithi N. Spam detection in emails using machine learning techniques: A review. International Journal of Computer and Information Technology, 2024, 13(3): 115-120.
Wang X. Spam filtering in the modern era: A review of machine learning, deep learning, and system comparisons. Proceedings of the 2nd International Conference on Data Analysis and Machine Learning (DAML 2024), 2024: 451-458.
Sergio R. Zero-shot spam email classification using pre-trained large language models. arXiv, 2024.
Gao Y. A systematic review and outlook on machine-learning-based methods for spam filtering. Applied and Computational Engineering, 2023, 4(1): 702-709.
Occhipinti A, Rogers L, Angione C. A pipeline and comparative study of 12 machine learning models for text classification. arXiv, 2022.
Alshaikh M, Alrajeh Y, Alamri S, Melhem S, Abu-Khadrah A. Supervised methods of machine learning for email classification: a literature survey. Systems Science & Control Engineering, 2025, 13(1).
Chen T, Guestrin C. XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016: 785-794.
Breiman L. Random forests. Machine Learning, 2001, 45(1): 5-32.
Kontsewaya Y, Antonov E, Artamonov A. Evaluating the effectiveness of machine learning methods for spam detection. Procedia Computer Science, 2021, 190: 479-486.
Nikhil K, Sanket S, Nishant. Email spam detection using machine learning algorithms. IEEE International Conference on Intelligent Resources, 2020.
Gibson S, Issac B, Zhang L, Jacob S. Detecting spam email with machine learning optimized with bio-inspired metaheuristic algorithms. IEEE Access, 2020, 8: 187914-187932.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 by the authors.

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