Sequential Learning and Recognition of Comprehensive Behavioral Patterns Based on Flow of People