WO2021017609A1 - Determination of estimated time of arrival - Google Patents

Determination of estimated time of arrival Download PDF

Info

Publication number
WO2021017609A1
WO2021017609A1 PCT/CN2020/093301 CN2020093301W WO2021017609A1 WO 2021017609 A1 WO2021017609 A1 WO 2021017609A1 CN 2020093301 W CN2020093301 W CN 2020093301W WO 2021017609 A1 WO2021017609 A1 WO 2021017609A1
Authority
WO
WIPO (PCT)
Prior art keywords
waybill
delivery
time
delivery time
capacity
Prior art date
Application number
PCT/CN2020/093301
Other languages
French (fr)
Chinese (zh)
Inventor
潘基泽
茹强
周越
闫聪
李梦瑶
Original Assignee
北京三快在线科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京三快在线科技有限公司 filed Critical 北京三快在线科技有限公司
Publication of WO2021017609A1 publication Critical patent/WO2021017609A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0835Relationships between shipper or supplier and carriers
    • G06Q10/08355Routing methods

Definitions

  • This application relates to the field of computer technology, especially to determining the estimated delivery time.
  • ETA Estimatimated Time of Arrival
  • shippers such as takeaway riders
  • delivery objects such as ordering users
  • the reference time improves the user experience to a certain extent.
  • the ETA estimation method in the prior art usually adopts a combination of logistic regression model and fusion model. For example, input the sample data to be estimated into the logistic regression model to obtain output A, and at the same time according to the prediction method of the sample data Set the attribute value, input the estimated sample data into the corresponding attribute correlation model to obtain the output B, and then perform the weighted fusion of the results of A and B, and then calculate the fusion time according to the rules to make the final output .
  • the embodiments of the present application provide a method for determining the estimated delivery time, including:
  • the pre-trained delivery time estimation model is used to estimate the punctual delivery of the current waybill by each of the shippers at each preset delivery time Probability and capacity capacity coefficient; wherein the capacity capacity coefficient represents the ability index of the dispatcher to carry at least one other waybill when delivering the current waybill;
  • an embodiment of the present application provides a device for determining an estimated delivery time, including:
  • the characteristic acquisition module is used to acquire the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher;
  • the multi-point punctual delivery probability estimation module is used to estimate the delivery time estimation model for each of the distributors based on the characteristics of the waybill, the characteristics of the dispatcher, and the characteristics of the baggage waybill.
  • the estimated delivery time selection output module is used to determine the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient.
  • an embodiment of the present application also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the processor executes the computer program when the computer program is executed.
  • the method for determining the estimated delivery time described in the embodiment of the application is also disclosed.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the steps of the method for determining the estimated delivery time disclosed in the embodiment of the present application are disclosed.
  • the method for determining the estimated delivery time disclosed in the embodiments of the present application is obtained by obtaining the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the dispatcher’s carrying waybill; then, based on the characteristics of the waybill and the dispatcher And the characteristics of the baggage waybill, through the pre-trained delivery time estimation model, predict the on-time delivery probability and the capacity coefficient of each of the distributors for the current waybill at each preset delivery time; where The capacity coefficient indicates the ability of the shipper to carry at least one other waybill when delivering the current waybill; finally, according to the obtained capacity and demand data, the on-time delivery probability of each preset delivery time and the The capacity coefficient is used to determine the estimated delivery time of the current waybill. Since the estimated time is dynamically adjusted in combination with specific business goals, the output estimated time can balance user experience and delivery efficiency.
  • Figure 1 is a flow chart of the method for determining the estimated delivery time in the first embodiment of the present application
  • FIG. 2 is a schematic diagram of a network model structure adopted in Embodiment 1 of the present application.
  • FIG. 3 is a schematic diagram of the corresponding relationship between the preset delivery time and the on-time delivery probability of the model output in Embodiment 1 of the present application;
  • FIG. 4 is one of the schematic diagrams of the apparatus for determining the estimated delivery time according to the second embodiment of the present application.
  • FIG. 5 is the second structural diagram of the device for determining the estimated delivery time in the second embodiment of the present application.
  • Fig. 6 shows a block diagram of an electronic device for executing the method according to the present application.
  • Fig. 7 shows a storage unit for holding or carrying program codes for implementing the method according to the present application.
  • An embodiment of the present application discloses a method for determining an estimated delivery time. As shown in FIG. 1, the method includes: step 110 to step 130.
  • Step 110 Obtain the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher.
  • the method for determining the estimated delivery time disclosed in the embodiments of the present application is applicable to multiple application fields in the distribution industry such as takeaway and logistics, so as to solve the problem of estimating the delivery time of the waybill.
  • the specific technical solution of the method for determining the estimated delivery time disclosed in this application will be illustrated in combination with application scenarios in the food delivery field.
  • the delivery person described in the embodiment of the application may be a takeaway delivery person, that is, a rider, or a delivery robot.
  • the delivery person is a rider as an example to explain the specific technical solution;
  • the waybill described in the application embodiment corresponds to the delivery task of one waybill.
  • the current waybill when the system generates a new waybill to be delivered, can be generated according to the delivery task of the waybill, and the information of the current waybill includes at least geographic location information, such as the delivery start position and the delivery end position; It can also include information such as the price of the waybill.
  • the time required for the current waybill to be delivered by different riders is determined according to the information of the current waybill and the relevant information of each rider in the system. Finally, the current waybill is further determined according to the target of the delivery task to which or which the current waybill is suitable for Rider delivery, and determine the estimated delivery time when delivered by the corresponding rider.
  • the current waybill characteristics are acquired based on the current waybill information, and the waybill characteristics include any one or more of the waybill price, delivery distance, and geographic location.
  • the waybill information has a fixed format, and by analyzing the waybill information of the current waybill according to the fixed format, the characteristics of the current waybill can be obtained.
  • the relevant information of the dispatcher includes at least the information of the dispatcher himself.
  • the information of the dispatcher himself is expressed through the characteristics of the dispatcher.
  • the characteristics of the dispatcher described in the embodiments of the present application include any one or more of dispatcher level, dispatcher's dispatching ability, and dispatcher's dispatch type.
  • the characteristics of the rider include any one or more of the rider level, the rider's delivery ability, and the rider's delivery type.
  • the characteristics of rider level, rider delivery ability, rider delivery type, etc. are determined by the system through analysis and calculation based on rider's historical delivery data, user comments, rider registration information and other data, and can be obtained through the system interface.
  • the technical means for determining the characteristics of the rider level, the rider's delivery ability, the rider's delivery type and the like through analysis and calculation refer to the prior art, and will not be repeated in the embodiments of this application.
  • the type of rider delivery refers to the type of rider who belongs to urban agency, Meituan self-operated, and crowdsourced delivery.
  • the relevant information of the shipper also includes the information of the waybill carried by the shipper.
  • the information of the air waybill carried by the dispatcher is expressed by the characteristic of the air waybill carried by the dispatcher.
  • the characteristics of the air waybill carried by the shipper include: the air waybill characteristics of the air waybill other than the current waybill carried by the shipper; or, the characteristics of the air waybill carried by the shipper include: the The characteristics of all waybills carried by the shipper.
  • the characteristics of the waybill carried by the rider may include the characteristics of part of the waybill or all the waybills other than the current waybill carried by the rider.
  • the air waybill characteristics of each waybill carried by the rider please refer to the aforementioned specific method of obtaining the air waybill characteristics of the current waybill, which will not be repeated here.
  • a takeaway waybill delivered from location A to location B its characteristics can be expressed as F 1 ⁇ (lng1,lat1),(lng2,lat2),value,Distance ⁇ , where (lng1,lat1) means take Meal location coordinates, (lng2, lat2) represents the delivery location coordinates, value represents the price of the waybill, and Distance represents the delivery distance.
  • the rider characteristics of each rider can be obtained separately, then the rider characteristics of rider n can be expressed as F 2 ⁇ Level n ,ability n ,type n ⁇ , where Level n represents the level of rider n ,Ability n represents the delivery capability of rider n, type n represents the delivery type of rider n, N and n are natural numbers greater than 1, and n ⁇ N. Furthermore, if a rider n is carrying two waybills, they are represented as order1 and order2 respectively. Among them, the waybill feature of the waybill order1 is represented as: order1_F1
  • order2_F1 The waybill feature of order2 is expressed as: order2_F1
  • a set of feature vectors made up of the current waybill characteristics, the rider characteristics of the rider, and the rider's carrying waybill characteristics can be obtained for each rider.
  • the spliced characteristics of rider n can be expressed as F n ⁇ F n1 ,F n2 ,F n3 ⁇ .
  • Step 120 based on the characteristics of the waybill, the characteristics of the shipper, and the characteristics of the baggage waybill, through a pre-trained delivery time estimation model, it is estimated that each of the distributors will respond to the current waybill at each preset delivery time. Probability of on-time delivery and capacity factor.
  • the capacity coefficient represents the ability index of the shipper to be able to carry at least one other waybill when delivering the current waybill.
  • the pre-trained delivery time estimation model is used to estimate the on-time delivery probability and the capacity coefficient corresponding to each delivery time when each distributor delivers the current waybill.
  • the on-time delivery probability is used to indicate the probability of on-time delivery within a specified series of delivery times.
  • the specified series of delivery times can be determined according to specific business requirements, or can be determined according to the delivery distance and delivery time data in the historical waybill data. For example, according to historical waybill data, the longest delivery time is 120 minutes, and the shortest delivery time is 0 minutes, then the specified series of delivery times can be 0 minutes, 1 minute, 2 minutes, ...
  • the specified series of delivery time may be a series of delivery time points such as 0 minutes, 5 minutes, 10 minutes, ... 120 minutes.
  • the delivery time mentioned in the embodiments of the present application refers to the time required by the rider from the start position to the end position of the waybill, for example, the time required from the takeaway rider picking up the meal to the delivery.
  • the pre-trained delivery time estimation model is used to estimate that each of the dispatchers will have the current waybill in each forecast.
  • it also includes: determining the characteristics of each waybill corresponding to each waybill according to the historical waybill data, the characteristics of the dispatcher of the dispatcher who delivered the waybill, and the dispatcher
  • the piggyback air waybill feature is used as the sample data of the training sample corresponding to the corresponding air waybill; and, the sample label of the training sample corresponding to each waybill is determined according to the pickup time of each waybill in the historical air waybill data, the sample label It includes the on-time delivery probability label and the capacity coefficient label corresponding to the preset delivery time; training a delivery time estimation model based on the training sample, wherein the delivery time estimation model is a multi-class model.
  • training samples are constructed based on historical air waybill data to train the delivery time estimation model. For example, for each historical takeaway delivery record, determine the pickup location, delivery location, and waybill price information of the waybill, and encode the waybill feature vector corresponding to the waybill record; at the same time, determine the record of the takeaway delivery record The delivery rider is further obtained, and the rider grade, rider delivery ability, and rider type information of the delivery rider are obtained and encoded to obtain the rider feature vector corresponding to the waybill record.
  • the waybill information of other waybills carried by the rider who delivered the waybill at the same time based on the takeaway delivery record, that is, the waybills of other takeaway waybills that were delivered at the same time when the rider delivered the waybill. information.
  • a certain rider will carry one or more other waybills at the same time, and the waybills carried by the rider at the same time often overlap partly on the delivery route and can share a certain part of the delivery distance.
  • the waybill information of each waybill carried by the rider includes: pick-up location, delivery location, and waybill price information. Then, the above-mentioned characteristic information of each waybill is separately coded and spliced to obtain the characteristic vector of the rider's carrying waybill.
  • the delivery time estimation model trained in the embodiment of the application is a multi-class model, and the task of the multi-class model is to predict the classification results of a piece of test data similar to sample data corresponding to multiple categories.
  • the goal is to input data consisting of the air waybill characteristics, rider characteristics (ie, shipper characteristics), and carrying air waybill characteristics, and the delivery time estimation model will output multiple corresponding classification results , That is, output the on-time delivery probability of each preset delivery time and the capacity coefficient corresponding to the on-time delivery probability.
  • the sample label consists of two parts, which are respectively recorded as the on-time delivery probability label and the capacity coefficient label.
  • the on-time delivery probability label is used to indicate the on-time delivery probability of the training sample at each preset delivery time
  • the capacity coefficient label is used to indicate that the rider corresponding to the training sample is delivering the waybill corresponding to the training sample The ability to carry other air waybills.
  • the step of determining the sample label of the training sample corresponding to each waybill according to the delivery time of each waybill in the historical waybill data includes: for each waybill, according to the The delivery time of the waybill determines the value of the on-time delivery probability label of the training sample corresponding to the waybill, wherein the on-time delivery probability label is used to indicate the on-time delivery of the waybill at each preset delivery time Probability.
  • the on-time delivery probability label is used to indicate the classification results corresponding to each preset delivery time point.
  • the delivery time Take the delivery time from 1 minute to 120 minutes as an example. Assuming that every minute the time changes, there is a delivery time, that is, the delivery time includes 120 delivery times from 1 minute to 120 minutes, and each of them is delivered
  • the sample label is the classification result of on-time delivery probability corresponding to 120 delivery times.
  • the delivery status of a certain waybill at each preset delivery time can be used as the on-time delivery probability label of the training sample corresponding to the waybill. That is, if at a certain point in time, the waybill has been delivered, the classification result of the corresponding category at that time point is 1; and the classification result corresponding to other delivery times is 0.
  • the delivery time of a historical waybill is 45 minutes, that is, the historical waybill has been delivered within 45 minutes of delivery time, that is, the probability of on-time delivery is 100%
  • the training sample corresponding to the historical waybill will be delivered on time
  • the classification result of the probability label corresponding to the 45th category can be set to 1, and the other classification results can be set to 0. That is, for this waybill, the on-time delivery probability tag corresponding to the preset delivery time of 45 minutes can be set to 1, and the on-time delivery probability tag corresponding to the preset delivery time of non-45 minutes can be set to 0 .
  • the step of determining the sample label of the training sample corresponding to each waybill according to the delivery time of each waybill in the historical waybill data further includes: according to the delivery time of each waybill The delivery distance of all the waybills carried by the shipper of the waybill mentioned in the route, the delivery distance of the said waybill is divided, and each segment of the delivery distance corresponds to a segment time; according to the corresponding description of each delivery distance
  • the segment time and the number of waybills sharing the corresponding segment's delivery route determine the delivery time of a single waybill sharing the segment's delivery route; for each waybill sharing this segment's delivery route, according to the delivery route of the waybill
  • the sum of the delivery time of the single air waybill corresponding to each segment of the delivery route and the sum of the segment time lengths of each segment of the delivery route of the air waybill are used to determine the capacity coefficient corresponding to the air waybill;
  • the capacity coefficient corresponding to the waybill is used as the
  • each delivery time that is, the delivery time includes 120 time points from 1 minute to 120 minutes
  • each delivery time Corresponding to a capacity coefficient
  • each waybill data will correspond to 120 capacity capacity coefficients
  • the capacity capacity coefficient corresponding to each delivery time constitutes the capacity capacity coefficient label of a training sample.
  • the following combines a piece of specific historical waybill data of rider A to illustrate the technical solution of determining the capacity coefficient label based on historical waybill data.
  • a specific historical air waybill data of rider A is as follows: take waybill 1 at 9:19:00; take waybill 2 after 380 seconds (ie 9:25:20); after another 900 seconds (ie 9:40:20) Send waybill 1; after another 250 seconds (ie 9:44:30), take waybill 3; after another 130 seconds (ie, 9:46:40), send waybill 2, and take waybill 4 at the same time; after another 770 seconds (Ie 9:59:30) send waybill 3; after 890 seconds (ie 10:14:20) send waybill 4. From this historical waybill data, it can be concluded that rider A is carrying 4 waybills at the same time.
  • the delivery route of this historical waybill data can be divided into multiple delivery routes according to the time of each collection and delivery of the waybill. After the aforementioned historical air waybill data is divided, there will be 6 delivery routes, and the segment durations corresponding to each delivery route are: 380 seconds, 900 seconds, 250 seconds, 130 seconds, 770 seconds and 890 seconds.
  • the delivery route of each waybill may include one segment or multiple consecutive segments.
  • the delivery distance of the waybill 1 includes the first segment (380 seconds) and the second segment (900 seconds) of the delivery distance.
  • the delivery time of a single air waybill sharing the delivery distance is determined according to the segment time corresponding to each segment of the delivery distance included in the delivery distance of each waybill and the number of airway bills sharing the delivery distance.
  • the quotient of the segment duration corresponding to each segment of the delivery route and the number of waybills sharing the corresponding segment's delivery route is determined as the delivery duration of a single airway bill sharing the segment's delivery route. Take the delivery route of waybill 1 as an example.
  • this method it is possible to determine the delivery time of a single air waybill corresponding to each section of the delivery distance included in the delivery distance of each waybill.
  • the sum of the delivery time of a single waybill corresponding to each segment of the delivery route of the waybill can be shared with the segment time corresponding to each segment of the corresponding segment of the delivery route
  • the ratio of the sum is used as the capacity coefficient corresponding to the waybill.
  • the delivery time of a single waybill corresponding to the first segment of the delivery route included in the waybill 1 is 380 seconds and the delivery time of a single waybill corresponding to the second segment of the delivery route included in the waybill 1 is 450 seconds
  • the time obtained by the summation is 830 seconds
  • the capacity coefficient corresponding to the waybill is used as the capacity capacity coefficient label of the training sample corresponding to the waybill.
  • the capacity coefficient of the waybill 1 is both 0.64843750.
  • the historical air waybill data is the data that has actually occurred, so the capacity coefficient of each delivery time of a certain waybill corresponding to the delivery route can be accurately obtained.
  • the capacity coefficient corresponding to the final delivery time of the historical waybill is calculated, and the capacity coefficients of other preset delivery time points are determined by generalization of the model.
  • the delivery time estimation model is further trained based on the training samples.
  • the delivery time estimation model described in the embodiment of the application adopts a multi-target network structure, for example, a classification neural network with two targets as shown in FIG. 2 is adopted, and one of the targets is to output the classification result of the preset delivery time , Another goal is to output the capacity coefficient corresponding to each preset delivery time.
  • the loss functions of the two network branches, the on-time delivery probability loss function 210 and the capacity coefficient loss function 220 are different.
  • the delivery time estimation model further includes: a feature fusion layer 230, which is used to combine the first feature vector output by the waybill feature vectorization module 240 and the shipper feature vectorization module
  • the second feature vector output by 250 is fused to obtain a fusion feature vector of the first preset length, and then the fusion feature vector is input to the loss functions 210 and 220, respectively, to obtain different classification results.
  • the air waybill feature vectorization module 240 is further configured to integrate any one or more of the air waybill price, delivery distance, and geographic location input into the delivery time estimation model into a second forecast. Let the length of the first feature vector.
  • the shipper feature vectorization module 250 is used to fuse the shipper feature of the shipper who delivers the current waybill with the shipper's piggy-backed waybill feature to obtain a second feature vector with a third preset length.
  • the shipper feature vectorization module 250 further includes: a shipper feature fusion sub-module 2501, a shipper feature vectorization sub-module 2502, and a preset number of piggy-back waybill feature vectorization sub-modules 2503.
  • the dispatcher feature vectorization sub-module 2502 is used to fuse any one or more of the characteristic vectors of the dispatcher level, the dispatcher's dispatching ability, and the dispatcher's dispatch type into a dispatcher characteristic of the fourth preset length Vector; each of the piggybacked waybill feature vectorization sub-module 2503 is used to fuse the vector of the waybill feature of a certain waybill carried by the shipper into a first feature vector of a second preset length; the shipper feature fusion
  • the sub-module 2501 is used for fusing the fourth preset length of the shipper feature vector and a preset number of the first feature vector output by the baggage waybill feature vectorization sub-module 2503 into a third preset length of the second feature vector.
  • the loss function and the parameters of each feature fusion module and feature fusion sub-module are continuously adjusted through methods such as back propagation to obtain the optimal model parameters and complete the model training.
  • the specific training process of the delivery time estimation model refers to the prior art, and the specific training process of the model is not limited in the embodiment of this application.
  • the structure of the delivery time estimation model can also be in other forms, for example, the delivery feature fusion submodule 2501 is deleted, and the parameters of the delivery feature vectorization module 250 are adjusted by The shipper feature vectorization module 250 merges the shipper feature vector of the fourth preset length and the preset number of the first feature vector output by the baggage waybill feature vectorization submodule 2503 into a third preset length The second feature vector.
  • a specific network structure can also be used to integrate the features of the waybill, the shipper, and the shipper’s baggage waybill, which can also solve the technical problem to be solved by this application and achieve the same
  • the technical effects are not listed one by one in the embodiments of this application.
  • the delivery time estimation model when estimating the on-time delivery probability of the current waybill, the characteristics of the current waybill, the characteristics of rider A, and the burden of rider A
  • the air waybill features are input to the delivery time estimation model, and the delivery time estimation model will output the on-time delivery probability of rider A at each preset delivery time when the current waybill is delivered by rider A, and rider A's delivery office State the capacity coefficient of the current air waybill at each preset delivery time.
  • each forecast is obtained.
  • the on-time delivery probability and capacity coefficient of the current waybills within different delivery times have been determined when different riders deliver the current waybill.
  • the corresponding table of the estimated rider, the preset delivery time and the on-time delivery probability is shown in Figure 3.
  • the first column on the left represents each preset delivery time; starting from the second column on the left, the data in each column identifies the punctual delivery within different delivery time periods when the corresponding rider delivers the current waybill Probability; starting from the second row from top to bottom, the data in each row represents the on-time delivery probability of different riders in the delivery time period on the left.
  • the value 99% in the bottom left corner of Figure 3 means that within 90 minutes, the probability that rider A will deliver the current waybill on time is 99%; the probability that rider A will deliver the current waybill on time in each time period is the leftmost column .
  • Step 130 Determine the expected delivery time of the current waybill according to the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity coefficient.
  • the determination of the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity capacity coefficient includes : Determine the ratio of demand to capacity; if the ratio meets the preset ratio condition, determine the estimated delivery time of the current waybill according to the on-time delivery probability; if the ratio does not meet the preset ratio condition, then The capacity coefficient determines the estimated delivery time of the current waybill.
  • the role of the estimated delivery time is to adjust the balance between user experience and delivery efficiency. With sufficient capacity, reducing the expected delivery time can improve user experience. When the capacity is tight, extending the estimated delivery time can increase the capacity of the entire system.
  • the demand and capacity are defined to obtain the relationship data between demand and capacity, and then the system is guided to select the appropriate estimated delivery time for output, which effectively balances the delivery efficiency of the user experience and makes the output expected delivery Explainable time is stronger.
  • the capacity and demand data of the distribution system can be obtained, and then the estimated time adjustment is made based on the obtained capacity and demand data.
  • the system defines a requirement as: the sum of the number of waybills within a specified geographic area, and defines a capacity as: the number of deliverers (such as the number of riders) that meet the conditions within the specified geographic area. Since demand and transportation capacity are different in size and magnitude, it is necessary to normalize the demand and transportation capacity into dimensionless numbers.
  • a normalization method in the prior art such as a maximum-minimum method
  • an appropriate estimated delivery time can be selected according to the ratio of demand and capacity.
  • determining the estimated delivery time of the current waybill according to the on-time delivery probability further includes: if the ratio satisfies the preset ratio Condition, the shortest delivery time corresponding to the on-time delivery probability meeting the preset probability condition is determined as the estimated delivery time of the current waybill. If the ratio does not meet the preset ratio condition, determining the estimated delivery time of the current waybill according to the capacity coefficient, further comprising: if the ratio does not meet the preset ratio condition, determining the closest to all The delivery time corresponding to the capacity coefficient of the ratio is used as the estimated delivery time of the current waybill.
  • the ratio of demand to capacity is less than or equal to the preset coefficient threshold, and the preset probability condition is that the on-time delivery probability is greater than 95%.
  • the preset coefficient threshold can be determined according to offline operation experience, for example, set to 80%.
  • the preset ratio condition such as less than 85%
  • the shortest delivery time required when the probability of on-time delivery is greater than 95% will be indicated.
  • the rider information corresponding to the shortest delivery time is also output.
  • the delivery time corresponding to the nearest rider is selected as the estimated delivery time of the current waybill in the rider corresponding to the on-time delivery probability meeting the preset probability condition. At the same time, the rider information of the rider with the closest distance is output.
  • the delivery time and the allocation of riders can be dynamically adjusted, which can further improve the delivery efficiency of the system.
  • the calculated demand and capacity ratio does not meet the preset ratio condition (such as greater than 85%), it indicates that the current capacity is insufficient. For example, if all the riders are in full-load delivery, then the capacity coefficient corresponding to the closest ratio is selected. The delivery time is used as the estimated delivery time of the current waybill, and the rider information corresponding to the capacity coefficient closest to the above ratio is output.
  • the delivery time corresponding to the minimum value of the capacity coefficient greater than the above ratio can also be selected as the The estimated delivery time of the current waybill, and output the rider information corresponding to the minimum capacity coefficient greater than the above ratio.
  • the capacity coefficient reflects the rider’s ability to carry the air waybill at a certain time, and the ratio of capacity to demand reflects the distribution demand of the distribution system.
  • capacity is insufficient, the rider whose capacity coefficient matches the ratio of capacity and demand is selected for order distribution ,
  • the distribution system can operate stably, and at the same time, maximize the user experience.
  • the method for determining the estimated delivery time disclosed in the embodiments of the present application is to obtain the current waybill characteristics, the rider characteristics of each rider, and the rider's carrying waybill characteristics; then, based on the waybill characteristics, the rider characteristics, and the carrying The characteristics of the air waybill, through the pre-trained delivery time estimation model, estimate the on-time delivery probability and capacity coefficient of each rider for the current air waybill at each preset delivery time; wherein, the capacity capacity coefficient represents The rider is able to carry at least one capability index of other waybills when delivering the current waybill; finally, it is determined according to the obtained capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient Since the estimated delivery time of the current waybill is dynamically adjusted in combination with specific business goals, the output estimated time can balance user experience and delivery efficiency.
  • the method for determining the estimated delivery time disclosed in the embodiments of the present application is based on a universal delivery time estimation model suitable for multiple scenarios, and based on demand and capacity in real time, it is determined whether to take care of user experience or prefer delivery efficiency, and then , To further select the estimated delivery time of the model and the corresponding rider, so that the output estimated delivery time has a certain ability to explain the business.
  • the model adopts abstract waybill characteristics, rider characteristics, and rider’s carrying waybill characteristics to deliver on time for different riders at each preset delivery time.
  • the probability of arrival is not limited to the specific scenarios of the waybill, and there is no need to retrain the delivery time estimation model for different scenarios, which improves the efficiency of model training and reduces development costs.
  • this application adopts a multi-classification model, and the delivery time estimation model outputs on-time delivery probabilities of multiple preset delivery times, providing a more fine-grained selection range for subsequent adjustment strategies, which can improve the expected delivery of output The accuracy of time.
  • This embodiment discloses a device for determining the estimated delivery time. As shown in FIG. 4, the device includes:
  • the characteristic acquisition module 410 is used to acquire the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher;
  • the multi-point punctual delivery probability estimation module 420 is used to estimate the delivery time estimation model for each of the distributors based on the characteristics of the waybill, the characteristics of the shipper, and the characteristics of the baggage waybill.
  • the estimated delivery time selection output module 430 is configured to determine the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient.
  • the estimated delivery time selection output module 430 is further configured to:
  • the estimated delivery time of the current waybill is determined according to the on-time delivery probability
  • the estimated delivery time of the current waybill is determined according to the capacity coefficient.
  • the step of determining the expected delivery time of the current waybill according to the on-time delivery probability includes:
  • the shortest delivery time corresponding to the on-time delivery probability that satisfies the preset probability condition is determined as the estimated delivery time of the current waybill.
  • the step of determining the estimated delivery time of the current waybill according to the capacity coefficient includes:
  • the delivery time corresponding to the capacity coefficient closest to the ratio is determined as the estimated delivery time of the current waybill.
  • the device further includes:
  • the training sample generating module 440 is used to determine the characteristics of the waybill corresponding to each waybill, the characteristics of the shipper who delivered the waybill, and the characteristics of the baggage waybill of the distributor according to the historical waybill data, as the training sample corresponding to the corresponding waybill And, according to the delivery time of each waybill in the historical waybill data, determine the sample label of each training sample corresponding to the waybill, the sample label including the punctuality corresponding to the preset delivery time Delivery probability label and capacity coefficient label;
  • the estimation model training module 450 is configured to train a delivery time estimation model based on the training samples, wherein the delivery time estimation model is a multi-classification model.
  • the step of determining the sample label of the training sample corresponding to each waybill according to the delivery time of each waybill in the historical waybill data includes:
  • the value of the on-time delivery probability label of the training sample corresponding to the waybill is determined according to the delivery time of the waybill, where the on-time delivery probability label is used to indicate that the waybill is in each pre-order. Set the probability of on-time delivery of the delivery time.
  • the step of determining the sample label of the training sample corresponding to each of the waybills according to the delivery time of each waybill in the historical waybill data further includes:
  • segment the delivery distance of the waybill, and each delivery distance corresponds to a segment time
  • the sum of the delivery time of the individual waybill corresponding to each section of the delivery route of the waybill and each section of the delivery route of the waybill The sum of the segment durations of the journey to determine the capacity coefficient corresponding to the waybill;
  • the capacity coefficient corresponding to the waybill is used as the capacity capacity coefficient label of the training sample corresponding to the waybill.
  • the characteristics of the waybill include any one or more of the price of the waybill, the delivery distance, and the geographic location; the characteristics of the dispatcher include: the rank of the dispatcher, the dispatching ability of the dispatcher, and the dispatcher Any one or more of the delivery types; the characteristics of the waybill carried by the dispatcher include: the characteristics of the waybill other than the current waybill carried by the dispatcher.
  • the device for determining the expected delivery time disclosed in the embodiments of the present application is used to implement the steps of the method for determining the expected delivery time described in the first embodiment of the present application.
  • each module of the device refer to the corresponding steps. I won't repeat it here.
  • the device for determining the estimated delivery time disclosed in the embodiments of the present application obtains the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the load-bearing waybill of the dispatcher; then, based on the characteristics of the waybill and the dispatcher And the characteristics of the baggage waybill, through the pre-trained delivery time estimation model, predict the on-time delivery probability and the capacity coefficient of each of the distributors for the current waybill at each preset delivery time; where The capacity coefficient indicates the ability of the shipper to carry at least one other waybill when delivering the current waybill; finally, according to the obtained capacity and demand data, the on-time delivery probability of each preset delivery time and the The capacity coefficient is used to determine the estimated delivery time of the current waybill.
  • the output estimated time can balance user experience and delivery efficiency. Based on a universal delivery time estimation model suitable for multiple scenarios, it is determined in real time whether to take care of user experience or prefer delivery efficiency based on demand and capacity, and then further select the estimated delivery time of the model and the corresponding dispatcher , So that the estimated delivery time output has a certain ability to explain the business.
  • the model adopts the abstract waybill feature, the shipper's feature, and the shipper’s baggage waybill feature for different shippers to preset delivery times at each
  • the on-time delivery probability is not limited to the specific scenarios of the waybill, and there is no need to retrain the delivery time estimation model for different scenarios, which improves the efficiency of model training and reduces development costs.
  • this application adopts a multi-classification model, and the delivery time estimation model outputs on-time delivery probabilities of multiple preset delivery times, providing a more fine-grained selection range for subsequent adjustment strategies, which can improve the expected delivery of output The accuracy of time.
  • this application also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor.
  • the processor executes the computer program, the implementation is as in this application.
  • the electronic device may be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc.
  • the application also discloses a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for determining the estimated delivery time as described in the first embodiment of the application are realized.
  • the device embodiments described above are merely illustrative.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
  • each implementation manner can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware.
  • the above technical solutions can be embodied in the form of software products, which can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., include a number of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment.
  • a microprocessor or a digital signal processor may be used in practice to implement some or all of the functions of some or all of the components in the electronic device according to the embodiments of the present application.
  • DSP digital signal processor
  • it may be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
  • Such a program for realizing the present application may be stored on a computer-readable medium, or may have the form of one or more signals.
  • signals can be downloaded from Internet websites, or provided on carrier signals, or provided in any other form.
  • FIG. 6 shows an electronic device that can implement the method according to the present application.
  • the electronic device traditionally includes a processor 620 and a computer program product in the form of a memory 610 or a computer-readable medium.
  • the memory 610 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the memory 610 has a storage space 6101 for executing the program code 6102 of any method step in the above method.
  • the storage space 6101 for program codes may include various program codes 6102 for implementing various steps in the above method. These program codes can be read out from or written into one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is usually a portable or fixed storage unit as described with reference to FIG. 7.
  • the storage unit may have storage segments, storage spaces, etc. arranged similarly to the storage 620 in the electronic device of FIG. 6.
  • the program code can be compressed in an appropriate form, for example.
  • the storage unit includes computer-readable code 6102', that is, code that can be read by a processor such as 610.
  • the computer-readable code runs on an electronic device, it causes the electronic device to perform the determination described above. The steps in the method of estimated delivery time.
  • any reference signs placed between parentheses should not be constructed as a limitation to the claims.
  • the word “comprising” does not exclude the presence of elements or steps not listed in the claims.
  • the word “a” or “an” preceding an element does not exclude the presence of multiple such elements.
  • the application can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims enumerating several devices, several of these devices may be embodied by the same hardware item.
  • the use of the words first, second, and third, etc. do not indicate any order. These words can be interpreted as names.

