TL;DR: I trained a small neural network to fix systematic errors in a weather forecast. It looked great when scored against a reanalysis dataset (ERA5), but much less impressive against real weather stations, and a very simple baseline beat it. The main lesson was how much the choice of "ground truth" matters.
What I built
A small Residual U-Net (1.77M parameters) that corrects NOAA GFS 2 m temperature and 10 m wind speed over Southeast Asia (0–30°N, 90–130°E, 0.5° grid). I trained it on a 4 GB laptop GPU (RTX 3050). It is part of a larger hobby project: a 3D web globe of live natural hazards and weather forecasts, but this post is about the ML and the evaluation.
Setup
• Inputs: GFS fields + elevation + land-sea mask + local neighborhood stats (18 channels) • Target: ERA5 minus GFS (the model predicts the forecast error), 00Z cycle, lead times 12–120 h • Time-based split with 5-day gaps to avoid leakage: train 2022–2024 (273 init dates), validation 2025-H1 (44), test 2025-07 to 2026-11 (125). A 4-day stride between init dates. • Baselines: raw GFS, per-grid/month/lead climatological bias, LightGBM. ECMWF IFS and AIFS (an ML model) as references.
Result 1: against ERA5 (the training target)
• 2 m temperature RMSE: 1.44 → 0.80 °C (-44%) • 10 m wind RMSE: 1.64 → about 1.2 m/s (-26%, with a guard that stops the model from damping strong winds)
Looked great.
Result 2: against real weather stations
I then checked against NOAA GHCNh station observations (406 temperature stations, 369 wind stations), using a paired block bootstrap over whole forecast days (2,000 replicates) because stations on the same day are correlated.
• The model is closer to the observations than raw GFS, but the improvement shrinks to roughly 7–15% depending on variable and region (temperature about 14–15%, wind across the whole box 12%, wind at 7 Vietnamese airports 7%) • Statistically tied with ECMWF IFS across the whole region, and behind AIFS • A simple baseline, subtracting each station's average GFS error from 2022–2024, beat my U-Net on both variables
Why: the U-Net inherited the systematic offsets between ERA5 and surface stations. ERA5 is a reanalysis, not ground truth, and it also assimilates those stations, so it is not independent of them.
Other findings
• Verification caught a real problem: at hours the model never saw in training (06Z/18Z), it made Vietnam afternoon wind worse (+0.135 m/s, 95% CI [0.055, 0.214]). I added a guard that switches the correction off at those hours. • An exploratory LightGBM trained directly on station observations, evaluated on 20% of stations held out completely, did better on unseen stations (temperature 1.43 °C, wind 1.82 m/s). That suggests the ERA5 target was the bottleneck, not the architecture. (Exploratory only, not integrated.)
Limitations
• Test valid times are only 07:00 and 19:00 local time, so daily max/min temperature is not covered • Vietnam wind verification rests on only 7 airports • Trained on GFS v16-era data, so it may drift after model upgrades • Not an official forecast and not for safety decisions
Questions for you
- Are there better ways to handle the mismatch between a gridded reanalysis target and point observations?
- Any suggestions for spatial cross-validation with ~400 stations?
- Would you expect a CNN trained directly on station data to beat the LightGBM here?
Code, model card and full report (MIT): https://github.com/swagduck/ML_natural
Built with an AI coding agent under my direction; I wrote the specs, designed the evaluation and checked the results myself.