# 扩展卡尔曼滤波器

**扩展卡尔曼滤波器（EKF）** 是一种状态估计算法，它将卡尔曼滤波器的递推预测—校正流程应用于非线性系统，方法是将过程方程和量测方程在当前状态估计附近进行线性化。若主导的过程方程与量测方程不是线性的，则这种在当前状态附近做线性化的卡尔曼滤波器称为扩展卡尔曼滤波器。<sup>[1](https://ntrs.nasa.gov/api/citations/20050161642/downloads/20050161642.pdf)</sup> 它是小卫星最常用的估计方法，在航空航天导航领域有着悠久的飞行验证使用记录。<sup>[2](https://s3vi.ndc.nasa.gov/ssri-kb/static/resources/FULLTEXT01%20%283%29.pdf)</sup><sup> • </sup><sup>[3](https://www.nasa.gov/wp-content/uploads/2015/04/techbul_20-03-nav_filter_042920.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 面向非线性系统的卡尔曼滤波器，将过程模型和量测模型在当前状态估计附近线性化<sup>[1](https://ntrs.nasa.gov/api/citations/20050161642/downloads/20050161642.pdf)</sup> |
| 算法结构 | 与线性卡尔曼滤波器相同的递推预测与校正步骤，在预测阶段进行泰勒线性化<sup>[4](https://onlinelibrary.wiley.com/doi/10.1155/2021/9674015)</sup> |
| 起源 | 20世纪60年代初由斯坦利·施密特（Stanley Schmidt）的团队在NASA艾姆斯研究中心（NASA Ames Research Center）开发，用于阿波罗（Apollo）绕月导航可行性研究<sup>[5](https://ntrs.nasa.gov/api/citations/19860003843/downloads/19860003843.pdf)</sup> |
| 计算成本 | 低或中等，相比之下线性卡尔曼滤波器为低，无迹卡尔曼滤波器（UKF）为中等，粒子滤波器为高；同等条件下UKF所需计算时间约为EKF的两倍<sup>[4](https://onlinelibrary.wiley.com/doi/10.1155/2021/9674015)</sup> |
| 收敛性 | 对一大类非线性系统可局部收敛；若初始估计误差较小，误差呈指数衰减<sup>[6](https://arxiv.org/abs/math/0212255)</sup> |
| 飞行记录 | 曾用于阿波罗登月交会对接的星上导航，并在数十次双子座（Gemini）/阿波罗时代的任务、一百多次航天飞机任务以及众多机器人任务中使用，从未有故障被归因于EKF<sup>[3](https://www.nasa.gov/wp-content/uploads/2015/04/techbul_20-03-nav_filter_042920.pdf)</sup> |
| 主要局限 | 当系统非线性严重时，一阶线性近似可能不可靠<sup>[7](https://www.mathworks.com/help/control/ug/extended-and-unscented-kalman-filter-algorithms-for-online-state-estimation.html)</sup> |

## 工作原理

EKF处理与线性卡尔曼滤波器相同的估计问题：给定一串含噪量测，推断动力系统随时间变化的隐藏状态。系统由非线性状态转移模型和非线性量测模型描述，过程噪声和量测噪声分别由协方差矩阵 \( \mathbf{Q}_k \) 和 \( \mathbf{R}_k \) 刻画。<sup>[8](https://kanishkegb.github.io/2019/11/14/kalman-filters/)</sup>

**线性化。** 由于模型是非线性的，滤波器在每一步用当前估计附近的一阶泰勒展开对模型做近似。状态转移函数对状态的雅可比矩阵（函数的偏导数矩阵，用于线性化）在上一后验估计处取值，替代线性转移矩阵；量测函数的雅可比矩阵在校正步骤中起相应作用。<sup>[1](https://ntrs.nasa.gov/api/citations/20050161642/downloads/20050161642.pdf)</sup> 在MATLAB的`extendedKalmanFilter`所采用的离散时间表述中，校正步骤计算量测雅可比 \( C[k] = \left.\frac{\partial h}{\partial x}\right|_{\widehat{x}[k|k-1]} \) 和 \( S[k] = \left.\frac{\partial h}{\partial v}\right|_{\widehat{x}[k|k-1]} \)，构造卡尔曼增益 \( K[k] \)，并更新状态与误差协方差；预测步骤计算 \( A[k] = \left.\frac{\partial f}{\partial x}\right|_{\widehat{x}[k|k]} \) 和 \( G[k] = \left.\frac{\partial f}{\partial w}\right|_{\widehat{x}[k|k]} \)，并按 \( P[k+1|k] = A[k]\,P[k|k]\,A[k]^{\top} + G[k]\,Q[k]\,G[k]^{\top} \) 传播协方差。<sup>[7](https://www.mathworks.com/help/control/ug/extended-and-unscented-kalman-filter-algorithms-for-online-state-estimation.html)</sup>

当噪声项在状态方程和量测方程中以加性形式出现时，噪声雅可比 \( G[k] \) 和 \( S[k] \) 变为单位矩阵，从而缩短处理时间。<sup>[7](https://www.mathworks.com/help/control/ug/extended-and-unscented-kalman-filter-algorithms-for-online-state-estimation.html)</sup> 若用户不提供解析雅可比，软件会在每次调用时数值计算，这可能增加处理时间并降低状态估计的数值精度。<sup>[9](https://www.mathworks.com/help/control/ref/extendedkalmanfilter.html)</sup>

## 在阿波罗计划中的起源

EKF源于一个实际的航空航天问题。20世纪50年代末，NASA艾姆斯研究中心动态分析部门主任斯坦利·施密特被指派解决登月导航问题，该问题要求在20世纪60年代星载计算机有限算力的条件下，最优地融合多种信息源来估计航天器的位置和速度。鲁道夫·卡尔曼（Rudolf Kalman）已发表了估计飞行器位置与速度的理论线性解，但月球导航本质上是非线性的。施密特推导了卡尔曼工作的非线性扩展方程，这一重大扩展成为阿波罗飞行所依据的方法。<sup>[10](https://www.nasa.gov/aeronautics/math-invented-for-moon-landing-helps-your-flight-arrive-on-time/)</sup>

卡尔曼滤波首次公开已知的应用，是20世纪60年代初在NASA艾姆斯进行的阿波罗太空舱绕月导航与控制可行性研究。这项工作产生的滤波器如今称为扩展卡尔曼滤波器，尽管许多人仍只称其为卡尔曼滤波器；当它在航天器和飞机上的小型计算机上运行时，数值问题促使了该算法平方根版本的开发。<sup>[5](https://ntrs.nasa.gov/api/citations/19860003843/downloads/19860003843.pdf)</sup> NASA工程与安全中心记载，该机构率先将EKF用于阿波罗任务登月交会对接的星上导航，并且在双子座/阿波罗时代、航天飞机计划以及机器人任务中，从未有故障被归因于EKF。<sup>[3](https://www.nasa.gov/wp-content/uploads/2015/04/techbul_20-03-nav_filter_042920.pdf)</sup>

## 与其他非线性滤波器的比较

EKF属于递推贝叶斯估计器家族，该家族还包括无迹卡尔曼滤波器（UKF）和粒子滤波器（PF）。一份被广泛引用的比较按模型类型、假设分布和计算量对它们进行分类：线性卡尔曼滤波器以低代价处理线性高斯模型，EKF以低或中等代价处理局部线性高斯模型，UKF以中等代价处理非线性高斯模型，粒子滤波器以高代价处理非线性非高斯模型。<sup>[4](https://onlinelibrary.wiley.com/doi/10.1155/2021/9674015)</sup>

EKF通过雅可比矩阵进行线性化，而UKF改用无迹变换：将一组刻意选取的sigma点通过真实的非线性函数传播，再由所得点云计算后验均值和协方差。<sup>[11](https://metricgate.com/blogs/unscented-vs-extended-kalman-filter/)</sup> 与EKF相比，UKF在许多情形下能给出更精确、更稳健的估计，因为它避免了非线性模型的一阶泰勒近似。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)</sup> MATLAB的建议是，若系统非线性严重，UKF算法可能给出更好的估计结果，因为此时一阶EKF的线性近似可能不可靠。<sup>[7](https://www.mathworks.com/help/control/ug/extended-and-unscented-kalman-filter-algorithms-for-online-state-estimation.html)</sup>

这一优势并非普遍成立。状态估计数值方法研究者G. Yu. Kulikov和M. V. Kulikova的数值研究表明，尽管容积卡尔曼滤波器和UKF对传播后的高斯均值采用更高阶近似，但当随机系统表现出刚性行为时，传统EKF在精度上可以优于二者；在其非刚性场景中，EKF的平均均方根误差仅比新型滤波器高约2%。<sup>[13](https://arxiv.org/abs/1604.04498)</sup> 基于粒子的混合方法则以不同方式改变权衡：扩展卡尔曼粒子滤波器将EKF嵌入粒子滤波器内部，在粒子数较少时比简单的自举粒子滤波器提供更好的估计质量。<sup>[14](https://open.icm.edu.pl/items/04c7d96b-6ac9-4a39-b05b-bc25a4a6d784)</sup>

## 收敛性与稳定性

EKF是一种近似方法，其理论行为已被直接研究。从事非线性控制理论研究的数学家阿瑟·J·克雷纳（Arthur J. Krener）证明，扩展卡尔曼滤波器对一大类非线性系统可局部收敛：只要系统二阶连续可微、一致可观测且二阶偏导数有界，若初始估计误差不太大，随着时间趋于无穷，误差以指数速度趋于零。<sup>[6](https://arxiv.org/abs/math/0212255)</sup> 后续工作将收敛性结果推广到观测噪声依赖于状态的情形，同时指出EKF并非总是收敛。<sup>[15](https://arxiv.org/abs/2511.10814)</sup>

## 变体

实践者已对基本EKF加以改造，以应对朴素线性化效果不佳的问题。在姿态估计中，将旋转矩阵视为加性量会产生错误的系统模型，因此乘性扩展卡尔曼滤波器（MEKF）改为以乘性方式估计姿态误差。<sup>[16](https://www.mdpi.com/2076-3417/11/6/2519)</sup> 误差状态扩展卡尔曼滤波器（ES EKF）是一种间接表述，用于户外和室内应用中基于GNSS与WiFi数据的定位；在地下采矿定位中被选用，以使量测模型获得对称的误差高斯分布。<sup>[17](https://www.mdpi.com/2073-8994/15/2/344)</sup> 不变扩展卡尔曼滤波器（IEKF）在矩阵李群上表述状态误差；左不变与右不变形式已被应用于旋翼无人机的惯性/GNSS紧组合定位。<sup>[18](https://ieeexplore.ieee.org/document/10648901/)</sup> 由斯坦利·施密特开发的施密特-卡尔曼滤波器（Schmidt-Kalman filter）降低了估计问题的计算复杂度，并成为空中交通管理等领域的标准工具，美国联邦航空管理局（FAA）已将施密特-卡尔曼滤波器加入飞机跟踪计算。<sup>[10](https://www.nasa.gov/aeronautics/math-invented-for-moon-landing-helps-your-flight-arrive-on-time/)</sup>

## 应用

精确定位是无线传感器网络和物联网应用的关键需求，这些应用包括水下导航、室内定位、桥梁监测、工业监测、健康监测和安全系统；基于EKF、基于UKF和基于粒子滤波的定位是三种基本技术，需从定位覆盖范围、时间消耗和速度等方面进行评估。<sup>[19](https://onlinelibrary.wiley.com/doi/10.1155/2020/8898672)</sup> 在机器人领域，EKF被用于借助光学跟踪系统对机器人臂端工具进行目标点跟踪以提高定位精度，<sup>[20](https://www.sciencedirect.com/science/article/pii/S0921889024001350)</sup> 用于惯性参数辨识（与sigma点和平方根替代方案并列），<sup>[21](https://www.mdpi.com/2076-3417/11/9/4303)</sup> 以及用于无人机控制中的传感器融合——据报道，基于EKF的空速、攻角和侧滑角估计在真实数据与估计数据之间的均方根误差非常低。<sup>[22](https://www.mdpi.com/2504-446X/7/6/339)</sup> 在航天器工程中，EKF仍是小卫星最常用的估计方法，已在PRISMA、HokieSat和UWE-2上使用，相关扩展如各向同性卡尔曼滤波器用于UWE-3，UKF用于SEAM。<sup>[2](https://s3vi.ndc.nasa.gov/ssri-kb/static/resources/FULLTEXT01%20%283%29.pdf)</sup>

## References

1. [Extended Kalman Filter (EKF), NASA Technical Memorandum NASA/TM-2005-213588](https://ntrs.nasa.gov/api/citations/20050161642/downloads/20050161642.pdf)
2. [State estimation methods for small satellites (EKF in PRISMA, HokieSat, UWE-2), NASA SSRI knowledge base](https://s3vi.ndc.nasa.gov/ssri-kb/static/resources/FULLTEXT01%20%283%29.pdf)
3. [Navigation Filter Design Best Practices, NASA NESC Technical Bulletin No. 20-03 (2020)](https://www.nasa.gov/wp-content/uploads/2015/04/techbul_20-03-nav_filter_042920.pdf)
4. [Urrea, C. and colleagues (2021). Kalman Filter: Historical Overview and Review of Its Use in Robotics 60 Years after Its Creation. Journal of Sensors.](https://onlinelibrary.wiley.com/doi/10.1155/2021/9674015)
5. [McGee, L. and Schmidt, S. F. (1985). Discovery of the Kalman Filter as a Practical Tool for Aerospace and Industry. NASA Technical Memorandum 86647.](https://ntrs.nasa.gov/api/citations/19860003843/downloads/19860003843.pdf)
6. [Krener, A. J. (2002). The Convergence of the Extended Kalman Filter. arXiv.](https://arxiv.org/abs/math/0212255)
7. [Extended and Unscented Kalman Filter Algorithms for Online State Estimation, MATLAB & Simulink documentation](https://www.mathworks.com/help/control/ug/extended-and-unscented-kalman-filter-algorithms-for-online-state-estimation.html)
8. [Gamagedara, K. (2019). A Taxonomy of Kalman Filters.](https://kanishkegb.github.io/2019/11/14/kalman-filters/)
9. [extendedKalmanFilter object reference, MATLAB documentation](https://www.mathworks.com/help/control/ref/extendedkalmanfilter.html)
10. [Tabor, A. (2019). Math Invented for Moon Landing Helps Your Flight Arrive on Time. NASA.](https://www.nasa.gov/aeronautics/math-invented-for-moon-landing-helps-your-flight-arrive-on-time/)
11. [Unscented vs Extended Kalman Filter, MetricGate](https://metricgate.com/blogs/unscented-vs-extended-kalman-filter/)
12. [Particle Filters: A Hands-On Tutorial, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC7826670/)
13. [Kulikov, G. Yu. and Kulikova, M. V. (2016). Do the Contemporary Cubature and Unscented Kalman Filtering Methods Outperform Always the Traditional Extended Kalman Filter? arXiv.](https://arxiv.org/abs/1604.04498)
14. [Michalski, J., Kozierski, P., and Zietkiewicz, J. (2017). Comparison of Particle Filter and Extended Kalman Particle Filter.](https://open.icm.edu.pl/items/04c7d96b-6ac9-4a39-b05b-bc25a4a6d784)
15. [Convergence of the extended Kalman filter with small and state-dependent noise. arXiv (2025).](https://arxiv.org/abs/2511.10814)
16. [State Estimation of Over-Sensored Systems Applied to a Low-Cost Robotic Manipulator. Applied Sciences (2021).](https://www.mdpi.com/2076-3417/11/6/2519)
17. [Error State Extended Kalman Filter Localization for Underground Mining Environments. Symmetry (2023).](https://www.mdpi.com/2073-8994/15/2/344)
18. [Adaptive Invariant Extended Kalman Filter-Based Tightly-Coupled SINS/RTK-Integrated Positioning for Rotor Unmanned Aerial Vehicle. IEEE (2024).](https://ieeexplore.ieee.org/document/10648901/)
19. [Ullah, I. (2020). Evaluation of Localization by Extended Kalman Filter, Unscented Kalman Filter, and Particle Filter-Based Techniques. Wireless Communications and Mobile Computing.](https://onlinelibrary.wiley.com/doi/10.1155/2020/8898672)
20. [Positioning accuracy improvement for target point tracking of robots based on Extended Kalman Filter with an optical tracking system. Robotics and Autonomous Systems (2024).](https://www.sciencedirect.com/science/article/pii/S0921889024001350)
21. [Inertial Parameter Identification in Robotics: A Survey. Applied Sciences (2021).](https://www.mdpi.com/2076-3417/11/9/4303)
22. [Control Algorithms, Kalman Estimation and Near Actual Simulation for UAVs: State of Art Perspective. Drones (2023).](https://www.mdpi.com/2504-446X/7/6/339)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Bayesian statistics › Bayesian probability and inference foundations › Bayesian estimation and filtering › Bayesian filtering in specific state-space models

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/extended-kalman-filter

English original: https://www.edgepedia.org/extended-kalman-filter