Abstract

A method for determining the estimated time of arrival, relating to the technical field of computers. The method for determining the estimated time of arrival comprises: obtaining the order characteristics of the current order, the distributor characteristics of each distributor, and the accepted order characteristics of the distributor (110); estimating, by means of a pre-trained time-of-arrival estimation model, the on-time arrival probability and the transport capacity coefficient of each distributor for the current order at each preset time of arrival on the basis of the order characteristics, the distributor characteristics, and the accepted order characteristics (120); and determining the estimated time of arrival of the current order according to the obtained transport capacity and requirement data, the on-time arrival probability at each preset time of arrival, and the transport capacity coefficient (130). Since the estimated time is dynamically adjusted in combination with specific service goals, the estimated time output can balance user experience and distribution efficiency.

Description

确定预计送达时间Determine the estimated delivery time
本申请要求在2019年07月30日提交中国专利局、申请号为201910696204.6、发明名称为“预计送达时间确定方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910696204.6, and the invention title is "Method, Apparatus, Electronic Equipment and Storage Medium for Determining Estimated Delivery Time" on July 30, 2019, and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及确定预计送达时间。This application relates to the field of computer technology, especially to determining the estimated delivery time.
背景技术Background technique
随着外卖、配送等业务的发展,ETA(Estimated Time of Arrival,预计送达时间)预估可以为运单的配送者(如外卖骑手)和配送对象(如点餐用户)提供外卖、配送等业务的参考时间,从一定程度上改善了用户体验。现有技术中的ETA预估方法通常采用逻辑回归模型和融合模型的结合的预估方法,例如,将待预估样本数据输入至逻辑回归模型得到输出A,同时根据待预估样本数据的预设属性值,将该预估样本数据输入至对应的属性相关模型得到输出B,之后,将A和B的结果进行加权融合,接着将融合后的结果根据规则计算出来补时,进行最终的输出。With the development of take-out and delivery services, ETA (Estimated Time of Arrival) is estimated to be able to provide take-out and delivery services to shippers (such as takeaway riders) and delivery objects (such as ordering users) The reference time improves the user experience to a certain extent. The ETA estimation method in the prior art usually adopts a combination of logistic regression model and fusion model. For example, input the sample data to be estimated into the logistic regression model to obtain output A, and at the same time according to the prediction method of the sample data Set the attribute value, input the estimated sample data into the corresponding attribute correlation model to obtain the output B, and then perform the weighted fusion of the results of A and B, and then calculate the fusion time according to the rules to make the final output .
发明内容Summary of the invention
第一方面,本申请实施例提供了一种确定预计送达时间的方法,包括:In the first aspect, the embodiments of the present application provide a method for determining the estimated delivery time, including:
获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;Obtain the air waybill characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the load waybill of the dispatcher;
基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;Based on the characteristics of the waybill, the shipper and the characteristic of the baggage waybill, the pre-trained delivery time estimation model is used to estimate the punctual delivery of the current waybill by each of the shippers at each preset delivery time Probability and capacity capacity coefficient; wherein the capacity capacity coefficient represents the ability index of the dispatcher to carry at least one other waybill when delivering the current waybill;
根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间。Determine the expected delivery time of the current waybill according to the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity coefficient.
第二方面,本申请实施例提供了一种确定预计送达时间的装置,包括:In the second aspect, an embodiment of the present application provides a device for determining an estimated delivery time, including:
特征获取模块,用于获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;The characteristic acquisition module is used to acquire the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher;
多点准时送达概率预估模块,用于基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;The multi-point punctual delivery probability estimation module is used to estimate the delivery time estimation model for each of the distributors based on the characteristics of the waybill, the characteristics of the dispatcher, and the characteristics of the baggage waybill. The on-time delivery probability and capacity coefficient of the waybill at each preset delivery time; wherein the capacity capacity coefficient represents the ability index of the shipper to be able to carry at least one other waybill when delivering the current waybill;
预计送达时间选择输出模块,用于根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间。The estimated delivery time selection output module is used to determine the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient.
第三方面,本申请实施例还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例所述的确定预计送达时间的方法。In the third aspect, an embodiment of the present application also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the processor executes the computer program when the computer program is executed. The method for determining the estimated delivery time described in the embodiment of the application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时本申请实施例公开的确定预计送达时间的方法的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method for determining the estimated delivery time disclosed in the embodiment of the present application are disclosed.
本申请实施例公开的确定预计送达时间的方法,通过获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;然后,基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;最后,根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间,由于结合了具体业务目标对预估时间进行动态调整,输出的预估时间能够平衡用户体验和配送效率。The method for determining the estimated delivery time disclosed in the embodiments of the present application is obtained by obtaining the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the dispatcher’s carrying waybill; then, based on the characteristics of the waybill and the dispatcher And the characteristics of the baggage waybill, through the pre-trained delivery time estimation model, predict the on-time delivery probability and the capacity coefficient of each of the distributors for the current waybill at each preset delivery time; where The capacity coefficient indicates the ability of the shipper to carry at least one other waybill when delivering the current waybill; finally, according to the obtained capacity and demand data, the on-time delivery probability of each preset delivery time and the The capacity coefficient is used to determine the estimated delivery time of the current waybill. Since the estimated time is dynamically adjusted in combination with specific business goals, the output estimated time can balance user experience and delivery efficiency.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some of the present application. Embodiments, for those of ordinary skill in the art, without creative labor, other drawings can be obtained from these drawings.
图1是本申请实施例一的确定预计送达时间的方法流程图;Figure 1 is a flow chart of the method for determining the estimated delivery time in the first embodiment of the present application;
图2是本申请实施例一中采用的一个网络模型结构示意图;FIG. 2 is a schematic diagram of a network model structure adopted in Embodiment 1 of the present application;
图3是本申请实施例一中模型输出的预设送达时间和准时送达概率对应关系示意图;3 is a schematic diagram of the corresponding relationship between the preset delivery time and the on-time delivery probability of the model output in Embodiment 1 of the present application;
图4是本申请实施例二的确定预计送达时间的装置结构示意图之一;FIG. 4 is one of the schematic diagrams of the apparatus for determining the estimated delivery time according to the second embodiment of the present application;
图5是本申请实施例二的确定预计送达时间的装置结构示意图之二;FIG. 5 is the second structural diagram of the device for determining the estimated delivery time in the second embodiment of the present application;
图6示出了用于执行根据本申请的方法的电子设备的框图;以及,Fig. 6 shows a block diagram of an electronic device for executing the method according to the present application; and,
图7示出了用于保持或者携带实现根据本申请的方法的程序代码的存储单元。Fig. 7 shows a storage unit for holding or carrying program codes for implementing the method according to the present application.
具体实施例Specific embodiment
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.
实施例一Example one
本申请实施例公开的一种确定预计送达时间的方法,如图1所示,该方法包括:步骤110至步骤130。An embodiment of the present application discloses a method for determining an estimated delivery time. As shown in FIG. 1, the method includes: step 110 to step 130.
步骤110,获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征。Step 110: Obtain the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher.
本申请实施例公开的确定预计送达时间的方法适用于外卖、物流等配送行业的多个应用领域,以解决运单送达时间的预估问题。本实施例中,为了便于读者理解本技术方案,仅结合外卖领域的应用场景举例说明本申请公开的确定预计送达时间的方法的具体技术方案。The method for determining the estimated delivery time disclosed in the embodiments of the present application is applicable to multiple application fields in the distribution industry such as takeaway and logistics, so as to solve the problem of estimating the delivery time of the waybill. In this embodiment, in order to facilitate readers to understand the technical solution, the specific technical solution of the method for determining the estimated delivery time disclosed in this application will be illustrated in combination with application scenarios in the food delivery field.
本申请实施例中所述的配送者可以为外卖配送员,即骑手,也可以为配送机器人,本申请实施例的以下描述中,以配送者为骑手为例,对具体技术方案进行说明;本申请实施例中所述的运单对应一个运单的配送任务。The delivery person described in the embodiment of the application may be a takeaway delivery person, that is, a rider, or a delivery robot. In the following description of the embodiment of the application, the delivery person is a rider as an example to explain the specific technical solution; The waybill described in the application embodiment corresponds to the delivery task of one waybill.
具体实施过程中,当系统产生了一个新的运单需要配送时,可以根据该运单的配送任务生成当前运单,所述当前运单的信息至少包括地理位置信息,如配送起始位置和配送终点位置;还可以包括运单价格等信息。In the specific implementation process, when the system generates a new waybill to be delivered, the current waybill can be generated according to the delivery task of the waybill, and the information of the current waybill includes at least geographic location information, such as the delivery start position and the delivery end position; It can also include information such as the price of the waybill.
本申请实施例中,根据当前运单的信息、系统中各个骑手的相关信息, 确定当前运单由不同骑手配送所需的时间,最后,进一步根据配送任务的目标确定所述当前运单适合由哪个或哪些骑手配送,以及,确定由相应骑手配送时的预计送达时间。In the embodiment of this application, the time required for the current waybill to be delivered by different riders is determined according to the information of the current waybill and the relevant information of each rider in the system. Finally, the current waybill is further determined according to the target of the delivery task to which or which the current waybill is suitable for Rider delivery, and determine the estimated delivery time when delivered by the corresponding rider.
具体实施时,首先基于当前运单的信息获取当前运单的运单特征,所述运单特征包括:运单价格、送达距离、地理位置中的任意一项或多项。通常,运单信息具有固定格式,通过按照所述固定格式对当前运单的运单信息进行解析,即可获得当前运单的运单特征。During specific implementation, firstly, the current waybill characteristics are acquired based on the current waybill information, and the waybill characteristics include any one or more of the waybill price, delivery distance, and geographic location. Generally, the waybill information has a fixed format, and by analyzing the waybill information of the current waybill according to the fixed format, the characteristics of the current waybill can be obtained.
本申请实施例中,配送者的相关信息至少包括配送者自身的信息,本申请实施例中,配送者自身的信息通过配送者特征表达。本申请实施例中所述的配送者特征包括:配送者等级、配送者配送能力、配送者配送类型中的任意一项或多项。In the embodiment of the present application, the relevant information of the dispatcher includes at least the information of the dispatcher himself. In the embodiment of the present application, the information of the dispatcher himself is expressed through the characteristics of the dispatcher. The characteristics of the dispatcher described in the embodiments of the present application include any one or more of dispatcher level, dispatcher's dispatching ability, and dispatcher's dispatch type.
以配送者为骑手举例,骑手特征包括:骑手等级、骑手配送能力、骑手配送类型中的任意一项或多项。其中,骑手等级、骑手配送能力、骑手配送类型等特征是系统根据骑手的配送历史数据、用户评论、骑手注册信息等数据,通过分析计算后确定的,可以通过系统接口获得。通过分析计算确定骑手等级、骑手配送能力、骑手配送类型等特征的技术手段参见现有技术,本申请实施例中不再赘述。其中,骑手配送类型指骑手属于城市代理、美团自营、众包配送等类型。Taking the delivery person as an example of the rider, the characteristics of the rider include any one or more of the rider level, the rider's delivery ability, and the rider's delivery type. Among them, the characteristics of rider level, rider delivery ability, rider delivery type, etc. are determined by the system through analysis and calculation based on rider's historical delivery data, user comments, rider registration information and other data, and can be obtained through the system interface. The technical means for determining the characteristics of the rider level, the rider's delivery ability, the rider's delivery type and the like through analysis and calculation refer to the prior art, and will not be repeated in the embodiments of this application. Among them, the type of rider delivery refers to the type of rider who belongs to urban agency, Meituan self-operated, and crowdsourced delivery.
本申请的另一些实施例中,通常当某一配送者背负着一个或多个运单的时候,所述配送者的相关信息还包括该配送者所背负的运单的信息。本申请实施例中,配送者所背负的运单的信息通过配送者的背负运单特征表达。本申请的一些实施例中,所述配送者的背负运单特征包括:所述配送者背负的所述当前运单之外的运单的运单特征;或者,所述配送者的背负运单特征包括:所述配送者背负的所有运单的运单特征。仍以配送者为骑手举例,骑手的背负运单特征可以包括:所述骑手背负的所述当前运单之外的部分运单或全部运单的运单特征。其中,所述骑手背负的每个运单的运单特征参见前述获取当前运单的运单特征的具体方法,此处不再赘述。In other embodiments of the present application, usually when a certain shipper is carrying one or more waybills, the relevant information of the shipper also includes the information of the waybill carried by the shipper. In the embodiment of the present application, the information of the air waybill carried by the dispatcher is expressed by the characteristic of the air waybill carried by the dispatcher. In some embodiments of the present application, the characteristics of the air waybill carried by the shipper include: the air waybill characteristics of the air waybill other than the current waybill carried by the shipper; or, the characteristics of the air waybill carried by the shipper include: the The characteristics of all waybills carried by the shipper. Still taking the delivery person as the rider as an example, the characteristics of the waybill carried by the rider may include the characteristics of part of the waybill or all the waybills other than the current waybill carried by the rider. For the air waybill characteristics of each waybill carried by the rider, please refer to the aforementioned specific method of obtaining the air waybill characteristics of the current waybill, which will not be repeated here.
例如,对于一个从地点A配送至地点B的外卖运单,其运单特征可以表示为F 1{(lng1,lat1),(lng2,lat2),value,Distance},其中,(lng1,lat1) 表示取餐位置坐标,(lng2,lat2)表示送餐位置坐标,value表示运单价格,Distance表示配送距离。如果系统中有N个在线骑手,可以分别获取每个骑手的骑手特征,则骑手n的骑手特征可以表示为F 2{Level n,ability n,type n},其中,Level n表示骑手n的等级,ability n表示骑手n的配送能力,type n表示骑手n的配送类型,N和n为大于1的自然数,n≤N。进一步的,如果某一骑手n背负两个运单,分别表示为order1和order2,其中,运单order1的运单特征表示为:order1_F1 For example, for a takeaway waybill delivered from location A to location B, its characteristics can be expressed as F 1 {(lng1,lat1),(lng2,lat2),value,Distance}, where (lng1,lat1) means take Meal location coordinates, (lng2, lat2) represents the delivery location coordinates, value represents the price of the waybill, and Distance represents the delivery distance. If there are N online riders in the system, the rider characteristics of each rider can be obtained separately, then the rider characteristics of rider n can be expressed as F 2 {Level n ,ability n ,type n }, where Level n represents the level of rider n ,Ability n represents the delivery capability of rider n, type n represents the delivery type of rider n, N and n are natural numbers greater than 1, and n≤N. Furthermore, if a rider n is carrying two waybills, they are represented as order1 and order2 respectively. Among them, the waybill feature of the waybill order1 is represented as: order1_F1
{(lng1 order1,lat1 order1),(lng2 order1,lat2 order1),value order1,Distance order1}, {(lng1 order1 ,lat1 order1 ), (lng2 order1 ,lat2 order1 ),value order1 ,Distance order1 },
运单order2的运单特征表示为:order2_F1The waybill feature of order2 is expressed as: order2_F1
{(lng1 order2,lat1 order2),(lng2 order2,lat2 order2),value order2,Distance order2},则骑手n的背负运单特征可以表示为F3{order1_F1,order1_F2}。本申请实施例中上述特征是经过编码后得到的向量表示。 {(lng1 order2 ,lat1 order2 ),(lng2 order2 ,lat2 order2 ),value order2 ,Distance order2 }, then the characteristics of rider n's baggage waybill can be expressed as F3{order1_F1,order1_F2}. The above-mentioned feature in the embodiment of the application is a vector representation obtained after encoding.
按照此方法,对于每个骑手可以得到一组由当前运单的运单特征、该骑手的骑手特征、以及该骑手的背负运单特征拼接而成的特征向量,例如骑手n的拼接后的特征可以表示为F n{F n1,F n2,F n3}。 According to this method, for each rider, a set of feature vectors made up of the current waybill characteristics, the rider characteristics of the rider, and the rider's carrying waybill characteristics can be obtained for each rider. For example, the spliced characteristics of rider n can be expressed as F n {F n1 ,F n2 ,F n3 }.
步骤120,基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数。 Step 120, based on the characteristics of the waybill, the characteristics of the shipper, and the characteristics of the baggage waybill, through a pre-trained delivery time estimation model, it is estimated that each of the distributors will respond to the current waybill at each preset delivery time. Probability of on-time delivery and capacity factor.
其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标。Wherein, the capacity coefficient represents the ability index of the shipper to be able to carry at least one other waybill when delivering the current waybill.
本申请实施例中,通过预先训练的送达时间预估模型,预估各配送者对所述当前运单配送时,对应各送达时间的准时送达概率和运力容量系数。其中,所述准时送达概率用于指示在指定的一系列送达时间内准时送达的概率。所述指定的一系列送达时间可以根据具体业务需求确定,也可以根据历史运单数据中送达路程和送达时间数据确定。例如,根据历史运单数据,最长的配送时间为120分钟,最短的配送时间为0分钟,则所述指定的一系列送达时间可以为0分钟、1分钟、2分钟、……120分钟,或者,所述指定的一系列送达时间可以为0分钟、5分钟、10分钟、……120分钟等一系列送达时间点。本申请实施例中所述的送达时间指骑手从运单的起始位置到终止 位置所需的时长,例如,从外卖骑手取餐到送达所需的时长。In the embodiment of the present application, the pre-trained delivery time estimation model is used to estimate the on-time delivery probability and the capacity coefficient corresponding to each delivery time when each distributor delivers the current waybill. Wherein, the on-time delivery probability is used to indicate the probability of on-time delivery within a specified series of delivery times. The specified series of delivery times can be determined according to specific business requirements, or can be determined according to the delivery distance and delivery time data in the historical waybill data. For example, according to historical waybill data, the longest delivery time is 120 minutes, and the shortest delivery time is 0 minutes, then the specified series of delivery times can be 0 minutes, 1 minute, 2 minutes, ... 120 minutes, Alternatively, the specified series of delivery time may be a series of delivery time points such as 0 minutes, 5 minutes, 10 minutes, ... 120 minutes. The delivery time mentioned in the embodiments of the present application refers to the time required by the rider from the start position to the end position of the waybill, for example, the time required from the takeaway rider picking up the meal to the delivery.
本申请实施例中,所述基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数的步骤之前,还包括:根据历史运单数据确定每个运单对应的运单特征、送达所述运单的配送者的配送者特征、所述配送者的背负运单特征,作为相应运单对应的训练样本的样本数据;以及,根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签,所述样本标签包括与所述预设送达时间对应的准时送达概率标签和运力容量系数标签;基于所述训练样本训练送达时间预估模型,其中,所述送达时间预估模型为多分类模型。In the embodiment of the present application, based on the characteristics of the waybill, the shipper, and the characteristic of the baggage waybill, the pre-trained delivery time estimation model is used to estimate that each of the dispatchers will have the current waybill in each forecast. Before the step of setting the on-time delivery probability and the capacity coefficient of the delivery time, it also includes: determining the characteristics of each waybill corresponding to each waybill according to the historical waybill data, the characteristics of the dispatcher of the dispatcher who delivered the waybill, and the dispatcher The piggyback air waybill feature is used as the sample data of the training sample corresponding to the corresponding air waybill; and, the sample label of the training sample corresponding to each waybill is determined according to the pickup time of each waybill in the historical air waybill data, the sample label It includes the on-time delivery probability label and the capacity coefficient label corresponding to the preset delivery time; training a delivery time estimation model based on the training sample, wherein the delivery time estimation model is a multi-class model.
具体实施时,根据历史运单数据构建训练样本,以训练送达时间预估模型。例如,对于每一条历史外卖配送记录,确定该运单的取餐地点、送餐地点和运单价格信息,进行编码后得到与该条运单记录对应的运单特征向量;同时,确定该条外卖配送记录的配送骑手,并进一步获取该配送骑手的骑手等级、骑手配送能力以及骑手类型信息进行编码后得到与该运单记录对应的骑手特征向量。During specific implementation, training samples are constructed based on historical air waybill data to train the delivery time estimation model. For example, for each historical takeaway delivery record, determine the pickup location, delivery location, and waybill price information of the waybill, and encode the waybill feature vector corresponding to the waybill record; at the same time, determine the record of the takeaway delivery record The delivery rider is further obtained, and the rider grade, rider delivery ability, and rider type information of the delivery rider are obtained and encoded to obtain the rider feature vector corresponding to the waybill record.
本申请的另一些实施例中,还可以根据该条外卖配送记录进一步确定配送该运单的骑手同时背负的其他运单的运单信息,即该骑手配送该外卖运单时,同时配送的其他外卖运单的运单信息。通常,某一骑手会同时背负其他一个或多个运单,该骑手同时背负的运单往往在配送路线上有部分重合,可以共享某一段配送路程。骑手背负的每个运单的运单信息分别包括:取餐地点、送餐地点、运单价格信息。然后,对于每个运单的上述特征信息分别编码,并进行拼接,即可得到骑手的背负运单特征向量。In some other embodiments of the present application, it is also possible to further determine the waybill information of other waybills carried by the rider who delivered the waybill at the same time based on the takeaway delivery record, that is, the waybills of other takeaway waybills that were delivered at the same time when the rider delivered the waybill. information. Usually, a certain rider will carry one or more other waybills at the same time, and the waybills carried by the rider at the same time often overlap partly on the delivery route and can share a certain part of the delivery distance. The waybill information of each waybill carried by the rider includes: pick-up location, delivery location, and waybill price information. Then, the above-mentioned characteristic information of each waybill is separately coded and spliced to obtain the characteristic vector of the rider's carrying waybill.
接下来,将前述获得的、对应该条外卖配送记录的运单特征、骑手特征以及背负运单特征作为该条外卖记录生成的训练样本的样本数据。按照此方法,可以确定每条历史外卖配送记录生成的训练样本的样本数据。Next, take the aforementioned characteristics of the waybill, rider, and baggage waybill corresponding to the takeaway delivery record as sample data of the training sample generated by the takeaway record. According to this method, the sample data of the training samples generated by each historical takeaway delivery record can be determined.
然后,确定每条样本数据对应的样本标签。Then, determine the sample label corresponding to each sample data.
本申请实施例中训练的送达时间预估模型是个多分类模型,多分类模型的任务是对于一条类似样本数据的测试数据,预测该条测试数据对应多个类 别的分类结果。具体到送达时间预估模型,其目标是输入由运单特征、骑手特征(即配送者特征)、背负运单特征构成的数据之后,所述送达时间预估模型将输出对应的多个分类结果,即输出每个预设送达时间的准时送达概率和对应该准时送达概率的运力容量系数。The delivery time estimation model trained in the embodiment of the application is a multi-class model, and the task of the multi-class model is to predict the classification results of a piece of test data similar to sample data corresponding to multiple categories. Specific to the delivery time estimation model, the goal is to input data consisting of the air waybill characteristics, rider characteristics (ie, shipper characteristics), and carrying air waybill characteristics, and the delivery time estimation model will output multiple corresponding classification results , That is, output the on-time delivery probability of each preset delivery time and the capacity coefficient corresponding to the on-time delivery probability.
因此,需要进一步确定每条外卖配送记录对应每个预设送达时间的准时送达概率和对应该准时送达概率的运力容量系数,作为相应训练样本的样本标签。本申请的实施例中,所述样本标签由两部分组成,分别记为准时送达概率标签和运力容量系数标签。其中,准时送达概率标签用于指示该条训练样本在各预设送达时间的准时送达概率,运力容量系数标签用于指示该条训练样本对应的骑手在配送该训练样本对应的运单时背负其他运单的能力指标。Therefore, it is necessary to further determine the on-time delivery probability of each take-out delivery record corresponding to each preset delivery time and the capacity coefficient corresponding to the on-time delivery probability as the sample label of the corresponding training sample. In the embodiment of the present application, the sample label consists of two parts, which are respectively recorded as the on-time delivery probability label and the capacity coefficient label. Among them, the on-time delivery probability label is used to indicate the on-time delivery probability of the training sample at each preset delivery time, and the capacity coefficient label is used to indicate that the rider corresponding to the training sample is delivering the waybill corresponding to the training sample The ability to carry other air waybills.
本申请的一些实施例中,所述根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签的步骤,包括:对于每个运单,根据所述运单的送达时间,确定与所述运单对应的训练样本的准时送达概率标签的值,其中,所述准时送达概率标签用于指示所述运单在各预设送达时间的准时送达概率。具体到送达时间预估模型的训练样本中,准时送达概率标签用于指示各预设送达时间点对应的分类结果。In some embodiments of the present application, the step of determining the sample label of the training sample corresponding to each waybill according to the delivery time of each waybill in the historical waybill data includes: for each waybill, according to the The delivery time of the waybill determines the value of the on-time delivery probability label of the training sample corresponding to the waybill, wherein the on-time delivery probability label is used to indicate the on-time delivery of the waybill at each preset delivery time Probability. Specifically, in the training samples of the delivery time estimation model, the on-time delivery probability label is used to indicate the classification results corresponding to each preset delivery time point.
以送达时间从1分钟到120分钟举例,假设时间每变化一分钟,对应一个送达时间,即送达时间包括1分钟到120分钟之中的120个送达时间,其中,每个送达时间对应送达时间预估模型进行预测的一个类别,则样本标签为对应120个送达时间的准时送达概率分类结果。某个运单在各预设送达时间的送达状态可以作为该运单对应的训练样本的准时送达概率标签。即如果在某一时间点,该运单已经送达,则该时间点对应类别的分类结果为1;而对应其他送达时间的分类结果为0。Take the delivery time from 1 minute to 120 minutes as an example. Assuming that every minute the time changes, there is a delivery time, that is, the delivery time includes 120 delivery times from 1 minute to 120 minutes, and each of them is delivered When the time corresponds to a category predicted by the delivery time estimation model, the sample label is the classification result of on-time delivery probability corresponding to 120 delivery times. The delivery status of a certain waybill at each preset delivery time can be used as the on-time delivery probability label of the training sample corresponding to the waybill. That is, if at a certain point in time, the waybill has been delivered, the classification result of the corresponding category at that time point is 1; and the classification result corresponding to other delivery times is 0.
例如,某一历史运单的送达时间为45分钟,即该历史运单在45分钟的送达时间已经送达,即准时送达概率为100%,则该历史运单对应的训练样本的准时送达概率标签对应第45个类别的分类结果可以设置为1,其他分类结果则可以设置为0。即对于该运单,对应45分钟这一预设送达时间的准时送达概率标签是可以设置为1,而对应非45分钟的各预设送达时间的准时送达 概率标签是可以设置为0。For example, if the delivery time of a historical waybill is 45 minutes, that is, the historical waybill has been delivered within 45 minutes of delivery time, that is, the probability of on-time delivery is 100%, then the training sample corresponding to the historical waybill will be delivered on time The classification result of the probability label corresponding to the 45th category can be set to 1, and the other classification results can be set to 0. That is, for this waybill, the on-time delivery probability tag corresponding to the preset delivery time of 45 minutes can be set to 1, and the on-time delivery probability tag corresponding to the preset delivery time of non-45 minutes can be set to 0 .
本申请的实施例中,还需要根据每条历史运单数据确定该条历史运单数据在各个预设送达时间对应的运力容量系数。In the embodiment of the present application, it is also necessary to determine the capacity coefficient corresponding to each piece of historical waybill data at each preset delivery time according to each piece of historical waybill data.
本申请的一些实施例中,所述根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签的步骤,还包括:根据每个运单的送达路程中所述运单的配送者所背负的所有运单的取送路程,对所述运单的送达路程分段,每段送达路程对应一个分段时长;根据每段送达路程对应的所述分段时长与共享相应段送达路程的运单数量,确定共享该段送达路程的单个运单的送达时长;对于共享该段送达路程的每个运单,根据所述运单的送达路程中各段送达路程对应的所述单个运单的送达时间之和与所述运单的送达路程中各段送达路程的分段时长之和,确定所述运单对应的运力容量系数;将所述运单对应的运力容量系数,作为所述运单对应的训练样本的运力容量系数标签。In some embodiments of the application, the step of determining the sample label of the training sample corresponding to each waybill according to the delivery time of each waybill in the historical waybill data further includes: according to the delivery time of each waybill The delivery distance of all the waybills carried by the shipper of the waybill mentioned in the route, the delivery distance of the said waybill is divided, and each segment of the delivery distance corresponds to a segment time; according to the corresponding description of each delivery distance The segment time and the number of waybills sharing the corresponding segment's delivery route determine the delivery time of a single waybill sharing the segment's delivery route; for each waybill sharing this segment's delivery route, according to the delivery route of the waybill The sum of the delivery time of the single air waybill corresponding to each segment of the delivery route and the sum of the segment time lengths of each segment of the delivery route of the air waybill are used to determine the capacity coefficient corresponding to the air waybill; The capacity coefficient corresponding to the waybill is used as the capacity coefficient label of the training sample corresponding to the waybill.
仍以送达时间从1分钟到120分钟举例,假设时间每变化一分钟,对应一个送达时间,即送达时间包括1分钟到120分钟之中的120个时间点,则每个送达时间对应一个运力容量系数,每条运单数据将对应120个运力容量系数,与每个送达时间对应的运力容量系数构成了一条训练样本的运力容量系数标签。Still taking the delivery time from 1 minute to 120 minutes as an example, assuming that every minute the time changes, there is a delivery time, that is, the delivery time includes 120 time points from 1 minute to 120 minutes, then each delivery time Corresponding to a capacity coefficient, each waybill data will correspond to 120 capacity capacity coefficients, and the capacity capacity coefficient corresponding to each delivery time constitutes the capacity capacity coefficient label of a training sample.
下面结合骑手A的一条具体历史运单数据,举例说明根据历史运单数据确定运力容量系数标签的技术方案。The following combines a piece of specific historical waybill data of rider A to illustrate the technical solution of determining the capacity coefficient label based on historical waybill data.
骑手A的一条具体历史运单数据如下:9点19分00秒取运单1;380秒后(即9点25分20秒)取运单2;再过900秒后(即9点40分20秒)送运单1;再过250秒后(即9点44分30秒)取运单3;再过130秒后(即9点46分40秒)送运单2,同时取运单4;再过770秒后(即9点59分30秒)送运单3;再过890秒后(即10点14分20秒)送运单4。由这条历史运单数据可以得出,骑手A同时背负了4个运单,具体实施时,可以根据每一次取、送运单的时间将该条历史运单数据的送达路程划分为多段送达路程,前述历史运单数据进行划分后将得到6段送达路程,每段送达路程对应的分段时长分别为:380秒、900秒、250秒、130秒、770秒和890秒。A specific historical air waybill data of rider A is as follows: take waybill 1 at 9:19:00; take waybill 2 after 380 seconds (ie 9:25:20); after another 900 seconds (ie 9:40:20) Send waybill 1; after another 250 seconds (ie 9:44:30), take waybill 3; after another 130 seconds (ie, 9:46:40), send waybill 2, and take waybill 4 at the same time; after another 770 seconds (Ie 9:59:30) send waybill 3; after 890 seconds (ie 10:14:20) send waybill 4. From this historical waybill data, it can be concluded that rider A is carrying 4 waybills at the same time. In the specific implementation, the delivery route of this historical waybill data can be divided into multiple delivery routes according to the time of each collection and delivery of the waybill. After the aforementioned historical air waybill data is divided, there will be 6 delivery routes, and the segment durations corresponding to each delivery route are: 380 seconds, 900 seconds, 250 seconds, 130 seconds, 770 seconds and 890 seconds.
每个运单的送达路程可能包括其中1段或连续多段送达路程。例如,运单1的送达路程包括其中第一段(380秒)和第二段(900秒)送达路程。进一步的,根据每个运单的送达路程包括的各段送达路程对应的分段时长和共享该段送达路程的运单数量,确定共享该段送达路程的单个运单的送达时间。例如,确定每段送达路程对应的所述分段时长与共享相应段送达路程的运单数量的商,作为共享该段送达路程的单个运单的送达时长。以运单1的送达路程举例,第一段送达路程中,骑手A只背负了运单1,则第一段送达路程对应的运单1的送达时间为380秒;第二段送达路程中,骑手A背负了运单1和运单2,则第二段送达路程对应的运单1和运单2的送达时间分别为900秒/2=450秒。按照此方法,可以确定对于每个运单的配送路程中包括的各段送达路程对应的单个运单的送达时间。The delivery route of each waybill may include one segment or multiple consecutive segments. For example, the delivery distance of the waybill 1 includes the first segment (380 seconds) and the second segment (900 seconds) of the delivery distance. Further, the delivery time of a single air waybill sharing the delivery distance is determined according to the segment time corresponding to each segment of the delivery distance included in the delivery distance of each waybill and the number of airway bills sharing the delivery distance. For example, the quotient of the segment duration corresponding to each segment of the delivery route and the number of waybills sharing the corresponding segment's delivery route is determined as the delivery duration of a single airway bill sharing the segment's delivery route. Take the delivery route of waybill 1 as an example. In the first segment of the delivery route, rider A only carries the waybill 1, and the delivery time of the waybill 1 corresponding to the first segment of delivery route is 380 seconds; the second segment of delivery route In, rider A is carrying waybill 1 and waybill 2, and the delivery time of waybill 1 and waybill 2 corresponding to the second segment of the delivery route are 900 seconds/2=450 seconds, respectively. According to this method, it is possible to determine the delivery time of a single air waybill corresponding to each section of the delivery distance included in the delivery distance of each waybill.
接下来,对于某个运单,可以将该运单的送达路程中各段送达路程对应的单个运单的送达时间之和,与共享相应段送达路程的各分段路程对应的分段时长之和的比值,作为该运单对应的运力容量系数。仍以运单1举例,将运单1包括的第一段送达路程对应的单个运单的送达时间为380秒与运单1包括的第二段送达路程对应的单个运单的送达时间为450秒求和得到的时间为830秒,而第一段和第二段送达路程的分段时长之和为380秒+900秒=1280秒,则运单1的运力容量系数为830/1280=0.64843750。即可以确定对于运单1对应的送达路程(即前1280秒对应的送达路程,也是前380秒对应的送达路程和第381秒至第1280秒对应的送达路程)对应的运力容量系数为0.64843750。按照此方法,可以确定对于每个运单对应的送达路程的运力容量系数。Next, for a certain waybill, the sum of the delivery time of a single waybill corresponding to each segment of the delivery route of the waybill can be shared with the segment time corresponding to each segment of the corresponding segment of the delivery route The ratio of the sum is used as the capacity coefficient corresponding to the waybill. Still taking the waybill 1 as an example, the delivery time of a single waybill corresponding to the first segment of the delivery route included in the waybill 1 is 380 seconds and the delivery time of a single waybill corresponding to the second segment of the delivery route included in the waybill 1 is 450 seconds The time obtained by the summation is 830 seconds, and the sum of the segment durations of the first segment and the second segment of the journey is 380 seconds + 900 seconds = 1280 seconds, and the capacity coefficient of the waybill 1 is 830/1280 = 0.64843750. You can determine the capacity coefficient corresponding to the delivery distance corresponding to the waybill 1 (that is, the delivery distance corresponding to the first 1280 seconds, the delivery distance corresponding to the first 380 seconds and the delivery distance corresponding to the 381th to the 1280th second) Is 0.64843750. According to this method, the capacity coefficient of the delivery route corresponding to each waybill can be determined.
最后,对于每个运单,将该运单对应的运力容量系数,作为所述运单对应的训练样本的运力容量系数标签。例如,对于前述送达路程中,运单1的运力容量系数均为0.64843750。按照前述方法,根据历史运单数据是实际已经发生的数据,因此可以准确得到某个运单对应送达路程的各个送达时间运力容量系数。本申请具体实施时,为了提升模型的训练效率,计算历史运单在最终送达时间点对应的运力容量系数,其他预设送达时间点的运力容量系数通过模型泛化确定。Finally, for each waybill, the capacity coefficient corresponding to the waybill is used as the capacity capacity coefficient label of the training sample corresponding to the waybill. For example, for the aforementioned delivery route, the capacity coefficient of the waybill 1 is both 0.64843750. According to the foregoing method, the historical air waybill data is the data that has actually occurred, so the capacity coefficient of each delivery time of a certain waybill corresponding to the delivery route can be accurately obtained. In the implementation of this application, in order to improve the training efficiency of the model, the capacity coefficient corresponding to the final delivery time of the historical waybill is calculated, and the capacity coefficients of other preset delivery time points are determined by generalization of the model.
在根据历史运单数据确定若干训练样本之后,进一步根据训练样本训练送达时间预估模型。After determining a number of training samples based on historical waybill data, the delivery time estimation model is further trained based on the training samples.
本申请实施例中所述的送达时间预估模型采用多目标网络结构,例如,采用如图2所示的两个目标的分类神经网络,其中一个目标为输出预设送达时间的分类结果,另一个目标为输出各预设送达时间对应的运力容量系数。对应分类神经网络的不同输出目标,两个网络分支的损失函数,及准时送达概率损失函数210和运力容量系数损失函数220是不同的。The delivery time estimation model described in the embodiment of the application adopts a multi-target network structure, for example, a classification neural network with two targets as shown in FIG. 2 is adopted, and one of the targets is to output the classification result of the preset delivery time , Another goal is to output the capacity coefficient corresponding to each preset delivery time. Corresponding to different output targets of the classification neural network, the loss functions of the two network branches, the on-time delivery probability loss function 210 and the capacity coefficient loss function 220 are different.
如图2所示,所述送达时间预估模型还包括:特征融合层230,所述特征融合层230用于将运单特征向量化模块240输出的第一特征向量和配送者特征向量化模块250输出的第二特征向量进行融合,得到第一预设长度的融合特征向量,然后,将所述融合特征向量分别输入至损失函数210和220,以得到不同的分类结果。As shown in FIG. 2, the delivery time estimation model further includes: a feature fusion layer 230, which is used to combine the first feature vector output by the waybill feature vectorization module 240 and the shipper feature vectorization module The second feature vector output by 250 is fused to obtain a fusion feature vector of the first preset length, and then the fusion feature vector is input to the loss functions 210 and 220, respectively, to obtain different classification results.
其中,所述运单特征向量化模块240进一步用于将输入至所述送达时间预估模型的运单价格、送达距离、地理位置中的任意一项或多项特征的向量融合为第二预设长度的第一特征向量。所述配送者特征向量化模块250用于将配送当前运单的配送者的配送者特征和所述配送者的背负运单特征进行融合,得到第三预设长度的第二特征向量。Wherein, the air waybill feature vectorization module 240 is further configured to integrate any one or more of the air waybill price, delivery distance, and geographic location input into the delivery time estimation model into a second forecast. Let the length of the first feature vector. The shipper feature vectorization module 250 is used to fuse the shipper feature of the shipper who delivers the current waybill with the shipper's piggy-backed waybill feature to obtain a second feature vector with a third preset length.
如图2所示,所述配送者特征向量化模块250进一步包括:配送者特征融合子模块2501、配送者特征向量化子模块2502和预设数量的背负运单特征向量化子模块2503。其中,所述配送者特征向量化子模块2502用于将配送者等级、配送者配送能力、配送者配送类型中的任意一项或多项特征的向量融合为第四预设长度的配送者特征向量;每个所述背负运单特征向量化子模块2503用于将所述配送者背负的某个运单的运单特征的向量融合为第二预设长度的第一特征向量;所述配送者特征融合子模块2501用于将所述第四预设长度的配送者特征向量和预设数量的所述背负运单特征向量化子模块2503输出的第一特征向量融合为第三预设长度的第二特征向量。As shown in FIG. 2, the shipper feature vectorization module 250 further includes: a shipper feature fusion sub-module 2501, a shipper feature vectorization sub-module 2502, and a preset number of piggy-back waybill feature vectorization sub-modules 2503. Wherein, the dispatcher feature vectorization sub-module 2502 is used to fuse any one or more of the characteristic vectors of the dispatcher level, the dispatcher's dispatching ability, and the dispatcher's dispatch type into a dispatcher characteristic of the fourth preset length Vector; each of the piggybacked waybill feature vectorization sub-module 2503 is used to fuse the vector of the waybill feature of a certain waybill carried by the shipper into a first feature vector of a second preset length; the shipper feature fusion The sub-module 2501 is used for fusing the fourth preset length of the shipper feature vector and a preset number of the first feature vector output by the baggage waybill feature vectorization sub-module 2503 into a third preset length of the second feature vector.
在所述送达时间预估模型的训练过程中,通过反向传播等方法不断调整损失函数以及各特征融合模块、特征融合子模块的参数,以得到最优模型参数,完成模型训练。所述送达时间预估模型的具体训练过程参照现有技术, 本申请实施例中对模型的具体训练过程不做限定。In the training process of the delivery time estimation model, the loss function and the parameters of each feature fusion module and feature fusion sub-module are continuously adjusted through methods such as back propagation to obtain the optimal model parameters and complete the model training. The specific training process of the delivery time estimation model refers to the prior art, and the specific training process of the model is not limited in the embodiment of this application.
在本申请的另一些实施例中,所述送达时间预估模型的结构还可以为其他形式,例如,删除配送者特征融合子模块2501,通过调整配送者特征向量化模块250的参数,由所述配送者特征向量化模块250将所述第四预设长度的配送者特征向量和预设数量的所述背负运单特征向量化子模块2503输出的第一特征向量融合为第三预设长度的第二特征向量。In other embodiments of the present application, the structure of the delivery time estimation model can also be in other forms, for example, the delivery feature fusion submodule 2501 is deleted, and the parameters of the delivery feature vectorization module 250 are adjusted by The shipper feature vectorization module 250 merges the shipper feature vector of the fourth preset length and the preset number of the first feature vector output by the baggage waybill feature vectorization submodule 2503 into a third preset length The second feature vector.
当然,在本申请的其他实施例中,还可以采用具体网络结构对运单特征、配送者特征,以及配送者的背负运单特征进行融合,同样可以解决本申请所要解决的技术问题,并取得相同的技术效果,本申请实施例中不再一一例举。Of course, in other embodiments of the present application, a specific network structure can also be used to integrate the features of the waybill, the shipper, and the shipper’s baggage waybill, which can also solve the technical problem to be solved by this application and achieve the same The technical effects are not listed one by one in the embodiments of this application.
以配送者为骑手举例,在所述送达时间预估模型训练完成之后,在预估当前运单的准时送达概率时,将当前运单的运单特征、骑手A的骑手特征、和骑手A的背负运单特征输入至所述送达时间预估模型,所述送达时间预估模型将输出骑手A配送所述当前运单时在各个预设送达时间的准时送达概率,以及,骑手A配送所述当前运单时在各个预设送达时间的运力容量系数。同理,可以预估得到每个骑手配送当前运单时在各个预设送达时间的准时送达概率和运力容量系数。Taking the delivery person as the rider for example, after the delivery time estimation model training is completed, when estimating the on-time delivery probability of the current waybill, the characteristics of the current waybill, the characteristics of rider A, and the burden of rider A The air waybill features are input to the delivery time estimation model, and the delivery time estimation model will output the on-time delivery probability of rider A at each preset delivery time when the current waybill is delivered by rider A, and rider A's delivery office State the capacity coefficient of the current air waybill at each preset delivery time. In the same way, it is possible to estimate the on-time delivery probability and capacity coefficient of each rider at each preset delivery time when delivering the current waybill.
本申请具体实施时,为了与实际运单配送状况匹配,精细化配送时间调整,通过对所述送达时间预估模型输出的预设各送达时间对应的准时送达概率进行处理,得到各预设送达时间之前的一段时间的准时送达概率。During the implementation of this application, in order to match the actual delivery status of the air waybill and refine the adjustment of the delivery time, by processing the on-time delivery probability corresponding to the preset delivery time output by the delivery time estimation model, each forecast is obtained. Set the probability of on-time delivery for a period of time before the delivery time.
至此,已经确定了由不同骑手配送当前运单时,在不同送达时间内的准时送达概率和运力容量系数。其中,预估得到的骑手、预设送达时间和准时送达概率的对应关系表格如图3所示。图3中,左侧第一列表示各预设送达时间;自左侧第二列起,每一列的数据标识相应骑手在送达该当前运单时对应不同送达时间段内的准时送达概率;从自上向下的第二行起,每一行的数据表示在左侧的送达时间段内不同骑手的准时送达概率。例如,图3中最左下角的数值99%代表在90分钟内,骑手A准时送达当前运单的概率为99%;骑手A的在各个时间段准时送达当前运单的概率为最左边的一列。So far, the on-time delivery probability and capacity coefficient of the current waybills within different delivery times have been determined when different riders deliver the current waybill. Among them, the corresponding table of the estimated rider, the preset delivery time and the on-time delivery probability is shown in Figure 3. In Figure 3, the first column on the left represents each preset delivery time; starting from the second column on the left, the data in each column identifies the punctual delivery within different delivery time periods when the corresponding rider delivers the current waybill Probability; starting from the second row from top to bottom, the data in each row represents the on-time delivery probability of different riders in the delivery time period on the left. For example, the value 99% in the bottom left corner of Figure 3 means that within 90 minutes, the probability that rider A will deliver the current waybill on time is 99%; the probability that rider A will deliver the current waybill on time in each time period is the leftmost column .
步骤130,根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间。Step 130: Determine the expected delivery time of the current waybill according to the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity coefficient.
本申请的一些实施例中,所述根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间,包括:确定需求和运力的比值;若所述比值满足预设比值条件,则根据所述准时送达概率确定所述当前运单的预计送达时间;若所述比值不满足预设比值条件,则根据所述运力容量系数确定所述当前运单的预计送达时间。In some embodiments of the present application, the determination of the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity capacity coefficient includes : Determine the ratio of demand to capacity; if the ratio meets the preset ratio condition, determine the estimated delivery time of the current waybill according to the on-time delivery probability; if the ratio does not meet the preset ratio condition, then The capacity coefficient determines the estimated delivery time of the current waybill.
预计送达时间的作用在于调节用户体验和配送效率的平衡,在运力充足情况下,减少预计送达时间,可以提高用户体验。在运力紧张情况下,延长预计送达时间,可以提升整个系统的运力。本申请具体实施时,首先定义需求和运力,从而得到需求和运力的关系数据,继而指导系统选择合适的预计送达时间进行输出,有效平衡了用户体验的配送效率,并且,使得输出的预计送达时间的可解释性更强。The role of the estimated delivery time is to adjust the balance between user experience and delivery efficiency. With sufficient capacity, reducing the expected delivery time can improve user experience. When the capacity is tight, extending the estimated delivery time can increase the capacity of the entire system. In the implementation of this application, firstly, the demand and capacity are defined to obtain the relationship data between demand and capacity, and then the system is guided to select the appropriate estimated delivery time for output, which effectively balances the delivery efficiency of the user experience and makes the output expected delivery Explainable time is stronger.
本申请的一些实施例中,可以获取配送系统的运力和需求数据,然后基于获取的运力和需求数据进行预估时间调整。例如系统定义需求为:指定地理范围内运单数量之和,定义运力为:所述指定地理范围内满足条件的配送者数目(如骑手数目)。由于需求和运力量纲及量级不同,因此需要进行归一化,将需求和运力变为无量纲数字。本申请的一些实施例中,可以通过现有技术中的归一化方法(如最大最小值方法)分别对需求和运力进行归一化,然后计算需求和运力的比值。进一步的,可以根据需求和运力的比值选择合适的预计送达时间。In some embodiments of the present application, the capacity and demand data of the distribution system can be obtained, and then the estimated time adjustment is made based on the obtained capacity and demand data. For example, the system defines a requirement as: the sum of the number of waybills within a specified geographic area, and defines a capacity as: the number of deliverers (such as the number of riders) that meet the conditions within the specified geographic area. Since demand and transportation capacity are different in size and magnitude, it is necessary to normalize the demand and transportation capacity into dimensionless numbers. In some embodiments of the present application, a normalization method in the prior art (such as a maximum-minimum method) may be used to normalize the demand and the capacity, and then calculate the ratio of the demand and the capacity. Furthermore, an appropriate estimated delivery time can be selected according to the ratio of demand and capacity.
前述步骤中,已经确定了每个骑手取送当前运单时,在各个预设送达时间的准时送达概率和对应各个预设送达时间的运力容量系数,接下来根据获取的运力和需求数据选择一个更加合适的预计送达时间进行输出。In the foregoing steps, it has been determined that when each rider takes the current waybill, the on-time delivery probability at each preset delivery time and the capacity coefficient corresponding to each preset delivery time have been determined, and then based on the obtained capacity and demand data Choose a more appropriate estimated delivery time for output.
本申请的一些实施例中,所述若所述比值满足预设比值条件,则根据所述准时送达概率确定所述当前运单的预计送达时间,进一步包括:若所述比值满足预设比值条件,则确定满足预设概率条件的所述准时送达概率对应的最短送达时间,作为所述当前运单的预计送达时间。所述若所述比值不满足预设比值条件,则根据所述运力容量系数确定所述当前运单的预计送达时间,进一步包括:若所述比值不满足预设比值条件,则确定最接近所述比值 的运力容量系数对应的送达时间,作为所述当前运单的预计送达时间。In some embodiments of the present application, if the ratio satisfies a preset ratio condition, determining the estimated delivery time of the current waybill according to the on-time delivery probability further includes: if the ratio satisfies the preset ratio Condition, the shortest delivery time corresponding to the on-time delivery probability meeting the preset probability condition is determined as the estimated delivery time of the current waybill. If the ratio does not meet the preset ratio condition, determining the estimated delivery time of the current waybill according to the capacity coefficient, further comprising: if the ratio does not meet the preset ratio condition, determining the closest to all The delivery time corresponding to the capacity coefficient of the ratio is used as the estimated delivery time of the current waybill.
以满足预设比值条件为需求和运力的比值小于或等于预设系数阈值,预设概率条件为准时送达概率大于95%举例说明基于需求和运力的关系调整输出的预估时间的具体技术方案。其中,预设系数阈值可以根据线下运行的经验确定,例如设置为80%。当计算得到的需求和运力的比值满足预设比值条件(如小于85%),说明当前运力富余,可选择骑手较多,则将准时送达概率大于95%时所需的最短送达时间,作为所述当前运单的预计送达时间,同时输出所述最短送达时间对应的骑手信息。本申请的另一些实施例中,还可以在满足预设概率条件的所述准时送达概率对应的骑手中,选择距离最近的骑手对应的送达时间作为所述当前运单的预计送达时间,同时输出所述距离最近的骑手的骑手信息。To meet the preset ratio condition, the ratio of demand to capacity is less than or equal to the preset coefficient threshold, and the preset probability condition is that the on-time delivery probability is greater than 95%. Illustrate specific technical solutions for adjusting the estimated time of output based on the relationship between demand and capacity . Among them, the preset coefficient threshold can be determined according to offline operation experience, for example, set to 80%. When the calculated demand and capacity ratio meets the preset ratio condition (such as less than 85%), it means that the current capacity is surplus and there are more riders to choose from. The shortest delivery time required when the probability of on-time delivery is greater than 95% will be indicated. As the estimated delivery time of the current waybill, the rider information corresponding to the shortest delivery time is also output. In other embodiments of the present application, it is also possible to select the delivery time corresponding to the nearest rider as the estimated delivery time of the current waybill in the rider corresponding to the on-time delivery probability meeting the preset probability condition, At the same time, the rider information of the rider with the closest distance is output.
在运力充足时,在满足用户体验的前提下,可以动态调整送达时间和分配骑手,可以进一步提升系统的配送效率。When the capacity is sufficient, under the premise of satisfying the user experience, the delivery time and the allocation of riders can be dynamically adjusted, which can further improve the delivery efficiency of the system.
当计算得到的需求和运力的比值不满足预设比值条件(如大于85%),说明当前运力不足,例如,所有骑手都在满负荷配送中,则选择最接近上述比值的运力容量系数对应的送达时间,作为所述当前运单的预计送达时间,同时输出最接近上述比值的运力容量系数对应的骑手信息。在本申请的另一些实施例中,当计算得到的需求和运力的比值不满足预设比值条件时,还可以选择大于上述比值的运力容量系数中的最小值对应的送达时间,作为所述当前运单的预计送达时间,同时输出大于上述比值的最小运力容量系数对应的骑手信息。When the calculated demand and capacity ratio does not meet the preset ratio condition (such as greater than 85%), it indicates that the current capacity is insufficient. For example, if all the riders are in full-load delivery, then the capacity coefficient corresponding to the closest ratio is selected. The delivery time is used as the estimated delivery time of the current waybill, and the rider information corresponding to the capacity coefficient closest to the above ratio is output. In other embodiments of the present application, when the calculated ratio between demand and capacity does not meet the preset ratio condition, the delivery time corresponding to the minimum value of the capacity coefficient greater than the above ratio can also be selected as the The estimated delivery time of the current waybill, and output the rider information corresponding to the minimum capacity coefficient greater than the above ratio.
运力容量系数反映了骑手的某一时间的背负运单能力,而运力和需求的比值反映了配送系统的配送需求,在运力不足时,选择运力容量系数与运力和需求的比值匹配的骑手进行订单配送,遵循骑手与配送系统配送压力一致性的规律,使得配送系统能够稳定运转,同时,最大限度满足用户体验。The capacity coefficient reflects the rider’s ability to carry the air waybill at a certain time, and the ratio of capacity to demand reflects the distribution demand of the distribution system. When capacity is insufficient, the rider whose capacity coefficient matches the ratio of capacity and demand is selected for order distribution , Follow the law of consistency of the distribution pressure between the rider and the distribution system, so that the distribution system can operate stably, and at the same time, maximize the user experience.
本申请实施例公开的确定预计送达时间的方法,通过获取当前运单的运单特征、各骑手的骑手特征、所述骑手的背负运单特征;然后,基于所述运单特征、骑手特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述骑手对所述当前运单在各预设送达时间的准时送达概率和运 力容量系数;其中,所述运力容量系数表示所述骑手配送所述当前运单时能够背负至少一个其他运单的能力指标;最后,根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间,由于结合了具体业务目标对预估时间进行动态调整,输出的预估时间能够平衡用户体验和配送效率。现有技术中在确定预计送达时间时,至少存在确定的预计送达时间无法平衡用户体验和配送效率的平衡的缺陷。而本申请实施例中公开的确定预计送达时间的方法,在基于适用于多场景的通用配送时间预估模型的基础上,实时根据需求和运力来决定是照顾用户体验还是倾向配送效率,然后,进一步对模型预估的配送时间和相应的骑手进行选择,使输出的预估配送时间对业务具备一定的解释能力。The method for determining the estimated delivery time disclosed in the embodiments of the present application is to obtain the current waybill characteristics, the rider characteristics of each rider, and the rider's carrying waybill characteristics; then, based on the waybill characteristics, the rider characteristics, and the carrying The characteristics of the air waybill, through the pre-trained delivery time estimation model, estimate the on-time delivery probability and capacity coefficient of each rider for the current air waybill at each preset delivery time; wherein, the capacity capacity coefficient represents The rider is able to carry at least one capability index of other waybills when delivering the current waybill; finally, it is determined according to the obtained capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient Since the estimated delivery time of the current waybill is dynamically adjusted in combination with specific business goals, the output estimated time can balance user experience and delivery efficiency. In the prior art, when determining the estimated delivery time, at least there is a defect that the determined estimated delivery time cannot balance the balance between user experience and delivery efficiency. The method for determining the estimated delivery time disclosed in the embodiments of the present application is based on a universal delivery time estimation model suitable for multiple scenarios, and based on demand and capacity in real time, it is determined whether to take care of user experience or prefer delivery efficiency, and then , To further select the estimated delivery time of the model and the corresponding rider, so that the output estimated delivery time has a certain ability to explain the business.
另一方面,由于后续结合运力和需求对模型预估的时间进行选择,因此,模型通过采用抽象的运单特征、骑手特征以及骑手的背负运单特征进行不同骑手在各预设送达时间的准时送达概率,不局限于运单的具体场景,无需针对不同场景重新训练送达时间预估模型,提升了模型训练效率,降低了开发成本。On the other hand, due to the subsequent selection of the estimated time of the model based on capacity and demand, the model adopts abstract waybill characteristics, rider characteristics, and rider’s carrying waybill characteristics to deliver on time for different riders at each preset delivery time. The probability of arrival is not limited to the specific scenarios of the waybill, and there is no need to retrain the delivery time estimation model for different scenarios, which improves the efficiency of model training and reduces development costs.
再一方面,本申请采用多分类模型,送达时间预估模型输出多个预设送达时间的准时送达概率,为后续调整策略提供更加细粒度的选择范围,可以提升输出的预计送达时间的准确度。On the other hand, this application adopts a multi-classification model, and the delivery time estimation model outputs on-time delivery probabilities of multiple preset delivery times, providing a more fine-grained selection range for subsequent adjustment strategies, which can improve the expected delivery of output The accuracy of time.
实施例二Example two
本实施例公开的一种确定预计送达时间的装置,如图4所示,所述装置包括:This embodiment discloses a device for determining the estimated delivery time. As shown in FIG. 4, the device includes:
特征获取模块410,用于获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;The characteristic acquisition module 410 is used to acquire the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher;
多点准时送达概率预估模块420,用于基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;The multi-point punctual delivery probability estimation module 420 is used to estimate the delivery time estimation model for each of the distributors based on the characteristics of the waybill, the characteristics of the shipper, and the characteristics of the baggage waybill. The on-time delivery probability and capacity coefficient of the current waybill at each preset delivery time; wherein the capacity capacity coefficient represents the ability index of the shipper to be able to carry at least one other waybill when delivering the current waybill;
预计送达时间选择输出模块430,用于根据获取的运力和需求数据、各 所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间。The estimated delivery time selection output module 430 is configured to determine the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient.
本申请的一些实施例中,所述预计送达时间选择输出模块430进一步用于:In some embodiments of the present application, the estimated delivery time selection output module 430 is further configured to:
确定需求和运力的比值;Determine the ratio of demand to capacity;
若所述比值满足预设比值条件,则根据所述准时送达概率确定所述当前运单的预计送达时间;If the ratio satisfies the preset ratio condition, the estimated delivery time of the current waybill is determined according to the on-time delivery probability;
若所述比值不满足预设比值条件,则根据所述运力容量系数确定所述当前运单的预计送达时间。If the ratio does not meet the preset ratio condition, the estimated delivery time of the current waybill is determined according to the capacity coefficient.
进一步的,所述若所述比值满足预设比值条件,则根据所述准时送达概率确定所述当前运单的预计送达时间的步骤,包括:Further, if the ratio satisfies a preset ratio condition, the step of determining the expected delivery time of the current waybill according to the on-time delivery probability includes:
若所述比值满足预设比值条件,则确定满足预设概率条件的所述准时送达概率对应的最短送达时间,作为所述当前运单的预计送达时间。If the ratio satisfies the preset ratio condition, the shortest delivery time corresponding to the on-time delivery probability that satisfies the preset probability condition is determined as the estimated delivery time of the current waybill.
进一步的,所述若所述比值不满足预设比值条件,则根据所述运力容量系数确定所述当前运单的预计送达时间的步骤,包括:Further, if the ratio does not satisfy a preset ratio condition, the step of determining the estimated delivery time of the current waybill according to the capacity coefficient includes:
若所述比值不满足预设比值条件,则确定最接近所述比值的运力容量系数对应的送达时间,作为所述当前运单的预计送达时间。If the ratio does not meet the preset ratio condition, the delivery time corresponding to the capacity coefficient closest to the ratio is determined as the estimated delivery time of the current waybill.
本申请的一些实施例中,如图5所示,所述装置还包括:In some embodiments of the present application, as shown in FIG. 5, the device further includes:
训练样本生成模块440,用于根据历史运单数据确定每个运单对应的运单特征、送达所述运单的配送者的配送者特征、所述配送者的背负运单特征,作为相应运单对应的训练样本的样本数据;以及,根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签,所述样本标签包括与所述预设送达时间对应的准时送达概率标签和运力容量系数标签;The training sample generating module 440 is used to determine the characteristics of the waybill corresponding to each waybill, the characteristics of the shipper who delivered the waybill, and the characteristics of the baggage waybill of the distributor according to the historical waybill data, as the training sample corresponding to the corresponding waybill And, according to the delivery time of each waybill in the historical waybill data, determine the sample label of each training sample corresponding to the waybill, the sample label including the punctuality corresponding to the preset delivery time Delivery probability label and capacity coefficient label;
预估模型训练模块450,用于基于所述训练样本训练送达时间预估模型,其中,所述送达时间预估模型为多分类模型。The estimation model training module 450 is configured to train a delivery time estimation model based on the training samples, wherein the delivery time estimation model is a multi-classification model.
本申请的一些实施例中,所述根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签的步骤,包括:In some embodiments of the present application, the step of determining the sample label of the training sample corresponding to each waybill according to the delivery time of each waybill in the historical waybill data includes:
对于每个运单,根据所述运单的送达时间,确定与所述运单对应的训练 样本的准时送达概率标签的值,其中,所述准时送达概率标签用于指示所述运单在各预设送达时间的准时送达概率。For each waybill, the value of the on-time delivery probability label of the training sample corresponding to the waybill is determined according to the delivery time of the waybill, where the on-time delivery probability label is used to indicate that the waybill is in each pre-order. Set the probability of on-time delivery of the delivery time.
本申请的一些实施例中,所述根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签的步骤,还包括:In some embodiments of the present application, the step of determining the sample label of the training sample corresponding to each of the waybills according to the delivery time of each waybill in the historical waybill data further includes:
根据每个运单的送达路程中所述运单的配送者所背负的所有运单的取送路程,对所述运单的送达路程分段,每段送达路程对应一个分段时长;According to the delivery distance of all the waybills carried by the shipper of the waybill in the delivery distance of each waybill, segment the delivery distance of the waybill, and each delivery distance corresponds to a segment time;
根据每段送达路程对应的所述分段时长与共享相应段送达路程的运单数量,确定共享该段送达路程的单个运单的送达时长;Determine the delivery time of a single air waybill sharing that segment of the delivery distance according to the segment duration corresponding to each segment of the delivery distance and the number of waybills sharing the corresponding segment of the delivery distance;
对于共享该段送达路程的每个运单,根据所述运单的送达路程中各段送达路程对应的所述单个运单的送达时间之和与所述运单的送达路程中各段送达路程的分段时长之和,确定所述运单对应的运力容量系数;For each waybill sharing this section of the delivery route, the sum of the delivery time of the individual waybill corresponding to each section of the delivery route of the waybill and each section of the delivery route of the waybill The sum of the segment durations of the journey to determine the capacity coefficient corresponding to the waybill;
将所述运单对应的运力容量系数,作为所述运单对应的训练样本的运力容量系数标签。The capacity coefficient corresponding to the waybill is used as the capacity capacity coefficient label of the training sample corresponding to the waybill.
本申请的一些实施例中,所述运单特征包括:运单价格、送达距离、地理位置中的任意一项或多项;所述配送者特征包括:配送者等级、配送者配送能力、配送者配送类型中的任意一项或多项;所述配送者的背负运单特征包括:所述配送者背负的所述当前运单之外的运单的运单特征。In some embodiments of the present application, the characteristics of the waybill include any one or more of the price of the waybill, the delivery distance, and the geographic location; the characteristics of the dispatcher include: the rank of the dispatcher, the dispatching ability of the dispatcher, and the dispatcher Any one or more of the delivery types; the characteristics of the waybill carried by the dispatcher include: the characteristics of the waybill other than the current waybill carried by the dispatcher.
本申请实施例公开的确定预计送达时间的装置,用于实现本申请实施例一中所述的确定预计送达时间的方法的各步骤,装置的各模块的具体实施方式参见相应步骤,此处不再赘述。The device for determining the expected delivery time disclosed in the embodiments of the present application is used to implement the steps of the method for determining the expected delivery time described in the first embodiment of the present application. For the specific implementation of each module of the device, refer to the corresponding steps. I won't repeat it here.
本申请实施例公开的确定预计送达时间的装置,通过获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;然后,基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;最后,根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间,由于结合了具体业务目标对预估时间进行动态调整,输出的预估时间能够平衡用户体验和配送效率。在基于适用于 多场景的通用配送时间预估模型的基础上,实时根据需求和运力来决定是照顾用户体验还是倾向配送效率,然后,进一步对模型预估的配送时间和相应的配送者进行选择,使输出的预估配送时间对业务具备一定的解释能力。The device for determining the estimated delivery time disclosed in the embodiments of the present application obtains the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the load-bearing waybill of the dispatcher; then, based on the characteristics of the waybill and the dispatcher And the characteristics of the baggage waybill, through the pre-trained delivery time estimation model, predict the on-time delivery probability and the capacity coefficient of each of the distributors for the current waybill at each preset delivery time; where The capacity coefficient indicates the ability of the shipper to carry at least one other waybill when delivering the current waybill; finally, according to the obtained capacity and demand data, the on-time delivery probability of each preset delivery time and the The capacity coefficient is used to determine the estimated delivery time of the current waybill. Since the estimated time is dynamically adjusted in combination with specific business goals, the output estimated time can balance user experience and delivery efficiency. Based on a universal delivery time estimation model suitable for multiple scenarios, it is determined in real time whether to take care of user experience or prefer delivery efficiency based on demand and capacity, and then further select the estimated delivery time of the model and the corresponding dispatcher , So that the estimated delivery time output has a certain ability to explain the business.
另一方面,由于后续结合运力和需求对模型预估的时间进行选择,因此,模型通过采用抽象的运单特征、配送者特征以及配送者的背负运单特征进行不同配送者在各预设送达时间的准时送达概率,不局限于运单的具体场景,无需针对不同场景重新训练送达时间预估模型,提升了模型训练效率,降低了开发成本。On the other hand, due to the subsequent selection of the estimated time of the model based on the capacity and demand, the model adopts the abstract waybill feature, the shipper's feature, and the shipper’s baggage waybill feature for different shippers to preset delivery times at each The on-time delivery probability is not limited to the specific scenarios of the waybill, and there is no need to retrain the delivery time estimation model for different scenarios, which improves the efficiency of model training and reduces development costs.
再一方面,本申请采用多分类模型,送达时间预估模型输出多个预设送达时间的准时送达概率,为后续调整策略提供更加细粒度的选择范围,可以提升输出的预计送达时间的准确度。On the other hand, this application adopts a multi-classification model, and the delivery time estimation model outputs on-time delivery probabilities of multiple preset delivery times, providing a more fine-grained selection range for subsequent adjustment strategies, which can improve the expected delivery of output The accuracy of time.
相应的,本申请还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例一的确定预计送达时间的方法。所述电子设备可以为PC机、移动终端、个人数字助理、平板电脑等。Correspondingly, this application also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor. When the processor executes the computer program, the implementation is as in this application. The method for determining the estimated delivery time of the first embodiment. The electronic device may be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc.
本申请还公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例一所述的确定预计送达时间的方法的步骤。The application also discloses a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for determining the estimated delivery time as described in the first embodiment of the application are realized.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上对本申请提供的一种确定预计送达时间的方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method and device for determining the estimated delivery time provided by the present application are described in detail above. Specific examples are used in this article to explain the principles and implementation of the present application. The description of the above embodiments is only used to help understand the present application. The method of application and its core idea; meanwhile, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood It is a restriction on this application.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或 者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions can be embodied in the form of software products, which can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., include a number of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment.
本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的电子设备中的一些或者全部部件的一些或者全部功能。本申请的一个实施例中,可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the electronic device according to the embodiments of the present application. In an embodiment of the present application, it may be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for realizing the present application may be stored on a computer-readable medium, or may have the form of one or more signals. Such signals can be downloaded from Internet websites, or provided on carrier signals, or provided in any other form.
例如,图6示出了可以实现根据本申请的方法的电子设备。该电子设备传统上包括处理器620和以存储器610形式的计算机程序产品或者计算机可读介质。存储器610可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器610具有用于执行上述方法中的任何方法步骤的程序代码6102的存储空间6101。例如,用于程序代码的存储空间6101可以包括分别用于实现上面的方法中的各种步骤的各个程序代码6102。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图7所述的便携式或者固定存储单元。该存储单元可以具有与图6的电子设备中的存储器620类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码6102’,即可以由例如诸如610之类的处理器读取的代码,这些计算机可 读代码在电子设备上运行时,导致该电子设备执行上面所描述的确定预计送达时间的方法中的各个步骤。For example, FIG. 6 shows an electronic device that can implement the method according to the present application. The electronic device traditionally includes a processor 620 and a computer program product in the form of a memory 610 or a computer-readable medium. The memory 610 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. The memory 610 has a storage space 6101 for executing the program code 6102 of any method step in the above method. For example, the storage space 6101 for program codes may include various program codes 6102 for implementing various steps in the above method. These program codes can be read out from or written into one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is usually a portable or fixed storage unit as described with reference to FIG. 7. The storage unit may have storage segments, storage spaces, etc. arranged similarly to the storage 620 in the electronic device of FIG. 6. The program code can be compressed in an appropriate form, for example. Generally, the storage unit includes computer-readable code 6102', that is, code that can be read by a processor such as 610. When the computer-readable code runs on an electronic device, it causes the electronic device to perform the determination described above. The steps in the method of estimated delivery time.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。The “one embodiment”, “an embodiment” or “one or more embodiments” referred to herein means that a specific feature, structure, or characteristic described in combination with the embodiment is included in at least one embodiment of the present application. In addition, please note that the word examples "in one embodiment" herein do not necessarily all refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the instructions provided here, a lot of specific details are explained. However, it can be understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and technologies are not shown in detail, so as not to obscure the understanding of this specification.
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between parentheses should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of multiple such elements. The application can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims enumerating several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. do not indicate any order. These words can be interpreted as names.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

  1. 一种确定预计送达时间的方法,包括:A method of determining the estimated delivery time, including:
    获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;Obtaining the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher;
    基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;Based on the characteristics of the waybill, the shipper and the characteristic of the baggage waybill, the pre-trained delivery time estimation model is used to estimate the punctual delivery of the current waybill by each of the shippers at each preset delivery time Probability and capacity capacity coefficient; wherein the capacity capacity coefficient represents the ability index of the dispatcher to carry at least one other waybill when delivering the current waybill;
    根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间。Determine the expected delivery time of the current waybill according to the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity coefficient.
  2. 根据权利要求1所述的方法,所述根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间的步骤,包括:The method according to claim 1, wherein the estimated delivery time of the current waybill is determined based on the acquired capacity and demand data, the on-time delivery probability of each of the preset delivery times, and the capacity coefficient The steps include:
    根据获取的运力和需求数据确定需求和运力的比值;Determine the ratio of demand and capacity according to the obtained capacity and demand data;
    若所述比值满足预设比值条件,则根据所述准时送达概率确定所述当前运单的预计送达时间;If the ratio satisfies the preset ratio condition, the estimated delivery time of the current waybill is determined according to the on-time delivery probability;
    若所述比值不满足预设比值条件,则根据所述运力容量系数确定所述当前运单的预计送达时间。If the ratio does not meet the preset ratio condition, the estimated delivery time of the current waybill is determined according to the capacity coefficient.
  3. 根据权利要求2所述的方法,所述若所述比值满足预设比值条件,则根据所述准时送达概率确定所述当前运单的预计送达时间的步骤,包括:The method according to claim 2, wherein if the ratio satisfies a preset ratio condition, the step of determining the estimated delivery time of the current waybill according to the on-time delivery probability comprises:
    若所述比值满足预设比值条件,则确定满足预设概率条件的所述准时送达概率对应的最短送达时间,作为所述当前运单的预计送达时间。If the ratio satisfies the preset ratio condition, the shortest delivery time corresponding to the on-time delivery probability that satisfies the preset probability condition is determined as the estimated delivery time of the current waybill.
  4. 根据权利要求2所述的方法,所述若所述比值不满足预设比值条件,则根据所述运力容量系数确定所述当前运单的预计送达时间的步骤,包括:The method according to claim 2, wherein if the ratio does not meet a preset ratio condition, the step of determining the estimated delivery time of the current waybill according to the capacity coefficient comprises:
    若所述比值不满足预设比值条件,则确定最接近所述比值的运力容量系数对应的送达时间,作为所述当前运单的预计送达时间。If the ratio does not meet the preset ratio condition, the delivery time corresponding to the capacity coefficient closest to the ratio is determined as the estimated delivery time of the current waybill.
  5. 根据权利要求1至4任一项所述的方法,所述送达时间预估模型采用以下方式训练:According to the method according to any one of claims 1 to 4, the delivery time estimation model is trained in the following manner:
    根据历史运单数据确定每个运单对应的运单特征、送达所述运单的配送者的配送者特征、所述配送者的背负运单特征,作为相应运单对应的训练样本的样本数据;以及,根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签,所述样本标签包括与所述预设送达时间对应的准时送达概率标签和运力容量系数标签;Determine the characteristics of the waybill corresponding to each waybill, the characteristics of the shipper who delivered the waybill, and the characteristics of the baggage waybill of the distributor according to the historical waybill data, as the sample data of the training sample corresponding to the corresponding waybill; and The delivery time of each waybill in the historical waybill data determines the sample label of the training sample corresponding to each said waybill, and the sample label includes the on-time delivery probability label and the capacity coefficient corresponding to the preset delivery time label;
    基于所述训练样本训练送达时间预估模型。Train a delivery time estimation model based on the training samples.
  6. 根据权利要求5所述的方法,所述根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签的步骤,包括:The method according to claim 5, wherein the step of determining the sample label of the training sample corresponding to each of the waybills according to the delivery time of each waybill in the historical waybill data comprises:
    对于每个运单,根据所述运单的送达时间,确定与所述运单对应的训练样本的准时送达概率标签的值,其中,所述准时送达概率标签用于指示所述运单在各预设送达时间的准时送达概率。For each waybill, the value of the on-time delivery probability label of the training sample corresponding to the waybill is determined according to the delivery time of the waybill, where the on-time delivery probability label is used to indicate that the waybill is in each pre-order. Set the probability of on-time delivery of the delivery time.
  7. 根据权利要求5或6所述的方法,所述根据所述历史运单数据中每个运单的取送时间确定每个所述运单对应的训练样本的样本标签的步骤,还包括:The method according to claim 5 or 6, wherein the step of determining the sample label of the training sample corresponding to each of the waybills according to the delivery time of each waybill in the historical waybill data further comprises:
    根据每个运单的送达路程中所述运单的配送者所背负的所有运单的取送路程,对所述运单的送达路程分段,每段送达路程对应一个分段时长;According to the delivery distance of all the waybills carried by the shipper of the waybill in the delivery distance of each waybill, segment the delivery distance of the waybill, and each delivery distance corresponds to a segment time;
    根据每段送达路程对应的所述分段时长与共享相应段送达路程的运单数量,确定共享该段送达路程的单个运单的送达时长;Determine the delivery time of a single air waybill sharing that segment of the delivery distance according to the segment duration corresponding to each segment of the delivery distance and the number of waybills sharing the corresponding segment of the delivery distance;
    对于共享该段送达路程的每个运单,根据所述运单的送达路程中各段送达路程对应的所述单个运单的送达时间之和与所述运单的送达路程中各段送达路程的分段时长之和,确定所述运单对应的运力容量系数;For each waybill sharing this section of the delivery route, the sum of the delivery time of the individual waybill corresponding to each section of the delivery route of the waybill and each section of the delivery route of the waybill The sum of the segment durations of the journey to determine the capacity coefficient corresponding to the waybill;
    将所述运单对应的运力容量系数,作为所述运单对应的训练样本的运力容量系数标签。The capacity coefficient corresponding to the waybill is used as the capacity capacity coefficient label of the training sample corresponding to the waybill.
  8. 一种确定预计送达时间的装置,包括:A device for determining the estimated delivery time, including:
    特征获取模块,用于获取当前运单的运单特征、各配送者的配送者特征、所述配送者的背负运单特征;The characteristic acquisition module is used to acquire the characteristics of the current waybill, the characteristics of the dispatcher of each dispatcher, and the characteristics of the carrying waybill of the dispatcher;
    多点准时送达概率预估模块,用于基于所述运单特征、配送者特征以及所述背负运单特征,通过预先训练的送达时间预估模型,预估各所述配送者对所述当前运单在各预设送达时间的准时送达概率和运力容量系数;其中,所述运力容量系数表示所述配送者配送所述当前运单时能够背负至少一个其他运单的能力指标;The multi-point punctual delivery probability estimation module is used to estimate the delivery time estimation model for each of the distributors based on the characteristics of the waybill, the characteristics of the dispatcher, and the characteristics of the baggage waybill. The on-time delivery probability and capacity coefficient of the waybill at each preset delivery time; wherein the capacity capacity coefficient represents the ability index of the shipper to be able to carry at least one other waybill when delivering the current waybill;
    预计送达时间选择输出模块,用于根据获取的运力和需求数据、各所述预设送达时间的准时送达概率以及所述运力容量系数,确定所述当前运单的预计送达时间。The estimated delivery time selection output module is used to determine the estimated delivery time of the current waybill based on the acquired capacity and demand data, the on-time delivery probability of each preset delivery time, and the capacity coefficient.
  9. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至7任意一项所述的确定预计送达时间的方法。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the processor implements any one of claims 1 to 7 when the computer program is executed The method of determining the estimated delivery time.
  10. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1至7任意一项所述的确定预计送达时间的方法的步骤。A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for determining an estimated delivery time according to any one of claims 1 to 7.
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备上运行时,导致所述电子设备执行根据权利要求1至7中的任意一项所述的确定预计送达时间的方法。A computer program, comprising computer-readable code, which when the computer-readable code runs on an electronic device, causes the electronic device to execute the determination of the estimated delivery time according to any one of claims 1 to 7 Methods.
PCT/CN2020/093301 2019-07-30 2020-05-29 Determination of estimated time of arrival WO2021017609A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910696204.6 2019-07-30
CN201910696204.6A CN110543968B (en) 2019-07-30 2019-07-30 Method and device for determining estimated delivery time, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2021017609A1 true WO2021017609A1 (en) 2021-02-04

