Home / Insights / AI and Machine Learning

AI and Machine Learning

Time-Series Forecasting Beyond Retail: Staffing, Energy and Capacity Planning

Most forecasting advice is written for retail demand. Staffing rosters, energy purchasing and infrastructure capacity raise different questions: what decision the forecast feeds, how far ahead you must commit, and whether running short costs more than running over.

TopicsAI and Machine LearningBusiness Operations and Integration

Key takeaways

  • Start from the decision, not the model: the commitment horizon and the relative cost of under- and over-forecasting determine almost every design choice.
  • Always build a simple baseline first, such as seasonal naive, and require any machine learning or foundation model to beat it on a rolling-origin evaluation at the horizon you actually use.
  • Forecast ranges, not single numbers. Staffing, energy and capacity decisions depend on how likely the high end is, so prediction intervals or quantiles matter more than the average error.
  • Pretrained time-series foundation models are now a credible option for many series with limited history, but they do not know about your rota rules, tariffs or planned launches, so they complement rather than replace domain inputs.
  • Plan for operations from day one: data checks, accuracy monitoring by horizon, a documented override process for planners and a retraining trigger.

Forecasting is often discussed as a retail problem: how many units of each product will sell next week. Many organisations face a different set of forecasting questions that matter just as much to cost and service. How many clinicians, agents or drivers should be rostered for each shift? How much electricity will a site or portfolio use tomorrow and next quarter? When will a database cluster, a warehouse dock or a support queue run out of headroom?

This article is for CTOs, operations leads and data owners who need forecasts that drive staffing, energy and capacity decisions. It explains how these problems differ from retail demand, what data each needs, how to choose between baselines, statistical models, machine learning and newer pretrained foundation models, how to evaluate forecasts honestly, and how to turn a forecast into a decision people trust. If you are working on product demand instead, our guide to machine learning demand forecasting for retail and distribution covers that case. PoliteTech’s machine learning development work, including predictive analytics, data pipelines and MLOps, follows the same decision-first approach described here.

How do staffing, energy and capacity forecasts differ from retail demand?

The mathematics overlaps with retail, but the decision context is different in three ways that change the design.

The forecast drives a commitment with a lead time

A roster is published weeks ahead; energy may be bought on forward contracts or committed in day-ahead schedules; servers, racks or warehouse space can take months to procure. The useful forecast horizon is set by that lead time, not by what is convenient to model. A model that is excellent one day ahead is of little use if the roster is locked four weeks ahead.

Errors are asymmetric

Understaffing a contact centre means long waits and abandoned calls; overstaffing means paid idle time. Running out of compute capacity can mean an outage; over-provisioning means wasted spend. Usually one side is much more expensive than the other, so the right forecast to act on is often a high quantile rather than the average.

Granularity and aggregation matter

Staffing needs intraday intervals by skill and site. Energy may be measured in half-hourly or hourly intervals per meter. Capacity planning may combine thousands of individual services into a few shared resources. Forecasts at different levels must add up sensibly, which is why the hierarchical forecasting methods covered in Hyndman and Athanasopoulos’s Forecasting: Principles and Practice are directly relevant here.

Action: for each forecast you plan, write down the decision it feeds, the commitment lead time, the time granularity and which error is more expensive. Those four facts form the specification.

What data and drivers does each type of forecast need?

History of the target is the starting point, but most of the useful signal in these domains comes from calendar effects and known future events.

ForecastTypical target and granularityCommon driversCommitment horizonCostlier error
Contact centre or service staffingContacts or workload per 15–60 minute interval, by queue or skillDay of week, time of day, public holidays, billing cycles, marketing campaigns, outagesDays to weeksUsually understaffing
Clinical or field workforceAppointments, referrals or jobs per day, by region and roleSeasonality, referral sources, school holidays, weather, contract changesWeeks to monthsUsually understaffing
Site or portfolio energy usekWh per half hour or hour, by meterTemperature, occupancy, operating hours, production schedules, holidaysDay ahead to quartersDepends on tariff and contract
Infrastructure capacityCPU, storage, requests or queue depth, daily peaksCustomer growth, releases, batch schedules, seasonal peaksWeeks to monthsUsually running out

Separate known future inputs from unknown ones

Holidays, opening hours and scheduled campaigns are known in advance and can be fed into a model for the forecast period. Weather is only known as a forecast itself, so energy models that use actual temperatures in testing will look better than they perform in production. Make sure every driver is available at the time the forecast would have been produced.

Clean the history before modelling

Outages, data-collection gaps, one-off events and changes in definitions distort history. A support queue merged with another queue, or a meter replaced mid-year, will look like a demand shift. Our article on anomaly detection covers methods for spotting such breaks, and a short log of known events is often just as valuable.

Action: build an event calendar with planners before touching a model. It usually explains a large share of the variation that people assume needs sophisticated methods.

Which forecasting methods should you consider?

There is no single best method. The right choice depends on history length, number of series, driver availability and how much explanation planners need.

ApproachStrengthsLimitationsGood fit
Naive and seasonal naive baselinesTrivial to build, easy to explain, surprisingly hard to beat on stable seriesNo drivers, no adaptation to trend changesAlways, as the benchmark
Statistical models (exponential smoothing, ARIMA, regression with calendar terms)Well understood, fast, produce prediction intervals, work with modest historyOne model per series, limited handling of many interacting driversTens to hundreds of series with clear seasonality
Gradient-boosted trees and other ML on engineered featuresHandle many drivers and series together, strong on intraday patternsNeed careful feature engineering and leakage control; intervals require extra workLarge numbers of related series with rich drivers
Deep learning models trained on your dataCan learn complex patterns across many seriesData-hungry, harder to explain and maintainVery large, mature datasets with dedicated ML capacity
Pretrained time-series foundation modelsZero-shot forecasts with little setup; useful for short histories and many seriesLimited knowledge of your business rules; behaviour on your data must be testedFast first forecasts, long tails of minor series, benchmarking

Where foundation models fit

Two well-known examples show the idea. Google researchers’ TimesFM paper describes a decoder-only model pretrained on a large time-series corpus whose zero-shot accuracy comes close to supervised models trained on each dataset. Amazon researchers’ Chronos paper tokenises scaled time-series values and trains language-model architectures on them, reporting zero-shot performance comparable to, and sometimes better than, models trained specifically on the target datasets. Both are probabilistic or support ranges, which suits planning work.

In practice we treat them as a strong extra benchmark and a quick way to cover many minor series, not as a replacement for domain inputs. A pretrained model does not know that a new contract starts next month or that the tariff changes in October.

Action: shortlist two or three approaches from the table, always including seasonal naive, and decide in advance how you will compare them.

How should you evaluate a forecast before trusting it?

Most disappointing forecasting projects were evaluated badly rather than modelled badly. The test must mimic how the forecast will be used.

Use rolling-origin evaluation

Standard shuffled cross-validation leaks future information into training. Forecasting: Principles and Practice recommends evaluation on a rolling forecasting origin: train only on data before each test point, move the origin forward, and average the errors. Scikit-learn’s TimeSeriesSplit implements the same idea and includes a gap parameter, which is useful when there is a delay between the forecast date and the period being forecast, as there is with a roster published weeks ahead.

Score at the horizon you use

Forecast error grows with horizon. If the roster locks four weeks ahead, report accuracy for the four-week-ahead forecast, not the next day. A model that wins one step ahead can lose at the horizon that matters.

Measure ranges and business impact

  • Point accuracy: mean absolute error or a scaled error, compared with the baseline.
  • Interval quality: how often actual values fall inside the stated 80% or 95% range. A range that is too narrow is dangerous for staffing and capacity.
  • Decision impact: replay past periods and estimate the staffing shortfall hours, energy imbalance or capacity breaches each method would have caused.

Agreeing these measures before training is part of a broader discipline described in our article on baselines and success metrics for machine learning projects.

Action: write the evaluation protocol, including horizons, interval coverage targets and a decision-impact replay, and get planners to sign it off before model work starts.

How do you turn a forecast into a staffing, energy or capacity decision?

A forecast on its own does not change anything. The conversion step is where most of the business value is created, and it should be designed as carefully as the model.

Staffing

Convert forecast workload per interval into required staff using handling time, target service level, shrinkage for leave and training, and rota rules. Use a high quantile of the workload forecast where understaffing is expensive. Produce a recommended roster that planners can adjust rather than a number they must interpret.

Energy

Feed forecasts into the purchasing or scheduling process the business already uses. Short-horizon forecasts can support scheduling flexible loads, such as moving batch processes or charging away from peak periods. Longer-horizon forecasts support contract volumes. Because the cost of error depends on tariff and contract terms, agree with finance which quantile to act on.

Capacity

Forecast peaks, not averages, and translate them into a date when headroom falls below an agreed threshold, with a range. “Storage likely to reach 80% between late October and mid-December” is more useful than a single date and gives procurement a planning window.

Keep forecasts consistent across levels

When teams, sites or services roll up into budgets, forecasts at each level should add up. Reconciliation methods from hierarchical forecasting prevent the familiar situation where every team’s forecast looks reasonable but the total does not.

For example, a regional home-care provider might forecast visits per day by area and role, convert them into required carer hours at the 90th percentile, and publish a draft roster four weeks ahead for coordinators to adjust. This is an illustration of the conversion chain, not a description of a specific client.

Action: map the full chain from forecast to published decision, and identify who can override each step and how overrides are recorded.

