Method and device for estimating additional charge of order

By predicting the response rate in future time periods and determining the surcharge coefficient through the response rate model, it solves the problem of relying on manual experience for surcharge decisions when the order response rate is low, and improves logistics efficiency.

CN118864028APending Publication Date: 2024-10-29SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411135373.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the existing technology, the decision to add surcharges when the order response rate is low relies on manual experience, which can easily lead to misjudgments and affect logistics efficiency.

Method used

By inputting the data to be predicted in the preset historical time period into the response rate model, the response rate in the future time period is predicted, and the surcharge is determined based on the surcharge coefficient stored in the database to ensure the accuracy of the surcharge coefficient.

Benefits of technology

This improves the response rate, thereby improving logistics efficiency and reducing the impact of manual misjudgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864028A_ABST
    Figure CN118864028A_ABST
Patent Text Reader

Abstract

The invention discloses an order additional charge estimation method and device, and the method comprises the steps: obtaining to-be-predicted data in a preset historical time period when an additional charge estimation request is received; inputting the to-be-predicted data into the response rate model to obtain the response rate of the future time period; when the response rate of the future time period is lower than a preset response rate, acquiring a scene corresponding to the additional charge evaluation request; and acquiring an additional charge coefficient corresponding to the scene from the database, and determining an additional charge according to the additional charge coefficient. The response rate of the future time period is predicted through the response rate model, when the response rate is low, the scene corresponding to the additional charge evaluation request is obtained, then the additional charge coefficient corresponding to the scene is obtained from the database, the additional charge coefficient of each scene is determined according to various conditions, the determined additional charge coefficient is accurate, and the additional charge evaluation efficiency is improved. And the response rate can be improved through the accurate additional charge coefficient, so that the logistics efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device for estimating an order surcharge. Background Art

[0002] The response rate is an indicator of whether the supply and demand in the freight industry are balanced. When supply exceeds demand, the order response rate is low. When the order response rate is low, adding a surcharge to the order can increase the driver's willingness to accept the order and improve the response rate in the region.

[0003] At present, manual strategies are generally used, which are to monitor the response rate of cities in real time and add surcharges to cities with low response rates, thereby improving the response rate of cities. However, for a specific response rate, whether a surcharge should be added and how much the surcharge should be added all depend on manual experience. If manual experience is insufficient, it is easy to make wrong judgments and affect logistics efficiency.

[0004] Therefore, how to improve logistics efficiency has become an urgent problem to be solved in this field. Summary of the invention

[0005] The present application provides a method and device for estimating order surcharges, with the aim of improving logistics efficiency.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] A method for estimating an order surcharge, comprising:

[0008] When a surcharge estimation request is received, the data to be predicted within a preset historical time period is obtained;

[0009] Inputting the data to be predicted into a response rate model to obtain a response rate in a future time period; the response rate model is pre-trained based on response sample data;

[0010] When the response rate in the future time period is lower than a preset response rate, obtaining a scenario corresponding to the surcharge estimation request;

[0011] A surcharge coefficient corresponding to the scenario is obtained from a database, and a surcharge is determined according to the surcharge coefficient; the surcharge coefficients of all scenarios are pre-stored in the database.

[0012] Optionally, the process of obtaining the response rate model by pre-training based on the response sample data includes:

[0013] Obtain the order quantity, response quantity and response rate for each grid and vehicle type combination;

[0014] Constructing sample data according to the order quantity, the response order quantity and the response rate of each grid and vehicle type combination;

[0015] Performing data preprocessing on the sample data to obtain target sample data;

[0016] Inputting the target sample data into the response rate model to obtain the sample response rate for a future time period;

[0017] Calculating the error between the sample response rate and the actual response rate to obtain a loss function;

[0018] Determining whether the loss function converges;

[0019] If the loss function converges, it is determined that the response rate model training is completed;

[0020] If the loss function has not converged, the parameters of the response rate model are adjusted, and the process returns to the step of inputting the target sample data into the response rate model to obtain the sample response rate for the future time period until the loss function converges.

[0021] Optionally, the process of pre-storing the surcharge coefficients of all scenarios in the database includes:

