Modeling of human behavior in crowds using a cognitive feedback approach