+ All Categories
Home > Engineering > Particle filter

Particle filter

Date post: 05-Apr-2017
Category:
Upload: mohammad-jabbari
View: 33 times
Download: 0 times
Share this document with a friend
19
IN THE NAME OF GOD Title: Particle Filter and Sampling Algorithms By: Mohammad Reza Jabbari Email: [email protected]
Transcript
Page 1: Particle filter

IN THE NAME OF GOD

Title:

Particle Filter and Sampling Algorithms 

 By:Mohammad Reza Jabbari

Email: [email protected]

January 2017

Page 2: Particle filter

Outline1. Estimation Concepts2. Bayesian Estimation 3. Monte Carlo Integration Methods4. Particle Filter 5. Sampling Algorithms6. Application7. Summery8. End

2/182/19

Page 3: Particle filter

1.Estimation Concepts The purpose of estimation is to obtain an Approximate Value of an Unknown Parameter,

based on Noisy Observations made from measurements.

Estimation Theory

Classic (Estimation of a Parameter)

Bayesian (Estimation of a Random Variable)

Point Estimation

Interval Estimation

Method of Moment

Maximum Likelihood (ML)

Kalman Filter (KF)

Extended Kalman Filter (EKF)

Unscented Kalman Filter (UKF)

Particle Filter (PF)

Linearity / Gaussian

low nonlinearity / Gaussian

high nonlinearity / Gaussian Recursive

form

nonlinearity / non Gaussian

Definition And Classification

3/183/19

Page 4: Particle filter

4/18

Representation of Systems (Modeling) State-Space Model Many Process and systems can described with by state-space models

System Equation:

Dynamic Equation

Measurement Equation

π’š 𝒕=𝒉𝒕 (𝒙 𝒕 ,𝒗𝒕 )

𝒙 𝒕= 𝒇 π’•βˆ’πŸ (𝒙 π’•βˆ’πŸ ,π’˜π’•βˆ’πŸ ) System State at time instant t State Transition Function Process Noise

Observation at time instant t Observation Function Obseravtion Noise

𝒑 (π’™π’•βˆ¨π’™ π’•βˆ’πŸ)

𝒑 (π’š 𝒕|𝒙 𝒕 )

Probabilistic

form

Probabilistic

form

Likelihood Density

State Transition Density

4/19

Page 5: Particle filter

2. Bayesian Estimation The Goal

The goal of a Bayesian estimator is to approximate the unknown state base on base on previous measurements :

=

Aposterior Density By knowing posterior distribution, all kind of Estimation can be compute

The goals of Bayesian estimator

Find Aposterior Distribution 5/19

Page 6: Particle filter

6/18

Bayesian Estimator Recursive Equations Updating: Prediction:

𝒑 (𝒙 𝒕|𝒀 𝒕 )=𝒑 (π’š 𝒕|𝒙 𝒕 )𝒑 (𝒙 𝒕|𝒀 π’•βˆ’πŸ )

𝒑 (π’š 𝒕|𝒀 π’•βˆ’πŸ )𝒑 (𝒙 𝒕|𝒀 π’•βˆ’πŸ )=βˆ«π’‘ (𝒙 𝒕|𝒙 π’•βˆ’πŸ )𝒑 (𝒙 π’•βˆ’πŸ|𝒀 π’•βˆ’πŸ )π’…π’™π’•βˆ’πŸ

State transition

density

Aprior at time t

Aposteriori at time t-1Aposteriori

at time tAprior at time tLikelihood

𝒑 (π’™πŸŽ|π’šπŸŽ ) 𝒑 (π’™πŸ|π’šπŸŽ ) 𝒑 (π’™πŸ|π’šπŸ ) 𝒑 (π’™πŸ|π’šπŸ )

Prediction

Prediction

Update Update Update

𝒑 (π’™πŸŽ)

π’šπŸŽ π’šπŸ π’šπŸ

Time instant t=0

Time instant t=1

Time instant t=2

Page 7: Particle filter

7/18

Problems The solution is conceptual because integral are not tractable

Close form solution are possible in a small number of situation

Solution Use Monte Carlo Integration Methods

For linear systems with Gaussian noise distribution

Optimal Estimation Using the Kalman Filter (KF)

7/19

Page 8: Particle filter

3. Monte Carlo Integration Methods Monte Carlo Integration is a Simple but Powerful technique for approximating complicated

integrals. Assume we are trying to estimate the integral of a function f over some domain D :

Assume that we have a PDF p defined over a domain D :

Its means that we generate samples according to p, computing f/p for each sample, and finding the average of these values.

This equality is true for any PDF on D, as long as p(x)0 whenever f(x)0

9/19

Page 9: Particle filter

9/18

Question What happens when we generate a random sample where the value of p is very

small?if p is very small for a given sample, f/p will be arbitrarily large. This large sample will greatly skew the sample mean away from the true mean, and the sample variance will also increase greatly.

