Submitted:
22 July 2025
Posted:
23 July 2025
You are already at the latest version
Abstract

Keywords:
MSC: 60G10
1. Introduction
2. Methodology
2.1. Data Description and Parameters
- Ordering cost () – average cost of issuing a purchase order, including administrative labor and shipping.
- Holding cost () – annual cost of storing one determination unit, considering energy, losses, and space.
- Shortage cost () – cost associated with stockouts, estimated from rescheduling procedures and patient re-attendance.
- Procurement cost () – average unit cost of each determination, computed from historical purchasing prices.
2.2. Forecasting Models
- Skew-Normal (SN) residuals, capturing asymmetry;
- Zero-Inflated Skew-Normal (ZISN) residuals, capturing both asymmetry and excess zeros.
- -
- is the observed demand at time t,
- -
- are exogenous regressors (e.g., calendar month dummies),
- -
- captures autoregressive and moving average components,
- -
- , are the associated parameter vectors,
- -
- is the residual term.
- : Skew-Normal distribution with location , scale , and skewness .
- : Zero-Inflated Skew-Normal distribution, combining a point mass at zero with a Skew-Normal component.
- 1.
- Maximum Likelihood Estimation (MLE) of the SARIMAX baseline parameters (),
- 2.
- Expectation-Maximization (EM) algorithm for structured residual parameters and p in the SN/ZISN models, following the approach described in [5].
Multilayer Perceptron (MLP) Benchmark
- -
- and are the weight matrices and bias vectors for layer ,
- -
- , are ReLU activation functions ,
- -
- is the identity function (linear output),
- -
- is the predicted demand at time t.
2.3. Optimization Phase (Global PSO)
- -
- is the unit cost,
- -
- is the fixed ordering cost,
- -
- is the holding cost per excess unit,
- -
- is the shortage cost per missing unit,
- -
- B is the total available budget.
2.3.1. Mathematical Formulation of PSO
- -
- w is the inertia weight (balances exploration and exploitation),
- -
- , are cognitive and social acceleration coefficients,
- -
- , are random numbers,
- -
- is the personal best position of the particle,
- -
- is the global best found by the swarm.
2.4. Code Availability
2.5. Reproducible Workflow for Model Estimation
| Listing 1: Full forecasting workflow: SARIMAX order selection, residual centering, Skew-Normal fitting, forecasting, and MLP benchmark. |
![]() |
![]() |
2.6. Inventory–Cost Optimisation Workflow
- 1.
- loads the 36-month demand series from DemandaSpecialIsue.xlsx;
- 2.
- fits a fast SARIMAX model and extracts the one-month ahead mean demand ;
- 3.
- enumerates integer multiples of the pack size and evaluates the total cost
- 4.
- stores the optimal lot , the current lot (December-2023 order) and the corresponding costs.
| Listing 2: Global PSO optimisation with packaging constraints and budget limit. |
![]() |
3. Results
3.1. Forecast Accuracy and Parameter Estimates
3.2. Residual Diagnostics and Model Selection
3.3. Optimization Outcomes
4. Discussion
4.1. Interpretation of Main Results and Operational Implications
Improved Forecast Accuracy with SARIMAX–SN/ZISN Models
Robustness and Interpretability of Residual Modeling.
Inventory Cost Optimization under Realistic Constraints
High Service Levels Maintained Across Portfolio
4.2. Implications for Clinical Laboratory Logistics and Supply
4.3. Limitations of the Study
- Scope restriction: The study used data from a single mid-sized Chilean hospital, potentially limiting generalization to larger institutions or different healthcare systems.
- Static parameters: Procurement costs, shortage penalties, and budget levels were assumed fixed. In practice, these may vary monthly.
- Temporal assumptions: The model does not incorporate long-term trend shifts (e.g., due to epidemiological or technological changes).
- Simplified logistics: Lead times and supplier delays were not included in the cost function, though they may impact stock availability.
4.4. Future Research Directions
- Multi-objective optimisation to jointly minimise cost and maximise service levels.
- Multi-period planning under rolling budgets and lead times.
- Integration with hospital ERP systems for real-time updates and automatic re-planning.
- Extension to regional networks with shared laboratory reagent pools or cooperative procurement models.
- Decision dashboards for non-technical stakeholders, integrating explainability with usability.
5. Conclusions
- The proposed SARIMAX–SN/ZISN models consistently outperformed standard SARIMA and neural network benchmarks in forecasting accuracy, particularly for laboratory reagents exhibiting skewed or zero-inflated demand.
- The metaheuristic inventory optimisation component effectively translated improved forecasts into procurement decisions that were budget-compliant, packaging-feasible, and highly cost-efficient, achieving up to 89% monthly cost savings compared to the hospital’s empirical policy.
- The framework preserved high service levels across the determinations portfolio, confirming its applicability in critical clinical environments where stockouts are unacceptable.
- The integration of explainable forecasting structures and constrained optimisation enhances transparency and traceability from data to decisions—essential for implementation in public healthcare systems.
- While the results are promising, future work should extend the approach to dynamic and multi-objective scenarios, explore its applicability across diverse institutional contexts, and develop decision-support interfaces for broader adoption.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Befekadu, A.; Cheneke, W.; Kebebe, D.; Gudeta, T. Inventory management performance for laboratory commodities in public hospitals of Jimma zone, Southwest Ethiopia. Journal of pharmaceutical policy and practice 2020, 13, 1–12. [Google Scholar] [CrossRef] [PubMed]
- Nsowah, J.; Agyenim-Boateng, G.; Anane, A. Effect of Inventory Management Practices on Healthcare Delivery and Operational Performance of Sunyani Regional Hospital. In Proceedings of the Operations Research Forum. Springer, 2025, Vol. 6, p. 13. [CrossRef]
- Boche, B.; Temam, S.; Kebede, O. Inventory management performance for laboratory commodities and their challenges in public health facilities of Gambella Regional State, Ethiopia: A mixed cross-sectional study. Heliyon 2022, 8, e11357. [Google Scholar] [CrossRef] [PubMed]
- Hyndman, R.J.; Athanasopoulos, G. Forecasting: principles and practice; OTexts, 2018.
- Dinamarca, M.A.; Rojas, F.; Ibacache-Quiroga, C.; González-Pizarro, K. Modeling Time Series with SARIMAX and Skew-Normal and Zero-Inflated Skew-Normal Errors. Mathematics 2025, 13, 1892. [Google Scholar] [CrossRef]
- Gorgin, V.; Sadeghpour Gildeh, B. MAD control chart for autoregressive models with skew-normal distribution. Stochastics and Quality Control 2020, 35, 17–23. [Google Scholar] [CrossRef]
- Lambert, D. Zero-inflated Poisson regression, with an application to defects in manufacturing. Technometrics 1992, 34, 1–14. [Google Scholar] [CrossRef]
- Talbi, E.G. Metaheuristics: from design to implementation; John Wiley & Sons, 2009.
- Basciftci, B.; Ahmed, S.; Gebraeel, N. Adaptive two-stage stochastic programming with an analysis on capacity expansion planning problem. Manufacturing & Service Operations Management 2024, 26, 2121–2141. [Google Scholar] [CrossRef]
- Arrieta, A.B.; Díaz-Rodríguez, N.; Del Ser, J.; Bennetot, A.; Tabik, S.; Barbado, A.; García, S.; Gil-López, S.; Molina, D.; Benjamins, R.; et al. Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information fusion 2020, 58, 82–115. [Google Scholar] [CrossRef]
- Urjais Gomes, R.; Soares, C.; Reis, L.P. An Empirical Evaluation of DeepAR for Univariate Time Series Forecasting. In Proceedings of the EPIA Conference on Artificial Intelligence. Springer, 2024, pp. 188–199. [CrossRef]
- Li, N.; Chiang, F.; Down, D.G.; Heddle, N.M. A decision integration strategy for short-term demand forecasting and ordering for red blood cell components. Operations Research for Health Care 2021, 29, 100290. [Google Scholar] [CrossRef]
- Mwencha, M.; Rosen, J.E.; Spisak, C.; Watson, N.; Kisoka, N.; Mberesero, H. Upgrading supply chain management systems to improve availability of medicines in Tanzania: evaluation of performance and cost effects. Global Health: Science and Practice 2017, 5, 399–411. [Google Scholar] [CrossRef] [PubMed]

