Event based switched dynamic bayesian networks for autonomous cognitive crowd monitoring