Identifying Urban Last-Mile Delivery Stops from GPS Trajectory Data: A Feature-Driven Machine Learning Framework

DOI:

https://doi.org/10.63646/XAVA1391

Keywords:

Urban last-mile logistics; GPS trajectory; delivery stop identification; machine learning; SMOTE; class imbalance; SVM; KNN; decision tree; interpretable features

Abstract

Urban last-mile logistics represents one of the fastest-growing and most operationally complex segments of the contemporary supply chain, yet fine-grained monitoring of delivery activities remains a persistent challenge because passively collected GPS records do not encode the purpose of individual vehicle stops. This paper presents an end-to-end, feature-driven machine learning framework for identifying genuine delivery stops from GPS trajectories of urban courier vehicles by integrating raw vehicle traces with electronic waybill records. Drawing on a real-world parcel-courier dataset spanning the full calendar year 2022 and encompassing more than 80 delivery vehicles across a major metropolitan area, the framework proceeds through three sequential stages: preprocessing of raw GPS traces, stop-candidate extraction via speed-threshold segmentation and spatial merging, and automated ground-truth labelling through waybill-to-stop matching within calibrated spatio-temporal tolerance windows. Each candidate stop is represented by five interpretable, domain-grounded features—dwell time, pre-stop speed, heading change, local stop density, and distance from the departure hub—that collectively capture the kinematic and spatial signatures distinguishing genuine delivery events from other stop types, without requiring any external GIS layers or map-matching infrastructure. To address severe class imbalance (positive-class rate: 2.92%), Synthetic Minority Over-sampling Technique (SMOTE) resampling is applied exclusively to the training partition before three supervised classifiers—Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Decision Tree (DT)—are trained and evaluated under a unified experimental protocol. All three models achieve test-set identification accuracy exceeding 98.9%. Cross-model error analysis reveals that SVM exhibits a precision-oriented error profile (FNR 22.80%; FPR 0.01%), whereas KNN and DT demonstrate recall-oriented behavior (FNR below 9%; FPR below 0.9%) and identifies three empirically grounded hard-case false-negative patterns that define actionable targets for future feature enrichment. The framework requires no manual annotation or external facility inventories, rendering it directly transferable to other commodity types and urban operating environments.

How to Cite

Zhou, Y., Xiao, X., & Jia, C. (2025). Identifying Urban Last-Mile Delivery Stops from GPS Trajectory Data: A Feature-Driven Machine Learning Framework. Journal of Technology Innovation and Society, 1(1), 199-217. https://doi.org/10.63646/XAVA1391

References

Allen, J., Browne, M., Woodburn, A., and Leonardi, J. (2018). The role of urban consolidation centres in sustainable freight transport. Transport Reviews, 32(4), 473–490. https://doi.org/10.1080/01441647.2017.1350082

Amaya, J., Arellana, J., and Chantre-Astaiza, A. (2021). A review of GPS data-processing methods for urban freight applications. Journal of Transport Geography, 91, 102959. https://doi.org/10.1016/j.jtrangeo.2021.102959

Basso, R., Kulcsar, B., Egardt, B., Lindroth, P., and Sanchez-Diaz, I. (2024). Electric vehicle scheduling considering stochastic en-route charging. Transportation Research Part C, 160, 104636. https://doi.org/10.1016/j.trc.2024.104636

Boysen, N., Fedtke, S., and Schwerdfeger, S. (2021). Last-mile delivery concepts: A survey from an operational research perspective. OR Spectrum, 43(1), 1–58. https://doi.org/10.1007/s00291-020-00600-2

Breiman, L., Friedman, J. H., Olshen, R. A., and Stone, C. J. (1984). Classification and regression trees. Wadsworth and Brooks/Cole. https://doi.org/10.1201/9781315139470

Chawla, N. V., Bowyer, K. W., Hall, L. O., and Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. https://doi.org/10.1613/jair.953

Cortes, C., and Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273–297. https://doi.org/10.1007/BF00994018

Cover, T., and Hart, P. (1967). Nearest neighbor pattern classification. IEEE Transactions on Information Theory, 13(1), 21–27. https://doi.org/10.1109/TIT.1967.1053964

Dablanc, L., Morganti, E., Arvidsson, N., Woxenius, J., Browne, M., and Saidi, N. (2017). The rise of on-demand delivery services in European cities. Supply Chain Forum, 18(4), 203–217. https://doi.org/10.1080/16258312.2017.1375375

Du, J., and Aultman-Hall, L. (2007). Increasing the accuracy of trip rate information from passive multi-day GPS travel datasets. Transportation Research Part A, 41(3), 220–232. https://doi.org/10.1016/j.tra.2006.05.001

Figliozzi, M. A., and Tipagornwong, C. (2017). Impact of last-mile parking availability on commercial vehicle costs and operations. Transportation Research Part A, 103, 510–524. https://doi.org/10.1016/j.tra.2016.12.001

Frenay, B., and Verleysen, M. (2014). Classification in the presence of label noise: A survey. IEEE Transactions on Neural Networks and Learning Systems, 25(5), 845–869. https://doi.org/10.1109/TNNLS.2013.2292894