What does a production forecasting system need?

A forecast that is accurate in a notebook and then quietly degrades is worse than a simple spreadsheet people understand. Production readiness is mostly about data and process.

Step-by-step implementation

  1. Data pipeline: scheduled ingestion of the target series and drivers, with checks for missing intervals, duplicates and definition changes.
  2. Baseline in production first: ship the seasonal naive forecast end to end, including the decision conversion and planner interface, before improving the model.
  3. Model upgrade: introduce the better method only when it beats the baseline on the agreed protocol.
  4. Planner overrides: let planners adjust forecasts for information the model cannot see, and record the reason. The judgemental forecasting chapter of Hyndman and Athanasopoulos’s book discusses how to combine human judgement with statistical forecasts.
  5. Monitoring: track accuracy by horizon, interval coverage and override frequency. Rising overrides are an early sign that the model is drifting from reality.
  6. Retraining: retrain on a schedule and on triggers such as a sustained accuracy drop or a known structural change.

Our guide to MLOps for small teams covers versioning, monitoring and retraining patterns that apply directly to forecasting pipelines.

Action: agree who owns the forecast in production, a planner, an analyst or an engineer, and what they do when monitoring raises an alert.

What are the costs and risks, and how do you get started?

Cost drivers

  • Data work: usually the largest effort, especially joining workload, rota, meter or monitoring data with event calendars.
  • Number of series and granularity: intraday forecasts for many queues or meters need more compute and more careful monitoring than weekly totals.
  • Decision integration: connecting forecasts to rostering, purchasing or capacity-planning tools often costs more than the model.
  • Operations: monitoring, retraining and supporting planners continue after launch.

Risks

  • Leakage: using information in testing that would not have been available at forecast time, such as actual weather.
  • Structural breaks: new contracts, mergers or policy changes that make history less relevant. Foundation models and statistical models alike will miss them unless told.
  • False precision: presenting single numbers where ranges are needed.
  • Loss of trust: planners who are not involved will override everything, which wastes the investment.

Getting-started checklist

  • Decision, lead time, granularity and costlier error documented for each forecast.
  • Event calendar built with planners.
  • Seasonal naive baseline running end to end.
  • Rolling-origin evaluation at the commitment horizon, including interval coverage.
  • Decision-impact replay on at least one past season.
  • Override process and monitoring dashboard agreed.
  • Retraining schedule and triggers defined.

Action: choose one forecast where the decision is clear and the data is accessible, and take it through the whole checklist before starting a second.

Frequently asked questions

How much history do we need to forecast staffing or energy?

Enough to cover the seasonal patterns that matter. For weekly and daily patterns a few months may be workable; for annual seasonality you ideally want at least two years. Pretrained foundation models can help when history is short, but test them on your own data first.

Should we use a time-series foundation model instead of building our own?

Use one as a benchmark and for series with limited history. Keep a baseline and, where you have strong drivers such as rota rules, temperature or campaign calendars, compare against models that use them. Choose on rolling-origin results at your real horizon.

Why do our forecasts look accurate but planners still override them?

Often because the evaluation measured next-day accuracy while planners commit weeks ahead, or because the model ignores events planners know about. Measure at the commitment horizon, add known events as inputs and record override reasons to find gaps.

What accuracy should we expect?

It depends on the series, the granularity and the horizon, so there is no meaningful generic figure. Set targets relative to a seasonal naive baseline and judge success by decision impact, such as fewer understaffed intervals.

Can forecasting work with our existing workforce management or energy tools?

Usually yes. Forecasts can be delivered through APIs or batch files into existing tools. Integration scope should be agreed early because it is often a major cost driver.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Hyndman and Athanasopoulos: Forecasting: Principles and Practice, 3rd edition — accessed 9 November 2026. Hierarchical and grouped forecasting and judgemental forecasting as established methods.
  2. Forecasting: Principles and Practice: Time series cross-validation — accessed 9 November 2026. Rolling forecasting origin evaluation, horizon-specific accuracy and using cross-validated rather than residual accuracy.
  3. scikit-learn: TimeSeriesSplit documentation — accessed 9 November 2026. Time-ordered cross-validation and the gap parameter for forecast lead time.
  4. Das et al.: A decoder-only foundation model for time-series forecasting (TimesFM), arXiv — accessed 9 November 2026. Pretrained time-series model with zero-shot accuracy close to supervised per-dataset models.
  5. Ansari et al.: Chronos: Learning the Language of Time Series, arXiv — accessed 9 November 2026. Tokenised time-series approach with probabilistic forecasts and competitive zero-shot results.

Which staffing, energy or capacity decision would a better forecast improve first?

Share the decision and the data you have. We will suggest a baseline-first plan with an evaluation protocol your planners can sign off.