Collaborative activity recognition with heterogeneous activity sets and privacy preferences