Gingerich, K., Maoh, H., and Anderson, W. (2016). Classifying the purpose of stopped truck events: An application of entropy to GPS data. Transportation Research Part C, 64, 17–27. https://doi.org/10.1016/j.trc.2015.12.012

Greaves, S. P., and Figliozzi, M. A. (2008). Collecting commercial vehicle tour data with passive GPS technology. Transportation Research Record, 2049, 158–166. https://doi.org/10.3141/2049-19

He, H., and Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. https://doi.org/10.1109/TKDE.2008.239

He, Z., Guo, W., and Wang, J. (2020). Deriving passenger car equivalents for mixed traffic flows from GPS data. Transportation Research Part C, 120, 102747. https://doi.org/10.1016/j.trc.2020.102747

Lagorio, A., Pinto, R., and Golini, R. (2016). Research in urban logistics: A systematic literature review. International Journal of Physical Distribution and Logistics Management, 46(10), 908–931. https://doi.org/10.1108/IJPDLM-01-2016-0008

Liao, F., Correia, G., and Timmermans, H. J. P. (2022). Simulation of autonomous electric vehicle carsharing systems. Transportation Research Part C, 136, 103492. https://doi.org/10.1016/j.tre.2021.102503

Lu, M., Rijpkema, D., and Quak, H. (2025). CO₂ performance assessment of urban last-mile logistics using GPS data. Transportation Research Part D, 131, 104093. https://doi.org/10.1016/j.trd.2024.104093

Mangiaracina, R., Perego, A., Seghezzi, A., and Tumino, A. (2019). Innovative solutions to increase last-mile delivery efficiency in B2C e-commerce. International Journal of Physical Distribution and Logistics Management, 49(9), 901–920. https://doi.org/10.1108/IJPDLM-02-2019-0048

McCormack, E., Zhao, W., Dailey, D. J., and Sosa, T. (2010). Using GPS truck data to develop a freight performance measurement system. Transportation Research Record, 2168, 83–91. https://doi.org/10.3141/2168-09

Patel, N., Jafri, S., and Figliozzi, M. (2022). Clustering GPS commercial vehicle stops into freight activity patterns. Transportation Research Record, 2676(2), 490–500. https://doi.org/10.1177/03611981211036024

Peng, B., Song, X., and Krogh, B. (2025). GPS data-driven courier stop activity analysis in high-density urban environments. Journal of Transport Geography, 116, 103853. https://doi.org/10.1016/j.jtrangeo.2024.103853

Quinlan, J. R. (1986). Induction of decision trees. Machine Learning, 1(1), 81–106. https://doi.org/10.1007/BF00116251

Ratner, A. J., De Sa, C., Wu, S., Selsam, D., and Re, C. (2017). Data programming: Creating large training sets quickly. Proceedings of the VLDB Endowment, 11(3), 269–282. https://doi.org/10.14778/3137628.3137680

Savelsbergh, M., and Van Wegen, T. (2016). City logistics: Challenges and opportunities. Transportation Science, 50(2), 579–590. https://doi.org/10.1287/trsc.2016.0675

Shen, L., and Stopher, P. R. (2014). Review of GPS travel survey and GPS data-processing methods. Transport Reviews, 34(3), 316–334. https://doi.org/10.1080/01441647.2013.856882

Siripirote, T., Sumalee, A., and Ho, H. W. (2020). Statistical estimation of freight activity analytics from GPS data of trucks. Transportation Research Part E, 140, 101986. https://doi.org/10.1016/j.tre.2019.101886

Song, L., Shangguan, Q., Zhao, P., Guo, X., and Fu, T. (2023). Deep learning-based vehicle activity identification from GPS data in urban logistics. Computers in Industry, 145, 103847. https://doi.org/10.1016/j.compind.2023.103847

Suel, E., Bhatt, P., Wasilewski, J., Bhattacharya, S., and Bhattacharya, A. (2021). Measuring and predicting urban stop demand for last-mile logistics with deep learning. Transportation Research Part C, 131, 103257. https://doi.org/10.1016/j.trc.2021.103257

Vapnik, V. N. (1995). The nature of statistical learning theory. Springer. https://doi.org/10.1007/978-1-4757-2440-0

Wu, J., Peng, B., and Yao, E. (2024). Integrating GPS data and deep learning for dynamic courier routing optimisation. Transportation Research Part C, 159, 104431. https://doi.org/10.1016/j.trc.2023.104431

Yang, X., Huan, Y., Li, Q., and Li, L. (2022a). GPS-based identification of urban freight journey ends of heavy trucks. Transportation Research Part C, 136, 103380. https://doi.org/10.1016/j.trc.2021.103380

Yang, X., Huan, Y., Wang, K., and Li, Q. (2022b). Intercity freight travel end identification from GPS data of heavy trucks. Transportation Research Part C, 143, 103561. https://doi.org/10.1016/j.trc.2022.103561

Yang, X., Lu, Y., and Zhao, X. (2016). A trajectory-based clustering method for identifying freight stops from GPS data. Transportation Research Record, 2548, 90–98. https://doi.org/10.3141/2548-11

Zhou, Z.-H. (2018). A brief introduction to weakly supervised learning. National Science Review, 5(1), 44–53. https://doi.org/10.1093/nsr/nwx106