Simulation based learning of operator-environment interactions for dynamic crowd monitoring by means of a Bayesian Dynamical Switching Model