在估计理论中,擴展卡爾曼濾波器(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.