Method and device for determining pickup time range, server and storage medium
By obtaining historical pickup times and estimated times, and combining them with correction factors and on-time rates, the pickup time range is calculated, which solves the problem of inaccurate pickup time range determination, improves user experience and protects the rights of delivery personnel.
Patent Information
- Application Number
- CN202111204142.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-10-15
AI Technical Summary
In existing technologies, the methods for determining the pickup time range are inaccurate for long-distance delivery tasks, leading to a decline in user experience, increased stress on delivery personnel, and even potential safety issues.
By acquiring multiple historical pickup times that match the distance between delivery capacity and the items to be picked up, a first and second estimated pickup time are determined based on these historical pickup times. The pickup time range is then calculated using a correction factor and the on-time rate of the preset pickup time range to improve accuracy.
It improves the accuracy of pickup time ranges, enhances user experience, protects the rights and interests of delivery personnel, and ensures the probability of the actual pickup time falling within the pickup time range.
Smart Images

Figure CN115994721B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a method, apparatus, server and storage medium for determining the time range for package pickup. Background Technology
[0002] With the development of internet technology, users can post delivery tasks through internet platforms. Delivery personnel accept these tasks, pick up the package from the user's first location, and then deliver it to the user's designated second location, thus completing the delivery task. To allow sufficient delivery time after pickup, a pickup time range is often set for the pickup process, informing the user that the delivery personnel will pick up the package within this time range.
[0003] In related technologies, the duration for determining the pickup time range is a preset duration (e.g., 20 minutes); the estimated delivery time and estimated delivery duration of the delivery task are determined; based on the estimated delivery time and estimated delivery duration, the maximum pickup time of the delivery task is determined (e.g., 50 minutes); based on the difference between the maximum pickup time and the preset duration, the minimum pickup time of the delivery task is determined (e.g., 30 minutes); and the time range consisting of the minimum pickup time and the maximum pickup time is determined as the pickup time range of the delivery task.
[0004] For delivery tasks where the distance between the first and second locations is significant, the estimated delivery time is longer, resulting in a larger maximum pickup time determined by the above method. Consequently, the pickup time range is larger, making it less likely that the actual pickup time will fall within this range. Therefore, the accuracy of the pickup time range determined by the above method is low. Inaccurate pickup time estimates can lead to two problems: firstly, a decline in user experience, as users may cancel delivery tasks if their packages are not picked up within the estimated time; secondly, inaccurate pickup time estimates may increase the pressure on delivery drivers, infringe on their rights, and potentially even lead to safety issues. Summary of the Invention
[0005] This application provides a method, apparatus, server, and storage medium for determining a pickup time range, thereby improving the accuracy of the determined pickup time range. The technical solution is as follows:
[0006] According to one aspect of the embodiments of this application, a method for determining a pickup time range is provided, the method comprising:
[0007] Based on the distance between the delivery capacity and the item to be picked up, obtain multiple historical pickup times that match the distance;
[0008] Based on the multiple historical pickup times, a first estimated pickup time and a second estimated pickup time for the delivery capacity are determined. The first estimated pickup time is the predicted pickup time for the item, and the second estimated pickup time is used to represent the pickup time corresponding to the predicted first on-time rate.
[0009] Based on the multiple historical pickup times, the first estimated time, and the second estimated time, the pickup time range of the delivery capacity is determined.
[0010] In one possible implementation, determining the pickup time range of the delivery capacity based on the plurality of historical pickup times, the first estimated time, and the second estimated time includes:
[0011] Based on the multiple historical pickup times and the first estimated time, a first corrected time corresponding to the first on-time rate is determined, and the first corrected time is used to correct the second estimated time.
[0012] The first pickup time is determined based on the on-time rate range in which the first on-time rate falls, the second estimated time, and the first corrected time.
[0013] Based on the second on-time rate corresponding to the preset pickup time range and the on-time rate range, a second pickup time is determined. The second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range.
[0014] The pickup time range is determined based on the first pickup time and the second pickup time.
[0015] In another possible implementation, determining the first corrected duration corresponding to the first on-time rate based on the plurality of historical pickup durations and the first estimated duration includes:
[0016] Determine the standard deviation between the multiple historical pickup times and the first estimated time;
[0017] Determine the quantile corresponding to the first on-time rate under the target statistical distribution, determine the product of the standard deviation and the quantile, and obtain the correction coefficient corresponding to the first on-time rate;
[0018] Based on the correction coefficient, the first estimated duration is corrected to obtain the first corrected duration corresponding to the first on-time rate.
[0019] In another possible implementation, determining the first pickup time based on the on-time rate range of the first on-time rate, the second estimated time, and the first corrected time includes:
[0020] Determine the third estimated time and the second corrected time corresponding to the maximum on-time rate within the on-time rate range, wherein the second corrected time is used to correct the third estimated time;
[0021] Determine the fourth estimated time and the third corrected time corresponding to the minimum on-time rate within the on-time rate range, wherein the third corrected time is used to correct the fourth estimated time;
[0022] Determine the first relationship data between the third estimated duration, the fourth estimated duration, and the second estimated duration, and the second relationship data between the second corrected duration, the third corrected duration, and the first corrected duration;
[0023] When the first on-time rate increases from the minimum on-time rate to the maximum on-time rate, the target on-time rate corresponding to the first relationship data being the same as the second relationship data is determined;
[0024] The estimated time corresponding to the target standard time rate is determined as the first pickup time.
[0025] In another possible implementation, determining the second pickup duration based on the second on-time rate corresponding to a preset pickup time range and the on-time rate range includes:
[0026] Determine the timeliness difference between the timeliness rate range and the second timeliness rate, and determine the fifth estimated time and the fourth corrected time corresponding to the timeliness rate difference;
[0027] Determine the sixth estimated time and the fifth corrected time corresponding to the maximum on-time rate difference, wherein the fifth corrected time is used to correct the sixth estimated time;
[0028] Determine the seventh estimated time and the sixth corrected time corresponding to the minimum on-time rate difference, wherein the sixth corrected time is used to correct the seventh estimated time;
[0029] Determine the third relationship data between the sixth estimated duration, the seventh estimated duration, and the fifth estimated duration, and the fourth relationship data between the fifth corrected duration, the sixth corrected duration, and the fourth corrected duration;
[0030] When the on-time rate difference increases from the minimum on-time rate difference to the maximum on-time rate difference, determine the target on-time rate difference when the third relationship data and the fourth relationship data are the same;
[0031] The estimated time corresponding to the target standard time difference is determined as the second pickup time.
[0032] In another possible implementation, obtaining multiple historical pickup times matching the distance between the delivery capacity and the item to be picked up includes:
[0033] Obtain pickup reference information, which is used to indicate reference factors affecting the pickup time of the delivery capacity;
[0034] Based on the distance and the pickup reference information, a number of historical pickup durations that match both the pickup reference information and the distance are determined.
[0035] In another possible implementation, the retrieval reference information includes at least one of the following:
[0036] The city identifier of the city where the delivery capacity is located;
[0037] Pickup date;
[0038] The type of the item;
[0039] Weather conditions for package pickup.
[0040] In another possible implementation, determining the second estimated duration based on the at least one first historical pickup duration and the at least one second historical pickup duration includes:
[0041] Determine the time difference between each first historical pickup time and the first estimated time to obtain at least one first time difference;
[0042] Determine the time difference between each second historical pickup time and the first estimated time to obtain at least one second time difference;
[0043] The second estimated duration is determined based on the first on-time rate, at least one first duration difference, and at least one second duration difference.
[0044] In another possible implementation, determining the second estimated duration based on the first on-time rate, at least one first duration difference, and the at least one second duration difference includes:
[0045] Based on the first on-time rate and the at least one first duration difference, a first estimated parameter that is less than the first estimated duration is determined;
[0046] Based on the first on-time rate and the at least one second duration difference, a second prediction parameter greater than the first estimated duration is determined;
[0047] The sum of the first estimated parameter and the second estimated parameter is determined as the second estimated duration.
[0048] According to another aspect of the embodiments of this application, a device for determining a pickup time range is provided, the device comprising:
[0049] The acquisition module is used to acquire multiple historical pickup times that match the distance between the delivery capacity and the item to be picked up;
[0050] The first determining module is used to determine a first estimated time and a second estimated time for pickup of the delivery capacity based on the multiple historical pickup times. The first estimated time is the predicted pickup time of the item, and the second estimated time is used to represent the pickup time corresponding to the predicted first on-time rate.
[0051] The second determining module is used to determine the pickup time range of the delivery capacity based on the multiple historical pickup times, the first estimated time, and the second estimated time.
[0052] In one possible implementation, the second determining module includes:
[0053] The first determining unit is configured to determine a first corrected duration corresponding to the first on-time rate based on the plurality of historical pickup durations and the first estimated duration, wherein the first corrected duration is used to correct the second estimated duration.
[0054] The second determining unit is used to determine the first pickup time based on the on-time rate range in which the first on-time rate is located, the second estimated time, and the first corrected time.
[0055] The third determining unit is used to determine the second pickup time based on the second on-time rate corresponding to the preset pickup time range and the on-time rate range. The second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range.
[0056] The fourth determining unit is used to determine the pickup time range based on the first pickup time and the second pickup time.
[0057] In another possible implementation, the first determining unit is configured to: determine the standard deviation between the plurality of historical pickup times and the first estimated time; determine the quantile corresponding to the first on-time rate under the target statistical distribution; determine the product of the standard deviation and the quantile to obtain a correction coefficient corresponding to the first on-time rate; and correct the first estimated time based on the correction coefficient to obtain a first corrected time corresponding to the first on-time rate.
[0058] In another possible implementation, the second determining unit is configured to: determine a third estimated time and a second corrected time corresponding to the maximum on-time rate within the on-time rate range, wherein the second corrected time is used to correct the third estimated time; determine a fourth estimated time and a third corrected time corresponding to the minimum on-time rate within the on-time rate range, wherein the third corrected time is used to correct the fourth estimated time; determine a first relationship data between the third estimated time, the fourth estimated time, and the second estimated time, and a second relationship data between the second corrected time, the third corrected time, and the first corrected time; when the first on-time rate increases from the minimum on-time rate to the maximum on-time rate, determine the target on-time rate corresponding to the first relationship data being the same as the second relationship data; and determine the estimated time corresponding to the target on-time rate as the first pickup time.
[0059] In another possible implementation, the third determining unit is configured to: determine the on-time rate difference between the on-time rate range and the second on-time rate; determine the fifth estimated time and the fourth corrected time corresponding to the on-time rate difference; determine the sixth estimated time and the fifth corrected time corresponding to the maximum on-time rate difference, wherein the fifth corrected time is used to correct the sixth estimated time; determine the seventh estimated time and the sixth corrected time corresponding to the minimum on-time rate difference, wherein the sixth corrected time is used to correct the seventh estimated time; determine third relationship data between the sixth estimated time, the seventh estimated time, and the fifth estimated time, and fourth relationship data between the fifth corrected time, the sixth corrected time, and the fourth corrected time; when the on-time rate difference increases from the minimum on-time rate difference to the maximum on-time rate difference, determine the target on-time rate difference corresponding to the same third relationship data and the fourth relationship data; and determine the estimated time corresponding to the target on-time rate difference as the second pickup time.
[0060] In another possible implementation, the acquisition module is used to acquire pickup reference information, which represents reference factors affecting the pickup time of the delivery capacity; and based on the distance and the pickup reference information, to determine a plurality of historical pickup times that match the pickup reference information and the distance.
[0061] In another possible implementation, the first determining module includes:
[0062] The fifth determining unit is used to determine the first estimated time based on the multiple historical pickup times and time prediction models;
[0063] The sixth determining unit is configured to determine at least one first historical pickup time and at least one second historical pickup time from the plurality of historical pickup times based on the first estimated time and the plurality of historical pickup times, wherein the first historical pickup time is less than the first estimated time and the second historical pickup time is not less than the first estimated time.
[0064] The seventh determining unit is used to determine the second estimated duration based on the at least one first historical pickup duration and the at least one second historical pickup duration.
[0065] In another possible implementation, the seventh determining unit is configured to determine the time difference between each first historical pickup time and the first estimated time, to obtain at least one first time difference; determine the time difference between each second historical pickup time and the first estimated time, to obtain at least one second time difference; and determine the second estimated time based on the first on-time rate, at least one first time difference, and the at least one second time difference.
[0066] In another possible implementation, the seventh determining unit is configured to determine a first estimated parameter that is less than the first estimated duration based on the first on-time rate and the at least one first duration difference; determine a second estimated parameter that is greater than the first estimated duration based on the first on-time rate and the at least one second duration difference; and determine the sum of the first estimated parameter and the second estimated parameter as the second estimated duration.
[0067] According to another aspect of the embodiments of this application, a server is provided, the server comprising: a processor and a memory, the memory storing at least one piece of program code, the at least one piece of program code being loaded and executed by the processor to implement the operation in the method for determining the pickup time range as described in any of the above possible implementations.
[0068] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein at least one piece of program code is stored therein, the at least one piece of program code being loaded by a processor and having operations performed as described in the method for determining the pickup time range.
[0069] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, the computer program product or computer program including computer program code stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, causing the computer device to perform the operations performed in the method for determining the pickup time range described in any of the above embodiments.
[0070] The beneficial effects of the technical solutions provided in this application include at least the following:
[0071] This application provides a method for determining a pickup time range. Since the pickup time range is determined based on historical pickup times, a first estimated time, and a second estimated time, and the second estimated time is the pickup time corresponding to a first on-time delivery rate, while ensuring the on-time delivery rate, the probability of the actual pickup time falling within the pickup time range is increased by combining historical pickup times and predicted pickup times. This improves the accuracy of the determined pickup time range, enhances user experience, and protects the rights of delivery personnel. Attached Figure Description
[0072] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0073] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0074] Figure 2 This is a flowchart illustrating a method for determining a pickup time range provided in an embodiment of this application;
[0075] Figure 3 This is a flowchart illustrating a method for determining a pickup time range provided in an embodiment of this application;
[0076] Figure 4 This is a schematic diagram of the normal distribution of historical residuals provided in an embodiment of this application;
[0077] Figure 5 This is a structural block diagram of a device for determining the pickup time range provided in an embodiment of this application;
[0078] Figure 6 This is a structural block diagram of a device for determining the pickup time range provided in an embodiment of this application;
[0079] Figure 7 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0080] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0081] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. See also... Figure 1 The implementation environment includes terminal 101 and server 102.
[0082] Terminal 101 and server 102 are connected via a wireless or wired network. Furthermore, terminal 101 can have a client installed on it, providing services from server 102. Users of terminal 101 can use this client to perform functions such as data transmission and message exchange with server 102. The client can be any client installed on terminal 101 that includes internet access capabilities. For example, the client could be a browser, social media application, game application, or food delivery application.
[0083] Terminal 101 can be a computer, mobile phone, tablet computer, or other electronic device. Server 102 can be a single terminal, a terminal cluster consisting of several terminals, or a cloud computing service center.
[0084] The method for determining the pickup time range in this application can be applied to errand-running scenarios. For example, a user publishes a delivery task via terminal 101, which involves delivering a file from location A to location B. The delivery person accepts the task, and server 102 determines the pickup time range for the delivery person's arrival at location A; for example, the pickup time range is [15 minutes, 30 minutes], and sends this pickup time range to the user's terminal 101. Terminal 101 displays the pickup time range [15 minutes, 30 minutes], allowing the user to schedule their time accordingly.
[0085] Figure 2 This is a flowchart illustrating a method for determining a pickup time range according to an embodiment of this application. See also... Figure 2 The method for determining the pickup time range includes the following steps:
[0086] 201. Based on the distance between the delivery capacity and the item to be picked up, obtain multiple historical pickup times that match the distance.
[0087] 202. Based on multiple historical pickup times, determine the first estimated pickup time and the second estimated pickup time for delivery capacity. The first estimated pickup time is the predicted pickup time for the item, and the second estimated pickup time is used to represent the pickup time corresponding to the predicted first on-time rate.
[0088] 203. Based on multiple historical pickup times, the first estimated time, and the second estimated time, determine the pickup time range of the delivery capacity.
[0089] In one possible implementation, the pickup time range of the delivery capacity is determined based on multiple historical pickup times, a first estimated time, and a second estimated time, including:
[0090] Based on multiple historical pickup times and the first estimated time, a first corrected time corresponding to the first on-time rate is determined, and the first corrected time is used to correct the second estimated time.
[0091] The first pickup time is determined based on the on-time rate range of the first on-time rate, the second estimated time, and the first corrected time.
[0092] Based on the second on-time rate and on-time rate range corresponding to the preset pickup time range, the second pickup time is determined. The second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range.
[0093] The pickup time range is determined based on the first pickup time and the second pickup time.
[0094] In another possible implementation, based on multiple historical pickup times and a first estimated time, a first correction time corresponding to the first on-time rate is determined, including:
[0095] Determine the standard deviation between multiple historical pickup times and the first estimated time;
[0096] Determine the quantile corresponding to the first on-time rate under the target statistical distribution, determine the product of the standard deviation and the quantile, and obtain the correction coefficient corresponding to the first on-time rate;
[0097] Based on the correction factor, the first estimated duration is corrected to obtain the first corrected duration corresponding to the first on-time rate.
[0098] In another possible implementation, the first pickup time is determined based on the on-time rate range of the first on-time rate, the second estimated time, and the first corrected time, including:
[0099] Determine the third estimated time and the second revised time corresponding to the maximum on-time rate within the on-time rate range. The second revised time is used to correct the third estimated time.
[0100] The fourth estimated time and the third revised time are determined based on the minimum on-time rate within the on-time rate range. The third revised time is used to correct the fourth estimated time.
[0101] Determine the first relationship data between the third estimated duration, the fourth estimated duration, and the second estimated duration, as well as the second relationship data between the second revised duration, the third revised duration, and the first revised duration;
[0102] When the first on-time rate increases from the minimum on-time rate to the maximum on-time rate, determine the target on-time rate corresponding to the first relationship data being the same as the second relationship data.
[0103] The estimated time corresponding to the target standard time rate is determined as the first pickup time.
[0104] In another possible implementation, the second pickup duration is determined based on the second on-time rate and the on-time rate range corresponding to the preset pickup time range, including:
[0105] Determine the on-time rate difference between the on-time rate range and the second on-time rate, and determine the fifth estimated time and the fourth corrected time corresponding to the on-time rate difference;
[0106] Determine the sixth estimated time and the fifth corrected time corresponding to the maximum on-time rate difference. The fifth corrected time is used to correct the sixth estimated time.
[0107] Determine the seventh estimated time and the sixth corrected time corresponding to the minimum on-time rate difference. The sixth corrected time is used to correct the seventh estimated time.
[0108] Determine the third relationship data between the sixth, seventh, and fifth estimated durations, and the fourth relationship data between the fifth, sixth, and fourth revised durations;
[0109] When the on-time rate difference increases from the minimum on-time rate difference to the maximum on-time rate difference, determine the target on-time rate difference when the third relationship data and the fourth relationship data are the same;
[0110] The estimated time corresponding to the target standard time difference is determined as the second pickup time.
[0111] In another possible implementation, based on the distance between the delivery capacity and the item to be picked up, multiple historical pickup times matching the distance are obtained, including:
[0112] Obtain pickup reference information, which indicates the factors that affect the pickup time of delivery capacity;
[0113] Based on distance and pickup reference information, determine multiple historical pickup durations that match both the pickup reference information and the distance.
[0114] In another possible implementation, the retrieval reference information includes at least one of the following:
[0115] City signage for the city where the delivery capacity is located;
[0116] Pickup date;
[0117] Types of items;
[0118] Weather conditions for package pickup.
[0119] In another possible implementation, the second estimated duration is determined based on at least one first historical pickup duration and at least one second historical pickup duration, including:
[0120] Determine the time difference between each first historical pickup time and the first estimated time to obtain at least one first time difference;
[0121] Determine the time difference between each second historical pickup time and the first estimated time to obtain at least one second time difference;
[0122] The second estimated duration is determined based on the first on-time rate, at least one first duration difference, and at least one second duration difference.
[0123] In another possible implementation, a second estimated duration is determined based on a first on-time rate, at least one first duration difference, and at least one second duration difference, including:
[0124] Based on the first on-time rate and at least one first duration difference, a first prediction parameter that is less than the first estimated duration is determined;
[0125] Based on the first on-time rate and at least one second duration difference, a second prediction parameter greater than the first estimated duration is determined;
[0126] The sum of the first and second prediction parameters is determined as the second prediction duration.
[0127] This application provides a method for determining a pickup time range. Since the pickup time range is determined based on historical pickup times, a first estimated time, and a second estimated time, and the second estimated time is the pickup time corresponding to a first on-time delivery rate, while ensuring the on-time delivery rate, the probability of the actual pickup time falling within the pickup time range is increased by combining historical pickup times and predicted pickup times. This improves the accuracy of the determined pickup time range, enhances user experience, and protects the rights of delivery personnel.
[0128] Figure 3 This is a flowchart illustrating a method for determining a pickup time range according to an embodiment of this application. See also... Figure 3 The method for determining the pickup time range includes the following steps:
[0129] 301. The server obtains multiple historical pickup times that match the distance between the delivery capacity and the item to be picked up.
[0130] Delivery capacity can be either delivery personnel or delivery robots. Items to be picked up can include documents, flowers, food, electronics, furniture, etc.
[0131] In one possible implementation, the step of the server determining the distance between the delivery capacity and the item to be picked up comprises: the server determining a first location of the delivery capacity and a second location of the item to be picked up, and determining the distance between the delivery capacity and the item to be picked up based on the first and second locations. Optionally, the location of the item to be picked up is a location specified by the user or the user's current location.
[0132] In one possible implementation, the server stores a mapping between distance and pickup time. Accordingly, this step involves the server determining multiple historical pickup times that match the distance from the stored mapping between distance and pickup time, based on the distance between the delivery capacity and the item to be picked up.
[0133] Optionally, after each delivery task is completed, the server obtains the distance and pickup time corresponding to the delivery task, establishes a correspondence between the distance and pickup time, and stores the correspondence.
[0134] In this embodiment of the application, by obtaining multiple historical pickup times that match the distance, the correlation between the multiple historical pickup times is improved, thereby improving the accuracy of the first estimated time and the second estimated time determined based on the multiple historical pickup times.
[0135] In another possible implementation, the server determines multiple historical pickup durations based on distance and pickup reference information. Accordingly, this step involves: obtaining pickup reference information, which represents the reference factors affecting pickup durations in delivery capacity; and determining multiple historical pickup durations that match both the pickup reference information and the distance, based on the distance and pickup reference information.
[0136] Optionally, the pickup reference information includes at least one of the following: city identifier of the city where the delivery capacity is located; pickup date; type of item; pickup weather; number of pending delivery tasks for the delivery capacity. The city identifier of the city where the delivery capacity is located can be city A, city B, etc.; the city where the delivery capacity is located is related to the traffic conditions of the delivery capacity, which can affect the pickup time. The pickup date includes holidays, weekdays, weekends, etc.; the pickup date is related to the number of delivery tasks, which can affect the pickup time. The type of item can be documents, flowers, food, electronics, furniture, etc.; the type of item can affect the pickup time. The pickup weather includes normal weather and severe weather; for example, sunny, cloudy, light rain, moderate rain, heavy rain, light snow, moderate snow, heavy snow, strong wind, etc. The pickup weather can affect the pickup time.
[0137] Optionally, after each delivery task is completed, the server obtains the distance, pickup reference information and pickup time corresponding to the delivery task, establishes the correspondence between the distance, pickup reference information and pickup time, and stores the correspondence.
[0138] In this embodiment, since multiple historical pickup times are obtained from two dimensions—pickup reference information and distance—the correlation between the multiple historical pickup times is further improved, thereby improving the accuracy of the first and second estimated times determined based on the multiple historical pickup times.
[0139] 302. Based on multiple historical pickup times, the server determines the first estimated pickup time and the second estimated pickup time for delivery capacity. The first estimated pickup time is the predicted pickup time for the item, and the second estimated pickup time is used to represent the pickup time corresponding to the predicted first on-time rate.
[0140] Optionally, the first estimated time is an unbiased estimated time, which refers to the pickup time of the item with the highest predicted probability. Accordingly, the server determines the average pickup time as the first estimated time.
[0141] Optionally, the second estimated time is used to represent the pickup time corresponding to the predicted first on-time rate. The first on-time rate represents the probability that the actual pickup time of the delivery capacity is less than the predicted pickup time of the item. The value of the first on-time rate ranges from 0 to 1. The first on-time rate can be 20%, 25%, 30%, 90%, 95%, 99%, etc. For example, a second estimated time P20 = 30 minutes means that the probability that the actual pickup time is less than 30 minutes is 20%.
[0142] In one possible implementation, this step is as follows: the server determines a first estimated time based on multiple historical pickup times and a time estimation model; based on the first estimated time and multiple historical pickup times, at least one first historical pickup time and at least one second historical pickup time are determined from the multiple historical pickup times, wherein the first historical pickup time is less than the first estimated time and the second historical pickup time is not less than the first estimated time; and a second estimated time is determined based on at least one first historical pickup time and at least one second historical pickup time.
[0143] The duration prediction model takes multiple historical pickup times as input labels and the first predicted duration as the output label. Optionally, the loss function of this duration prediction model is the RMSE (Root Mean Squared Error) loss function. In one possible implementation, the duration prediction model is a machine learning model. For example, the machine learning model could be a GBDT (Gradient Boosting Decision Tree) learning model, an XGBOOST (eXtreme Gradient Boosting) learning model, etc.
[0144] In one possible implementation, the statistical distribution of multiple historical pickup times follows a normal distribution. Among these, the average pickup time of the multiple historical pickup times corresponds to the largest number of statistics, meaning that the probability of the average pickup time being the same as the actual pickup time is the highest.
[0145] In one possible implementation, the second estimated duration refers to the estimated duration at the quantile. Accordingly, the step of the server determining the second estimated duration based on at least one first historical pickup duration and at least one second historical pickup duration is as follows: the server determines the duration difference between each first historical pickup duration and the first estimated duration, obtaining at least one first duration difference; determines the duration difference between each second historical pickup duration and the first estimated duration, obtaining at least one second duration difference; and determines the second estimated duration based on the first on-time rate, at least one first duration difference, and at least one second duration difference.
[0146] Optionally, the step of the server determining the second estimated duration based on the first on-time rate, at least one first duration difference, and at least one second duration difference is as follows: the server determines a first estimated parameter that is less than the first estimated duration based on the first on-time rate and at least one first duration difference; determines a second estimated parameter that is greater than the first estimated duration based on the first on-time rate and at least one second duration difference; and determines the sum of the first estimated parameter and the second estimated parameter as the second estimated duration.
[0147] In one possible implementation, the first on-time rate is represented by r, the second estimated time is represented by L, the number of historical pickup times is n, and the i-th historical pickup time can be represented by y. i The first estimated duration can be represented as y, where i ≤ n. p The first historical pickup time can be represented as y. i , where y i <y p The second historical pickup duration can be represented as y. i , where y i ≥y pAccordingly, the second estimated duration corresponding to the first on-time rate r is:
[0148]
[0149] Wherein, the first time difference is |y i -y p |, and i=y i <y p The second time difference is |y i -y p |, and i=y i ≥y p The first predicted parameter is: The second predicted parameter is:
[0150] 303. The server determines the first correction time corresponding to the first on-time rate based on multiple historical pickup times and the first estimated time. The first correction time is used to correct the second estimated time.
[0151] Optionally, the first pickup time is the maximum pickup time within the pickup time range, and the second pickup time is the minimum pickup time within the same pickup time range. The first on-time rate can be represented by α, where α ranges from 0 to 1. In this embodiment, the size of the on-time rate range in which the first on-time rate falls is not specifically limited; for example, the on-time rate range is 95% to 99%. In this embodiment, the value of the second on-time rate is not specifically limited and can be set and modified as needed. The second on-time rate can be represented by Y. For example, the second on-time rate Y is 70%.
[0152] In one possible implementation, this step is as follows: the server determines the standard deviation between multiple historical pickup times and the first estimated time; determines the quantile corresponding to the first on-time rate under the target statistical distribution, determines the product of the standard deviation and the quantile, and obtains the correction coefficient corresponding to the first on-time rate; based on the correction coefficient, the first estimated time is corrected to obtain the first corrected time corresponding to the first on-time rate.
[0153] In one possible implementation, the quantile of the first on-time rate α under the target statistical distribution can be represented by z. α Optionally, the target statistical distribution is a normal statistical distribution. Optionally, the server stores the correspondence between on-time performance rate and quantiles. Accordingly, the step for the server to determine the quantile corresponding to the first on-time performance rate under the target statistical distribution is as follows: the server determines the quantile corresponding to the first on-time performance rate from the stored correspondence between on-time performance rate and quantiles, based on the first on-time performance rate.
[0154] The first correction duration can be represented by P(α). probThe first estimated duration can be represented by the mean, and the standard deviation between multiple historical pickup times and the first estimated duration can be represented by std; correspondingly, the first corrected duration P(α) prob =mean+z α *std.
[0155] It should be noted that before determining the standard deviation, it is necessary to determine the historical residuals between the historical pickup time and the first estimated time. For the historical residuals between multiple historical pickup times and the first estimated time, the server can fit them with different probability distributions to obtain the corresponding probability distributions.
[0156] In one possible implementation, the distribution of historical residuals follows a normal distribution. For example, taking city-distance as the dimension, and using a specific errand-running business line as an example, the distribution of the determined historical residuals would be as follows: Figure 4 As shown in the figure, the x-axis represents the historical residual in seconds, and the y-axis represents the number of errand services in units. Correspondingly, the normal distribution of the historical residual is: f(x) ~ N(mean, std); where mean represents the first estimated time, and std represents the standard deviation between multiple historical pickup times and the first estimated time.
[0157] 304. The server determines the first pickup time based on the on-time rate range of the first on-time rate, the second estimated time, and the first corrected time.
[0158] In one possible implementation, this step is as follows: The server determines the third estimated time and the second corrected time corresponding to the maximum on-time rate within the on-time rate range, with the second corrected time used to correct the third estimated time; it determines the fourth estimated time and the third corrected time corresponding to the minimum on-time rate within the on-time rate range, with the third corrected time used to correct the fourth estimated time; it determines the first relationship data between the third estimated time, the fourth estimated time, and the second estimated time, as well as the second relationship data between the second corrected time, the third corrected time, and the first corrected time; when the first on-time rate increases from the minimum on-time rate to the maximum on-time rate, it determines the target on-time rate corresponding to the first relationship data being the same as the second relationship data; and it determines the estimated time corresponding to the target on-time rate as the first pickup time.
[0159] Optionally, if the first on-time rate is β%, and the on-time rate ranges from 95% to 99%, then 95% < β% < 99%; therefore:
[0160]
[0161] Wherein, the left side of the equation represents the first relational data, and the right side represents the second relational data; P99 represents the third estimated duration, and P95 represents the fourth estimated duration; P(99) probThe second correction duration is denoted by x, and P(β) represents the second estimated duration. prob For the first correction duration, P(95) prob This is the third correction duration.
[0162] One point to note is that during the process of the first on-time rate increasing from the minimum on-time rate to the maximum on-time rate, the first correction duration P(β) prob The first on-time rate β changes, and the second estimated time x also changes with the first on-time rate β. Here, the first pickup time is the second estimated time corresponding to the change in the first on-time rate to the target on-time rate.
[0163] In this embodiment, since the high quantile value is nonlinear, the probability distribution of the estimated pickup time is used to approximate the solution of the first pickup time, thereby improving the accuracy of determining the first pickup time.
[0164] 305. The server determines the second pickup time based on the second on-time rate and the on-time rate range corresponding to the preset pickup time range. The second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range.
[0165] In one possible implementation, the server maximizes the proportion of actual pickup times falling within a fixed pickup time range. Accordingly, this step involves: the server determining the on-time rate difference between the on-time rate range and the second on-time rate; determining the fifth estimated time and the fourth corrected time corresponding to the on-time rate difference; determining the sixth estimated time and the fifth corrected time corresponding to the maximum on-time rate difference, with the fifth corrected time used to correct the sixth estimated time; determining the seventh estimated time and the sixth corrected time corresponding to the minimum on-time rate difference, with the sixth corrected time used to correct the seventh estimated time; determining the third relationship data between the sixth, seventh, and fifth estimated times, and the fourth relationship data between the fifth, sixth, and fourth corrected times; when the on-time rate difference increases from the minimum to the maximum on-time rate difference, determining the target standard time rate difference corresponding to the same third and fourth relationship data; and determining the estimated time corresponding to the target standard time rate difference as the second pickup time.
[0166] In this embodiment, the value of the second on-time rate is not specifically limited and can be set and modified as needed. The second on-time rate can be represented by Y. For example, the second on-time rate Y is 70%.
[0167] Optionally, the first on-time rate is β%, and the on-time rate range is 95% to 99%; then, 95% < β% < 99%; the second on-time rate Y is 70%, and the on-time rate difference between the on-time rate range and the second on-time rate is (β-Y)%, then 25% < β-Y < 30%; that is, the minimum on-time rate difference is 25%, and the maximum on-time rate difference is 30%, then:
[0168]
[0169] In this equation, the left side represents the third relation data, and the right side represents the fourth relation data; y represents the fifth estimated duration corresponding to the on-time rate difference, and P(β-Y) prob P(30) represents the fourth estimated time corresponding to the on-time rate difference, P30 represents the sixth estimated time corresponding to the maximum on-time rate difference, and P25 represents the seventh estimated time corresponding to the minimum on-time rate difference; prob P(25) represents the fifth correction duration corresponding to the maximum on-time performance difference. prob This is the sixth correction duration corresponding to the minimum on-time rate difference.
[0170] One point to note is that, during the process of the on-time rate difference increasing from the minimum to the maximum on-time rate difference, the fourth correction duration P(β-Y) is... prob The fifth estimated time y varies with the on-time rate difference β-Y. Specifically, the second pickup time is the fifth estimated time corresponding to the change in on-time rate difference to the target on-time rate difference.
[0171] In this embodiment, since the high quantile value is nonlinear, the second pickup time is approximated by the probability distribution of the pickup time prediction, which improves the accuracy of determining the second pickup time.
[0172] 306. The server determines the pickup time range based on the first pickup duration and the second pickup duration.
[0173] In one possible implementation, this step is as follows: the server determines the first pickup duration as the right endpoint of the pickup time range and the second pickup duration as the left endpoint of the pickup time range, thus obtaining the pickup time range.
[0174] In another possible implementation, the server presets an endpoint duration, and determines the pickup duration with the largest value from the preset endpoint duration and the first pickup duration as the right endpoint of the pickup time range; the server presets a start duration, and determines the pickup duration with the largest value from the preset start duration and the second pickup duration as the left endpoint of the pickup time range, thus obtaining the pickup time range.
[0175] Optionally, the preset endpoint duration is not less than the first preset duration. In this embodiment, the value of the first preset duration is not specifically limited and can be set and modified as needed. For example, the first preset duration is 20 minutes. Optionally, if the preset endpoint duration is 20 minutes and the first pickup duration is greater than 20 minutes, then the first pickup duration is determined as the right endpoint of the pickup time range; if the first pickup duration is less than 20 minutes, then 20 minutes is determined as the right endpoint. Optionally, the right endpoint of the pickup time range can be represented by t2, then t2 = max(20 minutes, first pickup duration).
[0176] In this embodiment of the application, since the pickup time with a larger value is determined as the right end of the pickup time range, the probability that the actual pickup time is less than the maximum pickup time is increased, thus improving the on-time delivery rate of the delivery personnel.
[0177] Optionally, the starting time duration is not less than the second preset duration. In this embodiment, the value of the second preset duration is not specifically limited and can be set and modified as needed.
[0178] In one possible implementation, the starting time is a preset fixed value. For example, the preset starting time is 5 minutes. If the second pickup time is greater than 5 minutes, then the second pickup time is determined as the left endpoint of the pickup time range; if the second pickup time is less than 5 minutes, then 5 minutes is determined as the left endpoint of the pickup time range. Optionally, the left endpoint of the pickup time range can be represented by t1, then t1 = max(5 minutes, second pickup time).
[0179] In another possible implementation, the server can also determine a preset starting time based on the first pickup duration. The implementation methods for the server to determine the preset starting time based on the first pickup duration include the following three:
[0180] In the first method, the server determines a preset multiple of the first pickup time as the starting time. In this embodiment, the value of the preset multiple is not specifically limited and can be set and modified as needed. For example, if the preset multiple is 0.3, then the preset starting time is: first pickup time * 0.3.
[0181] The second method involves the server determining the starting time as the difference between the initial pickup time and a preset pickup time range. In this embodiment, the preset pickup time range is not specifically limited and can be set and modified as needed. For example, if the preset pickup time range is 25 minutes, then the preset starting time is: initial pickup time - 25 minutes.
[0182] In another possible implementation, the server determines the duration of the pickup time range as follows: the server determines the duration of the pickup time range to be a preset duration; or, the server determines the duration of the pickup time range to be a preset multiple of the first pickup time; or, the server determines the duration of the second on-time rate to be the preset on-time rate.
[0183] In this embodiment, the values of the preset duration, preset multiplier, and preset on-time rate are not specifically limited and can be set and modified as needed. For example, the preset duration is 25 minutes, the preset multiplier is 0.7, and the preset on-time rate is 80%. The corresponding pickup time range durations are: 25 minutes, the first pickup time * 0.7, and the duration corresponding to an 80% probability that the actual pickup time falls within the pickup time range. It should be noted that the pickup time range duration is not less than 5 minutes. Optionally, the preset duration value is not less than 5 minutes.
[0184] The third method involves the server determining the pickup time with the largest value from multiple starting time durations and second pickup time durations determined by various methods, as the preset starting time duration. Accordingly, the steps for the server to determine the preset starting time duration are as follows: the server determines a preset multiple of the first pickup time duration as the first starting time duration; the server determines the difference between the first pickup time duration and the preset pickup time range as the second starting time duration; and the server determines the pickup time with the largest value from the first starting time duration, the second starting time duration, and the second pickup time duration as the preset starting time duration.
[0185] For example, the starting time can be determined in several different ways: 5 minutes, first pickup time * 0.3, first pickup time - 25 minutes, and second pickup time. The server determines the preset starting time = max(5 minutes, second pickup time, ending time * 0.3, ending time - 25 minutes).
[0186] In this embodiment of the application, since the pickup time with the larger value is determined as the minimum pickup time from multiple starting time durations determined by multiple different methods, the pickup time with a value that is too small does not conform to the actual situation, thereby improving the accuracy of the determined pickup time range.
[0187] It should be noted that after the server determines the pickup time range, it can also display this range on the terminal. The specific steps are as follows: the server sends the pickup time range to the terminal, the terminal receives the pickup time range, and displays the received pickup time range on the screen.
[0188] This application provides a method for determining a pickup time range. Since the pickup time range is determined based on historical pickup times, a first estimated time, and a second estimated time, and the second estimated time is the pickup time corresponding to a first on-time delivery rate, while ensuring the on-time delivery rate, the probability of the actual pickup time falling within the pickup time range is increased by combining historical pickup times and predicted pickup times. This improves the accuracy of the determined pickup time range, enhances user experience, and protects the rights of delivery personnel.
[0189] Figure 5 This is a schematic diagram of a device for determining a pickup time range according to an embodiment of this application. See also... Figure 5 The device includes:
[0190] The acquisition module 501 is used to acquire multiple historical pickup times that match the distance between the delivery capacity and the item to be picked up.
[0191] The first determining module 502 is used to determine the first estimated time and the second estimated time for pickup based on multiple historical pickup times. The first estimated time is the predicted pickup time for the item, and the second estimated time is used to represent the pickup time corresponding to the predicted first on-time rate.
[0192] The second determining module 503 is used to determine the pickup time range of the delivery capacity based on multiple historical pickup times, a first estimated time, and a second estimated time.
[0193] In one possible implementation, see Figure 6 The second determining module 503 includes:
[0194] The first determining unit 5031 is used to determine the first corrected time corresponding to the first on-time rate based on multiple historical pickup times and the first estimated time. The first corrected time is used to correct the second estimated time.
[0195] The second determining unit 5032 is used to determine the first pickup time based on the on-time rate range in which the first on-time rate is located, the second estimated time and the first corrected time.
[0196] The third determining unit 5033 is used to determine the second pickup time based on the second on-time rate and the on-time rate range corresponding to the preset pickup time range. The second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range.
[0197] The fourth determining unit 5034 is used to determine the pickup time range based on the first pickup time and the second pickup time.
[0198] In another possible implementation, the first determining unit 5031 is used to determine the standard deviation between multiple historical pickup times and the first estimated time; determine the quantile corresponding to the first on-time rate under the target statistical distribution; determine the product of the standard deviation and the quantile to obtain the correction coefficient corresponding to the first on-time rate; and correct the first estimated time based on the correction coefficient to obtain the first corrected time corresponding to the first on-time rate.
[0199] In another possible implementation, the second determining unit 5032 is used to determine the third estimated time and the second corrected time corresponding to the maximum on-time rate within the on-time rate range, wherein the second corrected time is used to correct the third estimated time; determine the fourth estimated time and the third corrected time corresponding to the minimum on-time rate within the on-time rate range, wherein the third corrected time is used to correct the fourth estimated time; determine the first relationship data between the third estimated time, the fourth estimated time, and the second estimated time, and the second relationship data between the second corrected time, the third corrected time, and the first corrected time; when the first on-time rate increases from the minimum on-time rate to the maximum on-time rate, determine the target standard time rate corresponding to the first relationship data being the same as the second relationship data; and determine the estimated time corresponding to the target standard time rate as the first pickup time.
[0200] In another possible implementation, the third determining unit 5033 is used to determine the on-time rate difference between the on-time rate range and the second on-time rate; determine the fifth estimated time and the fourth corrected time corresponding to the on-time rate difference; determine the sixth estimated time and the fifth corrected time corresponding to the maximum on-time rate difference, with the fifth corrected time used to correct the sixth estimated time; determine the seventh estimated time and the sixth corrected time corresponding to the minimum on-time rate difference, with the sixth corrected time used to correct the seventh estimated time; determine the third relationship data between the sixth estimated time, the seventh estimated time, and the fifth estimated time, and the fourth relationship data between the fifth corrected time, the sixth corrected time, and the fourth corrected time; when the on-time rate difference increases from the minimum on-time rate difference to the maximum on-time rate difference, determine the target standard time rate difference corresponding to the same third relationship data and fourth relationship data; and determine the estimated time corresponding to the target standard time rate difference as the second pickup time.
[0201] In another possible implementation, the acquisition module 501 is used to acquire pickup reference information, which represents the reference factors affecting the pickup time of delivery capacity; based on the distance and the pickup reference information, multiple historical pickup times that match the pickup reference information and the distance are determined.
[0202] In another possible implementation, see [link to previous section]. Figure 6 The first determining module 502 includes:
[0203] The fifth determining unit 5021 is used to determine the first estimated time based on multiple historical pickup times and time prediction models;
[0204] The sixth determining unit 5022 is used to determine at least one first historical pickup time and at least one second historical pickup time from multiple historical pickup times based on the first estimated time and multiple historical pickup times, wherein the first historical pickup time is less than the first estimated time and the second historical pickup time is not less than the first estimated time.
[0205] The seventh determining unit 5023 is used to determine the second estimated duration based on at least one first historical pickup duration and at least one second historical pickup duration.
[0206] In another possible implementation, the seventh determining unit 5023 is used to determine the time difference between each first historical pickup time and the first estimated time to obtain at least one first time difference; determine the time difference between each second historical pickup time and the first estimated time to obtain at least one second time difference; and determine the second estimated time based on the first on-time rate, at least one first time difference and at least one second time difference.
[0207] In another possible implementation, the seventh determining unit 5023 is used to determine a first estimated parameter that is less than the first estimated duration based on the first on-time rate and at least one first duration difference; to determine a second estimated parameter that is greater than the first estimated duration based on the first on-time rate and at least one second duration difference; and to determine the sum of the first estimated parameter and the second estimated parameter as the second estimated duration.
[0208] This application provides a device for determining a pickup time range. Since the pickup time range is determined based on historical pickup times, a first estimated time, and a second estimated time, and the second estimated time is the pickup time corresponding to a first on-time delivery rate, while ensuring the on-time delivery rate, the device maximizes the probability that the actual pickup time falls within the pickup time range by using historical pickup times and predicted pickup times. This improves the accuracy of the determined pickup time range, enhances user experience, and protects the rights of delivery personnel.
[0209] It should be noted that the above-described device for determining the pickup time range is only illustrated by the division of the functional modules described above. In practical applications, the functions described above can be assigned to different functional modules as needed, that is, the internal structure of the server can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the above-described device for determining the pickup time range and the method for determining the pickup time range belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0210] Figure 7This is a schematic diagram of a server structure provided in an embodiment of this application. The server 700 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 701 and one or more memories 702. The memories 702 store at least one line of program code, which is loaded and executed by the processor 701 to implement the method for determining the retrieval time range provided in the various method embodiments described above. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated upon here.
[0211] In some embodiments, a computer-readable storage medium is also provided, storing at least one piece of program code, which is loaded and executed by an electronic device to implement the method for determining the retrieval time range in the above embodiments. The computer-readable storage medium may be a memory. For example, the computer-readable storage medium may be ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage devices, etc.
[0212] In some embodiments, a computer program product or computer program is provided, comprising computer program code stored in a computer-readable storage medium. A terminal's processor reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the method for determining the pickup time range provided in various alternative implementations of the above aspects.
[0213] In some embodiments, the computer program involved in the present application embodiments may be deployed and executed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.
[0214] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a storage medium, such as a read-only memory, a disk, or an optical disk.
[0215] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the protection scope of the present application.
Claims
1. A method for determining a pickup time range, characterized in that, The method includes: Based on the distance between the delivery capacity and the item to be picked up, obtain multiple historical pickup times that match the distance; Based on the multiple historical pickup times and time prediction models, the first estimated pickup time for the delivery capacity is determined; Based on the first estimated time and the plurality of historical pickup times, at least one first historical pickup time and at least one second historical pickup time are determined from the plurality of historical pickup times, wherein the first historical pickup time is less than the first estimated time and the second historical pickup time is not less than the first estimated time. Based on the at least one first historical pickup time and the at least one second historical pickup time, a second estimated time is determined, wherein the second estimated time is used to represent the pickup time corresponding to the predicted first on-time rate; Based on the multiple historical pickup times and the first estimated time, a first corrected time corresponding to the first on-time rate is determined, and the first corrected time is used to correct the second estimated time. The first pickup time is determined based on the on-time rate range in which the first on-time rate falls, the second estimated time, and the first corrected time. Based on the second on-time rate corresponding to the preset pickup time range and the on-time rate range, a second pickup time is determined. The second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range. The pickup time range is determined based on the first pickup time and the second pickup time.
2. The method according to claim 1, characterized in that, The step of determining the first corrected time corresponding to the first on-time rate based on the multiple historical pickup times and the first estimated time includes: Determine the standard deviation between the multiple historical pickup times and the first estimated time; Determine the quantile corresponding to the first on-time rate under the target statistical distribution, determine the product of the standard deviation and the quantile, and obtain the correction coefficient corresponding to the first on-time rate; Based on the correction coefficient, the first estimated duration is corrected to obtain the first corrected duration corresponding to the first on-time rate.
3. The method according to claim 1, characterized in that, The step of determining the first pickup time based on the on-time rate range of the first on-time rate, the second estimated time, and the first corrected time includes: Determine the third estimated time and the second corrected time corresponding to the maximum on-time rate within the on-time rate range, wherein the second corrected time is used to correct the third estimated time; Determine the fourth estimated time and the third corrected time corresponding to the minimum on-time rate within the on-time rate range, wherein the third corrected time is used to correct the fourth estimated time; Determine the first relationship data between the third estimated duration, the fourth estimated duration, and the second estimated duration, and the second relationship data between the second corrected duration, the third corrected duration, and the first corrected duration; When the first on-time rate increases from the minimum on-time rate to the maximum on-time rate, the target on-time rate corresponding to the first relationship data being the same as the second relationship data is determined; The estimated time corresponding to the target standard time rate is determined as the first pickup time.
4. The method according to claim 1, characterized in that, The determination of the second pickup duration based on the second on-time rate corresponding to the preset pickup time range and the on-time rate range includes: Determine the timeliness difference between the timeliness rate range and the second timeliness rate, and determine the fifth estimated time and the fourth corrected time corresponding to the timeliness rate difference; Determine the sixth estimated time and the fifth corrected time corresponding to the maximum on-time rate difference, wherein the fifth corrected time is used to correct the sixth estimated time; Determine the seventh estimated time and the sixth corrected time corresponding to the minimum on-time rate difference, wherein the sixth corrected time is used to correct the seventh estimated time; Determine the third relationship data between the sixth estimated duration, the seventh estimated duration, and the fifth estimated duration, and the fourth relationship data between the fifth corrected duration, the sixth corrected duration, and the fourth corrected duration; When the on-time rate difference increases from the minimum on-time rate difference to the maximum on-time rate difference, determine the target on-time rate difference when the third relationship data and the fourth relationship data are the same; The estimated time corresponding to the target standard time difference is determined as the second pickup time.
5. The method according to claim 1, characterized in that, The method of obtaining multiple historical pickup times matching the distance between delivery capacity and the item to be picked up includes: Obtain pickup reference information, which is used to indicate reference factors affecting the pickup time of the delivery capacity; Based on the distance and the pickup reference information, a number of historical pickup durations that match both the pickup reference information and the distance are determined.
6. The method according to claim 5, characterized in that, The item retrieval reference information includes at least one of the following: The city identifier of the city where the delivery capacity is located; Pickup date; The type of the item; Weather conditions for package pickup.
7. The method according to claim 1, characterized in that, The step of determining the second estimated duration based on the at least one first historical pickup duration and the at least one second historical pickup duration includes: Determine the time difference between each first historical pickup time and the first estimated time to obtain at least one first time difference; Determine the time difference between each second historical pickup time and the first estimated time to obtain at least one second time difference; The second estimated duration is determined based on the first on-time rate, at least one first duration difference, and at least one second duration difference.
8. The method according to claim 7, characterized in that, The step of determining the second estimated duration based on the first on-time rate, at least one first duration difference, and at least one second duration difference includes: Based on the first on-time rate and the at least one first duration difference, a first estimated parameter that is less than the first estimated duration is determined; Based on the first on-time rate and the at least one second duration difference, a second prediction parameter greater than the first estimated duration is determined; The sum of the first estimated parameter and the second estimated parameter is determined as the second estimated duration.
9. A device for determining the time range for item pickup, characterized in that, The device includes: The acquisition module is used to acquire multiple historical pickup times that match the distance between the delivery capacity and the item to be picked up; The first determining module is used to determine the first estimated time for pickup of the delivery capacity based on the multiple historical pickup times and time prediction models. The second determining module is used to determine at least one first historical pickup time and at least one second historical pickup time from the plurality of historical pickup times based on the first estimated time and the plurality of historical pickup times, wherein the first historical pickup time is less than the first estimated time and the second historical pickup time is not less than the first estimated time. The second determining module is further configured to determine a second estimated time based on the at least one first historical pickup time and the at least one second historical pickup time, wherein the second estimated time is used to represent the pickup time corresponding to the predicted first on-time rate; The third determining module is used to determine the first corrected time corresponding to the first on-time rate based on the multiple historical pickup times and the first estimated time, and the first corrected time is used to correct the second estimated time. The third determining module is further configured to determine the first pickup time based on the on-time rate range in which the first on-time rate is located, the second estimated time, and the first corrected time. The third determining module is further configured to determine a second pickup time based on a second on-time rate corresponding to a preset pickup time range and the on-time rate range, wherein the second on-time rate is used to represent the probability that the actual pickup time of the delivery capacity falls within the preset pickup time range; The third determining module is further configured to determine the pickup time range based on the first pickup time and the second pickup time.
10. A server, characterized in that, The server includes: A processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to perform the operation in the method for determining the pickup time range according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction, which is loaded and executed by a processor to perform the operations performed in the method for determining the pickup time range as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Data processing method and device, model training method and device, electronic equipment and storage medium
CN111598487A
