The short answer
Yes, but AI does not guess the future. It learns the patterns in your sales history (seasonality, day of the week, promotions, holidays) and turns them into an estimate of how much you will sell, with a range of uncertainty. With that estimate, the system works out when and how much to reorder and warns you before you run out. It works well for products with history and regular sales. It works poorly for launches, short-lived fads and anything that depends on an event that has never happened before.
Have you ever had a warehouse full of the product nobody wants and none of the item everybody asks for? That is almost never a lack of AI. It is the lack of a reliable way to read demand.
What can be forecast and what cannot
The book *Forecasting: Principles and Practice*, by Rob Hyndman and George Athanasopoulos, lists four factors that decide whether something is predictable:
- how well we understand what drives it;
- how much data is available;
- how similar the future is to the past;
- whether the forecast itself changes what is being forecast.
The authors contrast the time of tomorrow's sunrise, which can be forecast precisely, with lottery numbers, which cannot be forecast at all. Inventory sits in between. Rice, pet food and office supplies tend to have steady sales and plenty of history. A sneaker that went viral last week does not.
The first step in an honest project is to split the catalog into those two piles, before choosing any model.
Sales are not the same as demand
Sales history lies in two ways. The first is stockouts: if a product was out of stock for ten days, sales on those days were zero, but demand was not. A model that learns from that zero starts forecasting less and buying less, and the shortage repeats.
The second is promotions. Wikipedia recounts a story used at Stanford to teach this: Volvo had a glut of green cars, and marketing ran a campaign to sell them. It worked, but the factory did not know about the campaign. It read the sales increase as new market appetite for green cars and ramped up production.
That is why the forecast needs to know when there was a stockout, a promotion, a price change or a holiday. Without that, the AI learns the noise along with the pattern.
The bullwhip effect
Jay Forrester described the phenomenon in *Industrial Dynamics* in 1961: small swings in consumer sales turn into ever larger swings in orders as you move up the chain, from retailer to distributor and from distributor to factory. It became known as the bullwhip effect. A small flick of the wrist becomes a crack at the end of the whip.
Hau Lee, V. Padmanabhan and Seungjin Whang showed that this does not come only from irrational decisions and identified four main causes: how the demand signal is processed, rationing when product is short, order batching and price variations. MIT has simulated the problem since the 1960s with the beer distribution game, in which each player only sees the order from the next player and inventory swings without anyone doing anything absurd.
The lesson for a store or distributor is simple: the forecast improves when it uses real sales to the end customer, not just the orders that come in.
What the M5 competition showed
The Makridakis competitions compare forecasting methods on real data. M5, in 2020, used around 42,000 daily sales series from Walmart, from the product level up to the total for large regions, with information on prices, promotions and day of the week. It drew close to 6,000 participants.
For the first time in the series, machine learning methods dominated the top of the leaderboard, ahead of the statistical benchmarks. LightGBM and neural networks appeared often among the best, and the top three all used combinations of several separately trained models.
Two details matter to anyone buying stock. M5 had a separate category just to measure the quality of the uncertainty range, not only the central number. And what won was a system built on rich data and a lot of testing, not a magic model. For your business, buying on an exact number is worse than buying with the likely range in view.
How to build it so it does not become another forgotten spreadsheet
A well-built inventory forecasting project usually has five parts:
- Clean data. Sales per item per day, flagging stockouts, promotions, prices and returns. This usually comes from the ERP or sales platform export.
- A simple baseline. Before any AI, measure how wrong a simple rule is, such as repeating sales from the same week last year. The model only goes in if it is less wrong.
- Forecasts with a range. Each item gets an estimate with a margin of error, and safety stock comes from that margin, not from a hunch.
- Reorder alerts with approval. The system suggests the order; a person approves it. New items, items without history and high-value items stay with the buyer.
- Regular review. Compare forecast with actual sales, item by item, and take out of automatic forecasting whatever the model gets badly wrong.
Frequently asked questions
Do I need years of history? It helps, but it is not required. To capture yearly seasonality, a full year makes a big difference. For steady weekly sales, a few months already show the pattern.
Does AI replace the buyer? No. It takes the repetitive math off the table and shows where to look. Supplier negotiation, launches and decisions about slow-moving stock are still human work.
Does it work with a spreadsheet? As a starting point, yes. What matters is that the data leaves the sales system automatically and with the right flags, so the forecast does not depend on someone copying numbers every week.
Where DOUVRAS comes in
DOUVRAS Labs works on automation and integrations: connecting ERP, sales platform, spreadsheets and internal routines in versioned flows, with logs, alerts and a contingency procedure. For inventory forecasting, that becomes an inventory management system with demand forecasting, purchase suggestions and automatic reorder alerts, built on your data and measured against a simple rule before it goes into production.
We do not promise zero inventory or an end to stockouts. Every project starts with a diagnostic conversation that defines the bottleneck, the dependencies, the evidence of completion and what is out of scope.
And in your inventory, which product always runs out in the week customers want it most?
Douglas Henrique, DOUVRAS Labs.
References
Hyndman, R. J.; Athanasopoulos, G. Forecasting: Principles and Practice, 3rd ed. OTexts. Section 1.1, What can be forecast? otexts.com/fpp3
Forrester, J. W. Industrial Dynamics. MIT Press, 1961.
Lee, H. L.; Padmanabhan, V.; Whang, S. Information Distortion in a Supply Chain: The Bullwhip Effect. Management Science, 43(4), 1997; reprinted in 50(12), 2004. doi:10.1287/mnsc.1040.0266.
Wikipedia. Bullwhip effect. en.wikipedia.org
Wikipedia. Makridakis Competitions (M5). en.wikipedia.org
DOUVRAS Labs. Automation and integrations. douvras.com