IDEAS home Printed from https://ideas.repec.org/a/eee/transe/v207y2026ics1366554525006350.html

Predicting dwell time of logistics electric vehicles in urban last-mile delivery: A SHAP-based ensemble approach

Author

Listed:
  • Ullah, Irfan
  • Ayaz, Muhammad Asim
  • Zhong, Minghui
  • Mao, Xiyan
  • Yuan, Quan

Abstract

Logistics Electric Vehicles (LEVs) are increasingly essential for sustainable urban freight and last-mile delivery, driven by the global push toward low-emission transportation and smart mobility ecosystems. However, optimizing LEV operations remains challenging due to the complex interplay of energy constraints, charging behavior, and urban logistics dynamics. This study aims to predict the dwell time (i.e., stop duration) of LEVs using an interpretable machine learning (ML) technique to support efficient fleet scheduling and energy planning. This study utilizes a real-world dataset of 1,065 LEV stops collected over one month in Shanghai, comprising operational, temporal, and energy-related variables. A stacked ensemble model integrating XGBoost, LightGBM, and CatBoost is developed to achieve high predictive accuracy, while SHAP analysis is employed to interpret the influence of key features. The proposed model achieves an R2 of 0.993, significantly outperforming individual learners, and reveals complex non-linear relationships among operational, temporal, and energy-related variables. SHAP analysis reveals that end state-of-charge (end_soc) and start_soc emerge as dominant drivers of dwell time, followed by trip speed, distance, time_of_day, and charging status indicators. These findings highlight the critical role of energy conditions and time windows in shaping dwell time. The study provides actionable insights for logistics firms, such as improved route optimization, charging station placement, and shift planning. It also offers policy guidance for urban planners and regulators in designing smart grid-compatible infrastructure, incentive schemes, and public–private data collaborations to enhance LEV ecosystem performance.

