The Bayes filter
Consider an embodied agent, such as a robot, that moves in an environment.- The prediction step computes from the previous belief and the transition model.
- The measurement update step weighs by the probability of the measurement that was actually observed.
Door state estimation
This example is from Thrun, Burgard and Fox, Probabilistic Robotics (MIT Press, 2005), section 2.4.2. A robot with a camera has to estimate whether a door is open or closed.
Measurement model
No real sensor is perfect. Assume the measurement model is:
The asymmetry is realistic. A closed door is easier to recognize than an open one. Through an open door, a camera sees the clutter of the room behind it, and the LIDAR returns from that clutter can be classified as a closed door.
Transition model
The robot can use its manipulator to push the door, or it can do nothing. The transition model is:
Recall the convention: the robot first acts and then senses. Reversing the order gives the same equations with shifted indices.
At , the robot does nothing and then senses that the door is open. The two steps of the Bayes filter are as follows.
Prediction at time 1
The state is discrete, so the integral in the prediction step becomes a sum. In the second line, is short for . Evaluating it for both values of : The predicted belief equals the prior. Doing nothing does not change the door, and the door does not change by itself.Measurement update at time 1
The measurement update now reweighs the predicted belief by the likelihood of : For the two possible states: The two beliefs must sum to one, so , andPrediction at time 2
At , the robot pushes the door and again senses that it is open. The prediction step givesMeasurement update at time 2
With , the posterior belief at is In the door example each step has an action and a measurement. The filter also works without explicit actions such as when a mobile device localizes itself from radio signals. In that case its location estimator prediction step uses an implicit motion model. Key references: (Burgard & Thrun, n.d.)References
- Burgard, W., Thrun, S. (n.d.). Probabilistic Robotics.
Found an error on this page? Report an issue.

