Case Studies/Retail & Consumer Goods
Retail & Consumer Goods·National Retail Group, 340 Stores

ML Demand Forecasting Eliminating $4M in Annual Stockouts

3.2×
Accuracy Improvement
$4M
Stockout Cost Eliminated
94%
Forecast Accuracy
340
Stores Covered

A national retail group with 340 stores was losing $4M annually to stockouts driven by spreadsheet-based demand planning that couldn't incorporate weather, trends, or competitor signals. We deployed ML forecasting models trained on 5 years of sales data plus external signals — improving forecast accuracy from 61% to 94% and connecting predictions directly to ERP replenishment workflows.

Client Background

The retailer operates 340 stores across 8 regions, with a product catalogue of 15,000 SKUs across apparel, homewares, and electronics. Demand planning had been handled by a central team of 6 planners using Excel-based models. The models performed reasonably well for steady-state products but consistently failed on seasonal items, new launches, and products sensitive to external factors like weather.

The Challenge

Stockouts were concentrated in three categories: seasonal products (where demand spikes were consistently underestimated), new product launches (where no historical data existed), and regionally variable products (where national averages masked local demand patterns). The planning team knew the models were insufficient but lacked the tools to improve them.

61% forecast accuracy on seasonal products — below the industry benchmark of 75%

$4M annual revenue loss from stockouts, concentrated in 12% of SKUs

Planning team spending 70% of time managing exceptions rather than improving forecasts

No incorporation of external signals: weather, social trends, competitor pricing

Replenishment orders generated manually from spreadsheets — no automation

Our Approach

We built a multi-model forecasting system: a base ARIMA model for stable SKUs, a gradient boosting model incorporating external signals for volatile SKUs, and a cold-start model using category analogues for new product launches. All three models feed a unified ensemble layer that selects the best forecast per SKU. Predictions are published directly to the client's SAP ERP via API, triggering automated replenishment orders.

01

5-year historical sales data audit and cleaning — identified and corrected systematic data quality issues in 3 regional data warehouses

02

External signal integration: weather API, Google Trends, competitor pricing scraper, regional event calendar

03

Three-model architecture: ARIMA (stable), gradient boosting (volatile + external signals), cold-start analogue model (new SKUs)

04

Ensemble layer that weights model outputs based on SKU category, velocity, and recency

05

SAP ERP integration — automated replenishment order generation from forecast outputs

06

Planner dashboard showing forecast vs actuals, model confidence, and override interface for exceptional items

Implementation Timeline
5 weeks
Data Audit & Integration
5-year data quality auditRegional warehouse consolidationExternal signal sourcingERP integration assessment
8 weeks
Model Development
Base model developmentExternal signal modelCold-start modelEnsemble architecture
4 weeks
Validation
Backtesting against historical actualsRegional accuracy analysisPlanner review and calibrationERP integration testing
3 weeks
Deployment & Optimisation
Phased store rolloutPlanner trainingAutomated replenishment activationPerformance monitoring
Results & Impact

Twelve months post-deployment, forecast accuracy improved from 61% to 94% on the SKUs covered by the system. Stockout-related revenue loss fell by $4M. The planning team's exception management time fell from 70% to 25% of capacity, allowing them to focus on strategic range planning.

Forecast accuracy: 61% → 94% across 15,000 SKUs

$4M annual stockout revenue loss eliminated

Planner exception time: 70% → 25% of capacity

New product launch accuracy improved 2.8× through cold-start analogue modelling

Automated replenishment covering 87% of SKUs — manual intervention only for strategic items

Our supply chain is now genuinely predictive. We stopped chasing stockouts and started preventing them. The ROI was clear within the first quarter.

RT

Rebecca Thorn

VP Supply Chain, National Retail Group

Key Learnings

External signals provided the largest accuracy lift for seasonal products — but only after the base historical data quality issues were resolved

A cold-start model for new products (using category analogues) was more valuable than the team expected — new launch stockouts had been the most painful and visible problem

Giving planners an override interface with clear rationale for each forecast significantly accelerated adoption

Key Results

Accuracy Improvement3.2×
Stockout Cost Eliminated$4M
Forecast Accuracy94%
Stores Covered340

Services Engaged

Predictive Analytics
AI Product Development
Data Infrastructure
AI Automation

Technology Stack

Prophetscikit-learnLightGBMSnowflakeApache AirflowSAP ERP

Facing a Similar Challenge?

Let's discuss your specific context and what results are realistic for your organisation.

Get in touch