Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which the methods for pushing information or the apparatuses for pushing information of the embodiments of the present application may be applied.
As shown in fig. 1, system architecture 100 may include database server 101, network 102, and server 103. Network 102 is the medium used to provide a communication link between database server 101 and server 103. Network 102 may include various connection types such as wired, wireless communication links, or fiber optic cables, among others.
Database server 101 may interact with server 103 over network 102 to receive or send messages, etc. The database server 101 may be a background database server of a preset website (e.g. an e-commerce website) for storing a collection of orders on the preset website.
The server 103 may provide various services, for example, the server 103 may perform processing such as analysis on the order sets acquired from the database server 101. And outputting the processing result (such as pushing the related information of the first kind of articles).
It should be noted that, the method for pushing information provided in the embodiments of the present application is generally performed by the server 103. Accordingly, the means for pushing information is typically provided in the server 103.
The database server 101 and the server 103 may be hardware or software. When the database server 101 and the server 103 are hardware, the server may be realized as a distributed server cluster composed of a plurality of servers, or may be realized as a single server. When the database servers 101 and 103 are software, they may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of database servers, networks, and servers in fig. 1 are merely illustrative. There may be any number of database servers, networks, and servers, as desired for implementation. In the case where the number of articles to be taken out of the warehouse is stored in the server 103, the system architecture 100 may not provide the database server 101.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for pushing information according to the present application is shown. The method for pushing information comprises the following steps:
step 201, acquiring an order set of at least one warehouse in a target area in a history period.
In this embodiment, the executing entity of the method for pushing information (e.g., server 103 in fig. 1) may obtain, from a communicatively connected database server, a set of orders for at least one warehouse within the target area over a historical period of time. The target area may be an area designated by a technician, or may be an area screened according to a preset condition. In practice, the target area may be a larger area, such as a north-China area, or a smaller area, such as a administrative area of a city, as examples. In practice, multiple warehouses may be provided within a target area. The specific number of warehouses in this embodiment may be determined according to actual needs. As an example, some or all of the warehouses within the target area may be selected. In practice, the above-described collection of orders may also be stored locally at the executing entity. At this time, the executing body may directly acquire the order set from the local place.
In the present embodiment, the history period may be an arbitrary period of time in the past (for example, one month in the past). The set of orders for the historical time period for the at least one warehouse may be a set of all orders for the historical time period for each of the at least one warehouse. Wherein the order of the warehouse may be an order from which items need to be picked.
Step 202, for an item in at least one warehouse, in response to determining that an order containing item information of the item exists in an order set, taking the order containing only item information of the item in the order set as an order of the item, and obtaining an order set of the item; taking an order containing the article information of the article in the order set as a target order to obtain a target order set; taking the sum of the quantity of the articles contained in the single-article order set as a first quantity; taking the sum of the item numbers of the items contained in the target order set as a second number; in response to determining that the ratio of the first quantity to the second quantity is greater than or equal to a preset threshold, the item is determined to be a first type of item.
In this embodiment, for an item in at least one warehouse, the executing entity may determine whether an order containing item information (e.g., item name, item number, etc.) of the item exists in the order set acquired in step 201. In response to an order containing item information of the item in the order set, the executing body may take the order containing only item information of the item in the order set as a single item order, and obtain the single item order set. As an example, for a certain model of cell phone, a single item order may be an order that only requires that cell phone of that model to be picked.
In addition, the execution body may obtain the target order set by using an order including the item information of the item in the order set as the target order. The target order may include the article information of other articles in addition to the article information of the article. Taking the mobile phone of a certain model as an example, the target order may be an order which only needs to pick the mobile phone of the certain model, or an order which also needs to pick other objects (such as a mobile phone shell).
In this embodiment, the executing entity may take the sum of the numbers of items included in the single-item order set as the first number. Accordingly, the sum of the item numbers of the item included in the target order set may be taken as the second number. On this basis, the execution body may determine a ratio of the first number to the second number, and compare the determined ratio with a preset threshold. In response to determining that the ratio of the first quantity to the second quantity is greater than or equal to a preset threshold, the item is determined to be a first type of item. In practice, the ex-warehouse association degree of the first type of articles and other articles can be controlled by configuring a preset threshold value. When the preset threshold is larger, for example, the preset threshold may be configured to be 0.8, and it may be considered that the first type of article is usually delivered singly, and the probability of delivering other articles simultaneously is lower.
In practice, for items of the same SKU (Stock Keeping Unit, stock unit), one of the items may be subjected to the present step, and each item need not be subjected to the present step.
In some optional implementations of the present embodiment, the method may further include: responsive to determining that the ratio of the first quantity to the second quantity is less than a preset threshold, determining the item as a second type of item; pushing the related information of the second type of articles. In these implementations, the ex-warehouse association of the first type of item with other items may be controlled by configuring a preset threshold. When the preset threshold is smaller, for example, the preset threshold may be configured to be 0.3, and it may be considered that the probability of the second type of article and other articles being simultaneously delivered is higher.
In some optional implementations of the present embodiment, the method may further include: in response to determining that there is no order in the set of orders that includes item information for the item, determining the item as a third category of item; pushing the related information of the third class of articles. In practice, some items have no historical sales data, such as newly marketed cell phones. As an example, the newly marketed cell phone may be determined to be a third class item.
Step 203 pushes related information of the first type of article.
In this embodiment, the executing entity may execute the step 202 multiple times to determine the first type of item in the warehouse. Thereafter, information about the first type of item may be pushed. Wherein the related information of the first type of article may be various information related to the first type of article. As an example, it may be the name, number, etc. of the items contained in the first type of item.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for pushing information according to the present embodiment. In the application scenario of fig. 3, the execution subject of the method for pushing information is the server 300. The executing entity may first obtain a collection 301 of orders from three warehouses within a target area (e.g., a region) over a historical period of time (e.g., over the past month). Thereafter, for each item in the warehouse, a single item order set 303 and a target order set 302 may be determined separately. Taking the sum of the number of items contained in the single item order set 303 as a first number; the sum of the item numbers of the item contained in the target order set 302 is taken as the second number. In response to determining that the ratio of the first quantity to the second quantity is greater than or equal to a preset threshold (e.g., 0.8), the item is determined to be a first type of item. Finally, the related information of the first type of article can be pushed.
According to the method provided by the embodiment of the application, the items which are usually single-item out of the warehouse are determined to be the first-type items by setting the threshold value, and the related information of the first-type items is obtained. Thus, the information about the article having the smaller association with the other article can be obtained.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for pushing information is shown. The process 400 for pushing information includes the following steps:
step 401, acquiring an order set of at least one warehouse in a target area in a history period.
Step 402, for an item in at least one warehouse, in response to determining that an order containing item information of the item exists in an order set, taking the order containing only item information of the item in the order set as an order of the item, and obtaining an order set of the item; taking an order containing the article information of the article in the order set as a target order to obtain a target order set; taking the sum of the quantity of the articles contained in the single-article order set as a first quantity; taking the sum of the item numbers of the items contained in the target order set as a second number; in response to determining that the ratio of the first quantity to the second quantity is greater than or equal to a preset threshold, the item is determined to be a first type of item.
Step 403, pushing related information of the first kind of articles.
The specific processing of the steps 401 to 403 and the technical effects thereof may refer to the steps 201 to 203 in the corresponding embodiment of fig. 2, which are not described herein.
Step 404, for the first category of articles, classifying based on the frequency of delivery of the articles to obtain at least one first sub-category.
In this embodiment, for the first category of articles, the execution subject of the method for pushing information may classify the first category based on the frequency of delivery of the articles, to obtain at least one first sub-category.
Specifically, as an example, first, for each item in the first type of item, a ratio of the number of orders containing item information for that item to the number of orders in the above-described order set may be determined as the frequency of shipment of that item. And then, ordering the articles of the first type according to the ex-warehouse frequency from high to low to obtain a first type article sequence. Wherein the most frequent article of the warehouse-out is arranged first (foremost) in the first type of article sequence.
On this basis, as an example, for each item in the first type of item, the product of the volume of the item and the daily average shipment of the item is determined as the daily average shipment volume of the item. Thereafter, for each item in the first type of sequence of items, a daily average out-warehouse of all items preceding the item (including the item) is determinedThe sum of the volumes is used for obtaining a daily average ex-warehouse volume sequence V 1 ,V 2 …,V n . Where n is the total number of items in the first type of items. V (V) 1 Representing the daily average volume of the first item out of stock. V (V) 2 Represents the sum of the daily average warehouse-out volumes of all items (including the 1 st item and the 2 nd item) starting from the 1 st item to the 2 nd item. And so on, V n The sum of the daily average shipment volumes of all items (including the 1 st item and the n-th item) from the 1 st item to the n-th item in the sequence is represented.
Assuming that the first class of articles is expected to be divided into m subcategories, m-1 demarcation points are required, and the values of the demarcation points are respectively: d, d 1 ,d 2 …d m-1 The ratio threshold value of each demarcation point is t 1 ,t 2 …t m-1 . By way of example, it is contemplated that items of the first category are classified into 5 categories, and assuming equal division of each category, the ratio threshold for the 4 demarcation points is 0.2,0.4,0.6 and 0.8, respectively. The value of each demarcation point can be calculated by the following formula:
wherein, the value of i is an integer ranging from 1 to m-1, t i Is the proportional threshold for the ith demarcation point. j is an integer from 1 to n, V j Is the sum of the daily average warehouse-out volumes of all items from the 1 st item to the j-th item (including the 1 st item and the j-th item).
Through calculation, the value of each demarcation point can be obtained. Thereafter, let d 0 =0. Will be d i-1 +1 to d i The items are categorized into an i-th subcategory. Will be d m-1 +1 through nth items are categorized into the mth subcategory.
In practice, after the first type of article sequence is obtained, the stock volume of each article in the first type of article sequence may also be determined, and the stock volume sequence is obtained. Thereafter, the demarcation point may be calculated in the same manner to obtain at least one first sub-category.
In some optional implementations of the present embodiment, the method may further include: and classifying the second class of articles by adopting a clustering method to obtain at least one second sub-class.
As an example, at least one second sub-category may be obtained by:
in a first step, a sales matrix A is determined, wherein rows of the sales matrix represent orders containing item information for items in the second type of item and columns represent items in the second type of item. The values in the sales matrix represent the number of items in the column that the order in the row needs to pick. Let a be a matrix of oxm, o representing the number of orders containing item information for items in the second type of item, M representing the number of items in the second type of item.
Second, as an example, a non-negative matrix factorization is performed on the sales matrix.
A=PQ
Wherein P is an oxk matrix, Q is a kXM matrix, and k is a preset positive integer. Further, the decomposition may be performed by using SVD (singular value decomposition ).
And thirdly, clustering M samples (column vectors) by taking each column in the matrix Q as one sample, and dividing the articles clustered into one second sub-category to obtain at least one second sub-category. As an example, a clustering method such as K-means clustering, spectral clustering, or the like may be employed.
As an example, at least one second sub-category may also be obtained by determining an item association matrix (the values in the matrix represent the number of orders in which the item in the row and the item in the column appear in the same order), and taking a similar step.
In some optional implementations of the present embodiment, the method may further include: for the third category of items, sorting is based on the similarity of the items, resulting in at least one third subcategory.
As an example, for an item in the third category of items, the items may be categorized according to their similarity to the items in the second category or the third category of items. By way of example, by calculation, the item in the second or third category of item having the highest similarity to the item may be determined. Then, the category to which the article having the highest similarity belongs may be determined as the category of the article.
As an example, the similarity may also be calculated for each item in the third category of items, with a determination that the similarity is greater than a preset threshold being the third subcategory.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for pushing information in this embodiment increases the frequency of delivering articles to the warehouse, and classifies the articles of the first category to obtain at least one first sub-category. Wherein, the frequency of delivery can embody the penetration of the articles. Thus, items of the same subcategory have similarity in terms of mass-sales.
With further reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present application provides an embodiment of an apparatus for pushing a message, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 5, the apparatus 500 for pushing information of the present embodiment includes: an order set acquisition unit 501, a first type item determination unit 502, and a first information push unit 503. Wherein the order set acquisition unit 501 is configured to acquire an order set of at least one warehouse within a target area over a historical period of time; a first type of item determining unit 502 configured to, for an item in at least one warehouse, in response to determining that an order containing item information of the item exists in the order set, take an order containing only item information of the item in the order set as an order of the item, and obtain an order set of the item; taking an order containing the article information of the article in the order set as a target order to obtain a target order set; taking the sum of the quantity of the articles contained in the single-article order set as a first quantity; taking the sum of the item numbers of the items contained in the target order set as a second number; in response to determining that the ratio of the first quantity to the second quantity is greater than or equal to a preset threshold, determining the item as a first type of item; the first information pushing unit 503 is configured to push related information of the first type of article.
In this embodiment, the specific processes of the order set acquiring unit 501, the first type item determining unit 502, and the first information pushing unit 503 in the apparatus 500 for pushing information and the technical effects thereof are similar to those of the steps 201, 202, and 203 in the embodiment corresponding to fig. 2, and are not described herein.
In some optional implementations of this embodiment, the apparatus 500 may further include: a second type of item determining unit (not shown) and a second information pushing unit (not shown). The second type item determining unit is configured to determine the item as a second type item in response to determining that the ratio of the first number to the second number is less than a preset threshold; and the second information pushing unit is configured to push the related information of the second type of articles.
In some optional implementations of this embodiment, the apparatus 500 may further include: a third item-like determining unit (not shown in the figure) and a third information pushing unit (not shown in the figure). Wherein the third item-like determining unit is configured to determine the item as a third item-like in response to determining that there is no order in the set of orders that includes item information for the item; and the third information pushing unit is configured to push the related information of the third class of articles.
In some optional implementations of this embodiment, the apparatus 500 may further include: a first sorting unit (not shown in the figures). The first classification unit is configured to classify the first class of articles based on the frequency of delivery of the articles to obtain at least one first subcategory.
In some optional implementations of this embodiment, the apparatus 500 may further include: a second classification unit (not shown in the figure). The second classification unit is configured to classify the second class of articles by adopting a clustering method to obtain at least one second sub-class.
In some optional implementations of this embodiment, the apparatus 500 may further include: a third sorting unit (not shown in the figure). The third classification unit is configured to classify the third class of articles based on the similarity of the articles, resulting in at least one third sub-category.
In the present embodiment, the apparatus 500 for pushing information determines the first-type item based on the order set acquired by the order set acquisition unit 501 by the first-type item determination unit 502. Finally, the related information of the first type of article is pushed by the first information pushing unit 503. Wherein, by setting a threshold value, the articles which are usually single-article out of the warehouse are determined as the first type of articles. Thus, the information about the article having the smaller association with the other article can be obtained.
Referring now to FIG. 6, a schematic diagram of a computer system 600 suitable for use in implementing an electronic device of an embodiment of the present application is shown. The electronic device shown in fig. 6 is only an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present application.
As shown in fig. 6, 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 section 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, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
It should be noted that, the computer readable medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 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. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. 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 of the foregoing. 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, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes an order set acquisition unit, a first type item determination unit, and a first information push unit. Wherein the names of these units do not constitute a limitation of the unit itself in some cases, for example, the order set acquisition unit may also be described as "unit that acquires an order set of at least one warehouse within the target area over a history period".
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring an order set of at least one warehouse in a target area in a historical time period; for an item in at least one warehouse, responding to the fact that an order containing item information of the item exists in an order set, taking the order containing only item information of the item in the order set as an order of the item, and obtaining an order set of the item; taking an order containing the article information of the article in the order set as a target order to obtain a target order set; taking the sum of the quantity of the articles contained in the single-article order set as a first quantity; taking the sum of the item numbers of the items contained in the target order set as a second number; in response to determining that the ratio of the first quantity to the second quantity is greater than or equal to a preset threshold, determining the item as a first type of item; pushing the related information of the first kind of articles.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.