Improving Email Spam Detection Using Hybrid Naïve Bayes and Support Vector Machine Models

Authors

Hamza Audi Giade

Department of Computer science Abubakar Tatari Ali Polytechnic, Bauchi, Bauchi State Nigeria (Nigeria)

Adamu Muhammad Tukur

Department of Computer science Abubakar Tatari Ali Polytechnic, Bauchi, Bauchi State Nigeria (Nigeria)

Yusuf Chindo

Department of Computer science Abubakar Tatari Ali Polytechnic, Bauchi, Bauchi State Nigeria (Nigeria)

Mahmood Sa’idu Badara

Department of Computer science Abubakar Tatari Ali Polytechnic, Bauchi, Bauchi State Nigeria (Nigeria)

Article Information

DOI: 10.51244/IJRSI.2026.1306000312

Subject Category: Cybersecurity

Volume/Issue: 13/6 | Page No: 4225-4232

Publication Timeline

Submitted: 2026-06-20

Accepted: 2026-06-25

Published: 2026-07-08

Abstract

The rapid evolution of adversarial spam within resource-constrained enterprise networks requires an urgent transition away from static heuristic filters. While deep learning transformers provide high accuracy, their heavy computational footprints require expensive hardware acceleration (GPUs) that remains impractical for local edge server deployment. This study bridges this gap by developing a low-overhead, CPU-bound Bootstrap Aggregated (Bagging) Ensemble architecture that fuses the probabilistic throughput of Multinomial Naïve Bayes (MNB) with the high-dimensional geometric separation of Support Vector Machines (SVM). Preprocessed via a rigorous natural language processing pipeline and a sub-linear TF-IDF feature mapping, evaluated against a composite benchmark corpus (N=10,000, 52% ham / 48% spam) combining Enron, SpamAssassin, and institutional logs. The hybrid engine matches the classification precision of optimized lightweight deep transformers (e.g., DistilBERT) while cutting CPU inference latency from 412.5 ms to an ultra-low 21.1 ms, the hybrid engine was evaluated against a 2024–2026 real-world benchmark corpus. Empirical results show the proposed model achieves a verified classification accuracy of 98.42% and an $F_1$-score of 98.39%—matching deep learning precision boundaries while drastically reducing mean CPU inference latency from 412.5 ms to an ultra-low 21.1 ms. This framework establishes an efficient, resource-resilient defense baseline aligned with the NIST Cybersecurity Framework (CSF) 2.0 standards for securing constrained edge environments.

Keywords

Machine Learning, Hybrid Ensemble, Bagging Strategy, Naive Bayes, Support Vector Machines (SVM), Spam Detection, Institutional Cybersecurity, TF-IDF.

Downloads

References

1. Kmail, T., Hawa, M., & Hasasneh, A. (2025). Spam Detection Using an Advanced Hybrid Model. Journal of Advances in Information Technology, 16(9), 1318-1328. https://doi.org/10.12720/jait.16.9.1318-1328 [Google Scholar] [Crossref]

2. Munga, S. (2024). Spam Detection in Emails Using Machine Learning Techniques: A Review. International Journal of Computer and Information Technology, 13(3), 115-122. [Google Scholar] [Crossref]

