21
Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th , 2011

Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Embed Size (px)

Citation preview

Page 1: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Processing Sequential Sensor Data

The “John Krumm perspective”Thomas Plötz

November 29th, 2011

Page 2: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Sequential Data?

Page 3: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Sequential Data!

Page 4: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011
Page 5: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Sequential Data Analysis – Challenges

• Segmentation vs. Classification“chicken and egg” problem

• Noise, noise, and noise …• … more noise

• [Evaluation – “Ground Truth”?]

Page 6: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Noise …

filtering trivial (technically)

- lag

- no higher level variables (speed)

Page 7: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

States vs. Direct Observations

• Idea: Assume (internal) state of the “system”

• Approach: Infer this very state by exploiting measurements / observations

• Examples:– Kalman Filter

– Particle Filter– Hidden Markov Models

Page 8: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Kalman Filter

state and observations:

Explicit consideration of noise:

Page 9: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Kalman Filter – Linear Dynamics

State at time i: linear function of state at time i-1 plus noise:

System matrix describes linear relationship between i and i-1:

Page 10: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Kalman Filter – Parameters

Page 11: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Kalman Filter @work

• Two-step procedure for every zi

• Result: mean and covariance of xi

Page 12: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011
Page 13: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Generalization: Particle Filter

• No linearity assumption, no Gaussian noise• Sequence of unknown state vectors xi, and

measurement vectors zi

• Probabilistic model for measurements, e.g. (!):

• … and for dynamics:

PF samples from it, i.e., generates xi subject to p(xi | xi-1)

Page 14: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Particle Filter: DynamicsPrediction of next state:

Page 15: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Particle Filter @workGenerate random xi from p(xi | xi-1)

Sample new set of particles based on importance weights – filtering

Original goal …

Page 16: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Particle Filter @work

Page 17: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011
Page 18: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

Hidden Markov Models

• Kalman Filter not very accurate• Particle Filter computationally demanding• HMMs somewhat in-between

Page 19: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

HMMs

• Measurement model: conditional probability

• Dynamic model: limited memory; transition probabilities

p(zi | xi )

Page 20: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011
Page 21: Processing Sequential Sensor Data The “John Krumm perspective” Thomas Plötz November 29 th, 2011

HMMs, more classical application