Abstract
Swarm optimization algorithms are widely used for feature selection before data mining and machine learning applications. The metaheuristic nature-inspired feature selection approaches are used for single-objective optimization tasks, though the major problem is their frequent premature convergence, leading to weak contribution to data mining. In this paper, we propose a novel feature selection algorithm named Reinforced Swarm Optimization (RSO) leveraging some of the existing problems in feature selection. This algorithm embeds the widely used Bee Swarm Optimization (BSO) algorithm along with Reinforcement Learning (RL) to maximize the reward of a superior search agent and punish the inferior ones. This hybrid optimization algorithm is more adaptive and robust with a good balance between exploitation and exploration of the search space. The proposed method is evaluated on 25 widely known UCI datasets containing a perfect blend of balanced and imbalanced data. The obtained results are compared with several other popular and recent feature selection algorithms with similar classifier configurations. The experimental outcome shows that our proposed model outperforms BSO in 22 out of 25 instances (88%). Moreover, experimental results also show that RSO performs the best among all the methods compared in this paper in 19 out of 25 cases (76%), establishing the superiority of our proposed method.
Introduction
In the era of big data, the challenge of "more" is often a hindrance rather than a help. Large datasets frequently contain irrelevant or redundant features that increase computational costs and lead to overfitting—a phenomenon where a model learns noise instead of underlying patterns. Feature Selection (FS) is the critical process of identifying the smallest subset of features that yields the highest predictive accuracy.
Mathematically, for a dataset with $N$ features, there are $2^N$ possible combinations, making exhaustive search impossible for large $N$. While nature-inspired swarm algorithms (mimicking bees, wolves, or ants) are popular for navigating this search space, they often suffer from premature convergence. They get "stuck" in local optima because they lack a memory of previous states or a strategy to adapt their search behavior dynamically. This paper introduces Reinforced Swarm Optimization (RSO) to address these limitations.
The RSO Framework
RSO merges the social intelligence of Bee Swarm Optimization (BSO) with the adaptive decision-making of Reinforcement Learning (RL).
1. The Swarm (BSO)
BSO mimics the social hierarchy of bees, including scouts, foragers, and onlookers. These agents explore search regions around a reference solution to find the most "nectar" (optimal feature subsets). However, in standard BSO, the local search process is relatively static.
2. The Brain (Q-Learning)
RSO replaces the standard search logic with a Q-learning agent. This agent maintains a memory of state-action rewards, allowing the swarm to learn from previous iterations. The agent receives "rewards" for improving classification accuracy and "punishments" for increasing the number of features (bloat).
3. The Reward Function
The heart of RSO is its reward function, which balances two objectives:
- Accuracy: Higher classification accuracy results in a higher reward.
- Parsimony: If two subsets yield similar accuracy, the one with fewer features is rewarded more.
By utilizing Temporal Difference (TD) learning, search agents become more adaptive, effectively balancing exploration (searching new areas) and exploitation (refining known good areas).
Experimental Evaluation
The proposed algorithm was rigorously tested on 25 publicly available datasets from the UCI Machine Learning Repository and the KEEL repository. These datasets represent a diverse range of domains, including biomedical, physical, and social sciences, with attributes ranging from 4 to 309 and instances ranging from 32 to over 28,000. This variety ensures the robustness of the algorithm across both balanced and imbalanced data.
Parameter Sensitivity Analysis
To understand the stability of RSO, the researchers conducted a sensitivity analysis on four key hyperparameters: Flip value, Maximum chance, Number of Bees, and Learning rate.
As shown in the analysis, while execution time (red line) generally increases with higher parameter values—particularly with the number of bees and flip values—the accuracy (blue line) remains remarkably stable. This suggests that RSO is robust to hyperparameter settings, though optimal performance is often found at specific mid-range values, such as a learning rate of approximately 0.6.
Key Results and Discussion
RSO was compared against standard BSO and seven other state-of-the-art metaheuristics, including Particle Swarm Optimization (PSO) and Grey Wolf Optimization (GWO).
- Superiority over BSO: RSO outperformed the original BSO algorithm in 22 out of 25 cases (88%), proving that the addition of the RL "brain" significantly enhances search capabilities.
- Overall Performance: RSO achieved the best results among all compared methods in 19 out of 25 cases (76%).
- Efficiency and Accuracy: On the LungCancer dataset, RSO achieved 98.53% accuracy using only 20 features. In contrast, standard BSO achieved only 50% accuracy with 21 features. This highlights RSO's ability to find highly efficient, high-performing feature subsets where other algorithms fail.
- Consistency: The hybrid model demonstrated lower variance in performance across different dataset types, indicating high robustness compared to traditional swarm models.
Conclusion
Reinforced Swarm Optimization (RSO) represents a significant advancement in feature selection by giving "memory" and "adaptive logic" to traditional swarm intelligence. By rewarding parsimony alongside accuracy, RSO ensures the development of computationally efficient models without sacrificing performance. Future work will explore the application of RSO to deep features extracted from neural networks and the integration of more complex RL architectures like Deep Q-Networks.
Summary updated