What machine learning has changed in weather forecasting Image: National Science Foundation, public domain

What machine learning has changed in weather forecasting

A ten-day global forecast at the European Centre for Medium-Range Weather Forecasts takes about an hour on one of the largest supercomputers in Europe. In November 2023 a team at Google DeepMind published a model, GraphCast, that produced a ten-day forecast of comparable quality in under a minute on a single processor of the kind used to train language models. The model contained no equations of motion. It had learned the behaviour of the atmosphere from 39 years of past weather.

Forecasters had seen machine-learning claims before and were right to be sceptical. This one held up. By early 2025 the European Centre was running its own learned model, the AIFS, alongside its physics-based system, and issuing its forecasts to the public. The change is real, and it is also narrower than the headlines suggest.

What the models learn from

Every learned weather model so far has been trained on the same thing: a reanalysis. A reanalysis is the past weather as reconstructed by a physics-based model that has been nudged, every few hours, towards all the observations that exist for that time. The European Centre's reanalysis, ERA5, covers 1940 to the present on a global grid of about 31 km, with the state of the atmosphere at every hour. GraphCast was trained on ERA5 from 1979 to 2017. Pangu-Weather, published by a team at Huawei in July 2023, was trained on the same years. The models were shown the atmosphere at one moment and the atmosphere six hours later, over and over, until they could produce the second from the first.

This matters for two reasons. The first is that the learned models do not learn from the raw weather; they learn from a physics-based model's best estimate of it. If the reanalysis has a bias, the learned model inherits it. The second is that at forecast time the learned model still needs a starting state, and the starting state is the analysis produced by the physics-based system's data assimilation, the part of forecasting that turns millions of satellite, aircraft, balloon, and surface observations into a consistent picture of the atmosphere. The learned models have replaced the forecast step. They have not replaced the step before it, which is where most of the supercomputer's hour goes.

How they forecast

GraphCast treats the globe as a mesh of about a million points, each carrying the temperature, wind, humidity, and geopotential at 37 pressure levels plus a few surface fields. A neural network of the kind called a graph network passes information between neighbouring points and between points and a coarser mesh above them, so that a change in one place can influence a place far away within a few steps. It takes the atmosphere at two moments six hours apart and produces the next moment. Then it takes that output as input and steps again, 40 times, to reach ten days. The AIFS at the European Centre works on a similar idea with a different network design; it steps six hours at a time too.

Nothing in the network says that mass is conserved or that the wind must nearly balance the pressure gradient. Those regularities are in the training data, and the network reproduces them to the extent that it has learned them. This is why the early learned models produced forecasts that were slightly too smooth: when the model is uncertain, the safest answer in the least-squares sense is an average, and an average of many possible storms is a weak storm. GraphCast's authors noted it; the fields lose their sharpness after a few days. Later models were trained with objectives that penalize blurring, and ensemble versions, which produce many sharp forecasts instead of one smooth one, address it directly.

Where they win

The standard test compares a model's forecast of the 500 hPa geopotential height, the temperature, the wind, and the humidity against the later analysis, at every lead time out to ten days. On this test GraphCast beat the European Centre's deterministic forecast on about 90 % of the variables and lead times, and the margin grew with lead time. The AIFS does the same against its own physics-based sibling. For the tracks of tropical cyclones the learned models have been consistently better than the physics-based ones by a margin equal to several years of progress. The forecast of Hurricane Lee in September 2023, which several learned models placed in Nova Scotia nine days ahead, is the case people cite.

Speed changes what is possible. A model that runs in a minute can be run a thousand times, each from a slightly different start, and a thousand-member ensemble gives better probabilities than fifty. It can be run at every forecast centre in the world, including those that have never had a supercomputer. The European Centre's forecasts are already free under an open licence, and a national service in a small country can now run a global model of its own on a workstation.

Where they do not

The learned models are weakest where the training data are thinnest. Record events are, by definition, rare in forty years of reanalysis, and a model trained to minimize an average error has little reason to produce a value it has never seen. Studies of the 2021 heat in the Pacific Northwest, where temperatures exceeded the previous records by several degrees, found that the learned models underpredicted the peak more than the physics-based models did. The intensity of the strongest tropical cyclones is a related weakness: the track is right, and the central pressure is too high, partly because the reanalysis itself underestimates it at 31 km resolution.

Resolution is the other limit. A grid of 25 to 31 km does not see a thunderstorm, a sea breeze, or the difference between a valley and a ridge. The physics-based models that national services run over their own territory work at 1 to 3 km, and learned models at that scale are a research topic rather than a product. Precipitation, which depends on these small scales, is where the learned models are least ahead.

There is also the question of the climate. A model trained on 1979 to 2017 has learned an atmosphere with less water vapour and a cooler sea than the one it now forecasts. The physics-based model carries its physics into any climate; the learned model carries its training years. In practice the models are retrained as the reanalysis grows, and the drift over a decade is small compared with the day-to-day error, but it is a reason the two approaches are likely to coexist.

What has actually changed

The equations have not gone. The analysis that starts the forecast, the reanalysis that trains the model, and the high-resolution regional forecasts all run on them, and Lewis Fry Richardson's method of 1922 is still the method. What has changed is that the step from today's atmosphere to next week's can now be taken by a system that learned the step rather than one that computes it, and that the learned system is, for the medium range, better and about a thousand times cheaper. The European Centre's director described the AIFS at its launch as the start of a new chapter rather than the end of the old one, which is about right.

For a student, the practical consequence is that the physics matters more, not less. The learned models are judged by whether they respect it, their failures are explained by it, and the people who build them are, overwhelmingly, people who learned it first. Unit 12 of the masterclass covers the physics-based forecast from Richardson to the ensemble and ends with the learned models and how they are verified; the curriculum shows where it sits in the program. The free charts of both the AIFS and the physics-based model are at charts.ecmwf.int, side by side, and comparing them at day five is a good way to see for yourself what has changed.

Understand the weather properly

The Meteorology Masterclass: weekly units, quizzes, a final exam, and a certificate.
About the program