A Hierarchical Bayesian Model for Crowd Emotions