[0022] Acquire multiple historical sample data, and construct offline sample data based on the multiple historical sample data; the historical sample data at least includes a scenario, an order price, a surcharge coefficient, and a response rate;

[0023] Inputting the offline sample data into a trained order conversion rate model to obtain an order probability for each surcharge coefficient; the trained order conversion rate model is pre-trained based on historical order information;

[0024] Inputting the offline sample into a trained order matching rate model to obtain a matching probability of each surcharge coefficient; the trained order matching rate model is pre-trained based on the historical order information;

[0025] Multiplying the order probability with the same surcharge coefficient by the matching probability to obtain the order matching probability;

[0026] Determine the matching order quantity and the total matching transaction volume according to the order matching probability;

[0027] Based on the plurality of surcharge coefficients, the paired order quantities corresponding to the surcharge coefficients, and the paired total amounts, construct an overall planning problem;

[0028] Solving the overall planning problem using a solver to obtain a surcharge coefficient for each scenario;

[0029] The surcharge coefficients of all the scenarios are stored in the database.

[0030] Optionally, determining the paired order quantity and the paired total transaction volume according to the order pairing probability includes:

[0031] For each of the historical sample data, the historical sample data having the same scenario, the surcharge coefficient and the response rate are aggregated to obtain a plurality of buckets;

[0032] For each of the buckets, the sum of the pairing probabilities of all the orders in the bucket is calculated to obtain the number of paired orders;

[0033] The sum of all the order prices in the bucket is calculated, and the sum is multiplied by the order matching probability to obtain the total matching transaction volume.

[0034] Optionally, determining the surcharge according to the surcharge coefficient includes:

[0035] Obtaining the order price corresponding to the surcharge estimate request;

[0036] The order price is multiplied by the surcharge coefficient to obtain the surcharge.

[0037] An estimation device for order surcharge, comprising:

[0038] An acquisition unit, configured to acquire the data to be predicted within a preset historical time period when receiving a surcharge estimation request;

[0039] An input unit, used for inputting the data to be predicted into a response rate model to obtain a response rate in a future time period; the response rate model is pre-trained based on response sample data;

[0040] a scenario acquisition unit, configured to acquire a scenario corresponding to the surcharge estimation request when the response rate in the future time period is lower than a preset response rate;

[0041] The determination unit is used to obtain a surcharge coefficient corresponding to the scenario from a database and determine the surcharge according to the surcharge coefficient; the surcharge coefficients of all scenarios are pre-stored in the database.

[0042] Optionally, the input unit is specifically used for:

[0043] Obtain the order quantity, response quantity and response rate for each grid and vehicle type combination;

[0044] Constructing sample data according to the order quantity, the response order quantity and the response rate of each grid and vehicle type combination;

[0045] Performing data preprocessing on the sample data to obtain target sample data;

[0046] Inputting the target sample data into the response rate model to obtain the sample response rate for a future time period;

[0047] Calculating the error between the sample response rate and the actual response rate to obtain a loss function;

[0048] Determining whether the loss function converges;

[0049] If the loss function converges, it is determined that the response rate model training is completed;

[0050] If the loss function has not converged, the parameters of the response rate model are adjusted, and the process returns to the step of inputting the target sample data into the response rate model to obtain the sample response rate for the future time period until the loss function converges.

[0051] Optionally, the determining unit is specifically configured to:

[0052] Acquire multiple historical sample data, and construct offline sample data based on the multiple historical sample data; the historical sample data at least includes a scenario, an order price, a surcharge coefficient, and a response rate;

[0053] Inputting the offline sample data into a trained order conversion rate model to obtain an order probability for each surcharge coefficient; the trained order conversion rate model is pre-trained based on historical order information;

[0054] Inputting the offline sample into a trained order matching rate model to obtain a matching probability of each surcharge coefficient; the trained order matching rate model is pre-trained based on the historical order information;

[0055] Multiplying the order probability with the same surcharge coefficient by the matching probability to obtain the order matching probability;

[0056] Determine the matching order quantity and the total matching transaction volume according to the order matching probability;

[0057] Based on the plurality of surcharge coefficients, the paired order quantities corresponding to the surcharge coefficients, and the paired total amounts, construct an overall planning problem;

