Learning probabilistic models for social interactions