Artificial intelligence-based store product analysis method, device and storage medium
Through the artificial intelligence-based store product analysis method, historical data and cluster analysis are used to predict future orders for small and medium-sized convenience stores, which solves the problem of inaccurate predictions in the existing technology, improves inventory and supply chain management efficiency, and reduces costs. cost.
Patent Information
- Application Number
- CN202110748297.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-06-30
AI Technical Summary
Existing technology is difficult to accurately predict future product orders for small and medium-sized convenience stores, resulting in low efficiency in inventory and supply chain management, and increased supplier warehousing costs.
Adopt artificial intelligence-based store product analysis method, obtain the store's historical purchase order data, generate three-dimensional attribute coordinates, perform K-Means clustering, divide the store attribute set, build an order prediction model, and combine BP neural network and logistic regression analysis model , predict store order status, and conduct data screening and analysis based on confidence.
It achieves a comprehensive prediction of the store's future merchandise orders based on the store's historical data and type positioning, reducing the operator's management costs, improving the efficiency of supply chain and logistics resource allocation, and reducing inventory problems and supply price fluctuations.
Smart Images

Figure CN113554455B
Abstract
Description
Technical Field
[0001] The present application relates to the field of e-commerce data management, and specifically, to an artificial intelligence-based store product analysis method, device, and storage medium. Background Art
[0002] Existing small and medium-sized convenience stores often purchase goods offline from suppliers through their own channels. Due to the characteristics of small and medium-sized convenience stores, they are unable to purchase goods in large quantities and thus are unable to effectively bargain with suppliers. At the same time, due to the suppliers' wholesale requirements on purchase quantities, small and medium-sized convenience stores need to ensure a certain scale of purchase each time, which leads to inventory problems.
[0003] From the supplier's perspective, the decentralized purchasing method of small and medium-sized convenience stores leads to higher warehousing costs for suppliers, thus keeping supply prices high.
[0004] In the related technologies, such as the technical solution disclosed in the Chinese patent document with publication number CN112801759A, buyers, sellers and carriers are integrated through an e-commerce platform, so that orders from multiple buyers can be "grouped" into one logistics order, thereby realizing centralized procurement and centralized distribution, thereby reducing the procurement costs of small and medium-sized convenience stores.
[0005] However, due to the emergence of the "group buying" model, store orders have become more random. In order to meet the discrete needs of stores, the system needs to analyze the orders that may be generated by the stores in the future in order to configure the supply and warehousing. The analysis plan of the existing system is more focused on individual stores. In fact, due to differences in location and business philosophy, the actual order situations of different stores vary greatly. If only one model is built for prediction, accurate results cannot be obtained, resulting in failure of data analysis. Summary of the invention
[0006] In order to address the shortcomings of the prior art, the present application provides a store product analysis method based on artificial intelligence, comprising the following steps: obtaining historical purchase order data of a store; generating three-dimensional attribute coordinates of the store based on the historical purchase order data of the store; performing K-Means clustering operation on the coordinate values of the three-dimensional attribute coordinates of the store; dividing into several store attribute sets based on the results of the K-Means clustering operation; constructing order prediction models corresponding to different store attribute sets; and inputting the historical purchase order data of the store into the order prediction model corresponding to the store attribute set to which it belongs.
[0007] Furthermore, generating the three-dimensional attribute coordinates of the store based on the historical purchase order data of the store includes the following steps: setting a commodity classification table to divide the commodities into fast-moving consumer goods, daily necessities and stationery categories; classifying the commodities in the historical purchase order data of the store into the categories of the commodity classification table according to the commodity classification table; calculating the total price of the commodities of the store in each category of the commodity classification table; establishing a coordinate system of three-dimensional attribute coordinates with the three categories of the commodity classification table as coordinate axes, and using the total price of the store in these three categories as coordinate values.
[0008] Furthermore, the input data of the order prediction model is historical order data, and the output data of the order prediction model is store order prediction data and corresponding confidence levels.
[0009] Furthermore, the order prediction model is a BP neural network model.
[0010] Furthermore, the order prediction model is a logistic regression analysis model.
[0011] Furthermore, the artificial intelligence-based store product analysis method also includes the following steps: determining whether the confidence of the store order prediction data output by the order prediction model is greater than a preset threshold; if the confidence of the store order prediction data is greater than the preset threshold, the store order prediction data is used as analysis data.
[0012] Furthermore, if the confidence level of the store order prediction data is less than or equal to a preset threshold, the historical purchase order data of the store is returned and input into the corresponding order prediction model.
[0013] Furthermore, the artificial intelligence-based store product analysis method also includes the following steps: determining whether the confidence of the store order prediction data is less than or equal to a preset threshold number of times is greater than or equal to 3; if it is greater than or equal to 3, then using the store order data with the highest confidence output by the current order prediction model as analysis data.
[0014] As another aspect of the present application, the present application also provides an artificial intelligence-based store product analysis device, including: a memory for storing a computer program; a processor for implementing the artificial intelligence-based store product analysis method as described above when executing the computer program.
[0015] As another aspect of the present application, the present application also provides a computer client storage medium, in which a computer program is stored. When the computer program is executed by a processor, the store product analysis method based on artificial intelligence as described above is implemented.
[0016] The benefit of the present application lies in that it provides an artificial intelligence-based store merchandise analysis method, device and storage medium for comprehensively predicting a store's future merchandise order situation based on the store's historical data and store type positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0018] Figure 1 It is a schematic diagram of the steps of an automated order generation method according to an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of the principle of an order prediction model according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of the principle of a sales forecasting model according to an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of the principle of a price prediction model according to an embodiment of the present application;
[0022] Figure 5 This is a schematic diagram of the steps of a method for predicting store order trends according to an embodiment of the present application;
[0023] Figure 6 is a rectangular schematic diagram of observation feature data according to an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram after clustering a three-dimensional coordinate set through K-Means clustering operation;
[0025] Figure 8 is a schematic diagram of the principle of a business district prediction model according to an embodiment of the present application;
[0026] Fig. 9 is a schematic diagram of steps of a store product analysis method according to an embodiment of the present application;
[0027] Fig.10 is a schematic diagram of the principle of an order prediction model according to an embodiment of the present application;
[0028] Fig.11 is a matrix diagram of input data of an order prediction model according to an embodiment of the present application;
[0029] Fig.12 It is a schematic diagram of the module composition of an apparatus for implementing an embodiment of the method of the present application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0032] From an overall perspective, this application constructs a system using the following method, which mainly implements three functions:
[0033] 1. Automatically provide a suggested purchase order to the store based on the store's corresponding data, reducing the management cost of the store operator and facilitating the system to efficiently configure suppliers, warehousing and logistics resources.
[0034] 2. Analyze similar stores within a certain range to analyze order trends as a whole, and based on this, analyze possible orders that may appear in the store.
[0035] 3. Analyze the business model of the store, and then use the historical data of similar stores to assist in analyzing the future order trends of this type of store.
[0036] Specifically, refer to Figures 1 to 4 As shown, as the first aspect of the present application, the automated order generation method of the present application includes: collecting store inventory data and sales data; generating store status feature data based on the store inventory data and sales data; inputting the store status feature data into an order prediction model so that the order prediction model outputs a suggested order data and a corresponding suggested confidence; determining whether the suggested confidence is greater than a preset suggested confidence threshold, and if the suggested confidence is greater than the suggested confidence threshold, generating a purchase order at least based on the suggested order data.
[0037] As a specific solution, collecting the store's inventory data and sales data means collecting the store's inventory data and sales data on that day.
[0038] In order to provide the store with purchase order recommendations in a timely manner, as a preferred solution, the system triggers the execution of the automated order generation method of the present application daily, that is, the system runs the program daily according to user settings or system settings.
[0039] In view of the business habits of convenience stores, the trigger time can be set at 22:00, or, as another preferred solution, the trigger condition can be set, and when the trigger condition is met, the program for realizing the automated order generation method is automatically executed. For example, when the store uploads inventory data and sales data after daily inventory, the program is automatically triggered; for another example, when the store user uses the user terminal to send a request for automated order requirements to the server (the user can click the recommendation button in the user terminal APP interface), the program is triggered.
[0040] It should be noted that inventory data and sales data can be managed using the system platform program, or the system can provide a developed data port to connect to other store-owned goods statistics programs.
[0041] The inventory data and sales data referred to here refer to the SKU code and corresponding quantity data of the goods in inventory or sold on the day respectively.
[0042] According to the general analysis plan, historical inventory data and sales data are usually used to train the machine learning module respectively, and then the inventory data and sales data are predicted respectively. Then, the possible pickup situation is judged based on the prediction results, and then the corresponding order suggestions are generated according to the out-of-stock situation.
[0043] However, due to the uncertainty of sales data, unless all products are included in the input data, the input data will be huge and contain a lot of invalid data, which will ultimately cause the trained machine learning model to fail to converge.
[0044] In addition, although inventory data is relatively stable compared to sales data, since inventory data also has the problem of too many product categories, it can also cause the machine learning model to fail to converge.
[0045] Based on the above reasons, there are major technical obstacles to directly using inventory data and sales data for machine learning model training and prediction.
[0046] Based on the above, the technical solution of the present application adopts a new technical concept. Specifically, as one of the solutions, after collecting inventory data and sales data; the SKU data and sales quantity of the top five products in terms of sales quantity are obtained from the sales data (on that day), as well as the existing inventory quantity corresponding to these top five products, to form a matrix of five rows and three columns, and the matrix is used as store status feature data.
[0047] As an expansion solution, the number of rows in the matrix can be set according to the size of the store. For stores with larger transaction volumes, which sell more categories of goods every day, the number of rows in the matrix can be set to more than a dozen or dozens of rows.
[0048] As a preferred solution, the total number of commodity categories in the store inventory is S, and the head value M=S×K is calculated, where K is the head percentage, which is determined based on the numerical range in which S is located.
[0049] When 300 ≥ S > 0, the range of the head percentage is 7%; when 1000 ≥ S > 300, the range of the head percentage is 15%; when 300 ≥ S > 0, the range of the head percentage is 20%. The number of rectangle rows N is equal to the rounded value of the head value M.
[0050] There are two solutions for training the order prediction model. The input is the store status feature data introduced above. The difference lies in the source of the output data in the training set.
[0051] The first method is to process the store's historical data and use the actual historical purchase orders as output data. Specifically, the output data is a matrix consisting of the SKU data and purchase quantity of the products in the purchase order. The matrix is determined to have two columns. The specific number of rows is generated according to the actual situation of the purchase order. The store status feature data of the day before the actual historical purchase order is used as input data to form a set of training data.
[0052] With this solution, the recommended order data output by the order prediction model is a matrix consisting of SKU data and purchase quantity. The advantage of this solution is that it can directly generate purchase orders, but due to the uncertainty of the output matrix, the order prediction model is equivalent to an empirical model. During training, the order of input training sets and the setting of model parameters have a great impact on the final output. The accuracy fluctuates greatly, and a high confidence threshold needs to be set to ensure that the output has reference significance, which causes the problem of program loop during operation. In this way, as a preferred solution, the order prediction model can use the CNN neural network model.
[0053] The second method is to build the order prediction model into a prediction machine learning model, that is, the store status feature data before the day is used as input data, and the store status feature data of the day is used as output data to train the order prediction model. In this way, the output data and the output data are both regular data and a certain matrix, which is easier to train and converge. In this way, as a preferred solution, the order prediction model can use the BP neural network model.
[0054] As a preferred option, the second method is used to build an order prediction model. In this case, the output is not direct purchase order data, but tomorrow's store status feature data (actually a matrix) as introduced above. In this matrix, the SKU data, sales quantity and inventory quantity of the top products that may appear on the second day are predicted.
[0055] The system traverses the sales quantity and inventory quantity data of all commodities in the forecast matrix to determine whether they meet the preset relative relationship. Specifically, the correlation relationship is sales quantity > inventory quantity × balance coefficient; wherein the balance coefficient value ranges from 0.27 to 0.7. As a preferred embodiment, the balance coefficient value is 0.5. At this time, when the correlation relationship is determined to be that the sales quantity is greater than 50% of the inventory quantity, the commodity is selected into the purchase order.
[0056] As a preferred solution, an order prediction model is trained for each store, that is, one order prediction model corresponds to one store. The data of each store is input into the corresponding order prediction model.
[0057] As a preferred solution, the artificial intelligence-based automated order generation method also includes: if the recommended confidence is less than or equal to the recommended confidence threshold, returning to the step of collecting inventory data and sales data, that is, using the order prediction model for processing again, and outputting new output data and confidence.
[0058] As a further solution, if the recommendation confidence still cannot meet the recommendation confidence threshold, for example, it still cannot meet the threshold after exceeding the preset number of times (of course the preset number of times can be 0, that is, proceed directly to the next step without returning to the order prediction model for data processing), then the store status feature data of the day will be used as the predicted store status feature data, that is, a purchase order will be generated directly with the data of the day.
[0059] After the purchase order is generated, it can be sent to the store user for reference. If the store user confirms the purchase order, the order can be placed automatically. Of course, with the authorization of the store user, the system can also place an order directly based on the purchase order to realize unmanned management.
[0060] As a preferred solution, considering the price fluctuation of the e-commerce platform, generating a purchase order based on the suggested order data includes the following steps: generating a purchase commodity list based on the suggested order data; obtaining the instant purchase price of the commodities in the purchase commodity list; obtaining the future predicted price of the commodities in the purchase commodity list; calculating the total price difference between the instant purchase total price and the future predicted total price of all commodities in the purchase commodity list; judging whether the total price difference is greater than the difference threshold, if the total price difference is less than the difference threshold, generating the total price of the purchase order with the instant purchase price. If the total price difference is greater than the difference threshold, the store user is prompted with the price difference (total price difference) between today's order and tomorrow's order, as well as the commodity categories that may be out of stock in the suggested order data (screened by the difference between the inventory quantity and the sales quantity in the above prediction matrix), and the user can choose to place an order today or automatically tomorrow.
[0061] As another solution, if the total price difference is greater than the difference threshold, the sales data is input into the sales forecast model so that the sales forecast model outputs the future forecast sales; the future forecast inventory is calculated based on the current inventory data and the future forecast sales; if the future forecast inventory is less than or equal to 0, the total price of the purchase order is generated at the current instant purchase price, and if the future forecast inventory is greater than 0, the total price of the purchase order is generated at the future forecast price. When the total price of the purchase order is generated at the future forecast price, the system places an order for the store user on the next day or prompts the store user to place an order on the next day.
[0062] The advantage of using a sales forecasting model alone is that, compared to the multiple feature dimensions of the order forecasting model, its sales forecast for a single product is affected by other variables.
[0063] The machine learning model for a single product SKU trained with the historical sales data of a single product has relatively regular data input and output, and is easy to converge. As a preferred solution, the sales prediction model is a BP neural network model, whose input data is the historical sales data of a certain product before the day, and whose output data is the predicted sales of the product on the next day (i.e., the predicted future sales).
[0064] This approach is mainly used to compare the cost changes between orders placed on the same day and the next day, because in most cases the generation of purchase orders is based on future (next day) forecasts, avoiding immediate losses for future demand.
[0065] As a further preferred solution, future price prediction can be performed by the following method: input the current purchase price into a price prediction model; obtain the predicted price and price confidence output by the price prediction model; if the price confidence is greater than the price confidence threshold, output the predicted price as the future predicted price; if the price confidence is less than or equal to the price confidence threshold, output the average price within the specified period as the future predicted price.
[0066] Similar to the sales prediction model, the machine learning model for a single product is relatively easy to train. The price prediction model is also a BP neural network model, whose input data is the historical price data of a certain product before the current day, and its output data is the predicted price of the product the next day. That is, one price prediction neural network corresponds to one product SKU.
[0067] In practice, the price confidence threshold can be set to a smaller value, because the price of goods will not change significantly due to cost considerations. In addition, the price of goods here refers to the "group order" price of the e-commerce platform, not the supplier price or the retail price of the store.
[0068] In addition, as an optional solution, when the price confidence is less than or equal to the price confidence threshold, the specified period may be one month or one week.
[0069] Through the above solution, automated order generation and management can be achieved from the perspective of the store itself, thereby providing a background data foundation for store users to realize automated ordering and price comparison functions through store terminals.
[0070] As another aspect of this application, in order to analyze the order trends of stores in a business district, such as Figure 5 As shown, the store order trend prediction method of the present application includes the following steps: dividing stores into several associated business district sets according to preset rules; generating observation feature data based on all historical orders of all stores in the associated business district set within a set observation period; inputting the observation feature data into a business district prediction model so that the business district prediction model outputs a business district order prediction data and a corresponding business district confidence; judging whether the business district confidence is greater than a preset business district confidence threshold, if the business district confidence is greater than the preset business district confidence threshold, obtaining the store order prediction data of at least one store in the associated business district set based on the business district order prediction data.
[0071] Among them, the associated business district set is actually a set of stores. From the perspective of data representation, it can be expressed as the store ID; of course, it can also be expressed as the name of the store, but the text itself is not suitable for data processing. It is preferred to use the store's unique store ID code, or the store user's unique account ID can be used. The functions of these two are the same.
[0072] As a specific solution, the following method is used to realize the division of the associated business district set. The specific method includes the following steps: establishing a two-dimensional coordinate system according to the geographical location; obtaining the coordinate value of the store in the two-dimensional coordinate system; performing K-Means clustering operation on the coordinate value of the store in the two-dimensional coordinate system; and dividing the associated business district set according to the result of the K-Means clustering operation.
[0073] This method can be used to cluster stores in terms of geographical location, but it cannot reflect the commercial attributes of stores from the perspective of geographical location alone, and therefore cannot achieve clustering from a commercial perspective.
[0074] As a preferred solution based on the above, a commercial attribute dimension may be added to perform three-dimensional clustering operations on the stores so that the associated business district set can reflect the commercial associations between the stores.
[0075] As a specific scheme, the method includes the following steps: obtaining the historical order data of the store; calculating the average order value of the store based on the historical order data of the store, the average order value being the average of the order values of all purchase orders of the store during the observation period; establishing a three-dimensional coordinate system using the average order value as the third dimension; obtaining the coordinate value of the store in the three-dimensional coordinate system; performing K-Means clustering operation on the coordinate value of the store in the three-dimensional coordinate system; and dividing the associated business district set according to the result of the K-Means clustering operation.
[0076] The cleverness of this solution is that the average value of purchase orders can simultaneously reflect the size of the store and the store's purchase intention and customer stickiness on the e-commerce platform. This is something that other data dimensions do not have, and based on actual application results, this dimension can better divide the collection of related business districts.
[0077] As a preferred solution, the observation period is quarterly or annual. Such a long period of time can more stably reflect the characteristics of the store.
[0078] Figure 7 It shows a result of three-dimensional clustering, which is similar to the state shown in the modified figure. The set of related business districts divided after the above three-dimensional clustering operation more accurately reflects the business districts composed of stores that influence each other.
[0079] In this way, multiple business district prediction models trained according to the division results of the associated business district set can output the required analysis data more accurately.
[0080] Specifically, the store order trend prediction method also includes the following steps: all historical orders of all stores in the associated business district set within a set observation period are used as training set data.
[0081] The setting of the observation period here can be based on the needs of data analysis, such as weekly analysis or daily analysis. As a preferred solution, the observation period is set to one week.
[0082] like Figure 6 As shown in the figure, suppose there are 6 stores in a certain associated business district set, and the observation period is one week. At this time, collect the historical order data of one week, and obtain the following data for each store ID: order data, total order amount (the sum of all order amounts), quantity SKU and value SKU. Then, they are Figure 6 The matrix is constructed in this way as the input data of the business district prediction model, that is, the observed feature data is a matrix expressing the stores, commodities and their corresponding relationships, where the corresponding relationship is the corresponding relationship of the attributes after the commodities are summarized.
[0083] More specifically, the observed feature data is constructed in a matrix format, which includes five columns, namely the store ID, order data, total order amount, quantity SKU and value SKU of the same store, and the rows of the matrix correspond to different stores in the associated business district set.
[0084] Among them, the quantity SKU is the SKU code of the category of goods with the largest quantity after all orders are aggregated, while the value SKU refers to the SKU code of the category of goods with the highest aggregate price after all orders are aggregated.
[0085] At the same time, as a preferred embodiment, the output data of the business district prediction model (business district order prediction data) is also a same matrix, that is, the business district order prediction data is also a matrix expressing stores, commodities and their corresponding relationships, that is, the matrix introduced above. Through this matrix, the possible number of orders, total order amount and other information of a store in the next observation period can be obtained.
[0086] The business district prediction model can be a BP neural network model or a logistic regression analysis model.
[0087] By adopting the solution of the associated business district set and business district prediction model introduced above, stores with strong commercial connections can be classified and analyzed together, so as to analyze and predict the order trends of stores from the perspective of the business district as a whole.
[0088] As another aspect of this application, Fig. 9 As shown, the present application also provides a store product analysis method, which includes the following steps: obtaining the store's historical purchase order data; generating the store's three-dimensional attribute coordinates based on the store's historical purchase order data; performing K-Means clustering operation on the coordinate values of the store's three-dimensional attribute coordinates; dividing into several store attribute sets based on the results of the K-Means clustering operation; constructing order prediction models corresponding to different store attribute sets; and inputting the store's historical purchase order data into the order prediction model corresponding to the store attribute set to which it belongs.
[0089] Specifically, the construction of three-dimensional attribute coordinates includes the following steps: setting up a commodity classification table to divide commodities into fast-moving consumer goods, daily necessities and stationery categories; classifying commodities in a store's historical purchase order data into categories of the commodity classification table according to the commodity classification table; calculating the total price of the store's commodities in each category of the commodity classification table; establishing a coordinate system of three-dimensional attribute coordinates with the three categories of the commodity classification table as coordinate axes, and using the total price of the store in these three categories as coordinate values.
[0090] As a preferred solution, the system can set the time period length for collecting historical purchase orders according to analysis needs, such as quarterly or annual. As a preferred solution, if a relatively stable order prediction model and store attribute set is to be obtained, the collection time period length is set to annual.
[0091] When the length of the time period is annual, the above method is specifically as follows: summarize the annual purchase orders of a store, classify the summarized goods into three categories according to the three categories in the commodity classification table, and count the total price of all goods in the three categories respectively. The total price of the store under the three categories is the coordinate value of the store in the three-dimensional attribute coordinates. In view of the length of the time period, the counting unit of the total price is one hundred yuan, so as not to cause the coordinate value to be too large, thereby causing the coordinate points representing the circuit to be too discrete due to the calculation unit during clustering operation.
[0092] Through the above three-dimensional attribute coordinate establishment and clustering operations, stores can be divided into different store attribute sets. Ideally, according to the design concept of fast-moving consumer goods, daily necessities and stationery categories, the stores are divided into corresponding business district types, community types and school types. Among them, fast-moving consumer goods are the main purchase commodity category in the purchase orders of business district-type stores; daily necessities are the main purchase commodity category in the purchase orders of community-type stores; and stationery is the main purchase commodity category in the purchase orders of school-type stores. As an optional solution, fast-moving consumer goods can include: beverages, snacks and instant noodles, etc.; daily necessities can include: seasonings, cleaning agents and daily necessities; stationery can include: stationery, toys, etc.
[0093] When sorting and analyzing the actual data, we found that the attributes of many stores are relatively complex. If we only want to classify them into business district type, community type, and school type, we can use the highest total price after classification to classify them into that type. However, through the later model construction and verification, we found that simple classification brings great difficulty to model training. For example, even for stores positioned as school-type, there is a problem that the purchase volume of fast-moving consumer goods is greater than the purchase volume of stationery. Therefore, simple classification cannot bring practical value to later analysis and model construction.
[0094] By adopting the above scheme, the stores can be divided into a store attribute set according to the actual situation through dimensional division and three-dimensional clustering. This store attribute set reflects the actual attributes rather than the classification attributes formed by artificial division.
[0095] After the above division of store attribute sets, it can be considered that the stores in the store attribute set have similar attribute characteristics. Based on this, an order prediction model is constructed for each store attribute set.
[0096] The order prediction model is a prediction model whose input is historical data and whose output is predicted data and corresponding confidence.
[0097] From the training perspective, all historical purchase orders of all stores in the store attribute set are organized as follows: Fig.11 The matrix shown in Figure 1 has only one row corresponding to a purchase order, and its columns are divided into order amount, quantity SKU, and value SKU. The historical purchase orders of a store are used as corresponding training data to train the order prediction model.
[0098] The quantity SKU is the SKU value of the product with the largest quantity in the purchase order, and the value SKU is the SKU value of the product with the highest payment amount in the purchase order.
[0099] As a preferred solution, an observation period can be set. When the order prediction model is trained, it is not limited by the observation period. When the order prediction model is used, the input data can be historical data within an observation period, such as one week or one month.
[0100] The order prediction model can be a BP neural network model or a logistic regression analysis model.
[0101] In this way, the order prediction model belonging to a certain store attribute set can predict the amount of the store's next purchase order, the items with the largest purchase quantity, and the items with the highest total purchase price by inputting the historical data of a store in the store attribute set.
[0102] As a preferred solution, the method further includes the following steps: determining whether the number of times that the confidence of the store order prediction data is less than or equal to the preset threshold is greater than or equal to 3, and if greater than or equal to 3, using the store order data with the highest confidence output by the current order prediction model as analysis data. Since the store attribute set classification method is adopted, generally speaking, there will be no confidence problem, and the data with the highest confidence output by the model can also be used as analysis data.
[0103] Through the above three methods, we obtained recommended order data from the perspective of store operation itself, business district order forecast data from the perspective of business district, and store order forecast data from the perspective of store operation type.
[0104] The system will compare and analyze the recommended order data, business district order forecast data and store order forecast data to obtain further application functions and analysis functions.
[0105] As one of the preferred solutions, after the recommended order data is generated, the corresponding business district order prediction data and store order prediction data can be compared to analyze their differences, so as to determine the accuracy of the recommended order data.
[0106] As another solution, the business district order prediction data and store order prediction data are compared to analyze the deviation between the business district and the business direction, so as to give users suggestions to match their business direction with the business district.
[0107] As another aspect of this application, Fig.12 As shown, the present application also provides a server 100, that is, a device for executing a program, which includes a memory 101 and a processor 102. The memory 101 is used to store computer programs, and the processor 102 is used to implement the steps of the method provided above when executing the computer program.
[0108] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided above are implemented.
[0109] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided above are implemented.
[0110] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A store commodity analysis method based on artificial intelligence, characterized in that: The store product analysis method based on artificial intelligence includes the following steps: Get the store's historical purchase order data; Generating three-dimensional attribute coordinates of the store according to historical purchase order data of the store; Performing a K-Means clustering operation on the coordinate values of the three-dimensional attribute coordinates of the store; Divide the result of the K-Means clustering operation into several store attribute sets; Constructing order prediction models corresponding to different store attribute sets; Inputting the historical purchase order data of the store into an order prediction model corresponding to the attribute set of the store to which it belongs; The step of generating the three-dimensional attribute coordinates of the store according to the historical purchase order data of the store comprises the following steps: Set up a product classification table to divide the products into fast-moving consumer goods, daily necessities and stationery; According to the commodity classification table, the commodities in the historical purchase order data of the store are respectively classified into the categories of the commodity classification table; Calculate the total price of the commodities in each category of the commodity classification table of the store; A coordinate system of three-dimensional attribute coordinates is established using the three categories of the commodity classification table as coordinate axes, and the total price of the store in the three categories is used as the coordinate value; The input data of the order prediction model is historical order data, and the output data of the order prediction model is store order prediction data and corresponding confidence levels; The order prediction model is a BP neural network model; The order prediction model is a logistic regression analysis model; The artificial intelligence-based store product analysis method also includes the following steps: Determine whether the confidence of the store order prediction data output by the order prediction model is greater than a preset threshold value, and if the confidence of the store order prediction data is greater than the preset threshold value, use the store order prediction data as analysis data; If the confidence level of the store order prediction data is less than or equal to a preset threshold, returning to input the store's historical purchase order data into the corresponding order prediction model; The artificial intelligence-based store product analysis method also includes the following steps: Determine whether the confidence of the store order prediction data is less than or equal to a preset threshold number of times is greater than or equal to 3. If it is greater than or equal to 3, use the store order data with the highest confidence output by the current order prediction model as analysis data.
