Cluster-based trajectory segmentation with local noise