# AI Demand Forecasting for Retail and Ecommerce | QQuantum.ai

> AI demand forecasting for retailers that models the real cost of stockouts and overstock, handles promotions, and is judged on service level and markdown.

Source: https://qquantum.ai/solutions/ecommerce/demand-forecasting

[Home](https://qquantum.ai) [solutions](https://qquantum.ai/solutions) [ecommerce](https://qquantum.ai/solutions/ecommerce) demand-forecasting

E-commerce

# Demand forecasting. Asymmetric by nature.

AI demand forecasting for retail and ecommerce should know that a stockout on a hero line and an overstock on a slow one are different mistakes. We forecast a quantile per category from your actual cost ratio, model promotions and price instead of smoothing them out, handle new products, and judge the result on service level, markdown and stock tied up, with planners free to override.

All E-Commerce & Retail →

Introduction transcript. Qubi: Running out of a bestseller and overstocking a slow line are different mistakes. We weigh what each one costs with your finance team, and aim the forecast there. Statistical models do the forecasting; language models read the notes and reviews behind it. Planners see the reasons, can overrule any number, and each override is recorded.

## The mistake that costs the most

A forecast trained to minimise mean absolute error treats a unit of over-forecast and a unit of under-forecast as equally bad. In a real retail business they almost never are. Understocking a high-margin, high-demand line costs the margin and sometimes the customer. Overstocking a perishable or seasonal line costs the markdown and the working capital. The ratio between those differs by category, by season and by product lifecycle stage.

Building that asymmetry into the objective — forecasting a quantile rather than a mean, with the quantile chosen per category from the actual cost ratio — in our experience typically produces a larger commercial improvement than any change of model architecture. It is also the step most often skipped, because it requires a conversation with finance and merchandising rather than with data science.

The second most valuable step is equally unglamorous: modelling promotions and price properly. A forecast that treats a promotional week as an outlier to be smoothed is discarding the signal that matters most for planning.

## Where language models actually fit

01

### Not the forecast itself

Time-series demand forecasting is well served by statistical and gradient-boosting methods that are faster, cheaper, more accurate and interpretable. Using a language model for the numeric forecast is a fashionable and expensive mistake.

02

### Feature extraction from unstructured data

Product attributes, supplier notes, competitor listings and review text turned into features the forecaster can use. This is where a language model contributes real signal to a classical model.

03

### New-product cold start

Forecasting a product with no history by finding genuinely comparable products through semantic similarity of description and attributes, rather than by category-average heuristics that ignore what the item is.

04

### Explaining the forecast

Translating a model output and its drivers into a narrative a planner can challenge. Planner trust is what decides whether a forecast is used or overridden, and an unexplained number gets overridden.

## What we measure

Not forecast accuracy in isolation. Accuracy is an input; the outputs that matter are service level, markdown, stockout rate and working capital tied up in inventory. A forecast that is marginally less accurate but biased in the commercially cheaper direction is a better forecast for the business, and reporting only error metrics conceals that.

We also measure the override rate — how often planners overrule the system, and whether they were right when they did. Persistent, correct overrides in one category are the clearest possible signal of a missing feature, and they usually point at something the planners know and the data does not record.

## Modelling the cost, not the error

FORECAST PATH

1. 01 History sales · price · promotion
2. 02 Features attributes from unstructured data
3. 03 Quantile forecast chosen from the cost ratio
4. 04 Plan inventory and replenishment
5. 05 Planner review override recorded with reason
6. 06 · Branch / escalation Correct overrides the missing-feature signal

Solid: the forecast pathDashed: the override loop, which is where missing features surface

The quantile is a commercial decision taken with finance and merchandising, not a hyperparameter left at its default.

Questions

## Questions about Demand Forecasting.

### Should we use a foundation model for time series?

They are a real and improving research area and worth benchmarking, particularly for cold-start. As a wholesale replacement for a well-tuned classical forecaster on a business with history, we have not yet seen the case made on real retail data — so we would benchmark rather than assume, in either direction.

### How much history do we need?

Enough to see the seasonality you care about, which usually means at least two cycles. Less than that and you are relying on cross-product signal, which is exactly where the semantic similarity work earns its place.

### Can it handle a supply shock?

It can detect that the regime has changed and flag it. It cannot forecast an unprecedented event, and a system presented as able to is misleading. What good design gives you is fast detection and a clear handover to human judgement, not prescience.

Keep reading

- [Industry AI for E-Commerce](https://qquantum.ai/solutions/ecommerce)
- [Service Predictive Analytics](https://qquantum.ai/algorithmic-marketing/predictive-analytics)
- [Industry Supply Chain Planning](https://qquantum.ai/solutions/manufacturing/supply-chain-planning)