[0058] Solving the overall planning problem using a solver to obtain a surcharge coefficient for each scenario;

[0059] The surcharge coefficients of all the scenarios are stored in the database.

[0060] Optionally, the determining unit is specifically configured to:

[0061] For each of the historical sample data, the historical sample data having the same scenario, the surcharge coefficient and the response rate are aggregated to obtain a plurality of buckets;

[0062] For each of the buckets, the sum of the pairing probabilities of all the orders in the bucket is calculated to obtain the number of paired orders;

[0063] The sum of all the order prices in the bucket is calculated, and the sum is multiplied by the order matching probability to obtain the total matching transaction volume.

[0064] Optionally, the determining unit is specifically configured to:

[0065] Obtaining the order price corresponding to the surcharge estimate request;

[0066] The order price is multiplied by the surcharge coefficient to obtain the surcharge.

[0067] The technical solution provided by the present application, when receiving a surcharge valuation request, obtains the data to be predicted within a preset historical time period; inputs the data to be predicted into the response rate model to obtain the response rate of the future time period; when the response rate of the future time period is lower than the preset response rate, obtains the scenario corresponding to the surcharge valuation request; obtains the surcharge coefficient corresponding to the scenario from the database, and determines the surcharge based on the surcharge coefficient. The response rate of the future time period is predicted by the response rate model. When the response rate is low, the scenario corresponding to the surcharge valuation request is obtained, and then the surcharge coefficient corresponding to the scenario is obtained from the database. The surcharge coefficient of each scenario is determined based on multiple conditions, and the determined surcharge coefficient is accurate. An accurate surcharge coefficient can improve the response rate, thereby improving logistics efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 A flowchart of a method for estimating an order surcharge provided in an embodiment of the present application;

[0070] Figure 2 A flowchart of a response rate model training method provided in an embodiment of the present application;

[0071] Figure 3 A flowchart of a method for storing a surcharge coefficient provided in an embodiment of the present application;

[0072] Figure 4 A flowchart of a data determination method provided in an embodiment of the present application;

[0073] Figure 5 A schematic diagram of a table provided in an embodiment of the present application;

[0074] Figure 6 A schematic diagram of the architecture of an order surcharge estimation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0076] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0077] like Figure 1 FIG. 1 is a flowchart of a method for estimating an order surcharge provided in an embodiment of the present application, comprising the following steps:

[0078] S101: When a surcharge estimation request is received, data to be predicted within a preset historical time period is obtained.

[0079] The data to be predicted is the aggregated data of a certain scenario (for example, a certain grid in a city, a certain vehicle model, and a certain time period) within a preset time period. The characteristics of the aggregated data are the number of orders, the number of responses, and the response rate within the preset historical time period of the scenario.

[0080] Optionally, the preset historical time period includes but is not limited to: a time period going back 30 minutes from the current time.

[0081] For example, if the current time is 15:01, the preset historical time period is: 14:30-15:00, and when a surcharge estimation request is received, the data to be predicted within 14:30-15:00 is obtained.

[0082] S102: Input the data to be predicted into the response rate model to obtain the response rate of the future time period.

[0083] The response rate model is pre-trained based on the response sample data.

[0084] Optionally, the future time period includes but is not limited to: a time period from the current time to 30 minutes in the future.

[0085] It is understandable that if the response rate in the future time period is not lower than the preset response rate, then it means that the response rate at this time is high, and there is no need to increase the surcharge to increase the response rate.

[0086] Optionally, in another embodiment of the present application, a specific implementation of the response rate model is obtained based on the response sample data training in advance, such as Figure 2 As shown, the following steps are included:

[0087] S201: Obtain the order quantity, response order quantity and response rate for each grid and vehicle type combination.

[0088] The order quantity, response order quantity and response rate of each grid and vehicle type combination at different times (for example, different historical times) are obtained.

[0089] For example, the grids are a and b, the vehicle models are truck 1 and truck 2, and each grid and vehicle model combination is: a grid and truck 1, a grid and truck, b grid and truck 1, and b grid and truck 2. The order quantity, response order quantity, and response rate of a grid and truck 1, a grid and truck, b grid and truck 1, and b grid and truck 2 at different times (for example, from 6 o'clock to 9 o'clock) are obtained respectively.

