All projects
Project 02 Machine Learning

DemandCast AI

Retail demand forecasting system.

An AI-powered forecasting system that predicts future product demand from historical retail sales data, helping businesses plan inventory, stock and supply.

DomainPredictive analytics · Time series
Best modelXGBoost Regressor
Accuracy9.71% WAPE
InterfaceStreamlit dashboard
02 / 06Machine Learning
01 Overview

What it does

DemandCast AI predicts future product demand using historical retail sales data.

The system analyses past demand patterns and trains multiple machine learning models to forecast upcoming demand, helping businesses make better decisions around inventory, stock planning and supply management.

02 How it works

From raw input to result

01
Historical retail sales data

Past demand records form the training foundation.

02
Data cleaning & preprocessing

Missing values, outliers and formats are handled.

03
Feature engineering

Signals that explain demand are designed from raw data.

04
Time-series features

Lags, rolling statistics and calendar patterns capture seasonality.

05
ML models

XGBoost, Random Forest and a Seasonal Naive baseline are trained and compared.

06
Demand prediction

The best model forecasts upcoming demand.

07
Forecast visualisation & evaluation

Predictions are plotted and measured with MAE, RMSE and WAPE.

03 Models

Three models, compared honestly

Best performing

XGBoost Regressor

Gradient-boosted trees that captured demand patterns most accurately.

Comparison

Random Forest Regressor

An ensemble of decision trees used as a strong comparison model.

Baseline

Seasonal Naive

Repeats the last seasonal pattern — the benchmark every model must beat.

04 Results

Measured, not just claimed

The XGBoost model achieved the following performance — measurable results rather than simply saying “AI predicts demand.”

0
MAE

Mean absolute error

0
RMSE

Root mean squared error

0%
WAPE

Weighted absolute percentage error

05 Real-world use

How much of this product are we likely to need in the coming days?

DemandCast helps retailers answer exactly that, supporting:

  • Inventory planning
  • Stock replenishment
  • Supply-chain planning
  • Reducing overstock
  • Reducing stockouts
06 Technology

Technology stack

PythonPandasNumPyScikit-learnXGBoostMatplotlibJupyter NotebookStreamlit
07 In short

DemandCast AI — Retail demand forecasting system

A machine-learning demand forecasting system built on historical retail sales data. Time-series features were engineered and XGBoost, Random Forest and Seasonal Naive models compared, with XGBoost achieving a WAPE of 9.71% — built to support inventory planning and demand-driven stock management.

Next step

Let’s build something intelligent together.