Human-machine mixture flow sheet system and method based on user preference perception
Through the human-machine hybrid method based on user preference perception, combined with self-supervised learning and recurrent neural network, the efficiency problem of task allocation for couriers and robots is solved, efficient and customized customer logistics distribution services are realized, and logistics services are improved. Quality and customer experience.
Patent Information
- Application Number
- CN202410732066.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, couriers rely on their own experience to allocate orders. It is difficult to effectively utilize the respective advantages of couriers and robots, resulting in a decrease in delivery efficiency. It is impossible to fully capture the variability of delivery methods and handle user preferences, making it difficult to achieve reasonable mixed order scheduling. Strategy.
A human-machine hybrid dispatch method based on user preference perception is adopted, including a user preference learning module and a preference-aware hybrid dispatch decision module. Through self-supervised learning and recurrent neural networks, it combines client information and global scheduling status to output the optimal The parcel distribution strategy uses the Transformer architecture and feature fusion network to capture users' long- and short-term preference characteristics, and makes optimal order scheduling decisions through recurrent neural networks.
It improves the order delivery efficiency in the mixed human-machine delivery scenario, realizes personalized customer-perceived delivery decisions, improves logistics service quality, reduces labor delivery costs, and improves customer receiving experience and the service efficiency of the logistics platform.
Smart Images

