A Drift-Aware MLOps Pipeline for Retail Demand Forecasting and Inventory Replenishment: A Semi-Synthetic Proof of Concept
DOI:
https://doi.org/10.57159/jcmm.5.5.261268Keywords:
Concept Drift, Demand Forecasting, Inventory Replenishment, MLOps, Retail Analytics, Semi-Synthetic EvaluationAbstract
Retail demand forecasting can lose accuracy as demand patterns evolve, which motivates operational pipelines that monitor model errors and govern replacement decisions. This study describes a drift-aware machine learning operations (MLOps) framework integrating stock-keeping unit (SKU)-level Prophet forecasts, rolling mean absolute error (MAE) monitoring, a mean absolute percentage error (MAPE)-based candidate-model safety gate, and inventory replenishment calculations. It is a controlled semi-synthetic proof of concept based on 160,000 Kaggle retail transactions: unit quantities are synthesized from category heuristics, daily series are extended beyond the observed period with a historical-mean procedure, and four controlled drift windows are injected into selected SKUs. Preprocessing yields 52,632 daily records for 72 SKUs. In a leakage-free rolling-origin evaluation over July 3 to 31, 2025 (2,088 one-day-ahead SKU-day forecasts), Prophet achieves an aggregate MAE of 1.49 units/day and a MAPE of 11.65%, against 1.83 and 1.85 units/day for the naive and weekly seasonal-naive baselines and 1.47 units/day for a historical-mean baseline. The illustrative SKU APPL-001 has an MAE of 1.43 units/day and a root mean square error (RMSE) of 1.72 units/day. These measurements do not identify an effect of retraining. The rolling-MAE detector detected 21 of 48 SKU-window injections (median delay 6 days) and raised 436 alert-days outside the injection windows; the held-out MAPE safety gate accepted 139 of 231 candidate models (60.2%). The pipeline design is coherent, but the study does not establish causal retraining benefit, real-drift detection accuracy, operational scalability, or production effectiveness, which require unit-sales data with naturally occurring drift.
References
[1] J. Gama, I. Žliobaitė, A. Bifet, M. Pechenizkiy, and A. Bouchachia, "A survey on concept drift adaptation," ACM Computing Surveys, vol. 46, no. 4, pp. 44:1–44:37, 2014.
[2] S. J. Taylor and B. Letham, "Forecasting at scale," The American Statistician, vol. 72, no. 1, pp. 37–45, 2018.
[3] B. Lim, S. Ö. Arık, N. Loeff, and T. Pfister, "Temporal fusion transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, vol. 37, no. 4, pp. 1748–1764, 2021.
[4] F. Z. Benhamida, O. Kaddouri, T. Ouhrouche, M. Benaichouche, D. Casado-Mansilla, and D. López-de-Ipiña, "Demand forecasting tool for inventory control smart systems," Journal of Communications Software and Systems, vol. 17, no. 2, pp. 185–196, 2021.
[5] M. S. Haque, M. S. Amin, and J. Miah, "Retail demand forecasting: A comparative study for multivariate time series." arXiv preprint arXiv:2308.11939, 2023.
[6] A. S. Al Mesfer, "Forecast-driven inventory management for the fast-moving consumer goods industry," s.m. thesis, Massachusetts Institute of Technology, System Design and Management Program, 2023.
[7] L. Goel, N. Nandal, S. Gupta, M. Karanam, L. P. Yeluri, A. K. Pandey, and P. Grabovy, "Revealing the dynamics of demand forecasting in supply chain management: A holistic investigation," Cogent Engineering, vol. 11, no. 1, p. 2368104, 2024.
[8] M. S. Shak, M. S. A. Mozumder, M. A. Hasan, and A. C. Das, "Optimizing retail demand forecasting: A performance evaluation of machine learning models including LSTM and gradient boosting," The American Journal of Engineering and Technology, vol. 6, no. 9, pp. 67–80, 2024.
[9] M. Ge, H. Ma, Y. Wu, X. Ma, Y. Liu, Y. A. Moe, and W. Xie, "AttnBoost: Retail supply chain sales insights via gradient boosting perspective." arXiv preprint arXiv:2509.10506, 2025.
[10] M. Zanotti, "On the retraining frequency of global models in retail demand forecasting," Machine Learning with Applications, vol. 22, p. 100769, 2025.
[11] D. Lukats, O. Zielinski, A. Hahn, and F. Stahl, "A benchmark and survey of fully unsupervised concept drift detectors on real-world data streams," International Journal of Data Science and Analytics, vol. 19, no. 1, pp. 1–31, 2024.
[12] J. L. M. Pérez, R. S. M. Barros, and S. G. T. C. Santos, "Enhancing semi-supervised learning with concept drift detection and self-training: A study on classifier diversity and performance," IEEE Access, vol. 13, pp. 24681–24697, 2025.
[13] X. Chen, S. Wang, T. Zhang, G. Yang, and Y. Yang, "Virtual concept drift detection and adaptation in federated data stream learning," International Journal of Data Science and Analytics, vol. 21, no. 1, p. 46, 2026.
[14] A. Kraus and H. van der Aa, "Machine learning-based detection of concept drift in business processes," Process Science, vol. 2, p. 5, 2025.
[15] Prashanth B S, Manoj Kumar M V, Puneetha B H, and Ajay Kumara M A, "A data-driven framework for detecting and mitigating concept drift in adaptive artificial neural networks," Procedia Computer Science, vol. 258, pp. 1147–1158, 2025.
[16] R. Fildes, S. Ma, and S. Kolassa, "Retail forecasting: Research and practice," International Journal of Forecasting, vol. 38, no. 4, pp. 1283–1318, 2022.
[17] E. Theodorou, E. Spiliotis, and V. Assimakopoulos, "Optimizing inventory control through a data-driven and model-independent framework," EURO Journal on Transportation and Logistics, vol. 12, p. 100103, 2023.
[18] M. Seyedan, F. Mafakheri, and C. Wang, "Order-up-to-level inventory optimization model using time-series demand forecasting with ensemble deep learning," Supply Chain Analytics, vol. 3, p. 100024, 2023.
[19] Y. Liu, D. Kalaitzi, M. Wang, and C. Papanagnou, "A machine learning approach to inventory stockout prediction," Journal of Digital Economy, vol. 4, pp. 144–155, 2025.
[20] A. Farooq, A. B. N. Abbey, and E. C. Onukwulu, "Inventory optimization and sustainability in retail: A conceptual approach to data-driven resource management," International Journal of Multidisciplinary Research and Growth Evaluation, vol. 5, no. 6, pp. 1356–1363, 2024.
[21] Z. B. Yusof, "Analyzing the role of predictive analytics and machine learning techniques in optimizing inventory management and demand forecasting for e-commerce." Manuscript, Malaysia University of Science and Technology, ResearchGate, 2024.
[22] D. Sculley, G. Holt, D. Golovin, E. Davydov, T. Phillips, D. Ebner, V. Chaudhary, M. Young, J.-F. Crespo, and D. Dennison, "Hidden technical debt in machine learning systems," in Advances in Neural Information Processing Systems 28, pp. 2503–2511, 2015.
[23] M. Zaharia, A. Chen, A. Davidson, A. Ghodsi, S. A. Hong, A. Konwinski, S. Murching, T. Nykodym, P. Ogilvie, M. Parkhe, F. Xie, and C. Zumar, "Accelerating the machine learning lifecycle with MLflow," IEEE Data Engineering Bulletin, vol. 41, no. 4, pp. 39–45, 2018.
[24] D. O. Hanchuk and S. O. Semerikov, "Implementing MLOps practices for effective machine learning model deployment: A meta synthesis," in Proceedings of the 7th International Workshop on Augmented Reality in Education (AREdu 2024), CEUR Workshop Proceedings, vol. 3918, pp. 329–337, 2024.
[25] W. Nasir and H. Jack, "Real-time machine learning pipelines: Optimizing stream processing for scalable AI applications." Manuscript, ResearchGate, 2025.
[26] A. M. Khedr and Sheeja Rani S, "Enhancing supply chain management with deep learning and machine learning techniques: A review," Journal of Open Innovation: Technology, Market, and Complexity, vol. 10, no. 4, p. 100379, 2024.
[27] J. Zhang, Y. Wang, and Z. Wang, "Enhancing supply chain forecasting with machine learning: A data-driven approach to demand prediction, risk management, and demand-supply optimization," Journal of Fintech and Business Analysis, vol. 2, no. 1, pp. 1–5, 2024.
[28] IBM Institute for Business Value, "The CEO's guide to generative AI: Procurement." IBM Institute for Business Value report, 2024.
[29] A. Palakshappa, S. Maradithaya, and Charunayana V, "A machine learning method to improve supplier delivery appointments in supply chain industries: A case study," Brazilian Journal of Operations and Production Management, vol. 22, no. 1, p. 2040, 2025.
[30] A. R. Chowdhury, R. Paul, and F. Z. Rozony, "A systematic review of demand forecasting models for retail e-commerce enhancing accuracy in inventory and delivery planning," International Journal of Scientific Interdisciplinary Research, vol. 6, no. 1, pp. 1–27, 2025.
Downloads
Published
How to Cite
Issue
Section
Categories
License
Copyright (c) 2026 The Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Articles published in the Journal of Computers, Mechanical and Management are licensed under a CC BY-NC 4.0 license. Authors retain copyright of their work and grant the journal a non-exclusive license to publish, distribute, and archive the article. Full terms are on the Copyright and Licensing page.