SystemBranch, Cash & Contact Center

Evaluate · forecast accuracy

Forecast backtesting for ATM cash: replay last quarter first

Forecast backtesting replays a forecast on withdrawals that have already happened. For ATM cash that means a closed quarter, machine by machine, with the misses scored by day type and set against what the standing orders would have done. This is the protocol, the error measures and the traps, with ATM & Branch Cash Forecasting's own accuracy screen as the example.

Updated · 13 min read

See one case, screen by screen →
Watch with transcript →

Forecast backtesting means replaying a forecasting method over a period that has already closed, giving it only the data it would have had at the time, and comparing what it forecast with what happened. For ATM cash, where the forecast decides how much each ATM, recycler and branch vault is loaded before its next armored-carrier visit, it is the only way to settle whether a forecast is good enough to size real loads: replay a closed quarter and compare the forecasts with what the machines actually paid out. Botminds' ATM & Branch Cash Forecasting is built to be tested that way, and it keeps testing itself: every morning its Challenger agent compares yesterday's forecasts with actual withdrawals and questions any machine that missed by more than the bank's threshold.

The product examples on this page come from a fictional sample bank, Corvane National Bank, as its Ohio–Indiana region runs through the solution. The published accuracy figures come from peer-reviewed studies, cited by DOI where they appear; every other calculation is ours and says so.

What published ATM cash forecasting studies report, and why the numbers do not compare

18.44%

SMAPE, best model on the 111 NN5 ATM series, after clustering machines by weekday pattern

EJOR 2014

7.99%

SMAPE, forecasting 2,040 ATMs in Pakistan one by one

JIFS 2021

6.64%

SMAPE, the same model on clusters of similar ATMs

JIFS 2021

Venkatesh, Ravi, Prinzie and Van den Poel, European Journal of Operational Research 232(2), 2014; Rafi, Wahab, Khan and Raza, Journal of Intelligent & Fuzzy Systems 41(6), 2021, on 18 months of data from six institutions. Different data, horizons and targets: a lower number in one study is not a better forecaster than a higher number in another.Source: doi:10.1016/j.ejor.2013.07.027; doi:10.3233/JIFS-201953

What an ATM cash forecast has to get right before it is tested

ATM cash forecasting is a demand forecast with a deadline: the total each machine will pay out between this load and the next visit, by denomination. It has to be right over that whole window, not on an average day, because a machine that runs dry on Sunday afternoon has failed even if its weekly total was close.

That shapes how it should be tested. A forecast is good if, used to size loads, it leaves less cash idle than the standing orders it replaces without running more machines dry. Accuracy statistics are a means to that end. A backtest that reports one error number and nothing about idle cash and cash-outs has measured the wrong thing.

How accurate is ATM cash forecasting?

The peer-reviewed studies cited here report average errors from about 6% to about 18% in symmetric mean absolute percentage error, depending on the data and the method; we found no published benchmark for U.S. banks. The NN5 competition data are "111 time series representing daily cash withdrawal amounts at ATM machines" (Andrawis, Atiya and El-Shishiny, 2011), roughly two years each from cities in the UK, with 56 days to forecast (Ben Taieb et al., arXiv preprint). On that data the best model in a 2014 study "yielded the best result of 18.44% symmetric mean absolute percentage error (SMAPE)", after first clustering machines with similar day-of-the-week patterns (Venkatesh et al., 2014).

A 2021 study of 2,040 ATMs at six Pakistani financial organizations reported "an average of 7.86/7.99 values for MAPE/SMAPE errors on individual ATMs and average of 6.57/6.64 values for MAPE/SMAPE errors on clusters of ATMs" (Rafi et al., 2021). Two lessons travel from both studies. Grouping machines that behave alike improved the forecasts in each. And the numbers cannot be lifted into a vendor comparison: they depend on how far ahead each study forecast, whether it forecast withdrawals or replenishments, and how noisy its machines were.

We found no government, academic or non-profit source that publishes U.S. figures for ATM forecast error, average load size or how often machines run out. A vendor's accuracy claim therefore has nothing public to be checked against, which is the strongest argument for testing on your own machines.

How do you measure forecast accuracy for ATMs? Pick the denominator first

Measure the miss against something stated: the forecast, the actual or their average. The same miss can be reported three ways, and the three numbers are far apart. Take the sample bank's hospital ATM on Wednesday, October 28: forecast $14,200, actual $21,860, a miss of $7,660.

One $7,660 miss, three accuracy numbers

As a share of the forecast
53.9%
Symmetric (SMAPE): of the average of forecast and actual
42.5%
As a share of the actual (MAPE)
35.0%
Our arithmetic on the fictional sample bank's ATM 0417, Wednesday, October 28, 2026: forecast $14,200, actual $21,860. The product's own screen reports this miss as +54%, a share of the forecast.

Each denominator answers a different question. A miss as a share of the forecast tells the cash analyst how much the load was short. A miss as a share of the actual, the classic MAPE, tells the forecaster how wrong the model was about demand, and it explodes on days with very low withdrawals. SMAPE, the measure the NN5 competition was scored on, splits the difference and caps the error at 200%. None is wrong; mixing them is. A vendor reporting 12% and a bank measuring 16% may be describing the same forecasts.

