Trajectory-based anomalous behaviour detection for intelligent traffic surveillance