Efficient analysis of passenger flows