CN115345716A - Method, system, medium and electronic device for estimating order fulfillment duration - Google Patents

Method, system, medium and electronic device for estimating order fulfillment duration Download PDF

Info

Publication number
CN115345716A
CN115345716A CN202211265730.5A CN202211265730A CN115345716A CN 115345716 A CN115345716 A CN 115345716A CN 202211265730 A CN202211265730 A CN 202211265730A CN 115345716 A CN115345716 A CN 115345716A
Authority
CN
China
Prior art keywords
order
duration
data
fulfillment
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211265730.5A
Other languages
Chinese (zh)
Other versions
CN115345716B (en
Inventor
陈瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonghui Technology Co ltd
Original Assignee
Beijing Yonghui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yonghui Technology Co ltd filed Critical Beijing Yonghui Technology Co ltd
Priority to CN202211265730.5A priority Critical patent/CN115345716B/en
Publication of CN115345716A publication Critical patent/CN115345716A/en
Application granted granted Critical
Publication of CN115345716B publication Critical patent/CN115345716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Accounting & Taxation (AREA)
  • Quality & Reliability (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Tourism & Hospitality (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method, a system, a medium and an electronic device for estimating order fulfillment duration; the method comprises the following steps: acquiring historical order data; preprocessing the historical order data to obtain training data; training an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, and realizing estimation of fulfillment duration of the target order based on the trained order fulfillment duration estimation model; the invention provides an improved machine learning algorithm, which changes the traditional mean value estimation mode into a quantile estimation mode, thereby capturing the fluctuation above the mean value of the historical order delivery time length, and effectively solving the problem of low estimation precision of the order fulfillment time length under the conditions of multiple stores of merchants, multiple areas of users and large order fulfillment time length difference.

Description

Method, system, medium and electronic device for estimating order fulfillment duration
Technical Field
The invention belongs to the field of general retail sales, and particularly relates to a method, a system, a medium and electronic equipment for estimating order fulfillment duration.
Background
With the global rise of the instant distribution business of the general retail industry, a distribution system based on the technologies of order fulfillment duration estimation, intelligent scheduling, road network mining and the like plays a key role; the estimated quality of the order fulfillment duration influences the delivery efficiency and the on-time rate of a rider, and influences the online experience and ordering willingness of a user.
In order to improve the estimated quality, factors such as real-time order pressure and human effect of stores, historical riding distance and time, current weather conditions and the like need to be comprehensively considered; the traditional practice includes the following two ways:
1. fence rule
The fence rule mode is that the duration of performance is artificially set according to the distribution distance and the delivery difficulty of the cell; the method specifically comprises the following steps: calculating a straight line distance of distribution according to the longitude and latitude of a user distribution order and the longitude and latitude of a store, layering the distances to form layered fences, and setting different performance durations for orders in different fences; secondly, considering the difficulty of order distribution in different cells, different time lengths can be added to order fulfillment on the basis of the time length of the layered fence.
2. Traditional machine learning
The existing machine learning method is to train a model by utilizing a machine learning technology and fitting historical data, so as to estimate the performance duration of a real-time order; the method comprises the following specific steps: estimating the performance duration of the current order according to historical shipment duration, distribution distance and time and real-time order quantity; the existing common machine learning methods are linear regression, tree models, neural network models and the like.
The above two methods have the following problems:
the fence rule-based mode is simple and easy to operate, but the order fulfillment duration cannot be finely estimated, because the distances between different cell orders and stores in the same fence area may differ by hundreds of meters, even if the orders with the same distance are different, the fulfillment duration difference is caused due to the difference of riding paths; secondly, the time of the difficult cell depends on subjective factors of people, and fine setting is difficult to achieve.
The traditional machine learning mode is to learn the average value of historical delivery duration, but the average value represents the delivery average level, and the fluctuation above the average level is difficult to capture, so that the estimated duration of an order is low, delivery pressure is brought to a rider, and the expectation of a user is difficult to achieve; therefore, some machine learning methods learn the fluctuation above the mean value by adjusting the weight of the loss function, but the adjustment mode is too primitive, and the method needs to be tried and error continuously, and is time-consuming and labor-consuming; secondly, the traditional machine learning method does not consider the characteristics of the cells into the model, and the distribution difference of different cells cannot be described.
Disclosure of Invention
The invention provides a method, a system, a medium and an electronic device for estimating order fulfillment duration, which are used for solving the problem of low estimation precision of the existing general retail industry order fulfillment duration estimation method.
The invention provides a method for estimating order fulfillment duration, which comprises the following steps: obtaining historical order data; preprocessing the historical order data to obtain training data; and training an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, and realizing estimation of fulfillment duration of the target order based on the trained order fulfillment duration estimation model.
In an embodiment of the present invention, the historical order data includes order data corresponding to a plurality of historical orders respectively; the order data comprises at least one characteristic data corresponding to the historical order; the step of preprocessing the historical order data and acquiring training data comprises the following steps: when the plurality of historical orders comprise normal orders and abnormal orders, obtaining sample order data from the historical order data; when the plurality of historical orders are the normal orders, the sample order data is the historical order data, and the sample order data is the order data corresponding to the normal orders; and performing box separation processing on the characteristic data corresponding to the normal order based on the sample order data to obtain the training data.
In an embodiment of the present invention, the binning processing on the feature data corresponding to the normal order based on the sample order data includes the following steps: acquiring the same characteristic data corresponding to all the normal orders based on the sample order data; defining preset intervals based on the same characteristic data corresponding to all the normal orders, and determining the interval ranges corresponding to the preset intervals respectively; the same characteristic data corresponding to all the normal orders fall into the interval; judging which interval the same characteristic data corresponding to each normal order falls into; and correspondingly marking the same characteristic data corresponding to all the normal orders based on the judgment result.
In an embodiment of the present invention, the training of the order fulfillment duration estimation model using a quantile estimation mode based on the training data to obtain the trained order fulfillment duration estimation model includes the following steps: inputting the training data into the order fulfillment duration estimation model, so that the order fulfillment duration estimation model estimates a variable coefficient of the order fulfillment duration estimation model based on the training data and by adopting the quantile estimation mode, and obtains the trained order fulfillment duration estimation model; the formula of the trained order fulfillment duration estimation model for estimating the fulfillment duration of the target order is as follows:
Figure 100002_DEST_PATH_IMAGE001
wherein,
Figure 100002_DEST_PATH_IMAGE002
representing a duration of performance of the target order;
Figure 100002_DEST_PATH_IMAGE003
representing the number of the characteristic data corresponding to the target order;
Figure 100002_DEST_PATH_IMAGE004
representing the number of preset intervals corresponding to the characteristic data xi;
Figure 100002_DEST_PATH_IMAGE005
and
Figure 100002_DEST_PATH_IMAGE006
each represents the variable coefficient;
Figure 100002_DEST_PATH_IMAGE007
indicating that after the characteristic data xi corresponding to the target order is marked, the characteristic data xi falls into a value corresponding to the jth interval.
In an embodiment of the present invention, the method further includes the following steps: acquiring target duration according to a preset increment and the performance duration of the target order; the target time length is finally estimated performing time length of the target order.
In an embodiment of the present invention, before the step of obtaining the target duration according to the preset increment and the performance duration of the target order, the method further includes the following steps: acquiring weather information and/or product information of the target order; and determining the preset increment according to the weather information and/or the product information.
In an embodiment of the present invention, the estimating the duration of performance of the target order based on the trained order duration estimation model includes the following steps: acquiring target order data corresponding to the target order; inputting the target order data into the trained order fulfillment duration estimation model so that the trained order fulfillment duration estimation model estimates fulfillment duration of the target order based on the target order data.
In an embodiment of the present invention, the estimating the duration of performance of the target order based on the trained order duration estimation model further includes the following steps: acquiring current data of a store corresponding to the target order; determining a target cell number to which the target order belongs, and acquiring a distribution distance and historical distribution duration corresponding to the target order based on the target cell number; inputting the target order data into the trained order fulfillment duration estimation model so that the trained order fulfillment duration estimation model estimates fulfillment duration of the target order based on the target order data comprises the following steps: inputting the current data, the delivery distance, the historical delivery time length and the target order data into the trained order fulfillment time length estimation model, so that the trained order fulfillment time length estimation model estimates the fulfillment time length of the target order based on the current data, the delivery distance, the historical delivery time length and the target order data.
In an embodiment of the present invention, determining the target cell number to which the target order belongs includes the following steps: acquiring longitude and latitude of a receiving address corresponding to the target order; performing geographic hash mapping on the longitude and latitude to obtain a unique character string; determining the target cell number based on the string.
The invention provides a pre-estimation system for order fulfillment duration, which comprises: the device comprises an acquisition module, a preprocessing module and an estimation module; the acquisition module is used for acquiring historical order data; the preprocessing module is used for preprocessing the historical order data to acquire training data; the estimation module is used for training an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, and estimating fulfillment duration of the target order based on the trained order fulfillment duration estimation model.
The invention provides a storage medium, on which a computer program is stored, which when executed by a processor implements the method for estimating an order fulfillment duration as described above.
The present invention provides an electronic device, including: a processor and a memory; the memory is used for storing a computer program; the processor is configured to execute the computer program stored in the memory, so that the electronic device executes the above method for estimating the order fulfillment duration.
As described above, the method, system, medium and electronic device for estimating order fulfillment duration according to the present invention have the following advantages:
(1) Compared with the prior art, the invention provides an improved machine learning algorithm, the traditional mean value estimation mode is changed into the quantile estimation mode, and the variable coefficient of the order fulfillment duration estimation model is calculated through the quantile estimation mode, so that the fluctuation above the average value of the historical order delivery duration is captured, and the problem of low estimation precision of the order fulfillment duration under the conditions of multiple stores of merchants, multiple areas of users and large order fulfillment duration difference is effectively solved;
(2) The invention calculates the order characteristics of an offline scene and a real-time scene by comprehensively considering the characteristics of multiple shops of merchants, multiple areas of users, large difference of order fulfillment duration and the like, judges the number of the cell to which the order belongs in real time when the fulfillment duration of the order is estimated, extracts the characteristic data of the cell according to the number of the cell, and establishes an order fulfillment duration estimation model, thereby reducing the operation labor and the cost.
Drawings
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the invention.
FIG. 2 is a flowchart illustrating an estimation method of order fulfillment duration according to an embodiment of the invention.
FIG. 3 is a flow chart illustrating an embodiment of the present invention for preprocessing historical order data to obtain training data.
FIG. 4 is a flowchart illustrating an embodiment of the present invention for binning feature data corresponding to normal orders based on sample order data.
FIG. 5 is a flowchart illustrating estimating the performance of a target order based on a trained order performance duration estimation model according to the present invention longer than in one embodiment.
FIG. 6 is a flowchart illustrating an embodiment of determining a target cell number to which a target order belongs.
Fig. 7 is a schematic structural diagram illustrating an estimation system of order fulfillment duration according to an embodiment of the invention.
Description of the reference symbols
1-a terminal; 11-a processing unit; 12-a memory; 121-random access memory; 122-cache memory; 123-a storage system; 124-program/utility; 1241-program module; 13-a bus; 14-input/output interface; 15-a network adapter; 2-external devices; 3-a display; 71-an acquisition module; 72-a pre-processing module; 73-a prediction module; S1-S3-step; S21-S22-step; S221-S224-step; S31-S34-step; s341 to S343.
Detailed Description
The following description of the embodiments of the present invention is provided by way of specific examples, and other advantages and effects of the present invention will be readily apparent to those skilled in the art from the disclosure herein. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Compared with the prior art, the invention provides an improved machine learning algorithm, changes the traditional mean value estimation mode into a quantile estimation mode, and calculates the variable coefficient of the order fulfillment duration estimation model through the quantile estimation mode, thereby capturing the fluctuation above the historical order delivery duration mean value, and effectively solving the problem of low estimation precision of the order fulfillment duration under the conditions of multiple stores of a merchant, multiple areas of users and large order fulfillment duration difference; the invention calculates the order characteristics of an offline scene and a real-time scene by comprehensively considering the characteristics of multiple shops of merchants, multiple areas of users, large difference of order fulfillment duration and the like, judges the number of the cell to which the order belongs in real time when the fulfillment duration of the order is estimated, extracts the characteristic data of the cell according to the number of the cell, and establishes an order fulfillment duration estimation model, thereby reducing the operation labor and the cost.
The storage medium of the present invention stores thereon a computer program that, when executed by a processor, implements the method of estimating an order fulfillment duration described below. The storage medium includes: a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, a usb disk, a Memory card, or an optical disk, which can store program codes.
Any combination of one or more storage media may be employed. The storage medium may be a computer-readable signal medium or a computer-readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The electronic device of the invention comprises a processor and a memory.
The memory is used for storing a computer program; preferably, the memory comprises: various media that can store program codes, such as ROM, RAM, magnetic disk, U-disk, memory card, or optical disk.
The processor is connected with the memory and is used for executing the computer program stored in the memory so as to enable the electronic equipment to execute the estimation method of the order fulfillment duration.
Preferably, the Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In an embodiment, the electronic device includes a terminal and/or a server.
Fig. 1 shows a block diagram of an exemplary terminal 1 suitable for implementing an embodiment of the invention.
The terminal 1 shown in fig. 1 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 1, the terminal 1 is in the form of a general purpose computing device. The components of the terminal 1 may include, but are not limited to: one or more processors or processing units 11, a memory 12, and a bus 13 that couples various system components including the memory 12 and the processing unit 11.
Bus 13 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA (enhanced ISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
The terminal 1 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by terminal 1 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 12 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 121 and/or cache memory 122. The terminal 1 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 123 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 1 and commonly referred to as a "hard drive"). Although not shown in FIG. 1, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 13 by one or more data media interfaces. Memory 12 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 124 having a set (at least one) of program modules 1241 may be stored in, for example, memory 12, such program modules 1241 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 1241 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The terminal 1 may also communicate with one or more external devices 2 (e.g., keyboard, pointing device, display 3, etc.), one or more devices that enable a user to interact with the terminal 1, and/or any device (e.g., network card, modem, etc.) that enables the terminal 1 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 14. Also, the terminal 1 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 15. As shown in fig. 1, the network adapter 15 communicates with the other modules of the terminal 1 via the bus 13. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal 1, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
As shown in fig. 2, in an embodiment, the method for estimating order fulfillment duration of the present invention includes the following steps:
and S1, acquiring historical order data.
In an embodiment, the historical order data includes order data corresponding to a plurality of historical orders respectively; the order data comprises at least one characteristic data corresponding to the historical order.
It should be noted that the characteristic data at least includes, but is not limited to, any of the following: order characteristics, cell characteristics, in-store characteristics, out-of-store characteristics, store history characteristics; wherein the order characteristics include at least one of, but are not limited to: order linear distance, order SKU (Stock Keeping Unit, which is an inventory Keeping Unit and is an alphanumeric commodity number allocated to inventory, and each SKU number corresponds to a product) type data and order commodity type data; cell characteristics include at least any one of, but are not limited to: a cell historical distribution average value and a median of historical distribution duration; the in-bin features include at least any one of, but are not limited to: ordering the single number of orders to be picked in a preset time period, the number of persons to be picked in the preset time period and the number of orders to be picked in the preset time period; the off-cartridge characteristics include at least one of, but are not limited to, any of: the method comprises the steps of ordering the goods in a preset time period, the number of delivered personnel in the preset time period and the number of orders to be delivered in the preset time period; store history characteristics include at least, but are not limited to, any of the following: the average value of the time length of picking in the warehouse and the average value of the time length of operation in the warehouse.
It should be noted that the above-mentioned feature data acquisition mode includes store historical features, cell historical features, statistical mean of actual completion time of all orders on the store line, and a real-time feature acquisition method, which is to pull the corresponding online order data of the corresponding store on the line in real time, and count the order state in each time interval and the state of personnel inside and outside the warehouse.
Furthermore, the feature data are all numerical values, and if the feature data are dimensionless data, the feature data need to be normalized, and the like to convert the dimensionless feature data into numerical values.
And S2, preprocessing the historical order data to obtain training data.
As shown in fig. 3, in an embodiment, the preprocessing the historical order data to obtain the training data includes the following steps:
step S21, when the plurality of historical orders include normal orders and abnormal orders, obtaining sample order data from the historical order data.
In an embodiment, the history order includes n pieces of feature data, the n pieces of feature data included in the history order are marked as (x 1, x2, x3, …, xn), and the duration of performance corresponding to the history order is marked as y.
It should be noted that, for each feature data xi (i is greater than or equal to 1 and less than or equal to n) of the historical order and the performance duration y, a reasonable range [ x _ min, x _ max ] of each feature data is set according to data distribution and business expert experience, and then whether each feature data in the historical order is in the corresponding reasonable range is judged to determine whether the historical order is a normal order or an abnormal order.
In one embodiment, when at least preset characteristic data in all the characteristic data corresponding to a historical order is not in the corresponding reasonable range, the historical order is judged to be an abnormal order; and when only less than the preset characteristic data in all the characteristic data corresponding to a historical order is not in the corresponding reasonable range, judging the historical order to be a normal order.
It should be noted that what the preset number is specifically set is not a condition for limiting the present invention, and in practical applications, the preset number may be set according to specific situations.
In an embodiment, the preset number is set to one, that is, as long as at least one feature data exists in all feature data corresponding to a historical order and is not in the corresponding reasonable range, the historical order is determined to be an abnormal order; and only when all the characteristic data corresponding to the historical order are respectively in the corresponding reasonable ranges, the historical order is judged to be a normal order.
It should be noted that, the number of the reasonable ranges corresponding to each feature data is specifically set, which is not a condition for limiting the present invention, and the reasonable ranges corresponding to each feature data may be the same or different, and may be specifically set according to the actual application scenario.
Specifically, after determining which of all the historical orders are abnormal orders and which are normal orders by the method, removing order data corresponding to the abnormal orders, that is, only keeping order data corresponding to the normal orders, and then taking the order data corresponding to the normal orders as the sample order data.
It should be noted that, when all of the plurality of historical orders are the normal order, the sample order data is the historical order data, and the sample order data is the order data corresponding to the normal order.
And S22, performing box separation on the characteristic data corresponding to the normal order based on the sample order data to obtain the training data.
As shown in fig. 4, in an embodiment, the step of binning the feature data corresponding to the normal order based on the sample order data includes the following steps:
and step S221, acquiring the same characteristic data corresponding to all the normal orders based on the sample order data.
Since the binning process in step S22 is performed for the same feature data corresponding to all normal orders, the same feature data corresponding to all normal orders needs to be acquired first when the binning process in step S22 is performed.
Further, each normal order includes at least one feature data, and the step S221 obtains at least one set of feature data sets, where each feature set includes the same feature data corresponding to all normal orders.
Step S222, defining preset intervals based on the same characteristic data corresponding to all the normal orders, and determining the interval ranges corresponding to the preset intervals respectively.
It should be noted that the same feature data corresponding to all the normal orders falls into the interval, but the intervals into which the feature data corresponding to different normal orders fall may be the same or different.
It should be noted that, the number of the preset intervals is specifically set, which is not taken as a condition for limiting the present invention, and in practical application, the preset intervals may be set according to a specific application scenario.
Further, defining several intervals for each feature data is not a condition for limiting the present invention, and the number of intervals corresponding to each feature data may be the same or different.
In an embodiment, the characteristic data is subjected to binning processing by using an equidistant binning method, that is, the distance between each interval range in the step S222 is equal.
In one embodiment, a feature datum xi is an order linear distance, which ranges from [ x (1),
x (m), wherein x (1) represents the minimum value of the order straight-line distance in all historical orders; x (m) represents the maximum value of the order straight-line distance in all historical orders.
Assuming that Ni intervals are defined for the feature data xi, the length of each interval is L = [ x (m) -x (1) ]/Ni rounded up, that is, ni intervals formed after equidistant binning are respectively: [ x (1), x (1) + L), [ x (1) + L, x (1) + 2L), …, [ x (1) + (Ni-1) L, x (m) ] (x (m) ≦ NiL); of course, the last interval can also be [ x (1) + (Ni-1) L, x (1) + NiL ].
For example, the range of the characteristic data xi to the order straight-line distance is [10, 1000], and 5 sections are obtained by binning the characteristic data xi, where the length L = [ x (m) -x (1) ]/Ni = [1000-10]/5=198 of each section is [10, 208), [208, 406), [406, 604), [604, 802), [802, 1000.
Furthermore, the characteristic data may also be subjected to binning processing in a non-equidistant manner, and the specific working principle may refer to the working principle of equidistant binning, which is not described in detail herein.
Step S223, determining which section the same characteristic data corresponding to each normal order falls into.
Specifically, the intervals are arranged in the order from small to large, and then the same characteristic data corresponding to each normal order is judged to fall into the jth interval (j is more than or equal to 1 and less than or equal to Ni).
And step S224, correspondingly marking the same characteristic data corresponding to all the normal orders based on the judgment result.
Specifically, the sub-variables with the number equal to the number of the preset intervals are derived from a feature data, and then, based on which interval the feature data corresponding to each normal order determined in step S223 falls into, the feature data is marked.
With the above embodiment, ni sub-variables are derived from the feature data xi, which are xi _1, xi _2, … and xi _ Ni, respectively; if the value of the characteristic data xi corresponding to a normal order falls into the jth interval, xi _ j =1, and the values of the rest of the derived variables are all 0, at this time, xi _ j may be marked on the characteristic data xi corresponding to the normal order.
It should be noted that what value xi _ j is not a condition for limiting the present invention, and is defined as 1 here, which is only an embodiment, and in practical applications, can be set according to specific situations.
Note that what is specifically marked in the step S224 is not a condition for limiting the present invention, and it is sufficient to ensure that after marking, which section of the step S222 the feature data falls into is known; for example, if the feature data xi corresponding to a normal order a is marked xi _1 in the step S224, it can be known that the feature data xi corresponding to the normal order a falls into the 1 st interval, that is, the interval [ x (1), x (1) + L); if the feature data xi corresponding to another normal order B is marked xi _2 in the step S224, it is known that the feature data xi corresponding to the normal order B falls into the 2 nd interval, that is, the interval [ x (1) + L, x (1) + 2L).
Further, the values of the sub-variables xi _1, xi _2, … and xi _ Ni derived from the feature data xi corresponding to the normal order a are 1, 0, … and 0, respectively; the values of sub-variables xi _1, xi _2, … and xi _ Ni derived from the characteristic data xi corresponding to the normal order B are 0, 1, … and 0 respectively; similarly, the values of the sub-variables xi _1, xi _2, … and xi _ Ni derived from the feature data xi corresponding to other normal orders and the values of the sub-variables derived from the feature data xi of all normal orders except the feature data xi are determined according to the method.
It should be noted that, after the same feature data corresponding to all normal orders are correspondingly marked in step S224, training data are obtained; correspondingly, the training data includes all labeled feature data corresponding to all normal orders.
And S3, training an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, and estimating fulfillment duration of the target order based on the trained order fulfillment duration estimation model.
In an embodiment, the training of the order fulfillment duration estimation model using a quantile estimation mode based on the training data to obtain the trained order fulfillment duration estimation model includes the following steps: inputting the training data into the order fulfillment duration estimation model, so that the order fulfillment duration estimation model estimates the variable coefficient of the order fulfillment duration estimation model based on the training data and by adopting the quantile estimation mode, and the trained order fulfillment duration estimation model is obtained.
It should be noted that the variable coefficient is calculated by the order fulfillment duration estimation model based on training data; specifically, the variable coefficient is calculated by adopting a quantile estimation mode.
It should be noted that the quantile estimation mode refers to a quantile estimation method; specifically, quantile, also called quantile, refers to a numerical point that divides the probability distribution range of a random variable into several equal parts, and commonly used are median (i.e. binary), quartile, percentile, etc.; the quantile estimation is the point estimation and the interval estimation of the overall percentile estimation, is a concept in statistics, is non-parametric, does not assume the distribution of observed values, has stronger robustness to abnormal data in a sample, and can select mean regression of different quantiles.
In an embodiment, the formula of the trained order fulfillment duration estimation model for estimating the fulfillment duration of the target order is as follows:
Figure DEST_PATH_IMAGE008
wherein,
Figure DEST_PATH_IMAGE009
representing a duration of performance of the target order;
Figure DEST_PATH_IMAGE010
representing the number of the characteristic data corresponding to the target order;
Figure DEST_PATH_IMAGE011
representing the number of preset intervals corresponding to the characteristic data xi;
Figure DEST_PATH_IMAGE012
and
Figure DEST_PATH_IMAGE013
each represents the variable coefficient;
Figure DEST_PATH_IMAGE014
indicating that after the characteristic data xi corresponding to the target order is marked, the characteristic data xi falls into a value corresponding to the jth interval.
In one embodiment, the p quantile of the performance duration is estimated by using a linear regression method.
In particular, coefficient vectors of linear regression
Figure DEST_PATH_IMAGE015
=(
Figure DEST_PATH_IMAGE016
Figure DEST_PATH_IMAGE017
Figure DEST_PATH_IMAGE018
,…,
Figure DEST_PATH_IMAGE019
,…,
Figure DEST_PATH_IMAGE020
Figure DEST_PATH_IMAGE021
,…,
Figure DEST_PATH_IMAGE022
) The estimate of (c) is given by the following optimization equation:
Figure DEST_PATH_IMAGE023
wherein p represents a quantile; y represents the real value of the performance duration corresponding to the normal order in the training data; y is pred And the estimation value of the duration of the normal order in the training data is represented through the order duration estimation model.
It should be noted that p is a set value, and is specifically set to what number, which is not taken as a condition for limiting the present invention, and in practical application, p may be set according to a specific application scenario; such as setting p to a 90 quantile, or a 95 quantile, or a 99 quantile.
For example, taking a 90 quantile, i.e. p =0.9, if the true value Y =9, the estimated value Y is estimated pred When 10, 0.9 × (9-10) = -0.9; estimated value Y pred When the value is 8, (0.9-1) × (9-8) = -0.1, the minimum value is selected, so that the estimated value Y is selected pred And when the number is 10, the coefficient of the corresponding solution of the order performance duration estimation model.
In one embodiment, the method further comprises the steps of: and acquiring the target duration according to the preset increment and the performance duration of the target order.
It should be noted that, through the above steps, the trained order fulfillment duration estimation model preliminarily estimates the fulfillment duration of the target order
Figure DEST_PATH_IMAGE024
Then, in the contract duration
Figure 970471DEST_PATH_IMAGE024
On the basis of the above-mentioned formula, adding preset increment to obtain goalAnd marking the time length, so as to enable the finally estimated performance time length of the target order to be more accurate and reliable, wherein the target time length is the finally estimated performance time length of the target order.
In an embodiment, before the step of obtaining the target duration according to the preset increment and the performance duration of the target order, the method further includes the following steps:
step one, weather information and/or product information of the target order are obtained.
It should be noted that, when the estimation method for the order fulfillment duration is applied to an actual application scenario, external factors (such as weather, if the weather is severe, the order fulfillment duration may be extended) and order products (such as, if the order products include fresh products and a user requests to slaughter the fresh products, the order fulfillment duration may be extended) need to be considered, so as to improve the accuracy of the fulfillment duration estimated by the estimation method for the order fulfillment duration.
Specifically, weather information is acquired in real time, and/or product information of the target order is acquired by performing product identification on the target order.
It should be noted that, here, the acquisition of the weather information adopts a conventional technical means in the field, and how to acquire the weather information is specifically not taken as a condition for limiting the present invention, and therefore, detailed description is not repeated herein; similarly, the product identification is performed on the target order to obtain the product information, and conventional technical means in the field (such as a manner of feature extraction) are also adopted, which are not conditions for limiting the present invention, and therefore, detailed description is not repeated here.
And step two, determining the preset increment according to the weather information and/or the product information.
In an embodiment, the determining the preset increment according to the weather information includes the following steps:
and (41) predicting the weather type according to the weather information.
In one embodiment, the weather types include, but are not limited to: no rain, light rain, medium rain and heavy rain.
And (42) determining the preset increment according to the weather type.
In one embodiment, different weather types correspond to different predetermined increments.
It should be noted that, in general, the worse the weather is, the larger the corresponding preset increment is.
In one embodiment, if the weather type is no rain, the preset increment is zero; if the weather type is light rain, the preset increment is a first preset value; if the weather type is the middle rain, the preset increment is a second preset value; if the weather type is heavy rain, the preset increment is a third preset value; the second preset value is greater than the first preset value, and the second preset value is smaller than the third preset value.
It should be noted that the first preset value (> 0), the second preset value (> 0), and the third preset value (> 0) are preset, and are specifically set as what number, and are not used as conditions for limiting the present invention; similarly, after setting, corresponding modification can be performed in the subsequent application process, as long as "the second preset value is greater than the first preset value, and the second preset value is less than the third preset value".
In one embodiment, determining the preset increment according to the product information includes the following steps: and judging whether the target order comprises a fresh product to be slaughtered or not according to the product information so as to determine a preset increment according to a judgment result.
In one embodiment, the predetermined increment is set to a fourth predetermined value when the target order includes a fresh product to be slaughtered.
It should be noted that, the fourth preset value (> 0) is also preset, and the specific number thereof is not a condition for limiting the present invention; similarly, if set, corresponding modifications may be made during subsequent applications.
In one embodiment, if the target order does not include the fresh product to be slaughtered, the predetermined increment is set to zero.
In an embodiment, the preset increment is determined according to the weather information and the product information.
It should be noted that, the working principle of determining the preset increment according to the weather information and the product information may refer to the implementation methods of determining the preset increment according to the weather information and the product information, which is equivalent to the combination of the implementation methods of determining the preset increment according to the weather information and the product information, and correspondingly, the finally determined preset increment is also equivalent to the combination of the preset increments determined according to the weather information and the product information, and therefore details are not repeated here.
It should be noted that, after the preliminary estimation of the order fulfillment duration of the target order is performed by the trained order fulfillment duration estimation model, a preset increment is added to the fulfillment duration by combining the actual application scene, considering weather information and product information, so as to ensure the accuracy and reliability of the estimation of the order fulfillment duration by the order fulfillment duration estimation method.
As shown in fig. 5, in an embodiment, the estimating the duration of performance of the target order based on the trained order duration estimation model includes the following steps:
and S31, acquiring target order data corresponding to the target order.
Step S32, inputting the target order data into the trained order fulfillment duration estimation model, so that the trained order fulfillment duration estimation model estimates fulfillment duration of the target order based on the target order data.
It should be noted that the above estimation model for order fulfillment duration mainly relates to during work
Figure 622032DEST_PATH_IMAGE016
Figure DEST_PATH_IMAGE025
And
Figure DEST_PATH_IMAGE026
real-time calculation and acquisition of and duration of performance
Figure 949239DEST_PATH_IMAGE024
Pre-estimating; wherein some of the characteristics
Figure 78869DEST_PATH_IMAGE016
And
Figure 596305DEST_PATH_IMAGE025
the off-line calculation is completed before the contract duration is estimated, and a prediction interface is waited to be obtained and used in real time; another part of the characteristic
Figure 356451DEST_PATH_IMAGE026
Requires real-time calculation of the prediction interface, in calculating the
Figure 544856DEST_PATH_IMAGE026
When, the following features need to be considered: the characteristics related to delivery, such as the quantity of orders and human efficiency characteristics in the store, and the delivery distance and duration characteristics outside the store, need to be associated with the cell ID, and the cell attribution for calculating orders in real time is one of the cores of the prediction module.
As shown in fig. 5, in an embodiment, the estimating the duration of performance of the target order based on the trained order duration estimation model further includes the following steps:
and S33, acquiring current data of the store corresponding to the target order.
And step S34, determining the number of the target cell to which the target order belongs, and acquiring the distribution distance and the historical distribution time length corresponding to the target order based on the number of the target cell.
In one embodiment, the step of inputting the target order data into the trained order performance duration estimation model so that the trained order performance duration estimation model estimates the performance duration of the target order based on the target order data comprises the following steps: inputting the current data, the delivery distance, the historical delivery time length and the target order data into the trained order fulfillment time length estimation model, so that the trained order fulfillment time length estimation model estimates the fulfillment time length of the target order based on the current data, the delivery distance, the historical delivery time length and the target order data.
As shown in fig. 6, in an embodiment, the step of determining the target cell number to which the target order belongs includes the following steps:
step S341, obtaining the longitude and latitude of the receiving address corresponding to the target order.
And step S342, carrying out geographic hash mapping on the longitude and latitude to obtain a unique character string.
Note that the "character string" in step S342 represents a certain block area on the map, and the size of the area depends on the accuracy of the hash mapping.
It should be noted that the geographic hash (geohash) block is a sub-block obtained by understanding the earth as a two-dimensional plane and recursively decomposing the two-dimensional plane, and each sub-block has the same string code in a certain latitude and longitude range, that is, all points (i.e., latitude and longitude coordinate points) in each sub-block share the same geohash string; mapping the cell of each historical order into an 8-bit coded geographical hash block or a 9-bit coded geographical hash block; it should be understood that the more the number of encoding bits of the geographical hash block is, the higher the encoding precision is, so that more accurate cell hash block encoding can be obtained, and the number of encoding bits of the geographical hash block can be selected according to the precision requirement.
Step S343, the target cell number is determined based on the character string.
Specifically, matching the above-mentioned cell from the order in the offline data, matching the above-mentioned cell hash block code by the above-mentioned cell according to the hash geographic processing in step S342, b = [ b1, b2, …, bn ], where bn in the list represents the hash block code, and one bn is mapped again, and the corresponding cell list c = [ c1, c2, …, cn ] and fence data of each cell; cn in the list represents the cell number of all cell digit types in one hash-block code bn.
Firstly traversing Hash block codes, finding out an affiliated Hash block bn, judging whether a receiving address belongs to the Hash block according to fence data, traversing a cell list c contained in the Hash block, and judging whether the receiving address belongs to a cell cn of the list c according to the fence data; and finding the cell ID to which the target order belongs.
According to the acquired cell ID, the distribution distance from the store to the cell and the historical distribution time length characteristics can be acquired from the offline data.
All features of the predicted interface calculation completion (
Figure DEST_PATH_IMAGE027
Figure DEST_PATH_IMAGE028
,…,
Figure DEST_PATH_IMAGE029
,…,
Figure DEST_PATH_IMAGE030
Figure DEST_PATH_IMAGE031
,…,
Figure DEST_PATH_IMAGE032
) Then, the initial estimation of the performance duration can be completed by substituting the formula for estimating the performance duration of the target order; wherein the historical characteristic data comprises: the cell historical distribution time length, the cell historical distribution median and the time length corresponding to the box separation distance.
It should be noted that the invention effectively solves the problem that the order fulfillment duration is difficult to predict in multiple stores and multiple areas and the problem that the traditional mean prediction cannot meet the setting of the prediction level through the real-time calculation of the cell attribution, the real-time acquisition of the characteristics and the prediction of the quantile prediction mode.
It should be noted that the protection scope of the method for estimating the order fulfillment duration according to the present invention is not limited to the execution sequence of the steps listed in this embodiment, and all the solutions implemented by adding, subtracting, and replacing steps in the prior art according to the principle of the present invention are included in the protection scope of the present invention.
As shown in fig. 7, in an embodiment, the system for estimating order fulfillment duration of the present invention includes an obtaining module 71, a preprocessing module 72, and an estimating module 73.
The obtaining module 71 is configured to obtain historical order data.
The preprocessing module 72 is configured to preprocess the historical order data to obtain training data.
The estimation module 73 is configured to train an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, so as to estimate fulfillment duration of the target order based on the trained order fulfillment duration estimation model.
It should be noted that the structures and principles of the obtaining module 71, the preprocessing module 72, and the estimating module 73 correspond to the steps (step S1 to step S3) in the estimating method of order fulfillment duration one by one, and therefore, the details are not repeated herein.
It should be noted that the division of the modules of the above system is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the x module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the system, or may be stored in a memory of the system in the form of program code, and the function of the x module may be called and executed by a processing element of the system. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC).
It should be noted that, the system for estimating order fulfillment duration according to the present invention may implement the method for estimating order fulfillment duration according to the present invention, but the implementation apparatus of the method for estimating order fulfillment duration according to the present invention includes, but is not limited to, the structure of the system for estimating order fulfillment duration recited in this embodiment, and all structural modifications and substitutions in the prior art made according to the principles of the present invention are included in the scope of the present invention.
In summary, compared with the prior art, the invention provides an improved machine learning algorithm, which changes the traditional mean value estimation mode into a quantile estimation mode to calculate the variable coefficient of the order fulfillment duration estimation model through the quantile estimation mode, thereby capturing the fluctuation above the mean value of the historical order delivery duration, and effectively solving the problem that the estimation precision of the order fulfillment duration is not high under the condition that the order fulfillment duration is greatly different among a plurality of shops of a merchant and a plurality of areas of users; the method calculates the order characteristics of an offline scene and a real-time scene by comprehensively considering the characteristics of multiple shops of a merchant, multiple areas of users, large difference of order fulfillment duration and the like, judges the number of a cell to which an order belongs in real time when the fulfillment duration of the order is estimated, extracts the characteristic data of the cell according to the number of the cell, and establishes an order fulfillment duration estimation model, so that the operation labor and the cost are reduced; therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (12)

1. A method for estimating order fulfillment duration is characterized by comprising the following steps:
acquiring historical order data;
preprocessing the historical order data to obtain training data;
and training an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, and realizing estimation of fulfillment duration of the target order based on the trained order fulfillment duration estimation model.
2. The method of claim 1, wherein the historical order data includes order data corresponding to a plurality of historical orders; the order data comprises at least one characteristic data corresponding to the historical order; the step of preprocessing the historical order data and acquiring training data comprises the following steps:
when the plurality of historical orders comprise normal orders and abnormal orders, obtaining sample order data from the historical order data;
when the plurality of historical orders are the normal orders, the sample order data is the historical order data, and the sample order data is the order data corresponding to the normal orders;
and performing box separation processing on the characteristic data corresponding to the normal order based on the sample order data to obtain the training data.
3. The method of claim 2, wherein the step of binning the feature data corresponding to the normal order based on the sample order data comprises the steps of:
acquiring the same characteristic data corresponding to all the normal orders based on the sample order data;
defining preset intervals based on the same characteristic data corresponding to all the normal orders, and determining the interval ranges corresponding to the preset intervals respectively; the same characteristic data corresponding to all the normal orders fall into the interval;
judging which interval the same characteristic data corresponding to each normal order falls into;
and correspondingly marking the same characteristic data corresponding to all the normal orders based on the judgment result.
4. The method of claim 3, wherein the step of training an order fulfillment duration estimation model using a quantile estimation mode based on the training data to obtain the trained order fulfillment duration estimation model comprises the steps of: inputting the training data into the order fulfillment duration estimation model, so that the order fulfillment duration estimation model estimates a variable coefficient of the order fulfillment duration estimation model based on the training data and by adopting the quantile estimation mode, and the trained order fulfillment duration estimation model is obtained; the formula of the trained order fulfillment duration estimation model for estimating the fulfillment duration of the target order is as follows:
Figure DEST_PATH_IMAGE001
wherein,
Figure DEST_PATH_IMAGE002
representing a duration of performance of the target order;
Figure DEST_PATH_IMAGE003
representing the number of the characteristic data corresponding to the target order;
Figure DEST_PATH_IMAGE004
representing the number of the preset intervals corresponding to the characteristic data xi;
Figure DEST_PATH_IMAGE005
and
Figure DEST_PATH_IMAGE006
each represents the variable coefficient;
Figure DEST_PATH_IMAGE007
indicating that after the characteristic data xi corresponding to the target order is marked, the characteristic data xi falls into a value corresponding to the jth interval.
5. The method for estimating order fulfillment time according to claim 1 or 4, further comprising the steps of: acquiring target time length according to a preset increment and the performance time length of the target order; and the target duration is the finally estimated performance duration of the target order.
6. The method of claim 5, wherein before the step of obtaining the target duration according to the preset increment and the duration of the performance of the target order, the method further comprises the following steps:
acquiring weather information and/or product information of the target order;
and determining the preset increment according to the weather information and/or the product information.
7. The method of claim 1, wherein estimating the duration of a performance of a target order based on the trained estimation model of the duration of a performance of an order comprises:
acquiring target order data corresponding to the target order;
inputting the target order data into the trained order fulfillment duration estimation model so that the trained order fulfillment duration estimation model estimates fulfillment duration of the target order based on the target order data.
8. The method of claim 7, wherein estimating the duration of a performance of a target order based on the trained estimation model of the duration of an order performance further comprises:
acquiring current data of a store corresponding to the target order;
determining the number of a target cell to which the target order belongs, and acquiring the distribution distance and the historical distribution duration corresponding to the target order based on the number of the target cell;
inputting the target order data into the trained order fulfillment duration estimation model so that the trained order fulfillment duration estimation model estimates fulfillment duration of the target order based on the target order data comprises the following steps: inputting the current data, the delivery distance, the historical delivery time length and the target order data into the trained order fulfillment time length estimation model, so that the trained order fulfillment time length estimation model estimates the fulfillment time length of the target order based on the current data, the delivery distance, the historical delivery time length and the target order data.
9. The method of claim 8, wherein determining the target cell number to which the target order belongs comprises:
acquiring longitude and latitude of a receiving address corresponding to the target order;
performing geographic hash mapping on the longitude and latitude to obtain a unique character string;
determining the target cell number based on the string.
10. A system for estimating the duration of an order fulfillment session, comprising: the device comprises an acquisition module, a preprocessing module and an estimation module;
the acquisition module is used for acquiring historical order data;
the preprocessing module is used for preprocessing the historical order data to acquire training data;
the estimation module is used for training an order fulfillment duration estimation model adopting a quantile estimation mode based on the training data to obtain a trained order fulfillment duration estimation model, and estimating fulfillment duration of the target order based on the trained order fulfillment duration estimation model.
11. A storage medium having stored thereon a computer program, wherein the computer program, when being executed by a processor, implements the method for estimating an order fulfillment time duration according to any one of claims 1 to 9.
12. An electronic device, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to cause the electronic device to perform the method for estimating an order fulfillment duration as claimed in any of claims 1 to 9.
CN202211265730.5A 2022-10-17 2022-10-17 Method, system, medium and electronic device for estimating order fulfillment duration Active CN115345716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211265730.5A CN115345716B (en) 2022-10-17 2022-10-17 Method, system, medium and electronic device for estimating order fulfillment duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211265730.5A CN115345716B (en) 2022-10-17 2022-10-17 Method, system, medium and electronic device for estimating order fulfillment duration

Publications (2)

Publication Number Publication Date
CN115345716A true CN115345716A (en) 2022-11-15
CN115345716B CN115345716B (en) 2023-03-24

Family

ID=83957467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211265730.5A Active CN115345716B (en) 2022-10-17 2022-10-17 Method, system, medium and electronic device for estimating order fulfillment duration

Country Status (1)

Country Link
CN (1) CN115345716B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190107404A1 (en) * 2017-06-13 2019-04-11 Beijing Didi Infinity Technology And Development Co., Ltd. Systems and methods for determining estimated time of arrival
CN111127154A (en) * 2019-12-24 2020-05-08 拉扎斯网络科技(上海)有限公司 Order processing method, device, server and nonvolatile storage medium
US20200311668A1 (en) * 2019-03-27 2020-10-01 Accenture Global Solutions Limited Cognitive procurement
CN112085243A (en) * 2019-06-14 2020-12-15 达疆网络科技(上海)有限公司 Calculation method for pre-estimation of delivery time of store order
CN112686418A (en) * 2019-10-18 2021-04-20 北京京东振世信息技术有限公司 Method and device for predicting performance timeliness
CN113239317A (en) * 2021-05-11 2021-08-10 北京沃东天骏信息技术有限公司 Method and device for determining order fulfillment warehouse
CN114239977A (en) * 2021-12-21 2022-03-25 北京三快在线科技有限公司 Method, device, equipment and storage medium for determining estimated delivery time length
CN114692479A (en) * 2020-12-25 2022-07-01 北京三快在线科技有限公司 Time probability distribution model training method, distribution time obtaining method and distribution time obtaining device
CN115169705A (en) * 2022-07-13 2022-10-11 拉扎斯网络科技(上海)有限公司 Distribution time length prediction method and device, storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190107404A1 (en) * 2017-06-13 2019-04-11 Beijing Didi Infinity Technology And Development Co., Ltd. Systems and methods for determining estimated time of arrival
US20200311668A1 (en) * 2019-03-27 2020-10-01 Accenture Global Solutions Limited Cognitive procurement
CN112085243A (en) * 2019-06-14 2020-12-15 达疆网络科技(上海)有限公司 Calculation method for pre-estimation of delivery time of store order
CN112686418A (en) * 2019-10-18 2021-04-20 北京京东振世信息技术有限公司 Method and device for predicting performance timeliness
CN111127154A (en) * 2019-12-24 2020-05-08 拉扎斯网络科技(上海)有限公司 Order processing method, device, server and nonvolatile storage medium
CN114692479A (en) * 2020-12-25 2022-07-01 北京三快在线科技有限公司 Time probability distribution model training method, distribution time obtaining method and distribution time obtaining device
CN113239317A (en) * 2021-05-11 2021-08-10 北京沃东天骏信息技术有限公司 Method and device for determining order fulfillment warehouse
CN114239977A (en) * 2021-12-21 2022-03-25 北京三快在线科技有限公司 Method, device, equipment and storage medium for determining estimated delivery time length
CN115169705A (en) * 2022-07-13 2022-10-11 拉扎斯网络科技(上海)有限公司 Distribution time length prediction method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN115345716B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN110704730B (en) Product data pushing method and system based on big data and computer equipment
CN112990386B (en) User value clustering method and device, computer equipment and storage medium
CN112329895A (en) Method and device for identifying user with suspicion of electricity stealing
CN111582559A (en) Method and device for estimating arrival time
CN110264270A (en) A kind of behavior prediction method, apparatus, equipment and storage medium
CN114386856A (en) Method, device and equipment for identifying empty-shell enterprise and computer storage medium
CN110009154A (en) A kind of reimbursement prediction technique, device, terminal device and storage medium
CN110766184A (en) Order quantity prediction method and device
CN115545886A (en) Overdue risk identification method, overdue risk identification device, overdue risk identification equipment and storage medium
CN111126629A (en) Model generation method, system, device and medium for identifying brushing behavior
CN113988638A (en) Method and device for measuring and calculating strength of general association relationship, electronic equipment and medium
CN113408676A (en) Cloud and edge combined electricity stealing user identification method and device
CN115345716B (en) Method, system, medium and electronic device for estimating order fulfillment duration
CN112348590A (en) Method and device for determining value of article, electronic equipment and storage medium
CN112686470A (en) Power grid saturation load prediction method and device and terminal equipment
CN115689713A (en) Abnormal risk data processing method and device, computer equipment and storage medium
CN115345663A (en) Marketing strategy evaluation method and device, electronic equipment and storage medium
CN114723554A (en) Abnormal account identification method and device
CN115237970A (en) Data prediction method, device, equipment, storage medium and program product
CN114756720A (en) Time sequence data prediction method and device
CN114298825A (en) Method and device for extremely evaluating repayment volume
CN114723239A (en) Multi-party collaborative modeling method, device, equipment, medium and program product
CN114004603A (en) Automatic statistical method and device for fixed asset investment and computer equipment
CN113743994A (en) Provider's season-busy prediction method, system, equipment and storage medium
CN113869990A (en) Shop lease pricing method based on space-time representation learning model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240910

Address after: Room F18, 26th Floor, TB Business Building, China Resources MixC, No. 6 Hongshanyuan Road, Hongshan Town, Gulou District, Fuzhou City, Fujian Province, 350002

Patentee after: Yonghui Technology Co.,Ltd.

Country or region after: China

Address before: 100000 No. 1701-1703, Floor 17, Tower A, Zhizhen Building, No. 7, Zhichun Road, Haidian District, Beijing

Patentee before: Beijing Yonghui Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right