An Explainable Optimization Framework for Demand-Driven Inventory Decisions Using SHAP and Mixed Integer Programming
Abstract
Demand uncertainty complicates inventory decision-making and requires decision-support systems that are both accurate and transparent. However, existing studies primarily emphasize either demand forecasting or inventory optimization, with limited attention to integrating explainability into a unified decision-making framework. This study develops and evaluates an Explainable Optimization Framework that combines Extreme Gradient Boosting (XGBoost) for demand forecasting, SHapley Additive exPlanations (SHAP) for model interpretability, and Mixed Integer Programming (MIP) for inventory optimization. The framework was developed following the Design Science Research methodology, encompassing problem identification, artifact development, demonstration, evaluation, and communication. Model performance was assessed using rolling-origin backtesting to provide a robust evaluation under dynamic and uncertain demand conditions. Forecasting accuracy was measured using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). Experimental results demonstrate that XGBoost achieved the highest forecasting accuracy, with an RMSE of 43.87, MAE of 33.92, and MAPE of 7.61%. The forecasted demand was subsequently incorporated into the MIP optimization model, resulting in a 22.3% reduction in total inventory cost, an increase in service level from 91.2% to 96.8%, an improvement in fill rate from 89.7% to 95.4%, a 57.1% reduction in stockout frequency, and an increase in inventory turnover from 5.8 to 7.2 compared with the baseline approach. SHAP analysis identified historical demand, promotional activities, and product price as the most influential variables affecting demand predictions, providing transparent explanations that enhance managerial trust and support informed inventory decisions. Overall, the proposed framework demonstrates that integrating forecasting, explainability, and mathematical optimization into a unified decision pipeline significantly improves operational efficiency, inventory performance, decision transparency, and resilient data-driven supply chain management across diverse industrial sectors
Keywords
References
Kumar, N., Rabbani, Q., & Khan, N. A. (2024). Efficient customer service and operation maintenance by inventory management. Journal of Mechanics of Continua and Mathematical Sciences, 19(9), 66–76. https://doi.org/10.26782/jmcms.2024.09.00007
Bertsimas, D., Kallus, N., & Hussain, A. (2016). Inventory management in the era of big data. Production and Operations Management, 25(12), 2006–2009. https://doi.org/10.1111/poms.2_12637
Guo, S., Choi, T. M., Shen, B., & Jung, S. (2018). Inventory management in mass customization operations: A review. IEEE Transactions on Engineering Management, 66(3), 412–428. https://doi.org/10.1109/TEM.2018.2839616
Namazian, Z., Betts, J. M., & Stuckey, P. J. (2025). Predict and optimize: A smart inventory management model for beauty retail. Optimization Letters, 1–21. https://doi.org/10.1007/s11590-025-02226-0
Agrawal, P. M., & Sharda, R. (2012). Impact of frequency of alignment of physical and information system inventories on out of stocks: A simulation study. International Journal of Production Economics, 136(1), 45–55. https://doi.org/10.1016/j.ijpe.2011.09.008
Roosevelt, S. C., Veemaraj, E., & Kirubakaran, S. (2024). Real time stock inventory management system. 2024 8th International Conference on Inventive Systems and Control (ICISC), 166–170. https://doi.org/10.1109/ICISC62624.2024.00034
Syed, S. (2021). Smart inventory management systems using RFID and IoT technologies for real-time stock visibility. International Journal of Artificial Intelligence Engineering and Transformation, 2(1), 22–36. https://doi.org/10.54660/IJAIET.2021.2.1.22-36
Selwin, S., Mohammed, I., Tiwari, K., Sharma, R., & Deepika, P. (2025). Industrial IoT enabling model predictive control for dynamic inventory management in smart warehousing. 2025 Tenth International Conference on Science Technology Engineering and Mathematics (ICONSTEM). https://doi.org/10.1109/ICONSTEM65670.2025.11374867
Lee, H. (2019). Effective dynamic control strategy of a key supplier with multiple downstream manufacturers using industrial Internet of Things and cloud system. Processes, 7(3), 172. https://doi.org/10.3390/pr7030172
Valencia-Cárdenas, M., Díaz-Serna, F. J., & Correa-Morales, J. C. (2015). Inventory planning with dynamic demand: A state of art review. Dyna, 82(190), 182–191. https://doi.org/10.15446/dyna.v82n190.42828
Babaï, M. Z., Syntetos, A. A., Dallery, Y., & Nikolopoulos, K. (2009). Dynamic re-order point inventory control with lead-time uncertainty: Analysis and empirical investigation. International Journal of Production Research, 47(9), 2461–2483. https://doi.org/10.1080/00207540701666824
Tadayonrad, Y., & Ndiaye, A. B. (2023). A new key performance indicator model for demand forecasting in inventory management considering supply chain reliability and seasonality. Supply Chain Analytics, 3, 100026. https://doi.org/10.1016/j.sca.2023.100026
Kumar, L., Khedlekar, S., & Khedlekar, U. K. (2024). A comparative assessment of Holt-Winter exponential smoothing and autoregressive integrated moving average for inventory optimization in supply chains. Supply Chain Analytics, 8, 100084. https://doi.org/10.1016/j.sca.2024.100084
Lejarza, F., Kelley, M. T., & Baldea, M. (2022). Feedback-based deterministic optimization is a robust approach for supply chain management under demand uncertainty. Industrial & Engineering Chemistry Research, 61(33), 12153–12168. https://doi.org/10.1021/acs.iecr.2c00099
Raghuram, P., Bhupesh, S., Manivannan, R., Anand, P. S. P., & Sreedharan, V. R. (2022). Modeling and analyzing the inventory level for demand uncertainty in the VUCA world: Evidence from biomedical manufacturer. IEEE Transactions on Engineering Management, 70(8), 2944–2954. https://doi.org/10.1109/TEM.2022.3201440
Mitra, A., Jain, A., Kishore, A., & Kumar, P. (2022, September). A comparative study of demand forecasting models for a multi-channel retail company: A novel hybrid machine learning approach. Operations Research Forum, 3(4), 58. https://doi.org/10.1007/s43069-022-00166-4
Goltsos, T. E., Syntetos, A. A., Glock, C. H., & Ioannou, G. (2022). Inventory–forecasting: Mind the gap. European Journal of Operational Research, 299(2), 397–419. https://doi.org/10.1016/j.ejor.2021.07.040
Sim, M., Tang, Q., Zhou, M., & Zhu, T. (2025). The analytics of robust satisficing: Predict, optimize, satisfice, then fortify. Operations Research, 73(5), 2708–2728. https://doi.org/10.1287/opre.2023.0199
Tungadi, A. R., Dyah, S., Aurachman, R., & Santosa, B. (2019). Proposal of product-replenishment policy determination on multi-source problems to minimize over stock in DC PT. XYZ Area Bandung using mixed-integer programming method. International Journal of Innovation in Enterprise System, 3(1), 21–27. https://doi.org/10.25124/ijies.v3i01.31
Hariga, M., Al-Ahmari, A., & Mohamed, A.-R. (2007). A joint optimisation model for inventory replenishment, product assortment, shelf space and display area allocation decisions. European Journal of Operational Research, 181(1), 239–251. https://doi.org/10.1016/j.ejor.2006.06.025
Gupta, S., Bagga, S., & Sharma, D. K. (2020). Intelligent data analysis: Black box versus white box modeling. In Intelligent Data Analysis: From Data Gathering to Data Comprehension (pp. 1–15). Wiley. https://doi.org/10.1002/9781119544487.ch1
Guidotti, R., Monreale, A., Giannotti, F., Pedreschi, D., Ruggieri, S., & Turini, F. (2019). Factual and counterfactual explanations for black box decision making. IEEE Intelligent Systems, 34(6), 14–23. https://doi.org/10.1109/MIS.2019.2957223
Wanner, J., Herm, L. V., Heinrich, K., & Janiesch, C. (2022). The effect of transparency and trust on intelligent system acceptance: Evidence from a user-based study. Electronic Markets, 32(4), 2079–2102. https://doi.org/10.1007/s12525-022-00593-5
Mathew, D. E., Ebem, D. U., Ikegwu, A. C., Ukeoma, P. E., & Dibiaezue, N. F. (2025). Recent emerging techniques in explainable artificial intelligence to enhance the interpretability and understanding of AI models for humans. Neural Processing Letters, 57(1), 16. https://doi.org/10.1007/s11063-025-11732-2
Padarian, J., McBratney, A. B., & Minasny, B. (2020). Game theory interpretation of digital soil mapping convolutional neural networks. Soil, 6(2), 389–397. https://doi.org/10.5194/soil-6-389-2020
Han, X., Zhang, Z., Cheng, P., Qian, X., Liu, Y., & Lin, B. (2025). Application and analysis of the Shapley additive explanations in predicting the rate of penetration. Petroleum Science and Technology, 1–20. https://doi.org/10.1080/10916466.2025.2594719
De Bock, K. W., Coussement, K., De Caigny, A., S?owi?ski, R., Baesens, B., Boute, R. N., ... & Weber, R. (2024). Explainable AI for operational research: A defining framework, methods, applications, and a research agenda. European Journal of Operational Research, 317(2), 249–272. https://doi.org/10.1016/j.ejor.2023.09.026
Bergsma, R., de Ruijt, C., & Bhulai, S. (2025). A systematic review of machine learning approaches in inventory control optimization. Operations Research Perspectives, 100367. https://doi.org/10.1016/j.orp.2025.100367
Shajalal, M., Boden, A., & Stevens, G. (2022). Explainable product backorder prediction exploiting CNN: Introducing explainable models in businesses. Electronic Markets, 32(4), 2107–2122. https://doi.org/10.1007/s12525-022-00599-z
Ponce-Bobadilla, A. V., Schmitt, V., Maier, C. S., Mensing, S., & Stodtmann, S. (2024). Practical guide to SHAP analysis: Explaining supervised machine learning model predictions in drug development. Clinical and Translational Science, 17(11), e70056. https://doi.org/10.1111/cts.70056
Hevner, A. R., March, S. T., Park, J., & Ram, S. (2004). Design science in information systems research. MIS Quarterly, 28(1), 75–105. https://doi.org/10.2307/25148625
Peffers, K., Tuunanen, T., Rothenberger, M. A., & Chatterjee, S. (2007). A design science research methodology for information systems research. Journal of Management Information Systems, 24(3), 45–77. https://doi.org/10.2753/MIS0742-1222240302
Prak, D., & Teunter, R. (2019). A general method for addressing forecasting uncertainty in inventory models. International Journal of Forecasting, 35(1), 224–238. https://doi.org/10.1016/j.ijforecast.2017.11.004
Song, J. S., Zhang, H., Hou, Y., & Wang, M. (2010). The effect of lead time and demand uncertainties in (r, q) inventory systems. Operations Research, 58(1), 68–80. https://doi.org/10.1287/opre.1090.0711
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. https://doi.org/10.1145/2939672.2939785
Absi, N., & Kedad-Sidhoum, S. (2007). MIP-based heuristics for multi-item capacitated lot-sizing problem with setup times and shortage costs. RAIRO-Operations Research, 41(2), 171–192. https://doi.org/10.1051/ro:2007014
Jiang, Y., Shi, C., & Shen, S. (2019). Service level constrained inventory systems. Production and Operations Management, 28(9), 2365–2389. https://doi.org/10.1111/poms.13060
Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S.-I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 56–67. https://doi.org/10.1038/s42256-019-0138-9
Arrieta, A. B., Díaz-Rodríguez, N., Del Ser, J., Bennetot, A., Tabik, S., Barbado, A., ... & Herrera, F. (2020). Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information Fusion, 58, 82–115. https://doi.org/10.1016/j.inffus.2019.12.012
Kamble, S., Kalsarpe, K., & Dagadkar, S. N. (2026). Enhancing retail sales intelligence through XAI and interactive visualization. Proceedings of the 5th International Conference on Sentiment Analysis and Deep Learning (ICSADL), 450–455. https://doi.org/10.1109/ICSADL67539.2026.11451846
Choudhary, S. (2024). AI-powered integrated model for optimizing inventory decisions using deep learning. International Journal of Computing and Artificial Intelligence, 5(1), 160–166. https://doi.org/10.33545/27076571.2024.v5.i1b.262
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. https://doi.org/10.1145/2939672.2939785
Cortes, C., Mohri, M., & Storcheus, D. (2019). Regularized gradient boosting. Advances in Neural Information Processing Systems, 32, 1117–1127.
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. https://doi.org/10.1145/2939672.2939785
He, J., & Hahn, R. (2020). Stochastic tree ensembles for regularized nonlinear regression. Journal of the American Statistical Association, 115(531), 1132–1145. https://doi.org/10.1080/01621459.2019.1660177
Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts. https://otexts.com/fpp3/
Ruf, J., & Wang, W. (2021). Information leakage in backtesting. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.3854093
Nohara, Y., Matsumoto, K., Soejima, H., & Nakashima, N. (2021). Explanation of machine learning models using improved Shapley Additive Explanations for predicting cerebral infarction. Scientific Reports, 11, 3827. https://doi.org/10.1038/s41598-021-83151-9
Scheda, R., & Diciotti, S. (2022). Explainable AI in radiomics: Stability of SHAP explanations across cross-validation. Diagnostics, 12(9), 2166. https://doi.org/10.3390/diagnostics12092166
Kostopoulos, G., Davrazos, G., & Kotsiantis, S. (2024). Explainable Artificial Intelligence-Based Decision Support Systems: A Recent Review. Electronics, 13(14), 2842. https://doi.org/10.3390/electronics13142842
Saranya, A., & Subhashini, R. (2023). A systematic review of Explainable Artificial Intelligence models and applications: Recent developments and future trends. Decision Analytics Journal, 7, 100230. https://doi.org/10.1016/j.dajour.2023.100230
Wang, X., & Petropoulos, F. (2016). To select or to combine? The inventory performance of model and expert forecasts. International Journal of Production Research, 54(17), 5275–5287. https://doi.org/10.1080/00207543.2016.1173259
Tadayonrad, Y., & Ndiaye, A. B. (2023). A new key performance indicator model for demand forecasting in inventory management considering supply chain reliability and seasonality. Supply Chain Analytics, 3, 100026. https://doi.org/10.1016/j.sca.2023.100026
Bergsma, R., de Ruijt, C., & Bhulai, S. (2025). A systematic review of machine learning approaches in inventory control optimization. Operations Research Perspectives, 100367. https://doi.org/10.1016/j.orp.2025.100367
Swathi, S., & Kalaiarasi, K. (2023). An integrated approach of Ant Colony Optimization (ACO), Machine Learning (ML), and Fuzzy Logic for revolutionizing inventory management in modern supply chains. Tuijin Jishu/Journal of Propulsion Technology, 44(3), 3827–3839. https://doi.org/10.52783/tjjpt.v44.i3.2129
Jadhav, B., Deshpande, A., & Jadhav, S. (2025). Integrating data analysis and predictive analytics into an advanced inventory management system using machine learning and deep learning to address backorders. Communications on Applied Nonlinear Analysis, 32. https://doi.org/10.52783/cana.v32.3813
Venable, J., Pries-Heje, J., & Baskerville, R. (2016). FEDS: A framework for evaluation in design science research. European Journal of Information Systems, 25(1), 77–89. https://doi.org/10.1057/ejis.2014.36
Adam, M. T. P., Gregor, S., Hevner, A., & Morana, S. (2021). Design science research modes in human-computer interaction projects. AIS Transactions on Human-Computer Interaction, 13(1), 1–11. https://doi.org/10.17705/1thci.00139
DOI: https://doi.org/10.52088/ijesty.v6i3.1882
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Alfry Aristo Jansen Sinlae, Fajriana, Yenny Suzana, Kiki Puspo Arianty






























