Machine learning for high-level social behaviour