• /
  • /
Artificial Intelligence in Demand Forecasting: How ML Models Work and What to Do When the Past Doesn't Resemble the Future
Machine Learning (ML) algorithms have long ceased to be just a technological novelty today, they serve as a fundamental tool for inventory optimization, sales planning, and supply chain management. They help analyze massive datasets and uncover hidden patterns faster and more accurately than human intuition.

However, in a world of constant turbulence from pandemics to sudden regulatory shifts businesses increasingly face situations where traditional models fail.

For AI to deliver real value, company leadership needs to understand two key aspects: exactly how models reach their conclusions and where the boundary of their capabilities lies, beyond which direct human intervention is required.
How the ML Forecasting Engine Works: An Accessible Primer
The main difference between demand planning and most other business tasks is that we work with time series data. Here, chronological order is critical: past sales periods are directly linked to future ones.

Conventional statistical models can only account for past sales history. Machine learning goes much further: it evaluates dozens of interconnected factors simultaneously.

What Information Does the Algorithm Consider?

To produce accurate results, data is prepared and fed into the model along three main vectors:

  • Sales History and Dynamics: Volumes for preceding days and weeks, monthly averages, and weighted average trends.
  • Calendar Context: Days of the week, public holidays, pre-holiday days, and seasonal peaks.
  • External and Internal Drivers: Price levels, marketing promotions, competitor activity, and even weather conditions.

Where Does the Power of ML Lie?

The algorithm independently identifies subtle correlations hidden from human perception such as how a specific combination of rainy Friday weather and a 10% discount impacts sales in a particular product category.
When Models Fail: The Limits of ML Application
The core assumption of any machine learning model is that the future will, to some degree, resemble the past. During stable periods, these models perform exceptionally well. However, in an era of "black swans" (rare, unpredictable events with enormous impact) the system runs into inherent limitations.

There are three primary areas where ML algorithms are powerless without human intervention:

  1. New Product Launches and Lack of History: If an item has never been part of the product range, the algorithm has no historical data. The model does not know its seasonality or how customers will react to the launch.
  2. Market Shocks and Force Majeure: Pandemics or sudden restrictions are anomalies. Statistically, they are impossible to predict because there were simply no precedents in the training data.
  3. Irrational Economic Shifts: Regulatory actions, sharp changes in key interest rates, or legislative shifts create market paradoxes such as price increases occurring alongside falling purchasing power. The model perceives this as a violation of logic.
A Practical Guide: How Businesses Can Build Demand Forecasting Under Uncertainty
If mathematics cannot predict "black swans," does that mean ML is useless? Not at all. Algorithms possess high adaptability. As soon as a shock event occurs and the first new data points emerge, the model quickly readjusts to the new reality.

To build a resilient planning system, executive management should rely on a hybrid approach and follow a few key rules:

1.Adopt a "Human-in-the-Loop" Concept:
The optimal strategy combines algorithms with expert oversight. The model handles scalability, routine mathematical calculations across thousands of stock-keeping units (SKUs), and objectivity. The expert (category manager or analyst) contributes business context. During force majeure events, it is the human who manually inputs constraints, overrides coefficients, and defines future scenarios.

2.Use Product Analogs for New Launches:
To forecast demand for a new product, algorithms are configured with "substitute product" logic. The model borrows the lifecycle and seasonality of a similar product within the category and projects those patterns onto the new item until it gathers its own initial sales history during its first few weeks.

3.Separate Anomalies from True Trends:
During periods of panic buying or demand spikes, a crucial task for the engineering and analytics team is data cleansing. If a sales spike was a one-off anomalous event, it must be excluded from the training dataset so the model does not forecast a repeat of a non-existent peak the following year.

4.Invest in Data Cleanliness and Regular Retraining:
Machine learning is a dynamic process, not a static program. The more frequently a model is retrained on fresh incoming data, the faster it recovers from market shocks and restores planning accuracy to target levels.
Conclusion
One should not expect miracles from machine learning models, especially during volatile times. An ML algorithm does not predict the future, but rather calculates probabilities precisely based on factual data.

Machine learning excels where metrics are influenced by multiple variables, where scalability is required, and where data is rich enough for the model to identify patterns. However, ML approaches demand discipline: careful feature engineering, regular model updates, and a transparent infrastructure around them. When these conditions are met, machine learning becomes a reliable tool for forecasting demand, sales, traffic, and other business metrics. It does not replace expertise; rather, it empowers businesses to rely on data in situations where intuition alone is no longer enough. That is why ML demand forecasting today is a practical technology delivering measurable value to companies ready to invest in data quality and engineering rigor.