Automatic segmentation and classification of movement trajectories for transportation modes