Choose your region

    Lists show the case studies of your region first. Browse and search still hold every case study.

    Europe
    North America

    Picnic orders stock from suppliers on transformer forecasts

    Online supermarket Picnic forecasts the demand for each article with a Temporal Fusion Transformer, and the forecasts trigger its orders to suppliers in a just-in-time supply chain.

    PicnicNetherlands (Picnic's warehouses across the countries where it sells)GroceryIn production
    Scale
    Tens of thousands of products, hundreds of millions of predictions a day
    Scenario
    Warehouse replenishment demand forecasting
    Business function
    Supply chain and logistics
    Kind of solution
    Forecasting and planning
    Who built it
    Built in-house
    Human oversight
    Acts under watch
    Organization
    Enterprise
    AI types
    Machine learning

    Sources and their publishers

    This case study draws on reporting by the following publishers. Enterprise AI Case Studies combined these accounts and added its own explanation. The reporting, and every passage quoted from it, belongs to whoever published or supplied it.

    1. Picnic

    2. bol

    3. Retail Technology Innovation Hub

    tl;drPicnic's switch to a transformer model raised its article forecast precision by 20%.See the results

    View the solutionBuild this solution yourself

    Picnic, the Dutch app-only supermarket, forecasts demand for each article with a Temporal Fusion Transformer (TFT), and the forecasts trigger its orders to suppliers2, 4. The model replaced gradient-boosting trees that failed when buying habits changed during COVID-191.

    Picnic runs a just-in-time supply chain for perishable groceries, so its orders to suppliers depend on how well it predicts what customers will buy5. The forecasting system makes hundreds of millions of predictions a day for articles and warehouses, and a validation layer keeps doubtful predictions away from the purchase order system2.

    In April 2024, Picnic reported a 20% increase in forecast precision after the move to the TFT, with the largest gains on slow-moving articles1. In January 2026, a change to day-level forecasts halved the model dataset and improved a systematic under-forecasting problem3.

    Before the deployment

    Picnic started in 2015 as an online supermarket without physical stores or the buffer inventory that stores keep5. Its fulfilment warehouses order from suppliers just in time, so a wrong forecast either wastes food or leaves customers without a product1. Picnic first forecast article demand with gradient-boosting trees1.

    The forecast had to handle these conditions:

    • Waste against availability: Overestimated demand means food is thrown away. Underestimated demand sends customers to the nearest physical supermarket1.
    • Several horizons: Orders need demand for two, three or even seven days ahead1.
    • Fast and slow movers: Picnic orders some articles from suppliers multiple times a day and others once a week or less3.
    • New articles: The assortment keeps expanding, and a new article has little or no sales history4.
    • Changed habits: During COVID-19, demand for products such as toilet paper jumped, and the trees couldn’t extrapolate beyond the values they had seen in training1.

    What was built

    Picnic built an in-house forecasting system that predicts demand per article and warehouse and passes the forecasts to the system that buys from suppliers2. The work divides like this:

    • Forecasting model: A TFT forecasts article demand several days ahead and returns prediction intervals, so a chosen quantile can balance waste against unavailability1.
    • Validation and fallback: Validation schemas check the data and the predictions. A prediction that fails isn’t used, and operations fall back to the latest known accurate predictions2.
    • Purchase order system: It receives the pre-computed forecasts and places the supplier orders, which the forecasts trigger2, 4.
    • Analysts and engineers: Analysts evaluate the logged predictions2. Engineers run live experiments before a new model is trusted to order millions of euros in groceries4.

    Demand that is already known doesn’t need a model. Customers order bread the day before, so a simple SQL query sets the morning bake, while machine learning forecasts the dough further ahead2.

    Alternatives considered

    Picnic tried several model families before it settled on the TFT1:

    • Gradient-boosting trees: Robust in many settings, but unable to extrapolate when COVID-19 changed customer behavior1.
    • Long short-term memory networks (LSTMs): Showed no significant improvement in performance1.
    • DeepAR: Doesn’t consider the mix of static and time-varying inputs that multi-horizon forecasting needs1.
    • Newer models: Picnic evaluates TiDE and TSMixer beside the TFT models that run in production2.

    Technology and architecture

    Figure 1How Picnic's article forecasts reach its supplier orders
    How Picnic's article forecasts reach its supplier ordersPicnic's Snowflake-powered data warehouse supplies demand history and features to the Temporal Fusion Transformer. A model tracker deploys a retrained model only when it beats the other models. The model's article forecasts pass through Pandera validation to a prediction serving system, which pre-computes them and delivers them to the purchase order management system. That system places orders with suppliers. Analysts evaluate the logged predictions. No part is inferred.history and features (data) · Documented in source [2]deploys better model (trigger or control) · Documented in source [2]article forecasts (data) · Documented in source [2]checked forecasts (data) · Documented in source [2]pre-computed forecasts (data) · Documented in source [2]logged predictions (handoff to people) · Documented in source [2]supplier orders (data) · Documented in sources [2] [4]PICNIC FORECASTING PLATFORMPICNIC OPERATIONSSnowflake data warehouse · Data · Documented in source [2]DATASnowflakedatawarehouseModel tracker · System · Documented in source [2]SYSTEMModel trackerTemporal Fusion Transformer · AI model · Documented in sources [1] [2]AI MODELTemporalFusionTransformerPandera validation · System · Documented in source [2]SYSTEMPanderavalidationPrediction serving system · System · Documented in source [2]SYSTEMPredictionservingsystemPurchase order management · System · Documented in source [2]SYSTEMPurchaseordermanagementAnalysts · Team · Documented in source [2]TEAMAnalystsSuppliers · External · Documented in sources [2] [4]EXTERNALSuppliershistory andfeaturesdeploysbetter modelarticleforecastscheckedforecastspre-computedforecastsloggedpredictionssupplier ordersHow Picnic's article forecasts reach its supplier ordersPicnic's Snowflake-powered data warehouse supplies demand history and features to the Temporal Fusion Transformer. A model tracker deploys a retrained model only when it beats the other models. The model's article forecasts pass through Pandera validation to a prediction serving system, which pre-computes them and delivers them to the purchase order management system. That system places orders with suppliers. Analysts evaluate the logged predictions. No part is inferred.history and features (data) · Documented in source [2]deploys better model (trigger or control) · Documented in source [2]article forecasts (data) · Documented in source [2]checked forecasts (data) · Documented in source [2]pre-computed forecasts (data) · Documented in source [2]logged predictions (handoff to people) · Documented in source [2]supplier orders (data) · Documented in sources [2] [4]PICNIC FORECASTING PLATFORMPICNIC OPERATIONSSnowflake data warehouse · Data · Documented in source [2]DATASnowflake datawarehouseModel tracker · System · Documented in source [2]SYSTEMModel trackerTemporal Fusion Transformer · AI model · Documented in sources [1] [2]AI MODELTemporal FusionTransformerPandera validation · System · Documented in source [2]SYSTEMPandera validationPrediction serving system · System · Documented in source [2]SYSTEMPredictionserving systemPurchase order management · System · Documented in source [2]SYSTEMPurchase ordermanagementAnalysts · Team · Documented in source [2]TEAMAnalystsSuppliers · External · Documented in sources [2] [4]EXTERNALSuppliershistory and featuresdeploys better modelarticle forecastschecked forecastspre-computed forecastslogged predictionssupplier orders
    • AI component
    • Data
    • Trigger or control
    • Handoff to people
    Sources [1][2][4]
    Only forecasts that pass validation reach the purchase order system that orders from suppliers.

    The TFT is a transformer-based neural network for time series, which Picnic first ran through the PyTorch Forecasting implementation1. It retrains often on GPUs, and the serving system pre-computes predictions because the packages compute large batches far more efficiently than many small ones2.

    Layer What they used Role Source
    Forecasting model Temporal Fusion Transformer (TFT) Forecasts demand per article and warehouse, with prediction intervals 1, 4
    Framework or library PyTorch Forecasting Supplied the first TFT implementation 1
    Data platform and storage Snowflake-powered Data Warehouse Holds demand history and features for training 2
    Compute and servers GPU-enabled infrastructure Runs automated retraining on a schedule 2
    Offline evaluation Model tracker Deploys a retrained model only if it beats the others 2
    Guardrails Pandera Validates data and predictions, and blocks flagged ones 2
    Rules and decision logic Half-day split step Splits day-level forecasts into half-days 3
    Model deployment Prediction serving system Pre-computes predictions and delivers them 2
    Monitoring Model performance monitoring package Checks logged predictions for errors 2
    Business or operational system Purchase order management system Places the orders with suppliers 2, 4

    Data inputs

    • Demand history: Past demand per article and warehouse, held in the data warehouse and used for regular retraining1, 2.
    • Confirmed customer orders: A temporal input that is known into the future1.
    • Calendar and weather: The day of the week, holidays such as Christmas and Easter, and weather forecasts1, 2.
    • Product and promotion data: Product details, promotional activities and Picnic’s recipes2.
    • Location variables: Static inputs such as the city or the number of households in the area1.
    • Similar items: For a new article, the product description and the sales patterns of similar items4.

    Integrations

    • Snowflake-powered Data Warehouse: The training and inference pipelines read demand history and features from it2.
    • Purchase order management system: It receives the pre-computed predictions and uses them to purchase groceries from suppliers2.

    How one article forecast becomes a supplier order

    1. A scheduled job retrains the TFT on GPUs, which keeps up with data drift, concept drift, and new articles and warehouses2.
    2. The model tracker compares the new model’s metrics over many subsets with the other models. A better model deploys automatically2.
    3. The model forecasts demand per article at day level. A post-processing step splits the result into half-days, which the stock ordering systems require3.
    4. Pandera checks the predictions against a validation schema. If a prediction fails, the system keeps the latest known accurate predictions2.
    5. The serving system pre-computes the predictions and delivers them to the purchase order management system2.
    6. An order usually covers several days of demand, so the forecasts are aggregated to the order’s period3.
    7. The forecast triggers the supplier order4.
    8. The predictions are logged, and analysts and the monitoring package check them for errors2.

    Results

    Metric Before After Scope and timeframe Reported by
    Forecast precision Gradient-boosting trees 20% higher TFT forecasts, reported April 2024 Picnic, measured1
    Model dataset size Half-day forecasting grain Half Article forecast at day level, reported January 2026 Picnic, measured3
    • Forecast precision: The gain was largest on slow-moving articles, which are the hardest to forecast1.
    • Model dataset size: Moving from half-day to day-level forecasts halved the dataset and removed code that processed the finer data3. The change also reduced noise and improved a systematic under-forecasting problem3.
    • Waste and availability: Picnic states that more accurate demand predictions significantly reduced food waste while it kept high product availability5.

    Lessons learned

    The TFT worked on the hardest part of the assortment. Its gain was largest on slow movers, and its explainability helped the team communicate the model’s behavior to stakeholders1. Its prediction intervals turned the trade-off between waste and unavailability into a choice of quantile1.

    The model needs more hardware than the trees it replaced. The TFT needs GPUs, training takes several hours, and Picnic notes that this hardware can increase production costs1. Training also strained memory, which the team solved by sampling1.

    Noise limits accuracy for slow movers. Day-level error is much worse for them, and that noise is a bound that no model can predict away3. Scored against a baseline with MASE, forecasting skill didn’t deteriorate for the slowest movers, so Picnic measures performance at the level at which orders use the forecasts3.

    Earlier versions of the article forecast under-forecast systematically. The move to day-level forecasts, closer to the grain at which orders use them, improved the problem3.

    Picnic designed its safeguards around model errors. It expects machine learning to make mistakes, so its software falls back to cached predictions, because old predictions are better than incorrect ones2.

    All figures are Picnic’s own, from posts on its engineering blog1, 3.

    Case study scorecard

    Build this solution yourself

    Analysis

    What you need

    • Demand history with its context in one warehouse: Picnic’s model draws on product, promotion, holiday and weather data beside past demand2. Check that you hold these at the grain of your orders.
    • An ordering system that accepts pre-computed forecasts: The purchase order system reads forecasts that are ready and validated, so a model failure leaves the last good forecast in place2.
    • GPU capacity for scheduled retraining: The TFT retrains often and takes several hours even on GPUs1, 2.
    • Knowledge of how orders use the forecast: Picnic found that its orders cover several days, and forecasting closer to that grain reduced noise and under-forecasting3.

    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.

    A check mark shows a building block that this case study's sources document.

    Open the reference architecture

    Others who built it

    • bol: Forecasts demand for most of the about 36 million items on its platform, and the predictions are used for stocking6.
    • Delhaize: Deployed SymphonyAI’s demand forecasting and replenishment across its 600-store affiliated network and five distribution centres in Belgium7.

    Cite this case study

    Enterprise AI Case Studies. "Picnic orders stock from suppliers on transformer forecasts." Updated Nov 24, 2026. https://case-studies.ai/case-studies/supply-chain-and-logistics/SC-043-warehouse-replenishment-forecasting-picnic/

    @misc{csai-sc-043,
      author = {{Enterprise AI Case Studies}},
      title = {{Picnic orders stock from suppliers on transformer forecasts}},
      year = {2026},
      note = {Updated 2026-11-24},
      url = {https://case-studies.ai/case-studies/supply-chain-and-logistics/SC-043-warehouse-replenishment-forecasting-picnic/}
    }

    Sources

    The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership

    1. Source 1:

      Under the hood of Picnic's demand forecasting model: A Deep Dive into the Temporal Fusion Transformer

      OrganizationPicnic, Apr 22, 202422 Apr 2024By Daniela SolisAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (23)
      • From ordering products from our suppliers to planning deliveries, every aspect of our app-only supermarket relies on the accuracy of our predictions.
      • If we overestimate demand, we risk throwing away food. On the flip side, underestimating demand leads to disappointed customers who then need to drive to the nearest physical supermarket.
      • If we did not have enough capacity to deliver to all customers, they might postpone their orders to Tuesday, skewing our perception of actual demand.
      • We often need to predict demand for two, three, or even seven days into the future.
      • It could be information unknown in the future, such as the weather, or known in both past and future, such as the day of the week or holidays (consider Christmas and Easter shopping).
      • we are also interested in non-temporal static variables, such as the city or number of households in the area
      • number of confirmed customer orders
      • We initially employed gradient-boosting trees to forecast demand.
      • they exhibited a significant drawback discovered during COVID-19: everyone suddenly started buying toilet paper!
      • Our exploration began with Long Short-Term Memory Networks (LSTMs), but we observed no significant improvement in performance.
      • Thus, we delved into more sophisticated models, including DeepAR.
      • does not consider the wide variety of inputs commonly present in multi-horizon forecasting(static and time-varying variables). Therefore, we started looking into TFT.
      • simultaneously predicting various distribution percentiles (such as the 10th, 50th, and 90th percentiles) at each time step
      • we implemented two different TFT models. One predicts demand at an article level, for example, forecasting how many bananas our customers will need in the coming weeks.
      • We started out using Pytorch Forecasting as it had a TFT implementation available.
      • when training the model, we faced challenges with memory usage
      • To address this, we implemented sampling techniques.
      • Unlike gradient boosting trees, which could be trained on CPUs, the TFT requires GPUs. Even with GPUs, training the TFT model takes several hours.
      • We saw a 20% increase in our forecast precision, particularly benefiting from improved performance in slow-moving articles
      • explainability helped us communicate the model
      • the prediction intervals allowed us to select different quantiles, effectively balancing waste and unavailability in our operations
      • Deep learning models like TFT demand significant hardware resources (GPUs), which can increase production costs.
      • Begin with a strong baseline, potentially utilising simpler models like gradient boosting.
    2. Source 2:

      Running demand forecasting machine learning models at scale

      OrganizationPicnic, Dec 12, 202312 Dec 2023By Maarten SukelAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (25)
      • so we in turn can order the right amounts at the right time, automatically purchasing groceries from our suppliers at scale
      • A good example of a product where we often already know how much we need to bake in the morning is bread, which is ordered by our customers the day before. For that use case a simple SQL query can be enough.
      • But for knowing how much dough is required to bake that bread we need to look further ahead and machine learning is a useful tool.
      • We productionize deep learning models like Temporal Fusion Transformers (TFT) and evaluate new models such as Tide, and TSmixer.
      • from product details and holiday periods to weather predictions, promotional activities, and our unique recipes
      • The rich context provided by our Snowflake-powered Data Warehouse enhances their performance
      • regular retraining of models to address data drift, concept drift, and the introduction of new articles and warehouses
      • our GPU-enabled infrastructure facilitates frequent, automated model retraining
      • training models that require a lot of computing at set intervals is as easy as scheduling a cronjob
      • Whenever the model is trained we compare evaluation metrics over a variety of subsets with other models in our model tracker to see if they are indeed more performant. When the newer model is successfully improved it will automatically be deployed
      • we log all our predictions in a standardized manner, allowing for subsequent evaluation by our analysts
      • automated tools like our in-house model performance monitoring package
      • For all our warehouses, articles, and markets we constantly monitor predictions
      • pandera is an open source project
      • We use Pandera to ensure data integrity and flag outliers in our machine-learning pipeline.
      • Any prediction deemed potentially inaccurate based on a validation schema will not be used in our operational processes and we fall back to the latest known accurate predictions.
      • We integrated the validations frequently our training pipeline, inference pipeline and as mentioned also on our predictions.
      • making hundreds of millions of predictions a day for a vast array of articles and warehouses with multiple machine-learning models
      • selling tens of thousands of products across various countries
      • a scalable system for pre-computing and swiftly delivering predictions to our purchase order management system
      • we pre-compute all possible predictions that can be requested frequently instead of doing it on the fly
      • Machine learning packages are often very good at calculating batches efficiently, but are not very efficient at doing a lot of small batches of predictions.
      • Pre-computing all predictions also gives the added benefit of having fallbacks by design
      • make sure that your software handles mistakes that will be made by machine learning (because it will) appropriately
      • Old predictions are better than incorrect predictions.
    3. Source 3:

      Signal vs Noise: Choosing the right granularity for demand forecasting

      OrganizationPicnic, Jan 27, 202627 Jan 2026By Nathan HartlandAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (17)
      • For all of these products, we produce sales forecasts to understand how much we need to order from our suppliers in order to meet customer demand.
      • we call these products extreme fast movers; products where we place orders with our suppliers multiple times per day
      • In these cases we may only resupply once a week (or less)
      • In order to make sure our warehouses are sufficiently stocked, we need to know how article demand varies on a region-by-region basis.
      • To date, our demand forecasting system has been based on a bottom-up approach. We forecast on a fine granularity then aggregate up to the level of interest.
      • Here we see that WAPE is much worse for our slow movers.
      • The noise represents a fundamental bound on how accurate your predictions can be.
      • With MASE instead of computing some absolute metric of performance, you measure performance relative to a baseline forecast.
      • shows that forecasting skill is actually not deteriorating for the slowest moving articles
      • Our stock ordering systems require forecasts at the half-day level.
      • However our analysis revealed that forecasts were almost always aggregated up in placing an order to cover multiple days of demand.
      • We experimented with moving a little higher in the hierarchy of scales, to day-level rather than half-day and then splitting the results back into half-days in a post-processing step to meet the requirements of downstream systems.
      • By moving to a higher granularity, we were able to half the overall size of the model dataset
      • along with removing code complexity related to retrieving and processing data at the finer level of detail
      • we were also able to reduce the impact of noise in our dataset
      • improving a systematic under-forecasting problem that was troubling earlier versions of our forecast
      • Measure performance at the scale that your forecasts are used, not at the scale they are made.
    4. Source 4:

      From Supplier to Doorstep: The Machine Learning Behind Your Delivery

      OrganizationPicnic, Feb 5, 20265 Feb 2026By Rianne and Öykü KapcakAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (8)
      • By predicting demand for specific articles accurately, we can order exactly what we need from our suppliers right when we need it.
      • Our product assortment is constantly expanding
      • One of the trickiest problems we deal with is the cold-start problem
      • to sales patterns of similar items, to make an educated prediction
      • These days, we use advanced deep learning models for our core forecasts, such as the Temporal Fusion Transformer (TFT)
      • Before trusting a new forecasting model to order millions of euros in groceries, we put it through rigorous evaluation.
      • conducting live experiments that directly shape how we stock our warehouses and fill our delivery trucks
      • From the moment our demand forecasting models triggered a supplier order
    5. Source 5:

      Building an AI-first company: lessons from scaling from a small start-up to a Machine Learning powerhouse

      OrganizationPicnic, May 28, 202528 May 2025By Jelmer BorstAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (4)
      • When Picnic started in 2015
      • how to accurately predict customer demand in a just-in-time supply chain selling perishable products
      • Unlike traditional retailers with physical stores and buffer inventory
      • significantly reduced food waste while maintaining high product availability
    6. Source 6:

      Navigating the Future: An Overview of Forecasting at bol

      Organizationbol, Feb 9, 20249 Feb 2024By Eryk LewinsonAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (1)
      • Bol offers around 36 million unique items on the platform, and for most of those, we do need to provide demand forecasts. Those predictions are used for stocking purposes.
    7. Source 7:

      Grocery retailer Delhaize BeLux boosts forecast accuracy using SymphonyAI replenishment platform

      IndependentRetail Technology Innovation Hub, Aug 13, 202613 Aug 2026By Scott ThompsonAccessed Nov 24, 202624 Nov 2026

      Supporting excerpts (1)
      • has deployed SymphonyAI's demand forecasting and replenishment solutions across its 600-store affiliated network and five distribution centres in Belgium

    More in Supply Chain & Logistics

    View all