Goal-oriented inference of environment from redundant observations