3. Swamy, C. V., et al. (2025). Email Spam Detection Using Machine Learning. Proceedings of the 1st International Conference on Research and Development in Information, Communication, and Computing Technologies (ICRDICCT '25), 1, 807-811. [Google Scholar] [Crossref]

4. Stanley, J., & Smith, L. (2025). Email Spam Detection: A Comparison of SVM and Naive Bayes Using Bayesian Optimization. Journal of Student Research Exploration, 2(1), 53-64. [Google Scholar] [Crossref]

5. Debnath, A. (2024). Comparative Analysis of Machine Learning and Deep Learning Models for Email Spam Classification Using TF-IDF. ResearchGate Publications. https://doi.org/10.13140/RG.2.2.3456.7890 [Google Scholar] [Crossref]

6. Al-Zoubi, A. M., et al. (2025). Advancing Image Spam Detection: Evaluating Machine Learning Models Through Comparative Analysis. Applied Sciences (MDPI), 15(11), 6158. https://doi.org/10.3390/app15116158 [Google Scholar] [Crossref]

7. IJSAT Research Group. (2025). Spam Detection Using Machine Learning: Challenges and Adaptive Solutions. International Journal on Science and Technology, 16(2), 2-10. [Google Scholar] [Crossref]

8. Alhogail, A., & Alsabih, A. (2021). Applying machine learning and natural language processing to detect phishing email. Computers and Security, 110, 102414. https://doi.org/10.1016/j.cose.2021.102414 [Google Scholar] [Crossref]

9. Banday, M. T., & Jan, T. R. (2009). Effectiveness and Limitations of Statistical Spam Filters. arXiv preprint arXiv:0910.2540, 1-13. [Google Scholar] [Crossref]

10. Bansal, C., & Sidhu, B. (2021). Machine Learning based Hybrid Approach for Email Spam Detection. Proceedings of the International Conference on Reliability, Infocom Technologies and Optimization (ICRITO '21), 1–4. https://doi.org/10.1109/icrito51393.2021.9596149 [Google Scholar] [Crossref]

11. Cohen, A., Nissim, N., & Elovici, Y. (2018). Novel set of general descriptive features for enhanced detection of malicious emails using machine learning methods. Expert Systems with Applications, 110, 143–169. https://doi.org/10.1016/j.eswa.2018.05.031 [Google Scholar] [Crossref]

12. Cormack, G. V. (2006). Email spam filtering: A systematic review. Foundations and Trends in Information Retrieval, 1(4), 335-455. https://doi.org/10.1561/1500000006 [Google Scholar] [Crossref]

13. Hanif Bhuiyan, B., et al. (2018). A Survey of Existing E-Mail Spam Filtering Methods Considering Machine Learning Techniques. Global Journal of Computer Science and Technology, 18(2), 238–250. [Google Scholar] [Crossref]

14. Mohammed, S., et al. (2013). Classifying Unsolicited Bulk Email (UBE) using Python Machine Learning Techniques. International Journal of Hybrid Information Technology, 6(1), 43–56. [Google Scholar] [Crossref]

15. Mujtaba, G., Shuib, L., Raj, R. G., Majeed, N., & Al-Garadi, M. A. (2017). Email Classification Research Trends: Review and Open Issues. IEEE Access, 5, 9044–9064. https://doi.org/10.1109/ACCESS.2017.2702187 [Google Scholar] [Crossref]

16. Murugavel, U., & Santhi, R. (2020). Detection of spam and threads identification in E-mail spam corpus using content based text analytics method. Materials Today: Proceedings, 33, 3319–3323. https://doi.org/10.1016/j.matpr.2020.04.742 [Google Scholar] [Crossref]

17. Nandhini, S., & Marseline, D. J. (2020). Performance Evaluation of Machine Learning Algorithms for Email Spam Detection. International Conference on Emerging Trends in Information Technology and Engineering (ic-ETITE), 1-4. https://doi.org/10.1109/ic-ETITE47903.2020.312 [Google Scholar] [Crossref]

18. Nayak, R., Amirali Jiwani, S., & Rajitha, B. (2021). Spam email detection using machine learning algorithm. Materials Today: Proceedings, 46, 8561-8565. https://doi.org/10.1016/j.matpr.2021.03.147 [Google Scholar] [Crossref]

19. Toma, T., Hassan, S., & Arifuzzaman, M. (2021). An analysis of supervised machine learning algorithms for spam email detection. International Conference on Automation, Control and Mechatronics for Industry 4.0 (ACMI), 1-6. https://doi.org/10.1109/ACMI53878.2021.9528108 [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles