Automatic model construction for the behavior of human crowds