| Item | Model | Order | |||||||
| Lactic Acid | SARIMAX-SN | (2,1,2) | 3.58 | -66.92 | 93.84 | 14.08 | 18.00 | 14.08 | |
| Urea | SARIMAX-SN | (0,1,2) | 5.95 | -155.25 | 225.36 | 84.65 | 107.42 | 84.65 | |
| Valproic Acid | SARIMAX-SN | (1,1,2) | 0.00 | 0.00 | 6.16 | 8.92 | 10.86 | 8.92 | |
| Albumin | SARIMAX-SN | (1,1,2) | 3.47 | -71.89 | 98.90 | 33.67 | 40.37 | 33.67 | |
| Amylase | SARIMAX-SN | (0,1,2) | 0.93 | -41.94 | 77.66 | 18.23 | 21.33 | 18.23 | |
| Ammonia | SARIMAX-SN | (0,1,2) | 1.48 | -10.62 | 16.20 | 1.67 | 1.89 | 1.67 | |
| Direct Bilirubin | SARIMAX-SN | (0,1,2) | 10.00 | -338.58 | 461.86 | 268.53 | 291.49 | 268.53 | |
| Total Bilirubin | SARIMAX-SN | (0,1,2) | 4.64 | -306.96 | 449.56 | 283.80 | 307.62 | 283.80 | |
| Calcium | SARIMAX-SN | (0,1,2) | 2.28 | -105.21 | 153.05 | 88.33 | 104.99 | 88.33 | |
| Carbamazepine | SARIMAX-SN | (1,1,2) | -0.01 | 0.01 | 1.79 | 4.63 | 4.90 | 4.63 | |
| Total CK | SARIMAX-SN | (0,1,2) | 9.85 | -132.79 | 181.18 | 51.18 | 64.73 | 51.18 | |
| CK-MB | SARIMAX-SN | (2,1,2) | 12.75 | -128.14 | 183.53 | 78.98 | 99.54 | 78.98 | |
| HDL Cholesterol | SARIMAX-SN | (0,1,2) | 5.61 | -358.86 | 504.35 | 235.25 | 264.34 | 235.25 | |
| Total Cholesterol | SARIMAX-SN | (0,1,2) | 4.59 | -370.12 | 524.30 | 268.55 | 309.61 | 268.55 | |
| Creatinine | SARIMAX-SN | (0,1,2) | 5.11 | -760.15 | 1094.09 | 372.62 | 445.61 | 372.62 | |
| LDH | SARIMAX-SN | (2,1,2) | 0.82 | -77.34 | 153.42 | 50.24 | 63.75 | 50.24 | |
| Plasma Electrolytes | SARIMAX-SN | (0,1,2) | 4.00 | -40.00 | 90.00 | 18.00 | 22.00 | 18.00 | |
| Rheumatoid Factor | SARIMAX-SN | (0,1,2) | 5.00 | -50.00 | 100.00 | 25.00 | 30.00 | 25.00 | |
| Phenytoin | SARIMAX-SN | (1,1,2) | 2.00 | -5.00 | 12.00 | 2.50 | 3.10 | 2.50 | |
| Phenobarbital | SARIMAX-ZISN | (0,1,2) | 2.87 | -1.37 | 1.78 | 0.30 | 1.00 | 1.44 | 1.00 |
| Alkaline Phosphatase | SARIMAX-SN | (0,1,2) | 5.15 | -325.43 | 466.84 | 277.70 | 303.00 | 277.70 | |
| Phosphorus | SARIMAX-SN | (0,1,2) | 2.45 | -48.39 | 67.56 | 72.84 | 84.27 | 72.84 | |
| GGT | SARIMAX-SN | (0,1,2) | 4.79 | -283.45 | 411.70 | 190.46 | 202.71 | 190.46 | |
| Glucose | SARIMAX-SN | (0,1,2) | 4.06 | -575.32 | 828.00 | 407.48 | 488.97 | 407.48 | |
| Lipase | SARIMAX-SN | (0,1,2) | 1.23 | -52.18 | 85.03 | 19.28 | 22.84 | 19.28 | |
| Lithium | SARIMAX-SN | (0,1,2) | -0.40 | 1.09 | 3.69 | 9.84 | 11.13 | 9.84 | |
| Microalbuminuria | SARIMAX-SN | (0,1,2) | 3.32 | -154.08 | 222.23 | 113.75 | 145.06 | 113.75 | |
| Urea Nitrogen (BUN) | SARIMAX-SN | (0,1,2) | 10.00 | -621.03 | 850.32 | 243.40 | 271.03 | 243.40 | |
| C-Reactive Protein (CRP) | SARIMAX-SN | (1,1,2) | 4.25 | -258.75 | 381.87 | 103.15 | 119.44 | 103.15 | |
| Total Proteins | SARIMAX-SN | (0,1,2) | 2.42 | -130.11 | 184.17 | 135.16 | 143.88 | 135.16 | |
| CSF Proteins | SARIMAX-SN | (0,1,2) | 6.64 | -49.17 | 65.61 | 33.71 | 55.41 | 33.71 | |
| AST (GOT) | SARIMAX-SN | (0,1,2) | 4.66 | -344.80 | 498.68 | 308.68 | 340.83 | 308.68 | |
| ALT (GPT) | SARIMAX-SN | (0,1,2) | 4.61 | -343.91 | 497.96 | 307.64 | 338.90 | 307.64 | |
| Triglycerides | SARIMAX-SN | (0,1,2) | 5.40 | -361.29 | 504.92 | 249.18 | 280.60 | 249.18 |
| Model | MAE | RMSE | Skew-Sensitivity () |
| SARIMA (Gaussian residuals) | 126.3 | 151.7 | – |
| MLP (non-linear benchmark) | 120.6 | 144.2 | – |
| SARIMAX–SN/ZISN (ours) | 136.25 | 156.31 | 32 / 34 |
| Demand Level | MAE | RMSE |
| Low Demand | 5.64 | 6.36 |
| Medium Demand | 61.08 | 74.74 |
| High Demand | 271.36 | 307.03 |
| Horizon | MAE | RMSE |
| 1 | 95.12 | 134.34 |
| 2 | 224.37 | 324.25 |
| 3 | 81.88 | 121.58 |
| 4 | 128.98 | 190.36 |
| 5 | 189.10 | 268.17 |
| 6 | 98.06 | 149.37 |
| Demand Level | MAPE (%) |
| Low Demand | — |
| Medium Demand | 10.99 |
| High Demand | 9.34 |
| Item | LB_pvalue_lag10 | Pass (p > 0.05) |
| Lactic Acid | 0.43 | Yes |
| Urea | 0.36 | Yes |
| Valproic Acid | 0.21 | Yes |
| Albumin | 0.55 | Yes |
| Amylase | 0.27 | Yes |
| Ammonia | 0.63 | Yes |
| Direct Bilirubin | 0.15 | No |
| Total Bilirubin | 0.11 | No |
| Calcium | 0.51 | Yes |
| Carbamazepine | 0.09 | No |
| Total CK | 0.60 | Yes |
| CK-MB | 0.24 | Yes |
| HDL Cholesterol | 0.39 | Yes |
| Total Cholesterol | 0.34 | Yes |
| Creatinine | 0.41 | Yes |
| LDH | 0.45 | Yes |
| Plasma Electrolytes | 0.28 | Yes |
| Rheumatoid Factor | 0.18 | No |
| Phenytoin | 0.58 | Yes |
| Phenobarbital | 0.52 | Yes |
| Alkaline Phosphatase | 0.46 | Yes |
| Phosphorus | 0.49 | Yes |
| GGT | 0.62 | Yes |
| Glucose | 0.33 | Yes |
| Lipase | 0.29 | Yes |
| Lithium | 0.61 | Yes |
| Microalbuminuria | 0.47 | Yes |
| Urea Nitrogen (BUN) | 0.37 | Yes |
| C-Reactive Protein (CRP) | 0.22 | Yes |
| Total Proteins | 0.53 | Yes |
| CSF Proteins | 0.57 | Yes |
| AST (GOT) | 0.31 | Yes |
| ALT (GPT) | 0.41 | Yes |
| Triglycerides | 0.32 | Yes |
| Item | Model | Order | Forecast_Mean | Pack_Size | Unit_Cost | Order_Cost | Holding_Cost | Shortage_Cost |
| Lactic Acid | SARIMAX-SN | (2,1,2) | 175.36 | 220 | 671.9 | 179521 | 33 | 9001 |
| Urea | SARIMAX-SN | (0,1,2) | 786.67 | 880 | 318.8 | 179521 | 33 | 9001 |
| Valproic Acid | SARIMAX-SN | (1,1,2) | 14.42 | 200 | 1744.0 | 179521 | 33 | 9001 |
| Albumin | SARIMAX-SN | (1,1,2) | 403.00 | 4560 | 91.6 | 179521 | 33 | 9001 |
| Amylase | SARIMAX-SN | (0,1,2) | 323.81 | 220 | 1047.8 | 179521 | 33 | 9001 |
| Ammonia | SARIMAX-SN | (0,1,2) | 42.19 | 100 | 2030.1 | 179521 | 33 | 9001 |
| Direct Bilirubin | SARIMAX-SN | (0,1,2) | 2120.99 | 500 | 586.3 | 179521 | 33 | 9001 |
| Total Bilirubin | SARIMAX-SN | (0,1,2) | 2124.50 | 504 | 91.6 | 179521 | 33 | 9001 |
| Calcium | SARIMAX-SN | (0,1,2) | 598.50 | 5252 | 43.9 | 179521 | 33 | 9001 |
| Carbamazepine | SARIMAX-SN | (1,1,2) | 8.24 | 200 | 1741.8 | 179521 | 33 | 9001 |
| Total CK | SARIMAX-SN | (0,1,2) | 553.97 | 920 | 374.3 | 179521 | 33 | 9001 |
| CK-MB | SARIMAX-SN | (2,1,2) | 479.98 | 400 | 860.9 | 179521 | 33 | 9001 |
| HDL Cholesterol | SARIMAX-SN | (1,1,2) | 3861.72 | 1000 | 558.5 | 179521 | 33 | 9001 |
| Total Cholesterol | SARIMAX-SN | (0,1,2) | 2307.05 | 7320 | 76.3 | 179521 | 33 | 9001 |
| Creatinine | SARIMAX-SN | (0,1,2) | 5016.41 | 7840 | 21.2 | 179521 | 33 | 9001 |
| LDH | SARIMAX-SN | (2,1,2) | 441.44 | 420 | 860.9 | 179521 | 33 | 9001 |
| Plasma Electrolytes | SARIMAX-SN | (0,1,2) | 29.66 | 40000 | 40.2 | 179521 | 33 | 9001 |
| Rheumatoid Factor | SARIMAX-SN | (0,1,2) | 28.27 | 1000 | 373 | 179521 | 33 | 9001 |
| Phenytoin | SARIMAX-SN | (1,1,2) | 3.57 | 200 | 1741.8 | 179521 | 33 | 9001 |
| Phenobarbital | SARIMAX-ZISN | (0,1,2) | 1.14 | 200 | 1744.0 | 179521 | 33 | 9001 |
| Alkaline Phosphatase | SARIMAX-SN | (0,1,2) | 2165.27 | 560 | 236.0 | 179521 | 33 | 9001 |
| Phosphorus | SARIMAX-SN | (0,1,2) | 295.60 | 6280 | 33.9 | 179521 | 33 | 9001 |
| GGT | SARIMAX-SN | (0,1,2) | 1944.46 | 540 | 232.2 | 179521 | 33 | 9001 |
| Glucose | SARIMAX-SN | (0,1,2) | 4164.82 | 9240 | 21.3 | 179521 | 33 | 9001 |
| Lipase | SARIMAX-SN | (0,1,2) | 302.97 | 780 | 1203.0 | 179521 | 33 | 9001 |
| Lithium | SARIMAX-SN | (0,1,2) | 11.16 | 226 | 8996.2 | 179521 | 33 | 9001 |
| Microalbuminuria | SARIMAX-SN | (0,1,2) | 697.55 | 960 | 351.6 | 179521 | 33 | 9001 |
| Urea Nitrogen (BUN) | SARIMAX-SN | (0,1,2) | 3797.80 | 5600 | 26.5 | 179521 | 33 | 9001 |
| C-Reactive Protein (CRP) | SARIMAX-SN | (1,1,2) | 2145.42 | 200 | 703.0 | 179521 | 33 | 9001 |
| Total Proteins | SARIMAX-SN | (0,1,2) | 832.00 | 5760 | 49.4 | 179521 | 33 | 9001 |
| CSF Proteins | SARIMAX-SN | (0,1,2) | 251.83 | 450 | 750.2 | 179521 | 33 | 9001 |
| AST (GOT) | SARIMAX-SN | (0,1,2) | 2260.78 | 600 | 102.0 | 179521 | 33 | 9001 |
| ALT (GPT) | SARIMAX-SN | (0,1,2) | 2261.36 | 600 | 102.0 | 179521 | 33 | 9001 |
| Triglycerides | SARIMAX-SN | (0,1,2) | 2161.62 | 5640 | 28.8 | 179521 | 33 | 9001 |
| Item | |||
| Lactic Acid | 6 | 1320 | 1.1042e+06 |
| Urea | 12 | 10560 | 3.8686e+06 |
| Valproic Acid | 0 | 0 | 1.2977e+05 |
| Albumin | 4 | 18240 | 2.4389e+06 |
| Amylase | 19 | 4180 | 4.6866e+06 |
| Ammonia | 6 | 600 | 3.3714e+05 |
| Direct Bilirubin | 1 | 500 | 5.9327e+05 |
| Total Bilirubin | 4 | 2016 | 2.5705e+06 |
| Calcium | 6 | 31512 | 5.9841e+06 |
| Carbamazepine | 0 | 0 | 2.0806e+05 |
| Total CK | 5 | 4600 | 1.6286e+06 |
| CK-MB | 2 | 800 | 5.0467e+05 |
| HDL Cholesterol | 6 | 6000 | 3.5444e+06 |
| Total Cholesterol | 7 | 51240 | 8.5303e+06 |
| Creatinine | 8 | 62720 | 8.6936e+06 |
| LDH | 7 | 2940 | 1.4554e+06 |
| Plasma Electrolytes | 5 | 200000 | 1.5993e+07 |
| Rheumatoid Factor | 0 | 0 | 2.1741e+05 |
| Phenytoin | 0 | 0 | 1.3720e+05 |
| Phenobarbital | 1 | 200 | 1.0345e+05 |
| Alkaline Phosphatase | 7 | 3920 | 1.9445e+06 |
| Phosphorus | 5 | 31400 | 7.4649e+06 |
| GGT | 5 | 2700 | 1.2014e+06 |
| Glucose | 8 | 73920 | 1.9952e+07 |
| Lipase | 2 | 1560 | 2.3944e+06 |
| Lithium | 6 | 1356 | 1.6285e+07 |
| Microalbuminuria | 7 | 6720 | 5.5914e+06 |
| Urea Nitrogen (BUN) | 8 | 44800 | 1.1041e+07 |
| C-Reactive Protein (CRP) | 3 | 600 | 7.6610e+05 |
| Total Proteins | 5 | 28800 | 5.0090e+06 |
| CSF Proteins | 6 | 2700 | 2.4423e+06 |
| AST (GOT) | 7 | 4200 | 3.1010e+06 |
| ALT (GPT) | 7 | 4200 | 3.1197e+06 |
| Triglycerides | 6 | 33840 | 7.6132e+06 |
| Policy | Average Monthly Cost (CLP million) |
| Empirical hospital policy | 179.5 |
| SARIMA baseline (Gaussian residuals) + PSO | 32.1 |
| Hybrid SARIMAX–SN/ZISN + PSO (proposed) | 19.6 |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).


