Intelligent replenishment and inventory early warning system for fast-moving consumer goods and method thereof

By collecting and preprocessing multi-dimensional data, fusing models, and correcting shelf-life constraints, the system addresses the issues of insufficient robustness and executability of predictive models in FMCG inventory management, achieving precise replenishment and efficient inventory management, and improving the system's adaptability and resource allocation efficiency.

CN123180890APending Publication Date: 2026-11-27BEIJING ORIENTAL TRADING CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202611264292.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for FMCG inventory management suffer from several issues, including insufficient robustness of predictive models, lack of inclusion of hard constraints on shelf life, lack of verification of the effectiveness of in-transit inventory, incompatibility with supplier execution constraints, failure to reflect differences in replenishment priorities, and insufficient closed-loop self-learning capabilities. These issues prevent the technologies from meeting the FMCG industry's needs for accurate, executable, and adaptive intelligent replenishment management.

Method used

Employing a multi-dimensional data acquisition and preprocessing module, and combining a weighted fusion of three models—LSTM, XGBoost, and Prophet—a shelf-life constraint correction mechanism is introduced. Through supplier constraint adaptation and in-transit inventory verification, dynamic safety stock and replenishment priority are calculated, and a tiered inventory early warning and closed-loop optimization mechanism is established to achieve dynamic demand forecasting and replenishment decisions.

Benefits of technology

It enables accurate forecasting and replenishment management of FMCG inventory, avoids product expiration and stockout issues, optimizes logistics resource allocation, and improves response efficiency and system adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180890A_ABST
    Figure CN123180890A_ABST
Patent Text Reader

Abstract

The application discloses a retail supply chain management technical field, specifically a fast-consumption product intelligent replenishment and inventory early warning system and method, first, multi-dimensional data is collected and preprocessed, and a standardized feature data set is output; then, a dynamic demand prediction model is trained, and a daily demand prediction value of each commodity in each store is output; then, a replenishment quantity is calculated, combined with in-transit inventory and supplier constraints, and a final replenishment list is output; finally, an early warning threshold is calculated, a real-time early warning level is determined and pushed, and an optimization model is fed back according to the execution result of the final replenishment list; based on this, the application verifies the chronological relationship between the predicted arrival time of in-transit goods and the potential out-of-stock time through an in-transit inventory checking mechanism, only effective in-transit inventory is included in the available inventory calculation, and the misjudgment of out-of-stock or repeated replenishment caused by blind dependence on in-transit inventory in the prior art is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of retail supply chain management technology, specifically to a smart replenishment and inventory early warning system and method for fast-moving consumer goods. Background Technology

[0002] The fast-moving consumer goods (FMCG) industry is characterized by a large number of SKUs, fast turnover, large fluctuations in demand, and short shelf life. The accuracy of inventory management directly affects the company's operating costs and customer satisfaction.

[0003] Traditional FMCG inventory management relies primarily on manual experience or static replenishment models based on historical sales, making it difficult to adapt to complex and ever-changing market environments. Specifically, it suffers from the following problems:

[0004] 1. Static replenishment models cannot cope with sudden demand fluctuations: Traditional replenishment methods typically set fixed replenishment cycles and quantities based on historical average sales, making them unable to respond in real time to sudden increases or decreases in demand caused by weather changes, holidays, promotional activities, or other unforeseen factors. For example, when sudden weather events (such as heavy rain) cause a surge in demand for certain products, static models cannot replenish stock in time, resulting in popular items selling out quickly and significant lost sales. Conversely, during non-promotional periods, overestimating demand can lead to stockpiling and expired goods, causing severe economic losses.

[0005] 2. Unified warning thresholds lead to unreasonable warning timing: Most existing systems set the same inventory warning threshold for all products, without considering the turnover rate, logistics cycle, and demand characteristics of different products. For example, for best-selling products with high daily sales, it is often too late to replenish stock when the inventory drops to the unified threshold, resulting in prolonged stockouts; while for products with extremely low monthly sales, an excessively low warning threshold will trigger frequent replenishment, significantly increasing logistics costs.

[0006] In recent years, with the development of artificial intelligence technology, many AI-driven dynamic replenishment solutions have emerged in the field of supply chain inventory management, but there are still obvious limitations:

[0007] Existing technology 1 (see CN121961431A) discloses an AI-based method for calculating and processing inventory thresholds and purchase quantities. It employs a single Long Short-Term Memory (LSTM) model for demand forecasting and dynamically adjusts the inventory threshold based on real-time external environmental parameters (such as pedestrian density at intersections and parking lot vacancy rates). However, this technology relies solely on a single LSTM model, failing to consider the complementarity between models and the correction of prediction bias. Furthermore, its inventory threshold adjustment is based only on a linear mapping of the passenger flow impact index, neglecting actual operational constraints such as product shelf-life constraints, in-transit inventory validity verification, and supplier minimum order quantities. This results in the generated purchase quantity being difficult to execute directly and lacks a differentiated early warning and grading mechanism for different product characteristics.

[0008] Existing technology two (see CN121882373A) discloses an intelligent inventory allocation method based on multi-platform sales forecasting. It uses a long short-term memory network based on an attention mechanism for sales forecasting and combines supply chain cost parameters to construct a multi-objective inventory optimization model. However, this technology also uses a single deep learning model and does not integrate the advantages of multiple forecasting models. Its optimization objective focuses on minimizing global supply chain costs, without considering the hard constraints of the shelf life of fast-moving consumer goods on the forecast output. It also does not involve the timeliness verification of in-transit inventory, the adaptation of replenishment quantities under the constraints of supplier packaging specifications, or the priority ranking of replenishment based on product turnover rate and the degree of stockout impact, resulting in deviations in replenishment decisions at the actual execution level.

[0009] Existing technology three (see CN122134240A) discloses a dynamic optimization method for apparel supply chain inventory that integrates intelligent forecasting. It generates a time-varying replenishment weight vector by constructing a channel value semantic tensor and a dynamic attention mechanism. However, this technology focuses on the fairness of resource allocation among multiple channels in the apparel industry, and its channel priority modeling is fundamentally different from the single-item-level replenishment scenario of FMCG stores. Furthermore, this technology does not address key operational aspects unique to FMCG, such as shelf-life constraint correction, in-transit inventory verification, and supplier minimum order quantity adaptation, nor does it establish a hierarchical push and closed-loop self-learning mechanism based on early warning levels.

[0010] Existing technology four (see CN121836572A) discloses a dynamic replenishment early warning device for vending machines that integrates big data analysis. It uses an LSTM model to predict sales and calculates the early warning threshold using a fixed formula. However, this technology uses a single prediction model, which limits its accuracy. Its early warning threshold calculation formula is a simple linear combination (early warning threshold = predicted sales quantity + safety stock quantity - replenishment batch capacity × replenishment frequency), which does not consider dynamic factors such as demand fluctuation coefficient, in-transit inventory timeliness, and supplier constraints. Furthermore, it lacks the ability to integrate multiple models, meet shelf-life constraints, prioritize replenishment, and perform self-optimization of the closed-loop model, making it difficult to adapt to the complex supply chain scenarios of fast-moving consumer goods with multiple stores and multiple SKUs.

