AI demand forecasting: how machine learning predicts demand from your own orders

AI demand forecasting uses machine learning to predict how much of each item customers will order in each coming week or month, from your own order history and from outside signals such as prices, promotions, weather or building permits. It replaces last year plus a percentage with models that learn from every item at once and report how uncertain each forecast is. This guide explains how demand forecasting works, what machine learning changes, how to measure accuracy, the main tools, the data it needs and how to start with a small test.

Workers in hairnets sort fresh fruit on blue conveyor lines in a bright packing plant

What demand forecasting is

Demand forecasting estimates how much of each product customers will want in each future period. Demand is what customers would have ordered, which is not always what you shipped: an item that was out of stock records its lost sales as zero. Every forecast has a level of detail and a horizon. The level of detail is the item, location and time bucket, such as item by warehouse by week. The horizon is how far ahead it looks, and it must reach at least as far as the time it takes to buy or make the item.

The forecast feeds most operating decisions: what to buy, what to make, how many people to schedule and how much cash the inventory will tie up. AI financial modeling covers carrying it into the financial model. MIT’s Center for Transportation and Logistics teaches three rules of thumb in its supply chain key concepts:

Forecasting textbooks start with simple methods. In Forecasting: Principles and Practice, Rob Hyndman and George Athanasopoulos describe two of them. The naive method sets every forecast to the last observed value, and the seasonal naive method uses the last value from the same season. The authors note that these methods usually “serve as benchmarks rather than the method of choice,” so compare any new method against them. Exponential smoothing and ARIMA models add trend and seasonality. Machine learning models add the other information the data holds.

How demand forecasting is done by hand

In a smaller company, the forecast is usually a spreadsheet, the buyer’s judgment, or both:

The weak points are predictable. One method is applied to every item, whether it sells every day or twice a year. Promotions and one-time orders stay in the history and inflate next year. Months when an item was out of stock count as zero demand. Nobody records how wrong last month’s forecast was, so nobody knows whether it is improving.

What machine learning changes

Machine learning demand forecasting differs from the spreadsheet in five ways.

It learns across items at once

Classic methods fit one model per item. Machine learning models such as gradient-boosted trees can learn one model across thousands of items, so a new or slow item borrows patterns from similar ones. The strongest public evidence comes from the M5 competition, in which teams forecast 42,840 time series of Walmart unit sales. The organizers reported that the top-performing methods were machine learning models, most of them built on LightGBM, a gradient-boosted tree library. Essentially all of the top 50 learned across many series at once. Walmart is a retailer, but the setup matches a distributor’s: many related items, many locations, and prices and calendar events that move demand.

It uses outside signals

A model can also take inputs that are not in the sales history. In M5, prices, promotions and special events were part of the data, and the organizers found that all the winning submissions used this outside information. In ERP software, Microsoft’s Dynamics 365 Demand planning has a Forecast with signals step, a preview feature. It combines historical sales with up to five signal inputs “such as inflation or weather data.” Which signals help depends on the business:

It can start from a pretrained model

Since 2024, Google and Amazon have released forecasting models pretrained on large collections of time series. They can forecast a new series without being trained on it, which is called zero-shot forecasting. Google Research described TimesFM in February 2024 as a 200-million-parameter model trained on 100 billion real-world time points. On August 31, 2026, it released TimesFM-3, which forecasts several related series together and accepts outside signals. Amazon released Chronos-2 in October 2025, with support for known future inputs such as scheduled promotions and weather forecasts. Both are published as open models, so they can run on servers you control. They make a fast baseline, and they need the same backtest as any other method.

It forecasts a range

A single number hides the risk. A probabilistic forecast gives a range, for example a 90% chance that next week’s demand falls between 40 and 75 units. TimesFM-3 predicts nine quantiles, points spread across that range. The range is what sets safety stock, and inventory optimization covers how.

It reads what customers write

Some demand signals arrive as text: a customer email about a new contract, a sales rep’s note that a plant is closing a line, a large quote that is likely to convert. A language model can read them and propose a change to the forecast, with the source attached, for a planner to accept or reject. The textbook advice on judgmental adjustments applies. Adjust when there is “significant additional information at hand,” and require people to document and justify each change, which “will guard against unnecessary adjustments.”

Four businesses, four forecasts

The method is the same in every industry. The level of detail, the signals and the decisions the forecast drives are what change.

BusinessWhat it forecastsSignals that helpWhat the forecast drives
Equipment manufacturerFinished products and service parts by monthOpen quotes, customer projects, dealer stockThe production plan and, through the bills of materials, purchases of parts
Industrial distributorEach item by branch by weekCustomer order cycles, contract volumes, price changesPurchase orders and transfers between branches
Food producerEach pack size by customer by weekHolidays, weather, retailer promotionsProduction runs, raw material buying and staffing
Building-supply chainEach item by store by weekBuilding permits, season, weatherStore replenishment and seasonal buying

Measuring forecast accuracy

The only fair test of a forecast is on data it has not seen. Hold out the last six or twelve months, forecast them from the data before, and compare. Hyndman and Athanasopoulos describe a repeated version called time series cross-validation. Each test uses only earlier observations, so “no future observations can be used in constructing the forecast.”

Three error measures cover most needs:

Track bias as well. A forecast that runs 10% high on average fills the warehouse even when its error looks small. Compare every model with the seasonal naive benchmark and with your current method, one item group at a time, because a model can win on fast movers and lose on slow ones.

Demand forecasting tools

Demand forecasting tools fall into four groups. The descriptions are the vendors’ own, and this guide does not rank them.

Kind of toolExamplesWorth knowing
Forecasting inside the ERPMicrosoft Dynamics 365 Demand planning, Business Central Sales and Inventory Forecast, Oracle NetSuite Demand PlanningIt uses data already in the ERP. Methods differ: Demand planning offers auto-ARIMA, ETS, Prophet and XGBoost, and Business Central’s forecast is aggregated across all locations
Planning software that connects to the ERPInventory planning and supply chain planning productsIt adds replenishment, scenarios and approval screens on top of the forecast
Open-source libraries and pretrained modelsLightGBM, XGBoost, Prophet, TimesFM, Chronos-2The code is published openly. Someone has to build, test and run it on your data
A model built on your own dataA forecast built for your items, customers and signalsIt gives the most control and takes the most work. It can run on servers you control

AI for inventory management compares three forecasting products in more detail. Whatever you choose, ask how it charges, how you can see its error on your own items, and whether it keeps a copy of your sales history.

Test a forecast on your own history

Tell Derik which ERP holds your order history and which items are hardest to plan. He will tell you what a backtest on your data would take.

Start a conversation

The data AI demand forecasting needs

DataWhy it matters
Order lines with order date, requested date, item, customer, ship-to and quantityDemand as customers asked for it, before stock limited what shipped
Shipments, backorders and stockout periodsSeparates true demand from what stock allowed
Prices, discounts and promotions by dateExplains spikes that will not repeat
Item master: unit of measure, product family, replacements and new itemsLets the model borrow history from similar items
Customer master: segment, region and contract statusGroups customers that behave alike
Bills of materialsTurns a forecast of finished products into demand for parts
Outside signals: weather, permits, holidays, economic dataExplains movement that the sales history alone cannot

Two to three years of history is a practical minimum for items with a season. The most common problems are changing units of measure, duplicate item numbers and stockouts that look like zero demand. AI for inventory management covers how to fix them, and AI for ERP covers getting the history out of the ERP.

How to start small

  1. Choose 200 to 500 items that matter: the top sellers plus every item that ran out last year.
  2. Build the benchmark first: a seasonal naive forecast and the method you use today.
  3. Backtest a machine learning model, or a pretrained one, on the last 12 months, one month at a time.
  4. Compare the error by item group, not only in total.
  5. Run the new forecast beside the current process for two or three months, with a planner approving every change.
  6. Add outside signals one at a time, and keep each one only if the backtest error falls.

Risks and limits

How ThriveAI helps

ThriveAI is an AI engineering company in Ottawa that builds private AI systems on a company’s own data, for businesses that make, move or sell physical goods. For demand, that means reading the order history in your ERP, cleaning it so each item means the same thing everywhere, and drafting item-level forecasts that a planner reviews and approves before anything changes in the ERP. Every answer shows where it came from.

ThriveAI’s systems read your ERP and accounting system as they are, and every connection only reads data. They are designed to keep each client’s data on its own server in Canada. You choose a model on that server or a hosted model under a written zero data retention agreement, and a hosted model may process requests outside Canada. Derik Lawlis, the founder, leads every project and stays close to the build. About ThriveAI covers the company.

Questions people ask

What is AI demand forecasting?
AI demand forecasting uses machine learning to predict how much of each item customers will order in each future period. It learns from your order history, often across all items at once, and can add outside signals such as prices, promotions, weather or building permits. A planner reviews the forecast and records any adjustment.
How does machine learning forecast demand?
A machine learning model is trained on past demand together with features such as recent sales, the time of year, prices, promotions and customer patterns. It learns how those features relate to the demand that followed, then applies what it learned to the coming weeks. Gradient-boosted trees such as LightGBM and XGBoost are common choices.
Is AI forecasting more accurate than traditional methods?
Often, but not on every item. In the M5 competition on Walmart sales data, the top methods were machine learning models that learned across many items and used prices and calendar events. On your own data, test any model against a seasonal naive forecast and against your current method before you rely on it.
Which AI model is best for forecasting?
No single model wins everywhere. Gradient-boosted trees did best in the M5 retail competition. Pretrained models such as Google's TimesFM and Amazon's Chronos-2 give a quick baseline without training. Items with many weeks of zero demand need methods built for that pattern, such as Croston's method.
What are the main methods of demand forecasting?
The main methods are judgment from sales and planners, simple time series methods such as the naive method and moving averages, statistical models such as exponential smoothing and ARIMA, causal models that use outside variables, and machine learning models. Most businesses combine a model with documented human adjustments.
What are demand forecasting tools?
They include forecasting built into ERPs such as Microsoft Dynamics 365 and Oracle NetSuite, planning software that connects to the ERP, open-source libraries and pretrained models, and custom models built on your own data. Compare them on your own items with a backtest before you choose.
How much history do you need for demand forecasting?
Two to three years covers most seasonal patterns. Models that learn across items can forecast items with shorter histories, because they borrow patterns from similar items. New products with no history need an estimate from similar items or from people.

Contact

Test a forecast on your own order history

Tell Derik which items run out or pile up and which system holds their order history. He will tell you whether that history is enough to forecast them.

Prefer to talk? Book a meeting.

Your message goes to Derik Lawlis, the founder.