Inferring social activities with mobile sensor networks