[0011] In summary, while existing technologies have made progress from manual inspection to AI prediction, they still have significant shortcomings in areas such as the robustness of prediction models, hard constraints on shelf life, effectiveness of in-transit inventory, supplier execution constraints, differentiation of replenishment priorities, and closed-loop self-learning. These shortcomings make it impossible to meet the fast-moving consumer goods industry's needs for accurate, executable, and adaptive intelligent replenishment management. Summary of the Invention

[0012] To address the significant shortcomings of existing technologies in areas such as robustness of prediction models, hard constraints on shelf life, effectiveness of in-transit inventory, supplier execution constraints, differentiated replenishment priorities, and closed-loop self-learning, this invention provides the following technical solution:

[0013] The fast-moving consumer goods (FMCG) intelligent replenishment and inventory early warning system includes:

[0014] The multi-dimensional data acquisition and preprocessing module collects multi-dimensional data and preprocesses it to output a standardized feature dataset.

[0015] The dynamic demand forecasting model training module trains the dynamic demand forecasting model based on a standardized feature dataset and outputs the predicted daily demand for each product in each store.

[0016] The intelligent replenishment quantity calculation module includes a safety stock calculation unit, an in-transit inventory verification unit, a replenishment trigger judgment unit, an optimal replenishment quantity calculation unit, a supplier constraint adaptation unit, and a replenishment priority sorting unit.

[0017] The safety stock calculation unit calculates the dynamic safety stock value of each product based on the predicted daily demand for each product in each store, combined with the logistics cycle and demand fluctuation coefficient.

[0018] The in-transit inventory verification unit verifies the validity of the in-transit inventory based on the dynamic safety stock value of each product and combined with real-time in-transit inventory data, and outputs the corrected valid inventory trigger threshold.

[0019] The replenishment trigger judgment unit compares the current inventory with the corrected effective inventory trigger threshold. When the current inventory is lower than the trigger threshold, it triggers replenishment and outputs a list of products to be replenished.

[0020] The optimal replenishment quantity calculation unit calculates the theoretical optimal replenishment quantity for each product based on the predicted daily demand for each product in each store, the dynamic safety stock value of each product, and the list of products to be replenished.

[0021] The supplier constraint adaptation unit adjusts the theoretical replenishment quantity upward based on the theoretical optimal replenishment quantity of each product to be replenished, according to the supplier's minimum order quantity and packaging specifications, and outputs the actual executable replenishment quantity data for each product.

[0022] The replenishment priority sorting unit prioritizes the actual executable replenishment quantities based on the actual executable replenishment quantity data of each product, according to the product price, turnover rate and the degree of impact of stockouts, and outputs the final replenishment list.

[0023] The tiered inventory early warning and execution module calculates the early warning threshold based on the predicted daily demand for each product in each store, determines the early warning level in real time and pushes it out, and at the same time optimizes the model based on the execution results of the final replenishment list.

[0024] As a preferred embodiment of the intelligent replenishment and inventory early warning system for fast-moving consumer goods described in this invention, the multi-dimensional data acquisition and preprocessing module includes:

[0025] The basic data collection unit collects basic product information, store information, supplier information, and logistics information, and outputs the raw basic database.

[0026] The real-time data acquisition unit collects sales data, inventory data, promotional activity data, weather data, holiday data, social media hotspot data, and in-transit inventory data in real time, and outputs raw real-time data streams.

[0027] The data cleaning and fusion unit performs deduplication, missing value processing, and time series alignment and fusion on the original basic database and the original real-time data stream to output a unified dataset.

[0028] The feature engineering building unit extracts time features, weather features, promotion features, historical sales features, and inventory features from a unified dataset and outputs a standardized feature dataset.

[0029] As a preferred embodiment of the intelligent replenishment and inventory early warning system for fast-moving consumer goods described in this invention, the dynamic demand prediction model training module includes:

[0030] The sample set is divided into training, validation and test sets in chronological order by dividing the standardized feature dataset into training, validation and test sets.

[0031] The abnormal sample correction unit identifies and corrects abnormal sales samples in the training set and outputs the corrected training set.

[0032] The basic model training unit trains a long short-term memory network model, a gradient boosting tree model, and a time series prediction model based on the modified training set, and outputs three basic prediction models.

[0033] The model fusion optimization unit performs a weighted average fusion of three basic prediction models based on the validation set, and outputs the optimized fused prediction model.

[0034] The shelf-life constraint correction unit constrains the output of the optimized fusion prediction model based on the product's shelf life, and outputs a prediction model with shelf-life constraints.

[0035] The demand forecasting output unit takes the latest standardized feature dataset as input into the forecasting model with shelf-life constraints and outputs the predicted daily demand for each product in each store.

[0036] As a preferred embodiment of the intelligent replenishment and inventory early warning system for fast-moving consumer goods described in this invention, the tiered inventory early warning and execution module includes:

[0037] The early warning threshold calculation unit calculates the three-level early warning threshold for each product based on the predicted daily demand for each product in each store and the dynamic safety stock value of each product.

[0038] The early warning level determination unit monitors inventory levels in real time based on the three-level early warning threshold table for each product, determines the early warning level according to the threshold range in which the inventory is located, and outputs the current early warning level for each product.

[0039] The tiered early warning push unit pushes early warning information to personnel with different permissions based on the current early warning level of each product;

[0040] The closed-loop optimization and update unit compares the actual sales volume with the predicted sales volume based on the final replenishment list execution data and the results of early warning information processing, calculates the prediction error, and updates the model parameters.

[0041] The method for intelligent replenishment and inventory early warning of fast-moving consumer goods includes the following steps:

[0042] S1, Multi-dimensional data acquisition and preprocessing: Acquire multi-dimensional data and preprocess it to output a standardized feature dataset;

[0043] S2, Dynamic Demand Forecasting Model Training: The dynamic demand forecasting model is trained based on a standardized feature dataset, and the predicted daily demand for each product in each store is output.

[0044] S3, Intelligent Replenishment Quantity Calculation:

[0045] S31, Safety Stock Calculation: Based on the predicted daily demand for each product in each store, combined with the logistics cycle and demand fluctuation coefficient, calculate the dynamic safety stock value for each product.

[0046] S32, In-transit inventory verification: Based on the dynamic safety stock value of each product and combined with real-time in-transit inventory data, verify the validity of in-transit inventory and output the corrected valid inventory trigger threshold.

[0047] S33, Replenishment Trigger Judgment: Compare the current inventory with the corrected effective inventory trigger threshold. When the current inventory is lower than the trigger threshold, replenishment is triggered, and a list of products to be replenished is output.

[0048] S34, Optimal replenishment quantity calculation: Based on the predicted daily demand for each product in each store, the dynamic safety stock value of each product, and the list of products to be replenished, calculate the theoretical optimal replenishment quantity for each product to be replenished.

[0049] S35, Supplier Constraint Adaptation: Based on the theoretical optimal replenishment quantity of each product to be replenished, the theoretical replenishment quantity is adjusted upward according to the supplier's minimum order quantity and packaging specifications, and the actual executable replenishment quantity data of each product is output.

[0050] S36, Replenishment Priority Ranking: Based on the actual executable replenishment quantity data of each product, the actual executable replenishment quantity is prioritized according to product price, turnover rate and the degree of stockout impact, and the final replenishment list is output.

[0051] S4, Tiered Inventory Warning and Execution: Calculates warning thresholds based on the predicted daily demand for each product in each store, determines the warning level in real time and pushes it out, and optimizes the model based on the execution results of the final replenishment list.

