1 Kalman filter model (KF) Distribution propagation = = = = - - PDF document

1
SMART_READER_LITE
LIVE PREVIEW

1 Kalman filter model (KF) Distribution propagation = = = = - - PDF document

6.869 Schedule Computer Vision Tuesday, May 3: Particle filters, tracking humans, Exam 2 out Prof. Bill Freeman Thursday, May 5: Tracking humans, and how to write conference papers Particle Filter Tracking & give talks,


slide-1
SLIDE 1

1

1

6.869

Computer Vision

  • Prof. Bill Freeman

Particle Filter Tracking

– Particle filtering

Readings: F&P Extra Chapter: “Particle Filtering”

2

Schedule

  • Tuesday, May 3:

– Particle filters, tracking humans, Exam 2 out

  • Thursday, May 5:

– Tracking humans, and how to write conference papers & give talks, Exam 2 due

  • Tuesday, May 10:

– Motion microscopy, separating shading and paint (“fun things my group is doing”)

  • Thursday, May 12:

– 5-10 min. student project presentations, projects due.

3

1D Kalman filter

4

Kalman filter for computing an on-line average

  • What Kalman filter parameters and initial

conditions should we pick so that the optimal estimate for x at each iteration is just the average

  • f all the observations seen so far?

5

Iteration 0 1 2

∞ = =

− −

σ x

+ − + − i i i i

x x σ σ

1 , , 1 , 1 = = = =

i i

m d i i

m d σ σ

Kalman filter model Initial conditions

y

1

y

1

2

1

y y +

2 1

2

1

y y +

2 1

3

2 1

y y y + +

3 1

6

What happens if the x dynamics are given a non-zero variance?

slide-2
SLIDE 2

2

7

Iteration 0 1 2

∞ = =

− −

σ x

+ − + − i i i i

x x σ σ

y 1 , 1 , 1 , 1 = = = =

i i

m d i i

m d σ σ

Kalman filter model Initial conditions 1

y

2

3 2

1

y y +

3 2 3 5

8 5 2

2 1

y y y + +

8 5

3 2

1

y y +

8

(KF) Distribution propagation

[Isard 1998]

prediction from previous time frame Noise added to that prediction Make new measurement at next time frame

9

Distribution propagation

[Isard 1998]

10

Representing non-linear Distributions

11

Representing non-linear Distributions

Unimodal parametric models fail to capture real- world densities…

12

Representing non-linear Distributions

Mixture models are appealing, but very hard to propagate analytically!

slide-3
SLIDE 3

3

13

Representing Distributions using Weighted Samples

Rather than a parametric form, use a set of samples to represent a density:

14

Representing Distributions using Weighted Samples

Rather than a parametric form, use a set of samples to represent a density:

15

[Isard 1998]

Representing distributions using weighted samples, another picture

16

Sampled representation of a probability distribution

You can also think of this as a sum of dirac delta functions, each of weight w:

− =

i i i f

u x w x p ) ( ) ( δ

17

Marginalizing a sampled density

If we have a sampled representation of a joint density and we wish to marginalize over one variable: we can simply ignore the corresponding components of the samples (!):

18

Marginalizing a sampled density

slide-4
SLIDE 4

4

19

Sampled Bayes Rule

Transforming a Sampled Representation of a Prior into a Sampled Representation of a Posterior:

posterior likelihood, prior

20

Sampled Bayes rule

21

Sampled Prediction

= ?

~=

Drop elements to marginalize to get

22

Sampled Correction (Bayes rule)

Prior posterior Reweight every sample with the likelihood of the

  • bservations, given that sample:

yielding a set of samples describing the probability distribution after the correction (update) step:

23

Naïve PF Tracking

  • Start with samples from something simple

(Gaussian)

  • Repeat

But doesn’t work that well because of sample impoverishment…

– Predict – Correct

24

Test with linear case:

Sample impoverishment

kf: x pf: o

slide-5
SLIDE 5

5

25

10 of the 100 particles, along with the true Kalman filter track, with variance:

Sample impoverishment

time

26

In a sampled density representation, the frequency of samples can be traded off against weight: These new samples are a representation of the same density. I.e., make N draws with replacement from the

  • riginal set of samples, using the weights as the

probability of drawing a sample.

Resample the prior

s.t. …

27

Resampling concentrates samples

28

A practical particle filter with resampling

29

A variant (predict, then resample, then correct)

[Isard 1998]

30

slide-6
SLIDE 6

6

31

A variant (animation)

[Isard 1998]

32

Tracking

– hands – bodies – leaves

Applications

33

Contour tracking

[Isard 1998]

34

Head tracking

[Isard 1998]

35

Leaf tracking

[Isard 1998]

36

Hand tracking

[Isard 1998]

slide-7
SLIDE 7

7

37

Mixed state tracking

[Isard 1998]

38

  • Sampling densities
  • Particle filtering

[Figures from F&P except as noted]

Outline