The dynamic development of the food delivery sector and the resulting increase in last-mile distribution operations generate the need to simultaneously improve the efficiency of delivery processes and reduce the environmental impacts of urban logistics. In this context, shortening delivery time contributes not only to higher service quality and competitiveness but also to lower energy consumption and carbon dioxide emissions, which are key elements of sustainable urban mobility and logistics. Therefore, the aim of this study is to develop a delivery time optimization algorithm for the food delivery sector using selected machine learning methods, supporting the implementation of sustainable development principles in the operations of transport enterprises. This study presents an integrated approach to modelling delivery time in food distribution as a tool for building the competitive advantage of logistics enterprises under the conditions of implementing sustainable development principles. The study combines a literature review on sustainable last-mile logistics and data-driven optimization with an empirical analysis using traditional methods such as multiple regression and selected machine learning methods: decision trees, the Gradient Boosting Machine (GBM) method, and the XGBoost algorithm. The operational data include parameters related to delivery execution, such as supplier characteristics, vehicle type, order execution date, weather conditions and traffic situation. The developed mathematical models enable high-accuracy prediction of delivery time and the identification of the most important factors affecting both timeliness and potential energy consumption in the delivery process. The comparative assessment of the applied methods makes it possible to indicate the algorithms that provide the best forecast quality and practical usefulness in logistics decision-making. The proposed delivery time optimization algorithm supports data-driven decision-making that leads to shorter delivery times and lower energy intensity and thus to a reduction in the carbon footprint of last-mile operations, simultaneously strengthening the competitiveness and environmental responsibility of logistics enterprises. The results contribute to the development of sustainable urban logistics by linking predictive modelling with the economic, environmental and operational dimensions of efficiency in last-mile transport processes. Overall, this study offers an original, high-quality contribution to sustainable last-mile food delivery by integrating large-scale operational data with advanced machine learning models to deliver practically relevant, highly accurate delivery time predictions for logistics enterprises.
Grzelak et al. (Fri,) studied this question.