Back to Case Studies

AI for Trade Promotion Management

Forecasting, Elasticity and Cannibalisation for a Food Manufacturer

PilotFood & FMCGMay 2026 – Jun 2026MLOps, Infrastructure & Data Science
Won
Tender won with my AI design
1,500
SKUs, 48 categories, two markets
~12,100
Promotions a year to plan and check
< 1 s
Target for live recommendations

My Role

Role
AI architect & tender design author
At Dataforest
Team
Me + engineers
Stage reached
Tender won, first features implemented
Key decisions
  • Forecasting as tabular regression, one row per promotion
  • LightGBM over deep time-series models
  • Logistic regression for volume shifting, for interpretability

Approach at a Glance

Details
  1. 1Data Foundation
  2. 2Volume Forecasting: Each Promotion Is One Example
  3. 3Elasticity with Hierarchical Pooling
  4. 4Discount and Product-Mix Optimisation
  5. 5Two-Layer Cannibalisation Detection
  6. 6Volume Shifting with a Deliberately Simple Model
  7. 7Integration and Exports

Executive Summary

The AI layer of a trade promotion management (TPM) system for a multinational food manufacturer in two Central European markets. Every year, its sales teams plan about 12,100 promotions with retailers across 1,500 SKUs: leaflets, secondary placements, discounts. Each one raises the same questions. How much will it sell? Which discount actually pays off? Will it steal volume from a promotion running at another retailer at the same time?

I designed the AI module that answers them, and my design won the AI part of the tender. It has four capabilities, each behind its own API that the TPM platform calls during planning:

  • Volume forecasting: a gradient-boosted model predicts each promotion's volume, split by week, with comparable past promotions as evidence.
  • Elasticity and discount optimisation: demand curves per product and customer group, and the discount that maximises net sales or contribution margin.
  • Cannibalisation detection: overlapping promotions are found and their expected volume loss is quantified.
  • Volume shifting: when a customer hasn't started ordering, the planned volume moves to later weeks, so supply planning gets a realistic signal.

I did all the architectural work for the module, led the engineers through project setup, and we implemented the first features, the data foundation and the volume forecasting model, before I left the company in June 2026.


Client Profile

The client is a large food manufacturer selling through retail chains. Promotions drive a big share of its sales, and they are planned by key account managers with retailers, one by one, largely from experience. A new TPM platform was being built to manage promotions, pricing conditions, the promotion calendar and approval workflows, integrated with SAP. The AI module had to make that platform smart.

Why it was hard:

  • Scale and sparsity: 1,500 SKUs, a deep customer hierarchy from national chains down to individual delivery points, and several promotion types. Many SKU-customer combinations have only a few past promotions, too few to model directly.
  • Profit, not volume: a deeper discount sells more but can lose money once bonuses, marketing contributions and the cost of goods are counted. The right discount depends on the full cost structure.
  • Promotions interfere with each other: the same product on promotion at two retailers in the same weeks splits the demand. Sell-in data alone (what the manufacturer shipped) can't show this. Sell-out data (what shoppers bought) is needed.
  • Downstream impact: the forecasts feed SAP supply planning. A wrong weekly shape means wrong production and stock.
  • Interactive use: recommendations are requested while a manager is planning a promotion, so they have to come back in under a second.

