A novel distance measure for clustering motion trajectories based on a compressed representation of their main semantic features.