[0090] S202: Construct sample data according to the order quantity, response order quantity and response rate of each grid and vehicle type combination.

[0091] It can be understood that sample data is constructed based on the order quantity, response order quantity and response rate of each grid and vehicle type combination, so that the response rate model can be trained based on the sample data later, so that the model can accurately predict the response rate in the future time period.

[0092] S203: Perform data preprocessing on the sample data to obtain target sample data.

[0093] Among them, data preprocessing is performed on the sample data. Specifically, the sample data is first cleaned to obtain cleaned sample data; outlier processing is performed on the cleaned data to obtain processed sample data; stratified sampling is performed on the processed sample data with different response rates to obtain target sample data.

[0094] S204: Input the target sample data into the response rate model to obtain the sample response rate for the future time period.

[0095] Optionally, the response rate model includes but is not limited to: LightGBM machine learning model, DeepAR deep time series model, TFT deep time series model.

[0096] S205: Calculate the error between the sample response rate and the actual response rate to obtain a loss function.

[0097] Among them, the error between the sample response rate and the actual response rate, that is, the absolute percentage error (ie, MAPE) between the sample response rate and the actual response rate is calculated to obtain the loss function.

[0098] S206: Determine whether the loss function converges.

[0099] If the loss function converges, step S207 is executed; if the loss function does not converge, step S208 is executed.

[0100] It should be noted that whether the loss function converges is determined. If the loss function converges, it means that MAPE is minimized at this time. If the loss function does not converge, it means that MAPE is not minimized at this time, and the response rate model needs to be further trained.

[0101] S207: Determine whether the response rate model training is completed.

[0102] S208: Adjust the parameters of the response rate model, and return to execute step S204.

[0103] It is understandable that if the loss function does not converge, the parameters of the response rate model are adjusted, and then the process returns to step S203 until the loss function converges.

[0104] S103: When the response rate in the future time period is lower than the preset response rate, a scenario corresponding to the surcharge estimation request is obtained.

[0105] The scenario corresponding to the surcharge estimation request indicates the scenario in which the surcharge estimation request is located.

[0106] Optionally, the preset response rate can be set according to actual conditions and is not specifically limited here, for example, 50%.

[0107] It should be noted that when the response rate in the future time period is lower than the preset response rate, it means that the response rate at this time is low and it is necessary to increase the response rate by increasing the surcharge, then the scenario corresponding to the surcharge estimation request is obtained.

[0108] S104: Acquire a surcharge coefficient corresponding to the scenario from a database, and determine a surcharge according to the surcharge coefficient.

[0109] The database pre-stores the surcharge coefficients of all scenarios. Optionally, the database includes but is not limited to: redis, elasticsearch.

[0110] It is understandable that the surcharge is determined based on the surcharge coefficient. Specifically, the order price needs to be obtained and the surcharge is determined based on the order price and the surcharge coefficient.

[0111] It should be noted that each scenario has a corresponding surcharge coefficient, which can be pre-stored in the database in a table form. The scenarios and surcharge coefficients stored in the database are shown in Table 1.

[0112] Table 1

[0113] City Grid Model Time Surcharge factor City A a truck 6:00 to 9:00 2% City B a truck 6:00 to 9:00 3%

[0114] Among them, the cities, grids, vehicle types and time periods in Table 1 constitute a scenario, and the surcharge coefficient corresponding to the scenario is obtained from Table 1 according to the scenario.

[0115] It should be emphasized that the contents shown in Table 1 are only for illustration.

[0116] Optionally, in another embodiment of the present application, the surcharge coefficients of all scenarios are pre-stored in a specific implementation of the database, such as Figure 3 As shown, the following steps are included:

[0117] S301: Acquire multiple historical sample data, and construct offline sample data based on the multiple historical sample data.

[0118] Among them, the historical sample data at least includes scenarios, order prices, and surcharge coefficients.

[0119] It should be noted that historical sample data is selected as offline samples that are close to the distribution of future samples. For example, if the surcharge coefficient of weekends needs to be predicted in the future, the historical sample data of several previous weekends can be used to construct offline sample data.

