HyperAIHyperAI

Command Palette

Search for a command to run...

Weather Forecasts Must Also Be “Tailored to Local Conditions”: ProtoCast Lets AI Distinguish Regional Weather Evolution and Improve Data-Driven Forecasting

Featured Image

Suppose at 8 a.m., the temperature in two cities is both 20°C. One place has risen from 17°C in the early morning, while the other has fallen from 23°C. To forecast the noon temperature, a forecaster would look at the weather in the two places over the past few hours. If we switch to AI, can we tell what it referenced for each of the two cities when making its forecasts?

A research team from Nanyang Technological University, Singapore, and Nanjing University of Information Science and Technology proposed ProtoCast. Based on records of temperature, wind, and other variables over the past 12 hours, it forecasts the weather hour by hour for the next half day. After a forecast is produced, one can also check which categories of historical trends the model referenced when forecasting temperature for a given place. In tests over the Northwest Pacific typhoon region, the near-surface temperature it forecast differed from the reference value by 0.48°C on average, while the best-performing baseline model was 0.60°C.

Figure 1 Each gray dot represents a temperature record for a certain place over the past 12 hours, and the diamond represents the record used for this forecast. Which references did the model select for it? The two dashed lines in the figure connect to No. 27 and No. 31, which have the highest weights. For ease of observation, only three dimensions are shown in the figure. 

Paper title:

Interpretable Prototype-Conditioned Adaptation for Weather Forecasting

Authors:

Zhixuan Li¹, Hao Jiang¹, Chen Hui², Kai Geng², Weisi Lin¹ (Corresponding author)

Affiliations:

¹Nanyang Technological University, Singapore ²Nanjing University of Information Science and Technology

Paper link:

https://hyper.ai/papers/2611.25848**Project homepage:**

https://zhixuanli.github.io/projects/li2026protocast/## 1 What is a weather prototype?

To find a reference for today's weather, which day's record should you look up? Today's wind in a coastal city may be very similar to yesterday's, but the temperature change may be closer to that of a certain day last week. ProtoCast divides weather maps into many small regions, each containing 4×4 grid points. In this way, the temperature and wind at each place can each find their own references.

Take temperature as an example. During training, the model reads weather records from many places over consecutive 12-hour periods. It groups records with similar features together and uses the typical features of each group as references. The paper calls such references “prototypes.” Each prototype has an ID. In global forecasting, ProtoCast provides 64 selectable prototypes for each weather variable, and for regional forecasting it provides 32 selectable prototypes. To find out what kind of weather a certain ID represents, you can retrieve the several historical records closest to it and see how the temperature changed at those times.

2 Now that the references are found, how are they used for forecasting?

To forecast temperature for a place, ProtoCast first reads the local weather over the past 12 hours. It looks both at the general conditions during this half day and at what changed between the beginning and the end.

Specifically, ProtoCast selects a small number of prototypes and assigns a weight to each prototype. For temperature, for example, ProtoCast first computes a set of forecast results for each future hour, and then each selected prototype has a way to adjust this set of forecasts. Finally, the model combines several adjustments according to the weights to obtain the complete forecast result. Along the time dimension, different times use the same set of prototypes, but the forecast initially computed for each hour is different, so the forecasts are adjusted accordingly based on the prototypes and weights.

Next, the model combines the adjusted temperature, wind, and other information to calculate, for each future hour and each grid point, how much higher or lower the temperature will be than the most recent observation. Adding the temperature of the most recent observation gives the forecast value for that hour.

There is another detail in training. After each round of training, the features the model extracts from the same weather segment may change, and the prototypes also need to be updated accordingly. ProtoCast fixes a selection of 2,048 historical time periods as the prototype library, taking 4 regions from each period. The prototype library is updated during training, and after training ends, the prototype library used for forecasting is fixed.

3 How accurate are the temperature and wind forecasts for the next 12 hours?

The research team conducted two types of tests: global and regional weather forecasting. The global test used the WeatherBench dataset, with grid points spaced 5.625° apart; the weather variables included near-surface temperature, relative humidity, wind, and total cloud cover. The regional test used the ERA5 reanalysis dataset, covering the Northwest Pacific and adjacent East Asia. Grid points were spaced 1° apart, and the comparison included sea-level pressure, east-west and north-south wind components, and temperature at 2 meters above the ground.

Each test compared 4 groups of weather variables, using 4 metrics for each group. Among the 16 metrics in the global test, ProtoCast ranked first on 13. In the 16 metrics of regional forecasting, ProtoCast ranked first on all of them.

Table 1 shows the comparison results for temperature at 2 meters above the ground. If the reference temperature is 20°C, forecasting 19°C or 21°C both count as an error of 1°C. Averaging these differences across forecasts, grid points, and the next 12 hours gives the “mean absolute error” in the table.

Table 1 How large is the average difference in near-surface temperature forecasts for the global and typhoon regions?

In addition to the overall results on the test set, we can also look at a specific forecast case. At 23:00 UTC on November 7, 2018, both models forecast the global 10-meter wind field 12 hours later. The two wind speed maps look fairly similar, but even if the wind speeds are the same, the wind directions may differ. The research team separately compared the east-west and north-south wind components. In this forecast, Met²Net’s global mean absolute error was 0.9295 m/s, and ProtoCast’s was 0.8162 m/s.

