Research Article

Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection

Volume: 15 Number: 2 December 31, 2025
TR EN

Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection

Abstract

Hyperparameter selection plays a pivotal role in optimizing the performance of machine learning models, particularly for tasks such as spam detection, where both accuracy and computational efficiency are critical. In this study, the Spambase dataset from the UCI Machine Learning Repository was used to evaluate six machine learning models: Multi-Layer Perceptron (MLP), Light Gradient Boosting Machine (LightGBM), Random Forest (RF), Extreme Gradient Boosting (XGBoost), Decision Tree (DT), and K-Nearest Neighbors (KNN). These models were optimized using six hyperparameter optimization techniques: Covariance Matrix Adaptation Evolution Strategy (CMA-ES), Differential Evolution (DE), Bayesian Optimization (BO), Genetic Algorithm (GA), Tree-structured Parzen Estimator (TPE), and Particle Swarm Optimization (PSO). The analysis highlights the significant impact of model and optimization method selection on predictive performance and resource efficiency. Based on the experimental results, XGBoost achieved the highest accuracy (0.9824), showcasing its effectiveness in spam detection tasks. LightGBM demonstrated a favorable balance between accuracy (0.9674) and optimization speed, making it a practical alternative. Decision Tree models were notable for their computational efficiency, optimizing in as little as 2.81 seconds with TPE. Bayesian Optimization and TPE emerged as the most efficient hyperparameter tuning methods, achieving competitive accuracy with minimal time costs. Future studies could focus on addressing challenges such as computational complexity and evolving spam patterns by exploring advanced optimization strategies and adaptive deep learning models.

Keywords

References

  1. [1] A. Petrosyan, ‘Global spam volume as percentage of total e-mail traffic from 2011 to 2023’, Statista., 2024.
  2. [2] Z. Wang, K. W. Fok, and V. L. Thing, ‘Machine learning for encrypted malicious traffic detection: Approaches, datasets and comparative study’, Computers & Security, vol. 113, p. 102542, 2022.
  3. [3] R. Agarwal et al., ‘A novel approach for spam detection using natural language processing with AMALS models’, IEEE Access, vol. 12, pp. 124298–124313, 2024.
  4. [4] L. Yang and A. Shami, ‘On hyperparameter optimization of machine learning algorithms: Theory and practice’, Neurocomputing, vol. 415, pp. 295–316, 2020.
  5. [5] Y. A. Ali, E. M. Awwad, M. Al-Razgan, and A. Maarouf, ‘Hyperparameter search for machine learning algorithms for optimizing the computational complexity’, Processes, vol. 11, no. 2, p. 349, 2023.
  6. [6] J. Wu, X.-Y. Chen, H. Zhang, L.-D. Xiong, H. Lei, and S.-H. Deng, ‘Hyperparameter optimization for machine learning models based on Bayesian optimization’, Journal of Electronic Science and Technology, vol. 17, no. 1, pp. 26–40, 2019.
  7. [7] J. Guo et al., ‘Prediction of heating and cooling loads based on light gradient boosting machine algorithms’, Building and Environment, vol. 236, p. 110252, 2023.
  8. [8] E. Elgeldawi, A. Sayed, A. R. Galal, and A. M. Zaki, ‘Hyperparameter tuning for machine learning algorithms used for arabic sentiment analysis’, presented at the Informatics, MDPI, 2021, p. 79.

Details

Primary Language

English

Subjects

Computer Software

Journal Section

Research Article

Publication Date

December 31, 2025

Submission Date

February 15, 2025

Acceptance Date

August 21, 2025

Published in Issue

Year 2025 Volume: 15 Number: 2

APA
Karamollaoğlu, H., & Doğru, İ. A. (2025). Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection. European Journal of Technique (EJT), 15(2), 261-272. https://doi.org/10.36222/ejt.1640531
AMA
1.Karamollaoğlu H, Doğru İA. Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection. EJT. 2025;15(2):261-272. doi:10.36222/ejt.1640531
Chicago
Karamollaoğlu, Hamdullah, and İbrahim Alper Doğru. 2025. “Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection”. European Journal of Technique (EJT) 15 (2): 261-72. https://doi.org/10.36222/ejt.1640531.
EndNote
Karamollaoğlu H, Doğru İA (December 1, 2025) Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection. European Journal of Technique (EJT) 15 2 261–272.
IEEE
[1]H. Karamollaoğlu and İ. A. Doğru, “Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection”, EJT, vol. 15, no. 2, pp. 261–272, Dec. 2025, doi: 10.36222/ejt.1640531.
ISNAD
Karamollaoğlu, Hamdullah - Doğru, İbrahim Alper. “Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection”. European Journal of Technique (EJT) 15/2 (December 1, 2025): 261-272. https://doi.org/10.36222/ejt.1640531.
JAMA
1.Karamollaoğlu H, Doğru İA. Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection. EJT. 2025;15:261–272.
MLA
Karamollaoğlu, Hamdullah, and İbrahim Alper Doğru. “Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection”. European Journal of Technique (EJT), vol. 15, no. 2, Dec. 2025, pp. 261-72, doi:10.36222/ejt.1640531.
Vancouver
1.Hamdullah Karamollaoğlu, İbrahim Alper Doğru. Performance Evalution of Hyperparameter Tuning Techniques for Machine Learning Models in Spam Detection. EJT. 2025 Dec. 1;15(2):261-72. doi:10.36222/ejt.1640531

All articles published by EJT are licensed under the Creative Commons Attribution 4.0 International License. This permits anyone to copy, redistribute, remix, transmit and adapt the work provided the original work and source is appropriately cited.Creative Commons Lisansı