Suggested Citation

  • Ullah, Irfan & Ayaz, Muhammad Asim & Zhong, Minghui & Mao, Xiyan & Yuan, Quan, 2026. "Predicting dwell time of logistics electric vehicles in urban last-mile delivery: A SHAP-based ensemble approach," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 207(C).
  • Handle: RePEc:eee:transe:v:207:y:2026:i:c:s1366554525006350
    DOI: 10.1016/j.tre.2025.104607
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S1366554525006350
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.tre.2025.104607?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Taicheng Zhang & Qiao Peng & Shihong Zeng, 2025. "Predicting EV Charging Demand in Renewable-Energy-Powered Grids Using Explainable Machine Learning," Sustainability, MDPI, vol. 17(9), pages 1-22, May.
    2. Schücking, Maximilian & Jochem, Patrick, 2021. "Two-stage stochastic program optimizing the cost of electric vehicles in commercial fleets," Applied Energy, Elsevier, vol. 293(C).
    3. Zhang, Jin & Wang, Zhenpo & Liu, Peng & Zhang, Zhaosheng, 2020. "Energy consumption analysis and prediction of electric vehicles based on real-world driving data," Applied Energy, Elsevier, vol. 275(C).
    4. Rob Hart & Efthymia Kyriakopoulou & Tingmingke Lu, 2024. "Urban Transport Policies and Net Zero Emissions in the European Union," Annual Review of Resource Economics, Annual Reviews, vol. 16(1), pages 187-206, October.
    5. Kim, Haena & Goodchild, Anne & Boyle, Linda Ng, 2021. "Empirical analysis of commercial vehicle dwell times around freight-attracting urban buildings in downtown Seattle," Transportation Research Part A: Policy and Practice, Elsevier, vol. 147(C), pages 320-338.
    6. Alan McKinnon, 2023. "Environmentally sustainable city logistics: minimising urban freight emissions," Chapters, in: Edoardo Marcucci & Valerio Gatta & Michela Le Pira (ed.), Handbook on City Logistics and Urban Freight, chapter 23, pages 463-482, Edward Elgar Publishing.
    7. Liu, Jianmiao & Li, Junyi & Chen, Yong & Lian, Song & Zeng, Jiaqi & Geng, Maosi & Zheng, Sijing & Dong, Yinan & He, Yan & Huang, Pei & Zhao, Zhijian & Yan, Xiaoyu & Hu, Qinru & Wang, Lei & Yang, Di & , 2023. "Multi-scale urban passenger transportation CO2 emission calculation platform for smart mobility management," Applied Energy, Elsevier, vol. 331(C).
    8. David Francas & Miray Öner-Közen & Stefan Minner, 2024. "Is it beneficial to invest in flexible capacity for hybrid remanufacturing?," International Journal of Production Research, Taylor & Francis Journals, vol. 62(21), pages 7836-7859, November.
    9. Ruibin Bai & Xinan Chen & Zhi-Long Chen & Tianxiang Cui & Shuhui Gong & Wentao He & Xiaoping Jiang & Huan Jin & Jiahuan Jin & Graham Kendall & Jiawei Li & Zheng Lu & Jianfeng Ren & Paul Weng & Ning Xu, 2023. "Analytics and machine learning in vehicle routing research," International Journal of Production Research, Taylor & Francis Journals, vol. 61(1), pages 4-30, January.
    10. Bogdanov, Dmitrii & Ram, Manish & Khalili, Siavash & Aghahosseini, Arman & Fasihi, Mahdi & Breyer, Christian, 2024. "Effects of direct and indirect electrification on transport energy demand during the energy transition," Energy Policy, Elsevier, vol. 192(C).
    11. Shanshan Li & Zhengjun Hu, 2024. "The Impact of the Circular Economy Pilot Policy on Carbon Emissions in Chinese Cities and Its Underlying Mechanisms," Sustainability, MDPI, vol. 16(17), pages 1-25, September.
    12. Ehrler, Verena Ch & Schöder, Dustin & Seidel, Saskia, 2021. "Challenges and perspectives for the use of electric vehicles for last mile logistics of grocery e-commerce – Findings from case studies in Germany," Research in Transportation Economics, Elsevier, vol. 87(C).
    13. Pourvaziri, H. & Sarhadi, H. & Azad, N. & Afshari, H. & Taghavi, M., 2024. "Planning of electric vehicle charging stations: An integrated deep learning and queueing theory approach," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 186(C).
    14. Jiali Yu & Peng Yang & Kai Zhang & Faping Wang & Lixin Miao, 2018. "Evaluating the Effect of Policies and the Development of Charging Infrastructure on Electric Vehicle Diffusion in China," Sustainability, MDPI, vol. 10(10), pages 1-25, September.
    15. Gao, Yongling & Leng, Mingming & Zhang, Yaping & Liang, Liping, 2022. "Incentivizing the adoption of electric vehicles in city logistics: Pricing, driving range, and usage decisions under time window policies," International Journal of Production Economics, Elsevier, vol. 245(C).
    16. Mingyue Hu & Xiao Wu & Yue Yuan & Chuanbo Xu, 2024. "Competitive Analysis of Heavy Trucks with Five Types of Fuels under Different Scenarios—A Case Study of China," Energies, MDPI, vol. 17(16), pages 1-21, August.
    17. Valerio Gatta & Edoardo Marcucci & Michela Le Pira, 2023. "E-commerce and urban logistics: trends, challenges, and opportunities," Chapters, in: Edoardo Marcucci & Valerio Gatta & Michela Le Pira (ed.), Handbook on City Logistics and Urban Freight, chapter 21, pages 422-443, Edward Elgar Publishing.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yuan, Zijian & Wang, Tao & Tian, Junfang & Zhang, Jing & Zheng, Jianfeng & Wu, Jianjun & Gao, Ziyou, 2026. "Mitigate the range anxiety: two-stage optimization for the electric vehicle routing problem with time windows and battery status uncertainty," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 205(C).
    2. Liu Wu & Min Liu & Ke Gong & Liudan Jiao & Xiaosen Huo & Yu Zhang & Hao Wang, 2025. "The Usage of Big Data in Electric Vehicle Charging: A Comprehensive Review," Energies, MDPI, vol. 18(19), pages 1-25, September.
    3. Xiong, Siqin & Yuan, Yi & Yao, Jia & Bai, Bo & Ma, Xiaoming, 2023. "Exploring consumer preferences for electric vehicles based on the random coefficient logit model," Energy, Elsevier, vol. 263(PA).
    4. Pueyo, Ana & Haas, Jannik, 2025. "Energy transitions in the Pacific, one island at a time: The case of Efate island, Vanuatu," Energy Policy, Elsevier, vol. 206(C).
    5. Hegde, Bharatkumar & Ahmed, Qadeer & Rizzoni, Giorgio, 2020. "Velocity and energy trajectory prediction of electrified powertrain for look ahead control," Applied Energy, Elsevier, vol. 279(C).
    6. Zhao, Chuyun & Tang, Jinjun & Kong, Xiangxin & Yu, Tianjian & Li, Zhitao, 2024. "Emission analysis of multi-mode public transportation based on joint choice model considering built environment factors," Energy, Elsevier, vol. 309(C).
    7. Christian Wankmüller & Maximilian Kunovjanek & Robert Gennaro Sposato & Gerald Reiner, 2020. "Selecting E-Mobility Transport Solutions for Mountain Rescue Operations," Energies, MDPI, vol. 13(24), pages 1-19, December.
    8. Gu, Bo & Li, Fangxing & Mao, Chengxiong & Wang, Dan & Fan, Hua & Liu, Bin & Li, Wenhao, 2025. "A Bilevel robust coordination model for community integrated energy system with access to HFCEVs and EVs," Applied Energy, Elsevier, vol. 390(C).
    9. Maciej Kozłowski & Andrzej Czerepicki, 2025. "Operational Energy Consumption Map for Urban Electric Buses: Case Study for Warsaw," Energies, MDPI, vol. 18(13), pages 1-19, June.
    10. Salmelin, Markus & Hyypiä, Jaakko & Satymov, Rasul & Galimova, Tansu & Talus, Kim & Karjunen, Hannu & Lassila, Jukka & Breyer, Christian, 2025. "Exploring the Shetland Islands’ potential as a green e-hydrogen export hub for Europe," Energy, Elsevier, vol. 339(C).
    11. Wu, Jishi & Feng, Tao & Jia, Peng, 2025. "Revealing the built environment impacts on curbside freight parking demand using a deep generalized additive modeling framework," Transport Policy, Elsevier, vol. 174(C).
    12. Cauwelier, Kathleen & Buldeo Rai, Heleen & Mommens, Koen, 2025. "Thinking fast, slow delivery: nudging sustainable choices among Gen Z consumers," Research in Transportation Economics, Elsevier, vol. 114(C).
    13. Linghong Zhang & Wence Shi, 2025. "The Impacts of the US Inflation Reduction Act on EV Supply Chains," Sustainability, MDPI, vol. 17(2), pages 1-19, January.
    14. Dimitrios Loukatos & Vasileios Arapostathis & Christos-Spyridon Karavas & Konstantinos G. Arvanitis & George Papadakis, 2024. "Power Consumption Analysis of a Prototype Lightweight Autonomous Electric Cargo Robot in Agricultural Field Operation Scenarios," Energies, MDPI, vol. 17(5), pages 1-24, March.
    15. Wang, Yubin & Dong, Wei & Yang, Qiang, 2022. "Multi-stage optimal energy management of multi-energy microgrid in deregulated electricity markets," Applied Energy, Elsevier, vol. 310(C).
    16. Huang, Hai-chao & He, Hong-di & Peng, Zhong-ren, 2024. "Urban-scale estimation model of carbon emissions for ride-hailing electric vehicles during operational phase," Energy, Elsevier, vol. 293(C).
    17. Feng, Zhanyu & Zhang, Jian & Jiang, Han & Yao, Xuejian & Qian, Yu & Zhang, Haiyan, 2024. "Energy consumption prediction strategy for electric vehicle based on LSTM-transformer framework," Energy, Elsevier, vol. 302(C).
    18. Parker, Nathan C. & Kuby, Michael & Liu, Jingteng & Stechel, Ellen B., 2025. "Extreme heat effects on electric vehicle energy consumption and driving range," Applied Energy, Elsevier, vol. 380(C).
    19. Kim, Sung Wook & Oh, Ki-Yong & Lee, Seungchul, 2022. "Novel informed deep learning-based prognostics framework for on-board health monitoring of lithium-ion batteries," Applied Energy, Elsevier, vol. 315(C).
    20. Jianlong Wu & Zhongji Yang & Xiaobo Hu & Hongqi Wang & Jing Huang, 2018. "Exploring Driving Forces of Sustainable Development of China’s New Energy Vehicle Industry: An Analysis from the Perspective of an Innovation Ecosystem," Sustainability, MDPI, vol. 10(12), pages 1-24, December.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:transe:v:207:y:2026:i:c:s1366554525006350. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/600244/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.