在估计理论中,扩展卡尔曼滤波器(extended Kalman filter),简称EKF,是卡尔曼滤波的非线性版本,会对平均和协方差的估测值进行线性化。在转移模型定义良好的情形下,一般会将扩展卡尔曼滤波器视为[1]非线性状态观测器、导航系统和全球定位系统的de facto标准[2]。
建立卡尔曼滤波器数学基础的论文是在1959年到1961年之间发行的[3][4][5]。若是线性系统模型,在转换系统和量测系统上有独立白色噪音,卡尔曼滤波是最佳的线性估测器。只是,大部分工程领域的系统属于非线性系统,因此许多人努力将滤波器应用在非线性系统上。大部分的研究是在艾姆斯研究中心完成的[6][7]。扩展卡尔曼滤波器应用微积分学里的多变数泰勒级数展开,在工作点附近对模型线性化。若系统模型未知或是不准确,也可以用蒙地卡罗方法(特别是粒子滤波器)来进行估测。蒙地卡罗方法出现的时间比扩展卡尔曼滤波器要早,但在中等大小的状态空间中,其运算量会比扩展卡尔曼滤波器高很多。
在扩展卡尔曼滤波器,状态转换模型和观测模型可以不是状态的线性函数,只要是可微函数即可。


此处wk和vk是过程噪声和观测噪声,假设是平均为0的多元正态分布噪声,其协方差矩阵为Qk和Rk。uk是控制向量。
可以用函数f从过去的观测值中计算预测值,并且用h从预测状态中计算预测量测量。不过f和h无法直接计算协方差。会改计算偏微分矩阵(雅可比矩阵)。
在每一步时间,会用当时的预测状态计算雅可比矩阵。矩阵可以用在卡尔曼滤波器方程中。此作法在本质上在目前的预测附近对非线性函数线性化。
标示
表示
在时间n的估测值,假设观测值一直到m ≤ n。
| 预测的状态估测
|
|
| 预测的协方估测
|
|
| 新息(Innovation)或测量残差
|
|
| 新息或残余协方差
|
|
| 接近最佳化的卡尔曼增益
|
|
| 更新的状态估测
|
|
| 更新的协方差估计
|
|
其中状态变换和估测矩阵可以用以下的雅可比矩阵定义


卡尔曼滤波器是最佳的估测器,但扩展卡尔曼滤波器多半不是最佳估测器(若量测和状态转换模型都线性时,扩展卡尔曼滤波器是最佳估测器,但此时的扩展卡尔曼滤波器就是卡尔曼滤波器)此外,若状态的初始估测错误,或是过程的建模不正确,因为线性化的关系,滤波器会快速发散。另一个扩展卡尔曼滤波器的问题是其估测协方差矩阵常常会低估,因此若没有加入“稳定性噪声”,在统计观点上可能会有不一致的风险
[8]。
另外也要考虑到非线性滤波问题在统计的本质上是无限维的,不适合用单一的平均和方差-协方差的估测器来完全表示最佳化滤波器。即使在非常简单的一维系统(例如立方感测器,观测值和实际状态之间的关系是三次方的)下,扩展卡尔曼滤波器也可能会有很差的性能[9],其最佳化滤波器可能是双模(两个最大值)的[10],其且其结构很复杂,无法有效的用单一的均值和方差估测器来表示,对于二次感测器也有类似问题[11]。
针对这些案例,已找到投影滤波器是替代方案,已应用在导航上[12]。其他通用的非线性滤波器(像是全粒子滤波器)也可以考虑。
虽然如此,扩展卡尔曼滤波器因为有还可接受的性能,仍是导航和GPS的业界标准[来源请求]。
其模型如下;

