AI-Enabled Demand Forecasting and Inventory Optimization in Industry 6.0: A Dynamic Capabilities Approach on a Pharmacy Supply Chain Data
No Thumbnail Available
Date
2026
Journal Title
Journal ISSN
Volume Title
Publisher
Library information Services, COMSATS University Islamabad, Lahore
Abstract
In developing economies, medicine stock-outs due to uncertainty of demand,
perishability of medicines, and lack of formal forecasting systems are the common
challenges for pharmacy supply chains, which affect patient access and drive
overstocking and hence waste of limited resources. This study confirms that in a retail
pharmacy supply chain, operational performance can be enhanced by optimizing the
inventory process through the use of Artificial Intelligence (AI) enabled demand
forecasting, supported by the framework of the Dynamic Capabilities Theory (DCT),
which involves three phases: sensing, seizing, and reconfiguring. The study compares
401,334 daily transactions of five therapeutic categories of pharmaceutical products from
the Care Pharmacy in Faisalabad, Pakistan, for the period of January 1 to December 31,
2024. Three forecasting models were built and compared: the Auto-regression Integrated
Moving Average (ARIMA) model as the traditional forecasting model, the AI-based
Random Forest (RF) model, and the eXtreme Gradient Boosting (XGBoost) model.
Fourteen metrics were used for forecasting accuracy: Mean Absolute Percentage Error
(MAPE), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and others.
The stock out rate (SR), reorder point accuracy (ROP Accuracy), over stock deviation
(OD), and inventory turnover ratio (ITR) were used to assess inventory optimization. The
key factors used to measure the operational performance were service availability (SA),
sales efficiency (SE), and inventory utilization efficiency (IUE). Friedman chi-squared
tests, Wilcoxon signed-rank tests, Ordinary Least Squares (OLS) regression, and Baron
and Kenny mediation analysis with Sobel's test were used to test four hypotheses. The
four hypotheses were accepted. The forecasting accuracy of XGBoost was the best with MAPE of 80.99%, Volume Error of 1.51%, and R-squared of 0.481, which was
statistically significant when compared to the ARIMA model (Friedman chi-squared =
30.24, p < 0.001). The accuracy of forecasting had a significant impacton inventory
optimization (standardized B* = -0.067, p < 0.001), and inventoryOptimisation had a
noteworthy impact on operational performance (standardized B* =0.292, p < 0.001). The
mediation analysis showed that the forecasting-to-performance relationship was mediated
by inventory optimization (Sobel Z = −6.63, p < 0.001). A novel finding was that despite
lower accuracy of the forecast, the systematic over-prediction bias (+35.88%) of the
Random Forest resulted in superior inventory outcomes (stockout rate: 0.93%), which led
to developing Combination XRX: an ensemble that exploited the very best Random
Forest models for each of the DCT dimensions. The overall best result (81.02/100) was
obtained by the combination XRX, which beat all of the standalone models. The switch
to the AI forecasting model resulted in a decrease in stockout rates and an increase in
service availability from 95.25% to 98.36% to 99.07%, a 65-80% improvement. All four
AI models were compared to the pharmacy baseline, which is just the inventory
parameters used by people working manually, and all of the 2,155 medicines in the
catalog were compared. The store’s manual process was 50.93/100 for inventory
optimization and 37.43/100 for operational performance significantly lower than all of
the AI options. The accuracy of ROP was as low as 39.6% in manual mode, whereas the
best AI model achieved 78.5% accuracy. This paper adds to the body of knowledge by
being one of the first empirical validations of the DCT sense-seize-reconfigure pathway
in an AI-enabled pharmacy supply chain, and also by showing that, in addition to the
accuracy of forecasts, the direction of the forecast bias influences the outcome of
inventories. The results provide a scientifically robust set of guidelines for pharmacy
managers in developing economies to choose from when deciding on a forecasting
model, determining the inventory parameters, and quantifying the operational gains of
implementing AI in their business.
Description
Keywords
AI-Enabled Demand, Forecasting and Inventory, Industry 6.0, Pharmacy, Supply Chain Data, Zain Rauf
