Email Spam Detection Using Logistic Regression and Explainable AI
Authors:
- 13 February 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
Abstract
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%.Keywords
This publication has 7 references indexed in Scilit:
- XAIRF-WFP: a novel XAI-based random forest classifier for advanced email spam detectionInternational Journal of Information Security, 2024
- ENHANCING EMAIL SPAM DETECTION THROUGH ENSEMBLE MACHINE LEARNING: A COMPREHENSIVE EVALUATION OF MODEL INTEGRATION AND PERFORMANCECommunications of the IIMA, 2024
- A trustworthy hybrid model for transparent software defect prediction: SPAM-XAIPLOS ONE, 2024
- Detecting Spam E-mails with Content and Weight-based Binomial Logistic ModelJournal of Web Engineering, 2024
- OEC Net: Optimal feature selection-based email classification network using unsupervised learning with deep CNN modele-Prime - Advances in Electrical Engineering, Electronics and Energy, 2023
- A hybrid correlation-based deep learning model for email spam classification using fuzzy inference systemDecision Analytics Journal, 2023
- Classifying spam emails using agglomerative hierarchical clustering and a topic-based approachApplied Soft Computing, 2023