Forecasting grocery item sales using gradient boosting models: A study of GridSearchCV, RandomizedSearchCV, and optuna optimization approaches
This study introduces predictive modeling based on Extreme Gradient Boosting (XGBoost), which utilizes Optuna for hyperparameter optimization and evaluates performance against GridSearchCV and RandomizedSearchCV using a 500-day dataset. To ensure statistical reliability of the findings, a bootstrapping with 1000 iterations is used to calculate 95% confidence intervals for all performance measures. Although GridSearchCV and RandomizedSearchCV achieve consistent performance, their average R-squared test performances are 0.81677 and 0.85538, respectively. In contrast, Optuna outperforms both methods by identifying better regions of optimal parameters, with an average R-squared of 0.94146. Furthermore, the computational efficiency analysis shows that Optuna’s average execution time of 28.31 s is a practical trade-off for running on consumer-grade hardware. Model interpretability is confirmed through Shapley Additive Explanations (SHAP) analysis, which identified the 3-day rolling average as the most important driving factor of demand.
Authors
- Puja Supakar (ORCID: https://orcid.org/0000-0003-3307-317X)
- Mitali Sarkar
- Biswajit Sarkar
Institutions
- Lovely Professional University (IN)
- National Taipei University of Technology (TW)
- Yonsei University (KR)
- Sejong University (KR)
- Saveetha University (IN)
- Maulana Abul Kalam Azad University of Technology, West Bengal (IN)
Publication Details
- Journal
- Ain Shams Engineering Journal
- Published
- 2026-02-15
- DOI
- https://doi.org/10.1016/j.asej.2026.104012
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00