[0120] S302: Input the offline sample data into the trained order conversion rate model to obtain the order probability of each surcharge coefficient.

[0121] The trained order conversion rate model is pre-trained based on historical order information.

[0122] It can be understood that the specific implementation process of the trained order conversion rate model based on historical order information in advance is: obtain and construct the first target sample data based on the valuation information and the order information, wherein the characteristics of the first target sample data include order price, city, vehicle model, city response rate, and surcharge coefficient; input the first target sample data into the order conversion rate model to obtain the order probability; calculate the cross entropy between the order probability and the actual order probability to obtain the loss function of the order conversion rate model; if the loss function of the order conversion rate model converges, it is determined that the training of the order conversion rate model is completed; if the loss function of the order conversion rate model does not converge, adjust the parameters of the order conversion rate model, and return to execute the step of inputting the first target sample data into the order conversion rate model to obtain the order probability, until the loss function of the order conversion rate model converges.

[0123] It should be noted that if the user places an order within 5 minutes after the valuation, the label of the first target sample data is set to 1; if the user does not place an order within 5 minutes after the valuation, the label of the first target sample data is set to 0.

[0124] Optionally, the order conversion rate model includes but is not limited to: LightGBM, DNN.

[0125] S303: Input the offline samples into the trained order matching rate model to obtain the matching probability of each surcharge coefficient.

[0126] Among them, the trained order matching rate model is pre-trained based on historical order information.

[0127] It can be understood that the specific implementation process of the trained order matching rate model based on historical order information in advance is: obtain and construct the second target sample data based on the order information and the order matching information; wherein the characteristics of the second target sample data include order price, city, vehicle type, city response rate, and surcharge coefficient; input the second target sample data into the order matching rate model to obtain the matching probability; calculate the cross entropy between the matching probability and the actual matching probability to obtain the loss function of the order matching rate model; if the loss function of the order matching rate model converges, it is determined that the training of the order matching rate model is completed; if the loss function of the order matching rate model does not converge, adjust the parameters of the order matching rate model, and return to execute the step of inputting the second target sample data into the order matching rate model to obtain the matching probability, until the loss function of the order matching rate model converges.

[0128] It should be noted that if the driver's order is successfully matched with the user's order, the label of the second target sample data is set to 1; if the driver's order is unsuccessfully matched with the user's order, the label of the second target sample data is set to 0.

[0129] Optionally, the order matching rate model includes but is not limited to: LightGBM, DNN.

[0130] S304: Multiply the order probability with the same surcharge coefficient by the matching probability to obtain the order matching probability.

[0131] It can be understood that by multiplying the order probability P(order|valuation, surcharge coefficient = X) and the matching probability P(matching|valuation, order, surcharge coefficient = X) for the same surcharge coefficient, we can obtain the valuation-order-order matching probability P(order, matching|valuation, surcharge coefficient = X) of the user under a specific surcharge coefficient.

[0132] S305: Determine the matching order quantity and the total matching transaction volume according to the order matching probability.

[0133] It is understandable that the matching order quantity and the total matching transaction volume are determined according to the order matching probability, so that the surcharge coefficient can be subsequently determined according to the matching order quantity and the total matching transaction volume.

[0134] Optionally, in another embodiment of the present application, the specific implementation of step S305 is as follows: Figure 4 As shown, the following steps are included:

[0135] S401: For each historical sample data, the historical sample data with the same scenario, surcharge coefficient and response rate are aggregated to obtain multiple buckets.

[0136] Among them, historical sample data with consistent cities, grids, vehicle models, time periods, surcharge coefficients, and response rates are aggregated together to form a bucket.

[0137] S402: For each bucket, calculate the sum of the pairing probabilities of all orders in the bucket to obtain the number of paired orders.

[0138] Among them, the scenarios, surcharge coefficients and response rates of each bucket are different. Therefore, the sum of the matching probabilities of all orders in the bucket is calculated, and the matching order quantities of each bucket may be the same or different.

[0139] S403: Calculate the sum of all order prices in the bucket, and multiply the sum by the order matching probability to obtain the total matching transaction volume.

