�CS60055: Ubiquitous Computing
Statistical Filters
INDIAN INSTITUTE OF TECHNOLOGY
KHARAGPUR
Department of Computer Science and Engineering
Statistical Filters – A Primer
Indian Institute of Technology Kharagpur
Kalman Filtering
Indian Institute of Technology Kharagpur
Kalman Filtering
Indian Institute of Technology Kharagpur
Kalman Filtering
Initialize system state estimate and system state error covariance
Reinitialize system state estimate and system state error covariance
Predict system state and system state error covariance till the measurement time
Compute the Kalman Gain
Estimate system state and system state error covariance till the measurement time
Measurement 1
Measurement 2
Measurement 3+
Indian Institute of Technology Kharagpur
Kalman Filter: Example
Position (p)
Estimate at k-1
Indian Institute of Technology Kharagpur
Kalman Filter: Example
Position (p)
Estimate at k-1
Apply motion model (say, odometry) for predicting the position at k
Prediction
Indian Institute of Technology Kharagpur
Kalman Filter: Example
Position (p)
Estimate at k-1
Apply motion model (say, odometry) for predicting the position at k
Prediction
Measure the observed location of the car at time k (say, by GPS)
Measurement
Indian Institute of Technology Kharagpur
Kalman Filter: Example
Position (p)
Estimate at k-1
Apply motion model (say, odometry) for predicting the position at k
Prediction
Measure the observed location of the car at time k (say, by GPS)
Measurement
Fusion
Estimate the position at k which is noise-free
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKF)
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKFs)
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKFs)
How can we approcimate g and h to a linear function?
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKF)
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKF)
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKF)
�
Indian Institute of Technology Kharagpur
Extended Kalman Filters (EKF)
Indian Institute of Technology Kharagpur
Example: Tracking Vehicle Movements
Indian Institute of Technology Kharagpur
Example: Tracking Vehicle Movements
Indian Institute of Technology Kharagpur
Example: Tracking Vehicle Movements
Indian Institute of Technology Kharagpur
Particle Filters
Indian Institute of Technology Kharagpur
Particle Filters
f
Indian Institute of Technology Kharagpur
Particle Filters
f
Rather than maintaining a set of parameters for the distribution (i.e., mean, covariance), the particle filter stores a set of samples that represent the distribution!
Indian Institute of Technology Kharagpur
Particle Filters
Indian Institute of Technology Kharagpur
Particle Filter Algorithm
Draw the initial set of particles based on the belief distribution; however, based on the observations, some particles might have a very low probability
Indian Institute of Technology Kharagpur
Particle Filter Algorithm
Resample the particles based on the probability: The particles having higher probability gets more number of instances, whereas the particles with very low probability vanishes
Importance Resampling
Indian Institute of Technology Kharagpur
Particle Filter Algorithm
Particles which are more likely to represent the true state gets duplicated whereas the particles that has very low probabilities get vanished from the system!
Indian Institute of Technology Kharagpur
Particle Filter - Visualization
Indian Institute of Technology Kharagpur
Particle Filters: An Example
Indian Institute of Technology Kharagpur
Particle Filters: An Example
Indian Institute of Technology Kharagpur
Particle Filters: An Example
Resampling
Indian Institute of Technology Kharagpur
Particle Filters: An Example
Resampling
Indian Institute of Technology Kharagpur
Design Challenges of Particle Filters
Indian Institute of Technology Kharagpur
Design Challenges of Particle Filters
Indian Institute of Technology Kharagpur