Technical Approach

  1. Data Foundation – The module builds on four sources: sales history from SAP, where each invoice line is tagged with its promotion so baseline and promotional sales can be separated (at least 24 months, to capture seasonality); master data with the product and customer hierarchies and price lists; weekly retail sell-out panel data; and external benchmarks of promotion mechanics. The platform owns data ingestion. The AI module owns feature engineering: discount depth against the everyday price, promotion type encoding, historical baselines and training pairs for elasticity.

  2. Volume Forecasting: Each Promotion Is One Example – I framed forecasting as tabular regression, not time-series modelling. Each historical promotion is one training example, and the target is its total promotional volume. The features include a customer cluster derived from the hierarchy (raw delivery-point codes would be far too sparse), the SKU and product group, the promotion type, discount depth, duration and seasonality. The model is LightGBM: the data is tabular with high-cardinality categoricals, which gradient-boosted trees handle natively. A deep time-series model would be overkill for predicting one outcome for a discrete event with known attributes. The total is then split into weeks using historical curves per promotion type and category. The API also returns a confidence interval and the most similar past promotions, so a manager can judge whether the recommendation is plausible. When a manager overrides it, the deviation is logged for retraining.

  3. Elasticity with Hierarchical Pooling – Elasticity, how volume responds to discount depth, is estimated offline with log-log regression per SKU and customer cluster, controlling for promotion type, seasonality and duration. Where data is too thin, for a new SKU or a small customer, the estimate falls back step by step to broader levels: SKU by channel, then subcategory by channel, then category. Every combination gets an estimate, and it is as specific as the data allows.

  4. Discount and Product-Mix Optimisation – For a given SKU and customer, the optimiser sweeps discounts from 5% to 40% in 1% steps. At each level it computes expected volume from the elasticity curve and then applies the full cost structure: retailer bonus, customer marketing, cost of goods (with special handling for display stands). It returns the discount that maximises the manager's chosen KPI, net sales value or contribution margin. Choosing which SKUs to promote together is a constrained optimisation over the marketing budget, leaflet or shelf slots and cannibalisation penalties. At tens of candidate SKUs per category, a greedy algorithm with local search solves it fast enough for interactive use.

  5. Two-Layer Cannibalisation Detection – The first layer is deterministic: when a promotion is created or changed, a query finds overlapping promotions on the same or variant SKUs at other key customers, which feeds the promotion calendar. The second layer quantifies the impact. For past overlaps, the shortfall between actual volume and the forecast is attributed to cannibalisation, and the coefficients are refined with sell-out data, which shows whether shoppers switched retailer or simply bought less. At planning time, the warning lists the conflicting promotions, the expected volume loss with a confidence level based on how many comparable overlaps exist, and the impact on net sales and margin. If the combined margin falls below a threshold, the approval workflow escalates it.

  6. Volume Shifting with a Deliberately Simple Model – When a promotion has started but the customer hasn't ordered yet, often because they are still selling stock from a previous promotion, a rule flags it and a logistic regression predicts whether orders are about to start. I chose a simple model on purpose: the features are few (typical lead time, ordering days, recent frequency, promotion type), and the sales team needs to understand why volume was moved. If an order is unlikely, the volume moves to the following weeks. A daily batch job checks all active promotions, pushes updated forecasts to supply planning and raises a "volume at risk" alert when no weeks are left.

  7. Integration and Exports – The module exposes four stateless REST APIs: forecast, optimisation, cannibalisation and volume shift. All context comes in the request, and a feature store supplies the history. It runs as containerised services behind the TPM platform's backend, which is the only thing it talks to. It also owns two outbound pipelines: forecasts to SAP IBP for supply planning, and the full analytics dataset, including forecasts, actuals, elasticities and cannibalisation scores, to Databricks for the client's analysts. Both have reconciliation checks on row counts, totals and freshness.


Business Outcome

The client chose this design for the AI part of its trade promotion system: one module that tells a planner, during planning and in under a second, how much a promotion will sell week by week, which discount maximises margin, whether it clashes with another promotion, and when to shift volume so supply planning stays realistic.

The project had started when I left the company in June 2026. The setup was done, and the data foundation and the first volume forecasting model were implemented. The architecture, the API contracts and the modelling approach for the remaining capabilities were in place for the team to continue.

Technologies

LightGBMGradient BoostingPrice Elasticity ModellingOptimisationLogistic RegressionFeature StoreREST APIsSAP IBPDatabricks

Planning something similar?

Tell me about it on a short call. New projects can start within 2 weeks