[0140] It can be understood that a bucket contains one or more historical sample data, each of which contains an order price. Therefore, the sum of all order prices in the bucket can be calculated, and the sum can be multiplied by the order matching probability to obtain the total matching transaction volume (i.e., matching GTV).

[0141] S306: Construct an overall planning problem based on multiple surcharge coefficients, the paired order quantities corresponding to the surcharge coefficients, and the paired total amount.

[0142] The specific expressions of the overall planning problem are shown in formula (1) and formula (2).

[0143]

[0144]

[0145] In formula (1) and formula (2), o ij The number of paired orders when using the jth surcharge coefficient for the i-th scenario; s j is the jth surcharge coefficient; x ij is a Boolean variable, which is 1 when the jth surcharge is selected for the i-th scenario, and 0 otherwise. ij is the average GTV per unit when the jth surcharge coefficient is used in the i-th scenario, lhsValue is the upper limit of the average surcharge coefficient, rhsValue is the lower limit of the average surcharge coefficient, covh k is a scene set, a and b are two specific scenes, rsp a is the real-time response rate of scenario a, rsp b is the real-time response rate of scenario b.

[0146] It can be seen from formula (1) and formula (2) that the goal of the integer programming problem is to maximize the paired GTV. The decision variable is the surcharge coefficient that should be configured for each scenario. There are three constraints: the average surcharge coefficient of the order is within a certain range; the city, grid, vehicle model, and time period are the same; the lower the response rate, the higher the surcharge coefficient; and the paired order is not negative compared to the time without surcharge.

[0147] S307: Solve the overall planning problem using a solver to obtain a surcharge coefficient for each scenario.

[0148] Optionally, the solver includes but is not limited to: ortools.

[0149] S308: Store the surcharge coefficients of all scenarios in the database.

[0150] Among them, the surcharge coefficients of all scenarios are stored in the database in the form of a table, and the content of the table can be as follows Figure 5 shown.

[0151] It should be noted that Figure 5 The content shown is for illustration only.

[0152] Optionally, in another embodiment of the present application, the specific implementation method of determining the surcharge according to the surcharge coefficient in step S104 includes:

[0153] Get the order price corresponding to the surcharge estimate request.

[0154] The order price is the order price in normal response.

[0155] Multiply the order price by the surcharge factor to get the surcharge.

[0156] Among them, the order price is multiplied by the surcharge coefficient to obtain the specific form of the surcharge, as shown in formula (3).

[0157] Surcharge = Order price * Surcharge coefficient (3)

[0158] To summarize, the response rate model is used to predict the response rate in future time periods. When the response rate is low, the scenario corresponding to the surcharge valuation request is obtained, and then the surcharge coefficient corresponding to the scenario is obtained from the database. The surcharge coefficient of each scenario is determined based on multiple conditions. The determined surcharge coefficient is accurate. An accurate surcharge coefficient can improve the response rate and thus improve logistics efficiency.

[0159] like Figure 6 , which is a schematic diagram of the architecture of an order surcharge estimation device provided in an embodiment of the present application, the estimation device includes: an acquisition unit 100, an input unit 200, a scene acquisition unit 300 and a determination unit 400.

[0160] The acquisition unit 100 is used to acquire the data to be predicted within a preset historical time period when receiving a surcharge estimation request.

[0161] The input unit 200 is used to input the data to be predicted into the response rate model to obtain the response rate of the future time period; the response rate model is pre-trained based on the response sample data.

[0162] The input unit 200 is specifically used to: obtain the order quantity, response order quantity and response rate of each grid and vehicle type combination; construct sample data according to the order quantity, response order quantity and response rate of each grid and vehicle type combination; perform data preprocessing on the sample data to obtain target sample data; input the target sample data into the response rate model to obtain the sample response rate for the future time period; calculate the error between the sample response rate and the actual response rate to obtain the loss function; determine whether the loss function converges; if the loss function converges, determine that the response rate model training is completed; if the loss function does not converge, adjust the parameters of the response rate model, and return to execute the step of inputting the target sample data into the response rate model to obtain the sample response rate for the future time period until the loss function converges.

[0163] The scenario acquisition unit 300 is used to acquire the scenario corresponding to the surcharge estimation request when the response rate in the future time period is lower than the preset response rate.

[0164] The determination unit 400 is used to obtain a surcharge coefficient corresponding to a scenario from a database, and determine a surcharge according to the surcharge coefficient; the database pre-stores the surcharge coefficients of all scenarios.

[0165] The determination unit 400 is specifically used to: obtain multiple historical sample data, and construct offline sample data based on the multiple historical sample data; the historical sample data at least includes scenarios, order prices, surcharge coefficients, and response rates; input the offline sample data into a trained order conversion rate model to obtain the order probability of each surcharge coefficient; the trained order conversion rate model is pre-trained based on historical order information; input the offline sample into a trained order matching rate model to obtain the matching probability of each surcharge coefficient; the trained order matching rate model is pre-trained based on historical order information; multiply the order probability with the same surcharge coefficient by the matching probability to obtain the order matching probability; determine the matching order quantity and the total matching transaction quantity according to the order matching probability; construct an overall planning problem based on multiple surcharge coefficients, the matching order quantity corresponding to the surcharge coefficients, and the total matching amount; use a solver to solve the overall planning problem to obtain the surcharge coefficient of each scenario; store the surcharge coefficients of all scenarios in a database.

[0166] The determination unit 400 is specifically used to: for each historical sample data, summarize the historical sample data with the same scenario, surcharge coefficient and response rate to obtain multiple buckets; for each bucket, calculate the sum of all order matching probabilities in the bucket to obtain the matching order quantity; calculate the sum of all order prices in the bucket, and multiply the sum by the order matching probability to obtain the total matching transaction volume.

[0167] The determination unit 400 is specifically used to: obtain the order price corresponding to the surcharge estimation request; and multiply the order price by the surcharge coefficient to obtain the surcharge.

[0168] To summarize, the response rate model is used to predict the response rate in future time periods. When the response rate is low, the scenario corresponding to the surcharge valuation request is obtained, and then the surcharge coefficient corresponding to the scenario is obtained from the database. The surcharge coefficient of each scenario is determined based on multiple conditions. The determined surcharge coefficient is accurate. An accurate surcharge coefficient can improve the response rate and thus improve logistics efficiency.

[0169] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0170] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0171] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for estimating an order surcharge, characterized in that: include: When a surcharge estimation request is received, the data to be predicted within a preset historical time period is obtained; Inputting the data to be predicted into a response rate model to obtain a response rate in a future time period; the response rate model is pre-trained based on response sample data; When the response rate in the future time period is lower than a preset response rate, obtaining a scenario corresponding to the surcharge estimation request; A surcharge coefficient corresponding to the scenario is obtained from a database, and a surcharge is determined according to the surcharge coefficient; the surcharge coefficients of all scenarios are pre-stored in the database.

2. The method according to claim 1, characterized in that: The process of obtaining the response rate model by pre-training based on the response sample data includes: Obtain the order quantity, response quantity and response rate for each grid and vehicle type combination; Constructing sample data according to the order quantity, the response order quantity and the response rate of each grid and vehicle type combination; Performing data preprocessing on the sample data to obtain target sample data; Inputting the target sample data into the response rate model to obtain the sample response rate for a future time period; Calculating the error between the sample response rate and the actual response rate to obtain a loss function; Determining whether the loss function converges; If the loss function converges, it is determined that the response rate model training is completed; If the loss function has not converged, the parameters of the response rate model are adjusted, and the process returns to the step of inputting the target sample data into the response rate model to obtain the sample response rate for the future time period until the loss function converges.

3. The method according to claim 1, characterized in that The process of pre-storing the surcharge coefficients of all scenarios in the database includes: Acquire multiple historical sample data, and construct offline sample data based on the multiple historical sample data; the historical sample data at least includes a scenario, an order price, a surcharge coefficient, and a response rate; Inputting the offline sample data into a trained order conversion rate model to obtain an order probability for each surcharge coefficient; the trained order conversion rate model is pre-trained based on historical order information; Inputting the offline sample into a trained order matching rate model to obtain a matching probability of each surcharge coefficient; the trained order matching rate model is pre-trained based on the historical order information; Multiplying the order probability with the same surcharge coefficient by the matching probability to obtain the order matching probability; Determine the matching order quantity and the total matching transaction volume according to the order matching probability; Based on the plurality of surcharge coefficients, the paired order quantities corresponding to the surcharge coefficients, and the paired total amounts, construct an overall planning problem; Solving the overall planning problem using a solver to obtain a surcharge coefficient for each scenario; The surcharge coefficients of all the scenarios are stored in the database.

