A joint delivery path planning method considering user preferences

By combining the machine learning model and the shortest path algorithm, a joint delivery path that conforms to user preferences is generated, which solves the problems of low path planning efficiency and inability to consider user preferences in the existing technology, and achieves intelligent recommendations and efficient path planning.

CN118396515BActive Publication Date: 2024-09-06NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410853448.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-06
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing path planning technology cannot effectively combine user experience and preferences, and computer path planning efficiency is low, making it difficult to generate a delivery path that meets the user's personal preferences.

Method used

The machine learning model is combined with the shortest path algorithm to generate user preference paths by learning historical path data, sorting the output paths using the comprehensive selection probability, and automatically updating nodes in multi-step planning, integrating user preferences and the shortest path algorithm to generate paths.

Benefits of technology

It improves the efficiency of path planning, can intelligently recommend and assist users to generate delivery paths that meet their personal preferences, and improves the efficiency and user experience of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396515B
    Figure CN118396515B
Patent Text Reader

Abstract

The present application relates to a joint delivery path planning method considering user preferences. The method includes: in the single-step planning stage, using a machine learning model and a shortest path algorithm to obtain the comprehensive selection probability of each subsequent channel of the current node, sorting the subsequent channels of the current node in order from large to small according to the comprehensive selection probability, and outputting the single-step planning path of the current node by considering user preferences and sorting results; in the multi-step planning stage, automatically updating the current node on the basis of the single-step planning path and sequentially executing the single-step planning, if the current node is updated to the task end before the termination condition is met, stop the single-step planning and output the multi-step planning path connecting the task start point to the task end point; otherwise, call the shortest path algorithm to output the shortest path from the task start point to the task end point as the recommended path and end the planning. This method can efficiently generate a delivery path that meets user preferences through intelligent recommendation combined with manual confirmation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of path planning, and in particular to a joint delivery path planning method taking user preferences into consideration. Background Art

[0002] Joint delivery refers to the high-speed, three-dimensional, long-distance joint operations organized by task units from the assembly point to the destination. Joint delivery involves at least two or more modes of transportation, such as railways, roads, aviation, waterways, etc. Joint delivery planning includes many optimization issues such as path planning, loading optimization, and multimodal transport solution design. Among them, path planning is the basis and premise of joint delivery planning. Its purpose is to plan one or more alternative paths that meet the requirements based on the departure point, assembly point, task type, etc. of each task unit, and provide input for the design of multimodal transport solutions.

[0003] At present, there are two modes for using computers to carry out path planning: one is to use mathematical programming models to plan paths, such as the shortest path algorithm; the other is for users to plan paths by adding segments one by one. The former cannot take into account user experience and preferences, and the latter is less efficient. How to combine the two modes to generate a delivery path that meets the user's personal preferences and improve the efficiency of path planning is an urgent problem to be solved by technicians in this field. Summary of the invention

[0004] Based on this, it is necessary to provide a joint delivery path planning method that takes user preferences into consideration to address the above technical issues.

[0005] A joint delivery path planning method considering user preferences, the method comprising:

[0006] In the single-step planning stage of the joint delivery path, the machine learning model and the shortest path algorithm are used to obtain the comprehensive selection probability of each subsequent channel of the current node, and the subsequent channels of the current node are sorted in descending order according to the comprehensive selection probability. The single-step planning path of the current node is output by considering user preferences and sorting results.

[0007] In the multi-step planning stage of the joint delivery path, based on the single-step planning path, the current node is automatically updated and the single-step planning is executed sequentially. If the current node is updated to the task end point before the termination condition is met, the single-step planning is stopped and the multi-step planning path connecting the task starting point to the task end point is output; otherwise, the shortest path algorithm is called to output the shortest path from the task starting point to the task end point as the recommended path and end the path planning.

[0008] In one embodiment, the specific process of the joint delivery path single-step planning stage includes:

[0009] Offline stage: All historical planned paths are encoded segment by segment through the pre-built dictionary library to generate a training set consisting of multiple training samples. The training set is then input into the machine learning model for training, and the trained machine learning model is output;

