Skip to content
Open access

Comparative Analysis of Transformer-Based and ClassicalMachine Learning Models for Phishing Email Detection:A Multi-Source Dataset Evaluation with Explainability

Sep 2026 · Enfoque UTE · 0 citations · 8 references

TL;DR

This paper compares five classifiers: Multinomial Naive Bayes, Random Forest, Bidirectional Long Short-Term Memory, BiLSTM, DistilBERT, and BERT-base, and finds that BERT-base achieves the highest F1-score and DistilBERT the lowest, representing the strongest accuracy–latency trade-off in the evaluated environment.

Abstract

Phishing remains one of the most persistent cyber threats, particularly in email environments where deceptive messages can be distributed at scale. This paper compares five classifiers: Multinomial Naive Bayes, Random Forest, Bidirectional Long Short-Term Memory (BiLSTM), DistilBERT, and BERT-base. A multi-source corpus of 82,689 cleaned and deduplicated emails was built from nine public datasets. Under a unified protocol, BERT-base achieved the highest F1-score (0.9824), while DistilBERT obtained an almost identical F1-score (0.9822) with lower measured inference latency (1.130 versus 2.218 ms/email), representing the strongest accuracy–latency trade-off in the evaluated environment. LIME explanations exposed plausible phishing indicators, such as urgency and account-verification language, but also mixed local contributions that require cautious interpretation. In the source-held-out experiment, the positive-class prevalence changed from 41.1% in training to 26.6% in testing, and DistilBERT produced 505 false negatives but only two false positives. Consequently, recall decreased from 0.9750 to 0.5346, showing that high mixed-source test performance does not guarantee robustness when complete data sources are unseen.

Read PDF

Similar papers

Sep 2026

An Explainable and Efficient Ensemble Framework for Phishing Email Detection

Phishing email detection has increasingly benefited from deep neural models and transformer-based language representations. However, many operational security settings still require detectors that are transparent, low-latency, auditable, and deployable without GPU resources. This paper presents an explainable phishing...

T. Onitiju, Swapnoneel Roy, Debajyoti Mukhopadhyay · 0 citations
Conference Open access 2026

LLM-Augmented Machine Learning for Phishing Email Detection: Enhancing Classification, Explainability, and Multilingual Support

Nowadays, email is the world’s primary communication channel, making it a dominant vector for phishing attacks that exploit urgency, authority, and trust. Advances in Large Language Models (LLMs) have intensified this threat by enabling attackers to generate persuasive, context-aware, and multilingual phishing emails a...

Farouk Aziz, Norbert Oláh · 0 citations
Review Open access Sep 2026

Artificial Intelligence for Phishing and Social-Engineering Detection: A Machine Learning Evaluation on a Benchmark URL Dataset

Phishing remains the leading initial-access vector in modern cyberattacks, and the emergence of large language models (LLMs) has made social-engineering content easier to produce and harder to distinguish from legitimate communication. This paper reviews recent (2023-2026) research on artificial-intelligence-based phis...

Muhammad Azeem Afzal, Usama Ahmad Mughal, Malik Hammad Hussain et al. · 0 citations
Conference Open access 2026

Machine-learning and DNN-based Email Phishing Recognition Methods

Email spam and phishing remain one of the threats in the information era that harms information and financial security. This study, based on machine learning methods, uses a Kaggle dataset containing over 250,000 samples to classify emails into three categories: legitimate, phishing, and spam. A pre-processing pipeline...

Yuan-Dong Wu · 0 citations
Open access 2026

Explainable Gradient Boosting for Transparent Phishing URL Detection: A Cross-Dataset, Statistically Validated SHAP Analysis of XGBoost, LightGBM, and CatBoost

: Phishing remains one of the most persistent attack vectors in cybersecurity, and the gradient-boosting models that now dominate its automated detection are frequently deployed as opaque classifiers, which limits analyst trust and slows incident response. This paper presents a cross-dataset, explainability-driven eval...

S. M. Nihal Ahmed, Afrim Hossen Khan, Mahmudur Rashid · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.