Lecture 10_Model-based Prognostics via Particle Filtering
Lecture 10_Model-based Prognostics via Particle Filtering
Particle Filtering
Lecture #10
Outline
• Particle Filter
• Basics of Recursive Bayesian Filtering: Flowchart
• Numerical Implementation: Pseudocode
• Example: Aircraft Positioning
2
Recall: Unit-Wise Lifetime Prediction
Life PDF
1 Lifetime 1 Lifetime
2 2
3 Unit- 3 Unit-
4 independent 4 dependent
Unit ID Unit ID
3
Recall: Model-Based and Data-Driven Prognostics
4
Model-Based Prognostics Using Particle Filter
5
Model-Based Prognostics Using Particle Filter
State transition:
p(xk | xk–1)
…
Time step
1 2 K k
6
Model-Based Prognostics Using Particle Filter
State transition:
p(xk | xk–1)
…
Time step
1 2 K k
7
Recall: Model-Based Prognostics of Lithium-Ion Battery
How It Works?
Current
cycle
Statistical Model extrapolation
100 estimates
Normalized capacity (%)
True end
of life Capacity
State transition: measurement yk
90 p(xk | xk–1)
p(xk) p(xk | yk)
Bayesian model
80 update
End of life limit
70 Capacity fade
0 100 200 300 400 500 model y = f(x,t)
Cycle number
Measurement:
p(yk | xk)
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
8
Model-Based Prognostics Using Particle Filter
9
Model-Based Prognostics Using Particle Filter
𝑗𝑗 𝑗𝑗
– 𝐱𝐱𝑘𝑘 and 𝑤𝑤𝑘𝑘 are respectively the particles and weights
𝑗𝑗=1:𝑁𝑁𝑃𝑃 𝑗𝑗=1:𝑁𝑁𝑃𝑃
estimated at the kth measurement step
– NP is the number of particles
– δ is the Dirac delta function
10
Model-Based Prognostics Using Particle Filter
p ( yk | x kj ) p ( x kj | x kj −1 )
wkj ∝ wkj−1
q ( x kj | x kj −1 , yk ) Proposal density
11
Model-Based Prognostics Using Particle Filter
𝑖𝑖
𝐱𝐱 𝑘𝑘−1 , 𝑁𝑁P−1
State transition:
step 𝑘𝑘 − 1 𝑘𝑘 𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑁𝑁P−1
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
13
A Step-by-Step Walkthrough of Particle Filter 𝑄𝑄(𝑘𝑘) = 1 − 𝛼𝛼 1 − exp −𝜆𝜆𝑘𝑘 − 𝛽𝛽𝑘𝑘
[Pitt and Shephard, 1999, Journal of the American Statistical
T
Association] 𝐱𝐱 = 𝛼𝛼, 𝜆𝜆, 𝛽𝛽
𝑖𝑖
𝐱𝐱 𝑘𝑘−1 , 𝑁𝑁P−1
State transition:
step 𝑘𝑘 − 1 𝑘𝑘 𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑁𝑁P−1
Weight evaluation:
step 𝑘𝑘
𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑤𝑤
�𝑘𝑘𝑖𝑖
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
14
A Step-by-Step Walkthrough of Particle Filter 𝑄𝑄(𝑘𝑘) = 1 − 𝛼𝛼 1 − exp −𝜆𝜆𝑘𝑘 − 𝛽𝛽𝑘𝑘
[Pitt and Shephard, 1999, Journal of the American Statistical
T
Association] 𝐱𝐱 = 𝛼𝛼, 𝜆𝜆, 𝛽𝛽
𝑖𝑖
𝐱𝐱 𝑘𝑘−1 , 𝑁𝑁P−1
State transition:
step 𝑘𝑘 − 1 𝑘𝑘 𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑁𝑁P−1
Weight evaluation:
step 𝑘𝑘
𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑤𝑤
�𝑘𝑘𝑖𝑖
� 𝑖𝑖
𝑄𝑄(𝑘𝑘; 𝐱𝐱� 𝑘𝑘1 )
Probability
density
𝑄𝑄(𝑘𝑘) 𝑄𝑄
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
15
A Step-by-Step Walkthrough of Particle Filter 𝑄𝑄(𝑘𝑘) = 1 − 𝛼𝛼 1 − exp −𝜆𝜆𝑘𝑘 − 𝛽𝛽𝑘𝑘
[Pitt and Shephard, 1999, Journal of the American Statistical
T
Association] 𝐱𝐱 = 𝛼𝛼, 𝜆𝜆, 𝛽𝛽
𝑖𝑖
𝐱𝐱 𝑘𝑘−1 , 𝑁𝑁P−1
State transition:
step 𝑘𝑘 − 1 𝑘𝑘 𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑁𝑁P−1
Weight evaluation:
step 𝑘𝑘
𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑤𝑤
�𝑘𝑘𝑖𝑖
� 𝑖𝑖
𝑄𝑄(𝑘𝑘; 𝐱𝐱� 𝑘𝑘2 )
Probability
density
𝑄𝑄(𝑘𝑘) 𝑄𝑄
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
16
A Step-by-Step Walkthrough of Particle Filter 𝑄𝑄(𝑘𝑘) = 1 − 𝛼𝛼 1 − exp −𝜆𝜆𝑘𝑘 − 𝛽𝛽𝑘𝑘
[Pitt and Shephard, 1999, Journal of the American Statistical
T
Association] 𝐱𝐱 = 𝛼𝛼, 𝜆𝜆, 𝛽𝛽
𝑖𝑖
𝐱𝐱 𝑘𝑘−1 , 𝑁𝑁P−1
State transition:
step 𝑘𝑘 − 1 𝑘𝑘 𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑁𝑁P−1
Weight evaluation:
step 𝑘𝑘
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
17
A Step-by-Step Walkthrough of Particle Filter 𝑄𝑄(𝑘𝑘) = 1 − 𝛼𝛼 1 − exp −𝜆𝜆𝑘𝑘 − 𝛽𝛽𝑘𝑘
[Pitt and Shephard, 1999, Journal of the American Statistical
T
Association] 𝐱𝐱 = 𝛼𝛼, 𝜆𝜆, 𝛽𝛽
𝑖𝑖
𝐱𝐱 𝑘𝑘−1 , 𝑁𝑁P−1
State transition:
step 𝑘𝑘 − 1 𝑘𝑘 𝐱𝐱� 𝑘𝑘𝑖𝑖 , 𝑁𝑁P−1
Weight evaluation:
step 𝑘𝑘
Hu C., Jain G., Tamirisa P., and Gorka T., “Method for Estimating Capacity and Predicting Remaining Useful Life of Lithium-Ion
Battery,” Applied Energy, v126, p182–189, 2014.
18
Model-Based Prognostics Using Particle Filter
Current
position x
Terrain
Terrain profile
altitude y
Transition:
= xk f ( xk −1 , uk −1 ) + ωk Generic state-
Measurement:
= yk g ( xk ) + vk space model
21
Model-Based Prognostics Using Particle Filter
22
Model-Based Prognostics Using Particle Filter
23
Model-Based Prognostics Using Particle Filter
24
Model-Based Prognostics Using Particle Filter
60
40
20 Resampled
particles
Position
True
0 position
-20
-40
0 10 20 30 40 50 60
Time step ( k)
Gustafsson F., "Particle filter theory and practice with positioning applications." IEEE Aerospace and Electronic Systems
Magazine, v25, n7, p53–82, 2010.
25
Model-Based Prognostics Using Particle Filter
Extended Unscented
Applicable Kalman filter
Kalman filter Kalman filter Particle filter (PF)
domain (KF)
(EKF) (UKF)
Mildly nonlinear
systems Nonlinear
State-space
(linearized with systems (can Nonlinear
model Linear systems
first- or second- handle quadratic systems
(f and g)
order Tayler terms)
expansion)
Process and
meas. noise Gaussian Gaussian Gaussian Non-Gaussian
(ω and ν)
Posterior Unimodel (only
Unimodel (only Unimodel and
distribution Gaussian one peak) and
one peak) multimodel
[p(xk|y1:k)] symmetric
Gustafsson F., "Particle filter theory and practice with positioning applications." IEEE Aerospace and Electronic Systems
Magazine, v25, n7, p53–82, 2010.
26