Hybrid Email Filtering Using TF-IDF and BERT Enhanced Spam Detector
Email spam detection is a crucial cybersecurity challenge requiring accurate and efficient filtering methods. This study introduces the TF-IDF and BERT Enhanced Spam Detector (TBESD), a hybrid deep learning model that integrates statistical and contextual text analysis for robust spam classification. TF-IDF captures essential n-gram patterns, while BERT embeddings extract deep semantic features. These feature vectors are combined and processed through a multilayer perceptron (MLP) with dropout regularization and ReLU activation for optimal classification. The methodology includes text preprocessing (normalization, stopword removal, tokenization), feature extraction (TF-IDF, BERT embeddings), and model training using the Adam optimizer with binary cross-entropy loss. Evaluated on a publicly available dataset, TBESD achieved an impressive accuracy of 98.88%, precision of 98.44%, recall of 99.44%, F1-score of 98.94%, and an AUC score of 0.9990. This study demonstrates the superiority of hybrid models over conventional methods, highlighting the role of advanced NLP techniques in cybersecurity.
Authors
- M. Sohel Rahman (ORCID: https://orcid.org/0000-0001-9419-6478)
- Abdullah Al Prince (ORCID: https://orcid.org/0009-0008-5507-5233)
- Md Abu Talha (ORCID: https://orcid.org/0009-0005-1140-0215)
- Md. Shakhauat Hossan Sumon (ORCID: https://orcid.org/0000-0002-4240-9117)
- Md. Nazmus Sakib (ORCID: https://orcid.org/0000-0002-8828-8197)
- Sumit Kanti Sarker
- Abdul Al Mahmud Riaz (ORCID: https://orcid.org/0009-0009-4919-4735)
- Sifat Sohanoor
Institutions
- American International University-Bangladesh (BD)
- University of South Wales (GB)
- North South University (BD)
- Leading University (BD)
- BRAC University (BD)
- University of Tulsa (US)
- University of Wales (GB)
Publication Details
- Published
- 2025-06-27
- DOI
- https://doi.org/10.1109/ncim65934.2025.11160311
- Primary Topic
- Spam and Phishing Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00