A Knowledge-based Approach to Crowd Classification