Abstract
With the rapid development of the internet and e-commerce, demand forecasting for products and inventory optimization has become especially critical. This study develops a hybrid model that combines the K-means clustering algorithm and Long Short-Term Memory (LSTM) networks, aiming to group the three-dimensional historical data of merchants, warehouses, and product demand volumes, thereby categorizing time series and improving the accuracy of demand forecasting. This paper utilizes the shipping volume of 1996 "merchant + warehouse + product" combinations provided by JD Group from November 1 to November 11, 2022, to predict promotional trends from June 1 to June 20, 2023. Firstly, the JD warehouse products are divided into ten categories according to the K-means algorithm. Then, an LSTM model comprising an input layer, an output layer, and two hidden layers is constructed to predict the demand volume for each product category, which is subsequently verified through R² assessment. Results show that the R² maintains around 90%, indicating that the prediction model is not only reliable but also effective. The in-depth analysis and precise forecasting in this study demonstrate the practical application potential of K-means clustering and LSTM networks in enhancing forecasting accuracy, proving the significant value and robustness of the model established in the data-driven demand prediction domain.

This publication has 14 references indexed in Scilit: