Product retail method and system
By combining the dual-modal forecast model and reinforcement learning model of historical sales data and external data sources, the inventory is dynamically adjusted, which solves the problem of insufficient demand forecast accuracy and real-time performance in traditional inventory management methods, and achieves more efficient inventory management and Profit maximization.
Patent Information
- Application Number
- CN202410621272.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional inventory management methods rely on empirical judgment and historical sales data, are difficult to reflect market dynamics in real time, and ignore external factors, resulting in poor demand forecast accuracy and lack of real-time and accuracy in inventory adjustments, resulting in excessive inventory or out-of-stocks, increasing costs and cutting profits. space.
A bimodal forecasting model that combines historical sales data with external data sources such as social media sentiment analysis data is used to predict demand through an autoregressive integral moving average model and a deep learning model. It is combined with a reinforcement learning model for inventory optimization and dynamic inventory adjustment.
It improves demand forecast accuracy and real-time inventory adjustment, reduces inventory backlog and out-of-stock risks, improves operational efficiency and profit maximization, and enhances market response speed and competitiveness.
Smart Images

Figure CN118586953A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data analysis technology, and more particularly to a product retail method and system. Background Art
[0002] In the contemporary retail environment, companies are facing unprecedented competitive pressures, mainly due to the expansion of global markets, the rise of e-commerce, and the rapid changes in consumer preferences. In this context, the ability to accurately predict product demand and efficiently adjust inventory levels has become a key factor in determining the success of a company's operations. This is not only related to the company's cost control, but also directly affects the quality of customer service and market response speed, which in turn affects the company's profitability and market competitiveness.
[0003] Traditional inventory management methods mostly rely on managers’ experience and simple analysis of historical sales data. These methods may have been sufficient to cope with relatively stable market demand in the past, but in the current era of information explosion and changing consumer behavior, they seem to be powerless. The main problems are:
[0004] Lack of dynamism: Traditional methods have difficulty reflecting market dynamics in real time, such as sudden trends, seasonal changes, or the impact of emergencies on consumer behavior;
[0005] Ignoring external factors: Making decisions based solely on internal sales data, ignoring the potential impact of external environmental factors such as social media, economic indicators, and weather changes on demand, which greatly reduces the accuracy of forecasts;
[0006] High cost and low efficiency: Relying on manual judgment and delayed response may lead to excessive inventory or out-of-stock. The former increases storage costs and capital occupation, while the latter may lead to loss of sales opportunities. Both directly reduce the profit margin of the enterprise.
[0007] Given this, it has become critical for modern retailers to develop and apply advanced forecasting models that integrate historical sales data with external environmental factors. Summary of the invention
[0008] The embodiments of the present application provide a product retail method and system to solve the problem that the inventory in the prior art mostly depends on the experience judgment of managers and simple analysis of historical sales data, resulting in poor demand forecasting accuracy and lack of real-time and accuracy in inventory adjustment.
[0009] In a first aspect, the present application provides a product retail method, comprising:
[0010] A10, obtaining historical data of product sales as input data; the historical data includes time series data of historical product sales records and external data sources; the external data sources include social media sentiment analysis data;
[0011] A20, preprocessing the input data to obtain preprocessed data; the preprocessing includes data cleaning, standardization, and processing of missing values and outliers;
[0012] A30, constructing time series features and periodic features based on the preprocessed data;
[0013] A40, the time series characteristics and the periodic characteristics are processed respectively through the autoregressive integrated moving average model, and after processing, they are fused and input into the pre-built bimodal prediction model to generate demand forecast results to dynamically adjust the inventory; wherein, the bimodal prediction model includes a demand forecast module and an inventory optimization module.
[0014] Optionally, the demand forecasting module is constructed based on a deep learning model of time series analysis; the inventory optimization is constructed based on a reinforcement learning model;
[0015] The demand forecasting module is used to input the input data into a pre-built deep learning model for time series analysis to generate a demand forecasting result;
[0016] The inventory optimization module is used to dynamically adjust the inventory based on the demand forecast results in combination with real-time market feedback information through a reinforcement learning model.
[0017] Optionally, generate demand forecast results by:
[0018] A42, taking the fused feature as the first feature, inputting it into the deep learning model of the time series analysis, and obtaining the demand forecast result:
[0019] A421, weighting the i-th feature by the weight matrix of the i-th hidden layer in the deep learning model of the time series analysis, and adding the weighted feature to the bias term of the i-th hidden layer; activating the added feature by the activation function of the i-th hidden layer to obtain the i+1-th feature;
[0020] A422, execute A421 cyclically until the set number of network layers is reached, and then output the i+1th feature as the demand prediction result.
[0021] Optionally, the method for the reinforcement learning model to obtain the optimal strategy is:
[0022] Define the state space S of the retail environment, including inventory levels, historical sales data, and external influencing factors; initialize the initial strategy π; set a discount factor γ between 0 and 1;
[0023] Select an action a according to the current strategy π t , execute action a t After that, get the new state s t+1 . and instant rewards t ;
[0024] The r t .Multiply it by the discount factor at time t and add them together. Update the strategy π based on the accumulated result to get the optimal strategy.
[0025] Optionally, the r t . Multiply and accumulate the discount factor at time t, and update the strategy π based on the accumulated result to obtain the optimal strategy. The method is:
[0026]
[0027] Among them, π * represents the optimal strategy, τ represents a trajectory consisting of states, action sequences and corresponding rewards, γ∈[0,1), represents the discount factor, and r t Indicates reward.
[0028] Optionally, if the reinforcement learning model adopts the Q-learning method to update the Q function, the updating method is:
[0029] Get the state s at time t+1 t+1 The maximum total value of the expected cumulative reward after taking the next possible action a′ is taken as the first Q value; the first Q value is multiplied by the discount factor as the second Q value;
[0030] Get the reward r at time t t , the r t Add the second Q value and subtract it from the third Q value to obtain a fourth Q value; the third Q value is the state s at time t t The total value of the expected cumulative reward after taking action a;
[0031] Multiplying the fourth Q value by a preset learning rate to obtain a fifth Q value;
[0032] The fifth Q value is added to the third Q value, and the Q value at time t+1 is updated based on the added value.
[0033] In a second aspect, an embodiment of the present application provides a product retail management system, the system comprising:
[0034] A data acquisition module is configured to acquire historical data of product sales as input data; the historical data includes time series data of historical product sales records and external data sources; the external data sources include social media sentiment analysis data;
[0035] A preprocessing module is configured to preprocess the input data to obtain preprocessed data; the preprocessing includes data cleaning, standardization, and processing of missing values and outliers;
[0036] A feature construction module, configured to construct time series features and periodic features based on the preprocessed data;
[0037] The forecast adjustment module is configured to process the time series characteristics and the periodic characteristics respectively through the autoregressive integrated moving average model, fuse and input the processed characteristics into a pre-built bimodal forecast model to generate a demand forecast result to dynamically adjust the inventory; wherein the bimodal forecast model includes a demand forecast module and an inventory optimization module.
[0038] In a third aspect, an embodiment of the present application provides a computing device, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the product retail method as described in the first aspect above.
[0039] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a computer program, which, when executed by a computer, implements the product retail method as described in the first aspect above.
[0040] The beneficial effects of the present application method include:
[0041] The present invention improves the demand forecasting accuracy and enhances the real-time performance and accuracy of inventory adjustment.
[0042] 1) The present invention can capture complex time series patterns and external factors through deep learning models, thereby improving the accuracy of demand forecasting;
[0043] 2) The present invention uses a reinforcement learning model to enable inventory strategies to quickly adapt to market changes, reduce inventory backlogs and out-of-stock risks, and improve operational efficiency;
[0044] 3) The present invention comprehensively considers inventory costs and sales revenue to maximize profits, reduce human intervention, improve decision-making speed and the ability to respond to market changes, and enhance corporate competitiveness.
[0045] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1 A flowchart of an embodiment of a product retail method provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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.
[0050] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to different types.
[0051] The first embodiment of the present invention proposes a product retail method, which aims to achieve accurate demand forecasting and dynamic inventory adjustment by integrating historical sales data with external data sources, using advanced data processing technology and bimodal forecasting models, thereby improving inventory turnover, reducing inventory costs, and enhancing market response speed. Figure 1 The specific processing process is as follows:
[0052] A10, obtaining historical data of product sales as input data; the historical data includes time series data of historical product sales records and external data sources; the external data sources include social media sentiment analysis data;
[0053] In this embodiment, it is assumed that a supermarket chain wants to optimize its inventory management, reduce expiration losses and out-of-stock situations, and improve customer satisfaction. It decides to adopt a dynamic inventory and demand bimodal forecasting algorithm (DIBP) to integrate internal and external data sources to improve forecast accuracy and inventory decision-making efficiency. First, it is necessary to collect sales history records of specific products, including but not limited to detailed information such as sales volume, sales amount, and sales time. In addition, external data sources, especially social media sentiment analysis data, are included to capture changes in consumer attitudes towards products and market trends. For example, by analyzing comments, likes, and sharing on social media, potential fluctuations in product reputation and market demand can be understood.
[0054] A20, preprocessing the input data to obtain preprocessed data; the preprocessing includes data cleaning, standardization, and processing of missing values and outliers;
[0055] Data cleaning and preprocessing are crucial steps before data analysis and modeling, which are directly related to the performance of the model and the reliability of the results.
[0056] In this embodiment, the collected data is cleaned to remove irrelevant or erroneous information; standardized to ensure the comparability of data from different sources and the consistency of model input; missing values are processed by interpolation or filling using model predictions; outliers are identified and corrected to avoid their adverse effects on the prediction results.
[0057] Among them, the method of removing irrelevant or erroneous information can be to calculate the Pearson correlation coefficient or other correlation indicators between variables to eliminate features with low correlation with the target variable; or use statistical methods or machine learning algorithms (such as Isolation Forest, Z-Score) to identify and eliminate outliers;
[0058] Standardization can be done through minimum-maximum scaling and Z-Score standardization;
[0059] The min-max scaling is:
[0060]
[0061] Among them, x is the original value, x min and x max are the minimum and maximum values respectively.
[0062] Z-Score is normalized to:
[0063]
[0064] Here, μ is the mean and σ is the standard deviation.
[0065] Identifying and correcting outliers can be done through the Z-Score method and the IQR (interquartile range) method;
[0066] The IQR (interquartile range) method is:
[0067] Q1 = first quartile, Q3 = third quartile, IQR = Q3-Q1, and outliers are defined as data points below Q1-1.5×IQR or above Q3+1.5×IQR.
[0068] A30, constructing time series features and periodic features based on the preprocessed data;
[0069] In this embodiment, based on the preprocessed data, time series features are extracted, such as historical sales trends and seasonal patterns; periodic features are constructed, taking into account periodic laws such as weekly cycles, monthly cycles, and holiday effects, to provide the model with information on the time dimension.
[0070] A40, the time series characteristics and the periodic characteristics are processed respectively through the autoregressive integrated moving average model, and after processing, they are fused and input into the pre-built bimodal prediction model to generate demand forecast results to dynamically adjust the inventory; wherein, the bimodal prediction model includes a demand forecast module and an inventory optimization module.
[0071] In the field of time series analysis, the Autoregression Integrated Moving Average (ARIMA) model is a powerful and widely used method, especially suitable for capturing and predicting autocorrelation and long-term trends in time series data. ARIMA mainly consists of three parts: the "Autoregression (AR) part", in which the model assumes that the current value has a linear relationship with the past value. For example, in the AR(p) model, the value at time t depends on the linear combination of the values at p past times; the "Moving Average (MA) part" considers the impact of the past values of the error term (model prediction error) on the current prediction. In the MA(q) model, the current error is the weighted sum of q past error terms. "Integration (I) treatment of non-stationary series" makes the series stationary by differencing, where I(d) represents the order of difference. The ARIMA(p,d,q) model combines these elements and describes the autocorrelation, trend and noise characteristics of the series through parameters p, d, and q, where d represents the order of difference.
[0072] In this embodiment, S41, preferably, the constructed time series features and periodic features are input into an autoregressive integrated moving average model (ARIMA), which can capture the autocorrelation and trend in the time series data. Further, these features are fused after ARIMA processing, or the features after ARIMA processing can be fused with other possible prediction results (such as results based on machine learning models) and input into a pre-built bimodal prediction model.
[0073] Through the ARIMA model, the comprehensive analysis of time series characteristics and cyclical characteristics not only reveals the inherent laws of the data, but also predicts future trends, helping retailers to accurately manage inventory and reduce the risk of over-inventory and out-of-stock. This model is highly flexible and adaptable, and can handle a variety of complex time series patterns. It is particularly suitable for the retail industry with strong seasonality and obvious trend changes, and improves the foresight and efficiency of inventory strategies.
[0074] In the present invention, the demand forecasting module is constructed based on a deep learning model of time series analysis; in the present invention, a recurrent neural network (RNN) such as a long short-term memory network (LSTM) or a gated recurrent unit (GRU) is preferably used, as these models are good at processing long-term dependencies in time series data.
[0075] The input data is input into a pre-built deep learning model for time series analysis to generate demand forecast results, the method of which is:
[0076] A42, taking the fused feature as the first feature, inputting it into the deep learning model of the time series analysis, and obtaining the demand forecast result:
[0077] A421, weighting the i-th feature by the weight matrix of the i-th hidden layer in the deep learning model of the time series analysis, and adding the weighted feature to the bias term of the i-th hidden layer; activating the added feature by the activation function of the i-th hidden layer to obtain the i+1-th feature;
[0078] A422, execute A421 cyclically until the set number of network layers is reached, then output the i+1th feature as the demand forecast result, that is, the structural expression of the deep learning model of the time series analysis is:
[0079]
[0080] Among them, W l and b l are the weight matrix and bias term of the lth layer, σ l represents the activation function of the lth layer, L is the number of network layers, σ L Typically it is a linear function of the output layer or a specific output activation function.
[0081] In the present invention, inventory optimization is constructed based on a reinforcement learning model; an inventory optimization module is used to dynamically adjust inventory through a reinforcement learning model based on the demand forecast results combined with real-time market feedback information.
[0082] In the reinforcement learning framework, the state s t Contains information such as current inventory levels, historical sales data, external influencing factors, etc. Action a t is the inventory adjustment decision (such as replenishment quantity), and the reward r t Reflects the effect of the decision (such as increased profit or cost savings). The goal of reinforcement learning is to find the optimal strategy π * To maximize the cumulative discount reward, the method is:
[0083] Define the state space S of the retail environment, including inventory levels, historical sales data, and external factors; initialize the initial policy π; set a discount factor γ between 0 and 1; select an action a based on the current policy π t , execute action a t After that, get the new state s t+1 and instant rewards t ; The r t . Multiply it with the discount factor at time t and add them together, update the strategy π based on the accumulated result, and then get the optimal strategy. The specific formula is as follows:
[0084]
[0085] Among them, π * represents the optimal strategy, τ represents a trajectory consisting of states, action sequences and corresponding rewards, γ∈[0,1), represents the discount factor, and r t Indicates reward.
[0086] If the Q-learning method is used, the Q function Q(s,a) represents the total value of the expected cumulative reward after taking action a in state s. The update rule can be based on the Bellman equation as follows:
[0087] Get the state s at time t+1 t+1 The maximum total value of the expected cumulative reward after taking the next possible action a′ is taken as the first Q value; the first Q value is multiplied by the discount factor as the second Q value;
[0088] Get the reward r at time t t , the r t Add the second Q value and subtract it from the third Q value to obtain a fourth Q value; the third Q value is the state s at time t tThe total value of the expected cumulative reward after taking action a;
[0089] Multiplying the fourth Q value by a preset learning rate to obtain a fifth Q value;
[0090] The fifth Q value is added to the third Q value, and the Q value at time t+1 is updated based on the added value.
[0091] The formula is:
[0092]
[0093] α is the learning rate and a′ represents the next possible action.
[0094] Combining demand forecasting with inventory optimization forms a closed-loop control strategy, which can be expressed as:
[0095]
[0096] Among them, π depends on the current state s t , demand forecast Y^demand, and parameters W of the inventory optimization module 库存 ,b 库存 The whole system continuously adjusts the W,b parameters through an iterative learning process to optimize the forecasting and inventory management strategies.
[0097] Based on Q-learning, this embodiment hopes to further improve the adaptability of the model by introducing some advanced variants or combining other machine learning techniques, such as Double Q-learning, Dueling Network, or Q-learning with Prioritized Experience Replay. The following takes Double Q-learning as an example and combines the improvement strategy of Prioritized Experience Replay (PER) to illustrate:
[0098] Double Q-learning aims to solve the overestimation problem in Q-learning by introducing two Q functions to evaluate and select actions respectively, so as to more accurately approximate the true value. The update rule is as follows:
[0099]
[0100] Among them, Q tA and Q tB They represent two Q networks, which are updated alternately as evaluation and action selection networks to reduce over-estimation bias.
[0101] Priority Experience Replay accelerates learning efficiency and performance improvement by giving more informative experiences a higher learning weight. t =(s t ,a t ,r t+1 ,s t+1 ) is assigned a priority p t , usually based on the absolute value of the TD error or its square, and then use this priority to sample,
[0102] When updating, the sampling probability P(e t ) and priority p t proportional to, and the weight w during learning t To adjust inversely proportional to the sampling probability to ensure unbiased estimation, that is:
[0103]
[0104] Among them, β is a non-negative parameter, which gradually increases with the learning process to increase the proportion of importance sampling.
[0105] Based on the above improvements, the updating process not only considers the accuracy of Double Q-learning, but also enhances the learning efficiency and effect through PER, making the model learning process more complex and closer to actual application needs.
[0106] A product retail management system according to a second embodiment of the present invention includes:
[0107] A data acquisition module is configured to acquire historical data of product sales as input data; the historical data includes time series data of historical product sales records and external data sources; the external data sources include social media sentiment analysis data;
[0108] A preprocessing module is configured to preprocess the input data to obtain preprocessed data; the preprocessing includes data cleaning, standardization, and processing of missing values and outliers;
[0109] A feature construction module, configured to construct time series features and periodic features based on the preprocessed data;
[0110] The forecast adjustment module is configured to process the time series characteristics and the periodic characteristics respectively through the autoregressive integrated moving average model, fuse and input the processed characteristics into a pre-built bimodal forecast model to generate a demand forecast result to dynamically adjust the inventory; wherein the bimodal forecast model includes a demand forecast module and an inventory optimization module.
[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system of the second embodiment described above can refer to the corresponding process in the method of the first embodiment, and will not be repeated here.
[0112] In one possible design, a product retail management system may be implemented as a computing device such as Figure 2 As shown, the computing device may include a storage component 41 and a processing component 42;
[0113] The storage component 41 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 42 .
[0114] The processing component 42 is used to: obtain historical data on product sales as input data; preprocess the input data to obtain preprocessed data; construct time series features and periodic features based on the preprocessed data; process the time series features and the periodic features through an autoregressive integrated moving average model respectively, and after processing, fuse and input the processed data into a pre-constructed bimodal prediction model to generate demand forecast results so as to dynamically adjust inventory.
[0115] The processing component 42 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0116] The storage component 41 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0117] The display component 43 may be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.
[0118] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.
[0119] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0120] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.
[0121] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.
[0122] The present application also provides a computer storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The product retail method of the illustrated embodiment.
[0123] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0124] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of retailing a product, It is characterized in that The method includes: A10, obtaining historical data of product sales as input data; the historical data includes time series data of historical product sales records and external data sources; the external data sources include social media sentiment analysis data; A20, preprocessing the input data to obtain preprocessed data; the preprocessing includes data cleaning, standardization, and processing of missing values and outliers; A30, constructing time series features and periodic features based on the preprocessed data; A40, the time series characteristics and the periodic characteristics are processed respectively through the autoregressive integrated moving average model, and after processing, they are fused and input into the pre-built bimodal prediction model to generate demand forecast results to dynamically adjust the inventory; wherein, the bimodal prediction model includes a demand forecast module and an inventory optimization module.
2. The product retail method according to claim 1, It is characterized in that The demand forecasting module is constructed based on a deep learning model of time series analysis; the inventory optimization is constructed based on a reinforcement learning model; The demand forecasting module is used to input the input data into a pre-built deep learning model for time series analysis to generate a demand forecasting result; The inventory optimization module is used to dynamically adjust the inventory based on the demand forecast results in combination with real-time market feedback information through a reinforcement learning model.
3. The product retail method according to claim 2, It is characterized in that Generate demand forecast results, the method is: A42, taking the fused feature as the first feature, inputting it into the deep learning model of the time series analysis, and obtaining the demand forecast result: A421, weighting the i-th feature by the weight matrix of the i-th hidden layer in the deep learning model of the time series analysis, and adding the weighted feature to the bias term of the i-th hidden layer; activating the added feature by the activation function of the i-th hidden layer to obtain the i+1-th feature; A422, execute A421 cyclically until the set number of network layers is reached, and then output the i+1th feature as the demand prediction result.
4. The product retail method according to claim 2, It is characterized in that The method for the reinforcement learning model to obtain the optimal strategy is: Define the state space S of the retail environment, including inventory levels, historical sales data, and external influencing factors; initialize the initial strategy π; set a discount factor γ between 0 and 1; Select an action a according to the current strategy π t , execute action a t After that, get the new state s t+1 and instant rewards t ; The r t Multiply it by the discount factor at time t and add them together, update the strategy π based on the accumulated result, and then get the optimal strategy.
5. The product retail method according to claim 4, It is characterized in that The r t Multiply it by the discount factor at time t and add it up. Update the strategy π based on the accumulated result to get the optimal strategy. The method is: Among them, π* represents the optimal strategy, τ represents a trajectory consisting of a state, action sequence and corresponding reward, γ∈[0,1), represents the discount factor, and r t Indicates reward.
6. The product retail method according to claim 5, It is characterized in that If the reinforcement learning model adopts the Q-learning method to update the Q function, the update method is: Get the state s at time t+1 t+1 The maximum total value of the expected cumulative reward after taking the next possible action a′ is taken as the first Q value; the first Q value is multiplied by the discount factor as the second Q value; Get the reward r at time t t , the r t Add the second Q value and subtract it from the third Q value to obtain a fourth Q value; The third Q value is the state s at time t t The total value of the expected cumulative reward after taking action a; Multiplying the fourth Q value by a preset learning rate to obtain a fifth Q value; The fifth Q value is added to the third Q value, and the Q value at time t+1 is updated based on the added value.
7. A product retail management system, It is characterized in that The system includes: A data acquisition module is configured to acquire historical data of product sales as input data; the historical data includes time series data of historical product sales records and external data sources; the external data sources include social media sentiment analysis data; A preprocessing module is configured to preprocess the input data to obtain preprocessed data; the preprocessing includes data cleaning, standardization, and processing of missing values and outliers; A feature construction module, configured to construct time series features and periodic features based on the preprocessed data; The forecast adjustment module is configured to process the time series characteristics and the periodic characteristics respectively through the autoregressive integrated moving average model, fuse and input the processed characteristics into a pre-built bimodal forecast model to generate a demand forecast result to dynamically adjust the inventory; wherein the bimodal forecast model includes a demand forecast module and an inventory optimization module.
8. A computing device, It is characterized in that It comprises a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the product retail method according to any one of claims 1 to 6.
9. A computer storage medium, It is characterized in that A computer program is stored, and when the computer executes the computer program, the product retail method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Coal sales volume data prediction method and device, and medium
CN113962741A
Warehouse resource allocation-oriented intelligent decision-making system and method
CN114239385A
Chemical fertilizer demand determination method and device, storage medium and electronic equipment
CN117764635A
Cited By
Consignment sale system management system and method thereof
CN119228273A
