Skip to content

Week 7 | Session 1: AI-ML for Demand Forecasting & Demand Planning

Course: Supply Chain Digitization — Module 3: Analytics in SCM



Why Demand Planning Matters — The Cost of Forecast Errors

Section titled “Why Demand Planning Matters — The Cost of Forecast Errors”

Demand planner’s goal: Forecasted demand ≈ Actual demand. Any deviation in either direction creates cost.

ScenarioWhat HappensImmediate ImpactLong-term Impact
Actual > Forecast (Under-forecasting)Demand exceeds available stock. Cannot fulfil all orders.Lost sales. Customers go to competitors.Customer churn. Revenue loss. Market share erosion.
Actual < Forecast (Over-forecasting)More stock produced/ordered than demand. Excess inventory accumulates.Inventory holding cost. Spoilage if perishable.Tied-up capital. Warehouse cost. Markdowns to clear stock.
Actual = Forecast (Accurate forecast)Production and procurement aligned with real demand.No stockouts. No excess inventory.Efficient SC. Happy customers. Optimal working capital.
  • Perishable products: Over-forecasting is especially costly — spoilage adds physical loss on top of holding cost
  • Lost sales: Harder to quantify than excess inventory — but more damaging long-term through customer churn

Why AI-ML is Needed — 4 Vs of Big Data in Demand Context

Section titled “Why AI-ML is Needed — 4 Vs of Big Data in Demand Context”

Traditional forecasting tools: Moving average, exponential smoothing, ARIMA — good for stable trends and seasonality. Problem: In today’s environment, demand data has all 4 problematic Vs simultaneously → traditional tools fail to handle this complexity.

VBig Data CharacteristicHow It Appears in Demand DataWhy Traditional Forecasting Fails
V1 VolumeHuge dataOrders placed 24/7 via omni-channel → millions of data points continuously generatedNot built to process and learn from millions of continuous data points in real-time
V2 VarietyMultiple data typesCustomer review as textImage
V3 VelocityReal-time dataOrders, cancellations, cart additions happening 24/7 in real timeBatch-based traditional forecasting too slow to respond to real-time shifts
V4 VariabilityUnstable patternsCustomer preferences shift unpredictably due to trends, promotions, policiesCapture seasonality/trend but cannot model social-media-driven swings

AI-ML Models for Demand Forecasting — Overview

Section titled “AI-ML Models for Demand Forecasting — Overview”

Key AI-ML models used for demand forecasting

Section titled “Key AI-ML models used for demand forecasting”
ModelOutput TypeKey Assumption / FeatureDemand Forecasting Use Case
Linear RegressionContinuousRelationship between dependent and independent variable is LINEARPredict units sold based on: historical sales + pricing + promotions. Simple baseline.
Logistic RegressionCategorical (probability)Dependent variable is binary or categorical — probability of an eventPredict probability of successful adoption of a new product launch or promotion response.
Decision TreeCategorical or ContinuousRule-based splits. Handles non-linear relationships.Identify KEY DRIVERS of demand variation (price, season). Generates interpretable business rules.
Random ForestCategorical or ContinuousEnsemble of multiple decision trees. Reduces overfitting.More robust demand forecasting when single tree overfits. Handles noisy data better.
Boosting Algorithms (XGBoost, LightGBM)Categorical or ContinuousSequential ensemble: each model corrects errors of the previous one.Dynamic forecasting — adapts to changing conditions (competitor pricing, economy). Widely used in industry.
Neural Networks (LSTM, CNN)Continuous or CategoricalCaptures highly complex, non-linear patterns. Handles structured AND unstructured data.Best for unstructured data (text reviews, image feedback) and complex time-series (LSTM).
  1. Linear Regression: Simple, but underperforms when demand has sharp, non-proportional responses to changes.
  2. Logistic Regression: Links marketing spend to expected demand uplift.
  3. Decision Tree: Identifies WHICH factors drive demand variation most. Limitation: May overfit to training data.
  4. Random Forest: Averages multiple trees → more stable, less sensitive to noise. Trade-off: Less interpretable.
  5. Boosting Algorithms: Most widely used in competitive ML and industry demand planning teams today — fast, accurate, scalable.
  6. Neural Networks: LSTM is widely used for demand time-series to capture long-term dependencies. Trade-off: Hardest to interpret.

External Factors — What Must Be Monitored Continuously

Section titled “External Factors — What Must Be Monitored Continuously”

Demand planner’s challenge: Internal data alone is not enough. External factors constantly shift demand patterns and must be incorporated into the model.

External FactorHow It Affects DemandHow AI-ML Incorporates It
Competitor promotionsCustomer shifts to competitor → your demand dropsBoosting models ingest promotion data as a feature and adjust forecast
Competitor pricingLower price → demand shifts. Loyal customers switch.Price elasticity modelled. Model predicts demand reduction and adjusts plan.
Overall economy / GDPEconomy growing → demand rises. Contracting → spending limited.Macroeconomic indicators included as features in boosting/regression models
Government policy changesRegulations, taxes, or subsidies suddenly shift demandTreated as dummy variables or structural breaks in time-series models
Social media trendsViral product → demand spike. Negative coverage → drop.NLP on social media posts feeds into neural network models to detect sentiment early

How to Select the Right Model — Framework

Section titled “How to Select the Right Model — Framework”
  1. Define the output type: Is demand a number (continuous)? → Regression models. Is it a category? → Classification models.
  2. Assess data type available: Structured numerical data only → Linear regression, Decision tree, Random forest, Boosting | Unstructured (text, image, audio) → Neural networks
  3. Check demand pattern: Stable trend + seasonality → Traditional tools may suffice | High variability, non-linear → AI-ML needed
  4. Consider interpretability need: Need to explain to management? → Decision tree (most interpretable) | Accuracy over interpretability? → Random forest, XGBoost, LSTM
  5. Benchmark models: Run multiple models → compare error metrics (MAE, RMSE, MAPE) → select model with lowest error on test data
  6. Monitor and retrain: Demand patterns evolve. Re-train model periodically or set up continuous learning pipeline to stay current.

  • Why demand planning: Forecast ≠ Actual → either lost sales (under) or inventory cost (over). Accurate forecast = revenue protection + cost control.
  • Why AI-ML needed: 4 Vs of demand data (Volume, Variety, Velocity, Variability) exceed what traditional forecasting tools can handle.
  • 6 AI-ML models: Linear regression | Logistic regression | Decision tree | Random forest | Boosting (XGBoost, LightGBM) | Neural networks (RNN, LSTM, CNN)
  • External factors to monitor: Competitor promotions + pricing | GDP / economy | Government policy | Social media trends
  • Model selection: Match model to output type, data type, pattern complexity, interpretability need, and error benchmark.
  • Next session: Case study — apply an AI-ML model to a demand forecasting problem. Introduce error metrics (MAE, RMSE, MAPE).