# 粒子滤波

粒子滤波是一种序贯蒙特卡洛方法，它通过状态空间模型传播一组带权重的样本粒子，从含噪观测中估计动态系统的隐状态。对于不存在闭式解的非线性系统，它给出贝叶斯滤波问题的近似解；它不对线性或高斯噪声作任何假设，而卡尔曼族滤波器恰恰依赖这些假设。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-control-042920-015119)</sup><sup> • </sup><sup>[2](https://doi.org/10.1049/ip-f-2.1993.0015)</sup> 每个时间步的输出是状态后验概率密度的一个带权重点质量近似，由此可以计算均值或最大值等估计量；该方法将卡尔曼滤波推广到了任意形状的后验密度。<sup>[3](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup><sup> • </sup><sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 后验状态密度的带权重样本近似，随观测到来递归更新<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> |
| 问题类别 | 非线性、非高斯贝叶斯状态估计，此类问题中卡尔曼滤波及其扩展依赖线性化<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-control-042920-015119)</sup><sup> • </sup><sup>[3](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup> |
| 自举滤波 | 1993年由戈登、萨蒙德和史密斯在《IEE会刊F辑》上提出<sup>[2](https://doi.org/10.1049/ip-f-2.1993.0015)</sup> |
| 退化控制 | 有效样本量介于1与N之间；当其低于阈值（通常为\( N/2 \)）时进行重采样<sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup> |
| 计算代价 | 自举滤波每次迭代为\( O(N) \)，且观测似然需有闭式表达<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> |
| 维数限制 | 所需粒子数随状态维数指数增长；有效维数超过约100即被认为不切实际<sup>[6](https://doi.org/10.1175/2008mwr2529.1)</sup><sup> • </sup><sup>[7](https://onlinelibrary.wiley.com/doi/10.1155/2016/9372786)</sup> |
| 精度标度 | 均方根误差按粒子数\( N^{-1/2} \)的速率收敛<sup>[8](https://www.irisa.fr/aspi/legland/pub/bui-quang10a.pdf)</sup> |

## 工作原理

该方法针对的是这样一个状态空间模型：隐状态通过转移密度演化，并通过量测密度被观测。精确的递归贝叶斯滤波交替进行两步：预测步通过转移密度传播后验，更新步用新观测施加贝叶斯法则；对非线性模型而言，这些递归没有闭式解，蒙特卡洛近似正是为解决这一问题而生。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-control-042920-015119)</sup>

序贯重要性采样是核心机制。每个粒子先通过转移密度传播，再按其在新观测下的似然赋权，于是带权重的粒子集便近似了后验。自举滤波的关键更新阶段把贝叶斯法则实现为带权重的自举（以正比于权重的概率对粒子重采样），这一构造的动机来自史密斯和格尔凡德的一个采样-重采样结果。<sup>[2](https://doi.org/10.1049/ip-f-2.1993.0015)</sup><sup> • </sup><sup>[9](https://doi.org/10.1080/00031305.1992.10475856)</sup> 以转移密度本身作为提议分布，便定义了自举滤波。<sup>[10](https://arxiv.org/pdf/cs/0507025)</sup>

仅靠朴素的重要性采样并不够：SIS估计的方差通常随时间指数增长，而重采样正是部分解决这一问题的要素。<sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup>

## 具体做法

实践者在每个观测时刻运行如下循环：

1. **初始化。** 从初始状态的先验中抽取N个粒子，每个权重为\( 1/N \)。
2. **传播。** 让每个粒子通过转移（过程）模型向前模拟。
3. **赋权。** 按观测似然为每个粒子赋权，似然以闭式求值；只要求能够从传播分布中模拟。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup>
4. **重采样。** 计算有效样本量\( \mathrm{ESS} = 1 / \sum_{i} (w_{n}^{i})^{2} \)，其取值范围从1（全部权重集中于一个粒子）到N（权重均等）。<sup>[11](https://www.nature.com/articles/s41598-024-69901-7)</sup><sup> • </sup><sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup> 仅当ESS低于阈值（通常为\( N/2 \)）时才重采样：复制高权重粒子、丢弃低权重粒子，并将权重重置为\( 1/N \)。<sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup><sup> • </sup><sup>[12](https://discovery.ucl.ac.uk/id/eprint/1508064/1/PF_tutorial.pdf)</sup>
5. **估计。** 从粒子集中报告一个点估计，例如加权均值。

四种基本重采样方案——多项分布、分层、系统与残差重采样——都是无偏的，且都能在\( O(N) \)内实现；系统重采样在重采样质量和计算复杂度两方面都较优，而残差重采样确定性地给粒子i分配floor(Nwᵢ)个副本，再按残差权重抽取其余粒子。<sup>[13](https://users.isy.liu.se/rt/schon/Publications/HolSG2006.pdf)</sup><sup> • </sup><sup>[14](https://doi.org/10.2307/2669847)</sup><sup> • </sup><sup>[10](https://arxiv.org/pdf/cs/0507025)</sup> 实践中残差、分层与系统方案结果相当，而系统重采样因简单而更受青睐。<sup>[10](https://arxiv.org/pdf/cs/0507025)</sup>

## 起源

粒子滤波的最早踪迹可追溯到20世纪50年代，控制界在70年代也曾尝试，但现代纪元始于1993年的自举滤波论文。<sup>[15](https://people.isy.liu.se/rt/fredrik/reports/09TAESpftutorial.pdf)</sup> 一个早期先驱是J. E. 汉德辛和D. Q. 梅恩1969年发表在《国际控制杂志》上的多阶段非线性滤波蒙特卡洛处理；其先验重要性函数与后来的自举滤波密切相关，尽管它对离群值敏感。<sup>[16](https://doi.org/10.1080/00207176908905777)</sup><sup> • </sup><sup>[17](https://www.stats.ox.ac.uk/~doucet/doucet_godsill_andrieu_sequentialmontecarloforbayesfiltering.pdf)</sup> 20世纪60至70年代自动控制领域的工作因计算能力所限大多被忽视，而80年代末计算能力的提升使这一方法得以重生。<sup>[17](https://www.stats.ox.ac.uk/~doucet/doucet_godsill_andrieu_sequentialmontecarloforbayesfiltering.pdf)</sup>

自举滤波由N. J. 戈登、D. J. 萨蒙德和A. F. M. 史密斯报告于《IEE会刊F辑》第140卷第2期，1993年4月，第107–113页；综述文献还将一种蒙特卡洛滤波方法列为独立发展。<sup>[2](https://doi.org/10.1049/ip-f-2.1993.0015)</sup><sup> • </sup><sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-control-042920-015119)</sup> 一篇被广泛引用的论述将该领域整合为通用的序贯重要性采样框架，推导了权重条件方差最小意义下的最优重要性函数。<sup>[17](https://www.stats.ox.ac.uk/~doucet/doucet_godsill_andrieu_sequentialmontecarloforbayesfiltering.pdf)</sup> 采样-重要性-重采样思想最初是在非动态框架中提出的，后又被统计学家独立重新发现。<sup>[18](https://people.bordeaux.inria.fr/pierre.delmoral/Lecture-survey-chen.pdf)</sup>

## 变体

SIR（采样重要性重采样）算法又称自举滤波，每一步都重采样；SIS变体则仅在需要时重采样。<sup>[15](https://people.isy.liu.se/rt/fredrik/reports/09TAESpftutorial.pdf)</sup> SIR、辅助SIR和正则化粒子滤波都是通用SIS算法的特例，区别在于重要性密度和重采样步骤；正则化滤波从后验的连续近似中重采样。<sup>[3](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup>

辅助粒子滤波由迈克尔·K. 皮特和尼尔·谢泼德于1999年发表在《美国统计协会杂志》上，它在提议分布中引入辅助变量，使预测似然高的粒子优先被抽到，从而提高统计效率，并允许大幅减少提议数；它通过在时刻\( t - 1 \)与\( t \)的状态乘积空间上操作，避开了最优提议的\( O(N^{2}) \)复杂度。<sup>[19](https://doi.org/10.1080/01621459.1999.10474153)</sup><sup> • </sup><sup>[20](https://www.nuffield.ox.ac.uk/economics/papers/1999/w13/pittshephard.pdf)</sup><sup> • </sup><sup>[21](https://arxiv.org/html/1709.04196)</sup> 采用精确预测似然的APF被称为“完全自适应”APF。<sup>[22](https://people.maths.bris.ac.uk/~manpw/apf_chapter.pdf)</sup>

Rao-Blackwell化（边缘化）粒子滤波利用条件线性-高斯结构：每个粒子估计一部分状态，并为其余部分携带一个卡尔曼滤波，从而降低计算代价；fastSLAM是这一思想的一个版本，其中成百上千个特征点用（扩展）卡尔曼滤波更新。<sup>[15](https://people.isy.liu.se/rt/fredrik/reports/09TAESpftutorial.pdf)</sup><sup> • </sup><sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> 扩展卡尔曼粒子滤波以每个粒子的EKF高斯后验作为重要性密度，无迹粒子滤波则用UKF取代这些EKF；UKF版本在各种仿真实例中优于EKPF，但两者都不能保证胜过标准粒子滤波。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> 对于含静态参数的模型，刘–韦斯特滤波将APF推广到序贯参数更新；而卡瓦略、洛佩斯、波尔森和塔迪于2010年发表在《贝叶斯分析》上的粒子学习，在仿真研究中既优于刘–韦斯特滤波也优于斯托维克滤波，并与MCMC采样器相当。<sup>[23](https://faculty.mccombs.utexas.edu/carlos.carvalho/teaching/lopes-tsay-2010.pdf)</sup><sup> • </sup><sup>[24](https://doi.org/10.1214/10-ba525)</sup> 粒子马尔可夫链蒙特卡洛方法由安德里厄、杜塞和霍伦斯坦于2010年报告，将粒子滤波与MCMC联系起来，用于状态与参数的联合推断。<sup>[25](https://doi.org/10.1111/j.1467-9868.2009.00736.x)</sup> 一个新兴趋势是可微粒子滤波，它用神经网络构造滤波器的各组件——动态模型、量测模型、提议分布、目标函数和重采样——并通过梯度下降优化。<sup>[26](https://www.aimsciences.org/article/doi/10.3934/fods.2023014?viewType=HTML)</sup>

## 应用

粒子滤波常用于计算机视觉、计量经济学、机器人学和导航。<sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup> 有文献记载的用途包括机器人定位与同时定位与建图、视频中的多目标跟踪、水下航行器、水面舰船、汽车和飞机的定位、无线通信、混合系统故障检测、计量经济学中的随机波动率模型，以及人类认知模型，如概率类别学习中的时变学习率。<sup>[12](https://discovery.ucl.ac.uk/id/eprint/1508064/1/PF_tutorial.pdf)</sup><sup> • </sup><sup>[15](https://people.isy.liu.se/rt/fredrik/reports/09TAESpftutorial.pdf)</sup><sup> • </sup><sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup><sup> • </sup><sup>[20](https://www.nuffield.ox.ac.uk/economics/papers/1999/w13/pittshephard.pdf)</sup><sup> • </sup><sup>[27](https://www.sciencedirect.com/science/article/abs/pii/S002224961630030X)</sup> 在地球科学中，局地化粒子滤波现已在全球业务数值天气预报系统中接受检验，初步实验表明粒子滤波可与当今数值天气预报方法相竞争。<sup>[28](https://epic.awi.de/id/eprint/50263/1/vanLeeuwen_etal_QJRMS_145_2335_2019.pdf)</sup>

## 局限与替代方案

权重退化在朴素SIS中不可避免：重要性权重的方差只会随时间增大。<sup>[3](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup> 重采样修正了权重，却把退化转化为样本贫化：退化越严重，无偏重采样下的贫化也越严重；而过程噪声极小时，所有粒子在几次迭代内就坍缩到单一点。<sup>[29](https://pmc.ncbi.nlm.nih.gov/articles/PMC5750742/)</sup><sup> • </sup><sup>[3](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)</sup> 重采样还破坏了轨迹的统计独立性，限制了并行化，并损害基于路径的估计——在任意有限样本量下，时间跨度足够大时这类估计都会失效。<sup>[17](https://www.stats.ox.ac.uk/~doucet/doucet_godsill_andrieu_sequentialmontecarloforbayesfiltering.pdf)</sup><sup> • </sup><sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup>

更深层的局限在于维数。斯奈德、本特松、比克尔和安德森于2008年在《月度天气评论》上证明，对一大类粒子滤波而言，为避免权重坍缩所需的粒子数必须随观测维数指数增长；在含大量独立观测的高维问题中，通常一个粒子获得权重1，其余粒子的权重都极接近零。<sup>[6](https://doi.org/10.1175/2008mwr2529.1)</sup><sup> • </sup><sup>[28](https://epic.awi.de/id/eprint/50263/1/vanLeeuwen_etal_QJRMS_145_2335_2019.pdf)</sup> 在线性跟踪模型中，蒙特卡洛误差随状态维数指数增长，因此维持给定精度需要指数增多的粒子。<sup>[8](https://www.irisa.fr/aspi/legland/pub/bui-quang10a.pdf)</sup> 一项分析建议，对有效维数大于约100的问题不要使用粒子滤波，因为它无法以集合卡尔曼滤波所用的集合规模运行。<sup>[7](https://onlinelibrary.wiley.com/doi/10.1155/2016/9372786)</sup> 缓解手段包括Rao-Blackwell化、观测信息引导的提议分布、渐进修正和局地化；雷贝斯基尼和范汉德尔于2015年分析了局地粒子滤波能否战胜维数灾难。<sup>[8](https://www.irisa.fr/aspi/legland/pub/bui-quang10a.pdf)</sup><sup> • </sup><sup>[30](https://doi.org/10.1214/14-aap1061)</sup> 粗糙化——给重采样后的粒子加零均值噪声——能恢复多样性，但会产生方差膨胀的过度分散后验。<sup>[29](https://pmc.ncbi.nlm.nih.gov/articles/PMC5750742/)</sup>

相对于扩展卡尔曼滤波，粒子方法不依赖局部线性化或粗糙的函数近似，代价是计算成本更高；在1993年最初的纯方位跟踪实例中，自举滤波的性能远优于标准EKF。<sup>[5](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)</sup><sup> • </sup><sup>[2](https://doi.org/10.1049/ip-f-2.1993.0015)</sup> 与MCMC相比，粒子滤波能以合理的计算代价进行在线序贯估计，也可用于设计高效的MCMC方案。<sup>[18](https://people.bordeaux.inria.fr/pierre.delmoral/Lecture-survey-chen.pdf)</sup> 在地球物理学中发展起来的集合卡尔曼滤波通过在空间中移动粒子来更新，而非赋权与重采样；它避免了样本枯竭，但一般而言是有偏的。<sup>[21](https://arxiv.org/html/1709.04196)</sup> 反馈粒子滤波由杨、梅塔和梅恩于2013年报告在《IEEE自动控制汇刊》上，是一种相关的粒子流替代方案。<sup>[31](https://doi.org/10.1109/tac.2013.2258825)</sup> 综述还将点质量滤波、高斯混合滤波和高阶非线性滤波列为替代方案；对重尾分布，点质量滤波在精度上可胜过粒子滤波，但计算代价更高。<sup>[32](https://isif.org/files/isif/2026-05/survey_nonlinear_estimation_filters_0.pdf)</sup>

## References

1. [Sequential Monte Carlo: A Unified Review](https://www.annualreviews.org/content/journals/10.1146/annurev-control-042920-015119)
2. [N.J. Gordon, D.J. Salmond, A.F.M. Smith (1993). Novel approach to nonlinear/non-Gaussian Bayesian state estimation. IEE Proceedings F Radar and Signal Processing.](https://doi.org/10.1049/ip-f-2.1993.0015)
3. [A tutorial on particle filters for online nonlinear/non-Gaussian Bayesian tracking (Arulampalam, Maskell, Gordon, Clapp)](https://www.cs.ubc.ca/~murphyk/Software/Kalman/ParticleFilterTutorial.pdf)
4. [Particle Filters: A Hands-On Tutorial](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)
5. [A Tutorial on Particle Filtering and Smoothing: Fifteen Years Later (Doucet & Johansen)](https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/johansen/publications/dj11.pdf)
6. [Chris Snyder and colleagues (2008). Obstacles to High-Dimensional Particle Filtering. Monthly Weather Review.](https://doi.org/10.1175/2008mwr2529.1)
7. [From the Kalman Filter to the Particle Filter: A Geometrical Perspective of the Curse of Dimensionality](https://onlinelibrary.wiley.com/doi/10.1155/2016/9372786)
8. [An Insight into the Issue of Dimensionality in Particle Filtering](https://www.irisa.fr/aspi/legland/pub/bui-quang10a.pdf)
9. [A. F. M. Smith, A. E. Gelfand (1992). Bayesian Statistics without Tears: A Sampling–Resampling Perspective. The American Statistician.](https://doi.org/10.1080/00031305.1992.10475856)
10. [Comparison of resampling schemes for particle filtering (Douc, Cappé, Moulines)](https://arxiv.org/pdf/cs/0507025)
11. [The deep latent space particle filter for real-time data assimilation with uncertainty quantification (Scientific Reports, 2024)](https://www.nature.com/articles/s41598-024-69901-7)
12. [A Tutorial on Particle Filters (Speekenbrink, UCL)](https://discovery.ucl.ac.uk/id/eprint/1508064/1/PF_tutorial.pdf)
13. [On resampling algorithms for particle filters (Hol, Schön, Gustafsson 2006)](https://users.isy.liu.se/rt/schon/Publications/HolSG2006.pdf)
14. [Jun S. Liu, Rong Chen (1998). Sequential Monte Carlo Methods for Dynamic Systems. Journal of the American Statistical Association.](https://doi.org/10.2307/2669847)
15. [Particle filter tutorial (Gustafsson, IEEE AES)](https://people.isy.liu.se/rt/fredrik/reports/09TAESpftutorial.pdf)
16. [J. E. HANDSCHIN, D. Q. MAYNE (1969). Monte Carlo techniques to estimate the conditional expectation in multi-stage non-linear filtering†. International Journal of Control.](https://doi.org/10.1080/00207176908905777)
17. [On sequential Monte Carlo sampling methods for Bayesian filtering (Doucet, Godsill, Andrieu 2000)](https://www.stats.ox.ac.uk/~doucet/doucet_godsill_andrieu_sequentialmontecarloforbayesfiltering.pdf)
18. [Bayesian filtering: From Kalman filters to particle filters, and beyond (Chen)](https://people.bordeaux.inria.fr/pierre.delmoral/Lecture-survey-chen.pdf)
19. [Michael K. Pitt, Neil Shephard (1999). Filtering via Simulation: Auxiliary Particle Filters. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1999.10474153)
20. [Auxiliary variable based particle filters (Pitt & Shephard)](https://www.nuffield.ox.ac.uk/economics/papers/1999/w13/pittshephard.pdf)
21. [Particle Filters and Data Assimilation (review)](https://arxiv.org/html/1709.04196)
22. [Auxiliary Particle Filters chapter (Whiteley/Johansen/Doucet-style chapter)](https://people.maths.bris.ac.uk/~manpw/apf_chapter.pdf)
23. [Particle filters in economics/econometrics review (Lopes, Tsay et al.)](https://faculty.mccombs.utexas.edu/carlos.carvalho/teaching/lopes-tsay-2010.pdf)
24. [Carlos M. Carvalho and colleagues (2010). Particle learning for general mixtures. Bayesian Analysis.](https://doi.org/10.1214/10-ba525)
25. [Christophe Andrieu, Arnaud Doucet, Roman Holenstein (2010). Particle Markov Chain Monte Carlo Methods. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.1467-9868.2009.00736.x)
26. [An overview of differentiable particle filters for data-adaptive sequential Bayesian inference](https://www.aimsciences.org/article/doi/10.3934/fods.2023014?viewType=HTML)
27. [A tutorial on particle filters (Journal of Mathematical Psychology, abstract page)](https://www.sciencedirect.com/science/article/abs/pii/S002224961630030X)
28. [Particle filters for high-dimensional geoscience applications: A Review (van Leeuwen et al., QJRMS)](https://epic.awi.de/id/eprint/50263/1/vanLeeuwen_etal_QJRMS_145_2335_2019.pdf)
29. [A Survey of Recent Advances in Particle Filters and Remaining Challenges for Multitarget Tracking](https://pmc.ncbi.nlm.nih.gov/articles/PMC5750742/)
30. [Patrick Rebeschini, Ramon van Handel (2015). Can local particle filters beat the curse of dimensionality?. The Annals of Applied Probability.](https://doi.org/10.1214/14-aap1061)
31. [Tao Yang, Prashant G. Mehta, Sean P. Meyn (2013). Feedback Particle Filter. IEEE Transactions on Automatic Control.](https://doi.org/10.1109/tac.2013.2258825)
32. [A Survey of Nonlinear Estimation Filters (ISIF)](https://isif.org/files/isif/2026-05/survey_nonlinear_estimation_filters_0.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Estimation theory and estimator families

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/particle-filtering

English original: https://www.edgepedia.org/particle-filtering
