# 麻雀搜索算法

麻雀搜索算法（sparrow search algorithm, SSA）是一种群智能元启发式算法，通过模拟麻雀群体的觅食与反捕食行为，来搜索数值函数与工程设计问题的全局最优解。该算法于2020年被提出，此后衍生出了大量改进型、混合型、二进制型与多目标型变体。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup><sup> • </sup><sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 提出论文 | 薛建凯与沈波，《系统科学与控制工程》，2020，8(1):22–34<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup> |
| 行为模型 | 发现者（适应度最高的10–20%个体）、加入者与警戒者（随机选取10–20%作为哨兵）<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup><sup> • </sup><sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup> |
| 控制参数 | 种群规模N、最大迭代次数\( G_{\max} \)、发现者\( N_{P} \)、加入者\( N_{S} = N - N_{P} \)、警戒者SC；安全阈值ST ∈ [0.5, 1.0]，通常设为0.8<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup><sup> • </sup><sup>[4](https://cdn.techscience.press/uploads/attached/file/20211203/20211203013410_88942.pdf)</sup> |
| 提出时的基准测试 | 19个测试函数，对比GWO、GSA、PSO；SSA在精度、收敛速度、稳定性与鲁棒性上均报告为更优<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup> |
| 复杂度 | O(N·D)，若显式计入迭代次数T则为O(N·T·D)<sup>[5](https://www.sciopen.com/article/10.32604/cmc.2026.074207)</sup> |
| 已知弱点 | 易陷入局部最优、早熟收敛、参数敏感、在极高维下可扩展性有限<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC9395821/)</sup><sup> • </sup><sup>[5](https://www.sciopen.com/article/10.32604/cmc.2026.074207)</sup> |

## 工作原理

SSA对麻雀群体进行建模，其中每个个体承担三种角色之一。发现者（又称探索者）是种群中适应度最高的10–20%个体；它们负责寻找食物丰富的区域并引导其余个体。加入者（又称跟随者）构成其余部分，在发现者周围觅食。警戒者（又称哨兵或风险感知者）随机选取10–20%，负责监视捕食者，一旦察觉危险便触发群体转移。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup><sup> • </sup><sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup>角色身份在迭代之间是动态变化的，但各角色的比例固定不变。<sup>[7](https://jit.ndhu.edu.tw/article/viewFile/2862/2887)</sup>

发现者的更新由在[0, 1]区间内抽取的报警值\( R_{2} \)与[0.5, 1.0]区间内的安全阈值ST共同决定。当\( R_{2} < ST \)（无捕食者）时，发现者i按如下方式移动

\[ X_{i,j}^{t+1} = X_{i,j}^{t} \cdot \exp\left( -\frac{i}{\alpha \cdot iter_{max}} \right), \]

其中α为从(0, 1]中均匀抽取的随机数；当R2 ≥ ST时，所有麻雀通过\( X_{i,j}^{t} + Q \cdot L \)飞往安全区域，其中Q为标准正态随机数，L为1 × d的全1矩阵。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup><sup> • </sup><sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup><sup> • </sup><sup>[8](https://www.nature.com/articles/s41598-025-32080-0.pdf)</sup>加入者的更新为

\[ X_{i,j}^{t+1} = \begin{cases} Q \cdot \exp\left( \dfrac{X_{worst}^{t} - X_{i,j}^{t}}{i^{2}} \right) & \text{若 } i > n/2 \\ X_{P}^{t+1} + \left| X_{i,j}^{t} - X_{P}^{t+1} \right| \cdot A^{+} \cdot L & \text{其他情况，} \end{cases} \]

其中\( A^{+} = A^{T}(AA^{T})^{-1} \)为符号矩阵，\( X_{P} \)为最优发现者的位置；索引超过种群规模一半的个体飞往别处觅食。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup><sup> • </sup><sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>适应度劣于全局最优的警戒者按\( X_{best}^{t} + \beta \cdot |X_{i,j}^{t} - X_{best}^{t}| \)向全局最优移动（β为标准正态随机数）；否则以步长\( K \cdot (|X_{i,j}^{t} - X_{worst}^{t}| / ((f_i - f_w) + \varepsilon)) \)远离最差位置，其中K ∈ [−1, 1]，ε用于防止除零。<sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup>

## 操作流程

实践者按五个步骤运行：(1) 在边界内随机初始化N个位置并评估适应度；(2) 按适应度排序，将前NP个个体指派为发现者，其余为加入者，并随机标记10–20%为警戒者；(3) 每次迭代抽取\( R_{2} \)，按报警规则更新发现者，再围绕最优发现者更新加入者；(4) 按反捕食规则更新警戒者；(5) 评估、保留最优解，重复直至达到\( G_{\max} \)次迭代或其他停止准则。已发表的典型设置为\( N = 30 \)、\( G_{\max} = 100 \)、发现者约占20%、\( ST = 0.8 \)。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup><sup> • </sup><sup>[7](https://jit.ndhu.edu.tw/article/viewFile/2862/2887)</sup><sup> • </sup><sup>[4](https://cdn.techscience.press/uploads/attached/file/20211203/20211203013410_88942.pdf)</sup>每次迭代的开销为O(N·D)；多目标存档会带来额外开销。<sup>[5](https://www.sciopen.com/article/10.32604/cmc.2026.074207)</sup>

## 起源

SSA由薛建凯与沈波在《一种新颖的群智能优化方法：麻雀搜索算法》一文中提出，发表于《系统科学与控制工程》，2020年。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup>其行为模型建立在C.J. 巴纳德与R.M. 西布利1981年对圈养[家麻雀](https://www.edgepedia.org/zh/house-sparrow)群体研究提出的发现者—加入者觅食框架之上。<sup>[9](https://doi.org/10.1016/s0003-3472%2881%2980117-0)</sup>提出论文以PSO易早熟收敛、ACO搜索速度慢为动机，而后来的综述则援引沃尔珀特与麦克雷迪1997年的无免费午餐定理，为改进或混合SSA提供依据。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup><sup> • </sup><sup>[10](https://doi.org/10.1109/4235.585893)</sup><sup> • </sup><sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>

## 变体

2023年的一篇综述将改进分为七类：混沌、随机游走、离散、自适应、反向学习、[莱维飞行](https://www.edgepedia.org/zh/levy-flight)及其他，另有多种多目标版本以及嵌入神经网络与SVM中的SSA。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>有名称的变体包括：

- **CLSSA**：用混沌映射序列（其中迭代映射排名第一）替代\( R_{2} \)，并加入对数螺旋与自适应步长。<sup>[4](https://cdn.techscience.press/uploads/attached/file/20211203/20211203013410_88942.pdf)</sup>
- **自适应螺旋飞行SSA**（欧阳、邱、朱，2021）、**莱维飞行加反向学习SSA**（陈等，2021），以及**混沌映射与t分布变异自适应SSA**（杨等，2021）。<sup>[11](https://doi.org/10.1155/2021/6505253)</sup><sup> • </sup><sup>[12](https://doi.org/10.1108/aa-09-2020-0134)</sup><sup> • </sup><sup>[13](https://doi.org/10.3390/app112311192)</sup>
- **iBSSA**：二进制版本，用于包裹式特征选择，采用游走代理的随机重定位与局部搜索，并使用九种S形与V形传递函数。<sup>[14](https://doi.org/10.1007/s00521-022-07203-7)</sup>
- **多目标SSA**（李与王，2022），用于复杂多目标问题。<sup>[15](https://doi.org/10.1016/j.eswa.2022.118414)</sup>
- 2023年后的多策略版本：**MISSA**（2025）加入受黑翅鸢启发的搜索策略、受白骨顶启发的群体跟随策略以及随机反向学习；<sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup>**MSISSA**加入自适应权重（ω在(0.1, 0.7)内）、用于跟随者的飞蛾扑焰螺旋以及用于哨兵的莱维飞行；<sup>[8](https://www.nature.com/articles/s41598-025-32080-0.pdf)</sup>**AWSSA**采用自适应威布尔变异与正弦搜索；<sup>[16](https://www.mdpi.com/2076-3417/14/8/3460)</sup>**NTSSA**（2025）融合北方苍鹰优化、自适应t分布变异、双混沌初始化与精英保留；<sup>[17](https://www.techscience.com/cmc/v85n1/63524)</sup>**TS-SSA**面向大规模高维多目标问题；<sup>[18](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0314584)</sup>**IMSSA-ICM**（2025）采用迭代混沌初始化、精英反向学习与轮盘赌选择。<sup>[19](https://zkxb.jsu.edu.cn/EN/10.13438/j.cnki.jdzk.2025.05.006)</sup>

## 应用

已报告的应用涵盖机械、电气与土木工程、电力系统、工业工程、图像处理、网络、机器人、规划与调度以及医疗健康。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>具体编目的用途包括多无人机路径规划、风光柴储容量配置、基于LSTM的负荷预测、SVM故障诊断，以及无线传感器网络中的节能簇头选择。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>iBSSA在18个UCI数据集上的特征选择实现了最高92%的特征规模缩减，在部分数据集上分类准确率最高达100%，所用分类器为k-NN、SVM与随机森林。<sup>[14](https://doi.org/10.1007/s00521-022-07203-7)</sup>MSISSA被应用于三维无线传感器节点部署，在30个与50个节点时分别达到91.89%与99%的覆盖率。<sup>[8](https://www.nature.com/articles/s41598-025-32080-0.pdf)</sup>一篇2026年的工业综述将应用归为六大集群：故障诊断、生产调度、边缘智能控制、可再生能源与微电网优化、电池预测与健康管理以及工业网络安全。<sup>[5](https://www.sciopen.com/article/10.32604/cmc.2026.074207)</sup>

## 局限与替代方案

提出之初，SSA在19个基准函数上与GWO、GSA、PSO对比测试，报告在精度、收敛速度、稳定性与鲁棒性上更优；在单峰函数F1–F4上取得了最优值，在多峰函数F9上约20次迭代即收敛，而GWO约需180次，不过PSO在F6上的精度高于SSA。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup>后来的论文在更难的问题上给出了不同的图景：MISSA的作者指出，基础SSA“在处理复杂函数时不如其他一些元启发式算法，如MPSO、WOA与GWO”，并将陷入局部最优归因于加入者更新，该更新会把许多个体驱赶到同一位置。<sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup>综述将收敛慢、收敛精度低、易陷入局部最优以及无法应对大规模维度列为原算法的缺点。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC9395821/)</sup><sup> • </sup><sup>[20](https://dl.acm.org/doi/abs/10.1007/s10462-023-10435-1)</sup>AWSSA的论文指出了一个结构性缺陷：发现者的指数项从[0, 1]收窄至[0, 0.4]，导致发现者停滞、全局搜索能力弱。<sup>[16](https://www.mdpi.com/2076-3417/14/8/3460)</sup>参数敏感性有定性记载，性能被描述为对[参数](https://www.edgepedia.org/zh/parameter)选择高度敏感，<sup>[21](https://www.mdpi.com/2313-7673/10/5/299)</sup>一篇2026年的综述补充了在极高维任务中的可扩展性退化以及缺乏形式化收敛保证。<sup>[5](https://www.sciopen.com/article/10.32604/cmc.2026.074207)</sup>变体的增益可能因函数而异：一种改进SSA在函数F5、F6、F12与F13上表现不如原始SSA，而在其他函数上有所改进。<sup>[22](https://www.aimspress.com/aimspress-data/mbe/2023/9/PDF/mbe-20-09-767.pdf)</sup>

在与替代方案的比较中，SSA在已发表的对比中直接与PSO、GWO、WOA与GSA竞争，2023年后的变体则在更广的算法池上做基准测试（MISSA对比PSO、GWO、MFO、WOA、SSA、SCA、AHA、WSO与NGO，在24个函数中的22个上取得最优均值）。<sup>[1](https://doi.org/10.1080/21642583.2019.1708830)</sup><sup> • </sup><sup>[3](https://www.nature.com/articles/s41598-025-86298-z)</sup>自2023年末以来，变体文献已围绕在一个算法中组合多种机制的多策略设计趋于整合，而2026年的工业综述提出了一个变体选择矩阵，建议对高维调参采用量子与差分进化混合变体，对含噪多峰地形采用混沌或莱维SSA，对调度问题采用多目标SSA。<sup>[5](https://www.sciopen.com/article/10.32604/cmc.2026.074207)</sup>有一点值得强调：已发表的对比全部来自提出SSA或改进SSA的论文。<sup>[2](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)</sup>

## References

1. [Jiankai Xue, Bo Shen (2020). A novel swarm intelligence optimization approach: sparrow search algorithm. Systems Science & Control Engineering.](https://doi.org/10.1080/21642583.2019.1708830)
2. [Recent Versions and Applications of Sparrow Search Algorithm (Archives of Computational Methods in Engineering, 2023)](https://link.springer.com/content/pdf/10.1007/s11831-023-09887-z.pdf)
3. [An improved sparrow search algorithm with multi-strategy integration (MISSA)](https://www.nature.com/articles/s41598-025-86298-z)
4. [A Chaos Sparrow Search Algorithm with Logarithmic Spiral and Adaptive Step for Engineering Problems (CLSSA, CMES, 2022)](https://cdn.techscience.press/uploads/attached/file/20211203/20211203013410_88942.pdf)
5. [Industrial-Oriented Applications of Sparrow Search Algorithm in Machine Learning Optimization: A Review of Emerging Trends (CMC, 2026)](https://www.sciopen.com/article/10.32604/cmc.2026.074207)
6. [Advances in Sparrow Search Algorithm: A Comprehensive Survey (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC9395821/)
7. [Binary Sparrow Search Algorithm for Feature Selection (Journal of Internet Technology, NDHU)](https://jit.ndhu.edu.tw/article/viewFile/2862/2887)
8. [Improved Sparrow Search Algorithm with Multi-Strategies (MSISSA) for 3D wireless sensor node deployment (Scientific Reports, 2025)](https://www.nature.com/articles/s41598-025-32080-0.pdf)
9. [Producers and scroungers: A general model and its application to captive flocks of house sparrows (Animal Behaviour, 1981)](https://doi.org/10.1016/s0003-3472%2881%2980117-0)
10. [D.H. Wolpert, W.G. Macready (1997). No free lunch theorems for optimization. IEEE Transactions on Evolutionary Computation.](https://doi.org/10.1109/4235.585893)
11. [Chengtian Ouyang, Yaxian Qiu, Donglin Zhu (2021). Adaptive Spiral Flying Sparrow Search Algorithm. Scientific Programming.](https://doi.org/10.1155/2021/6505253)
12. [Danni Chen and colleagues (2021). An improved sparrow search algorithm based on levy flight and opposition-based learning. Assembly Automation.](https://doi.org/10.1108/aa-09-2020-0134)
13. [Xiaoxu Yang and colleagues (2021). A Novel Adaptive Sparrow Search Algorithm Based on Chaotic Mapping and T-Distribution Mutation. Applied Sciences.](https://doi.org/10.3390/app112311192)
14. [Ahmed G. Gad and colleagues (2022). An improved binary sparrow search algorithm for feature selection in data classification. Neural Computing and Applications.](https://doi.org/10.1007/s00521-022-07203-7)
15. [Bin Li, Honglei Wang (2022). Multi-objective sparrow search algorithm: A novel algorithm for solving complex multi-objective optimisation problems. Expert Systems with Applications.](https://doi.org/10.1016/j.eswa.2022.118414)
16. [Research and Application of an Improved Sparrow Search Algorithm (AWSSA, Applied Sciences, MDPI, 2024)](https://www.mdpi.com/2076-3417/14/8/3460)
17. [NTSSA: A Novel Multi-Strategy Enhanced Sparrow Search Algorithm with Northern Goshawk Optimization and Adaptive t-Distribution for Global Optimization (CMC, 2025)](https://www.techscience.com/cmc/v85n1/63524)
18. [TS-SSA: An improved two-stage sparrow search algorithm for large-scale many-objective optimization problems (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0314584)
19. [An Improved Multi-Strategy Sparrow Search Algorithm Based on Iterative Chaotic Mapping (IMSSA-ICM, Journal of Jishou University, 2025)](https://zkxb.jsu.edu.cn/EN/10.13438/j.cnki.jdzk.2025.05.006)
20. [Review and empirical analysis of sparrow search algorithm (Artificial Intelligence Review, 2023)](https://dl.acm.org/doi/abs/10.1007/s10462-023-10435-1)
21. [Modified Sparrow Search Algorithm by Incorporating Multi-Strategy for Solving Mathematical Optimization Problems (MSSA, Biomimetics, MDPI)](https://www.mdpi.com/2313-7673/10/5/299)
22. [Research on multi-strategy improved sparrow search optimization algorithm (Mathematical Biosciences and Engineering, 2023)](https://www.aimspress.com/aimspress-data/mbe/2023/9/PDF/mbe-20-09-767.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming › Swarm intelligence optimizers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/sparrow-search-algorithm

English original: https://www.edgepedia.org/sparrow-search-algorithm