[0010] Online stage: The task information of the current path planning encoded by the dictionary library is input into the trained machine learning model for prediction to obtain the first-class selection probability of each subsequent channel of the current node, and the shortest path algorithm is used to calculate the second-class selection probability of each subsequent channel of the current node. The comprehensive selection probability of each subsequent channel of the current node is obtained by weighted summation of the second-class selection probability and the first-class selection probability. The subsequent channels of the current node are sorted in descending order according to the comprehensive selection probability, and the single-step planning path of the current node is output by considering user preferences and sorting results.

[0011] In one embodiment, all historical planned paths are encoded segment by segment through a pre-built dictionary library to generate a training set consisting of multiple training samples, and the training set is input into a machine learning model for training, and a trained machine learning model is output, including:

[0012] By removing duplicates from all node names, channel names, transportation methods, and mission types in the transportation network involved in the joint delivery mission and mapping them to unique digital codes, a dictionary library for the joint delivery path planning field is obtained; wherein the node name is a string represented by the city name, the channel name is a string represented by the route name between cities, the transportation methods include railways, roads, aviation, and waterways, and the mission types include light and heavy;

[0013] According to the dictionary library, all historical planned paths are encoded segment by segment to generate a training set consisting of multiple training samples, which is expressed as ;in, is the number of training samples, Indicates The input matrix of training samples has a dimension of ,in Indicates the number of rows in the input matrix, including channel name, transportation mode, current node, task start point, task end point, and task type. Dimensions , is the number of columns of the input matrix, and The value is the maximum number of nodes in the historically planned path minus 1. When the number of columns in the input matrix is ​​less than When , zero padding is required; Indicates The output vector of the training samples is the next path of the current node, and the output vector is uniquely determined by the triple containing the channel name, transportation mode and the terminal node of the channel;

[0014] The training set is input into the machine learning model for training. The training is performed until the loss function is minimized, and the trained machine learning model is output.

[0015] In one embodiment, the task information of the current path planning encoded by the dictionary library is input into the trained machine learning model for prediction to obtain the first-class selection probability of each subsequent channel of the current node, including:

[0016] The task information of the current path planning is encoded into an input matrix through the dictionary library; the task information includes the channel name, transportation method, current node, task starting point, task end point and task type;

[0017] Input the input matrix into the trained machine learning model for prediction, and obtain the predicted probability of the output vector; the predicted probability of the output vector includes the predicted probability of the channel name, the predicted probability of the transportation mode, and the predicted probability of the channel terminal node;

[0018] The predicted probability of the channel name, the predicted probability of the mode of transport, and the predicted probability of the channel terminal node are normalized and summed to obtain the first-class selection probability of all available subsequent channels of the current node, expressed as

[0019] The probability of the first category of the subsequent channel being selected = the normalized channel terminal node prediction probability + the normalized transportation mode prediction probability + the normalized channel name prediction probability.

[0020] In one embodiment, the shortest path algorithm is used to calculate and obtain the second type of selection probability of each subsequent channel of the current node, including:

[0021] Take the other end node of each subsequent channel of the current node as the starting point, search for the shortest path time between it and the task endpoint, and then take the sum of the shortest path time of each subsequent channel of the current node and the shortest path time from the other end node of each subsequent channel of the current node to the task endpoint as the shortest path time from the current node to the task endpoint through each subsequent channel. By taking the inverse of the shortest path time from the current node to the task endpoint through each subsequent channel and performing normalization, the second category selection probability of each subsequent channel of the current node is obtained.

[0022] In one embodiment, the comprehensive selection probability of each subsequent channel of the current node is obtained by weighted summing the second type of selection probability and the first type of selection probability, including:

[0023] For the current node, The probability of the second category of the channel being selected The probability of the first category being selected Perform weighted summation to obtain the subsequent The comprehensive probability of being selected for each channel ;in, ,and Indicates the total number of subsequent channels of the current node; where, and The weights used in the weighted summation are determined by user preferences.

[0024] In one embodiment, the subsequent channels of the current node are sorted in descending order according to the comprehensive probability of being selected, and the single-step planning path of the current node is output by considering the user preference and the sorting result, including:

[0025] The subsequent channels of the current node are sorted in descending order according to the comprehensive probability of being selected. When the user is in a loop, the user selects a subsequent channel from the sorting result as the single-step planning path of the current node; otherwise, the subsequent channel with the highest comprehensive probability of being selected is output as the single-step planning path of the current node.

[0026] In one embodiment, the specific process of the multi-step planning stage of the joint delivery path includes:

[0027] Step 1: Input the traffic network involved in the joint delivery mission and the mission information of the initial path planning; the mission information of the initial path planning includes the mission starting point, mission end point and mission type;

[0028] Step 2: Enter the current node. When planning in the first step, the task starting point is used as the current node.

[0029] Step 3: Determine whether the current node is the task end point. If so, output the multi-step planning path connecting the task start point to the task end point and end the path planning; if not, go to Step 4;

[0030] Step 4: Determine whether the termination condition is met, such as whether the loop reaches the maximum number of loops S. If so, call the shortest path algorithm to generate the shortest path from the task start point to the task end point as the recommended path and end the path planning; if not, go to Step 5;

[0031] Step 5: Use the machine learning model and the shortest path algorithm to carry out single-step planning of the joint delivery path at the current node;

[0032] Step 6: Output the single-step planning path and automatically update the current node;

[0033] Step 7: Return to Step 3 and repeat the above process until the current node is updated to the task endpoint or the termination condition is reached.

[0034] The above-mentioned joint delivery path planning method considering user preferences uses a machine learning model and a shortest path algorithm to carry out single-step and multi-step delivery path planning. The machine learning model learns the path planning rules implicit in the planned path data set to achieve intelligent recommendation of delivery paths, which can effectively improve the efficiency of path planning. It also incorporates user preferences, experience and other information on the basis of the shortest path algorithm, which can efficiently assist users in manually planning and generating delivery paths that meet their personal preferences. This method can efficiently generate delivery paths that meet users' personal preferences through intelligent recommendation + manual confirmation. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of a joint delivery path planning method considering user preferences in one embodiment;

[0036] Figure 2 It is a schematic diagram of the process of the single-step planning stage of the joint delivery path in one embodiment;

[0037] Figure 3 A schematic diagram of a traffic network in one embodiment;

[0038] Figure 4 The figure is a flowchart of the multi-step planning stage of the joint delivery path in one embodiment. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] In one embodiment, Figure 1 As shown, a joint delivery path planning method considering user preferences is provided, comprising the following steps:

[0041] Step S1, in the single-step planning stage of the joint delivery path, the machine learning model and the shortest path algorithm are used to obtain the comprehensive selection probability of each subsequent channel of the current node, and the subsequent channels of the current node are sorted in descending order according to the comprehensive selection probability, and the single-step planning path of the current node is output by considering user preferences and sorting results.

[0042] Step S2, in the multi-step planning stage of the joint delivery path, based on the single-step planning path, automatically update the current node and sequentially execute the single-step planning. If the current node is updated to the task end point before the termination condition is met, stop the single-step planning and output the multi-step planning path connecting the task starting point to the task end point; otherwise, call the shortest path algorithm to output the shortest path from the task starting point to the task end point as the recommended path and end the path planning.

[0043] In one embodiment, the specific process of the joint delivery path single-step planning stage is as follows: Figure 2 As shown, the following steps are included:

[0044] Offline stage:

[0045] (1) All historical planned paths are encoded segment by segment using a pre-built dictionary library to generate a training set consisting of multiple training samples.

[0046] (2) The training set is input into the long short-term memory neural network model for training, and the trained long short-term memory neural network model is output.

[0047] Online stage:

[0048] (1) Input the task information of the current path planning after being encoded by the dictionary library into the trained long short-term memory neural network model for prediction, and obtain the probability of the first category being selected for each subsequent channel of the current node.

[0049] (2) Use the Dijkstra shortest path algorithm to calculate the probability of the second type of selection of each subsequent channel of the current node.

[0050] (3) By taking the weighted sum of the second-category selection probability and the first-category selection probability, the comprehensive selection probability of each subsequent channel of the current node is obtained.

[0051] (4) Sort the subsequent channels of the current node in descending order of comprehensive probability of being selected.

[0052] (5) Output the single-step planning path of the current node by considering user preferences and sorting results. Specifically, it includes: judging whether the user is in a loop. When the user is in a loop, the user selects a subsequent channel in the sorting results as the single-step planning path of the current node; otherwise, the subsequent channel with the highest probability of being selected is output as the single-step planning path of the current node. Among them, user preference is reflected in the fact that the user can select the subsequent channel based on the historical planning path information, and on the other hand, it is reflected in the fact that the user can select the subsequent channel in the loop.

[0053] Among them, assuming that there are multiple subsequent channels for the current node, the probability calculation of the first category of each subsequent channel being selected based on the machine learning model can be expressed as the following prediction problem:

[0054] ;

[0055] In the formula, The prediction input matrix for the current step may include but is not limited to the following information: path planning starting point, path planning end point, task type, node at the current prediction time, previous node or channel sequence, etc. To predict the output probability vector, it is composed of the normalized probabilities of the channels connected to the current node. The greater the probability, the higher the possibility of the channel being recommended. Users can select channels based on the prompt information from high to low probability and their personal experience. The training set is obtained through training with samples of historically completed planned paths, and can be selected based on the type of joint delivery mission, user job list, etc.

[0056] There are many machine learning methods applicable to the above prediction problems. Considering that path planning is similar to natural language generation problems, its input vector contains time series data (current node and previous channels), and the prediction result needs to consider the arrangement order of each channel. Therefore, in this embodiment, the long short-term memory neural network widely used in time series prediction is used as the prediction model, and the algorithm is customized according to the characteristics of the path planning problem.

[0057] It should be further explained that the machine learning model used in this application includes but is not limited to the long short-term memory neural network model. In addition, since the path to be planned is character data, a dictionary library needs to be built before using the long short-term memory neural network for processing, and input and output encoding rules need to be designed to convert the character data corresponding to the planned path into numerical data that can be processed by the long short-term memory neural network.

[0058] The shortest path algorithm used in this application includes but is not limited to the Dijkstra algorithm, which is a traditional shortest path algorithm and is designed as follows: the full set of nodes is recorded as , introduce the collection , which is used to store the nodes with the shortest path in the network graph. is used to store nodes whose shortest paths have not yet been found. and Record separately To Node The current shortest path time and the sequence number of the preceding node. Contains only starting point ,gather Every time a new node is introduced, it needs to be updated to Each node in and The specific steps are:

[0059] initialization:

[0060] gather Contains only starting point If the set Midpoint With Directly connected edges, ,in For Node and Directly connect the edge weights, otherwise The initial values ​​are all empty, indicating that the current shortest path predecessor node has not yet been determined;

[0061] renew :

[0062] From the collection Select the node ,satisfy

[0063] ;

[0064] in, For collection Middle distance starting point The current shortest path with the shortest time consumption has been found. To Node The shortest path, so let ;

[0065] renew :

[0066] like ;

[0067] Then

[0068] ;

[0069] ,otherwise All remain unchanged.

[0070] Repeat the above steps Second-rate( The number of nodes in the network diagram), until all nodes appear middle.

[0071] Specifically, all historical planned paths are encoded segment by segment through a pre-built dictionary library to generate a training set consisting of multiple training samples, and the training set is input into the long short-term memory neural network model for training, and the trained long short-term memory neural network model is output, including:

[0072] By removing duplicates from all node names, channel names, transportation methods, and mission types in the transportation network involved in the joint delivery mission and mapping them to unique digital codes, a dictionary library for the joint delivery path planning field is obtained; wherein the node name is a string represented by the city name, the channel name is a string represented by the route name between cities, the transportation methods include railways, highways, aviation, and waterways, and the mission types include light and heavy, etc.;

[0073] According to the dictionary library, all historical planned paths are encoded segment by segment to generate a training set consisting of multiple training samples, which is expressed as ;in, is the number of training samples, Indicates The input matrix of training samples has a dimension of ,in Indicates the number of rows in the input matrix, including channel name, transportation mode, current node, task start point, task end point, and task type. Dimensions , is the number of columns of the input matrix, and The value is the maximum number of nodes in the historically planned path minus 1. When the number of columns in the input matrix is ​​less than When , zero padding is required; Indicates The output vector of the training samples is the next path of the current node, and the output vector is uniquely determined by the triple containing the channel name, transportation mode and the terminal node of the channel;

[0074] The training set is input into the long short-term memory neural network model for training. The training is performed until the loss function is minimized, and the trained long short-term memory neural network model is output.

[0075] Among them, by deduplicating all node names, channel names, transportation methods, and task types in the transportation network involved in the joint delivery mission and mapping them into unique digital codes respectively, the dictionary library of the 4-dimensional coding space is constructed as shown in Table 1.

[0076] in:

[0077] Dimension 1: Node name. Uniquely encode the node name after deduplication, such as City 1, City 2, etc.

[0078] Dimension 2: Channel name. Uniquely encode the channel name after deduplication, such as Lanxin Line, G30, etc.

[0079] Dimension 3: Mode of transport, uniquely encode possible modes of transport, such as rail, road, etc.

[0080] Dimension 4: Task type, uniquely encode the task type, such as heavy, light, etc.

[0081] The specific process of encoding all historical planned paths segment by segment according to the dictionary library and generating multiple training samples includes the following steps:

[0082] If the task information and planned route of a historical planned path in the history library include:

[0083] ①Task starting point: Node 1

[0084] ②Task end point: Node 4

[0085] ③Task type: Heavy

[0086] ④ Planned route: Node 1-A (highway) - Node 2-B (highway) - Node 3-C (railway) - Node 4 - ...

[0087] The above task information and planned routes are shown in Table 2.

[0088] Table 1 Dictionary library

[0089]

[0090] Table 2 Mission information and planned routes

[0091]

[0092] in:

[0093] The corresponding position at the time is the starting node of the task, that is, node 1, and the path has not been planned yet;

[0094] The time corresponds to the terminal node position of the planned channel in the first section, that is, node 2;

[0095] The time corresponds to the terminal node position of the planned channel in the second section, that is, node 3;

[0096] The time corresponds to the terminal node position of the planned channel in the third section, that is, node 4.

[0097] Rows 1-3 of Table 2 are used to store Moment, The planned path information of the segment is composed of the triplet of "channel name-transportation mode-current node", where is the number of columns, from Start. For example, The corresponding triple is "A-highway-node 2", The corresponding triple is "B-Road-Node 3". It should be noted that At this moment, since the path planning has not started yet, the 1st and 2nd rows corresponding to this column can be filled with 0.

[0098] Rows 4-6 of Table 2 are used to store task information, including the task start point, task end point, and task type. Obviously, this information will not change over the prediction time, so these three columns remain unchanged in the feature matrix.

[0099] By mapping the information in Table 2 into digital codes through the constructed dictionary library, the input matrix of the long short-term memory neural network model can be obtained. Considering that the training of the long short-term memory neural network model needs to keep the dimension of the sample input matrix consistent, the number of columns of the input matrix is ​​fixed as (The input matrix dimensions are ),and The value is the maximum number of nodes in the path that has been planned in the history minus 1. When the number of input matrix columns is less than In addition, since there are fewer historical planning paths, in order to make full use of historical information, each historical planning path information is encoded segment by segment to generate multiple training samples.

[0100] For example: A joint delivery mission type is heavy. The historically planned route is "City 1--Lanxin Line (railway)--City 2--Lanxin Line (railway)--City 3--G30 (highway)--City 4", which is split to generate 4 training samples. Including:

[0101] At this moment, the path has not yet been planned, and the input matrix corresponding to the first training sample is expressed as:

[0102] ;

[0103] ;

[0104] After being encoded by the dictionary library shown in Table 1,

[0105] ;

[0106] ;

[0107] After the zero-padding operation, the input matrix of the first training sample is finally expressed as:

[0108] .

[0109] At this moment, the planned path is "City 1--Lanxin Line (railway)--City 2", and the input matrix corresponding to the second training sample is:

[0110] ;

[0111] ;

[0112] After encoding in Table 1,

[0113] ;

[0114] ;

[0115] After the zero-filling operation, the input matrix of the second training sample is finally expressed as:

[0116] .

[0117] At this moment, the planned path is "City 1--Lanxin Line (railway)--City 2--Lanxin Line (railway)--City 3", and the input matrix corresponding to the third training sample is

[0118] ;

[0119] ;

[0120] After encoding in Table 1,

[0121] ;

[0122] .

[0123] There is no need to perform zero-filling operation at this time.

[0124] All other historical planning path information can also be encoded segment by segment to generate multiple training samples.

[0125] Assume that “City 1 – Lanxin Line (railway) – City 2 – Lanxin Line (railway) – City 3 – G30 (highway) – City 4” is a historically planned path in the historical training set. For example, the corresponding output vector of the third training sample is expressed as:

[0126] ;

[0127] After encoding in Table 1,

[0128] ;

[0129] The corresponding input matrix is

[0130] .

[0131] Specifically, the task information of the current path planning encoded by the dictionary library is input into the trained long short-term memory neural network model for prediction, and the first-class selection probability of each subsequent channel of the current node is obtained, including:

[0132] The task information of the current path planning is encoded into an input matrix through the dictionary library; the task information includes the channel name, transportation method, current node, task starting point, task end point and task type;

[0133] Input the input matrix into the trained long short-term memory neural network model for prediction, and obtain the prediction probability of the output vector; wherein the prediction probability of the output vector includes the prediction probability of the channel name, the prediction probability of the transportation mode and the prediction probability of the channel terminal node;

[0134] The predicted probability of the channel name, the predicted probability of the mode of transport, and the predicted probability of the channel terminal node are normalized and summed to obtain the first-class selection probability of all available subsequent channels of the current node, expressed as

[0135] The probability of the first category of the subsequent channel being selected = the normalized channel terminal node prediction probability + the normalized transportation mode prediction probability + the normalized channel name prediction probability.

[0136] Specifically, the Dijkstra shortest path algorithm is used to calculate and obtain the second type of selection probability of each subsequent channel of the current node, including:

[0137] Take the other end node of each subsequent channel of the current node as the starting point, search for the shortest path time between it and the task endpoint, and then take the sum of the shortest path time of each subsequent channel of the current node and the shortest path time from the other end node of each subsequent channel of the current node to the task endpoint as the shortest path time from the current node to the task endpoint through each subsequent channel. By taking the inverse of the shortest path time from the current node to the task endpoint through each subsequent channel and performing normalization, the second category selection probability of each subsequent channel of the current node is obtained.

[0138] For example, remember that the current node has The shortest path time between the channel and the task endpoint is . The smaller, the The greater the probability that a channel is selected, It is a small-scale indicator. Therefore, preprocessing is performed first, such as taking , and then normalize it, and use the normalized value as the probability of the second category of each channel being selected. The reason for considering the shortest path time instead of the shortest path distance here is that different modes of transportation (such as railways, roads, aviation, etc.) need to be considered in the path planning problem targeted by this application, which eliminates the influence of the difference in transportation speed of different modes of transportation.

[0139] Specifically, by weighted summing the second-category selection probability and the first-category selection probability, the comprehensive selection probability of each subsequent channel of the current node is obtained, including:

[0140] For the current node, The probability of the second category of the channel being selected The probability of the first category being selected Perform weighted summation to obtain the subsequent The comprehensive probability of being selected for each channel ;in, ,and Indicates the total number of subsequent channels of the current node; where, and The weights for weighted summation are determined by user preferences. In multi-step prediction, the weights can be adjusted according to user preferences to obtain multi-step prediction paths that are biased towards long short-term memory neural networks and Dijkstra, and they are output separately for user selection to maximize path planning efficiency.

[0141] by Figure 3 The traffic network shown in the figure is used as an example to perform joint delivery path single-step planning. Assuming that the current node is 1 and the end point is 5, first, the long short-term memory neural network predicts the first-class selection probability of each subsequent channel (A, B, C) of node 1, which is normalized to be ;

[0142] The shortest path time from node 1 to end point 5 through channels A, B, and C is calculated by Dijkstra's shortest path algorithm and is 20h, 40h, and 50h respectively.

[0143] ;

[0144] After weighting with the probability of being selected in the first category (the weight of the probability of being selected in the first category and the weight of the probability of being selected in the second category can be set to 50% each in the weighted calculation), the comprehensive probabilities of being selected are:

[0145] .

[0146] After comprehensive sorting, select channel A to join the current path and update the current node to node 2.

[0147] In one embodiment, the specific process of the multi-step planning stage of the joint delivery path is as follows: Figure 4 As shown, the following steps are included:

[0148] Step 1: Input the traffic network involved in the joint delivery mission and the mission information of the initial path planning; the mission information of the initial path planning includes the mission starting point, mission end point and mission type;

[0149] Step 2: Enter the current node. When planning in the first step, the task starting point is used as the current node.

[0150] Step 3: Determine whether the current node is the task end point. If so, output the multi-step planning path connecting the task start point to the task end point and end the path planning; if not, go to Step 4;

[0151] Step 4: Determine whether the termination condition is met, such as whether the loop reaches the maximum number of loops S. If so, call the Dijkstra shortest path algorithm to generate the shortest path from the task start point to the task end point as the recommended path and end the path planning; if not, go to Step 5;

[0152] Step 5: Use the long short-term memory neural network model and Dijkstra's shortest path algorithm to carry out single-step planning of the joint delivery path at the current node;

[0153] Step 6: Output the single-step planning path and automatically update the current node;

[0154] Step 7: Return to Step 3 and repeat the above process until the current node is updated to the task endpoint or the termination condition is reached.

