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.

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.