Bayesian filtering for state estimation of the environment