The Forecast Says Demand Is Low. The Shelf Was Empty.
Yesterday's sales tell you what left the shelf. A replenishment decision also needs to know when there was nothing left to buy.
The short answer
Separate recorded sales from estimated demand when products run out. Preserve availability evidence, label any reconstructed demand and test forecasts using information available at the time. Give buyers a recommendation they can question before changing an order.
At a glance
- Keep availability evidence alongside sales before treating a quiet period as low demand.
- Label reconstructed demand as an estimate and preserve the original transaction record.
- Rehearse forecasts without future information and review ordering decisions with the buyer.
The quiet afternoon that wasn't
By lunchtime, the tomatoes are gone. At closing time, the shop's sales report shows a quiet afternoon. The following morning, an AI forecast recommends a smaller order. This is an imagined fresh-grocery shop, not a client result, but the question is concrete: did fewer people want tomatoes, or did fewer people get the chance to buy them? A buyer can recognise the difference while a forecasting system misses it completely. Before replacing the model, ask whether its input describes what customers wanted or simply what the business managed to sell.
Sales have a ceiling
The FreshRetailNet-50K research paper addresses this problem directly: when a product runs out, recorded sales no longer reveal all the demand that might have existed. Researchers call this censored demand. The paper pairs sales with hourly stockout information to study the missing part. Its relevance to an agriculture or fresh-food business is practical. A daily sales total alone cannot explain whether the product was available throughout the day. Our reading is that availability belongs in the forecasting conversation from the beginning. Asking a more sophisticated model to learn from an unexplained empty shelf does not resolve that missing context.[1]
Record the chance to buy
We would start with one product group and one replenishment route. Connect the product, selling location, sales timestamps and units with the best available record of when the item could actually be purchased. Keep receipts, inventory corrections and planned promotions understandable to the buyer. Check a few days against what staff remember and the records they can verify. A warehouse balance is not, by itself, evidence that a customer could find the item on a shelf or order it online. Preserve an unknown availability period as unknown. Quietly converting a missing feed into an out-of-stock flag just replaces one misleading input with another.
Keep the estimate beside the evidence
A July 2026 worked example by forecasting researcher Juan Camilo Orduz separates expected sales into a demand component and an availability component. It then estimates what demand would look like under full availability. That is a useful illustration of the distinction, rather than a universal recipe for every business. We would keep any reconstructed demand beside the original sales, with the method and assumptions visible. It is an estimate of something the business did not fully observe. Do not overwrite the sales ledger with it or let a tidy chart make it look like a measured count of disappointed customers.[2]
Test the decision as it would have happened
Now rehearse yesterday's ordering decision using only what was known when the buyer had to act. Hyndman and Athanasopoulos describe time series cross-validation as a sequence of forecasts whose training observations all precede the test observation. Apply that discipline to the surrounding workflow too: preserve the promotion plan as it stood then, rather than using a later correction, and do not feed tomorrow's realised availability into today's demand forecast. We would also review in-stock and stockout-affected periods separately. Matching a low sales total during a stockout does not, by itself, show that the system estimated underlying demand well.[3]
Give the buyer a useful next step
The screen the buyer sees should explain the proposed quantity, the supporting observations, important gaps and what needs checking. In our imagined shop, the first action might be confirming when the tomatoes ran out, not automatically doubling the order. A purchase decision still has to respect shelf life, delivery timing, supplier capacity and the business's appetite for waste. Trial recommendations with an accountable buyer and measure what actually happens to availability, unsold stock and review effort. A forecast earns its place when it helps someone make a better next decision. Sometimes that starts with an ordinary question: was there anything left on the shelf?
“The future isn't about how many people AI can replace. It's about how many decisions we can make better, how much unnecessary work we can remove, and how much more human potential we can unlock.”
Questions worth asking
Should stockout days simply be replaced with average sales?
Treat that as an assumption to test, not a default correction. Keep the original sales and availability records, label any estimates, and check whether the chosen method is suitable for the product, promotions and ordering decision. Unobserved demand remains uncertain.
Sources and further reading
- Wang et al. — FreshRetailNet-50K, introduction and section 3.1: censored demand and hourly stock information ↗
- Juan Camilo Orduz — Forecasting Retail Demand Under Stockouts, 12 July 2026: sales, availability and full-availability estimates ↗
- Hyndman & Athanasopoulos — Forecasting: Principles and Practice, section 5.10: time series cross-validation ↗
See how to plan a project in Namibia, the United States and Tanzania.
Explore Artificial Intelligence & Intelligent Systems