[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A joint delivery path planning method considering user preferences, characterized in that: The method comprises: In the single-step planning stage of the joint delivery path, the machine learning model and the shortest path algorithm are used to obtain the comprehensive selection probability of each subsequent channel of the current node, and the subsequent channels of the current node are sorted in descending order according to the comprehensive selection probability, and the single-step planning path of the current node is output by considering the user preference and the sorting result; In the multi-step planning stage of the joint delivery path, based on the single-step planning path, the current node is automatically updated and the single-step planning is sequentially executed. If the current node is updated to the task end point before the termination condition is met, the single-step planning is stopped and the multi-step planning path connecting the task start point to the task end point is output; otherwise, the shortest path algorithm is called to output the shortest path from the task start point to the task end point as the recommended path and the path planning is terminated; The specific process of the single-step planning stage of the joint delivery path includes: Offline stage: All historical planned paths are encoded segment by segment through a pre-built dictionary library to generate a training set consisting of multiple training samples, and the training set is input into the machine learning model for training, and the trained machine learning model is output; Online stage: the task information of the current path planning encoded by the dictionary library is input into the trained machine learning model for prediction, and the first-category selection probability of each subsequent channel of the current node is obtained, and the second-category selection probability of each subsequent channel of the current node is calculated by the shortest path algorithm. The comprehensive selection probability of each subsequent channel of the current node is obtained by weighted summing the second-category selection probability and the first-category selection probability, and the subsequent channels of the current node are sorted in descending order according to the comprehensive selection probability, and the single-step planning path of the current node is output by considering user preferences and sorting results.

2. The method according to claim 1, characterized in that: All historical planned paths are encoded segment by segment through a pre-built dictionary library to generate a training set consisting of multiple training samples, and the training set is input into a machine learning model for training, and a trained machine learning model is output, including: By deduplicating all node names, channel names, transportation modes, and task types in the transportation network involved in the joint delivery task and mapping them to unique digital codes, a dictionary library for the joint delivery path planning field is obtained; wherein the node name is a string represented by a city name, the channel name is a string represented by a route name between cities, the transportation modes include railways, highways, aviation, and waterways, and the task types include light and heavy; According to the dictionary library, all historical planned paths are encoded segment by segment to generate a training set consisting of multiple training samples, which is expressed as ;in, is the number of training samples, Indicates The input matrix of training samples has a dimension of ,in Indicates the number of rows in the input matrix, including channel name, transportation mode, current node, task start point, task end point, and task type, a total of 6 dimensions , is the number of columns of the input matrix, and The value is the maximum number of nodes in the historically planned path minus 1. When the number of columns in the input matrix is ​​less than When , zero padding is required; Indicates The output vector of the training samples is the next path of the current node, and the output vector is uniquely determined by a triplet including the channel name, the transportation method and the terminal node of the channel; The training set is input into the machine learning model for training, and the trained machine learning model is obtained by training until the loss function is minimized.

3. The method according to claim 2, characterized in that The task information of the current path planning encoded by the dictionary library is input into the trained machine learning model for prediction to obtain the first-class selection probability of each subsequent channel of the current node, including: The task information of the current path planning is encoded into an input matrix through a dictionary library; wherein the task information includes a channel name, a transportation method, a current node, a task starting point, a task end point, and a task type; Input the input matrix into the trained machine learning model for prediction to obtain the prediction probability of the output vector; wherein the prediction probability of the output vector includes the prediction probability of the channel name, the prediction probability of the mode of transport and the prediction probability of the channel terminal node; The predicted probability of the channel name, the predicted probability of the mode of transport, and the predicted probability of the channel terminal node are normalized and summed to obtain the first-class selection probability of all available subsequent channels of the current node, expressed as The probability of the first category of the subsequent channel being selected = the normalized channel terminal node prediction probability + the normalized transportation mode prediction probability + the normalized channel name prediction probability.

4. The method according to claim 3, characterized in that The shortest path algorithm is used to calculate the probability of the second type of selection of each subsequent channel of the current node, including: Take the other end node of each subsequent channel of the current node as the starting point, search for the shortest path time between it and the task endpoint, and then take the sum of the shortest path time of each subsequent channel of the current node and the shortest path time from the other end node of each subsequent channel of the current node to the task endpoint as the shortest path time from the current node to the task endpoint through each subsequent channel. By taking the inverse of the shortest path time from the current node to the task endpoint through each subsequent channel and performing normalization, the second category selection probability of each subsequent channel of the current node is obtained.

5. The method according to claim 4, characterized in that By performing a weighted summation of the second type of selection probability and the first type of selection probability, the comprehensive selection probability of each subsequent channel of the current node is obtained, including: For the current node, The probability of the second category of the channel being selected The probability of the first category being selected Perform weighted summation to obtain the subsequent The comprehensive probability of being selected for each channel ;in, ,and Represents the total number of subsequent channels of the current node; wherein, and The weights used in the weighted summation are determined by user preferences.

6. The method according to claim 5, characterized in that The subsequent channels of the current node are sorted in descending order according to the comprehensive probability of being selected, and the single-step planning path of the current node is output by considering the user preference and the sorting result, including: The subsequent channels of the current node are sorted in descending order according to the comprehensive probability of being selected. When the user is in a loop, the user selects a subsequent channel in the sorting result as the single-step planning path of the current node; otherwise, the subsequent channel with the highest comprehensive probability of being selected is output as the single-step planning path of the current node.

7. The method according to claim 1, characterized in that The specific process of the multi-step planning stage of the joint delivery path includes: Step 1: Input the traffic network involved in the joint delivery mission and the mission information of the initial path planning; the mission information of the initial path planning includes the mission starting point, mission end point and mission type; Step 2: Enter the current node. When planning in the first step, the task starting point is used as the current node. Step 3: Determine whether the current node is the task end point. If so, output the multi-step planning path connecting the task start point to the task end point and end the path planning; if not, go to Step 4; Step 4: Determine whether the termination condition is met, such as whether the loop reaches the maximum number of loops S. If so, call the shortest path algorithm to generate the shortest path from the task start point to the task end point as the recommended path and end the path planning; if not, go to Step 5; Step 5: Use the machine learning model and the shortest path algorithm to carry out single-step planning of the joint delivery path at the current node; Step 6: Output the single-step planning path and automatically update the current node; Step 7: Return to Step 3 and repeat the above process until the current node is updated to the task endpoint or the termination condition is reached.