Anomality detection in public space based on hierarchical nature of behaviors