Abstract
When dealing with optimization problems that require to achieve optimal result within fewer iterations, the basic Sparrow Search Algorithm (SSA) shows insufficient solution accuracy and poor stability. In view of the above shortcomings, an improved adaptive Sparrow Search Algorithm based on complementary inertia weight (CIW-SSA) is proposed. Firstly, considering the lack of population diversity, chaos mapping is used to generate all individuals. Secondly, in order to obtain high-precision optimization results within short-term iterations, this paper created and implemented a pair of complementary inertia weights to improve search efficiency. The cooperation of this pair of complementary inertia weights not only adjusts the inertia of each individual, but also adjusts the step size of movement, which greatly improves the speed and accuracy of convergence. Thirdly, to response to the alert value of basic SSA and improve the capacity of exploration, Gaussian mutation and Cauchy mutation are organically added together to process of position update of producer. Simulation experiments were carried out through 18 classical benchmark functions with different characteristic, and the result show that the improved algorithm has faster convergence speed, more stable convergence properties and higher convergence accuracy. In addition, to prove the superiority of CIW-SSA within a few iterations, CIW-SSA is employed to optimize the hyperparameter of Long Short-Term Memory (LSTM) model for wind speed forecasting, and the test results prove the effectiveness of the improvement strategies.
Introduction
The Sparrow Search Algorithm (SSA) is a swarm intelligence optimizer inspired by the foraging and anti-predatory behaviors of sparrows. Despite its potential, the standard SSA often suffers from limited population diversity, premature convergence to local optima, and instability when restricted to a low number of iterations. This is particularly problematic in computationally expensive tasks like hyperparameter tuning for deep learning models. This paper introduces CIW-SSA, an enhanced variant designed for high-precision optimization and rapid convergence.
Proposed Methodology: CIW-SSA
The CIW-SSA incorporates three strategic improvements to the standard SSA framework:
- Iterative Chaos Mapping: To address the lack of initial population diversity, the algorithm employs a chaotic iterative map for initialization, ensuring a more uniform distribution of individuals across the search space compared to random initialization.
- Complementary Inertia Weights: The core innovation involves a pair of weights—Inertia Weight and Inverted Inertia Weight—that adapt based on a sparrow's fitness. High fitness individuals receive a weight that encourages local exploitation, while low fitness individuals receive a weight that encourages larger steps to explore new regions.
- Hybrid Mutation Strategy: To escape local optima, the algorithm integrates Gaussian and Cauchy mutations. Gaussian mutation facilitates fine-grained local searches, while Cauchy mutation enables larger jumps. The balance between these is adaptively managed based on the algorithm's internal "alarm value."
Experimental Evaluation
The CIW-SSA was rigorously tested using two distinct methodologies: mathematical benchmark functions and real-world time series forecasting.
Benchmark Functions
The algorithm's performance was evaluated against 18 classical benchmark functions, covering various characteristics such as unimodal, multimodal, and fixed-dimension problems to test accuracy, stability, and scalability.
LSTM Hyperparameter Optimization
To demonstrate practical utility, CIW-SSA was used to optimize the hyperparameters of an LSTM network (layers, hidden nodes, batch size, sequence length, learning rate, and dropout rate) for wind speed forecasting using the Delhi "Daily Climate" dataset.
Results and Discussion
Experimental results indicate that CIW-SSA significantly outperforms the standard SSA, Grey Wolf Optimizer (GWO), and Particle Swarm Optimization (PSO).
- Precision: In benchmark tests, CIW-SSA achieved precision improvements of 50 to 200 orders of magnitude over competitors.
- Forecasting Accuracy: The CIW-SSA-LSTM model reduced the Mean Absolute Error (MAE) from 2.94 to 2.57 and improved the R² value from 0.006 to 0.212 compared to a standard LSTM.
- Efficiency: The algorithm consistently reached near-optimal solutions within 200 iterations, proving its efficiency for "expensive" optimization tasks where computational resources are limited.
Conclusion
The CIW-SSA offers a robust solution for optimization problems requiring high accuracy within limited iterations. By balancing exploration and exploitation through complementary weights and hybrid mutations, it provides a superior framework for complex tasks like neural network tuning. Future work will focus on quantifying the "alarm value" and extending the algorithm's application to other engineering domains such as circuit design or PID controller tuning.
Summary updated