Family

ID=68709924

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093301 WO2021017609A1 (en) 2019-07-30 2020-05-29 Determination of estimated time of arrival

Country Status (2)

Country Link
CN (1) CN110543968B (en)
WO (1) WO2021017609A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926922A (en) * 2021-03-18 2021-06-08 拉扎斯网络科技(上海)有限公司 Responsibility judgment system, method and device, storage medium and electronic equipment
CN113159685A (en) * 2021-04-26 2021-07-23 拉扎斯网络科技(上海)有限公司 Distribution time length updating method, distribution time length updating device, electronic equipment, medium and program product
CN113159281A (en) * 2021-03-25 2021-07-23 拉扎斯网络科技(上海)有限公司 Data processing method and data processing device
CN113283830A (en) * 2021-04-29 2021-08-20 北京京东振世信息技术有限公司 Waybill information sequence generation method, waybill information sequence generation device, waybill information sequence generation equipment and computer readable medium
WO2022271287A1 (en) * 2021-06-25 2022-12-29 Maplebear Inc. (Dba Instacart) Determining estimated delivery time of items obtained from a warehouse for users of an online concierge system to reduce probabilities of delivery after the estimated delivery time

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543968B (en) * 2019-07-30 2022-04-12 北京三快在线科技有限公司 Method and device for determining estimated delivery time, electronic device and storage medium
CN113222487B (en) * 2020-01-21 2023-04-18 北京三快在线科技有限公司 Scheduling path generation method, device, storage medium and electronic equipment
CN113159659A (en) * 2020-01-22 2021-07-23 北京京东振世信息技术有限公司 Method, device, equipment and computer readable medium for updating manifest aging
CN113313439B (en) * 2020-02-26 2024-04-05 北京京东振世信息技术有限公司 Method and device for calculating time length of tall-in-hand
CN111523802B (en) * 2020-04-22 2023-08-08 北京京东振世信息技术有限公司 Method, device, equipment and medium for sending time response
CN111860906B (en) * 2020-04-24 2024-04-26 北京嘀嘀无限科技发展有限公司 Method and system for determining estimated arrival time
CN111598487B (en) * 2020-06-22 2024-03-15 拉扎斯网络科技(上海)有限公司 Data processing and model training method, device, electronic equipment and storage medium
CN112116151A (en) * 2020-09-17 2020-12-22 北京嘀嘀无限科技发展有限公司 Drive receiving time estimation method and system
CN114330797A (en) * 2020-09-27 2022-04-12 北京三快在线科技有限公司 Distribution time length prediction method and device, storage medium and electronic equipment
CN112668964A (en) * 2020-12-23 2021-04-16 北京京东振世信息技术有限公司 Transportation certificate routing method, device, equipment and computer readable storage medium
CN113011665A (en) * 2021-03-29 2021-06-22 上海寻梦信息技术有限公司 Logistics timeliness prediction method, device, equipment and storage medium
CN113034075A (en) * 2021-03-29 2021-06-25 上海寻梦信息技术有限公司 Logistics waybill timeliness pushing method, system, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766962A (en) * 2016-08-17 2018-03-06 北京京东尚科信息技术有限公司 A kind of method and apparatus for recommending the optimal dispatching period
CN108122042A (en) * 2016-11-28 2018-06-05 北京小度信息科技有限公司 Distribution time predictor method and device
CN108491951A (en) * 2018-01-25 2018-09-04 北京三快在线科技有限公司 A kind of prediction technique, device and electronic equipment for taking out distribution time
US20190130260A1 (en) * 2017-10-30 2019-05-02 DoorDash, Inc. System for dynamic estimated time of arrival predictive updates
CN109726843A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 The method, apparatus and terminal of allocation data prediction
CN110543968A (en) * 2019-07-30 2019-12-06 北京三快在线科技有限公司 Method and device for determining estimated delivery time, electronic device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190130320A1 (en) * 2017-11-02 2019-05-02 Uber Technologies, Inc. Network computer system to implement dynamic provisioning for fulfilling delivery orders
CN109284956B (en) * 2018-08-10 2020-10-02 北京三快在线科技有限公司 Task duration determining method and device and electronic equipment
CN109993367A (en) * 2019-04-04 2019-07-09 拉扎斯网络科技(上海)有限公司 Dispense estimation method, estimation device, storage medium and the electronic equipment of duration

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766962A (en) * 2016-08-17 2018-03-06 北京京东尚科信息技术有限公司 A kind of method and apparatus for recommending the optimal dispatching period
CN108122042A (en) * 2016-11-28 2018-06-05 北京小度信息科技有限公司 Distribution time predictor method and device
US20190130260A1 (en) * 2017-10-30 2019-05-02 DoorDash, Inc. System for dynamic estimated time of arrival predictive updates
CN109726843A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 The method, apparatus and terminal of allocation data prediction
CN108491951A (en) * 2018-01-25 2018-09-04 北京三快在线科技有限公司 A kind of prediction technique, device and electronic equipment for taking out distribution time
CN110543968A (en) * 2019-07-30 2019-12-06 北京三快在线科技有限公司 Method and device for determining estimated delivery time, electronic device and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926922A (en) * 2021-03-18 2021-06-08 拉扎斯网络科技(上海)有限公司 Responsibility judgment system, method and device, storage medium and electronic equipment
CN112926922B (en) * 2021-03-18 2023-07-18 拉扎斯网络科技(上海)有限公司 Responsibility judgment system, method, device, storage medium and electronic equipment
CN113159281A (en) * 2021-03-25 2021-07-23 拉扎斯网络科技(上海)有限公司 Data processing method and data processing device
CN113159685A (en) * 2021-04-26 2021-07-23 拉扎斯网络科技(上海)有限公司 Distribution time length updating method, distribution time length updating device, electronic equipment, medium and program product
CN113283830A (en) * 2021-04-29 2021-08-20 北京京东振世信息技术有限公司 Waybill information sequence generation method, waybill information sequence generation device, waybill information sequence generation equipment and computer readable medium
CN113283830B (en) * 2021-04-29 2024-04-09 北京京东振世信息技术有限公司 Method, device, equipment and computer readable medium for generating waybill information sequence
WO2022271287A1 (en) * 2021-06-25 2022-12-29 Maplebear Inc. (Dba Instacart) Determining estimated delivery time of items obtained from a warehouse for users of an online concierge system to reduce probabilities of delivery after the estimated delivery time
US20220414592A1 (en) * 2021-06-25 2022-12-29 Maplebear Inc.(dba Instacart) Determining estimated delivery time of items obtained from a warehouse for users of an online concierge system to reduce probabilities of delivery after the estimated delivery time
US11755987B2 (en) * 2021-06-25 2023-09-12 Maplebear Inc. Determining estimated delivery time of items obtained from a warehouse for users of an online concierge system to reduce probabilities of delivery after the estimated delivery time