[0052] As a preferred embodiment of the intelligent replenishment and inventory early warning method for fast-moving consumer goods described in this invention, the specific steps of S1 are as follows:

[0053] S11, Basic Data Collection: Collect basic product information, store information, supplier information, and logistics information, and output the raw basic database;

[0054] S12, Real-time Data Acquisition: Real-time acquisition of sales data, inventory data, promotional activity data, weather data, holiday data, social media hotspot data, and in-transit inventory data, outputting raw real-time data stream;

[0055] S13, Data Cleaning and Fusion: Deduplication, missing value processing, and time series alignment and fusion are performed on the original basic database and the original real-time data stream to output a unified dataset;

[0056] S14, Feature Engineering Construction: Extract time features, weather features, promotion features, historical sales features, and inventory features from a unified dataset, and output a standardized feature dataset.

[0057] As a preferred embodiment of the intelligent replenishment and inventory early warning method for fast-moving consumer goods described in this invention, the specific steps of S2 are as follows:

[0058] S21, Sample set partitioning: The standardized feature dataset is divided into training set, validation set and test set in chronological order;

[0059] S22, Abnormal Sample Correction: Identify and correct abnormal sales samples in the training set, and output the corrected training set;

[0060] S23, Basic Model Training: Train the Long Short-Term Memory Network Model, Gradient Boosting Tree Model, and Time Series Prediction Model based on the corrected training set, and output three basic prediction models;

[0061] S24, Model Fusion Optimization: Based on the validation set, the three basic prediction models are weighted and averaged to fuse them, and the optimized fused prediction model is output.

[0062] S25, Shelf life constraint correction: Constrain the output of the optimized fusion prediction model based on the product's shelf life, and output a prediction model with shelf life constraint;

[0063] S26, Demand Forecast Output: Input the latest standardized feature dataset into the forecast model with shelf-life constraints, and output the predicted daily demand for each product in each store.

[0064] As a preferred embodiment of the intelligent replenishment and inventory early warning method for fast-moving consumer goods described in this invention, the specific steps of S4 are as follows:

[0065] S41, Early Warning Threshold Calculation: Based on the predicted daily demand for each product in each store, combined with the dynamic safety stock value of each product, calculate the three-level early warning threshold for each product.

[0066] S42, Warning Level Determination: Based on the three-level warning threshold table for each product, monitor the inventory level in real time, determine the warning level according to the threshold range in which the inventory is located, and output the current warning level of each product.

[0067] S43, Tiered Early Warning Push: Based on the current early warning level of each product, push early warning information to personnel with different permissions;

[0068] S44, Closed-loop optimization update: Based on the final replenishment list execution data and the results of early warning information processing, compare the actual sales volume with the predicted sales volume, calculate the prediction error, and update the model parameters.

[0069] Compared with existing technologies:

[0070] 1. This invention effectively disperses the prediction risk of a single model by weighted fusion of three heterogeneous models: LSTM, XGBoost, and Prophet, combined with intelligent correction of abnormal samples (interpolation method + trend extrapolation method); at the same time, it introduces a shelf-life constraint correction mechanism to ensure that the predicted cumulative demand does not exceed the maximum salable quantity within the shelf life, fundamentally avoiding the problem of product expiration and scrapping caused by over-prediction in existing technologies.

[0071] 2. This invention, through a supplier constraint adaptation unit, adjusts the theoretical replenishment quantity upwards to the actual executable value based on the minimum order quantity and packaging specifications, thus solving the execution gap problem of "theoretically optimal but unable to place an order" in the prior art. At the same time, through the in-transit inventory verification mechanism, it verifies the relationship between the expected arrival time of goods in transit and the potential stockout time, and only includes effective in-transit inventory in the calculation of available inventory, avoiding misjudgment of stockouts or duplicate replenishment caused by blindly relying on in-transit inventory in the prior art.

[0072] 3. This invention calculates a three-level early warning threshold based on dynamic safety stock values ​​and determines the early warning level by combining the product turnover rate and the degree of impact of stockouts, thus achieving precise early warning from a unified threshold to a product-specific approach; at the same time, it establishes a hierarchical push mechanism to ensure that early warning information reaches the corresponding decision-making level directly, thereby improving response efficiency.

[0073] 4. This invention uses a replenishment priority sorting unit to calculate a priority score by comprehensively considering commodity price, turnover rate, and the degree of impact of stockouts, so that the replenishment needs of high-turnover, high-margin, and high-impact commodities are given priority, thus achieving optimal allocation under limited logistics resources.

[0074] 5. The closed-loop optimization update unit of the present invention calculates the prediction error by comparing the actual sales volume with the predicted sales volume, and updates the model parameters and feature weights accordingly, so that the system can adapt to the evolution of market demand patterns and overcome the problem of accuracy decay after long-term operation of the model in the prior art. Attached Figure Description

[0075] Figure 1 This is a schematic diagram of the overall framework of the present invention;

[0076] Figure 2 This is a schematic diagram of the framework of the multi-dimensional data acquisition and preprocessing module of the present invention;

[0077] Figure 3 This is a schematic diagram of the training module framework for the dynamic demand prediction model of the present invention;

[0078] Figure 4 This is a schematic diagram of the intelligent replenishment quantity calculation module framework of the present invention;

[0079] Figure 5 This is a schematic diagram of the hierarchical inventory early warning and execution module framework of the present invention. Detailed Implementation

[0080] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0081] This invention provides an intelligent replenishment and inventory early warning system for fast-moving consumer goods. Please refer to [link / reference]. Figures 1-5 ,include:

[0082] The multi-dimensional data acquisition and preprocessing module collects multi-dimensional data and preprocesses it to output a standardized feature dataset.

[0083] The basic data collection unit collects basic product information, store information, supplier information, and logistics information, including product SKU, name, specifications, shelf life, purchase price, retail price, store location, supplier delivery cycle, logistics transportation time, minimum order quantity, packaging specifications, etc., and outputs the raw basic database.

[0084] The real-time data acquisition unit collects sales data, inventory data, promotional activity data, weather data, holiday data, social media trending data, and in-transit inventory dynamic data in real time through the POS system, inventory management system, and external interfaces. The data acquisition frequency can be set according to system resources and business needs, such as once every 15 minutes or once per hour, and outputs raw real-time data streams.

[0085] The data cleaning and fusion unit, based on the original basic database and the original real-time data stream, removes duplicate data, abnormal data and missing data, and uses time series alignment methods to fuse data from different sources, outputting a cleaned and fused unified dataset.

[0086] Feature engineering building blocks, based on a unified dataset, extract the following features:

[0087] Time characteristics: including hours, days, weeks, months, holidays, etc.;

[0088] Weather characteristics include temperature, precipitation, and wind speed.

[0089] Promotional features include discount levels and promotion duration.

[0090] Historical sales characteristics: including average sales over the past 7 days and the past 30 days;

[0091] Inventory characteristics include current inventory levels and inventory turnover rate.

[0092] Output a standardized feature dataset.

[0093] The dynamic demand forecasting model training module trains the dynamic demand forecasting model based on a standardized feature dataset and outputs the predicted daily demand for each product in each store.

[0094] The sample set is divided into training, validation and test sets based on the standardized feature dataset and in chronological order. The proportions of the three sets are 80%, 10% and 10% respectively, to ensure that the model can learn the trend and seasonality of the time series and output the three divided datasets.

[0095] The outlier correction unit, based on the training set and the original base database, identifies and corrects abnormal sales samples caused by sudden public events, large-scale promotional activities, competitor impacts, etc. It replaces outliers using interpolation and trend extrapolation methods, outputting the corrected training set.

[0096] The basic model training unit trains three independent basic prediction models based on the modified training set: Long Short-Term Memory Network (LSTM), Gradient Boosting Tree (XGBoost), and Time Series Prediction (Prophet), and outputs three basic prediction models.

[0097] Specifically:

[0098] The Long Short-Term Memory (LSTM) network model adopts a stacked LSTM network structure, including an input layer, two LSTM hidden layers, a Dropout layer, and a fully connected output layer.

[0099] The input layer receives a standardized feature dataset with an input feature dimension of N×M, where N is the time step (set to the length of the daily sales sequence over the past 30 days) and M is the number of features (including time features, weather features, promotion features, historical sales features, and inventory features, totaling K dimensions, with K determined based on the actual business feature engineering results, typically ranging from 15 to 25 dimensions).

[0100] The first LSTM hidden layer contains 128 LSTM units with the tanh activation function, returning the complete sequence output. The second LSTM hidden layer contains 64 LSTM units with the tanh activation function, returning the hidden state output at the last time step. The Dropout layer has a dropout rate of 0.2 to prevent overfitting. The fully connected output layer contains one neuron with a linear activation function, outputting the predicted sales value for the next day t.

[0101] The training steps for the Long Short-Term Memory (LSTM) network model are as follows:

[0102] The corrected training set is divided into input sequence X and label sequence Y by a time sliding window. The dimensions of input sequence X are [batch_size, time_steps, feature_dim], time_steps=30, and feature_dim=K. Label sequence Y is the actual sales value corresponding to the next day.

[0103] Initialize the model parameters by using the Xavier initialization method to initialize the LSTM layer weights and initialize the bias terms to zero.

[0104] The loss function is set to mean squared error (MSE), and the calculation formula is as follows:

[0105] Where y_i represents the actual sales volume. To predict sales, n is the sample size;

[0106] The optimizer is set to Adam optimizer, the initial learning rate is set to 0.001, the first moment estimate exponential decay rate β1=0.9, and the second moment estimate exponential decay rate β2=0.999.

[0107] The training batch size (batch_size) is set to 32, the number of training epochs is set to 100, and an early stopping mechanism is used. Training is terminated when the validation set loss no longer decreases for 10 consecutive epochs to prevent overfitting.

[0108] The training set is input into the model for forward propagation to calculate the predicted values ​​and the loss function value. The model parameters are updated through backpropagation algorithm. This process is repeated until the convergence condition is met, and the trained long short-term memory network model is output.

[0109] The gradient boosting tree model employs the extreme gradient boosting algorithm, based on an additive model and a forward stepwise algorithm, to achieve sales prediction through ensemble learning of multiple decision trees.

[0110] The gradient boosting tree model takes as input all features in the standardized feature dataset (including time features, weather features, promotion features, historical sales features, and inventory features) and outputs the sales forecast for the next day t.

[0111] The core parameters of the gradient boosting tree model are set as follows: number of trees (n_estimators) is 200, maximum tree depth (max_depth) is 6, learning rate (learning_rate) is 0.05, L1 regularization coefficient (reg_alpha) is 0.1, L2 regularization coefficient (reg_lambda) is 1.0, subsample ratio (subsample) is 0.8, feature sampling ratio (colsample_bytree) is 0.8, and minimum sum of leaf node sample weights (min_child_weight) is 3.

[0112] The training steps for the gradient boosting tree model are as follows:

[0113] The corrected training set is converted into the DMatrix data format, which is an optimized data structure for XGBoost that supports efficient block processing and parallel computing.

[0114] Set the objective function to the mean squared error function corresponding to the regression task (reg:squarederror).

[0115] Using a forward step-by-step training approach, in the m-th iteration, based on the existing m-1 trees, the m-th tree is added to fit the residuals of the previous m-1 trees (i.e., the difference between the actual value and the current predicted value). The output of the m-th tree is:

[0116] Where L is the loss function, F_{m-1}(x) is the ensemble prediction of the first m-1 trees, and λ is the L2 regularization coefficient;

[0117] A greedy algorithm is used for the growth of each tree, traversing all split points of all features and selecting the splitting method that maximizes the reduction of the loss function. The splitting gain is calculated as follows: Gain=(1 / 2)[(G_L² / (H_L+λ))+(G_R² / (H_R+λ))-(G_L+G_R)² / (H_L+H_R+λ)]-γ, where G_L and G_R are the sum of the first-order gradient statistics of the left and right child nodes, respectively, H_L and H_R are the sum of the second-order gradient statistics of the left and right child nodes, respectively, and γ is the leaf node splitting penalty coefficient.

[0118] Iteratively execute steps S23-2-3 to S23-2-4 until the preset number of trees is reached or the validation set loss no longer decreases, and output the trained gradient boosting tree model.

[0119] The time series forecasting model uses the Facebook Prophet algorithm, which is based on an additive regression model and decomposes the time series into a superposition of trend, seasonality, holiday, and error terms.

[0120] The input to the time series prediction model is the historical daily sales time series data of each product in each store, as well as holiday data and promotional activity data as external regression variables; the output is the predicted sales value and prediction range for the next t-th day.

[0121] The mathematical form of the time series prediction model is: y(t)=g(t)+s(t)+h(t)+ε(t), where g(t) is the trend term, s(t) is the seasonality term, h(t) is the holiday term, and ε(t) is the error term.

[0122] The trend term g(t) adopts a piecewise linear trend model or a logistic growth trend model, with the number of changepoints (n_changepoints) set to 25 and the changepoint prior scale (changepoint_prior_scale) set to 0.05, to capture the points of change in sales trends; the seasonality term s(t) adopts Fourier series modeling, with the seasonality period set to 7 days (weekly seasonality) and 365.25 days (annual seasonality), and the seasonality prior scale (seasonality_prior_scale) set to 10.0; the holiday term h(t) is automatically modeled by inputting a holiday data table (including holiday name, date, and scope of influence window), and the holiday prior scale (holidays_prior_scale) set to 10.0.

[0123] The training steps for the time series prediction model are as follows:

[0124] Arrange the historical daily sales data in the corrected training set in chronological order and construct a DataFrame input data containing two columns: ds (date and timestamp) and y (historical daily sales value).

[0125] Holiday data and promotional activity data are added to the model as external regression variables (add_regressor), and the coefficients of the external regression variables are automatically fitted through model training;

[0126] The model fitting function is called, and the L-BFGS optimization algorithm is used to perform joint maximum a posteriori estimation (MAP) of the coefficients of the trend term, seasonality term, holiday term and external regression variable. The optimization objective is to minimize the negative log-likelihood function.

[0127] After the model is trained, the output is a time series prediction model containing trend parameters, seasonality parameters, holiday parameters, and coefficients of external regression variables.

[0128] The model fusion optimization unit, based on the validation set and three basic prediction models, uses a weighted average method to fuse the models. By testing the prediction errors of each model on the validation set, the weight coefficients of each model are dynamically adjusted to maximize the prediction accuracy of the fused model, and the optimized fused prediction model is output.

[0129] The shelf-life constraint correction unit, based on the optimized fusion prediction model and incorporating product shelf-life data, adds a shelf-life constraint to each product: ensuring that the cumulative demand predicted by the model does not exceed the maximum salable quantity of the product within its shelf life. The output is a prediction model with shelf-life constraints.

[0130] The demand forecasting output unit, based on the latest standardized feature dataset and a forecasting model with shelf-life constraints, inputs the latest feature data into the model for calculation and outputs the predicted daily demand for each product in each store within a preset period (e.g., 7 days).

[0131] The intelligent replenishment quantity calculation module calculates the replenishment quantity based on the daily demand forecast of each product in each store, and outputs the final replenishment list by combining in-transit inventory and supplier constraints.

[0132] The safety stock calculation unit dynamically calculates the safety stock level for each product based on the predicted daily demand for each product in each store, combined with the product's logistics cycle and demand volatility coefficient. The safety stock is determined by the demand volatility coefficient, average daily demand, and logistics cycle. The demand volatility coefficient reflects the degree of variation in historical sales, and the logistics cycle is the number of days from order placement to product arrival at the store. The unit outputs the dynamic safety stock value for each product.

[0133] The in-transit inventory verification unit verifies the estimated arrival time and actual quantity of in-transit inventory based on the dynamic safety stock value of each product and real-time in-transit inventory data. If the estimated arrival time is earlier than the potential stockout time, it is considered valid in-transit inventory; otherwise, this portion of in-transit inventory cannot be replenished in time and must be deducted from the valid inventory. Based on this, the corrected valid inventory trigger threshold is calculated.

[0134] The replenishment trigger judgment unit compares the current inventory with the trigger threshold one by one, based on the revised effective inventory trigger threshold and real-time inventory data. When the current inventory of a product is lower than its effective inventory trigger threshold, the replenishment process is triggered; otherwise, it is not triggered. A list of products to be replenished is output.

[0135] The optimal replenishment quantity calculation unit calculates the theoretical optimal replenishment quantity for each product based on the predicted daily demand for each product in each store, the dynamic safety stock value for each product, and the list of products to be replenished. The specific calculation method is as follows: first, calculate the product of the average daily demand and the sum of the replenishment cycle and the logistics cycle; then add the safety stock; and finally subtract the current inventory and the expected usable portion of the inventory in transit.

[0136] The supplier constraint adaptation unit, based on the theoretical optimal replenishment quantity for each item to be replenished, and in conjunction with supplier information, adjusts the theoretical replenishment quantity upwards to the actual executable replenishment quantity that meets procurement requirements, according to the supplier's minimum order quantity and packaging specifications. For example, if the minimum order quantity is 50 units and the theoretical replenishment quantity is 48 units, then the actual replenishment quantity is adjusted to 50 units; if the packaging specification is 24 units per carton, then it is adjusted to 48 units (2 cartons). The unit outputs the actual executable replenishment quantity data for each item.

[0137] The replenishment priority ranking unit calculates a replenishment priority score based on the actual executable replenishment quantity data for each product, combined with the product's price, turnover rate, and the degree of stockout impact. Products with higher turnover rates and greater stockout impact (such as high-margin or necessities) have higher priority. All products awaiting replenishment are sorted from highest to lowest score, and the final replenishment list is output after priority ranking.

[0138] The tiered inventory early warning and execution module calculates the early warning threshold based on the predicted daily demand for each product in each store, determines the early warning level in real time and pushes it out, and at the same time, it provides feedback to optimize the model based on the execution results of the final replenishment list.

[0139] The early warning threshold calculation unit dynamically calculates the three-level early warning threshold for each product based on the predicted daily demand for each product in each store and the dynamic safety stock value of each product.

[0140] Level 1 warning threshold: set at 1.5 times the safety stock;

[0141] Level 2 warning threshold: set to safety stock;

[0142] Level 3 warning threshold: set at half of the safety stock.

[0143] The threshold coefficients mentioned above are just examples. In practical applications, they can be dynamically adjusted based on the characteristics of specific products (such as gross profit margin and stockout costs) or determined through model self-learning.

[0144] Output a table of three-level early warning thresholds for each product.

[0145] The early warning level determination unit monitors inventory levels in real time based on a three-level early warning threshold table for each product and real-time inventory data. The determination rules are as follows:

[0146] No alert is triggered when the current inventory is higher than the first-level alert threshold;

[0147] A yellow alert is triggered when the current inventory is between the level one and level two warning thresholds;

[0148] An orange alert is triggered when the current inventory is between the level 2 and level 3 alert thresholds;

[0149] A red alert is triggered when the current inventory falls below the level 3 warning threshold.

[0150] Output the current warning level for each product.

[0151] The tiered early warning push unit pushes corresponding early warning information to personnel with different permissions based on the current early warning level of each product:

[0152] Yellow alert: Notified to store manager;

[0153] Orange alert: Pushed to regional manager;

[0154] Red alert: The alert is simultaneously sent to regional managers and headquarters supply chain managers.

[0155] Output the records of the pushed warning information.

[0156] The closed-loop optimization and update unit compares actual sales with predicted sales based on the final replenishment list execution data and the results of early warning information processing, and calculates the prediction error. It then updates the model parameters and feature weights based on the prediction error, outputting the updated model parameter set.

[0157] The method for intelligent replenishment and inventory early warning of fast-moving consumer goods includes the following steps:

[0158] S1, Multi-dimensional data acquisition and preprocessing: Acquire multi-dimensional data and preprocess it to output a standardized feature dataset;

[0159] S11, Basic Data Collection: Collect basic product information, store information, supplier information, and logistics information, including product SKU, name, specifications, shelf life, purchase price, retail price, store location, supplier delivery cycle, logistics transportation time, minimum order quantity, packaging specifications, etc., and output the raw basic database.

[0160] S12, Real-time Data Acquisition: Through the POS system, inventory management system, and external interfaces, real-time data is collected on sales, inventory, promotional activities, weather, holidays, social media trending topics, and in-transit inventory dynamics. The data acquisition frequency can be set according to system resources and business needs, such as every 15 minutes or hour, outputting raw real-time data streams.

[0161] S13, Data Cleaning and Fusion: Based on the original basic database and the original real-time data stream, duplicate data, abnormal data and missing data are removed. The time series alignment method is used to merge data from different sources and output a cleaned and merged unified dataset.

[0162] S14, Feature Engineering Construction: Based on a unified dataset, extract the following features:

[0163] Time characteristics: including hours, days, weeks, months, holidays, etc.;

[0164] Weather characteristics include temperature, precipitation, and wind speed.

[0165] Promotional features include discount levels and promotion duration.

[0166] Historical sales characteristics: including average sales over the past 7 days and the past 30 days;

[0167] Inventory characteristics include current inventory levels and inventory turnover rate.

[0168] Output a standardized feature dataset.

[0169] S2, Dynamic Demand Forecasting Model Training: The dynamic demand forecasting model is trained based on a standardized feature dataset, and the predicted daily demand for each product in each store is output.

[0170] S21, Sample set partitioning: Based on the standardized feature dataset, it is divided into training set, validation set and test set according to time order, with the proportions of the three being 80%, 10% and 10% respectively, to ensure that the model can learn the trend and seasonality of the time series, and output the three partitioned datasets.

[0171] S22, Abnormal Sample Correction: Based on the training set and the original basic database, identify and correct abnormal sales samples caused by sudden public events, large-scale promotional activities, competitor impacts, etc. Replace outliers using interpolation and trend extrapolation methods, and output the corrected training set.

[0172] S23, Basic Model Training: Based on the corrected training set, train three independent basic prediction models: Long Short-Term Memory Network (LSTM), Gradient Boosting Tree (XGBoost), and Time Series Prediction (Prophet), and output the three basic prediction models.

[0173] Specifically:

[0174] The Long Short-Term Memory (LSTM) network model adopts a stacked LSTM network structure, including an input layer, two LSTM hidden layers, a Dropout layer, and a fully connected output layer.

[0175] The input layer receives a standardized feature dataset with an input feature dimension of N×M, where N is the time step (set to the length of the daily sales sequence over the past 30 days) and M is the number of features (including time features, weather features, promotion features, historical sales features, and inventory features, totaling K dimensions, with K determined based on the actual business feature engineering results, typically ranging from 15 to 25 dimensions).

[0176] The first LSTM hidden layer contains 128 LSTM units with the tanh activation function, returning the complete sequence output. The second LSTM hidden layer contains 64 LSTM units with the tanh activation function, returning the hidden state output at the last time step. The Dropout layer has a dropout rate of 0.2 to prevent overfitting. The fully connected output layer contains one neuron with a linear activation function, outputting the predicted sales value for the next day t.

[0177] The training steps for the Long Short-Term Memory (LSTM) network model are as follows:

[0178] The corrected training set is divided into input sequence X and label sequence Y by a time sliding window. The dimensions of input sequence X are [batch_size, time_steps, feature_dim], time_steps=30, and feature_dim=K. Label sequence Y is the actual sales value corresponding to the next day.

[0179] Initialize the model parameters by using the Xavier initialization method to initialize the LSTM layer weights and initialize the bias terms to zero.

[0180] The loss function is set to mean squared error (MSE), and the calculation formula is as follows:

[0181] Where y_i represents the actual sales volume. To predict sales, n is the sample size;

[0182] The optimizer is set to Adam optimizer, the initial learning rate is set to 0.001, the first moment estimate exponential decay rate β1=0.9, and the second moment estimate exponential decay rate β2=0.999.

[0183] The training batch size (batch_size) is set to 32, the number of training epochs is set to 100, and an early stopping mechanism is used. Training is terminated when the validation set loss no longer decreases for 10 consecutive epochs to prevent overfitting.

[0184] The training set is input into the model for forward propagation to calculate the predicted values ​​and the loss function value. The model parameters are updated through backpropagation algorithm. This process is repeated until the convergence condition is met, and the trained long short-term memory network model is output.

[0185] The gradient boosting tree model employs the extreme gradient boosting algorithm, based on an additive model and a forward stepwise algorithm, to achieve sales prediction through ensemble learning of multiple decision trees.

[0186] The gradient boosting tree model takes as input all features in the standardized feature dataset (including time features, weather features, promotion features, historical sales features, and inventory features) and outputs the sales forecast for the next day t.

[0187] The core parameters of the gradient boosting tree model are set as follows: number of trees (n_estimators) is 200, maximum tree depth (max_depth) is 6, learning rate (learning_rate) is 0.05, L1 regularization coefficient (reg_alpha) is 0.1, L2 regularization coefficient (reg_lambda) is 1.0, subsample ratio (subsample) is 0.8, feature sampling ratio (colsample_bytree) is 0.8, and minimum sum of leaf node sample weights (min_child_weight) is 3.

[0188] The training steps for the gradient boosting tree model are as follows:

[0189] The corrected training set is converted into the DMatrix data format, which is an optimized data structure for XGBoost that supports efficient block processing and parallel computing.

[0190] Set the objective function to the mean squared error function corresponding to the regression task (reg:squarederror).

[0191] Using a forward step-by-step training approach, in the m-th iteration, based on the existing m-1 trees, the m-th tree is added to fit the residuals of the previous m-1 trees (i.e., the difference between the actual value and the current predicted value). The output of the m-th tree is:

[0192]

[0193] Where L is the loss function, F_{m-1}(x) is the ensemble prediction of the first m-1 trees, and λ is the L2 regularization coefficient;

[0194] A greedy algorithm is used for the growth of each tree, traversing all split points of all features and selecting the splitting method that maximizes the reduction of the loss function. The splitting gain is calculated as follows: Gain=(1 / 2)[(G_L² / (H_L+λ))+(G_R² / (H_R+λ))-(G_L+G_R)² / (H_L+H_R+λ)]-γ, where G_L and G_R are the sum of the first-order gradient statistics of the left and right child nodes, respectively, H_L and H_R are the sum of the second-order gradient statistics of the left and right child nodes, respectively, and γ is the leaf node splitting penalty coefficient.

[0195] Iteratively execute steps S23-2-3 to S23-2-4 until the preset number of trees is reached or the validation set loss no longer decreases, and output the trained gradient boosting tree model.

[0196] The time series forecasting model uses the Facebook Prophet algorithm, which is based on an additive regression model and decomposes the time series into a superposition of trend, seasonality, holiday, and error terms.

[0197] The input to the time series prediction model is the historical daily sales time series data of each product in each store, as well as holiday data and promotional activity data as external regression variables; the output is the predicted sales value and prediction range for the next t-th day.

[0198] The mathematical form of the time series prediction model is: y(t)=g(t)+s(t)+h(t)+ε(t), where g(t) is the trend term, s(t) is the seasonality term, h(t) is the holiday term, and ε(t) is the error term.

[0199] The trend term g(t) adopts a piecewise linear trend model or a logistic growth trend model, with the number of changepoints (n_changepoints) set to 25 and the changepoint prior scale (changepoint_prior_scale) set to 0.05, to capture the points of change in sales trends; the seasonality term s(t) adopts Fourier series modeling, with the seasonality period set to 7 days (weekly seasonality) and 365.25 days (annual seasonality), and the seasonality prior scale (seasonality_prior_scale) set to 10.0; the holiday term h(t) is automatically modeled by inputting a holiday data table (including holiday name, date, and scope of influence window), and the holiday prior scale (holidays_prior_scale) set to 10.0.

[0200] The training steps for the time series prediction model are as follows:

[0201] Arrange the historical daily sales data in the corrected training set in chronological order and construct a DataFrame input data containing two columns: ds (date and timestamp) and y (historical daily sales value).

[0202] Holiday data and promotional activity data are added to the model as external regression variables (add_regressor), and the coefficients of the external regression variables are automatically fitted through model training;

[0203] The model fitting function is called, and the L-BFGS optimization algorithm is used to perform joint maximum a posteriori estimation (MAP) of the coefficients of the trend term, seasonality term, holiday term and external regression variable. The optimization objective is to minimize the negative log-likelihood function.

[0204] After the model is trained, the output is a time series prediction model containing trend parameters, seasonality parameters, holiday parameters, and coefficients of external regression variables.

[0205] S24, Model Fusion Optimization: Based on the validation set and three basic prediction models, a weighted average method is used for model fusion. By testing the prediction errors of each model on the validation set, the weight coefficients of each model are dynamically adjusted to maximize the prediction accuracy of the fused model, and the optimized fused prediction model is output.

[0206] S25, Shelf Life Constraint Correction: Based on the optimized fusion prediction model and combined with product shelf life data, a shelf life constraint is added to each product to ensure that the cumulative demand predicted by the model does not exceed the maximum salable quantity of the product within its shelf life. The output is a prediction model with shelf life constraints.

