Retraining a Demand Forecast Through Seasonal Change

Problems with the current demand forecast led to spoiled stock and empty shelves in a regional grocery chain. Devox Software rebuilt the model’s retraining loop so it notices seasonal drift and keeps planners in control.

About the client

A regional grocery retailer in the US with 140+ stores, with a third of revenue from fresh produce and dairy products, heavily relied on a demand forecast because even a one-day miss brought waste or lost sales.

About the Product

The current chain’s internal demand forecasting platform predicted daily sales for about 8,000 SKUs, fueling replenishment and promotion planning. The client needed to modernize its forecasting workflow by improving seasonal features, automating model retraining, and introducing validation and monitoring mechanisms to maintain accuracy during demand fluctuations.

Introduction

The client used their legacy forecast for several years, and it performed well for most of the year. But when the season hit, the prediction quality dropped. The model kept projecting last season’s patterns onto a market that had already moved on. That’s why retraining was a manual job done once a quarter, so each correction came weeks too late.

The client asked Devox Software to make the model adapt to seasonal change on its own, without the data science team rebuilding it by hand every quarter.

Project Team

1 Project Manager

1 Business Analyst

1 ML Engineer

1 Data Engineer

1 MLOps Engineer

Challenges

Accuracy collapsed at season transitions with forecast error (WMAPE) rising from about 18% in stable months to over 35% in the first weeks of a new season. Despite attempts at manual retraining, the client’s team found out the model had degraded from planners’ complaints and write-off reports.

Plus, each quarterly retrain took 2-3 weeks of a data scientist’s time, and there was no consistent way to validate a new model before it replaced the old one. And still, the model ignored weather, local events, school calendars, and moving holidays.

Tech Stack

Data & pipelines: Snowflake, dbt, Apache Airflow

Modeling: Python, LightGBM, pandas, scikit-learn

MLOps: MLflow (experiment tracking and model registry), Evidently AI (drift monitoring), AWS SageMaker

Serving & integration: FastAPI, Docker, REST integration with the client’s ERP

Reporting: Power BI

Solution

  1. Audit and baseline. We started by finding exactly where and why the model failed by reviewing forecast history with actual sales.
  2. Seasonal feature engineering. We added the context the model had been missing:
  • Weather forecasts and anomalies (temperature agaiWhen an agreed threshold is crossed, it raises an alert and starts a retraininnst the seasonal norm)
  • Holiday features that track moving dates
  • School calendars
  • Local events
  • Rolling trend features that react faster to a change in regime
  1. Drift detection. We configured Evidently AI to monitor input-feature distributions, prediction stability, and forecast accuracy once actual sales data became available. Significant deviations generated alerts and initiated additional retraining runs when predefined quality and performance criteria were met.
  2. Automated retraining pipeline. Airflow now runs a weekly rolling-window retrain, plus extra retrains whenever drift triggers one. Each candidate model is checked with time-based backtesting on the most recent weeks, so it is judged on how well it handles the newest conditions.
  3. Champion-challenger deployment. Candidate models were evaluated against the production champion using time-based validation and shadow predictions. Approved versions were tracked in the MLflow Model Registry and deployed through the established serving workflow, with previous versions retained for rollback.
  4. Planner-in-the-loop. We built a Power BI dashboard showing forecast accuracy by category and store cluster, recent demand trends, and active drift alerts. Planner overrides were logged alongside original forecasts and actual outcomes, creating a feedback history for analyzing recurring forecast gaps and improving subsequent model iterations.

Results

  • 31% lower forecast error at seasonal transitions, with WMAPE decreasing from 35% to 24%
  • 22% reduction in fresh-category waste over the first full year, compared with the previous year’s equivalent period
  • 17% fewer stockout incidents during the holiday season compared with the equivalent period before implementation
  • Retraining reduced from a 2–3-week manual process to an automated pipeline completing in under 6 hours
  • 40% reduction in the rate of manual forecast overrides, reflecting fewer planner adjustments to model-generated predictions

Sum Up

Seasonal change happens every year, and a forecast that can’t adapt to it loses money every time. Devox Software turned a model built once into one that keeps learning: it detects drift early, retrains automatically, proves each new model before release, and keeps planners involved. The client now gets reliable forecasts all year round, not just in the calm months between seasons.

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.