Skip to content
Open access

Explainable Machine Learning and Necessary Condition Analysis for Product Sales Forecasting in Retail

Aug 2026 · Engineering Science & Technology · 0 citations

Abstract

Sales forecasting in retail and e-commerce-related environments supports key decisions concerning inventory management, promotion planning, pricing policy, and sales strategy optimization. The aim of this article is to develop a predictive framework for product sales forecasting using machine learning regression algorithms, Explainable Artificial Intelligence (AI) methods, and Necessary Condition Analysis (NCA). The study employed the Walmart M5 retail sales forecasting dataset, including daily product-level sales observations with calendar, product hierarchy, event-related, price-related, and historical demand features. The benchmark included a naive weekly model, Ridge regression, Random Forest, Extra Trees, eXtreme Gradient Boosting (XGBoost), and Light Gradient Boosting Machine (LightGBM). Predictive performance was evaluated using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), R2, Weighted Mean Absolute Percentage Error (WMAPE), and Root Mean Squared Scaled Error (RMSSE) under rolling-origin validation and on a final 28-day test period. The best-performing model was interpreted using Permutation Feature Importance and SHapley Additive exPlanations (SHAP), while NCA was applied to identify threshold-like bottlenecks associated with high sales outcomes. The results show that Extra Trees achieved the best test performance, with RMSE = 1.6183, MAE = 0.9109, R2 = 0.5852, WMAPE = 0.7708, and RMSSE = 0.7226. Permutation Feature Importance (PFI) and SHAP indicated that the most important predictors were rolling sales averages, product identity, weekend effects, SNAP-related information, and demand volatility. NCA further showed that selected rolling demand averages and volatility measures constituted necessary conditions for achieving high sales levels. The proposed Machine Learning (ML)-eXplainable Artificial Intelligence (XAI)-NCA framework therefore supports not only sales prediction but also the identification of interpretable demand thresholds relevant to retail decision-making.

Read PDF

Similar papers

Open access Oct 2026

Machine Learning Based Predictive Market for Sales Forecasting

Sales forecasting remains a cornerstone of effective retail management, guiding supply chain optimization, inventory planning, and revenue strategies. Traditional forecasting models often fall short in capturing the complexity of consumer behavior, seasonal fluctuations, and branch-level variations, resulting in ineffi...

Mercy Doowuese Anza · 0 citations
Conference Open access Sep 2026

Comparative Analysis of Machine Learning and Statistical Models for E-Commerce Sales Forecasting

Accurate sales forecasting in e-commerce market-places is critical for optimizing inventory management and strategic marketing decisions across diverse product categories. This study presents a quantitative comparative evaluation of six fore-casting models applied to weekly sales demand. Statistical models including Na...

Abdullah Mumtaz Fayyadh, Muhammad Ibnu Choldun Rachmatullah · 0 citations
Open access Oct 2026

Machine Learning-Based Price Prediction for Intelligent Retail Management

Retail price prediction is an important component of intelligent retail analytics, supporting effective pricing strategies, revenue optimization, inventory planning, and data-driven decision-making. Because of the complexity and nonlinearity of large-scale retail data, traditional statistical methods may be limited. Th...

Prashant Kumar Shrivastava · 0 citations
Open access Oct 2026

Optimized Artificial Intelligence Framework for Retail Sales Prediction and Decision Support

The retail industry operates in a highly dynamic and competitive environment characterized by fluctuating consumer behavior, seasonal demand variations, and market uncertainties. Accurate sales forecasting is essential for effective inventory management, demand planning, pricing strategies, and overall business decisio...

Tarika Verma, Brij, Mohan Goel · 0 citations
Conference Open access Oct 2026

Retail Sense: A Random Forest-based AI Framework for Retail Intelligence

Small and medium-sized retail boutiques often face challenges in inventory management, sales forecasting, and personalized product recommendation due to the absence of intelligent decision-support systems. This paper presents Retail Sense, a machine learning-enabled retail intelligence framework that integrates product...

B. Prabha, Suresh, D. Sasikumar et al. · 0 citations
Open access Oct 2026

AI-Driven Smart Retail Shop Management and Sales Forecasting System

Reliable sales forecast is essential for effective retail planning and inventory control. This study evaluates and compare machine learning models for retail sales prediction. Using [dataset name and source], the study applies [models you actually implement] to determine a suitable forecasting method. The data are prep...

P. S., D. M., Ananya G. et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.