Also Published As

Publication number Publication date
CN110543968B (en) 2022-04-12
CN110543968A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
WO2021017609A1 (en) Determination of estimated time of arrival
US8788439B2 (en) Instance weighted learning machine learning model
CN104766215B (en) A kind of comprehensive, various dimensions owner of cargo selects quantization method
Shang et al. Distribution network redesign for marketing competitiveness
US20190251609A1 (en) Commodity demand prediction system, commodity demand prediction method, and commodity demand prediction program
CN112215546A (en) Object page generation method, device, equipment and storage medium
CN109426983A (en) Dodge purchase activity automatic generation method and device, storage medium, electronic equipment
CN110503264A (en) A kind of source of goods sort method, device, equipment and storage medium
Ordoobadi Inclusion of risk in evaluation of advanced technologies
US20220180386A1 (en) Systems and methods for predicting service demand based on geographically associated events
LU503730B1 (en) Sequence recommendation method and system based on the coupling relationship between item attributes and time sequence patterns
Kawakami et al. Seasonal Inventory Management Model for Raw Materials in Steel Industry
CN109767333A (en) Select based method, device, electronic equipment and computer readable storage medium
CN113689237A (en) Method and device for determining to-be-launched media resource and media resource processing model
CN112632404A (en) Multi-granularity self-attention-based next interest point recommendation method
CN110781929A (en) Training method, prediction device, medium, and apparatus for credit prediction model
Özkan et al. A simulation model for evaluating the cargo transfer alternatives in liquid cargo terminals
Viellechner The new era of predictive analytics in container shipping and air cargo
CN107886357A (en) The method and system of content value is judged based on user behavior data
CN114970923A (en) Distribution order package-combining and distribution method and device and electronic equipment
JP7012892B1 (en) Information processing equipment, information processing methods and information processing programs
JP7090785B1 (en) Information processing equipment, information processing methods, and information processing programs
CN113065739B (en) Method and device for evaluating performance capability of executed person and electronic equipment
CN116823337A (en) Product sales prediction system based on big data analysis user habit
TW202038158A (en) Dual-track token data processing system suitable for online service exchange including an online network trading platform, a service demander terminal device and a service provider terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20847202

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20847202

Country of ref document: EP

Kind code of ref document: A1