Figure CN118569755A
Abstract
Description
Technical Field
[0001] The present invention relates to a human-machine hybrid dispatching decision technology for logistics terminal delivery, mainly to a human-machine hybrid logistics dispatching system and dispatching method based on user preference perception, and belongs to the field of computer information computing technology. Background Art
[0002] The volume of urban express delivery business has grown significantly, putting couriers under pressure to handle an increasing number of packages. Currently, couriers at each delivery station handle more than 100 delivery tasks on average every day. Thanks to autonomous driving technology, autonomous delivery robots are being deployed in metropolitan areas to assist couriers in reducing their delivery workload. These robots have advantages such as lower costs and longer operating hours, which can help cope with the shortage of couriers during peak periods such as Black Friday. Many express delivery platforms are using autonomous delivery robots to deliver packages and collaborate with couriers. This practice of integrating delivery robots into traditional delivery systems introduces a human-machine hybrid delivery scenario. Compared with the conventional delivery process that relies solely on human couriers, in the human-machine hybrid delivery process, the courier decides which tasks to assign to the robot or himself, forming a hybrid order scheduling strategy. The optimal delivery path depends on the task allocation of the robot and the courier. During the delivery process, the courier also needs to pick up the package and meet some user-specific delivery requirements.
[0003] However, couriers and robots have unique advantages that traditional methods cannot capture: (1) Variability in delivery methods: Human couriers typically deliver along flexible routes, while robots follow precise schedules. This difference stems from real-time package pickup requests and the ability of couriers to adjust their plans based on their own experience. (2) Handling user preferences: Couriers can handle more complex user preferences than robots because users often communicate with each other based on special requirements. In contrast, robots assume that users will receive their packages upon arrival. In the current order allocation strategy, couriers allocate orders based on their own experience, which significantly reduces the overall order delivery efficiency and makes it difficult to leverage the respective advantages of couriers and robots. Therefore, a reasonable hybrid order scheduling strategy is needed to better support human-machine hybrid delivery. Summary of the invention
[0004] The present invention aims to address the problem in the prior art that couriers rely on their own experience to distribute orders, making it difficult to utilize the respective advantages of couriers and robots. It provides a human-machine hybrid delivery method based on user preference perception, including a user preference learning module and a preference-aware hybrid delivery decision module, so as to improve the overall efficiency of order delivery in human-machine hybrid delivery scenarios.
[0005] In order to achieve the above-mentioned purpose, the technical scheme of the present invention is as follows: The overall technical route outputs the optimal strategy for package distribution through the order scheduling model, which combines client information and global scheduling status to better utilize the advantages of delivery robots and couriers. The model consists of two parts: (1) a user preference representation model based on self-supervised learning; (2) a multi-view recurrent decision model based on preference perception. The user preference representation model based on self-supervised learning aims to utilize client features. This module designs a model based on the Transformer architecture, and realizes the long-short time representation of the customer's receiving time distribution through pre-training of self-supervised learning. The customer's preference representation tensor is input into the feature fusion network to build a hierarchical view. The multi-view recurrent decision model based on preference perception is designed based on the recurrent neural network model to solve the optimal order scheduling strategy in the mixed order scheduling environment. It uses a feature fusion network to integrate the features of the hierarchical view, and learns the transformation process through the recurrent network model. The final output is the predicted value of each scheduling decision based on the hierarchical view.
[0006] In order to achieve the above-mentioned purpose, the technical solution adopted by the present invention is: a human-machine hybrid flow dispatch system based on user preference perception, a human-machine hybrid flow dispatch model based on user preference perception, including a user preference learning module and a preference-aware hybrid dispatch decision module.
[0007] The user preference learning module: receives the historical order sequence of the express user, the location of the delivery area of the commercial user, and the express service range map, constructs the self-supervised prediction task of the user delivery time, embeds the user's long-term preference feature, and embeds the short-term preference feature, obtains the user's long-term preference and short-term preference feature representation through the self-supervised learning method, and then predicts the delivery time of the user's order and the confidence level of the predicted time;
[0008] The preference-aware hybrid dispatch decision module predicts the delivery time and confidence of the user's next order, uses the predicted user delivery time and confidence to input the dispatch decision recurrent neural network, outputs the delivery unit ID corresponding to the order, uses the hybrid dispatch environment to assign the order to the corresponding delivery unit and completes the dispatch of a single delivery task.
[0009] In order to achieve the above object, a human-machine hybrid flow dispatching method based on user preference perception includes the following steps:
[0010] S1, self-supervised task construction: based on the user's historical order sequence, the pane is divided into multiple groups of order sequences of K+1 length, where K length is the prediction task input and 1 length is the prediction task output. This task uses K historical order data to predict the delivery time of a new order.
[0011] S2, user delivery preference modeling: Use a feedforward neural network to extract features from the user's historical order sequence and its delivery time, and then use the user's long-term embedding vector and self-attention model to model the delivery time series to obtain the delivery time representation of the user's order;
[0012] S3, dispatch map convolution: Perform group convolution on the current order dispatch map to obtain the current system dispatch status, and combine the user's delivery preferences constructed in S2 and the current delivery order to obtain the global vector representation of the current dispatch decision;
[0013] S4, dispatch decision: The global vector representation of the dispatch decision obtained in S3 is input into the recurrent neural network, and the one-hot decision vector of the current order is output. This vector represents the logistics distribution unit that undertakes the delivery task of the current order.
[0014] S6, order delivery execution: using the logistics delivery unit decision generated in S5, the order is delivered to the corresponding delivery unit, and the unit is dispatched to deliver the user's package to complete the mixed order dispatching task.
[0015] Beneficial effects:
[0016] Compared with the prior art, the present invention pays attention to the preference factors of individual users in the human-machine hybrid logistics dispatching method, designs a hybrid dispatching decision maker based on user preference perception, utilizes the long-term and short-term receiving preference change factors of users, designs self-supervised pre-training tasks and self-attention user representation models, and captures the long-term and short-term preference representation of users; at the same time, a recurrent neural network based on user preference perception is used to design a decision maker based on reinforcement learning optimization, reasonably and effectively generate the optimal delivery unit in the hybrid delivery scenario, and realizes efficient and explainable logistics package delivery; this method can realize the delivery decision of personalized perception of customers for logistics platforms, and is suitable for many commercial logistics service platforms, such as express delivery, instant delivery, etc. According to the personal receiving preferences of customers on these service platforms, efficient and customized customer logistics delivery services can be realized, which is helpful to improve the quality of logistics services, improve the customer receiving experience, and reduce the labor distribution cost of logistics platforms. It enables the logistics platform to improve and improve the service quality in a timely manner, which is conducive to better serving customers, improving efficiency, and creating greater profits for the platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The present invention is a human-machine hybrid genre dispatching method based on user preference perception;
[0018] Figure 2 It is a flow chart of the user preference learning module part of the present invention. DETAILED DESCRIPTION
[0019] In order to deepen the understanding of the present invention, the present embodiment is described in detail below with reference to the accompanying drawings.
[0020] Example 1: See Figure 1 , Figure 2 , a human-machine hybrid flow dispatching method based on user preference perception, including a user preference learning module and a preference-aware hybrid dispatching decision module, which uses the user's historical orders to model user preferences and learn the optimal dispatching decision.
[0021] User preference learning task: Use historical orders to predict the receiving time and delivery complexity of the target order. This sequence includes: long-term user embedding E u , short-term sequence start marker E st , historical orders Target order start mark E ot , and target order o. Long-term embedding E u Contains user habits learned from pre-training tasks.
[0022] The pre-training task involves L w +1 historical order. We use size L w +1 sliding window segments all historical orders. The initial L of the window w The orders represent the short-term history, and the last order is the target order. We use the receiving time of the target order as the true value, mask it to create the source-target pair, and the task τ is of the following form:
[0023]
[0024] where o is the target order, is the historical order related to it, r is the region of the order, u is the user of order o, t is the actual receiving time, E u is user feature embedding, E st Start tag for order characteristics.
[0025] The model accepts the task τ o As input, it generates a tensor representing the user's recent summary. The generator includes a history order encoder, a target order encoder, and a Transformer model with encoder and decoder layers, which converts the original order representations of different dimensions into a tensor similar to E u The historical order encoder will Each historical order in is converted into an embedding The calculation method is:
[0026]
[0027] where i is the order index, represents a 3-layer feedforward network, and d is the description of the order. Similarly, the target order encoder uses Convert the target order o to The model processes the embedding sequence and uses the query token E q Generates the user recent summary tensor. It involves a multi-head self-attention layer and a feed-forward layer. The encoder processes the input through the self-attention and feed-forward layers. The calculation method of self-attention is:
[0028]
[0029] Where W Q , W K and W V is the attention weight, h e is the embedding dimension. Multi-head self-attention is:
[0030] MHSA(x)=Norm(Concat(SA(x1),…,SA(x n ))W o +x), where x i is the i-th input segment, and Norm is the layer normalization. The feed-forward layer consists of a two-layer perceptron. The decoder queries the memory tensor for output, involving multi-head attention, criss-cross attention, and feed-forward layers. The criss-cross attention queries the memory using the query token and the current data, which is calculated as:
[0031]
[0032] Among them, W Q , W K and W V is the attention weight, h e is the embedding dimension. The reception time prediction for each task is:
[0033]
[0034] Where W and b are weights and biases, and P represents the user preference representation model.
[0035] Preference-aware hybrid dispatch decision: In order to find the optimal dispatch decision, a reinforcement learning feedback function based on the user's delivery difficulty is constructed. The total reward includes three parts: unit delivery feedback, total delivery feedback, and robot load balancing feedback. The total feedback is calculated by the following formula:
[0036]
[0037] in and are the sets of orders delivered by robots and couriers, respectively. is the number of packages successfully delivered by the i-th delivery unit, is the number of packages that failed to be delivered by the i-th delivery unit, N d(i) is the total number of packages delivered by the i-th unit, r a Feedback for unmanned delivery, h Give back to the courier, p The overall distribution feedback for the system, r w is the distribution load balancing feedback, β1 is and β2 is the scaling factor. Then, the Q model is used to learn the order scheduling strategy in the mixed environment, which includes two components: feature fusion network and cyclic Q learning with entropy guidance. The feature fusion network includes the mixed order scheduling state and user long-term and short-term preference features, and uses convolutional neural network to capture the multi-channel spatial data relationship. Its embedding feature Calculated by the following formula:
[0038] E M =ConvBlock 3 (M),
[0039] Among them, ConvBlock represents a convolution block composed of a convolution layer with a kernel of 3, a batch normalization layer, and a ReLU activation function stacked in sequence, and the superscript 3 indicates that three identical convolution blocks are stacked.
[0040] Entropy-guided Q-learning uses LSTM to generate dispatch decisions for each time step, taking the fused feature observations and previous states as input. The calculation is as follows:
[0041]
[0042] Among them C t-1 and H t-1 They represent the hidden state of the previous time step, Represents the fusion order features of the current time step, and finally uses the feedback function r total Train the dispatch strategy model. During the training process, the priority replay method is used to randomly sample the transfer sequence to learn the n-step Q value prediction. The n-step target value in the cyclic Q model is given by the following formula:
[0043]
[0044] in represents a reversible value function, θ corresponds to the Q network parameter, and θ' represents the target Q network parameter. At this point, the solution and prediction of the hybrid dispatching strategy based on user preference perception are completed.
[0045] Example 2: See Figure 1 , Figure 2 , a human-machine hybrid flow dispatching method based on user preference perception, comprising the following steps:
[0046] S1, self-supervised task construction: based on the user's historical order sequence, the pane is divided into multiple groups of order sequences of K+1 length, where K length is the prediction task input and 1 length is the prediction task output. This task uses K historical order data to predict the delivery time of a new order.
[0047] S2, user delivery preference modeling: Use a feedforward neural network to extract features from the user's historical order sequence and its delivery time, and then use the user's long-term embedding vector and self-attention model to model the delivery time series to obtain the delivery time representation of the user's order;
[0048] S3, dispatch map convolution: Perform group convolution on the current order dispatch map to obtain the current system dispatch status, and combine the user's delivery preferences constructed in S2 and the current delivery order to obtain the global vector representation of the current dispatch decision;
[0049] S4, dispatch decision: The global vector representation of the dispatch decision obtained in S3 is input into the recurrent neural network, and the one-hot decision vector of the current order is output. This vector represents the logistics distribution unit that undertakes the delivery task of the current order.
[0050] S6, order delivery execution: using the logistics delivery unit decision generated in S5, the order is delivered to the corresponding delivery unit, and the unit is dispatched to deliver the user's package to complete the mixed order dispatching task.
[0051] Example 3: The method of the present invention is used to plan and implement the optimal dispatch decision for the mixed dispatch task of a certain express service platform. First, a feedforward neural network is used to extract features from the user's historical order sequence and its receipt time, and the user's long-term embedding vector and self-attention model are used to model the receipt time series to obtain the receipt time representation of the user's order; then a group convolution operation is performed on the current order dispatch map to obtain the current system dispatch status, and the user's receipt preference and the current delivery order are constructed to obtain a global vector representation of the current dispatch decision; finally, the global vector of the dispatch decision is input into the recurrent neural network, and the one-hot decision vector of the current order is output, and the order is dispatched to the corresponding unit.
[0052] It should be noted that the above content only illustrates the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications all fall within the protection scope of the claims of the present invention.
Claims
1. A human-machine hybrid dispatching system based on user preference perception, characterized by: A hybrid dispatching decision module based on user preference learning module and preference perception. The user preference learning module: receives the historical order sequence of the express user, the location of the delivery area of the commercial user, and the express service range map, constructs the self-supervised prediction task of the user delivery time, embeds the user's long-term preference feature, and embeds the short-term preference feature, obtains the user's long-term preference and short-term preference feature representation through the self-supervised learning method, and then predicts the delivery time of the user's order and the confidence level of the predicted time; The preference-aware hybrid dispatch decision module predicts the delivery time and confidence of the user's next order, uses the predicted user delivery time and confidence to input the dispatch decision recurrent neural network, outputs the delivery unit ID corresponding to the order, uses the hybrid dispatch environment to assign the order to the corresponding delivery unit and completes the dispatch of a single delivery task.
2. The human-machine hybrid dispatching system based on user preference perception as claimed in claim 1, characterized in that: In the user preference learning module, the tasks involve L w +1 historical order, using size L w +1 sliding window segments all historical orders, the initial L of the window w The orders represent the short-term history, and the last order is the target order. The receiving time of the target order is used as the true value, which is masked to create the source-target pair. The task τ is of the following form: where o is the target order, is the historical order related to it, r is the region of the order, u is the user of order o, t is the actual receiving time, E u is the user feature embedding, E st Start tag for order characteristics.
3. The human-machine hybrid flow dispatching system based on user preference perception as claimed in claim 2, characterized in that: In the user preference learning module, the model accepts the task τ o As input, and generating a tensor representing the user’s recent summary, the generator includes a history order encoder, a target order encoder, and a Transformer model with encoder and decoder layers, which converts the original order representations of different dimensions into a tensor similar to E u The historical order encoder will align the embedding of Each historical order in is converted into an embedding The calculation method is: where i is the order index, represents a 3-layer feedforward network, and d is a description of the order.
4. The human-machine hybrid flow dispatching system based on user preference perception as claimed in claim 3, characterized in that: In the user preference learning module, the target order encoder uses Convert the target order o to The model processes the embedding sequence and uses the query token E q Generate the user's recent summary tensor, which involves a multi-head self-attention layer and a feed-forward layer. The encoder processes the input through the self-attention and feed-forward layers. The calculation method of self-attention is: Where W Q , W K and W V is the attention weight, h e is the embedding dimension, and the multi-head self-attention is: MHSA(x)=Norm(Concat(SA(x1),…,SA(x n ))W O +x), where x i is the i-th input fragment, Norm is the layer normalization, the feedforward layer includes a two-layer perceptron, the decoder queries the memory tensor for output, involving multi-head attention, cross attention and feedforward layers, and the cross attention uses the query tag and the current data to query the memory, which is calculated as: Among them, W Q , W K and W V is the attention weight, h e is the embedding dimension.
5. The human-machine hybrid dispatching system based on user preference perception as claimed in claim 4, characterized in that: In the user preference learning module, the reception time prediction of each task is: Where W and b are weights and biases, and P represents the user preference representation model.
6. The human-machine hybrid flow dispatching system based on user preference perception as claimed in claim 5, characterized in that: In the preference-aware hybrid dispatch decision, in order to find the optimal dispatch decision, a reinforcement learning feedback function based on the user's delivery difficulty is constructed. The total reward includes three parts: unit delivery feedback, total delivery feedback, and robot load balance feedback. The total feedback is calculated by the following formula: in and are the sets of orders delivered by robots and couriers, respectively. is the number of packages successfully delivered by the i-th delivery unit, is the number of packages that failed to be delivered by the i-th delivery unit, N d (i) is the total number of packages delivered by the i-th unit, r a Feedback for unmanned delivery, h Give back to the courier, p The overall distribution feedback for the system, r w For distribution load balancing feedback, β1 and β2 are scaling factors.
7. The human-machine hybrid flow dispatching system based on user preference perception as claimed in claim 6, characterized in that: In the preference-aware hybrid dispatch decision, the Q model is used to learn the order scheduling strategy in the hybrid environment, which includes two components: feature fusion network and cyclic Q learning with entropy guidance. The feature fusion network includes the hybrid order scheduling state and the user's long-term and short-term preference features. The convolutional neural network is used to capture the multi-channel spatial data relationship. Its embedded features Calculated by the following formula: E M =ConvBlock 3 (M), Among them, ConvBlock represents a convolution block composed of a convolution layer with a kernel of 3, a batch normalization layer, and a ReLU activation function stacked in sequence, and the superscript 3 indicates that three identical convolution blocks are stacked.
8. The human-machine hybrid dispatching system based on user preference perception as claimed in claim 7, characterized in that: In the preference-aware hybrid dispatch decision, entropy-guided Q learning uses LSTM to generate dispatch decisions for each time step with fused feature observations and previous states as inputs, calculated as follows: Among them C t-1 and H t-1 They represent the hidden state of the previous time step, Represents the fusion order features of the current time step, and finally uses the feedback function r total The dispatch strategy model is trained. During the training process, the priority replay method is used to randomly sample the transfer sequence to learn the n-step Q value prediction. The n-step target value in the cyclic Q model is given by the following formula: in represents a reversible value function, θ corresponds to the Q network parameter, and θ' represents the target Q network parameter. At this point, the solution and prediction of the hybrid dispatching strategy based on user preference perception are completed.
9. A human-machine hybrid distribution method based on user preference perception, characterized in that: Using the dispatching system according to any one of claims 1 to 8, the method comprises the following steps: S1, self-supervised task construction: partition the panes based on the user's historical order sequence, and use K historical order data to predict the delivery time of a new order; S2, user delivery preference modeling: Use a feedforward neural network to extract features from the user's historical order sequence and its delivery time, and then use the user's long-term embedding vector and self-attention model to model the delivery time series to obtain the delivery time representation of the user's order; S3, dispatch map convolution: Perform group convolution on the current order dispatch map to obtain the current system dispatch status, and combine the user's delivery preferences constructed in S2 and the current delivery order to obtain the global vector representation of the current dispatch decision; S4, dispatch decision: The global vector representation of the dispatch decision obtained in S3 is input into the recurrent neural network, and the one-hot decision vector of the current order is output. This vector represents the logistics distribution unit that undertakes the delivery task of the current order. S6, order delivery execution: using the logistics delivery unit decision generated in S5, the order is delivered to the corresponding delivery unit, and the unit is dispatched to deliver the user's package to complete the mixed order dispatching task.
