Research Article

Random Forest Regression Analysis for Package Delivery Time Prediction

Allen He*
BASIS International School Park Lane Harbour

* Corresponding author: [email protected]

Abstract

Predicting delivery times is a central challenge in logistics, especially during the last-mile phase, which is the final step in the supply chain where goods are delivered to the customer. This work studies previous approaches and proposes Random Forest Regression for Time Prediction (hereafter RFRTP), a Random Forest Regression-based model to improve delivery time predictions in logistics systems. This study examines the effectiveness of RFRTP compared to baseline statistical and machine learning models when accounting for the complex factors affecting delivery times, such as traffic conditions, order density, and route assignments. A dataset based on delivery data provided by JD Logistics, containing extensive information on last-minute deliveries in an urban environment, was used to train and test RFRTP and multiple baseline regression models, specifically Linear, Lasso, and Ridge, which were analyzed on their performances in delivery time prediction. The experimental results show that the proposed RFRTP model obtains the best results in last-minute delivery time prediction, which strongly contributes to more reliable time estimates, improved customer satisfaction, and greater efficiency. Through feature importance analysis on the RFRTP model, this study found the most critical dataset features for prediction, providing insight into the most important data. This study also calculated prediction intervals for the results of RFRTP, allowing for margins of error and transparency in the confidence of the model’s estimates.

Keywords: Last-mile delivery; delivery time prediction; random forest regression.
Published: October 2, 2025
DOI: 10.54254/2753-8818/2026.HZ27848
Volume: TNS Vol.143
pp. 125-134
Download PDF

References

  1. Arıkan, U., Kranz, T., Sal, B. C., Schmitt, S., & Witt, J. (2023). Human-Centric Parcel Delivery at Deutsche Post with Operations Research and Machine Learning. INFORMS Journal on Applied Analytics, 53(5), 359–371. https: //doi.org/10.1287/inte.2023.0031.
  2. D. Merchán, J. Arora, J. Pachon, K. Konduri, M. Winkenbach, S. Parks, and J. Noszek, “2021 Amazon Last Mile Routing Research Challenge: Data Set, ” Transportation Science, vol. 58, no. 1, pp. 65–77, 2022, doi: 10.1287/trsc.2022.1173.
  3. Mo, B., Wang, Q. Y., Guo, X., Winkenbach, M., & Zhao, J. (2023). Predicting Drivers’ Route Trajectories in Last-Mile Delivery Using A Pair-wise Attention-based Pointer Neural Network. ArXiv.org. https: //arxiv.org/abs/2301.03802.
  4. F. Huang, W. Jiang, and S. Chen, “A Multitask Attention Network for Food Delivery Time Prediction, ” Journal of Circuits, Systems, and Computers, vol. 33, no. 24, pp. 2450025-1–2450025-18, 2023, doi: 10.1142/S0218126624500257.
  5. Wang, S., Kong, T., Guo, B., Lin, L., & Wang, H. (2024). CourIRL: Predicting Couriers’ Behavior in Last-Mile Delivery Using Crossed-Attention Inverse Reinforcement Learning. CIKM ’24: Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, 4957–4965. https: //doi.org/10.1145/3627673.368004.
  6. L. Wu, H. Wen, H. Hu, X. Mao, Y. Xia, E. Shan, J. Zhen, J. Lou, Y. Liang, L. Yang, R. Zimmermann, Y. Lin, and H. Wan, “LaDe: The First Comprehensive Last-Mile Delivery Dataset from Industry, ” arXiv preprint, arXiv: 2306.10675, 2023, doi: 10.48550/arXiv.2306.10675.
  7. Bas, E., Egrioglu, E., & Cansu, T. (2023). Robust training of median dendritic artificial neural networks for time series forecasting. Expert Systems with Applications, 238(Part C), 122080. https: //doi.org/10.1016/j.eswa.2023.122080.
  8. C. Chen, E. W. Sun, M.-F. Chang, and Y. Lin, “Enhancing Travel Time Prediction with Deep Learning on Chronological and Retrospective Time Order Information of Big Traffic Data, ” Annals of Operations Research, vol. 343, pp. 115–137, 2023, doi: 10.1007/s10479-023-05223-7.
  9. Müller, N., Burggräf, P., Steinberg, F., Sauer, C. R., & Schütz, M. (2025). An analytical review of predictive methods for delivery delays in supply chains. Supply Chain Analytics, 11, 100130. https: //doi.org/10.1016/j.sca.2025.100130.
  10. S. S. Özarık, P. da Costa, and A. M. Florio, “Machine Learning for Data-Driven Last-Mile Delivery Optimization, ” Transportation Science, vol. 58, no. 1, pp. 78–92, 2023, doi: 10.1287/trsc.2022.0029.
  11. Lin, S., Xu, Y., Zhao, S., Wang, Y., & Xu, J. (2023). TransETA: transformer networks for estimated time of arrival with local congestion representation. Applied Intelligence, 53(24), 30384–30399. https: //doi.org/10.1007/s10489-023-05139-6.