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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Email Spam Detection Using Logistic Regression and Explainable AI

Md. Kafiul Islam, Rajsmita Bhattacharjee, Md Abu Talha, Md Abu Sufian et al.
5 citations
Network Security and Intrusion Detection
7.44
article

Email Spam Detection Using Logistic Regression and Explainable AI

Md. Kafiul Islam, Rajsmita Bhattacharjee, Md Abu Talha, Md Abu Sufian, M Ahamed, Sumit Kanti Sarker, Faiza Tasnim, Sharia Tasnim Adrita
article en
5 citations

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%.

American International University-Bangladesh (BD), Northern University Bangladesh (BD)
Climate action
Openalex Percentile: Top 3%
Network Security and Intrusion Detection
7.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.