[0207] S26, Demand Forecast Output: Based on the latest standardized feature dataset and a forecast model with shelf-life constraints, the latest feature data is input into the model for calculation, and the daily demand forecast for each product in each store within a preset period (e.g., 7 days) is output.

[0208] S3, Intelligent Replenishment Quantity Calculation: Calculates the replenishment quantity based on the daily demand forecast of each product in each store, and outputs the final replenishment list by combining in-transit inventory and supplier constraints.

[0209] S31, Safety Stock Calculation: Based on the predicted daily demand for each product in each store, combined with the product's logistics cycle and demand volatility coefficient, dynamically calculate the safety stock level for each product. The safety stock is determined jointly by the demand volatility coefficient, average daily demand, and logistics cycle. The demand volatility coefficient reflects the degree of variation in historical sales, and the logistics cycle is the number of days from order placement to product arrival at the store. Output the dynamic safety stock value for each product.

[0210] S32, In-transit Inventory Verification: Based on the dynamic safety stock value of each product and combined with real-time in-transit inventory data, verify the estimated arrival time and actual quantity of in-transit inventory. If the estimated arrival time is earlier than the potential stockout time, it is considered valid in-transit inventory; otherwise, this portion of in-transit inventory cannot be replenished in time and must be deducted from the valid inventory. Based on this, the corrected valid inventory trigger threshold is calculated.

[0211] S33, Replenishment Trigger Judgment: Based on the revised effective inventory trigger threshold and combined with real-time inventory data, the current inventory is compared with the trigger threshold one by one. When the current inventory of a product is lower than its effective inventory trigger threshold, the replenishment process is triggered; otherwise, it is not triggered. Output the list of products to be replenished.

[0212] S34, Optimal Replenishment Quantity Calculation: Based on the predicted daily demand for each product in each store, the dynamic safety stock value for each product, and the list of products to be replenished, calculate the theoretical optimal replenishment quantity for each product to be replenished. The specific calculation method is as follows: first calculate the product of the average daily demand and the sum of the replenishment cycle and the logistics cycle, then add the safety stock, and then subtract the current inventory and the expected usable portion of the inventory in transit.

[0213] S35, Supplier Constraint Adaptation: Based on the theoretical optimal replenishment quantity for each item to be replenished, and combined with supplier information, the theoretical replenishment quantity is adjusted upwards to the actual executable replenishment quantity that meets the procurement requirements, according to the supplier's minimum order quantity and packaging specifications. For example, if the minimum order quantity is 50 units and the theoretical replenishment quantity is 48 units, then the actual replenishment quantity is adjusted to 50 units; if the packaging specification is 24 units per carton, then it is adjusted to 48 units (2 cartons). Output the actual executable replenishment quantity data for each item.

[0214] S36, Replenishment Priority Ranking: Based on the actual executable replenishment quantity data for each product, combined with the product's price, turnover rate, and the degree of stockout impact, calculate the replenishment priority score. Products with higher turnover rates and greater stockout impact (such as high-margin or essential goods) have higher priority. Sort all products to be replenished according to their scores from highest to lowest, and output the final replenishment list after priority ranking.

[0215] S4, Tiered Inventory Warning and Execution: Calculates warning thresholds based on the daily demand forecasts for each product in each store, determines the warning level in real time and pushes it out, and optimizes the model based on the execution results of the final replenishment list.

[0216] S41, Warning Threshold Calculation: Based on the predicted daily demand for each product in each store, combined with the dynamic safety stock value of each product, the three-level warning threshold for each product is dynamically calculated:

[0217] Level 1 warning threshold: set at 1.5 times the safety stock;

[0218] Level 2 warning threshold: set to safety stock;

[0219] Level 3 warning threshold: set at half of the safety stock.

[0220] The threshold coefficients mentioned above are just examples. In practical applications, they can be dynamically adjusted based on the characteristics of specific products (such as gross profit margin and stockout costs) or determined through model self-learning.

[0221] Output a table of three-level early warning thresholds for each product.

[0222] S42, Warning Level Determination: Based on the three-level warning threshold table for each product, combined with real-time inventory data, inventory levels are monitored in real time. The determination rules are as follows:

[0223] No alert is triggered when the current inventory is higher than the first-level alert threshold;

[0224] A yellow alert is triggered when the current inventory is between the level one and level two warning thresholds;

[0225] An orange alert is triggered when the current inventory is between the level 2 and level 3 alert thresholds;

[0226] A red alert is triggered when the current inventory falls below the level 3 warning threshold.

[0227] Output the current warning level for each product.

[0228] S43, Tiered Alert Push: Based on the current alert level of each product, push corresponding alert information to personnel with different permissions:

[0229] Yellow alert: Notified to store manager;

[0230] Orange alert: Pushed to regional manager;

[0231] Red alert: The alert is simultaneously sent to regional managers and headquarters supply chain managers.

[0232] Output the records of the pushed warning information.

[0233] S44, Closed-Loop Optimization Update: Based on the final replenishment list execution data and the results of early warning information processing, the actual sales volume is compared with the predicted sales volume to calculate the prediction error. The model parameters and feature weights are updated according to the prediction error, and the updated model parameter set is output.

[0234] Although the present invention has been described above with reference to embodiments, various modifications can be made and components can be replaced with equivalents without departing from the scope of the invention. In particular, as long as there is no structural conflict, the features in the disclosed embodiments can be combined with each other in any manner. The lack of an exhaustive description of these combinations in this specification is merely for the sake of brevity and resource conservation. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A fast-moving consumer goods (FMCG) intelligent replenishment and inventory early warning system, characterized in that: include: The multi-dimensional data acquisition and preprocessing module collects multi-dimensional data and preprocesses it to output a standardized feature dataset. The dynamic demand forecasting model training module trains the dynamic demand forecasting model based on a standardized feature dataset and outputs the predicted daily demand for each product in each store. The intelligent replenishment quantity calculation module includes a safety stock calculation unit, an in-transit inventory verification unit, a replenishment trigger judgment unit, an optimal replenishment quantity calculation unit, a supplier constraint adaptation unit, and a replenishment priority sorting unit. The safety stock calculation unit calculates the dynamic safety stock value of each product based on the predicted daily demand for each product in each store, combined with the logistics cycle and demand fluctuation coefficient. The in-transit inventory verification unit verifies the validity of the in-transit inventory based on the dynamic safety stock value of each product and combined with real-time in-transit inventory data, and outputs the corrected valid inventory trigger threshold. The replenishment trigger judgment unit compares the current inventory with the corrected effective inventory trigger threshold. When the current inventory is lower than the trigger threshold, it triggers replenishment and outputs a list of products to be replenished. The optimal replenishment quantity calculation unit calculates the theoretical optimal replenishment quantity for each product based on the predicted daily demand for each product in each store, the dynamic safety stock value of each product, and the list of products to be replenished. The supplier constraint adaptation unit adjusts the theoretical replenishment quantity upward based on the theoretical optimal replenishment quantity of each product to be replenished, according to the supplier's minimum order quantity and packaging specifications, and outputs the actual executable replenishment quantity data for each product. The replenishment priority sorting unit prioritizes the actual executable replenishment quantities based on the actual executable replenishment quantity data of each product, according to the product price, turnover rate and the degree of impact of stockouts, and outputs the final replenishment list. The tiered inventory early warning and execution module calculates the early warning threshold based on the predicted daily demand for each product in each store, determines the early warning level in real time and pushes it out, and at the same time optimizes the model based on the execution results of the final replenishment list.

