Albert Heijn restocks stores from a billion daily forecasts
Albert Heijn and Xebia replaced a decades-old forecasting system with machine learning models that predict demand for every product in every store, and the chain's store replenishment runs on them.
Albert HeijnNetherlandsGroceryScaled
- Scale
- Every product in every store, up to 50 days ahead: more than one billion forecasts each day
- Scenario
- Store replenishment demand forecasting
- Business function
- Supply chain and logistics
- Kind of solution
- Forecasting and planning
- Who built it
- Built with a partner (Xebia)
- Where it runs
- Public cloud
- Human oversight
- Acts under watch
- Organization
- Enterprise, part of Ahold Delhaize
- AI types
- Machine learning
- Sites
- more than 1,100 physical stores
tl;drAlbert Heijn's ML forecasts were more than 5% more accurate and needed far fewer manual fixes.See the results
Albert Heijn uses machine learning models to forecast demand for every product in every store, and its store replenishment runs on those forecasts2, 3.
The Dutch supermarket chain built the system with Xebia on its own Azure cloud, to replace a decades-old forecasting system3. Each night, the models forecast demand up to 50 days ahead3. In October 2026, an Albert Heijn product owner said that the algorithms behind store replenishment make more than one billion predictions a day1.
The new forecasts were more than 5% more accurate than those of the old models, and they needed far fewer manual adjustments3.
Before the deployment
Albert Heijn started forecasting store demand in 2003, and it switched to automatic replenishment after that2. By the time it replaced that forecasting system, the system was decades old and lacked features the chain needed3:
- Missing demand drivers: It didn’t account for extreme weather, product discounts, or events near some stores3.
- Manual corrections: It often needed labor-intensive corrections that took up staff time3.
- Weak support for planning: Its forecasts didn’t support short-term and long-term decisions on stock distribution, transport availability, and staffing3.
- Varied demand patterns: Rookworst and ice cream are seasonal, and demand for vegan products grew, so the models had to adapt to change3.
The chain wanted more on-shelf availability, less loss, and more efficient transportation3. Its stores have no back rooms and carry very low inventory, so they get deliveries daily, sometimes more than once a day4.
What was built
The system forecasts daily demand for each product in each store, up to 50 days ahead, for the stores and for multiple online channels2, 3. Store replenishment depends on its predictions3. The models, the replenishment software, and people divide the work:
- Forecasting models: Learn from years of sales history, seasonality, holidays, and promotions. They also learn whether a promotion raises or cannibalizes the sales of other products2.
- Replenishment algorithms: Use the forecasts to decide how much of each product to deliver to a store and when2.
- Monitoring: Flags each prediction that lies outside the bandwidth of historical demand3.
- People: Inspect the flagged predictions and make the manual adjustments that remain3.
Albert Heijn’s in-house machine learning engineers and data scientists built the system together with Xebia3. The chain tests its replenishment algorithms in simulation environments, which is faster and less costly than testing them in the stores2.
“Customers don’t want to see empty shelves, so there’s always a trade-off between availability and waste, but AI makes these decisions so much easier than in the past by giving us the right data to support our decision-making.”
Technology and architecture
The forecasting system runs as a pipeline of three phases on Albert Heijn’s existing cloud3.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Forecasting model | Machine learning demand forecasting models | Forecast demand per product and store, up to 50 days ahead | 1, 2, 3 |
| Rules and decision logic | Replenishment algorithms | Decide how much of each product to deliver to a store and when | 2 |
| Workflow engine | Apache Airflow | Orchestrates data loading, model training, and predictions | 3 |
| Data preparation | dbt (data build tool) | Loads the data and generates the features | 3 |
| Data platform and storage | Spark engine in Databricks | Runs the data loading and feature generation | 3 |
| Cloud platform | Microsoft Azure | Hosts the system on Albert Heijn’s existing infrastructure | 3 |
Data inputs
- Sales history: Years of sales per product and store, which the models learn from2.
- Calendar: Seasonality and holidays2.
- Promotions: Which products are on promotion, and whether a promotion could raise or cut the sales of other products2.
- Latest data: The production models get the most recent data every night before they forecast3.
How the nightly forecast run works
- Airflow starts the pipeline on Albert Heijn’s Azure infrastructure3.
- dbt loads the data and generates the features on a Spark engine in Databricks3.
- The pipeline trains the models in its second phase, and the production models then generate the predictions3.
- The models forecast every product in every store for the coming days, up to 50 days ahead2, 3.
- Monitoring flags each prediction outside the bandwidth of historical demand, and people inspect it3.
- The replenishment algorithms use the forecasts to decide what each store gets and when2.
Results
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Forecast accuracy | Existing forecast models | more than 5% more accurate | Machine learning forecasts against the old models, published August 2022 | Xebia, measured3 |
| Manual adjustments | Frequent manual corrections | Greatly reduced | Same comparison | Xebia, measured3 |
| Forecasts per day | Not disclosed | More than one billion | Every product, every store, up to 50 days ahead, September 2026 | Albert Heijn2 |
- Forecast accuracy: Compares the machine learning forecasts with the forecasts of the decades-old models they replaced3.
- Forecasts per day: In September 2026, the count was 17,000 products, times 1200 stores, times 50 days ahead2. In October 2026, a product owner gave the same figure of more than one billion predictions a day at a retail event1.
- Waste and availability: The move to automatic replenishment reduced waste and increased product availability2.
Lessons learned
The accuracy gain and the drop in manual adjustments are Xebia’s figures, from the customer story of the partner that built the system with Albert Heijn3. The scale figures are Albert Heijn’s own2.
Scale was the hardest part of the build. The system had to produce more than a billion forecasts in a few hours each night, which strains even modern cloud services3. Reliability mattered as much, because a failed run could disrupt store replenishment3.
The two sources count the scope differently. Xebia gave more than 27,000 grocery products and more than 1,100 physical stores in 20223. Albert Heijn gave 17,000 products and 1,200 stores in September 20262.
Trust took sustained work. Gaining the trust of stakeholders and proving that the system delivered reliable predictions was an ongoing effort3. Van Genugten said that the chain learned to put as much effort into communication as into developing its tools2.
The forecasts don’t remove waste on their own. Albert Heijn can never forecast perfectly, so it uses AI to mark down items on the shelves that are about to expire2.
Case study scorecard
- more than 5% More accurate forecasts than the old forecast models3
Sources by publication date
- Organization 2
- Vendors and partners 2
- Press, academic, and regulators 3
Build this solution yourself
Analysis
What you need
- Years of sales history with promotion data: The models learn from sales, seasonality, holidays, and how promotions shift sales between products, so you need these records per product and store2.
- A run that fits the nightly window: Albert Heijn’s pipeline has a few hours to produce over a billion forecasts, and replenishment waits on it. Size your data platform for the full assortment before you start3.
- A check on outlier forecasts: Replenishment acts on the forecasts, so you need a rule that flags predictions outside historical demand and someone to inspect them3.
- Data scientists who own the models: The chain’s own engineers built the system with Xebia, which passed its knowledge to the team3.
Reference architecture
Forecasting and planning
A forecasting and planning solution predicts demand, supply, load, or events from history and outside data, and turns the prediction into a plan such as orders, prices, stock positions, reserve, or crews. Each cycle, forecasting models turn fresh data into a forecast, and an optimizer can turn it into a proposed plan within set targets and limits. Planners decide and enter the plan in the operational system, or they steer an automatic plan through targets and overrides.
- Data feeds and connectors
- Data platform (documented in this case study)
- Data preparation (documented in this case study)
- Forecasting models (documented in this case study)
- Optimizer
- Approval rules (documented in this case study)
- Simulation or digital twin
- Task agents
- Planning workspace
- Operational system
- Training pipeline
- Forecasting and planning platform
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- Delhaize: Deployed SymphonyAI’s Demand Forecasting and Replenishment solutions across its 600-store affiliated network and five distribution centers in Belgium5.
- Albertsons Companies: Implemented Afresh’s forecasting and ordering platform for fresh produce in more than 2,200 stores6.
- Macy’s: Is adding an AI forecast overlay to its replenishment operations, moving from pilot to broader rollout in 20267.
In the library
- AI agents draft production plans at Siemens' Erlangen plant Siemens
- Walmart plans inventory with AI forecasts and a digital twin Walmart
- Albertsons puts AI replenishment in every fresh department Albertsons Companies
- De Rooy predicts unplanned pickups with machine learning De Rooy Transport
- AstraZeneca calibrates transit lead times with Aera's AI AstraZeneca
- LNER's machine learning tool flags trains at risk of delay LNER
Cite this case study
Enterprise AI Case Studies. "Albert Heijn restocks stores from a billion daily forecasts." Updated Nov 22, 2026. https://case-studies.ai/case-studies/supply-chain-and-logistics/SC-037-store-replenishment-forecasting-albert-heijn/
@misc{csai-sc-037,
author = {{Enterprise AI Case Studies}},
title = {{Albert Heijn restocks stores from a billion daily forecasts}},
year = {2026},
note = {Updated 2026-11-22},
url = {https://case-studies.ai/case-studies/supply-chain-and-logistics/SC-037-store-replenishment-forecasting-albert-heijn/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Albert Heijn wil boodschappen laten bestellen via AI-assistent Steijn
Supporting excerpts (3)
Dat vertelde Ties van Veelen, Product Owner Checkout & Payments, van Albert Heijn tijdens Shopping Today in DeFabrique in Utrecht.
Zo vertelde Van Veelen dat de supermarktketen AI gebruikt voor de bevoorrading van winkels.
De achterliggende algoritmes doen volgens hem inmiddels meer dan een miljard voorspellingen per dag.
- Source 2:
Supporting excerpts (14)
Noortje van Genugten, VP Product Operations for Albert Heijn
they feed years of sales history along with information on seasonality, holidays, promotions and whether promoted products could either increase or cannibalize the sale of other products
to predict how many cucumbers or loaves of bread a specific store will sell on a given day
The models forecast every day, for every product, in every store
17,000 products, times 1200 stores, times 50 days ahead
or more than one billion forecasts each day
We started with our first simple forecasts back in 2003 and then made the switch to automatic replenishment after that, which has reduced waste and increased product availability.
it’s important to put as much effort into communication as developing the tools, to ensure that people understand the benefits and are willing to use them.
we use AI to forecast customer demand and algorithms to determine how much of a product we should deliver to a store and when
Because we can never forecast perfectly, we use AI to dynamically mark down the cost of items on the shelves that are about to expire.
it enables us to build simulation environments to test our replenishment algorithms in different scenarios in a way that is much faster and less costly than doing it physically in the stores.
Customers don’t want to see empty shelves, so there’s always a trade-off between availability and waste, but AI makes these decisions so much easier than in the past by giving us the right data to support our decision-making.
The most important thing is to start small but with the end goal in mind.
We start pilots in one or two stores, and as soon as they prove successful, we start adding to that and seeing how we can scale.
- Source 3:
Pioneering Grocery Chain Improves Prediction Accuracy by 5%
Supporting excerpts (22)
Albert Heijn, the largest supermarket chain in the Benelux region, streamlines operations with an updated demand forecasting system based on machine learning.
the grocery retailer needed a better demand forecasting system that would lead to more on-shelf availability, reduced loss, and more efficient transportation.
Although the supermarket used demand forecasting, the decades-old system lacked important features.
It didn't account for (extreme) weather, product discounts, or events near some stores and often required labor-intensive, manual interventions (corrections) that took up valuable time.
the system did not support short- and long-term decision-making in stock distribution, transport availability, and staffing.
To ensure that more than 27,000 grocery products are available in more than 1,100 physical stores and for multiple online channels
Some products show strong seasonality, like rookworst (a Dutch sausage usually consumed in winter) and ice cream.
Other products respond to changes in the market, such as the growing demand for vegan products, which requires models to adapt well to change.
predictions that lie outside the bandwidth of historical demand must be flagged and inspected.
As the replenishment of stores depends on the system's predictions, any hiccup could disrupt critical processes.
gaining the trust of stakeholders within AH and proving the project could reliably deliver quality predictions was also an ongoing effort and process.
But the biggest challenge, by far, was the massive scale of the project.
The number of predictions — one for each item in the assortment, for every store, up to 50 days into the future — amounted to over a billion forecasts every day.
With only a few hours available to process that data and create forecasts, the enormous demand would put a strain on even the most modern cloud services.
Together with the supermarket's in-house Machine Learning engineers and Data Scientists, Xebia deployed a custom solution on Albert Heijn's Azure cloud infrastructure and orchestrated it using Airflow.
The set-up consisted of three phases: data loading and feature generation, model training, and generating predictions.
The data loading and feature generation were done using dbt (data build tool) with a Spark engine hosted in a Databricks environment.
Every night, production models are provided with the most recent data to create predictions for the coming days — up to 50 days into the future.
first, the number of manual adjustments needed has been greatly reduced; second, the new forecasts are more accurate than before, by a percentage greater than 5%.
The effects on on-shelf availability and loss are still being collected
They brought their experience in machine learning, data engineering, and best practices with them, and transferred their knowledge to the rest of the team from the get-go.
Data Science Team Lead (Operations) at Albert Heijn
- Source 4:
Moving millions of products daily: 10 questions about the complex logistics of grocery retailing
Supporting excerpts (4)
Our network serves more than 1,250 Albert Heijn stores throughout the Netherlands
We have six distribution centers and nine home shop centers.
because of our small store size, we have no back rooms. This means we carry very low inventory, and deliveries need to happen at a very rapid pace.
Stores get fresh, non-perishable, frozen and bakery deliveries daily
- Source 5:
Supporting excerpts (1)
has deployed SymphonyAI's Demand Forecasting and Replenishment solutions across its 600-store affiliated network and five distribution centers in Belgium
- Source 6:
Albertsons Cos. installs Afresh tech for produce in 2,200-plus stores
Supporting excerpts (2)
The system was implemented in more than 2,200 Albertsons Cos. banner stores
The platform handles forecasting, inventory and store operations, providing department managers with ordering tools that leverage real-time insights.
- Source 7:
Macy's rolls out AI inventory replenishment tool
Supporting excerpts (2)
Macy’s Inc. is adding an artificial intelligence forecast overlay capability to its replenishment operations
The AI capability is currently moving from pilot to broader rollout
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.