Detection and localization of crowd behavior using a novel tracklet-based model