Demand Forecasting Measured Against a Pre-Launch Baseline

An ML demand-forecasting engine pilot for a 400+-store retailer, showed -31% errors and -24% stockouts against a pre-launch baseline.

About the client

An omnichannel retailer of home goods with 400+ stores and 6 distribution centers across the U.S. asked Devox Software to help reduce their operating costs with a custom demand-forecasting engine

About the Product

An in-house demand-forecasting engine was made to predict weekly sales for every SKU in every store and distribution center up to 12 weeks ahead. It helped to accurately optimize pre-holiday demand with fewer stockouts.

Through a dashboard fueled by ML forecasts fed into the client’s replenishment system, planners can see each item’s predicted demand and identify the main sales drivers behind it: price, promotions, seasonality, weather, and local events.

Introduction

In our experience, most forecasting projects’ accuracy depends on data pipelines and infrastructure more than on models. Moreover, the new model’s effectiveness is often compared with a wrong version of history. This project is not an exception. The client had already been through these versions. That’s why this time the CFO set one condition: no rollout until the new system beat the old process on numbers frozen before launch.

As Devox Software has built a similar forecasting engine before, we gladly took over this case. After we proved it worked, the client then scaled it to every store in their 400+ network.

Project Team

1 Delivery manager

1 Solution architect

3 Data scientists/ML engineers

2 Data engineers

1 Backend engineer

1 BI developer

1 QA engineer

worked during 9 months, straight from discovery to chain-wide rollout.

Challenges

  • Forecast planners knew better. Planners overrode 40% of system suggestions, so nobody knew whether the models or the people drove the results. It affected historical data accuracy and potentially harmed the model’s performance.
  • Errors were costly. Store stockouts on fast movers reached over 10%, while slow movers piled up in distribution centers. Promotions and holidays were additional challenges and the hardest periods to plan.
  • Inconsistent data. Systems held info on sales, promotions, prices, and inventory with different SKU codes and calendars.
  • No agreed way to measure success. An earlier vendor reported a large accuracy gain.

Tech Stack

Data platform: Snowflake, Databricks, Delta Lake

Pipelines and orchestration: Apache Airflow, dbt

Modeling: Python, LightGBM, Temporal Fusion Transformer (PyTorch), Prophet (benchmark)

MLOps: MLflow, Great Expectations, Docker

Serving and integration: FastAPI, REST connector to the replenishment system

Cloud: Azure

Reporting: Power BI

Solution

The first thing we’ve done is that Devox Software agreed on how success would be measured before writing any model code. Then, after all requirements, data pipelines, and infrastructure were ok, the team built the engine and ran a controlled pilot against that baseline. It was performed in several steps:

  1. Freezing the pre-launch baseline. Together with the client’s finance and planning leads, the team fixed the rules before development started:
  • Baseline: the planners’ final forecasts from the legacy process within 52 weeks of history records corrected according to the actual stockouts that could affect sales data.
  • Metrics: weighted MAPE and forecast bias at SKU-store-week level, plus stockout rate and days of inventory as business KPIs.
  • Design: We matched pilot stores and control stores in the data.
  1. Building a single data foundation. Data engineers moved sales, ads, prices, and inventory into one model in Snowflake and Databricks. They mapped 35,000+ SKUs to a single product hierarchy. Automated data-quality checks stopped any pipeline that failed validation.
  2. Forecasting models. The engine combines two models: LightGBM for SKUs with stable history and Temporal Fusion Transformer for promotions, seasonal items, and new products with volatile or incomplete demand patterns.
  3. Planner-facing explainability. The Power BI dashboard shows forecast trends, leaving room for planners to override a forecast provided they choose a reason. All overrides are logged and measured against the model, so the team can see which one adds value.
  4. Pilot and rollout. The pilot ran for 16 weeks, covering the Christmas season, 2025. After finance confirmed the results, the engine went live in iterations across all stores and distribution centers.

Results

Over the 16-week pilot, the new engine beat the frozen baseline on every agreed metric. Finance confirmed the results against the control stores which showed no significant change over the same period proving the change comes from the demand forecasting solution.

Metric Pre-launch baseline Pilot stores
Forecast error (weighted MAPE) 38% 26%
Forecast bias +9% +2%
Stockout rate, fast movers 10% 8.5%
Days of inventory on hand 41 35
Planner overrides 40% 12%

Following the phased rollout, the client projected approximately $4.2 million in annual financial benefits from improved inventory efficiency and reduced lost-sales exposure.

Sum Up

The client got a better forecast. However, along with it, It got proof and resilience for future. The same framework now runs as part of the engine, so every model update is measured the same way.

Book a call

Want to Achieve Your Goals? Book Your Call Now!

Having trouble booking? Open the booking page.

Contact Us

We Fix, Transform, and Skyrocket Your Software.

Tell us where your system needs help — we’ll show you how to move forward with clarity and speed. From architecture to launch — we’re your engineering partner.

Book your free consultation. We’ll help you move faster, and smarter.

Let's Discuss Your Project!

Share the details of your project – like scope or business challenges. Our team will carefully study them and then we’ll figure out the next move together.







    By sending this form I confirm that I have read and accept the Privacy Policy

    Thank You for Contacting Us!

    We appreciate you reaching out. Your message has been received, and a member of our team will get back to you within 24 hours.

    In the meantime, feel free to follow our social.


      Thank You for Subscribing!

      Welcome to the Devox Software community! We're excited to have you on board. You'll now receive the latest industry insights, company news, and exclusive updates straight to your inbox.