Task duration estimation method, device, electronic device and storage medium
By obtaining task scene information and feature information and training the task duration estimation model, the problem of inaccurate task duration estimation in the existing technology is solved, achieving more accurate task duration estimation and improving user experience.
Patent Information
- Application Number
- CN201911005518.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-10-22
AI Technical Summary
The existing technology fails to effectively consider the differences in different task scenarios in task duration estimation, resulting in low accuracy of estimation.
By obtaining at least two dimensions of task scene information, dividing the task information set, training the task duration prediction model associated with the task scene, and using the XGBoost algorithm and multi-dimensional feature information to make accurate predictions.
It improves the accuracy and pertinence of task duration estimation, can better match different task scenarios, and improves task execution efficiency and user experience.
Smart Images

Figure CN110807545B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent delivery, and specifically to a method, device, electronic device and storage medium for estimating task duration. Background Art
[0002] Accurately estimating the duration required for a task and then determining the optimal task completion strategy can significantly improve task execution efficiency and user experience. Therefore, accurately estimating the duration required for a task and determining the optimal target task execution strategy are of great significance to service providers in target task execution. However, most existing technologies use models of operations research mechanisms to achieve estimation, without paying attention to the differences between different task scenarios. Therefore, the accuracy of using a general task duration estimation model for estimation is not high. Summary of the invention
[0003] In view of the above problems, the present application is proposed to provide a method, device, electronic device and storage medium for estimating task duration that overcome the above problems or at least partially solve the above problems.
[0004] According to one aspect of the present application, a method for estimating task duration is provided, characterized in that the method comprises:
[0005] Acquire task information of a target task, wherein the task information includes: task scenario information of at least two dimensions and feature information of several dimensions;
[0006] Determine a task scenario according to the task scenario information of the at least two dimensions, and select a task duration estimation model associated with the task scenario;
[0007] The feature information is input into a determined task duration estimation model to obtain an estimated task duration of the target task.
[0008] Optionally, the task duration estimation model is established and trained in the following manner:
[0009] Dividing the task information of the completed tasks into a plurality of task information sets, so that each task information set corresponds to a task scenario, wherein the task scenario is determined by the values of each dimension of the task scenario information;
[0010] According to each task information set, a task duration estimation model associated with the corresponding task scenario is trained separately.
[0011] Optionally, the step of training a task duration estimation model associated with a corresponding task scenario according to each task information set includes:
[0012] The task information in the task information set is divided according to the task completion status to obtain a task information subset completed overtime and a task information subset completed on time;
[0013] The quantity of task information in the task information subset completed overtime is weighted according to a preset ratio.
[0014] Optionally, the step of training a task duration estimation model associated with a corresponding task scenario according to each task information set includes:
[0015] The XGBoost type task duration estimation model is obtained through XGBoost algorithm training.
[0016] Optionally, the dimensions of the task scenario information include: a pickup status dimension and a task completion status dimension;
[0017] The value of the task completion status dimension is determined based on whether the promised completion time of the task is greater than the estimated completion time.
[0018] Optionally, the feature information includes at least one of the following:
[0019] Deliveryman portrait, task portrait, area portrait, merchant portrait, task-deliveryman portrait, merchant-deliveryman portrait.
[0020] Optionally, the method further comprises:
[0021] Construct multiple delivery routes based on the task information of the target task;
[0022] Calculate the priority score of each delivery path according to the estimated task duration;
[0023] Delivery scheduling is performed based on the priority score of each delivery route.
[0024] According to another aspect of the present application, a task duration estimation device is provided, the device comprising:
[0025] An acquisition unit, configured to acquire task information of a target task, wherein the task information includes: task scenario information of at least two dimensions, and feature information of several dimensions;
[0026] A model determination unit determines a task scenario according to the task scenario information of the at least two dimensions, and selects a task duration estimation model associated with the task scenario;
[0027] The estimating unit inputs the feature information into a determined task duration estimation model to obtain an estimated task duration of the target task.
[0028] Optionally, the model determination unit is used to divide the task information of the completed task into multiple task information sets, so that each task information set corresponds to a task scenario, and the task scenario is determined by the value of each dimension of the task scenario information;
[0029] According to each task information set, a task duration estimation model associated with the corresponding task scenario is trained separately.
[0030] Optionally, the model determination unit is used to divide the task information in the task information set according to the task completion status to obtain a task information subset completed overtime and a task information subset completed on time;
[0031] The quantity of task information in the task information subset completed overtime is weighted according to a preset ratio.
[0032] Optionally, the model determination unit is used to obtain an XGBoost type task duration estimation model through XGBoost algorithm training.
[0033] Optionally, the dimensions of the task scenario information include: a pickup status dimension and a task completion status dimension;
[0034] The value of the task completion status dimension is determined based on whether the promised completion time of the task is greater than the estimated completion time.
[0035] Optionally, the feature information includes at least one of the following:
[0036] Deliveryman portrait, task portrait, area portrait, merchant portrait, task-deliveryman portrait, merchant-deliveryman portrait.
[0037] Optionally, the device further comprises a delivery scheduling unit, configured to construct a plurality of delivery routes according to task information of the target task;
[0038] Calculate the priority score of each delivery path according to the estimated task duration;
[0039] Delivery scheduling is performed based on the priority score of each delivery route.
[0040] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes any of the above methods.
[0041] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, they implement any of the methods described above.
[0042] As can be seen from the above, the technical solution of the present application obtains the task information of the target task, and the task information includes: task scenario information of at least two dimensions, and characteristic information of several dimensions; determines the task scenario according to the task scenario information of at least two dimensions, and selects the task duration estimation model associated with the task scenario; inputs the characteristic information into the determined task duration estimation model to obtain the estimated task duration of the target task. The beneficial effect is that, for the refined task scenario, a task duration estimation model matching the task scenario information can be adopted, and a machine learning method can be adopted to use multi-dimensional data to achieve a more accurate task duration estimation, thereby improving the accuracy and pertinence of the estimation.
[0043] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0045] Figure 1 A schematic diagram showing a flow chart of a method for estimating task duration according to an embodiment of the present application is shown;
[0046] Figure 2 A schematic diagram showing the structure of a task duration estimation device according to an embodiment of the present application is shown;
[0047] Figure 3 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown;
[0048] Figure 4 A schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0049] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0050] Taking the delivery task as an example, the deliveryman needs to pick up the goods from the merchant and deliver the goods to the user, so it involves multiple locations such as the merchant location and the user location. In the prior art, each location is abstracted as a coordinate point, and path planning and path construction are performed through mathematical programming and other methods, and multiple plans are often generated. Then, the path is scored, and the optimal path is obtained through the scoring matrix, and then the deliveryman is assigned according to priority. Path planning, construction and scoring in the prior art often rely on the mechanism modeling of operations research. The technical solution of the present application adds task duration estimation based on task scenario information of at least two dimensions, which can be performed before path scoring, thereby providing a new parameter for path scoring, which can make the obtained optimal path more in line with actual needs.
[0051] Figure 1 FIG. 1 is a flow chart showing a method for estimating task duration according to an embodiment of the present application. Figure 1 As shown, the method includes:
[0052] Step S110, obtaining task information of the target task, the task information including: task scenario information of at least two dimensions, and feature information of several dimensions.
[0053] Task scenario information refers to the specific information about the task execution during the actual execution of the task and the information closely related to the task execution effect. Taking the delivery task as an example, after the target delivery task is started, the differences between the actual delivery results, the promised delivery task execution status and the estimated delivery task execution status may lead to multiple combinations, thus forming multiple different task scenarios. Dimensions are the specific information about the multi-level influencing factors and the correlation between the influencing factors that are closely related to the task execution effect. Taking the delivery task as an example, in a specific delivery scenario, the influencing factors include the characteristic information of the delivery personnel during the delivery process, the characteristic information of the delivery task itself, the characteristic information of the delivery area, and the information about the correlation between the delivery task and the delivery personnel. In more detail, a large number of factors that affect the delivery efficiency will also be involved in the actual delivery process, such as delivery tools, street road conditions, etc. These different task scenarios and influencing factors will have a direct or indirect impact on the delivery efficiency and delivery effect. Therefore, in order to estimate the time required for the delivery task more targeted and accurately, it is necessary to obtain the task information of the target task in full, so as to fully analyze the relevant influencing factors and lay the foundation for accurately estimating the time required for the target delivery task.
[0054] Step S120, determining a task scenario based on task scenario information of at least two dimensions, and selecting a task duration estimation model associated with the task scenario.
[0055] An important difference between the present application and the prior art solution is that the task scenario is refined, the task scenario is determined based on task scenario information of at least two dimensions, and a task duration estimation model associated with the task scenario is used for different task scenarios, which solves the problem that the model parameters caused by the unified processing of each task scenario cannot achieve the optimal estimation for each task scenario. Therefore, by combining different task scenario information and determining a matching task duration estimation model in a targeted manner, a more suitable task duration estimation model for different task scenarios can be accurately determined, thereby promoting the accuracy of the task duration estimation results.
[0056] Step S130, inputting the characteristic information into the determined task duration estimation model to obtain the estimated task duration of the target task.
[0057] In the actual execution of tasks, the execution efficiency will be affected by many factors. Taking the delivery task as an example, there are many factors that affect the target delivery task, which may be due to the delivery equipment or the multi-dimensional factors such as the road conditions of the delivery block. Therefore, by inputting these feature information into the determined task duration estimation model, we can fully analyze the various situations that occur in the actual execution of the delivery task, and use the feature information of these task scene information and different combinations as the basis for analysis. According to the corresponding task duration evaluation model, instead of mechanically adopting a task duration evaluation model, the evaluation model can show strong adaptability when facing different combinations of task scene information, so as to obtain more accurate estimated task duration result data of the target task.
[0058] visible, Figure 1 The method shown can be used for detailed task scenarios, adopt a task duration estimation model that matches the task scenario information, adopt machine learning, and use multi-dimensional data to achieve more accurate task duration estimation, thereby improving the accuracy and pertinence of the estimation.
[0059] In one embodiment of the present application, in the above method, the task duration estimation model is established and trained in the following manner: the task information of the completed task is divided into multiple task information sets, so that each task information set corresponds to a task scenario, and the task scenario is determined by the values of each dimension of the task scenario information; according to each task information set, a task duration estimation model associated with the corresponding task scenario is trained.
[0060] Taking the completed task information as an example, the information of the completed task can clearly reflect the content of the estimated situation and the actual execution situation. Therefore, taking the completed task information as the basic data of the duration estimation model can ensure the accuracy of the data while being easy to operate. Therefore, the task information of the completed task can be divided into multiple task information sets, and each task information set corresponds to a task scenario. For example, according to the different situations of the actual completion of the task, the task information of the completed task can be divided into different groups. After determining the different task scenarios corresponding to each group, the corresponding task duration estimation model is trained according to the sample data of the task information set in each group. In this way, the corresponding task duration estimation model is trained in combination with the sample data information under different task scenarios, which can make the obtained task duration estimation model more targeted and improve the accuracy of the model estimation result. Moreover, for the completed delivery group where the user experience is more important and the actual delivery duration is greater than the estimated delivery duration, the corresponding delivery task duration evaluation model can be obtained to provide accurate information for the rapid and targeted improvement of the user experience.
[0061] In one embodiment of the present application, in the above method, training a task duration estimation model associated with the corresponding task scenario based on each task information set includes: dividing the task information in the task information set according to the task completion status to obtain a subset of task information completed overtime and a subset of task information completed on time; and weighting the amount of task information in the subset of task information completed overtime according to a preset ratio.
[0062] Task timeouts are very detrimental to user experience, so they need to be taken seriously. Taking delivery tasks as an example, when the actual completion time of a task exceeds the task completion time promised to the user, it is considered that the delivery task has timed out. A specific example is that after a user places an order for takeout, they will receive a latest delivery time promised by the takeout platform. If the latest delivery time is exceeded, compensation will be made. The latest delivery time minus the order time is the promised completion time of the task; the actual completion time is the time when the user actually receives the food minus the order time. It can be seen that for tasks where delivery has not timed out, even if the task duration of this application is not estimated, the experience improvement for users is relatively small, so this part of the sample data does not need to be weighted, that is, it does not need to be treated with emphasis. However, for tasks with delivery timeouts, the task duration estimation model generated by the sample data obtained in this way can greatly reduce the probability of subsequent delivery timeouts. Therefore, when obtaining sample data from each group, the delivery task timeout sample data can be weighted. For example, the training data of "on-time completion" and "overtime completion" can be weighted in a ratio of 1:3. There are 10 "on-time completion" waybills in the training data sample, and there are 5*3=15 "overtime completion" waybills. In this way, the training effect of the delivery task duration estimation model can be improved in a targeted manner, thereby promoting the improvement of user experience.
[0063] It can also be seen that the technical solution of the present application can also optimize the promised completion time, that is, the prior art can determine a relatively low accuracy promised completion time through methods such as operator estimation, while the technical solution of the present application can obtain a more accurate task estimate time by performing task estimation, which can replace the promised completion time obtained in the prior art.
[0064] In one embodiment of the present application, in the above method, training a task duration estimation model associated with the corresponding task scenario according to each task information set includes: training an XGBoost type task duration estimation model through an XGBoost algorithm.
[0065] The XGBoost algorithm integrates many weak classifiers to form a strong classifier to fit the predicted residuals. It has many advantages, such as preventing overfitting, supporting parallelization, having a processing mechanism for sparse data and a cross-validation mechanism, and speeding up training. Therefore, the XGBoost algorithm can be used to improve the accuracy of the prediction results of the task duration estimation model.
[0066] In one embodiment of the present application, in the above method, the dimensions of the task scenario information include: a pickup status dimension and a task completion status dimension; the value of the task completion status dimension is determined based on whether the promised completion time of the task is greater than the estimated completion time.
[0067] Taking the delivery task as an example, the dimension of the task scenario information can be divided into two categories: the pickup status dimension and the task completion status dimension. The pickup status dimension is determined based on whether the delivered goods have been picked up, and the task completion status dimension is determined based on whether the time promised to complete the delivery task exceeds the estimated completion time. Specifically, in the pickup status dimension, it can be divided into two groups according to the completion of the delivery task, namely, the completed delivery group and the uncompleted delivery group. In the task completion status dimension, according to the comparison between the promised delivery time and the estimated delivery time, it can be divided into two groups, namely, the estimated delivery time is less than or equal to the promised time group and the estimated delivery time is greater than the promised time group. Combined with the combination relationship formed by the above different groups, four different task scenarios can be determined, namely, the group where the delivery is completed and the estimated delivery time is less than or equal to the promised delivery time, the group where the delivery is completed and the estimated delivery time is greater than the promised delivery time, the group where the delivery is not completed and the estimated delivery time is less than or equal to the promised delivery time, and the group where the delivery is not completed and the estimated delivery time is greater than the promised delivery time.
[0068] In one embodiment of the present application, in the above method, the characteristic information includes at least one of the following: delivery person portrait, task portrait, area portrait, merchant portrait, task-delivery person portrait, merchant-delivery person portrait.
[0069] The portrait is a specific description of the characteristics of the target object based on the description of multiple characteristics of a specific target object or object. Taking the delivery task as an example, there are multi-dimensional feature information that may have different degrees of impact on the completion efficiency of the delivery task. These multi-dimensional feature information can be described by the portrait feature information, such as: the portrait of the deliveryman, which contains feature information about the deliveryman such as the gender and age of the deliveryman. The task portrait, which contains feature information about the task itself such as the distance and complexity of the delivery task, the size of the delivery object, and the delivery method. The regional portrait, which includes feature information about the delivery area such as the traffic conditions in the delivery route area, whether the road is a main road, and the road conditions. The merchant portrait, which includes feature information about the merchant situation in the delivery task such as the task concentration of the delivery merchant and the time characteristics of the task concentration distribution. The task-deliveryman portrait, which includes feature information about the relationship between the deliveryman and the number of delivery tasks, such as the number of other ongoing delivery tasks associated with the deliveryman at the same time and the execution status of other ongoing delivery tasks associated at the same time. The merchant-deliveryman portrait, which includes data feature information about the relationship between the delivery service merchant and the deliveryman, such as the situation that other deliverymen are participating in the delivery task for the merchant in the delivery task and the execution status. In this way, by integrating these multi-dimensional feature information and estimating the task duration based on it, more accurate task duration estimation results can be obtained, which can promote the improvement of user experience.
[0070] In one embodiment of the present application, in the above method, the method also includes: constructing multiple delivery paths according to the task information of the target task; calculating the priority score of each delivery path according to the estimated task duration; and performing delivery scheduling based on the priority score of each delivery path.
[0071] Based on the task information of the target task, multiple delivery paths can be constructed, and then the priority score of each delivery path can be calculated based on the estimated task duration. From this, the advantages of choosing different delivery paths can be analyzed. Finally, corresponding delivery scheduling can be carried out based on the priority score of each delivery path, so as to maximize the combination of the task information of the target task to determine the optimized delivery strategy and improve the user experience.
[0072] Figure 2 FIG. 2 shows a schematic diagram of a task duration estimation device according to an embodiment of the present application. Figure 2 As shown, the device 200 includes:
[0073] The acquisition unit 210 is used to acquire task information of the target task, where the task information includes: task scenario information in at least two dimensions and feature information in several dimensions.
[0074] Task scenario information refers to the specific information about the task execution during the actual execution of the task and the information closely related to the task execution effect. Taking the delivery task as an example, after the target delivery task is started, the differences between the actual delivery results, the promised delivery task execution status and the estimated delivery task execution status may lead to multiple combinations, thus forming multiple different task scenarios. Dimensions are the specific information about the multi-level influencing factors and the correlation between the influencing factors that are closely related to the task execution effect. Taking the delivery task as an example, in a specific delivery scenario, the influencing factors include the characteristic information of the delivery personnel during the delivery process, the characteristic information of the delivery task itself, the characteristic information of the delivery area, and the information about the correlation between the delivery task and the delivery personnel. In more detail, a large number of factors that affect the delivery efficiency will also be involved in the actual delivery process, such as delivery tools, street road conditions, etc. These different task scenarios and influencing factors will have a direct or indirect impact on the delivery efficiency. Therefore, in order to estimate the time required for the delivery task more targeted and accurately, it is necessary to obtain the task information of the target task in full, so as to fully analyze the relevant influencing factors and lay the foundation for accurately estimating the time required for the target delivery task.
[0075] The model determination unit 220 determines a task scenario according to task scenario information of at least two dimensions, and selects a task duration estimation model associated with the task scenario.
[0076] An important difference between the present application and the prior art solution is that the task scenario is refined, the task scenario is determined based on task scenario information of at least two dimensions, and a task duration estimation model associated with the task scenario is used for different task scenarios, which solves the problem that the model parameters caused by the unified processing of each task scenario cannot achieve the optimal estimation for each task scenario. Therefore, by combining different task scenario information and determining a matching task duration estimation model in a targeted manner, a more suitable task duration estimation model for different task scenarios can be accurately determined, thereby promoting the accuracy of the task duration estimation results.
[0077] The estimation unit 230 inputs the feature information into the determined task duration estimation model to obtain the estimated task duration of the target task.
[0078] In the actual execution of tasks, the execution efficiency will be affected by many factors. Taking the delivery task as an example, there are many factors that affect the target delivery task, which may be due to the delivery equipment or the multi-dimensional factors such as the road conditions of the delivery block. Therefore, by inputting these feature information into the determined task duration estimation model, we can fully analyze the various situations that occur in the actual execution of the delivery task, and use the feature information of these task scene information and different combinations as the basis for analysis. According to the corresponding task duration evaluation model, instead of mechanically adopting a task duration evaluation model, the evaluation model can show strong adaptability when facing different combinations of task scene information, so as to obtain more accurate estimated task duration result data of the target task.
[0079] It can be seen that Figure 2 The device shown can, for detailed task scenarios, adopt a task duration estimation model that matches the task scenario information, adopt a machine learning approach, and use multi-dimensional data to achieve more accurate task duration estimation, thereby improving the accuracy and pertinence of the estimation.
[0080] In an embodiment of the present application, in the above-mentioned device, the model determination unit 220 is used to divide the task information of the completed task into multiple task information sets, so that each task information set corresponds to a task scenario, and the task scenario is determined by the values of each dimension of the task scenario information; according to each task information set, a task duration estimation model associated with the corresponding task scenario is trained separately.
[0081] In an embodiment of the present application, in the above-mentioned device, the model determination unit 220 is used to divide the task information in the task information set according to the task completion status, to obtain a subset of task information completed overtime and a subset of task information completed on time; and to weight the number of task information in the subset of task information completed overtime according to a preset ratio.
[0082] In an embodiment of the present application, in the above-mentioned device, the model determination unit 220 is used to obtain an XGBoost type task duration estimation model through XGBoost algorithm training.
[0083] In an embodiment of the present application, in the above-mentioned device, the dimensions of the task scenario information include: a pickup status dimension and a task completion status dimension; the value of the task completion status dimension is determined based on whether the promised completion time of the task is greater than the estimated completion time.
[0084] In an embodiment of the present application, in the above-mentioned device, the characteristic information includes at least one of the following: a deliveryman portrait, a task portrait, an area portrait, a merchant portrait, a task-deliveryman portrait, and a merchant-deliveryman portrait.
[0085] In an embodiment of the present application, in the above-mentioned device, the device also includes a delivery scheduling unit, which is used to construct multiple delivery paths according to the task information of the target task; calculate the priority score of each delivery path according to the estimated task duration; and perform delivery scheduling based on the priority score of each delivery path.
[0086] It should be noted that the specific implementation of the above-mentioned device embodiments can be carried out with reference to the specific implementation of the above-mentioned corresponding method embodiments, which will not be repeated here.
[0087] In summary, the technical solution of the present application obtains the task information of the target task, wherein the task information includes: task scenario information of at least two dimensions, and feature information of several dimensions; determines the task scenario according to the task scenario information of at least two dimensions, and selects a task duration estimation model associated with the task scenario; inputs the feature information into the determined task duration estimation model to obtain the estimated task duration of the target task. The beneficial effect is that, for the refined task scenario, a task duration estimation model matching the task scenario information can be adopted, and a machine learning method can be adopted to utilize multi-dimensional data to achieve a more accurate task duration estimation, thereby improving the accuracy and pertinence of the estimation.
[0088] It should be noted that:
[0089] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general purpose devices can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the application is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the description of the specific language above is for the purpose of disclosing the best mode of the application.
[0090] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0091] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0092] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0093] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0094] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the estimation device for the task duration according to the embodiment of the present application. The present application can also be implemented as a device or device program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0095] For example, Figure 3 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. The electronic device 300 includes a processor 310 and a memory 320 arranged to store computer executable instructions (computer readable program code). The memory 320 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 320 has a storage space 330 for storing a computer readable program code 331 for executing any method step in the above method. For example, the storage space 330 for storing computer readable program code may include individual computer readable program codes 331 for implementing various steps in the above method respectively. The computer readable program code 331 can be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card or a floppy disk. Such a computer program product is usually, for example Figure 4 The computer-readable storage medium. Figure 4 A schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 400 stores a computer-readable program code 331 for executing the method steps according to the present application, which can be read by the processor 310 of the electronic device 300. When the computer-readable program code 331 is executed by the electronic device 300, the electronic device 300 executes the various steps in the method described above. Specifically, the computer-readable program code 331 stored in the computer-readable storage medium can execute the method shown in any of the above embodiments. The computer-readable program code 331 can be compressed in an appropriate form.
[0096] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets 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 "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
Claims
1. A method for estimating task duration, characterized in that: The method includes: Obtaining task information of a target task, the task information including: task scenario information of at least two dimensions, and feature information of several dimensions, wherein the dimension of the task scenario information is divided into a pickup status dimension and a task completion status dimension, the value of the task completion status dimension is determined according to whether the promised completion time of the task is greater than the estimated completion time, and the feature information includes at least one of the following: a delivery person portrait, a task portrait, a region portrait, a merchant portrait, a task-delivery person portrait, and a merchant-delivery person portrait; Determine a task scenario according to the task scenario information of the at least two dimensions, and select a task duration estimation model associated with the task scenario, wherein the task scenarios include: a group in which delivery is completed and the estimated delivery duration is less than or equal to the promised delivery duration, a group in which delivery is completed and the estimated delivery duration is greater than the promised delivery duration, a group in which delivery is not completed and the estimated delivery duration is less than or equal to the promised delivery duration, and a group in which delivery is not completed and the estimated delivery duration is greater than the promised delivery duration; Inputting the feature information into a determined task duration estimation model to obtain an estimated task duration of the target task; Construct multiple delivery routes based on the task information of the target task; Calculate the priority score of each delivery path according to the estimated task duration; Delivery scheduling based on the priority score of each delivery route; The task duration estimation model is established and trained in the following way: Dividing the task information of the completed tasks into a plurality of task information sets, so that each task information set corresponds to a task scenario, wherein the task scenario is determined by the values of each dimension of the task scenario information; According to each task information set, a task duration estimation model associated with the corresponding task scenario is obtained by training respectively; wherein, according to each task information set, a task duration estimation model associated with the corresponding task scenario is obtained by training respectively, including: The task information in the task information set is divided according to the task completion status to obtain a task information subset completed overtime and a task information subset completed on time; The amount of task information in the task information subset completed overtime is weighted according to a preset ratio, wherein the task information in the task information subset completed on time is not weighted, and the task information in the task information subset completed overtime is weighted.
2. The method according to claim 1, characterized in that The task duration estimation model associated with the corresponding task scenario is obtained by training each task information set separately, including: The XGBoost type task duration estimation model is obtained through XGBoost algorithm training.
3. An electronic device, wherein: The electronic device comprises: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the method according to any one of claims 1 to 2.
4. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method according to any one of claims 1 to 2 is implemented.