初始化
![{\displaystyle {\hat {\mathbf {x} }}(t_{0})=E{\bigl [}\mathbf {x} (t_{0}){\bigr ]}{\text{, }}\mathbf {P} (t_{0})=Var{\bigl [}\mathbf {x} (t_{0}){\bigr ]}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/afc225ee37e2c67dcd3a6669257defa0bf040ec1)
预测-更新

和离散时间的扩展卡尔曼滤波器不同,在连续时间的扩展卡尔曼滤波器里,预测和更新步骤是互相耦合的[13]。
大部分的物理系统是连续时间模型,但会用数位处理器在离散时间量测,以进行状态估测。因此,系统模型和量测模型为

其中
.
初始化
![{\displaystyle {\hat {\mathbf {x} }}_{0|0}=E{\bigl [}\mathbf {x} (t_{0}){\bigr ]},\mathbf {P} _{0|0}=E{\bigl [}\left(\mathbf {x} (t_{0})-{\hat {\mathbf {x} }}(t_{0})\right)\left(\mathbf {x} (t_{0})-{\hat {\mathbf {x} }}(t_{0})\right)^{T}{\bigr ]}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/daf406465b052a32900703385386f9e6bb7eb0a7)
预测

其中

更新



其中

更新方程和离散时间中的方程相同[14]。
上述的算法是一阶的扩展卡尔曼滤波器(EKF)。若保留泰勒级数展开的高次项,即可建构高次的扩展卡尔曼滤波器。有论文曾提及二阶和三阶的扩展卡尔曼滤波器[14]。但高阶扩展卡尔曼滤波器只有在量测误差小的前提下,才能看出其性能上的优势。
典型的扩展卡尔曼滤波器假设可加性过程以及可加性量测噪声。但在扩展卡尔曼滤波器实现时,不一定都能符合此一条件
[15]。考虑以下通用型式的系统:


其中wk和vk是过程噪讯和量测噪讯,两者都假设是平均为0的多元正态分布噪声,其协方差矩阵 Qk为Rk。其协方差预测和新息(innovation)方程为


其中矩阵
和矩阵
是雅可比矩阵:


预测的状态估测和量测残余是以过程的平均以及量测噪声项的平均来表示,两者都假设为0。不然,非加性噪声可以用加性噪声的扩展卡尔曼滤波器的作法来实现。
有时,非线性系统的观测模型无法直接求解
,只能用隐函数表示:

其中
是有噪声的观测量。
可以在以下的调整之后,使用扩展卡尔曼滤波器[16][17]:


其中:

此处原来的观测共变异数矩阵已经转换,以不同的方式定义新息(innovation)
。雅可比矩阵
定义不变,但是是用隐观测模型
来决定。
- ^ Julier, S.J.; Uhlmann, J.K. Unscented filtering and nonlinear estimation (PDF). Proceedings of the IEEE. 2004, 92 (3): 401–422. S2CID 9614092. doi:10.1109/jproc.2003.823141.
- ^ Courses, E.; Surveys, T. Sigma-Point Filters: An Overview with Applications to Integrated Navigation and Vision Assisted Control. 2006 IEEE Nonlinear Statistical Signal Processing Workshop. 2006: 201–202. ISBN 978-1-4244-0579-4. S2CID 18535558. doi:10.1109/NSSPW.2006.4378854.
- ^ R.E. Kalman. Contributions to the theory of optimal control. Bol. Soc. Mat. Mexicana. 1960: 102–119. CiteSeerX 10.1.1.26.4070
.
- ^ R.E. Kalman. A New Approach to Linear Filtering and Prediction Problems (PDF). Journal of Basic Engineering. 1960, 82: 35–45. S2CID 1242324. doi:10.1115/1.3662552.
- ^ R.E. Kalman; R.S. Bucy. New results in linear filtering and prediction theory (PDF). Journal of Basic Engineering. 1961, 83: 95–108. S2CID 8141345. doi:10.1115/1.3658902.
- ^ Bruce A. McElhoe. An Assessment of the Navigation and Course Corrections for a Manned Flyby of Mars or Venus. IEEE Transactions on Aerospace and Electronic Systems. 1966, 2 (4): 613–623. Bibcode:1966ITAES...2..613M. S2CID 51649221. doi:10.1109/TAES.1966.4501892.
- ^ G.L. Smith; S.F. Schmidt and L.A. McGee. Application of statistical filter theory to the optimal estimation of position and velocity on board a circumlunar vehicle. National Aeronautics and Space Administration. 1962.
- ^ Huang, Guoquan P; Mourikis, Anastasios I; Roumeliotis, Stergios I. Analysis and improvement of the consistency of extended Kalman filter based SLAM. Robotics and Automation, 2008. ICRA 2008. IEEE International Conference on: 473–479. 2008. doi:10.1109/ROBOT.2008.4543252.
- ^ M. Hazewinkel, S.I. Marcus, H.J. Sussmann (1983). Nonexistence of finite-dimensional filters for conditional statistics of the cubic sensor problem. Systems & Control Letters 3(6), Pages 331-340,
https://doi.org/10.1016/0167-6911(83)90074-9.
- ^ Brigo, Damiano; Hanzon, Bernard; LeGland, Francois. A differential geometric approach to nonlinear filtering: the projection filter (PDF). IEEE Transactions on Automatic Control. 1998, 43 (2): 247–252. doi:10.1109/9.661075.
- ^ Armstrong, John; Brigo, Damiano. Nonlinear filtering via stochastic PDE projection on mixture manifolds in L2 direct metric. Mathematics of Control, Signals and Systems. 2016, 28 (1): 1–33. Bibcode:2016MCSS...28....5A. S2CID 42796459. arXiv:1303.6236
. doi:10.1007/s00498-015-0154-1. hdl:10044/1/30130
.
- ^ Azimi-Sadjadi, Babak; Krishnaprasad, P.S. Approximate nonlinear filtering and its application in navigation. Automatica. 2005, 41 (6): 945–956. doi:10.1016/j.automatica.2004.12.013.
- ^ Brown, Robert Grover; Hwang, Patrick Y.C. Introduction to Random Signals and Applied Kalman Filtering
3. New York: John Wiley & Sons. 1997: 289–293. ISBN 978-0-471-12839-7.
- ^ 14.0 14.1 Einicke, G.A. Smoothing, Filtering and Prediction: Estimating the Past, Present and Future (2nd ed.). Amazon Prime Publishing. 2019. ISBN 978-0-6485115-0-2.
- ^ Simon, Dan. Optimal State Estimation. Hoboken, NJ: John Wiley & Sons. 2006. ISBN 978-0-471-70858-2.
- ^ Quan, Quan. Introduction to multicopter design and control. Singapore: Springer. 2017. ISBN 978-981-10-3382-7.
- ^ Zhang, Zhengyou. Parameter estimation techniques: a tutorial with application to conic fitting (PDF). Image and Vision Computing. 1997, 15 (1): 59–76. ISSN 0262-8856. doi:10.1016/s0262-8856(96)01112-2.
- Anderson, B.D.O.; Moore, J.B. Optimal Filtering. Englewood Cliffs, New Jersey: Prentice–Hall. 1979.
- Gelb, A. Applied Optimal Estimation. MIT Press. 1974.
- Maybeck, Peter S. Stochastic Models, Estimation, and Control. Mathematics in Science and Engineering 141–1. New York: Academic Press. 1979: 423. ISBN 978-0-12-480701-3.