AI-Based Spam and Phishing Detection System : Empirical Evaluation of a Calibrated Dual-Stream Framework With Selective Classification
Unsolicited electronic messaging, including commercial spam, credential phishing, and mobile smishing, presents persistent operational challenges for enterprise security gateways. Conventional machine learning classifiers achieve high benchmark accuracy but suffer from posterior probability miscalibration and forced binary decisions on borderline instances, inducing costly false positives on legitimate communications. This paper evaluates CAL-SpamGuard, a lightweight framework integrating sublinear TF-IDF text n-grams (5,000 features) with 12 structural URL indicators, post-hoc Platt probability calibration, and confidence-based selective prediction (the reject option). On an audited benchmark of 12,503 authentic messages (8,597 legitimate, 3,906 malicious across SpamAssassin, UCI SMS, and Nazario corpora), CAL-SpamGuard achieves an overall unselective test accuracy of 97.68%, an F1-score of 96.22%, and an Expected Calibration Error (ECE) of 0.0095 across 10 equal-width bins. Although Linear SVM achieves higher raw unselective accuracy (98.08%), its uncalibrated sigmoid margins exhibit severe miscalibration (ECE = 0.1562). At an operating threshold (τ* = 0.78) tuned on validation data, CAL-SpamGuard's selective classification auto-classifies 96.96% of traffic with 98.51% accepted accuracy, 97.50% accepted F1, and a 0.59% False Positive Rate, deferring 38 ambiguous messages to simulated review. In a separate sender-independent experiment on 7,354 email records with disjoint senders, the model demonstrates 98.08% accuracy and 97.55% F1 on unseen senders. Cross-dataset evaluations reveal significant domain transfer drops, highlighting the necessity of channel-specific representations. With a 228 KB model footprint, 0.0007 ms core classifier dot-product latency, and 4.07 ms streaming pipeline latency (~246 msg/s/core), CAL-SpamGuard provides a resource-efficient candidate framework for confidence-aware filtering.
Authors
- Prashant Bachanna
- Asrika Reddy Ammadipally
- Keerthana Chatti
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24680956
- Primary Topic
- Spam and Phishing Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00