1. Introduction
The rapid digital transformation of the retail industry has fundamentally reshaped global supply chains, shifting the focus from aggregate-level planning to high-frequency, granular decision-making. In the modern e-commerce landscape, retailers manage vast inventories across diverse geographical regions, generating millions of data points at the Stock Keeping Unit (SKU)–store level [
1]. While this “Big Data” era offers unprecedented opportunities, the increasing complexity of these multi-dimensional environments makes accurate sales forecasting and effective inventory management essential for operational efficiency [
1].
Despite advancements in predictive modelling, a persistent “operational silo” remains between demand forecasting and inventory management. Traditional systems often treat these as independent functions: data scientists optimize for mathematical accuracy, while operations managers struggle with physical challenges such as stockouts, overstocking, and aging stock [
2]. This disconnect manifests as a structural imbalance where retail demand remains highly volatile due to internal factors, such as promotions, and external factors, such as seasonal events and regional characteristics [
3,
4].
Traditional forecasting approaches, such as Auto-Regressive Integrated Moving Average (ARIMA) or exponential smoothing, often fail to capture these nonlinear and irregular patterns [
5]. Recent literature has increasingly applied DL to forecasting, including recurrent, attention-based, and specialized temporal architectures. LSTM remains widely used for modeling sequential dependencies, while Transformers capture interactions across historical observations [
6,
7]. Recent specialized architectures further highlight that model selection should consider accuracy, sequence length, data scale, heterogeneity, and computational requirements. However, a significant research gap remains: most studies analyze inventory metrics in isolation and fail to incorporate predicted demand directly into diagnostic processes [
2,
8]. Therefore, there is a critical need for a unified framework that translates forecasting outputs into interpretable diagnostic signals for proactive inventory risk detection.
This research addresses these challenges by proposing an integrated, data-driven system for retail sales forecasting and inventory health diagnosis. Utilizing a large-scale dataset of approximately 500,000 product–store–day records from Hengyuansheng (Quanzhou) Digital Technology Co., Ltd. (Quanzhou, China), we evaluate six models across three methodological families: statistical (Seasonal Naïve (SN) and Prophet), Machine Learning (ML) (Random Forest (RF) and Extreme Gradient Boosting (XGBoost)), and DL (LSTM and Transformer). Moving beyond simple error metrics, we introduce an original diagnostic framework based on event-calibrated thresholds for the Inventory Turnover Ratio (ITR) and Excess Inventory Rate (EIR).
The benchmark was designed as a representative cross-family comparison rather than an exhaustive evaluation. Seasonal Naïve and Prophet represent statistical methods, RF and XGBoost feature-based machine learning, and LSTM and Transformer recurrent and attention-based deep learning, respectively. This design balances diverse modeling assumptions with computational feasibility for the large-scale SKU–store dataset, while more specialized architectures were excluded to limit experimental scope.
To guide this investigation, we address the following three Research Questions (RQs):
RQ1: Which forecasting model provides the best performance for retail sales forecasting based on multiple evaluation metrics, including RMSE and MAPE?
RQ2: How can sales forecasting results be integrated to identify inventory health conditions effectively in a retail context?
RQ3: How can forecasting-based inventory analysis be made interpretable to support practical managerial decision-making?
The main contributions of this study are summarized as follows. First, we propose an integrated framework that combines demand forecasting with inventory health diagnostics to support managerial decision-making. Second, we deliver comprehensive benchmarking of forecasting models on a massive, real-world retail dataset. Third, we offer operational evidence of inventory health, revealing that over 60% of SKU–store combinations were classified as Potential Risk or Critical, indicating substantial inventory states requiring operational attention.
The main contribution of this work lies in integrating established forecasting methods with a data-driven inventory health diagnostic framework. Rather than proposing a novel forecasting algorithm, this study focuses on transforming forecasting outputs into interpretable diagnostic signals through an empirically calibrated thresholding mechanism that supports managerial decision-making.
The remainder of this paper is structured as follows:
Section 2 reviews the related literature;
Section 3 details the forecasting and diagnostic methodology;
Section 4 presents the experimental results; and
Section 5 discusses managerial implications and concludes the study.
5. Conclusions and Future Work
This study has presented an integrated framework for retail demand forecasting and inventory health diagnosis, validated through a comprehensive empirical analysis of 500,000 product-store-day records from the Hengyuansheng (Quanzhou) Digital Technology Co., Ltd. Addressing the core RQs, the results show that model performance varied across evaluation criteria. LSTM achieved the lowest testing RMSE (0.3996) and MAPE (21.63%), while XGBoost and RF achieved lower MASE values, indicating no single model dominated across all metrics. The forecasting results provide predictive input to the integrated diagnostic layer, bridging statistical prediction and interpretable inventory decision support. By utilizing event-calibrated thresholds derived exclusively from historical stockout signals in the calibration period, the framework was independently evaluated on the subsequent validation period. The results show that 61.1% of SKU–store observations in the independent validation period were classified as Potential Risk or Critical, with 16.3% categorized as Critical. These findings demonstrate the ability of the framework to transform forecasting outputs into transparent and interpretable inventory health signals on previously unseen observations.
From a managerial perspective, the implications of this research are significant for the transition toward data-driven, proactive supply chain oversight. The proposed diagnostic dashboard allows retail practitioners to move beyond reactive troubleshooting by prioritizing high-risk SKUs and implementing targeted interventions, such as expedited replenishment or strategic markdowns, before capital stagnation or stockouts occur. The proposed inventory health diagnostic framework can assist managers in prioritizing high-risk SKUs, monitoring inventory status, and allocating resources more effectively, thereby supporting operational decision-making. However, the framework does not perform formal replenishment optimization, which would require an explicit decision model incorporating costs, lead times, service levels, replenishment quantities, capacity constraints, and demand uncertainty. The robustness of the system is particularly evident during high-volatility promotional windows, where the event-calibrated logic prevents the “false alarms” often triggered by traditional, static replenishment systems. Ultimately, this framework provides a scalable and interpretable solution for large-scale e-commerce enterprises seeking to synchronize their inventory levels with localized, time-sensitive demand patterns.
Despite these contributions, certain limitations suggest productive avenues for future research. While the current system utilizes a fixed historical sequence window, future iterations could incorporate dynamic window sizes to better accommodate varying product lifecycles across different retail categories. Furthermore, the integration of unsupervised anomaly detection techniques, such as Isolation Forest or One-Class SVM, could refine the system’s ability to detect irregular stock movements like “phantom inventory” or sudden data drift. Finally, expanding the framework to encompass multi-echelon optimization would enable automated stock rebalancing between city branches, further enhancing the resilience and efficiency of the broader supply chain network. Although the proposed thresholds were calibrated using historical inventory events from the study dataset and evaluated on a temporally independent validation period, external validation using independent retail datasets was not conducted in this study. Therefore, the generalizability of the threshold values beyond the studied retail environment remains to be established. While the sensitivity analysis provides evidence of within-dataset robustness, it cannot replace cross-domain or cross-company validation. Future research will therefore focus on validating the proposed threshold calibration strategy using independent datasets from diverse retail environments, product categories, and operational settings. Such external validation will help determine whether the identified threshold ranges remain stable across different inventory structures and demand characteristics or require context-specific recalibration. In addition, future work will investigate more advanced inventory risk modeling techniques and evaluate the operational impact of the diagnostic signals through real-world or controlled decision-support experiments.
Future research will extend the forecasting benchmark to specialized contemporary and advanced time-series models to assess whether more complex architectures improve predictive performance and downstream inventory diagnostics across different forecasting horizons and retail environments.
Author Contributions
Methodology, G.H.; Writing—original draft, G.H.; Writing—review & editing, M.-A.S.; Supervision, M.-A.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The dataset used in this study was provided by an industrial partner and contains commercially sensitive information. Consequently, the raw dataset cannot be publicly released due to confidentiality obligations. In addition, the implementation code contains proprietary data preprocessing procedures, feature engineering strategies, and business-specific processing logic that are tightly coupled with the industrial dataset and may reveal commercially sensitive operational information. Therefore, the complete implementation cannot be made publicly available. To support reproducibility, the manuscript provides detailed descriptions of the preprocessing workflow, model configurations, training procedures, and evaluation methodology. Additional technical details may be provided by the corresponding author upon reasonable request, subject to the applicable confidentiality agreement.
Acknowledgments
The authors would like to express sincere gratitude to SU JIANLAI and Hengyuansheng (Quanzhou) Digital Technology Co., Ltd. for providing the dataset of approximately 500,000 product–store–day records and the technical insights that made this research possible. Their collaboration and commitment to advancing data-driven retail demand forecasting and inventory risk assessment were instrumental in the development and validation of the proposed framework.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Fildes, R.; Ma, S.; Kolassa, S. Retail Forecasting: Research and Practice. Int. J. Forecast. 2022, 38, 1283–1318. [Google Scholar] [CrossRef] [Scilit]
- Aro, O.E.; Louis, S. Framework for Evaluating Inventory Health. Int. J. Humanit. Soc. Sci. Manag. 2024, 4, 82–86. [Google Scholar]
- Ren, S.; Chan, H.L.; Siqin, T. Demand Forecasting in Retail Operations for Fashionable Products: Methods, Practices, and Real Case Study. Ann. Oper. Res. 2020, 291, 761–777. [Google Scholar] [CrossRef] [Scilit]
- Ma, S.; Fildes, R.; Huang, T. Demand Forecasting with High Dimensional Data: The Case of SKU Retail Sales Forecasting with Intra- and Inter-Category Promotional Information. Eur. J. Oper. Res. 2016, 249, 245–257. [Google Scholar] [CrossRef] [Scilit]
- Hyndman, R.J.; Athanasopoulos, G. Forecasting, 3rd ed.; OTexts: Melbourne, Australia, 2021. [Google Scholar]
- Punia, S.; Nikolopoulos, K.; Singh, S.P.; Madaan, J.K.; Litsiou, K. Deep Learning with Long Short-Term Memory Networks and Random Forests for Demand Forecasting in Multi-Channel Retail. Int. J. Prod. Res. 2020, 58, 4964–4979. [Google Scholar] [CrossRef] [Scilit]
- Oliveira, J.M.; Ramos, P. Evaluating the Effectiveness of Time Series Transformers for Demand Forecasting in Retail. Mathematics 2024, 12, 2728. [Google Scholar] [CrossRef] [Scilit]
- Bhatt, A.P.; Nahar, P. Smart Retail Inventory Management Using AI-Driven IoT. J. Supply Chain Manag. Syst. 2025, 14, 30–36. [Google Scholar] [CrossRef] [Scilit]
- Falatouri, T.; Darbanian, F.; Brandtner, P.; Udokwu, C. Predictive Analytics for Demand Forecasting—A Comparison of SARIMA and LSTM in Retail SCM. Procedia Comput. Sci. 2022, 200, 993–1003. [Google Scholar] [CrossRef] [Scilit]
- Auppakorn, C.; Phumchusri, N. Daily Sales Forecasting for Variable-Priced Items in Retail Business. In Proceedings of the ACM International Conference Proceeding Series, Chiang Mai, Thailand, 28 April 2022; Association for Computing Machinery: New York, NY, USA, 2022; pp. 80–86. [Google Scholar]
- Makridakis, S.; Spiliotis, E.; Assimakopoulos, V. M5 Accuracy Competition: Results, Findings, and Conclusions. Int. J. Forecast. 2022, 38, 1346–1364. [Google Scholar] [CrossRef] [Scilit]
- Kao, C.Y.; Chueh, H.E. Deep Learning Based Purchase Forecasting for Food Producer-Retailer Team Merchandising. Sci. Program. 2022, 2022, 2857850. [Google Scholar] [CrossRef] [Scilit]
- Mitra, A.; Jain, A.; Kishore, A.; Kumar, P. A Comparative Study of Demand Forecasting Models for a Multi-Channel Retail Company: A Novel Hybrid Machine Learning Approach. Oper. Res. Forum 2022, 3, 58. [Google Scholar] [CrossRef] [Scilit]
- Chen, I.F.; Lu, C.J. Sales Forecasting by Combining Clustering and Machine-Learning Techniques for Computer Retailing. Neural Comput. Appl. 2017, 28, 2633–2647. [Google Scholar] [CrossRef] [Scilit]
- Krishna, A.; Akhilesh, V.; Aich, A.; Hegde, C. Sales-Forecasting of Retail Stores Using Machine Techniques; IEEE: Bengaluru, India, 2018. [Google Scholar]
- Kohli, S.; Godwin, G.T.; Urolagin, S. Sales Prediction Using Linear and KNN Regression; Springer: Berlin/Heidelberg, Germany, 2021; pp. 321–329. [Google Scholar]
- Ganguly, P.; Mukherjee, I. Enhancing Retail Sales Forecasting with Optimized Machine Learning Models. In Proceedings of the 4th International Conference on Sustainable Expert Systems, ICSES 2024, Kaski, Nepal, 15–17 October 2024; Institute of Electrical and Electronics Engineers: Piscataway, NJ, USA, 2024; pp. 884–889. [Google Scholar] [CrossRef] [Scilit]
- Ahmed, R.S.; Hasnain, M.; Mahmood, M.H.; Mehmood, M.A. Comparison of Deep Learning Algorithms for Retail Sales Forecasting. ICCK Trans. Intell. Syst. 2024, 1, 112–126. [Google Scholar] [CrossRef] [Scilit]
- Mao, H.; Gao, Z.; Hou, J. Research on E-Commerce Retail Demand Forecasting Based on Multi-Model Fusion. Highlights Bus. Econ. Manag. 2025, 55, 113–121. [Google Scholar] [CrossRef] [Scilit]
- Hewamalage, H.; Montero-Manso, P.; Bergmeir, C.; Hyndman, R.J. A Look at the Evaluation Setup of the M5 Forecasting Competition. arXiv 2021, arXiv:2108.03588. [Google Scholar] [CrossRef] [Scilit]
- Pinochet, L.H.C.; de Souza, C.A.; Viana, A.B.N.; Rodríguez-Abitia, G.; Pardim, V.I. Predicting the Antecedents of Quality of Life from the Use of Smart Technologies in Supermarket Retail: An in-Depth Investigation Using Artificial Neural Networks. In Proceedings of the Procedia Computer Science; Elsevier B.V.: Amsterdam, The Netherlands, 2023; Volume 221, pp. 450–457. [Google Scholar]
- Lim, B.; Zohren, S. Time-Series Forecasting with Deep Learning: A Survey. Philos. Trans. R. Soc. A 2021, 379, 20200209. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Punia, S.; Shankar, S. Predictive Analytics for Demand Forecasting: A Deep Learning-Based Decision Support System. Knowl. Based. Syst. 2022, 258, 109956. [Google Scholar] [CrossRef] [Scilit]
- Giri, C.; Chen, Y. Deep Learning for Demand Forecasting in the Fashion and Apparel Retail Industry. Forecasting 2022, 4, 565–581. [Google Scholar] [CrossRef] [Scilit]
- Perin, J.; Sampaio, L.; Marcon, M.; Ortoncelli, A. Prediction of Daily Sales of Individual Products in a Medium-Sized Brazilian Supermarket Using Recurrent Neural Networks Models. In Proceedings of the 14th International Conference on Data Science, Technology and Applications, Bilbao, Spain, 10–12 June 2025; SCITEPRESS: Setúbal, Portugal, 2025; pp. 739–747. [Google Scholar] [CrossRef] [Scilit]
- Li, C.; Cheang, B.; Luo, Z.; Lim, A. An Exponential Factorization Machine with Percentage Error Minimization to Retail Sales Forecasting. ACM Trans. Knowl. Discov. Data 2021, 15, 22. [Google Scholar] [CrossRef] [Scilit]
- Guha, A.; Grewal, D.; Kopalle, P.K.; Haenlein, M.; Schneider, M.J.; Jung, H.; Moustafa, R.; Hegde, D.R.; Hawkins, G. How Artificial Intelligence Will Affect the Future of Retailing. J. Retail. 2021, 97, 28–41. [Google Scholar] [CrossRef] [Scilit]
- Yousaf, M.; Dehning, B. The Effects of Sales Surprise on Inventory Turnover: An Empirical Study. Cogent Econ. Financ. 2023, 11, 2258696. [Google Scholar] [CrossRef] [Scilit]
- Kourentzes, N.; Trapero, J.R.; Barrow, D.K. Optimising Forecasting Models for Inventory Planning. Int. J. Prod. Econ. 2020, 225, 107597. [Google Scholar] [CrossRef] [Scilit]
- Nasseri, M.; Falatouri, T.; Brandtner, P.; Darbanian, F. Applying Machine Learning in Retail Demand Prediction—A Comparison of Tree-Based Ensembles and Long Short-Term Memory-Based Deep Learning. Appl. Sci. 2023, 13, 11112. [Google Scholar] [CrossRef] [Scilit]
Figure 1.
Proposed Research Framework.
Figure 2.
Price Distribution (Unit: RMB).
Figure 3.
Median Sale Amount of Cities.
Figure 4.
Total Sale Amount of First Categories.
Figure 5.
Sales Volume Representation by City.
Figure 6.
Event-Driven Inventory State Labeling Process.
Figure 7.
Inventory Health Diagnostic Logic and State Distribution.
Table 1.
Comparison of Retail Sales Forecasting Models and Reported Performance.
| Ref. | Model | Dataset | MAPE% | RMSE |
|---|
| [1] | Prophet | UK Retail Sales Time Series | 13.2 | - |
| XGBoost | UK Grocery Retail Data | 8.9 | - |
| LightGBM | 8.3 | - |
| RF | 9.5 | - |
| Transformer | Retail Benchmark Dataset | 6.1 | - |
| [15] | KNN | Indian Retail Stores | 11.6 | 0.898 |
| [20] | LSTM | M5 Walmart Retail | 7.8 | 0.289 |
| [24] | GRU | Fashion and Apparel Retail Sales Dataset | 6.7 | - |
Table 2.
Comparison of Retail Sales Forecasting Models of Daily Dataset.
| Ref. | Model | Dataset | RMSE% |
|---|
| [29] | ARIMA (1,1,1) | Walmart, single SKU | 1.13 |
| Prophet | 1.71 |
| LightGBM (Category Sample Avg.) | Walmart, 100 sampled SKUs | 1.1883 |
| [21] | Linear Regression | Brazil supermarket, same dataset | 5–8 |
| LSTM (top 25% SKUs) | Brazil supermarket, l-performing SKUs | 1.55 |
| GRU (top 25% SKUs) | Brazil supermarket, same subset | 1.55–1.60 |
| [26] | ATLAS(S) | Weekly sales forecasts for 8 product categories | 5.54–78.91 |
Table 3.
Feature List for Multi-Dimensional Demand Forecasting.
| Feature | Description | Type |
|---|
| date | Date of each transaction | Temporal |
| city_name | Unique identifiers and names for cities participating in the dataset | Categorical |
| first_category, second_category, third_category | Product hierarchy from broad to fine-grained categories | Categorical |
| product | Unique identifier for individual products (SKUs) | Categorical |
| price | Price of each product | Numerical |
| sale_amount | Total sales amount for each product–store–date | Numerical |
| discount | Discount rate applied during the specific date | Numerical |
| Activity | Binary indicator (1 = promotional event, 0 = normal day) | Binary |
| stock_quantity | The exact on-hand inventory quantity is available at the store for the given product and date. | Numerical |
| Holiday | Binary indicator for public holidays or major sale days | Binary |
Table 4.
Dataset Statistics Before and After Preprocessing.
| Metric | Before Preprocessing | After Preprocessing |
|---|
| Records | 500,000 | 459,310 |
| Missing Values | 27,555 | 0 |
| Duplicate Records | 0 | 0 |
| Outliers | N/A | 40,690 |
| Zero-demand Ratio (%) | 5.7 | 6.2 |
Table 5.
Dataset Summary and Forecasting Configuration.
| Item | Value |
|---|
| Processed Records | 459,310 |
| Number of SKUs | 784 |
| Number of Stores | 558 |
| Number of Cities | 136 |
| Target Variable | Daily Sale Amount |
| Forecast Horizon | 1 Day |
| Forecast Type | One-Step-Ahead Forecasting |
| Historical Window (Short-Term Context) | 14 Days |
| Zero-Demand Ratio | 6.2% |
| Train-Test Split | 80%/20% |
| Data Partitioning | Chronological Split |
| Data Period | January 2022–December 2024 |
Table 6.
Hyperparameter Configuration and Seasonal Settings for the Prophet Baseline Model.
| Parameter | Value | Description |
|---|
| Growth | Linear | Trend growth |
| Seasonality | Daily, Weekly | Enabled |
| Seasonality | Yearly | Disabled |
| Regressors | External regressors | Discount, Holiday, Activity |
| Training | Test window | 28 days |
Table 7.
Hyperparameter Configuration for RF Model.
| Parameter | Value | Description |
|---|
| n_estimators | 600 | Number of trees |
| max_depth | 10 | Maximum tree depth |
| min_samples_leaf | 2 | Minimum samples per leaf |
| min_samples_split | 4 | Minimum samples to split |
| n_jobs | −1 | Parallel processing |
Table 8.
Hyperparameter Configuration for XGBoost Model.
| Parameter | Value | Description |
|---|
| max_depth | 4 | Max depth of trees |
| learning rate (eta) | 0.01 | Shrinkage rate |
| subsample | 0.8 | Row subsampling |
| colsample_bytree | 0.8 | Feature subsampling |
| objective | reg:squarederror | Regression loss |
| num_boost_round | 2000 | Max boosting rounds |
| early_stopping_rounds | 20 | Early stopping |
| eval_metric | RMSE | Evaluation metric |
Table 9.
Hyperparameter Configuration for the LSTM Model.
| Parameter | Value | Description |
|---|
| Window size | 14 | Short-term historical sequence length (days) |
| LSTM units | 64 | Hidden units in LSTM layer |
| Dense units | 32 | Fully connected layer size |
| Dropout | 0.2 | Dropout rate |
| Optimizer | Adam | Optimization algorithm |
| Batch size | 32 | Samples per batch |
| Epochs | 30 | Maximum epochs |
| Validation split | 0.1 | Validation ratio |
| Early stopping patience | 6 | Early stopping criterion |
Table 10.
Hyperparameter Configuration for the Transformer Model.
| Parameter | Value | Description |
|---|
| Window size | 14 | Short-term historical input sequence length (days) |
| d_model | 32 | Embedding dimension |
| Number of layers | 2 | Transformer encoder blocks |
| Number of heads | 8 | Multi-head self-attention |
| FF dimension | 64 | Hidden size in FFN |
| Dropout | 0.2 | Dropout rate |
| Optimizer | Adam | Gradient-based optimizer |
| Learning rate | 0.001 | Initial learning rate |
| Batch size | 32 | Samples per batch |
| Epochs | 30 | Maximum training epochs |
| Validation split | 0.1 | Fraction for validation |
| Early stopping patience | 6 | Early stopping criterion |
Table 11.
Event-Calibrated Diagnostic Thresholds and State Definitions.
| Health Level | Diagnostic Condition | Interpretation |
|---|
| Healthy | EIR ≤ 0.10 and ITR ≤ 1.2 | Inventory well-aligned with demand; balanced turnover |
| Potential Risk | 0.10 < EIR ≤ 0.18 or 1.2 < ITR ≤ 2.0 | Early warning signals of imbalance; requires attention |
| Critical | EIR > 0.18 or ITR > 2.0 | High risk of stockout or overstock; corrective action required |
Table 12.
Hyperparameter Search Space.
| Model | Parameter | Search Space |
|---|
| RF | n_estimators | 200, 400, 600 |
| RF | max_depth | 10, 20, 30 |
| XGBoost | learning_rate | 0.01, 0.05, 0.10 |
| XGBoost | max_depth | 4, 6, 8 |
| XGBoost | n_estimators | 500, 1000, 2000 |
| LSTM | hidden units | 32, 64, 128 |
| LSTM | dropout | 0.1, 0.2 |
| Transformer | attention heads | 2, 4, 8 |
| Transformer | encoder layers | 1, 2, 3 |
Table 13.
Time-Series Cross-Validation Results.
| Model | Validation Folds | Mean RMSE | Std RMSE | Approx. 95% Uncertainty Interval for Mean RMSE |
|---|
| RF | 10 | 0.7985 | 0.0620 | [0.7601, 0.8369] |
| XGBoost | 10 | 0.7855 | 0.0880 | [0.7309, 0.8401] |
| LSTM | 5 | 0.3655 | 0.0585 | [0.3142, 0.4168] |
| Transformer | 5 | 0.4487 | 0.3176 | [0.1703, 0.7271] |
Table 14.
Comparative Performance Metrics for Demand Forecasting Models.
| Model | RMSE | MAPE (%) | MASE | MAE |
|---|
| SN | 2.2353 | 156.24% | 1.0000 | 1.3526 |
| Prophet | 0.5504 | 34.66 | 1.3405 | 0.4413 |
| RF | 0.7586 | 63.69 | 0.5368 | 0.6077 |
| XGBoost | 0.7683 | 62.52 | 0.5309 | 0.6138 |
| LSTM | 0.3996 | 21.63 | 0.8595 | 0.3189 |
| Transformer | 0.4698 | 27.32 | 1.1030 | 0.3752 |
Table 15.
Distribution of Inventory Health States across SKU–Store Combinations.
| Health Level | Diagnostic Condition | Interpretation |
|---|
| Healthy | 38.9 | Balanced supply and demand |
| Potential Risk | 44.8 | Early warning of misalignment |
| Critical | 16.3 | Immediate intervention required |
Table 16.
Comparison of the Proposed Work with State-of-the-Art Approaches.
| Ref. | Methodology | Key Focus | Forecasting Performance | Operational Diagnostic Link |
|---|
| [20] | LSTM | M5 Walmart Benchmark | High (RMSE: 0.289) | No (Purely Predictive) |
| [1] | Transformer | UK Retail Benchmarking | High (MAPE: 6.1%) | Limited (Theoretical) |
| [21] | LSTM/RNN | Supermarket Daily Sales | High (RMSE: 1.55) | No (Forecasting Only) |
This Work | LSTM & Integrated Framework | E-commerce Risk Assessment | High (RMSE: 0.3996) | Yes (Event-Calibrated) |
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |