NLP-enabled Trajectory Map-matching in Urban Road Networks using a Transformer-based Encoder-decoder (2404.12460v4)
Abstract: Vehicular trajectory data from geolocation telematics is vital for analyzing urban mobility patterns. Map-matching aligns noisy, sparsely sampled GPS trajectories with digital road maps to reconstruct accurate vehicle paths. Traditional methods rely on geometric proximity, topology, and shortest-path heuristics, but they overlook two key factors: (1) drivers may prefer routes based on local road characteristics rather than shortest paths, revealing learnable shared preferences, and (2) GPS noise varies spatially due to multipath effects. These factors can reduce the effectiveness of conventional methods in complex scenarios and increase the effort required for heuristic-based implementations. This study introduces a data-driven, deep learning-based map-matching framework, formulating the task as machine translation, inspired by NLP. Specifically, a transformer-based encoder-decoder model learns contextual representations of noisy GPS points to infer trajectory behavior and road structures in an end-to-end manner. Trained on large-scale trajectory data, the method improves path estimation accuracy. Experiments on synthetic trajectories show that this approach outperforms conventional methods by integrating contextual awareness. Evaluation on real-world GPS traces from Manhattan, New York, achieves 75% accuracy in reconstructing navigated routes. These results highlight the effectiveness of transformers in capturing drivers' trajectory behaviors, spatial dependencies, and noise patterns, offering a scalable, robust solution for map-matching. This work contributes to advancing trajectory-driven foundation models for geospatial modeling and urban mobility applications.
- M. Batty, K. W. Axhausen, F. Giannotti, A. Pozdnoukhov, A. Bazzani, M. Wachowicz, G. Ouzounis, and Y. Portugali, “Smart cities of the future,” The European Physical Journal Special Topics, vol. 214, pp. 481–518, 2012.
- Y. Gao, S. Qian, Z. Li, P. Wang, F. Wang, and Q. He, “Digital twin and its application in transportation infrastructure,” in 2021 IEEE 1st International Conference on Digital Twins and Parallel Intelligence (DTPI). IEEE, 2021, pp. 298–301.
- M. Abdel-Aty, O. Zheng, Y. Wu, A. Abdelraouf, H. Rim, and P. Li, “Real-time big data analytics and proactive traffic safety management visualization system,” Journal of Transportation Engineering, Part A: Systems, vol. 149, no. 8, p. 04023064, 2023.
- A. J. Khattak, I. Mahdinia, S. Mohammadi, A. Mohammadnazar, and B. Wali, “Big data generated by connected and automated vehicles for safety monitoring, assessment and improvement, final report (year 3),” arXiv preprint arXiv:2101.06106, 2021.
- P. Alrassy, A. W. Smyth, and J. Jang, “Driver behavior indices from large-scale fleet telematics data as surrogate safety measures,” Accident Analysis & Prevention, vol. 179, p. 106879, 2023.
- S. E. Bibri and J. Krogstie, “Smart sustainable cities of the future: An extensive interdisciplinary literature review,” Sustainable cities and society, vol. 31, pp. 183–212, 2017.
- N. Lu, N. Cheng, N. Zhang, X. Shen, and J. W. Mark, “Connected vehicles: Solutions and challenges,” IEEE internet of things journal, vol. 1, no. 4, pp. 289–299, 2014.
- S. Mohammadi, R. Arvin, A. J. Khattak, and S. Chakraborty, “The role of drivers’ social interactions in their driving behavior: Empirical evidence and implications for car-following and traffic flow,” Transportation research part F: traffic psychology and behaviour, vol. 80, pp. 203–217, 2021.
- J. Liu, A. Khattak, and X. Wang, “A comparative study of driving performance in metropolitan regions using large-scale vehicle trajectory data: Implications for sustainable cities,” International Journal of Sustainable Transportation, vol. 11, no. 3, pp. 170–185, 2017.
- P. Li, M. Abdel-Aty, and J. Yuan, “Using bus critical driving events as surrogate safety measures for pedestrian and bicycle crashes based on gps trajectory data,” Accident Analysis & Prevention, vol. 150, p. 105924, 2021.
- F. Pinelli, R. Nair, F. Calabrese, M. Berlingerio, G. Di Lorenzo, and M. L. Sbodio, “Data-driven transit network design from mobile phone trajectories,” IEEE Transactions on Intelligent Transportation Systems, vol. 17, no. 6, pp. 1724–1733, 2016.
- K. Nguyen, J. Yang, Y. Lin, J. Lin, Y.-Y. Chiang, and C. Shahabi, “Los angeles metro bus data analysis using gps trajectory and schedule data (demo paper),” in Proceedings of the 26th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, 2018, pp. 560–563.
- B. Hui, D. Yan, H. Chen, and W.-S. Ku, “Trajnet: A trajectory-based deep learning model for traffic prediction,” in Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, 2021, pp. 716–724.
- S. Mohammadi, A. Olivier, and A. Smyth, “Probabilistic prediction of trip travel time and its variability using hierarchical bayesian learning,” ASCE-ASME Journal of Risk and Uncertainty in Engineering Systems, Part A: Civil Engineering, vol. 9, no. 2, p. 04023011, 2023.
- A. Olivier, S. Mohammadi, A. W. Smyth, and M. Adams, “Bayesian neural networks with physics-aware regularization for probabilistic travel time modeling,” Computer-Aided Civil and Infrastructure Engineering, 2023.
- A. Olivier, M. Adams, S. Mohammadi, A. Smyth, K. Thomson, T. Kepler, and M. Dadlani, “Data analytics for improved closest hospital suggestion for ems operations in new york city,” Sustainable Cities and Society, vol. 86, p. 104104, 2022.
- E. L. de Larrea, H. Lam, E. Sanabria, J. Sethuraman, S. Mohammadi, A. Olivier, A. W. Smyth, E. M. Dolan, N. E. Johnson, T. R. Kepler, et al., “Simulating new york city hospital load balancing during covid-19,” in 2021 Winter Simulation Conference (WSC). IEEE, 2021, pp. 1–12.
- N. Marković, P. Sekuła, Z. Vander Laan, G. Andrienko, and N. Andrienko, “Applications of trajectory data from the perspective of a road transportation agency: Literature review and maryland case study,” IEEE Transactions on Intelligent Transportation Systems, vol. 20, no. 5, pp. 1858–1869, 2018.
- M. Karaim, M. Elsheikh, A. Noureldin, and R. Rustamov, “Gnss error sources,” Multifunctional Operation and Application of GPS, pp. 69–85, 2018.
- M. A. Quddus, W. Y. Ochieng, and R. B. Noland, “Current map-matching algorithms for transport applications: State-of-the art and future research directions,” Transportation research part c: Emerging technologies, vol. 15, no. 5, pp. 312–328, 2007.
- M. Hashemi and H. A. Karimi, “A critical review of real-time map-matching algorithms: Current issues and future directions,” Computers, Environment and Urban Systems, vol. 48, pp. 153–165, 2014.
- A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017.
- M. Kubicka, A. Cela, H. Mounier, and S.-I. Niculescu, “Comparative study and application-oriented classification of vehicular map-matching methods,” IEEE Intelligent Transportation Systems Magazine, vol. 10, no. 2, pp. 150–166, 2018.
- P. Chao, Y. Xu, W. Hua, and X. Zhou, “A survey on map-matching algorithms,” in Databases Theory and Applications: 31st Australasian Database Conference, ADC 2020, Melbourne, VIC, Australia, February 3–7, 2020, Proceedings 31. Springer, 2020, pp. 121–133.
- C. E. White, D. Bernstein, and A. L. Kornhauser, “Some map matching algorithms for personal navigation assistants,” Transportation research part c: emerging technologies, vol. 8, no. 1-6, pp. 91–108, 2000.
- D. Bernstein, A. Kornhauser, et al., “An introduction to map matching for personal navigation assistants,” 1996.
- M. A. Quddus, W. Y. Ochieng, L. Zhao, and R. B. Noland, “A general map matching algorithm for transport telematics applications,” GPS solutions, vol. 7, pp. 157–167, 2003.
- J. S. Greenfeld, “Matching gps observations to locations on a digital map,” in Transportation research board 81st annual meeting, vol. 22, 2002, pp. 576–582.
- R. Zito, G. D’este, and M. Taylor, “Global positioning systems in the time domain: How useful a tool for intelligent vehicle-highway systems?” Transportation Research Part C: Emerging Technologies, vol. 3, no. 4, pp. 193–209, 1995.
- W. Y. Ochieng, M. Quddus, and R. B. Noland, “Map-matching in complex urban road networks,” 2003.
- B. Hummel, “Map matching for vehicle guidance,” in Dynamic and Mobile GIS. CRC Press, 2006, pp. 211–222.
- P. Newson and J. Krumm, “Hidden markov map matching through noise and sparseness,” in Proceedings of the 17th ACM SIGSPATIAL international conference on advances in geographic information systems, 2009, pp. 336–343.
- C. Y. Goh, J. Dauwels, N. Mitrovic, M. T. Asif, A. Oran, and P. Jaillet, “Online map-matching based on hidden markov model for real-time traffic sensing applications,” in 2012 15th International IEEE Conference on Intelligent Transportation Systems. IEEE, 2012, pp. 776–781.
- H. Koller, P. Widhalm, M. Dragaschnig, and A. Graser, “Fast hidden markov model map-matching for sparse and noisy trajectories,” in 2015 IEEE 18th International Conference on Intelligent Transportation Systems. IEEE, 2015, pp. 2557–2561.
- Y. Lou, C. Zhang, Y. Zheng, X. Xie, W. Wang, and Y. Huang, “Map-matching for low-sampling-rate gps trajectories,” in Proceedings of the 17th ACM SIGSPATIAL international conference on advances in geographic information systems, 2009, pp. 352–361.
- L. Li, M. Quddus, and L. Zhao, “High accuracy tightly-coupled integrity monitoring algorithm for map-matching,” Transportation Research Part C: Emerging Technologies, vol. 36, pp. 13–26, 2013.
- M. Quddus and S. Washington, “Shortest path and vehicle trajectory aided map-matching for low frequency gps data,” Transportation Research Part C: Emerging Technologies, vol. 55, pp. 328–339, 2015.
- M. E. El Najjar and P. Bonnifait, “A road-matching method for precise vehicle localization using belief theory and kalman filtering,” Autonomous Robots, vol. 19, pp. 173–191, 2005.
- L. Zhao, W. Y. Ochieng, M. A. Quddus, and R. B. Noland, “An extended kalman filter algorithm for integrating gps and low cost dead reckoning system data for vehicle performance and emissions monitoring,” The journal of Navigation, vol. 56, no. 2, pp. 257–275, 2003.
- S. Kim and J.-H. Kim, “Adaptive fuzzy-network-based c-measure map-matching algorithm for car navigation system,” IEEE Transactions on industrial electronics, vol. 48, no. 2, pp. 432–441, 2001.
- M. A. Quddus, R. B. Noland, and W. Y. Ochieng, “A high accuracy fuzzy logic based map matching algorithm for road transport,” Journal of Intelligent Transportation Systems, vol. 10, no. 3, pp. 103–115, 2006.
- E. W. Dijkstra, “A note on two problems in connexion with graphs,” in Edsger Wybe Dijkstra: His Life, Work, and Legacy, 2022, pp. 287–290.
- G. D. Forney, “The viterbi algorithm,” Proceedings of the IEEE, vol. 61, no. 3, pp. 268–278, 1973.
- J. Feng, Y. Li, K. Zhao, Z. Xu, T. Xia, J. Zhang, and D. Jin, “Deepmm: deep learning based map matching with data augmentation,” IEEE Transactions on Mobile Computing, vol. 21, no. 7, pp. 2372–2384, 2020.
- H. Ren, S. Ruan, Y. Li, J. Bao, C. Meng, R. Li, and Y. Zheng, “Mtrajrec: Map-constrained trajectory recovery via seq2seq multi-task learning,” in Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, 2021, pp. 1410–1419.
- L. Jiang, C.-X. Chen, and C. Chen, “L2mm: learning to map matching with deep models for low-quality gps trajectory data,” ACM Transactions on Knowledge Discovery from Data, vol. 17, no. 3, pp. 1–25, 2023.
- Y. Liu, Q. Ge, W. Luo, Q. Huang, L. Zou, H. Wang, X. Li, and C. Liu, “Graphmm: Graph-based vehicular map matching by leveraging trajectory and road correlations,” IEEE Transactions on Knowledge and Data Engineering, 2023.
- S. H. Park, B. Kim, C. M. Kang, C. C. Chung, and J. W. Choi, “Sequence-to-sequence prediction of vehicle trajectory via lstm encoder-decoder architecture,” in 2018 IEEE intelligent vehicles symposium (IV). IEEE, 2018, pp. 1672–1678.
- J. Wang, N. Wu, X. Lu, W. X. Zhao, and K. Feng, “Deep trajectory recovery with fine-grained calibration using kalman filter,” IEEE Transactions on Knowledge and Data Engineering, vol. 33, no. 3, pp. 921–934, 2019.
- J. Feng, Y. Li, C. Zhang, F. Sun, F. Meng, A. Guo, and D. Jin, “Deepmove: Predicting human mobility with attentional recurrent networks,” in Proceedings of the 2018 world wide web conference, 2018, pp. 1459–1468.
- I. Sutskever, O. Vinyals, and Q. V. Le, “Sequence to sequence learning with neural networks,” Advances in neural information processing systems, vol. 27, 2014.
- D. Grechishnikova, “Transformer neural network for protein-specific de novo drug generation as a machine translation problem,” Scientific reports, vol. 11, no. 1, p. 321, 2021.
- J. L. Ba, J. R. Kiros, and G. E. Hinton, “Layer normalization,” arXiv preprint arXiv:1607.06450, 2016.
- P. Alrassy, J. Jang, and A. W. Smyth, “Obd-data-assisted cost-based map-matching algorithm for low-sampled telematics data in urban environments,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 8, pp. 12 094–12 107, 2021.
- M.-T. Luong, H. Pham, and C. D. Manning, “Effective approaches to attention-based neural machine translation,” arXiv preprint arXiv:1508.04025, 2015.
- A. Milstein, “Occupancy grid maps for localization and mapping,” Motion planning, pp. 381–408, 2008.
- K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Proceedings of the 40th annual meeting of the Association for Computational Linguistics, 2002, pp. 311–318.