Litcius/Paper detail

Spam Detection Boosted by Firefly-Based Feature Selection and Optimized Classifiers

Mosleh M. Abualhaj

2025International Journal of Advances in Soft Computing and its Applications17 citationsDOIOpen Access PDF

Abstract

Spam email remains a persistent cybersecurity threat, often exploiting deceptive URLs to bypass conventional filters. Effective detection requires models that achieve high accuracy while maintaining low computational overhead for real-time application. This study focuses on URL-based spam detection, addressing the underutilization of domain-specific feature selection and systematic hyperparameter optimization in existing approaches. We propose a Firefly Optimization Algorithm (FOA)–based feature-selection framework integrated with Grid Search–optimized machine learning classifiers, evaluated on the ISCX-URL2016 dataset. FOA reduced the original 72 features to 31, improving efficiency without sacrificing predictive power. With these features, K-Nearest Neighbors and Extra Trees achieved the highest accuracy (99.76%), followed by Random Forest and XGBoost (99.72%), and Logistic Regression (98.55%). The results demonstrate that combining targeted feature selection with optimized classifiers can deliver state-of-the-art detection performance with reduced complexity, offering a scalable and efficient solution for real-time spam filtering.

Topics & Concepts

Computer scienceFeature selectionRandom forestHyperparameter optimizationMachine learningHyperparameterArtificial intelligenceSupport vector machineScalabilityData miningOverhead (engineering)Selection (genetic algorithm)Feature (linguistics)Statistical classificationPattern recognition (psychology)Feature extractionDecision treeFirefly algorithmEnsemble learningLogistic regressionGridBenchmark (surveying)Model selectionNaive Bayes classifierF1 scoreSpam and Phishing DetectionAdvanced Malware Detection TechniquesCybercrime and Law Enforcement Studies