Mode Inference using enhanced Segmentation and Pre-processing on raw Global Positioning System data