2. The intelligent replenishment and inventory early warning system for fast-moving consumer goods according to claim 1, characterized in that, The multi-dimensional data acquisition and preprocessing module includes: The basic data collection unit collects basic product information, store information, supplier information, and logistics information, and outputs the raw basic database. The real-time data acquisition unit collects sales data, inventory data, promotional activity data, weather data, holiday data, social media hotspot data, and in-transit inventory data in real time, and outputs raw real-time data streams. The data cleaning and fusion unit performs deduplication, missing value processing, and time series alignment and fusion on the original basic database and the original real-time data stream to output a unified dataset. The feature engineering building unit extracts time features, weather features, promotion features, historical sales features, and inventory features from a unified dataset and outputs a standardized feature dataset.

3. The intelligent replenishment and inventory early warning system for fast-moving consumer goods according to claim 1, characterized in that, The dynamic demand prediction model training module includes: The sample set is divided into training, validation and test sets in chronological order by dividing the standardized feature dataset into training, validation and test sets. The abnormal sample correction unit identifies and corrects abnormal sales samples in the training set and outputs the corrected training set. The basic model training unit trains a long short-term memory network model, a gradient boosting tree model, and a time series prediction model based on the modified training set, and outputs three basic prediction models. The model fusion optimization unit performs a weighted average fusion of three basic prediction models based on the validation set, and outputs the optimized fused prediction model. The shelf-life constraint correction unit constrains the output of the optimized fusion prediction model based on the product's shelf life, and outputs a prediction model with shelf-life constraints. The demand forecasting output unit takes the latest standardized feature dataset as input into the forecasting model with shelf-life constraints and outputs the predicted daily demand for each product in each store.

4. The intelligent replenishment and inventory early warning system for fast-moving consumer goods according to claim 1, characterized in that, The tiered inventory early warning and execution module includes: The early warning threshold calculation unit calculates the three-level early warning threshold for each product based on the predicted daily demand for each product in each store and the dynamic safety stock value of each product. The early warning level determination unit monitors inventory levels in real time based on the three-level early warning threshold table for each product, determines the early warning level according to the threshold range in which the inventory is located, and outputs the current early warning level for each product. The tiered early warning push unit pushes early warning information to personnel with different permissions based on the current early warning level of each product; The closed-loop optimization and update unit compares the actual sales volume with the predicted sales volume based on the final replenishment list execution data and the results of early warning information processing, calculates the prediction error, and updates the model parameters.

5. A method for intelligent replenishment and inventory early warning of fast-moving consumer goods, characterized in that, Includes the following steps: S1, Multi-dimensional data acquisition and preprocessing: Acquire multi-dimensional data and preprocess it to output a standardized feature dataset; S2, Dynamic Demand Forecasting Model Training: The dynamic demand forecasting model is trained based on a standardized feature dataset, and the predicted daily demand for each product in each store is output. S3, Intelligent Replenishment Quantity Calculation: S31, Safety Stock Calculation: Based on the predicted daily demand for each product in each store, combined with the logistics cycle and demand fluctuation coefficient, calculate the dynamic safety stock value for each product. S32, In-transit inventory verification: Based on the dynamic safety stock value of each product and combined with real-time in-transit inventory data, verify the validity of in-transit inventory and output the corrected valid inventory trigger threshold. S33, Replenishment Trigger Judgment: Compare the current inventory with the corrected effective inventory trigger threshold. When the current inventory is lower than the trigger threshold, replenishment is triggered, and a list of products to be replenished is output. S34, Optimal replenishment quantity calculation: Based on the predicted daily demand for each product in each store, the dynamic safety stock value of each product, and the list of products to be replenished, calculate the theoretical optimal replenishment quantity for each product to be replenished. S35, Supplier Constraint Adaptation: Based on the theoretical optimal replenishment quantity of each product to be replenished, the theoretical replenishment quantity is adjusted upward according to the supplier's minimum order quantity and packaging specifications, and the actual executable replenishment quantity data of each product is output. S36, Replenishment Priority Ranking: Based on the actual executable replenishment quantity data of each product, the actual executable replenishment quantity is prioritized according to product price, turnover rate and the degree of stockout impact, and the final replenishment list is output. S4, Tiered Inventory Warning and Execution: Calculates warning thresholds based on the predicted daily demand for each product in each store, determines the warning level in real time and pushes it out, and optimizes the model based on the execution results of the final replenishment list.

6. The method for intelligent replenishment and inventory early warning of fast-moving consumer goods according to claim 5, characterized in that, The specific steps of S1 are as follows: S11, Basic Data Collection: Collect basic product information, store information, supplier information, and logistics information, and output the raw basic database; S12, Real-time Data Acquisition: Real-time acquisition of sales data, inventory data, promotional activity data, weather data, holiday data, social media hotspot data, and in-transit inventory data, outputting raw real-time data stream; S13, Data Cleaning and Fusion: Deduplication, missing value processing, and time series alignment and fusion are performed on the original basic database and the original real-time data stream to output a unified dataset; S14, Feature Engineering Construction: Extract time features, weather features, promotion features, historical sales features, and inventory features from a unified dataset, and output a standardized feature dataset.

7. The method for intelligent replenishment and inventory early warning of fast-moving consumer goods according to claim 5, characterized in that, The specific steps of S2 are as follows: S21, Sample set partitioning: The standardized feature dataset is divided into training set, validation set and test set in chronological order; S22, Abnormal Sample Correction: Identify and correct abnormal sales samples in the training set, and output the corrected training set; S23, Basic Model Training: Train the Long Short-Term Memory Network Model, Gradient Boosting Tree Model, and Time Series Prediction Model based on the corrected training set, and output three basic prediction models; S24, Model Fusion Optimization: Based on the validation set, the three basic prediction models are weighted and averaged to fuse them, and the optimized fused prediction model is output. S25, Shelf life constraint correction: Constrain the output of the optimized fusion prediction model based on the product's shelf life, and output a prediction model with shelf life constraint; S26, Demand Forecast Output: Input the latest standardized feature dataset into the forecast model with shelf-life constraints, and output the daily demand forecast value for each product in each store.

8. The method for intelligent replenishment and inventory early warning of fast-moving consumer goods according to claim 5, characterized in that, The specific steps of S4 are as follows: S41, Early Warning Threshold Calculation: Based on the predicted daily demand for each product in each store, combined with the dynamic safety stock value of each product, calculate the three-level early warning threshold for each product. S42, Warning Level Determination: Based on the three-level warning threshold table for each product, monitor the inventory level in real time, determine the warning level according to the threshold range in which the inventory is located, and output the current warning level of each product. S43, Tiered Early Warning Push: Based on the current early warning level of each product, push early warning information to personnel with different permissions; S44, Closed-loop optimization update: Based on the final replenishment list execution data and the results of early warning information processing, compare the actual sales with the predicted sales, calculate the prediction error, and update the model parameters.

Citation Information

Patent Citations

  • Vending machine dynamic replenishment early warning device fused with big data analysis and use method of vending machine dynamic replenishment early warning device

    CN121836572A

  • Intelligent inventory distribution method and system based on multi-platform sales volume prediction

    CN121882373A

  • Inventory threshold value and purchase quantity calculation processing method and system based on AI prediction

    CN121961431A

  • Clothing supply chain inventory dynamic optimization method fused with intelligent prediction

    CN122134240A