Bad Samples

but one general rule of thumb to follow is that p should β€œlook like” f (Importance Sampling)

Answer

10/19

Page 10: Particle filter

4. Particle Filter The particle filter is technique for implementing Recursive Bayesian Filter By Monte

Carlo Sampling Particles, with corresponding Weights are used to form an approximation of a probability density

function (PDF)

{π‘₯𝑑 βˆ’1π‘–βˆ— }𝑖=1

𝑁 {π‘₯𝑑𝑖 }𝑖=1𝑁 {π‘₯𝑑

π‘–βˆ— }𝑖=1𝑁

Time instant t-1

Time instant t

𝒑 (𝒙 π’•βˆ’πŸ|𝒀 π’•βˆ’πŸ ) 𝒑 (𝒙 𝒕|𝒀 π’•βˆ’πŸ )𝒑 (𝒙 𝒕|𝒀 𝒕 )Prediction

ΒΏ

Updat

e

𝑾 𝒕

π’Š=~𝑾 𝒕

π’Š

βˆ‘π’‹=𝟏

𝑡 ~𝑾 𝒕𝒋 Normalization 11/19

Page 11: Particle filter

11/18

Sample Representation of the posterior pdf The representation of the posterior pdf in the form of a set of samples is very convenientFor example: threat analysis, decision and control problems,

𝐸 {𝐢 (π‘₯𝑑 )|π‘Œ 𝑑 }=∫𝐢 (π‘₯𝑑 )𝑝 (π‘₯𝑑|π‘Œ 𝑑 )𝑑π‘₯π‘‘β‰ˆβˆ‘π‘–=1

𝑁

π‘Š 𝑑𝑖 𝐢 (π‘₯ΒΏΒΏ 𝑑𝑖)β‰ˆ 1

𝑁 βˆ‘π‘–=1

𝑁

ΒΏΒΏΒΏ

In many cases, the requirement is find some particular function of the posterior, and the sample representation is often ideal for this.

Empirical Distribution

12/19

Page 12: Particle filter

12/18

Unfortunately, it’s usually impossible to sample efficiently from the posteriori distribution at any time t,

because being multivariate , non standard and only known up to a proportionality constant.

Importance Sampling Generate sample from another distribution (Proposal Distribution) Weight them according to how they fit the Posterior distribution

Notice: Free to choose proposal density but: It should be easy to sample from proposal density Proposal density should resemble the original density as closely as possible

Problem

Solution

13/19

Page 13: Particle filter

5. Sampling Algorithms Importance Sampling (IS) Importance

Weight

ΒΏΒΏ

14/19

Page 14: Particle filter

14/18

Sequential Importance Sampling (SIS) Importance sampling in its simplest form, it’s not adequate for recursive estimation.

Because, it needs to get all data before estimating . So the computational complexity increase with time.

If we can consider:~π‘Š 𝑑

𝑖=𝑝 (𝑦𝑑|π‘₯𝑑𝑖 βˆ—)𝑝 (π‘₯𝑑

π‘–βˆ—|π‘₯π‘‘βˆ’ 1π‘–βˆ— )

Ο€ (π‘₯π‘‘π‘–βˆ—|π‘₯π‘‘βˆ’ 1

π‘–βˆ— ,π‘Œ 𝑑 )~π‘Š π‘‘βˆ’1

𝑖

If Proposal distribution equal to

Apriori distribution

15/19

Page 15: Particle filter

15/18

Sequential Importance Resampling (SIR) Problem: The problem encountered by the SIS method is that, as t increase, the distribution of the importance weight becomes more and more skewed. And after a few time step, only one particle has a non-zero importance weight.

(Degeneracy) Solution: the key idea is to eliminate the particles having low importance weights and multiply particles having high importance weigh (Resampling)

16/19

Page 16: Particle filter

16/18

Problem of Resampling Impoverishment of the sample set particles with large weights may be selected many times so that the new set of samples may contain multiple copies of just a few distinct values.

Solution: Effective Sample Size

𝑁 𝑒𝑓𝑓=1

βˆ‘π‘—=1

𝑁

(π‘Š 𝑑𝑗 )2π‘Žπ‘›π‘‘1≀ �̂�𝑒𝑓𝑓 ≀𝑁

17/19

Page 17: Particle filter

6. Application Image Processing Sound Processing Tracking and Navigation Channel Estimation Biology ….

Base on image 1. Image Processing and Extract features

2. Estimation

18/19

Page 18: Particle filter

7. Summary Particle filter is very powerful framework for estimating parameter in nonlinear / non

Gaussian model Adapting with state-space model

Finding new application for particle filter Developing new implementation to reduce complexity Finding a mechanism to optimize number of particle

Advantages

Disadvantages High Computational Complexity It’s difficult to determine optimal Number of Particles Increasing particle with increasing model dimension Choice of importance density

Main Research Directory

19/19

Page 19: Particle filter

THE END


Recommended