Subashanan Nair
All case studies
Published

Forecasting Lab

Can a pre-trained time-series model beat a tuned baseline on traffic sensors?

The answer

At 15 minutes, gradient boosting, the tuned model chosen on validation data, has 23% lower error than persistence (95% interval 16 to 30%). At 2 hours, Chronos, used with no tuning, has 26% lower error than gradient boosting, the better tuned model on validation data (95% interval 17 to 34%). Chronos also had the lowest error at every horizon, although its lead over gradient boosting at 15 minutes is small and was not tested.

Key numbers

23%

lower error than persistence for gradient boosting at 15 minutes.

95% interval 16 to 30%, from a block bootstrap over the test window.

26%

lower error for Chronos, with no tuning, than gradient boosting at 2 hours.

95% interval 17 to 34%, from a block bootstrap over the test window.

36

sensors scored at 5 horizons on the final 51 hours of data.

Two highways near Washington DC, so treat the ranking as local.

The evidence

Forecasts for the next two hours

Pick a sensor, then switch models on and off. The black line is the traffic that actually arrived. The model toggles also drive the error chart below.

Sensor
Models
Next 2 hours0255016:4517:4518:4519:4520:4521:4522:4523:4500:4501:4502:4503:45
Flow index per 15 minutes, where 100 is the busiest reading in the dataset. The shaded window is the forecast; the persistence line is dashed. Clock times are the dataset's own. Each sensor is shown at the test window where its flow changed most over two hours, so these windows are harder than average.

Mean absolute error in this window

  • Persistence15.6
  • Daily seasonal naive13.7
  • Gradient boosting3.4
  • Spatial MLP4.0
  • Chronos, zero-shot4.9

Error by horizon

Mean absolute error on the test window, all sensors, in flow index points. Lower is better.

051015 min30 min60 min90 min120 min
Model15 min30 min60 min90 min120 min
Persistence2.513.595.717.949.99
Daily seasonal naive4.744.744.744.754.74
Gradient boosting1.942.242.663.163.59
Spatial MLP2.403.023.634.104.54
Chronos, zero-shot1.882.092.332.552.67

How it was made

Data sources

SourcePublisherWhat we usedLicenceRetrieved
Dataset 608UCI Machine Learning RepositoryTraffic flow every 15 minutes at 36 highway sensorsCC BY 4.02026-10-13
chronos-t5-smallAmazon, via Hugging FacePre-trained model weights, used without tuningApache 2.02026-10-13

Method

  1. Split the 13 weekdays of readings in time order: 9 days to train, the next 2 to tune and the last 2 to test, with scaling fitted on training data only.
  2. Build features from each sensor's last 10 readings, the time of day, the weekday and the mean flow at its neighbouring sensors.
  3. Compare two baselines, the latest reading and the reading at the same time on the previous day, with gradient boosting and a spatial MLP, each tuned on the validation days only.
  4. Run Chronos zero-shot on each sensor's last 512 readings (about five days) up to the forecast time, with no tuning.
  5. Score every model on the test days at 15, 30, 60, 90 and 120 minutes, with 95% intervals from a block bootstrap. The charts show a quiet, a typical and a busy sensor, each at the test window where its flow changed most.

Limitations

  • One dataset from two US highways near Washington DC.
  • Only 13 weekdays of data, and the published series leaves out weekends. Chronos sees only the last 512 readings, about five days, at each forecast.
  • The test window is about two days, so the intervals describe only these two days.
  • No weather or holiday features.
  • MAE hides rare congestion spikes, which matter most to drivers.
  • Clock times are the dataset's own and may not match local time.

Check it yourself

Reproduce

cd analysis
uv sync --group chronos
uv run --group chronos python -m forecasting.cli --seed 42
cd .. && npm run dev
Commit
f678130
Manifest
analysis/outputs/forecasting-lab-manifest.json
Python
3.12.11
Last run
2026-10-13

The first run downloads the dataset and the Chronos weights. The tests need neither: uv run pytest.

Discuss

Have a model you think should be on this chart? Suggestions and corrections are welcome.

Discuss this study on GitHub