People trajectory mining with statistical pattern recognition