4. The method according to claim 3, characterized in that Determining the matching order quantity and the matching total transaction volume according to the order matching probability includes: For each of the historical sample data, the historical sample data having the same scenario, the surcharge coefficient and the response rate are aggregated to obtain a plurality of buckets; For each of the buckets, the sum of the pairing probabilities of all the orders in the bucket is calculated to obtain the number of paired orders; The sum of all the order prices in the bucket is calculated, and the sum is multiplied by the order matching probability to obtain the total matching transaction volume.

5. The method according to claim 1, characterized in that The determining of the surcharge according to the surcharge coefficient comprises: Obtaining the order price corresponding to the surcharge estimate request; The order price is multiplied by the surcharge coefficient to obtain the surcharge.

6. A device for estimating an order surcharge, characterized in that: include: An acquisition unit, configured to acquire the data to be predicted within a preset historical time period when receiving a surcharge estimation request; An input unit, used for inputting the data to be predicted into a response rate model to obtain a response rate in a future time period; The response rate model is pre-trained based on response sample data; a scenario acquisition unit, configured to acquire a scenario corresponding to the surcharge estimation request when the response rate in the future time period is lower than a preset response rate; The determination unit is used to obtain a surcharge coefficient corresponding to the scenario from a database and determine the surcharge according to the surcharge coefficient; the surcharge coefficients of all scenarios are pre-stored in the database.

7. The device according to claim 6, characterized in that The input unit is specifically used for: Obtain the order quantity, response quantity and response rate for each grid and vehicle type combination; Constructing sample data according to the order quantity, the response order quantity and the response rate of each grid and vehicle type combination; Performing data preprocessing on the sample data to obtain target sample data; Inputting the target sample data into the response rate model to obtain the sample response rate for a future time period; Calculating the error between the sample response rate and the actual response rate to obtain a loss function; Determining whether the loss function converges; If the loss function converges, it is determined that the response rate model training is completed; If the loss function has not converged, the parameters of the response rate model are adjusted, and the process returns to the step of inputting the target sample data into the response rate model to obtain the sample response rate for the future time period until the loss function converges.

8. The device according to claim 6, characterized in that The determining unit is specifically used for: Acquire multiple historical sample data, and construct offline sample data based on the multiple historical sample data; the historical sample data at least includes a scenario, an order price, a surcharge coefficient, and a response rate; Inputting the offline sample data into a trained order conversion rate model to obtain an order probability for each surcharge coefficient; the trained order conversion rate model is pre-trained based on historical order information; Inputting the offline sample into a trained order matching rate model to obtain a matching probability of each surcharge coefficient; the trained order matching rate model is pre-trained based on the historical order information; Multiplying the order probability with the same surcharge coefficient by the matching probability to obtain the order matching probability; Determine the matching order quantity and the total matching transaction volume according to the order matching probability; Based on the plurality of surcharge coefficients, the paired order quantities corresponding to the surcharge coefficients, and the paired total amounts, construct an overall planning problem; Solving the overall planning problem using a solver to obtain a surcharge coefficient for each scenario; The surcharge coefficients of all the scenarios are stored in the database.

9. The device according to claim 8, characterized in that The determining unit is specifically used for: For each of the historical sample data, the historical sample data having the same scenario, the surcharge coefficient and the response rate are aggregated to obtain a plurality of buckets; For each of the buckets, the sum of the pairing probabilities of all the orders in the bucket is calculated to obtain the number of paired orders; The sum of all the order prices in the bucket is calculated, and the sum is multiplied by the order matching probability to obtain the total matching transaction volume.

10. The device according to claim 6, characterized in that The determining unit is specifically used for: Obtaining the order price corresponding to the surcharge estimate request; The order price is multiplied by the surcharge coefficient to obtain the surcharge.