Detecting abnormal crowd activities