Nanyang Technological University
Text-based phishing email detection across corpora: evaluation and limited-data adaptation
Abstract
dc:description.abstractHistorical benchmark scores do not show how a phishing email detector will behave on a new corpus. This study compares TF-IDF logistic regression, a calibrated linear support vector machine, and DistilBERT when moving from historical Kaggle email to the Human-LLM corpus, examining class-level errors, threshold transfer, and limited-label adaptation. The historical positive class includes spam and advance-fee fraud, so the task covers phishing and related deceptive email rather than strictly verified credential phishing. After cleaning, deduplication, and fixed splitting, all three source-trained models achieve historical weighted F1 above 0.98, but score 0.4376–0.6474 on a sample-disjoint holdout of 1,490 LLM-generated emails. At threshold 0.5, DistilBERT has a false-positive rate (FPR) of 7.97% and phishing recall of 42.13%; the sparse models have FPRs of 79.19–89.46% and recalls of 96.27–98.00%. Thresholds selected for FPR at or below 1% on historical validation data yield FPRs of 60.95–70.14% on this holdout. A higher aggregate score therefore does not imply fewer errors on both classes or a transferable operating point. Across quadrant-nested budgets and five paired random seeds, adaptation adds at most 400 labelled Human-LLM training emails to the historical corpus; checkpoint and threshold selection use a separate 600-email target validation set. At the largest budget, DistilBERT reaches a mean holdout weighted F1 of 0.9914 and logistic regression 0.6972, a paired difference of 0.2942 (95% bootstrap CI: 0.2704–0.3179). The slope comparison does not support faster recovery by DistilBERT (p = 0.934); it does not establish equal recovery rates either. The findings distinguish error balance, operating-point transfer, and final adaptation performance. They support evaluating these together, with the additional validation labels and resource requirements considered, but remain limited to the corpora and experimental procedures examined.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Gu, Chaoyi
- Advisor dc:contributor.supervisor
-
- -
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/235409