Three ways to state one miss, and the measure that decides

MeasureFormulaWhat it tells you
Miss against the forecast(actual − forecast) ÷ forecastHow short or long the load was. Read by the cash analyst.
MAPE|actual − forecast| ÷ actualHow wrong the demand estimate was. Unstable on quiet days.
SMAPE|actual − forecast| ÷ ((forecast + actual) ÷ 2)Symmetric; the measure the NN5 competition and the studies above report.
Moneyidle cash, cash-out hours, emergency runsWhat the error costs; the measures that decide the business case.
Definitions as commonly written in the forecasting literature. Averages of the first three are taken across machines and days; any report should state which machines, which days and which horizon.

What is forecast backtesting, and why last quarter?

Backtesting treats the past as if it were the future: on each day of the replay the model sees only what existed that morning, forecasts the days that follow, and is scored once they have happened. For ATM cash, a closed quarter is the natural unit, because it holds every kind of day a forecast must handle at least once: paydays, benefit dates, a federal holiday or two, a local event, a machine fault.

The quarter must be closed and the replay must be honest. Closed means the withdrawals, loads, returns and carrier visits are final. Honest means no information from after each forecast day leaks into it: not a later fix to a holiday calendar, not a machine's later relocation, not the knowledge that a payday moved. A forecast scored with hindsight it would not have had will look better in the backtest than it ever will on the truck.

A backtest protocol for ATM cash forecasting, step by step

StepWhat to doWhy
1. Choose the quarterThe last closed quarter, every machine and vault in one region.Every day type appears; the region is small enough to inspect by hand.
2. Freeze the inputsFor each forecast day, use only withdrawals, calendars and notes dated before it.Leakage flatters the forecast.
3. Forecast to the visitForecast each machine from each load to its next scheduled visit, by denomination.That is the window a load must cover.
4. Size the loadsApply the same safety stock, cassette and strap rules the bank will use live.Accuracy matters only through the load it produces.
5. Replay the standing ordersRun the same quarter on the loads actually sent.The comparison the bank is deciding on.
6. Score by day typeReport errors for ordinary days, paydays, benefit dates, holidays and events separately.An average hides the days that cause cash-outs.
7. Score the moneyIdle cash, would-be cash-outs, emergency runs and limit breaches, both ways.The business case is in these, not in the error rate.
Our protocol. It is the test question 8 of the buyer's checklist asks for, and the one we propose running on a bank's own data before any forecast sizes a real load.

Score ATM cash forecasting by day type, not by the average

Forecast errors cluster on the days that matter, so an average across a quarter flatters any model that handles ordinary days well. Score each day type on its own, and look hardest at the ones that come with a calendar: benefit dates, paydays near a machine, federal holidays and local events.

The sample bank's hospital ATM shows why. On two Wednesdays two weeks apart it missed by +49% and +54% against its forecast, $13,900 against $20,700 on October 14 and $14,200 against $21,860 on October 28. Spread across a quarter of ordinary days, those two misses barely move an average. In the replay they are the signal: the hospital had moved its payday to Wednesdays, the branch manager had noted it, and the forecast had not yet learned it. Two misses on two Wednesdays, two weeks apart, are a pattern to explain, not noise to average away.

Holidays need their own row for a reason specific to cash. The Federal Reserve Banks close on federal holidays such as Columbus Day and Veterans Day (FedCash holiday schedule), so no currency moves to or from them, while ATMs keep paying out. A forecast that is accurate on a holiday can still produce a bad order if the order assumed a delivery that day.

The trap in the actuals: a machine that ran dry

When a machine runs out, its recorded withdrawals stop, and the backtest's "actual" understates what customers wanted. Scored naively, a forecast that predicted the real demand looks too high, and the standing order that caused the cash-out looks accurate. A backtest has to mark those hours and treat demand in them as unknown, or estimate it from the same hours on comparable days.

The opposite trap is a spike that is not demand. The sample bank's ATM 0452 paid out $61,700 overnight against a forecast of $12,900. The solution's Challenger left the $48,800 spike out of demand and referred it to fraud operations, rather than letting it teach the forecast that the machine needs more cash. A backtest should make the same exclusions, and list them.

How far ahead should you forecast ATM cash?

Forecast as far ahead as the next scheduled visit, plus any delivery gap the calendar adds; for a machine visited Friday and Tuesday that is four days. Error grows with the horizon, so report it at the horizon the loads actually cover, not at one day, which is easier and less useful.

The sample bank's accuracy screen reports both. Across Ohio–Indiana, the agents' one-day forecast missed actual withdrawals by 11.8% on average on October 28; over four days, the horizon a Friday load covers, the average miss was 14.6%. The four-day number is the one that sizes Friday's loads, and the one a backtest should lead with.

Forecast accuracy, the machines the Challenger questioned, and overrides scored like forecasts