Figure 2 The second row is the 10-meter wind speed forecast at 11:00 UTC on November 8. In the first row, the color of each grid point represents the average absolute error of the east-west and north-south wind components; the deeper the blue, the larger the error. See more case studies on the project homepage

1 How many kilometers was the typhoon center position forecast off by?

The team also tested ProtoCast’s performance on the typhoon center position tracking task. The research team started from the known position before the typhoon forecast initialization, tracked the low-pressure center on the forecast sea-level pressure map, and then compared it with the center on the ERA 5 pressure map at the same time (as Ground Truth). The distance between the two positions in kilometers was counted as the forecast deviation in kilometers.

First, look at Typhoon Doksuri in 2023. Figure 3 contains 10 forecasts, reissued every 6 hours. In the left panel, each time a group of points is added, showing the typhoon center forecast 3 hours ahead from that initialization, while the right panel compares the forecast deviation errors of the two methods hour by hour. In the right panel, at hour 3, ProtoCast was off by 33.9 km on average, and Met²Net by 63.9 km. Comparing hours 1 to 12 separately, ProtoCast had a smaller average position error across all these forecasts and tracked the typhoon center position more accurately.

Figure 3 The black diamonds in the left panel are Ground Truth, with positions taken from the ERA5 pressure map. Hollow circles are ProtoCast forecasts, and hollow triangles are Met²Net forecasts. Each point in the right panel is the average error of 10 forecasts at the same lead time.

For Typhoon Mawar, the team made 16 consecutive forecasts, with TAU as the comparison model. At hour 3, the two curves almost overlap, and both models were off by about 27 km. Looking further right to hour 12, ProtoCast was off by 61.9 km on average, and TAU by 68.3 km. See the typhoon tracking on the project homepage.

Figure 4 Each group of points in the left panel corresponds to the position at hour 3 after one forecast initialization. Black diamonds are Ground Truth, with time in UTC. The right panel, from left to right, shows hours 1 to 12 into the future; each point is the average of 16 forecasts.

2 Making predictions traceable: What did the model reference for this temperature forecast?

Let’s look at a specific case. In Figure 1, the hollow black diamonds correspond to the temperature forecast for an area near the west coast of South America. On August 4, 2018, the local temperature first dropped and then warmed slightly at the end. The black line in Figure 5 records the temperature difference of the average temperature in this area over the 12 hours before forecast initialization: it starts at 11.76°C and ends at 11.60°C, dropping only 0.16°C overall.

Which type of weather did the model mainly reference? For the black line in Figure 5, the corresponding prototypes are a total of 6 records from prototypes 27 and 31. Specifically, prototype 27 (the three purple lines in the figure) has the highest weight, accounting for 87.7%. The three records show temperature drops of about 0.72°C, 0.95°C, and 0.40°C, respectively. The model also referenced prototype 31 (the three cyan lines in the figure), in which temperatures all rose slightly, with a weight of about 11.8%. These prototypes were used at inference time to correct the model’s original predicted values and obtain more accurate weather forecast results.

Figure 5 Each line uses the last temperature as zero. If the left end is above zero, it means the beginning was warmer than the end. Besides prototype 27, this time 11.8% of the weight went to prototype 31, and about 0.5% went to prototype 1.

In Figure 5, the three historical records close to prototype 27 all start warm and end cold. If we switch to humidity, wind, or cloud cover, can prototypes also help recognize similar patterns? The research team compared four weather variables in the global test set, each with about 2.24 million segments. For each prototype, they first looked at the records matching it, then found a control group of records comparable in month, latitude, and local time period. They drew an average line for each group and checked which group’s curves were closer to their own average line, indicating that this group’s curves were more easily described by the prototype.

As a result, the prototypes were most helpful for predicting the trends of air temperature and relative humidity. Compared with the control group, after grouping by prototype, the deviation of the temperature curve from the group mean was 26.4% smaller, and that of relative humidity was 29.7% smaller. The reduction for 10-meter wind was 8.8%, and for total cloud cover (TCC) only 2.0% (Figure 6). In other words, knowing that two weather segments matched the same temperature or humidity prototype often reveals similar rise-and-fall processes over the past half day. For total cloud cover, the prototypes provided much less help, indicating that cloud changes are more diverse.

Figure 6 The longer the horizontal bar, the more similar the historical trends within the same group are to each other than in the control group after grouping by prototype. The changes in air temperature and relative humidity are the most obvious.

6 Summary

Why is ProtoCast's forecast interpretable? After obtaining ProtoCast's weather forecast for a location, researchers can check which prototypes the model selected for that location and how much weight each was given when combining the adjustments. They can also put the corresponding historical records together with the local weather to see where the references selected by the model resemble the local conditions.

In the two tests, global and typhoon-region, ProtoCast's near-surface temperature errors were 16.9% and 20.4% lower than the best control model, respectively. The researchers also fixed the model parameters and examined the effect of the selected prototypes separately, finding that these adjustments reduced local temperature forecast errors on average. Next, the team plans to apply existing prototypes across tasks to new forecasting tasks and try to adapt the prototype library to local conditions, to see whether some retraining work can be saved, thereby providing a weather prediction framework with generalization and growth capabilities.