Method and device for determining item shelf time
By obtaining the relevant information and fulfillment rate conditions of the items, generating and merging durations to calculate the shelf time, the problem in the existing technology that items cannot be put on the shelves on time is solved, and accuracy and inventory management efficiency are improved.
Patent Information
- Application Number
- CN202011118154.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-10-19
AI Technical Summary
In the existing technology, the item combination duration is usually set by manual experience, resulting in inability to put items on the shelves on time and causing customer complaints. In order to avoid complaints, a longer duration needs to be set, resulting in increased inventory turnover days and low warehouse utilization.
By obtaining the relevant information of the items to be put on the shelf and the target fulfillment rate conditions, use the preset duration generator to generate the initial duration, and determine the offset duration based on the target allocation route and fulfillment rate conditions, merge it into the allocation duration, calculate and display the shelf time.
It improves the accuracy of items on shelves, reduces calculation errors, shortens inventory turnover days, improves warehouse utilization and inventory turnover, and reduces costs.
Smart Images

Figure CN113762844B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable medium for determining the shelf time of an item. Background Art
[0002] Inventory transfer refers to the process of transferring items from one warehouse to another. For companies with multiple warehouses or branches, transferring items between different warehouses is a common business.
[0003] For example, if an item is out of stock in a certain warehouse, the e-commerce platform will allocate it from other warehouses and sell it to customers in advance. The platform will also promise customers a combined transportation time for the item to be transferred to the warehouse and the production and delivery time to the customer after the item arrives at the warehouse. The platform will calculate the listing time based on the combined time and display it as a commitment to users.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] The combination time is usually set manually based on experience. If the combination time is set too short and the items cannot arrive at the warehouse on time within the combination time and cannot be put on the shelves on time, it may cause customer complaints. In order to reduce customer complaints due to inaccurate promised time limits, the combination time of items is usually set very long to increase the fulfillment rate. However, this will increase inventory turnover days and reduce warehouse utilization. How to give a suitable combination time and shelf time that can both meet a certain fulfillment rate and shorten unnecessary inventory turnover as much as possible is a technical problem that needs to be solved urgently. Summary of the invention
[0006] In view of this, the embodiments of the present invention provide a method, device, electronic device and computer-readable medium for determining the time for listing items, which can improve the accuracy of the time for listing items and improve the user experience; while ensuring a certain fulfillment rate, reduce the error between the calculated listing time and the actual listing time, reduce the inventory turnover days of items, reduce the problems caused by the manually configured time being too short or too long, improve warehouse utilization and inventory turnover rate, and reduce costs.
[0007] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for determining an item shelf time is provided, comprising:
[0008] Obtaining relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse, and information of the target transfer route;
[0009] Obtaining a first duration according to the relevant information and a preset duration generator;
[0010] Determining a target offset duration according to the target allocation route information and the target fulfillment rate condition;
[0011] The sum of the first duration and the target offset duration is used as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse;
[0012] The putting time of the item to be put on the shelf is calculated according to the transfer time, and the putting time is output to display the putting time to the user.
[0013] Optionally, before determining the target offset duration, the method further includes:
[0014] Determine a historical allocation route, and for each historical allocation route, obtain a test data set corresponding to the historical allocation route, the test data set including relevant information of a plurality of test samples and actual allocation durations of the plurality of test samples;
[0015] Obtaining a plurality of second durations according to the relevant information of the plurality of test samples and the preset duration generator;
[0016] Determine multiple fulfillment rate conditions;
[0017] Determine, according to the actual allocation durations of the plurality of test samples and the plurality of second durations, an offset duration corresponding to each fulfillment rate condition;
[0018] Generate a list of offset durations corresponding to the historical transfer routes according to the offset durations corresponding to each fulfillment rate condition;
[0019] Determining the target offset duration according to the target allocation route information and the target fulfillment rate condition includes: selecting the target offset duration from an offset duration list corresponding to the target allocation route according to the target allocation route information and the target fulfillment rate condition.
[0020] Optionally, determining the offset duration corresponding to each fulfillment rate condition according to the actual allocation durations of the multiple test samples and the second duration includes:
[0021] Determine a candidate duration set, where the candidate duration set includes a plurality of candidate durations;
[0022] For each fulfillment rate condition, traverse the candidate durations in the candidate duration set, determine the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition, wherein the test fulfillment rate and the average error are determined based on a third duration and the actual allocation duration of the test sample, and the third duration is the sum of the second duration and the candidate duration.
[0023] Optionally, after determining the relevant information of the items to be put on the shelf, the method further comprises: performing feature processing on the relevant information to obtain feature data;
[0024] Obtaining a first duration according to the relevant information and a preset duration generator includes: obtaining the first duration according to the characteristic data and a preset duration generator.
[0025] Optionally, feature processing of the relevant information includes: processing the relevant information into multiple feature fields, and determining the data type of each feature field, the data type including character type; and performing one-hot encoding on the feature fields whose data type is character type.
[0026] Optionally, the method also includes obtaining the preset duration generator according to the following process: obtaining a training data set, the training data set including relevant information of multiple training samples and actual allocation durations of the multiple training samples; performing feature processing on the relevant information of the training samples to obtain historical feature data; constructing a prediction model and a loss function; training the prediction model based on the historical feature data, the actual allocation durations of the multiple training samples and the loss function to obtain the preset duration generator.
[0027] Optionally, the prediction model is a gradient boosting decision tree model;
[0028] The meaning of the loss function is: if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training sample is within a preset interval, the difference is taken as a loss; if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training pseudo is not within the preset interval, K times the difference is taken as a loss, wherein K is a real number greater than 1.
[0029] Optionally, the relevant information also includes one or more of the following: issuing time, the number of items to be put on the shelves, category information of the items to be put on the shelves, information of the originating distribution center corresponding to the originating warehouse, and information of the destination distribution center corresponding to the destination warehouse, wherein the issuing time is determined according to the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse.
[0030] To achieve the above object, according to another aspect of an embodiment of the present invention, a device for determining the time when an item is put on a shelf is provided, comprising:
[0031] An information determination module, used to obtain relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse and information of the target transfer route;
[0032] A first duration determination module, configured to obtain a first duration according to the relevant information and a preset duration generator;
[0033] An offset duration determination module, used to determine a target offset duration according to the target allocation route information and the target fulfillment rate condition;
[0034] A transfer time determination module, configured to use the sum of the first time and the target offset time as the transfer time of the items to be put on the shelves from the originating warehouse to the destination warehouse;
[0035] The shelf time determination module is used to calculate the shelf time of the item to be put on the shelf according to the transfer duration, and output the shelf time to display the shelf time to the user.
[0036] Optionally, the device further comprises an offset determination module, which is used to: determine a historical allocation route, and for each historical allocation route, obtain a test data set corresponding to the historical allocation route, the test data set comprising relevant information of a plurality of test samples and actual allocation durations of the plurality of test samples; obtain a plurality of second durations according to the relevant information of the plurality of test samples and the preset duration generator; determine a plurality of fulfillment rate conditions; determine an offset duration corresponding to each fulfillment rate condition according to the actual allocation durations of the plurality of test samples and the second durations; generate an offset duration list corresponding to the historical allocation route according to the offset duration corresponding to each fulfillment rate condition;
[0037] The duration determination module is further used to select a target offset duration from an offset duration list corresponding to the target allocation route according to the information of the target allocation route and the target fulfillment rate condition.
[0038] Optionally, the offset determination module is also used to: determine a candidate duration set, the candidate duration set including multiple candidate durations; for each fulfillment rate condition, traverse the candidate durations in the candidate duration set, determine a target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition, wherein the test fulfillment rate and the average error are determined based on a third duration and the actual allocation duration of the test sample, and the third duration is the sum of the second duration and the candidate duration.
[0039] Optionally, the information determination module is further used to: perform feature processing on the relevant information to obtain feature data;
[0040] The duration determination module is further used to obtain a first duration according to the feature data and a preset duration generator.
[0041] Optionally, the information determination module is further used to: process the relevant information into multiple feature fields, and determine the data type of each feature field, the data type including character type; and perform one-hot encoding on the feature fields whose data type is character type.
[0042] Optionally, the device also includes a training module, which is used to: obtain a training data set, the training data set including relevant information of multiple training samples and actual allocation durations of the multiple training samples; perform feature processing on the relevant information of the training samples to obtain historical feature data; construct a prediction model and a loss function; train the prediction model based on the historical feature data, the actual allocation durations of the multiple training samples and the loss function to obtain the preset duration generator.
[0043] Optionally, the prediction model is a gradient boosting decision tree model;
[0044] The meaning of the loss function is: if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training sample is within a preset interval, the difference is taken as a loss; if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training pseudo is not within the preset interval, K times the difference is taken as a loss, wherein K is a real number greater than 1.
[0045] Optionally, the relevant information also includes one or more of the following: issuing time, the number of items to be put on the shelves, category information of the items to be put on the shelves, information of the originating distribution center corresponding to the originating warehouse, and information of the destination distribution center corresponding to the destination warehouse, wherein the issuing time is determined according to the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse.
[0046] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the shelf time of an item according to an embodiment of the present invention.
[0047] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for determining the shelf time of an item according to an embodiment of the present invention is implemented.
[0048] An embodiment of the above invention has the following advantages or beneficial effects: because the relevant information of the items to be put on the shelves and the target fulfillment rate conditions corresponding to the items to be put on the shelves are obtained, the relevant information includes the information of the originating warehouse, the information of the destination warehouse and the information of the target allocation route; according to the relevant information and the preset duration generator, a first duration is obtained; according to the information of the target allocation route and the target fulfillment rate conditions, a target offset duration is determined; the sum of the first duration and the target offset duration is used as the allocation duration of the items to be put on the shelves from the originating warehouse to the destination warehouse; according to the allocation duration, the shelf time of the items to be put on the shelves is calculated, and the shelf time is output to display the shelf time to the user, so the accuracy of the item shelf time can be improved, and the user experience can be improved; under the condition of ensuring a certain fulfillment rate, the error between the calculated shelf time and the actual shelf time is reduced, the inventory turnover days of the items are reduced, the problems caused by the manually configured time being too short or too long are reduced, the warehouse utilization rate and inventory turnover rate are improved, and the cost is reduced.
[0049] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0051] Figure 1 is a schematic diagram of the main process of the method for determining the shelf time of an item according to an embodiment of the present invention;
[0052] Figure 2 is a schematic diagram of a sub-process of a method for determining an item shelf time according to an embodiment of the present invention;
[0053] Figure 3 is a schematic diagram of a sub-process of a method for determining an item shelf time according to another embodiment of the present invention;
[0054] Figure 4is a schematic diagram of main modules of a device for determining the shelf time of an item according to an embodiment of the present invention;
[0055] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0056] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0058] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for determining the shelf time of an item according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0059] Step S101: obtaining relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse and information of the target transfer route;
[0060] Step S102: obtaining a first duration according to the relevant information and a preset duration generator;
[0061] Step S103: determining a target offset duration according to the target allocation route information and the target fulfillment rate condition;
[0062] Step S104: taking the sum of the first duration and the target offset duration as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse;
[0063] Step S105: Calculate the shelf time of the item to be put on the shelf according to the transfer duration, and output the shelf time to display the shelf time to the user.
[0064] For step S101, the originating warehouse refers to the warehouse that sends the items to be put on the shelves, and the destination warehouse refers to the warehouse that needs to be replenished from other places. The originating warehouse information may include the address and identification (such as the number) of the originating warehouse. The destination warehouse information may include the address and identification (such as the number) of the destination warehouse. The information of the target allocation route includes the navigation distance from the originating warehouse to the destination warehouse.
[0065] In an optional embodiment, the relevant information may also include one or more of the following: the time of dispatch, the number of items to be put on the shelves, the category information of the items to be put on the shelves, the information of the originating distribution center corresponding to the originating warehouse, and the information of the destination distribution center corresponding to the destination warehouse. Among them, the dispatch time is determined according to the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse, for example, the number of hours of the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse is used as the dispatch time. For example, the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse is 12:30:00, then the dispatch time is 12. After the task of allocating the items to be put on the shelves is dispatched to the originating warehouse, the originating warehouse still needs time to produce, and then it is sent from the originating warehouse to the destination warehouse after production, and different dispatch times will affect the production time of the originating warehouse, and then affect the dispatch time of the items to be put on the shelves from the originating warehouse to the destination warehouse. Therefore, in an embodiment of the present invention, the dispatch time is used as one of the factors for determining the dispatch time. Category refers to the category of items. In an optional embodiment, the category refers to the identification of the primary category. The information of the distribution center corresponding to the originating warehouse includes the address and identification (e.g., number) of the distribution center corresponding to the originating warehouse. The information of the distribution center corresponding to the destination warehouse includes the address and identification (e.g., number) of the distribution center corresponding to the destination warehouse. The information of the above-mentioned target transfer route may include the starting point (i.e., the location of the originating warehouse), the necessary points (the location of the originating distribution center and the location of the destination distribution center), the end point (the location of the destination warehouse) and the navigation distance of the target transfer route. The navigation distance can be obtained by inputting the starting point, necessary points and end point into the navigation application.
[0066] In an optional embodiment, the relevant information of the items to be put on the shelf can be obtained according to the following process:
[0067] Receive basic information of items to be put on the shelves, wherein the basic information includes: information of the originating warehouse, information of the destination warehouse, the time of dispatch, and the quantity of the items to be put on the shelves;
[0068] According to the basic information of the items to be put on the shelves, the corresponding extended information is matched from a preset database, wherein the extended information includes the category information of the items to be put on the shelves, the information of the originating distribution center corresponding to the originating warehouse, the information of the destination distribution center corresponding to the destination warehouse, and the information of the target transfer route;
[0069] The basic information and the extended information are used as relevant information of the items to be put on the shelves.
[0070] In an optional embodiment, after determining the relevant information of the items to be put on the shelf, the method further includes: performing feature processing on the relevant information to obtain feature data.
[0071] Specifically, the feature processing of the relevant information includes: processing the relevant information into multiple feature fields, and determining the data type of each feature field, the data type including character type; and performing one-hot encoding on the feature fields whose data type is character type.
[0072] As an example, the related information is processed into multiple feature fields according to the following Table 1.
[0073] Table 1:
[0074]
[0075]
[0076] In Table 1 above, there is a feature field whose data type is character type. In order to enable the preset duration generator to recognize, it is necessary to perform feature processing on the feature field of character type. Specifically, the feature processing on the feature field of character type is to perform one-hot encoding on the feature field of character type. One-hot encoding uses 0 and 1 to represent some parameters, and uses an N-bit state register to encode N states. For example, the number of the originating warehouse is 616, which is [0, 1, 0, 1, ... 0, 0] after one-hot encoding. No processing is required for the feature field of numerical type. The feature data includes the feature field of numerical type and the encoded data, and the encoded data refers to the data obtained after the feature field of character type is one-hot encoded.
[0077] For step S102, in an optional embodiment, as Figure 2 As shown, the duration generator can be trained according to the following process:
[0078] Step S201: Acquire a training data set, wherein the training data set includes relevant information of a plurality of training samples and actual allocation duration of the plurality of training samples;
[0079] Step S202: performing feature processing on the relevant information of the training sample to obtain historical feature data;
[0080] Step S203: constructing a prediction model and a loss function;
[0081] Step S204: training the prediction model according to the historical feature data, the actual allocation durations of the plurality of training samples and the loss function to obtain the preset duration generator.
[0082] For step S201, the relevant information of the training sample includes the number of historically transferred items, the time of issuance, the information of the originating warehouse, the information of the destination warehouse, the category information, the information of the distribution center corresponding to the originating warehouse, the information of the distribution center corresponding to the destination warehouse, and the information of the historical transfer route. The issuance time is determined according to the time when the task of allocating the training sample is sent to the originating warehouse. For example, the hour value of the time when the task of allocating the training sample is sent to the originating warehouse is used as the issuance time. For example, if the time when the task of allocating the training sample is sent to the originating warehouse is 12:15:00, the issuance time is 12. As an example, the relevant information of the training sample can be processed into feature fields according to the following Table 2.
[0083] Table 2:
[0084]
[0085]
[0086]
[0087] For step S202, in Table 2 above, there is data of character type. In order to make the model recognizable, it is necessary to perform feature processing on the character type data. Specifically, the feature processing on the character type data is to perform one-hot encoding on the character type data. One-hot encoding uses 0 and 1 to represent some parameters, and uses an N-bit state register to encode N states. For example, the number of the originating warehouse is 616, which is [0, 1, 0, 1, ... 0, 0] after one-hot encoding.
[0088] For step S203, a gradient boosting decision tree model is constructed, and its expression is shown in formula (1):
[0089]
[0090] Among them, f(b+w1x1+w2x2+…+w8x8) represents the algorithm function of the gradient boosting decision tree model, b represents the bias term, w1~w8 are the weights of x1~x8, and x1~x8 are the features in Table 1 above. Represents the output of the gradient boosting decision tree model, that is, the duration predicted by the gradient boosting decision tree model. The gradient boosting decision tree model (GBDT) is a model that achieves data classification or regression by using an additive model (i.e., a linear combination of basis functions) to continuously reduce the residuals generated during the training process.
[0091] Then, a loss function is constructed, and the meaning of the loss function is: if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training sample is within a preset interval, the difference is taken as a loss; if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training pseudo is not within the preset interval, K times the difference is taken as a loss, wherein K is a real number greater than 1.
[0092] As an example, the preset interval may be [0, 24], and K is 20. Then the expression of the loss function is as shown in the following formula (2):
[0093]
[0094] Among them, loss represents the loss, and y is the label in Table 1 above, that is, the actual allocation time of the training sample.
[0095] The loss function indicates that: if the difference between the duration predicted by the gradient boosting decision tree model and the actual allocation duration is within 0 to 24 hours, the loss is the difference between the predicted duration and the actual allocation duration; if the difference between the predicted duration and the actual allocation duration is less than 0 or greater than 24, the loss is 20 times the difference between the predicted duration and the actual allocation duration. This is because the error is within 0 to 24 hours, the predicted result has been fulfilled, and the error is within 0 to 24 hours. In this embodiment, the definition of fulfillment is that the predicted duration is greater than or equal to the actual allocation duration. If the error is greater than 24 hours or there is no fulfillment (that is, the predicted duration is less than the actual allocation duration), the difference between the predicted duration and the actual allocation duration is enlarged, that is, the proportion of the error is increased, so that the gradient boosting decision tree model focuses on learning samples with a difference greater than 24 hours or no fulfillment, so that the predicted duration is biased towards the actual allocation duration within 0 to 24 hours.
[0096] In practical applications, the lightGBM algorithm package can be used to build a gradient boosting decision tree model and train it. The training process is roughly as follows:
[0097] (1) Algorithm initialization, Indicates the predicted allocation time of the nth tree;
[0098] (2) Train the first tree f1(x); where,
[0099] f(x)=f(b+w1x1+w2x2+…+w8x8);
[0100] (3) Train the second tree f2(x), and do not adjust the first tree any more;
[0101] (4) Train the tth tree, and the t-1th tree will not be adjusted;
[0102] (5) Assume that the tth tree is trained at this time, and its objective function is shown in the following formula (3):
[0103]
[0104] in, is the loss function above, y i represents the actual allocation duration of the i-th sample, It represents the predicted allocation time of the i-th sample in the t-th tree.
[0105] The initialization value of weight w and bias b is 0. During the training process of the gradient boosting decision tree model, the gradient descent strategy is used to update the weight w and bias b. Then, the above operation is continuously repeated to find the most suitable set of parameters b and w (that is, to find a suitable set of trees), so that the difference between the allocation duration output by the model and the actual allocation duration is biased to within 0 to 24 hours, thereby obtaining the preset duration generator. Gradient Descent Optimization is the most commonly used optimization algorithm for neural network model training. For deep learning models, the gradient descent algorithm is basically used for optimization training. The gradient descent strategy refers to each round of iteration of the gradient boosting decision tree model. Among them, a=f(b+w1x1+w2x2+…+w8x8). According to the chain rule of derivation, we get Among them, z=b+w1x1+w2x2+…+w8x8, so we can find Finally, through w j :=w j -ηdw j Wherein, j=1, 2, ... 8, η is the learning rate, which is generally set to 0.01 to 0.5. In this embodiment, η=0.1.
[0106] After the preset duration generator is obtained, the characteristic data of the items to be put on the shelves may be input into the preset duration generator, thereby obtaining the first duration predicted by the preset duration generator.
[0107] For step S103, the target offset duration can be selected from the offset duration list corresponding to the target allocation route according to the target allocation route and the target fulfillment rate condition. The offset duration list can be obtained according to the following process:
[0108] Step 1: determine a historical allocation route, and for each historical allocation route, obtain a test data set corresponding to the historical allocation route, wherein the test data set includes relevant information of multiple test samples and actual allocation duration of the multiple test samples;
[0109] Step 2: obtaining a plurality of second durations according to the relevant information of the plurality of test samples and the preset duration generator;
[0110] Step 3: Determine multiple fulfillment rate conditions;
[0111] Step 4: Determine the offset duration corresponding to each fulfillment rate condition according to the actual allocation durations of the multiple test samples and the second duration;
[0112] Step 5: Generate an offset duration list corresponding to the historical transfer routes according to the offset duration corresponding to each fulfillment rate condition.
[0113] For step 1 and step 2, the test samples in the test data set are different samples from the training samples in the training data set above. In an optional embodiment, historical allocation data can be obtained and divided into training data and test data according to a preset ratio. For example, 70% of the historical allocation data is used as training data, and the remaining 30% of the historical allocation data is used as test data. After obtaining the test data, the test data is divided according to the historical allocation route to obtain a test data set corresponding to the historical allocation route, that is, the allocation routes of the test samples in the test data set are all the same route. Then, multiple second durations are obtained based on the relevant information of the test samples in the test data set and a preset duration generator.
[0114] For step 3, the fulfillment rate condition can be flexibly pre-set according to application requirements. For example, the fulfillment rate condition can be: 10% ≤ k ≤ 20%, where k represents the fulfillment rate. The fulfillment rate condition and the number of fulfillment rate conditions can be flexibly set according to application requirements, and the present invention does not limit this.
[0115] For step 4, the offset duration corresponding to each historical transfer route can be determined according to the following process:
[0116] A candidate duration set is determined, wherein the candidate duration set includes a plurality of candidate durations. As an example, the candidate duration set includes integers between 0 and 23.
[0117] For each fulfillment rate condition, traverse the candidate durations in the candidate duration set, determine the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition, wherein the test fulfillment rate and the average error are determined based on a third duration and the actual allocation duration of the test sample, and the third duration is the sum of the second duration and the candidate duration.
[0118] Select one of the candidate durations from the candidate duration set, calculate the sum of the second duration and the selected candidate duration, and use it as the third duration. Determine the number of test samples in the test data set whose third duration is greater than or equal to the actual allocation duration, and use the ratio of this number to the number of all test samples in the test data set as the test fulfillment rate. Calculate the difference between the third duration of all test samples and the actual allocation duration, and calculate the average of all differences, which is the average error. According to the above process, traverse the candidate durations in the candidate duration set in turn, determine the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition.
[0119] For example, assume that the test data set S corresponding to the historical allocation route A includes 100 test samples, the actual allocation time of the 100 test samples is 12 hours, the candidate duration set Q = [0, 1, 2, 3...23], and the fulfillment rate condition is 30% ≤ k ≤ 40%. After steps 1 and 2, among the 100 test samples, 80 test samples have a second duration of 10 hours, and 20 test samples have a second duration of 13 hours. Select 1 from the candidate duration set, then 80 test samples have a third duration of 11, and 20 test samples have a third duration of 14. The calculated test fulfillment rate is k = 20 / 100 = 20%, which does not meet the fulfillment rate condition. According to the above process, the candidate durations in the candidate duration set Q are calculated in sequence, and the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimize the average error is used as the offset duration corresponding to the fulfillment rate condition.
[0120] After determining the offset duration corresponding to each fulfillment rate condition, a list of offset durations corresponding to the historical transfer routes is generated based on the offset durations corresponding to each fulfillment rate condition. Further, a target offset duration can be selected from the list of offset durations corresponding to the target transfer route according to the target transfer route and the target fulfillment rate condition.
[0121] For step S104, the sum of the first duration and the target offset duration is used as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse. Since the first duration predicted by the duration generator has a certain error, the first duration is corrected by the target offset duration corresponding to the target transfer route, so that the transfer duration required for the items to be put on the shelves to be transferred from the originating warehouse to the destination warehouse is more accurate, and then the shelf time obtained according to the transfer time is more accurate.
[0122] For step S105, after determining the transfer time of the items to be put on the shelves from the originating warehouse to the destination warehouse, the shelf time of the items is determined based on the transfer time and the dispatch time, and the shelf time is displayed to the customer. That is, the transfer time is added to the dispatch time, and the obtained time is the shelf time.
[0123] The method for determining the time to put items on the shelves of an embodiment of the present invention obtains relevant information of the items to be put on the shelves and a target fulfillment rate condition corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse, and information of the target transfer route; obtains a first time according to the relevant information and a preset time generator; determines a target offset time according to the information of the target transfer route and the target fulfillment rate condition; uses the sum of the first time and the target offset time as the transfer time of the items to be put on the shelves from the originating warehouse to the destination warehouse; calculates the time to put the items on the shelves according to the transfer time, and outputs the time to show the time to the user. The technical means can improve the accuracy of the time to put items on the shelves and improve the user experience; while ensuring a certain fulfillment rate, reduces the error between the calculated time to put on the shelves and the actual time to put on the shelves, reduces the inventory turnover days of the items, reduces the problems caused by the time manually configured being too short or too long, improves the warehouse utilization rate and inventory turnover rate, and reduces costs.
[0124] In order to make the method for determining the shelf time of an item according to an embodiment of the present invention clearer, the following embodiment is taken as an example for description.
[0125] (1) Determine the relevant information of the items to be put on the shelf:
[0126] It is determined that Warehouse No. 3 under the distribution center (614) in City D is short of 100 items M, and needs to be transferred from Warehouse No. 1 under the distribution center (6) in City E. The time when the transfer task of item M was issued to Warehouse No. 3 under the distribution center (614) in City D is 2020-07-01 15:00:00, so the issuance time is determined to be 15:00; the first-level category of item M is food and beverage, and its ID is 1320; the navigation distance from Warehouse No. 1 under the distribution center (6) in City E to Warehouse No. 3 under the distribution center (614) in City D is 300 kilometers.
[0127] (2) Perform feature processing on the relevant information to obtain feature data.
[0128] (3) The characteristic data is input into a preset duration generator, and the first duration corresponding to the item to be put on the shelf is obtained as 70 hours.
[0129] (4) The target offset duration corresponding to the target route (from warehouse No. 1 under the distribution center (6) in city E to warehouse No. 3 under the distribution center (614) in city D) is 2 hours.
[0130] (5) The transfer time of the items to be put on the shelves from Warehouse No. 1 under the distribution center (6) in City E to Warehouse No. 3 under the distribution center (614) in City D is 72 hours (i.e. 70 hours + 2 hours).
[0131] (6) The transfer task of item M was sent to Warehouse No. 3 under the distribution center (614) in city D at 2020-07-01 15:00:00. The transfer duration is 72 hours. The estimated shelf time of the item is calculated to be 2020-07-04 15:00:00. This shelf time is presented to the customer as the promised time.
[0132] Figure 3 FIG. 1 is a flow chart of the main steps of a method for determining the shelf time of an item according to another embodiment of the present invention. Figure 3 As shown, the method includes:
[0133] Step S301: determining relevant information of the items to be put on the shelves, the relevant information including information of the originating warehouse, information of the destination warehouse and information of the target transfer route;
[0134] Step S302: performing feature processing on the relevant information to obtain feature data;
[0135] Step S303: determining a target fulfillment rate condition corresponding to the item to be put on the shelf;
[0136] Step S304: inputting the characteristic data into the preset duration generator to obtain a first duration;
[0137] Step S305: determining a target offset duration according to the target allocation route and the target fulfillment rate condition;
[0138] Step S306: The sum of the first time duration and the offset time duration is used as the transfer time duration for transferring the items to be put on the shelves from the originating warehouse to the destination warehouse.
[0139] Step S307: Calculate the shelf time of the item to be put on the shelf according to the transfer duration, and output the shelf time to display the shelf time to the user.
[0140] Among them, steps S301-S302 can refer to Figure 1The embodiment shown in the figure is not described in detail in the present invention. For step S303, in this embodiment, the target fulfillment rate condition can be selected from multiple fulfillment rate conditions when determining the offset duration list. For step S304, the preset duration generator can refer to Figure 1 The preset duration generator in .
[0141] For step S305, the target offset duration may be selected from the offset duration list corresponding to the target allocation route according to the target allocation route and the target fulfillment rate condition. The offset duration list may be obtained according to the following process:
[0142] Step 1: determine a historical allocation route, and for each historical allocation route, obtain a test data set corresponding to the historical allocation route, wherein the test data set includes relevant information of multiple test samples and actual allocation duration of the multiple test samples;
[0143] Step 2: obtaining a plurality of second durations according to the relevant information of the plurality of test samples and the preset duration generator;
[0144] Step 3: Determine multiple fulfillment rate conditions;
[0145] Step 4: Determine the offset duration corresponding to each fulfillment rate condition according to the actual allocation durations of the multiple test samples and the second duration;
[0146] Step 5: Generate an offset duration list corresponding to the historical transfer routes according to the offset duration corresponding to each fulfillment rate condition.
[0147] For step 1 and step 2, the test samples in the test data set are different samples from the training samples in the training data set above. In an optional embodiment, historical allocation data can be obtained and divided into training data and test data according to a preset ratio. For example, 70% of the historical allocation data is used as training data, and the remaining 30% of the historical allocation data is used as test data. After obtaining the test data, the test data is divided according to the historical allocation route to obtain a test data set corresponding to the historical allocation route, that is, the allocation routes of the test samples in the test data set are all the same route. Then, multiple second durations are obtained based on the relevant information of the test samples in the test data set and a preset duration generator.
[0148] For step 3, the fulfillment rate condition can be flexibly pre-set according to application requirements. For example, the fulfillment rate condition can be: 10% ≤ k ≤ 20%, where k represents the fulfillment rate. The fulfillment rate condition and the number of fulfillment rate conditions can be flexibly set according to application requirements, and the present invention does not limit this.
[0149] For step 4, the offset duration corresponding to each historical transfer route can be determined according to the following process:
[0150] A candidate duration set is determined, wherein the candidate duration set includes a plurality of candidate durations. As an example, the candidate duration set includes integers between 0 and 23.
[0151] For each fulfillment rate condition, traverse the candidate durations in the candidate duration set, determine the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition, wherein the test fulfillment rate and the average error are determined based on a third duration and the actual allocation duration of the test sample, and the third duration is the sum of the second duration and the candidate duration.
[0152] Select one of the candidate durations from the candidate duration set, calculate the sum of the second duration and the selected candidate duration, and use it as the third duration. Determine the number of test samples in the test data set whose third duration is greater than or equal to the actual allocation duration, and use the ratio of this number to the number of all test samples in the test data set as the test fulfillment rate. Calculate the difference between the third duration of all test samples and the actual allocation duration, and calculate the average of all differences, which is the average error. According to the above process, traverse the candidate durations in the candidate duration set in turn, determine the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition.
[0153] For example, assume that the test data set S corresponding to the historical allocation route A includes 100 test samples, the actual allocation time of the 100 test samples is 12 hours, the candidate duration set Q = [0, 1, 2, 3...23], and the fulfillment rate condition is 30% ≤ k ≤ 40%. After steps 1 and 2, among the 100 test samples, 80 test samples have a second duration of 10 hours, and 20 test samples have a second duration of 13 hours. Select 1 from the candidate duration set, then 80 test samples have a third duration of 11, and 20 test samples have a third duration of 14. The calculated test fulfillment rate is k = 20 / 100 = 20%, which does not meet the fulfillment rate condition. According to the above process, the candidate durations in the candidate duration set Q are calculated in sequence, and the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimize the average error is used as the offset duration corresponding to the fulfillment rate condition.
[0154] After determining the offset duration corresponding to each fulfillment rate condition, a list of offset durations corresponding to the historical transfer routes is generated based on the offset durations corresponding to each fulfillment rate condition. Furthermore, a target offset duration can be selected from the list of offset durations corresponding to the target transfer route according to the target transfer route and the target fulfillment rate condition. Furthermore, the sum of the first duration and the target offset duration is used as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse.
[0155] For step S307, after determining the transfer time of the items to be put on the shelves from the originating warehouse to the destination warehouse, the shelf time of the items is determined based on the transfer time and the dispatch time, and the shelf time is displayed to the customer. That is, the transfer time is added to the dispatch time, and the obtained time is the shelf time.
[0156] The method for determining the time to put items on the shelves provided by the embodiment of the present invention obtains relevant information of the items to be put on the shelves and the target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse and information of the target allocation route; obtains a first duration according to the relevant information and a preset duration generator; determines a target offset duration according to the information of the target allocation route and the target fulfillment rate conditions; uses the sum of the first duration and the target offset duration as the allocation duration of the items to be put on the shelves from the originating warehouse to the destination warehouse; calculates the time to put the items on the shelves according to the allocation duration, and outputs the time to put the items on the shelves, so as to display the time to the user. The technical means can improve the accuracy of the time to put items on the shelves and improve the user experience; while ensuring a certain fulfillment rate, reduces the error between the calculated time to put the items on the shelves and the actual time to put the items on the shelves, reduces the inventory turnover days of the items, reduces the problems caused by the time being too short or too long manually configured, improves the warehouse utilization rate and inventory turnover rate, and reduces costs.
[0157] Figure 4 4 is a schematic diagram of the main modules of the device 400 for determining the shelf time of an item according to an embodiment of the present invention. Figure 4 As shown, the device 400 for determining the item shelf time includes:
[0158] An information determination module 401 is used to obtain relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse, and information of the target transfer route;
[0159] A first duration determination module 402, configured to obtain a first duration according to the relevant information and a preset duration generator;
[0160] The offset duration determination module 403 is used to determine the target offset duration according to the information of the target allocation route and the target fulfillment rate condition;
[0161] A transfer duration determining module 404, configured to use the sum of the first duration and the target offset duration as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse;
[0162] The shelf time determination module 405 is used to calculate the shelf time of the item to be put on the shelf according to the transfer duration, and output the shelf time to display the shelf time to the user.
[0163] Optionally, the device further comprises an offset determination module, which is used to: determine a historical allocation route, and for each historical allocation route, obtain a test data set corresponding to the historical allocation route, the test data set comprising relevant information of a plurality of test samples and actual allocation durations of the plurality of test samples; obtain a plurality of second durations according to the relevant information of the plurality of test samples and the preset duration generator; determine a plurality of fulfillment rate conditions; determine an offset duration corresponding to each fulfillment rate condition according to the actual allocation durations of the plurality of test samples and the second durations; generate an offset duration list corresponding to the historical allocation route according to the offset duration corresponding to each fulfillment rate condition;
[0164] The offset duration determination module 403 is further configured to: select a target offset duration from an offset duration list corresponding to the target allocation route according to the information of the target allocation route and the target fulfillment rate condition.
[0165] Optionally, the offset duration determination module 403 is also used to: determine a candidate duration set, the candidate duration set including multiple candidate durations; for each fulfillment rate condition, traverse the candidate durations in the candidate duration set, determine a target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition, wherein the test fulfillment rate and the average error are determined based on a third duration and an actual allocation duration of the test sample, and the third duration is the sum of the second duration and the candidate duration.
[0166] Optionally, the information determination module 401 is further used to: perform feature processing on the relevant information to obtain feature data;
[0167] The first duration determination module 402 is further used to obtain a first duration according to the feature data and a preset duration generator.
[0168] Optionally, the information determination module 401 is further used to: process the relevant information into multiple feature fields, and determine the data type of each feature field, the data type including character type; and perform one-hot encoding on the feature fields whose data type is character type.
[0169] Optionally, the device also includes a training module, which is used to: obtain a training data set, the training data set including relevant information of multiple training samples and actual allocation durations of the multiple training samples; perform feature processing on the relevant information of the training samples to obtain historical feature data; construct a prediction model and a loss function; train the prediction model based on the historical feature data, the actual allocation durations of the multiple training samples and the loss function to obtain the preset duration generator.
[0170] Optionally, the relevant information also includes one or more of the following: issuing time, the number of items to be put on the shelves, category information of the items to be put on the shelves, information of the originating distribution center corresponding to the originating warehouse, and information of the destination distribution center corresponding to the destination warehouse, wherein the issuing time is determined according to the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse.
[0171] The device for determining the item listing time in the embodiment of the present invention can improve the accuracy of the item listing time and improve the user experience; while ensuring a certain fulfillment rate, it can reduce the error between the calculated listing time and the actual listing time, reduce the item inventory turnover days, reduce the problems caused by the manually configured time being too short or too long, improve warehouse utilization and inventory turnover rate, and reduce costs.
[0172] The above device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0173] Figure 5 An exemplary system architecture 500 is shown to which the method for determining the shelf time of an item or the apparatus for determining the shelf time of an item according to an embodiment of the present invention can be applied.
[0174] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0175] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 501, 502, 503.
[0176] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0177] The server 505 may be a server that provides various services, such as a background management server that provides support for item transfer tasks initiated by users using the terminal devices 501, 502, and 503. The background management server may analyze and process the received item transfer tasks, and feed back the processing results (shelf time) to the terminal device.
[0178] It should be noted that the method for determining the item shelf time provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for determining the item shelf time is generally set in the server 505 .
[0179] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0180] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal server device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0181] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0182] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0183] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0184] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0185] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0186] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute a limitation on the unit itself. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0187] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0188] Obtaining relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse, and information of the target transfer route;
[0189] Obtaining a first duration according to the relevant information and a preset duration generator;
[0190] Determining a target offset duration according to the target allocation route information and the target fulfillment rate condition;
[0191] The sum of the first duration and the target offset duration is used as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse;
[0192] The putting time of the item to be put on the shelf is calculated according to the transfer time, and the putting time is output to display the putting time to the user.
[0193] The technical solution of the embodiment of the present invention obtains relevant information of the items to be put on the shelves and the target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse and information of the target allocation route; obtains a first duration according to the relevant information and a preset duration generator; determines a target offset duration according to the information of the target allocation route and the target fulfillment rate conditions; uses the sum of the first duration and the target offset duration as the allocation duration of the items to be put on the shelves from the originating warehouse to the destination warehouse; calculates the shelf time of the items to be put on the shelves according to the allocation duration, and outputs the shelf time to display the shelf time to the user, so as to improve the accuracy of the item shelf time and improve the user experience; while ensuring a certain fulfillment rate, reduces the error between the calculated shelf time and the actual shelf time, reduces the inventory turnover days of the items, reduces the problems caused by the manually configured time being too short or too long, improves the warehouse utilization rate and inventory turnover rate, and reduces costs.
[0194] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining the time when an item is put on a shelf, characterized in that: include: Obtaining relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse, and information of the target transfer route; According to the relevant information and the preset duration generator, a first duration is obtained; wherein the preset duration generator is obtained according to the following process: a training data set is obtained, the training data set includes relevant information of multiple training samples and actual allocation durations of the multiple training samples; feature processing is performed on the relevant information of the training samples to obtain historical feature data; a prediction model and a loss function are constructed; according to the historical feature data, the actual allocation durations of the multiple training samples and the loss function, the prediction model is trained to obtain the preset duration generator; the prediction model is a gradient boosting decision tree model; Determining the target offset duration according to the information of the target allocation route and the target fulfillment rate condition includes: selecting the target offset duration from the offset duration list corresponding to the target allocation route according to the information of the target allocation route and the target fulfillment rate condition; wherein, before determining the target offset duration, it includes: determining the historical allocation route, and for each historical allocation route, obtaining a test data set corresponding to the historical allocation route, the test data set including relevant information of multiple test samples and the actual allocation duration of the multiple test samples; obtaining multiple second durations according to the relevant information of the multiple test samples and the preset duration generator; determining multiple fulfillment rate conditions; determining the offset duration corresponding to each fulfillment rate condition according to the actual allocation duration of the multiple test samples and the multiple second durations; generating the offset duration list corresponding to the historical allocation route according to the offset duration corresponding to each fulfillment rate condition; The sum of the first duration and the target offset duration is used as the transfer duration of the items to be put on the shelves from the originating warehouse to the destination warehouse; The putting time of the item to be put on the shelf is calculated according to the transfer time, and the putting time is output to display the putting time to the user.
2. The method according to claim 1, characterized in that Determining the offset duration corresponding to each fulfillment rate condition according to the actual allocation durations of the plurality of test samples and the second duration includes: Determine a candidate duration set, where the candidate duration set includes a plurality of candidate durations; For each fulfillment rate condition, traverse the candidate durations in the candidate duration set, determine the target candidate duration that makes the test fulfillment rate meet the fulfillment rate condition and minimizes the average error, and use the target candidate duration as the offset duration corresponding to the fulfillment rate condition, wherein the test fulfillment rate and the average error are determined based on a third duration and the actual allocation duration of the test sample, and the third duration is the sum of the second duration and the candidate duration.
3. The method according to claim 1 or 2, characterized in that: After determining the relevant information of the items to be put on the shelves, the method further includes: performing feature processing on the relevant information to obtain feature data; Obtaining a first duration according to the relevant information and a preset duration generator includes: obtaining the first duration according to the characteristic data and a preset duration generator.
4. The method according to claim 3, characterized in that Performing feature processing on the relevant information includes: Processing the relevant information into a plurality of characteristic fields, and determining a data type of each characteristic field, wherein the data type includes a character type; Perform one-hot encoding on the feature fields whose data type is character type.
5. The method according to claim 1, characterized in that The meaning of the loss function is: if the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training sample is within a preset interval, the difference is taken as the loss; If the difference between the output of the gradient boosting decision tree model and the actual allocation duration of the training sample is not within a preset interval, K times the difference is taken as a loss, where K is a real number greater than 1.
6. The method according to claim 1 or 2, characterized in that: The relevant information also includes one or more of the following: dispatch time, the number of items to be put on the shelves, category information of the items to be put on the shelves, information of the originating distribution center corresponding to the originating warehouse, and information of the destination distribution center corresponding to the destination warehouse, wherein the dispatch time is determined according to the time when the task of allocating the items to be put on the shelves is sent to the originating warehouse.
7. A device for determining the time when an item is put on a shelf, the device being used to execute the method for determining the time when an item is put on a shelf as claimed in claim 1, characterized in that: include: An information determination module, used to obtain relevant information of items to be put on the shelves and target fulfillment rate conditions corresponding to the items to be put on the shelves, wherein the relevant information includes information of the originating warehouse, information of the destination warehouse and information of the target transfer route; A first duration determination module, configured to obtain a first duration according to the relevant information and a preset duration generator; An offset duration determination module, used to determine a target offset duration according to the target allocation route information and the target fulfillment rate condition; A transfer time determination module, configured to use the sum of the first time and the target offset time as the transfer time of the items to be put on the shelves from the originating warehouse to the destination warehouse; The shelf time determination module is used to calculate the shelf time of the item to be put on the shelf according to the transfer duration, and output the shelf time to display the shelf time to the user.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
