AI-Driven Demand Forecasting and Inventory Optimization for Retail Supply Chains
Syeda Kounain
Department of Computer Science and Engineering, Ghousia College of Engineering, Ramanagaram, Karnataka, India.
Syeda Qurratul Ain Aliya
Department of Computer Science and Engineering, Ghousia College of Engineering, Ramanagaram, Karnataka, India.
Syeda Rafath Ur Rahman *
Department of Computer Science and Engineering, Ghousia College of Engineering, Ramanagaram, Karnataka, India.
D. Tejaswini
Department of Computer Science and Engineering, Ghousia College of Engineering, Ramanagaram, Karnataka, India.
*Author to whom correspondence should be addressed.
Abstract
Aims: To develop an integrated retail demand forecasting and inventory decision-support application that converts historical sales patterns into future demand estimates and actionable stock indicators.
Study Design: A computational system-development study using historical retail sales data and a time-series forecasting workflow.
Place and Duration of Study: Department of Computer Science and Engineering, Ghousia College of Engineering, Ramanagaram, Karnataka, India; project development during the academic year 2026–2027.
Methodology: The system uses Python, Pandas, Prophet, Plotly, and Streamlit. Sales records are prepared and aggregated into a time series, Prophet is used to generate forecasts, and forecast outputs are linked to inventory indicators including stock sufficiency, safety stock, reorder point, and recommended order quantity. The implementation supports CSV upload, interactive visualisation, and forecast export.
Results: Using the synthetic five-product dataset, Moving Average, Linear Regression and Random Forest were evaluated with a three-month chronological holdout. Linear Regression had the lowest macro-average error (MAE 109.1 units; RMSE 120.7 units), followed by Moving Average (122.7; 133.8) and Random Forest (132.1; 143.4). The application’s Face Moisturizer comparison reported Prophet MAE 636.7 and RMSE 774.1 units, substantially higher than the other models for that series. The application displayed January–March 2025 forecasts of 225, 264, and 278 units for Face Moisturizer. These results are prototype-level and based on synthetic data.
Conclusion: The prototype integrates demand forecasting and inventory decision support in an interactive application. For the displayed Face Moisturizer holdout, Prophet performed poorly relative to the baseline models; therefore, the application’s “recommended” label should not be interpreted as evidence of superior accuracy. Evaluation on real retail data and additional chronological test periods is required.
Keywords: Demand forecasting, inventory management, Prophet, time-series analysis, retail supply chain, decision support