Kalman Filter
Historical Development of
Optimal Filtering Theory
! Norbert Wiener filter: developed during 1940's, prompted by needs of US military.
Secret report considered to be very difficult theoretically and had a yellow cover.
Led to name among military as Yellow Peril.
! After war years: filter applied successfully in analog signal processing applications
but the mathematics surrounded the technique in mystery for many potential users.
! In later years as computers became available: original work of Wiener was thought
to be difficult to program; therefore relatively neglected.
! In 1960’s Rudi Kalman developed state-space approach to optimal filtering with his
co-worker Bucy. Digital form of filter involved a recursive algorithm; particularly
suitable for digital estimation work inspired by space industry.
! Kalman filter was widely adopted in the aerospace industry but found few
applications in general industries until more recently.
E{ f (x )} = ∫ f (x )P(x) dx
! If f(x) is discrete,
E{ f (x )} = ∑ f (x )P(x )
x
exp − ( x − x ) P −1 ( x − x )
T
ϕ (ξ ) = 0.07
0.05
0.04
0.03
0.02
0.01
0
0 1 2 3 4 5 6 7 8 9 10
x&1 − 1 0 x1 1
x& = x + u
2 0 − 2 2 1
x1
y = [4 − 2]
x2
Advantages of State Equations
AA
Need for a Kalman Filter
in Control
! Conventional design uses plant output for control purposes.
ζ(s) plant
GG
ζ(t)
GG
+ + + x(t) y(t)
BB CC
- + +
AA
KK
! Optimal estimator
" provides an estimate of some desired quantity such that
a specified cost metric is minimised, e.g.,
x̂ opt = x̂ s .t . x − x̂ is minimised
! Recursive
" on-line data processing,
" low computational burden.
Preliminaries:
Typical Stochastic System
! Plant Equations
x& (t ) = A x(t ) + Bu (t ) + Gζ (t )
y (t ) = C x(t ) + υ (t ) Disturbance
Measurement Known
noise control
V(t)
ζ(t) GG
+ x&( t ) x(t) +
u(t) BB CC y(t)
+ + +
AA
Typical stochastic system
Responses
O/P with noise & disturbance
O/P without noise or O/P without noise
disturbance but including
disturbance
t
t t
v(t )
ζ(t) GG
+ x&( t ) x(t) +
u(t) BB CC y(t)
+ + +
AA
Kalman Filter (First step)
0 0
+ + x(t) + t
u(t) BB CC y(t)
+ +
AA
xˆ(t ) t
u(t) + yˆ (t )
BB CC
+
AA
Model Estimator Structure
disturbance present
ζ(t) GG t
+ + x(t) y(t) + xˆ (t ) yˆ (t )
u(t) BB CC CC
+ +
AA BB AA
t
Kalman Filter Structure
Plant
υ Filter
ζ GG
x x̂&( t ) xˆ (t ) yˆ (t )
+ + + +
u BB CC KK + CC
+ + + -
y +
AA AA
BB
(
x&ˆ (t ) = A xˆ (t ) + Bu (t ) + K y (t ) − yˆ (t ) ) How do we calculate the gain K?
yˆ = C xˆ What is the new controller?
Continuous-Time Kalman Filter
(Kalman-Bucy Filter)
u
BB
y
+ + x̂
K(t)
K(t) CC
- + +
AA
[
x̂& (t ) = A x̂(t ) + Bu (t ) + K(t) C x̂(t ) − y (t )]
x̂(0) = x
Ideas For Solution
Problem Statement
{ }
E ζ (t )ζ (τ ) = Q(t ) . δ(t −τ )
T
Zero Gradient
K
Solution for the Gain Matrix
! The Kalman Gain matrix is given by,
−1
K(t ) = P(t )C RT
dt
! Gain can be pre-computed unless system nonlinear or
system/noise varying in an unknown way ⇒ use discrete
equations and update knowledge of the system at each
instant.
Generic Nature of Filtering
Problems
Steel
Ship
Separation Principle of
Stochastic Control
KF in Control –
Separation Principle
T
J = E{∫
T T
! Criterion x Q x + u Ru dt}
−T
Separation Principle
u x y
BB CC
AA
BB
Filter
x̂
KKc KKf
c f
Controller AA
u = Kc x̂ CC
Real Examples
! Determination of planet orbit parameters from limited
earth observations
! Tracking targets – eg aircraft, missiles using Radar & EO
systems
! Sensor data fusion