Feature Selection in Conditional Random Fields for Map Matching of GPS Trajectories

Jian Yang, Jian Yang 0034, Liqiu Meng

Abstract: Map matching of the GPS trajectory serves the purpose of recovering the original route on a road network from a sequence of noisy GPS observations. It is a fundamental technique to many Location Based Services. However, map matching of a low sampling rate on urban road network is still a challenging task. In this paper, the characteristics of Conditional Random Fields with regard to inducing many contextual features and feature selection are explored for the map matching of the GPS trajectories at a low sampling rate. Experiments on a taxi trajectory dataset show that our method may achieve competitive results along with the success of reducing model complexity for computation-limited applications.

1. Introduction

Map matching is the backbone of modern Location-Based Services (LBS), essential for applications ranging from fare calculation to traffic estimation. However, the process faces two primary hurdles: sensor noise and low sampling rates. In "urban canyons," GPS signals frequently bounce off tall buildings, creating significant positional errors. Furthermore, to conserve battery and data, many devices record positions at long intervals (e.g., every 120 seconds), leaving vast gaps where a vehicle could have taken numerous potential routes.

Noisy GPS trajectory observations (black dots) and the recovered matched path (blue line).

Traditional approaches often utilize Hidden Markov Models (HMMs). While effective, HMMs rely on strict independence assumptions that complicate the integration of overlapping contextual features. This paper proposes a more flexible framework using Conditional Random Fields (CRFs) to handle complex features without incurring prohibitive computational costs.

2. Methodology

2.1 Path Nodes and Feature Induction

Unlike standard models that simply snap GPS points to the nearest road segment, this approach introduces "path nodes" ($p_i$). These nodes explicitly model the sequence of roads between two observations, allowing the CRF to evaluate the feasibility of entire paths rather than just individual points. The authors initially induced 61 features, including geometric metrics (distance error, heading) and contextual data such as road classification from OpenStreetMap and taxi-specific status (In-service vs. Out-of-service).

The CRF model structure illustrating the relationship between GPS observations (x), road states (r), and path states (p).

2.2 Feature Selection via $\ell_1$ Regularization

To ensure the model remains efficient for mobile or computation-limited environments, the authors employed $\ell_1$ regularization (Lasso). This mathematical penalty forces the weights of irrelevant or redundant features to zero, performing automated feature selection during the training phase. This prevents overfitting and significantly reduces the model's memory and processing footprint.

3. Experimental Setup

The study utilized the ST100 dataset, containing GPS trajectories from 70 taxis in Shanghai, China. The dataset includes 124 trajectories totaling 788 km. Ground truth routes were manually labeled by volunteers using the Open Source Routing Machine (OSRM). To test robustness, the data was artificially thinned to 60, 90, and 120-second sampling intervals.

4. Key Results and Discussion

The $\ell_1$-regularized CRF achieved a significant reduction in complexity while improving accuracy. The sparse model outperformed the dense $\ell_2$ model by approximately 10% in matching accuracy while using less than half the features.

Interval Regularizer Feature Count Point Error Rate Path Error Rate
60s $\ell_2$ (Dense) 44 0.228 0.299
60s $\ell_1$ (Sparse) 18 0.153 0.194
120s $\ell_2$ (Dense) 43 0.255 0.339
120s $\ell_1$ (Sparse) 17 0.166 0.234

Analysis of the selected features revealed that the model prioritizes GPS distance error, path length difference, and road class continuity. Interestingly, the model identified that taxi behavior changes based on whether a passenger is present, reflecting real-world urban mobility patterns where drivers might choose more direct routes when "in-service."

5. Conclusion

By leveraging sparse CRFs, this research demonstrates that it is possible to achieve high-accuracy map matching for low-sampling-rate data with minimal computational overhead. The automated feature selection successfully identified a core set of ~18 features that provide superior generalization over dense models. Future work will focus on incorporating spatial variance to account for differing driver behaviors across various urban neighborhoods.

Summary updated

BibTeX
@inproceedings{yang2014feature,
  author = {Jian Yang and Jian Yang and Liqiu Meng},
  title = {{Feature Selection in Conditional Random Fields for Map Matching of GPS Trajectories}},
  booktitle = {Lbs},
  year = {2014},
}
Figure