Email Spam Detection Using Logistic Regression and Explainable AI
Email spam detection is crucial for ensuring a positive user experience and maintaining communication security. This study presents a novel spam detection approach leveraging Logistic Regression, optimized through hyperparameter tuning and enhanced with Explainable Artificial Intelligence. The proposed method is evaluated on a large-scale dataset of emails collected from a real-world spam detection system. Term Frequency-Inverse Document Frequency is utilized for feature extraction, converting email text into numerical representations. XAI introduces interpretability by highlighting critical features such as "pill," "PHP," and "Businessweek," which indicate spam classification patterns. Metrics such as precision, recall, and the confusion matrix are employed to assess the model’s performance, ensuring a balanced evaluation. Hyperparameter optimization using Grid Search CV achieves an optimal regularization parameter (C = 100) and maximum iterations (maxiter=100), resulting in an impressive F1 score of 98.76%, accuracy of 98.82%, precision of 98.62%, and recall of 98.90%.
Authors
- Md. Kafiul Islam (ORCID: https://orcid.org/0000-0001-7654-5726)
- Rajsmita Bhattacharjee (ORCID: https://orcid.org/0000-0002-6060-2877)
- Md Abu Talha (ORCID: https://orcid.org/0009-0005-1140-0215)
- Md Abu Sufian (ORCID: https://orcid.org/0009-0007-3503-6942)
- M Ahamed
- Sumit Kanti Sarker
- Faiza Tasnim (ORCID: https://orcid.org/0009-0007-5395-8756)
- Sharia Tasnim Adrita
Institutions
- American International University-Bangladesh (BD)
- Northern University Bangladesh (BD)
Publication Details
- Published
- 2025-02-13
- DOI
- https://doi.org/10.1109/ecce64574.2025.11013300
- Citations
- 5
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 7.44