Forecast accuracy screen for the cash operations manager. Summary: the agents' one-day forecast missed actual withdrawals by 11.8% on average across Ohio–Indiana; the Challenger questioned 7 of 486 machines. Tiles show an 11.8% one-day average miss for October 28, a 14.6% four-day average miss, and 18% of loaded cash coming back unused in October against 41% on standing orders in July. A line chart shows the one-day miss over 14 days below a 15% line. A table lists the seven machines questioned yesterday with forecast, actual and the Challenger's finding. Another table counts October's 41 overrides by reason code and how many were closer than the agents. A list shows the agent versions in use.
ATM & Branch Cash Forecasting on the fictional sample bank. The overrides table scores people's changes against actual withdrawals exactly as it scores the agents.

After the backtest: shadow running and the morning check

A backtest earns a forecast the right to be watched, not trusted outright. The next step is to run it in shadow, forecasting live without sizing a load, and only then to let it size loads with people reviewing every change. The same discipline applies to each new version afterwards.

The sample bank's accuracy screen shows both habits. Forecast agent version 3.2 was released on October 5 after 14 days in shadow, with a four-day average miss of 14.6% against 16.1% for version 3.1. And every morning the Challenger compares yesterday's forecasts with actual withdrawals: on October 28 it questioned 7 of 486 machines, each with a finding, from a moved payday to a road closure that affected one day only.

People's overrides belong in the same scoring. In October the sample bank's analysts overrode 41 forecasts with a reason; 17 of them turned out closer to the actual withdrawals than the agents had been, 9 of the 17 on local knowledge. That is evidence for keeping people in the loop, and the reason an override that proves right about an event is proposed for the calendar.

Every driver of one forecast, and the Challenger's question that found a new payday

ATM 0417 forecast screen at the Halloway Medical Center lobby: a chart of cash in the machine from Friday's load to Tuesday's visit, with the proposed $120,000 load leaving $14,000 at the visit and the $80,000 standing order running out on Sunday at 3:00 p.m. A panel adds up the forecast of $106,000 from a base of $76,600 and drivers for a hospital payday, SSI on Friday, Halloween and Social Security on Tuesday. A forecast-by-day table and the Challenger's question list the two Wednesday misses of +49% and +54%.
ATM & Branch Cash Forecasting on the fictional sample bank. The two Wednesday misses are what a day-type backtest should surface.

Before a backtest result is believed

  1. Was the quarter closed and the data frozen per day?

    Any information from after a forecast day invalidates that day's score.

  2. Was the horizon the visit window?

    One-day accuracy does not size a four-day load.

  3. Is the denominator stated?

    A share of the forecast, of the actual or of their average gives three different numbers.

  4. Were cash-out hours marked?

    Recorded withdrawals understate demand when the machine was empty.

  5. Were spikes excluded and listed?

    An unexplained overnight surge is not demand to plan for.

  6. Is it scored by day type?

    Benefit days, paydays, holidays and events, each on its own row.

  7. Is it scored in money against the standing orders?

    Idle cash, cash-outs and emergency runs, both ways, on the same quarter.

Our checklist for reading any ATM cash forecasting backtest, including one of ours.

The drivers the day-type rows test are built step by step in ATM cash demand forecasting, worked through on one machine, and the calendar behind the benefit-day rows is set out in the benefit-day cash calendar for 2026–27. To run the replay on your own closed quarter, start from ATM & Branch Cash Forecasting.

Questions people ask

What is SMAPE?

SMAPE, symmetric mean absolute percentage error, divides each miss by the average of the forecast and the actual, so over- and under-forecasts are treated more evenly than in MAPE. It was the measure used in the NN5 competition on 111 ATM withdrawal series; the 18.44% reported in a 2014 study is a SMAPE.

What causes ATM forecast errors?

Mostly days the history does not explain: a payday that moved, a local event, a holiday that shifts benefit dates, a nearby machine out of service, or a machine that ran dry and hid its own demand. The sample bank's two largest questioned misses on October 28 were a hospital payday and an overnight pattern referred to fraud operations.

How do holidays affect ATM withdrawals?

A holiday moves when benefits and wages arrive and closes the Federal Reserve Banks, so currency deliveries stop while machines keep paying out. When a Social Security or SSI date falls on a weekend or federal holiday it is paid on the preceding business day, which pulls demand forward.

How long should a backtest be?

At least a full quarter, so that every common day type appears, on a region small enough to inspect by hand. The model needs its own history before that quarter; the solution reads 24 months of withdrawals by hour and denomination.

Should people's overrides be scored too?

Yes, against the same actual withdrawals. At the fictional sample bank, 17 of 41 overrides in October were closer than the agents, most on local knowledge, which shows where people add information the data does not hold.

Is a 15% miss good?

It depends on the horizon, the machines and the denominator, which is why a single number cannot be judged alone. The 15% in the solution is the sample bank's own question threshold for a one-day miss, not a benchmark; the useful test is whether loads sized on the forecast leave less idle cash than the standing orders without more cash-outs.

ATM & Branch Cash Forecasting.
See it on your own files.

An agentic solution from Botminds. Forecast each machine by hour and denomination, size its load to the next visit, and check each limit before the order goes Book a demo, or explore how it works.