计算机工程与应用 ›› 2025, Vol. 61 ›› Issue (15): 310-317.DOI: 10.3778/j.issn.1002-8331.2405-0309

• 工程与应用 • 上一篇    下一篇

融合多源异质特征的最后一公里配送路线与时间并行预测

侯云峰,毛潇苇,温浩珉,郭晟楠,林友芳,万怀宇   

  1. 1.北京交通大学 计算机科学与技术学院,北京 100044 
    2.交通数据分析与挖掘北京市重点实验室(北京交通大学),北京 100044
  • 出版日期:2025-08-01 发布日期:2025-07-31

Parallel Prediction of Last-Mile Delivery Routes and Times by Integrating Heterogeneous Multisource Features

HOU Yunfeng, MAO Xiaowei, WEN Haomin, GUO Shengnan, LIN Youfang, WAN Huaiyu   

  1. 1.School of Computer Science and Technology, Beijing Jiaotong University, Beiing 100044, China
    2.Beijing Key Laboratory of Traffic Data Analysis and Mining(Beijing Jiaotong University), Beijing 100044, China
  • Online:2025-08-01 Published:2025-07-31

摘要: 最后一公里配送是指将包裹从仓库送至客户手中,是物流服务的关键一步。在最后一公里配送中进行路线和时间预测(route and time prediction,RTP),有利于提升物流系统效率并改善客户的体验。然而,实现准确的路线和时间预测面临巨大的挑战。快递员的配送路线和到达时间受到多源异质特征的影响,如快递员的个性化偏好、订单所在位置及下单时间、订单所在区域的类型及订单量等;当前很多研究先预测配送路线再预测配送时间,但不准确的路线预测结果往往会对时间预测造成误差累积。针对上述挑战,提出了一种基于多关系图神经网络的路线与时间并行预测方法(multi-relational graph model for route and time parallel prediction,MRG4RTPP)。构建包裹在位置和区域这两个层次上的时间、空间和转移模式多关系图,并设计双层次多关系图编码器提取多源异质特征,对包裹间的复杂时空关系进行建模。创新性地提出基于状态转移的路线与时间并行解码方式,用于缓解误差累计问题,在每步解码中,基于快递员当前状态并行预测下一配送包裹及其到达时间,并基于预测结果更新快递员状态。在三个城市的真实物流配送数据集上进行了实验,结果表明MRG4RTPP在路线预测和时间预测任务上均达到了当前最优效果。

关键词: 最后一公里配送, 路线预测, 时间预测, 图神经网络, 注意力机制

Abstract: Last-mile delivery refers to the process of transporting packages from the warehouse to the customer’s hands, which is a critical step in logistics services. Route and time prediction (RTP) in last-mile delivery can improve customer experience and reduce platform costs. However, achieving accurate route and time predictions presents significant challenges. Firstly, the delivery routes and arrival times of couriers are influenced by diverse and heterogeneous features such as the couriers’ personal preferences, the location and timing of the orders, the type of area where the orders are located, and the volume of orders. Secondly, in joint prediction methods, inaccurate route predictions can lead to the accumulation of errors in time prediction. To address these challenges, this paper proposes a multi-relational graph model for route and time parallel prediction (MRG4RTPP). Specifically, this paper constructs multi-relationship graphs of packages at two levels: location and area, incorporating time, space, and transfer patterns, and designs a dual level multi-relationship graph encoder to extract and model the complex relationships of multi-source heterogeneous features. In addition, a route-time parallel decoder is introduced for the joint parallel prediction of route and time. In each decoding step, the next delivery package and its arrival time are predicted in parallel based on the current status of the courier, and the courier’s status is updated based on the prediction results. This state-transition-based parallel decoding approach can effectively mitigate the error accumulation problem. Experiments conducted on real-world logistics delivery datasets in three cities demonstrate that MRG4RTPP achieves optimal results in both route and time prediction tasks.

Key words: last-mile delivery, route prediction,  , time prediction, graph neural network, attention mechanism