Four weather stations made Zurich’s heat map look too mild
A model can score well against weather stations and still miss the hottest parts of the city. Zurich shows why sensor placement matters as much as model choice.
4 stations: Zurich’s models predicted a 1.7–2.4°C range; all 117 low-cost sensors measured 4.4°C.
Four official weather stations can make a city’s hottest neighborhoods look less hot than they are. In Zurich, models trained on those stations predicted a narrower spread of urban temperatures than models trained with a wider network of low-cost sensors. The mistake was easy to miss: the station-only models still scored well when tested against the same kind of stations they had learned from.
That matters because a temperature map is not just a picture of weather. Cities use fine-scale heat estimates to decide where shade, trees, cooling centers and other protections may be most needed. If the monitoring network misses both the dense city core and the cool green edges, a model can draw a plausible map while flattening the very contrasts planners need to see.
The lesson from Zurich is not simply “add more sensors.” It is to ask whether the sensors already in place span the kinds of places the map is supposed to describe. A large network clustered in similar environments can still leave important parts of a city unseen.
The Science
Land use regression, or LUR, is a way to estimate environmental conditions across a landscape from measurements at selected sites. Researchers relate observed temperature to mapped features around each site: for example, building volume, tree canopy, elevation, slope, and distance to water. Once fitted, the model can estimate temperature at places with no thermometer.
The approach is appealing for urban heat. A conventional weather station network is designed to track regional weather, not necessarily the fine differences between a built-up neighborhood, a lakeshore, and a forested hillside. Low-cost sensors can fill gaps, but their usefulness depends on where they are installed and how well their readings represent the range of urban settings.
Martí Bosch and colleagues treated Zurich’s monitoring network as a sampling problem. They compared four reference automatic weather stations with a progressively larger network of as many as 117 low-cost sensors. The researchers fitted three types of model: multiple linear regression, which assumes predictors have linear effects; generalized additive models, which can represent curved relationships; and random forests, which learn flexible patterns from the data (Bosch et al., 2026).
They also mapped the city’s spatial predictors onto a 100-metre grid and used principal component analysis to summarize how environments differ. One major gradient ran from dense development toward elevated, forested terrain. The reference stations covered only a narrow portion of this environmental feature space. They missed the densely built extreme, and they also missed much of the vegetated, high-elevation edge.
The researchers then added low-cost sensors in stages: 39, 77, and finally all 117, alongside the four reference stations. At intermediate stages they tested five different sensor subsets, because which sensors were chosen could matter as much as how many were added. They modelled each location’s hourly temperature anomaly—how much warmer or cooler it was than the mean at the stations used in that model—and checked predictions using cross-validation.
Cross-validation repeatedly holds out some measurements, fits the model to the rest, and tests how well it predicts the held-out measurements. It is a standard way to assess predictive performance. But this study asks a sharper question: what if the held-out stations resemble the training stations, while the map must predict across environments that neither group adequately represents?
What They Found
The reference network’s blind spots lay at both ends of Zurich’s environmental gradient. The densely built, lakeshore settings were absent from the four reference stations, though eight low-cost sensors reached them. The elevated, forested end remained scarcely sampled even after the full low-cost network was included. In the mapped grid, 32.2% of cells lay beyond the highest reference-station value on the first principal component; 15.2% lay beyond the highest value among low-cost sensor sites.
These gaps matter because the extremes help set the city’s temperature range. With only four reference stations, the observed temperature-anomaly range was 3.2°C. It expanded to 4.2°C with 39 low-cost sensors and 4.4°C with all 117. The reference-only models predicted much narrower ranges: 2.4°C for both the linear and additive models, and 1.7°C for the random forest. They reproduced the cool end fairly closely, but placed the warm end 1.0°C to 1.3°C below the warmest reference-station observations.
Measured and predicted temperature-anomaly ranges in Zurich
Temperature-anomaly ranges reported for the reference stations, expanded station networks, and models trained on the reference stations or full network. The paper reports the reference-only model ranges and full-network model ranges; units are °C.
| Label | Value |
|---|---|
| Observed: 4 reference stations | 3.2 °C |
| Observed: 39 low-cost sensors | 4.2 °C |
| Observed: 117 low-cost sensors | 4.4 °C |
| MLR: reference stations only | 2.4 °C |
| GAM: reference stations only | 2.4 °C |
| RF: reference stations only | 1.7 °C |
| MLR: full network | 4.3 °C |
| GAM: full network | 5.2 °C |
The maps tell the same story spatially. With only reference stations, the modeled warm core and its contrasts with surrounding areas were muted. Once a third of the low-cost network was added, the city-center warm anomaly strengthened and cooler bands appeared along forested hills. Adding still more sensors changed the mapped patterns less. But the apparent stabilization is not proof that every extreme is captured: the full sensor network still barely sampled the coolest, highest terrain.
A third of the low-cost sensors recovered nearly the full predicted temperature range seen with the complete network. Yet results varied most between different sensor subsets at that one-third stage. In other words, 39 well-chosen stations could reveal much of the spatial contrast, but the particular 39 mattered. Sensor count alone cannot tell us whether the network is representative.
The conventional performance scores gave a more complicated signal. With reference stations alone, all three models looked similar: cross-validated R² was about 0.79, and root mean squared error (RMSE) was about 0.70°C. R² summarizes how much variation the model accounts for; RMSE describes the typical size of prediction errors, with larger mistakes penalized more strongly. Those respectable scores did not expose the compressed citywide temperature range.
As coverage broadened, the linear model’s scores worsened: its cross-validated R² fell to 0.57 and its RMSE rose to 1.00°C. The generalized additive model and random forest remained near their reference-only performance, at about 0.79 R² and 0.69°C RMSE with the full network. But those similar scores did not mean their maps were interchangeable. With full coverage, the random forest predicted a 4.1°C range, the linear model 4.3°C, and the additive model 5.2°C, compared with 4.4°C across the measured stations.
Cross-validated R² by model and network coverage
Approximate cross-validated R² values reported for each model trained on reference stations alone and on the full station network.
| Label | Value |
|---|---|
| MLR: reference only | 0.79 R² |
| GAM: reference only | 0.79 R² |
| RF: reference only | 0.79 R² |
| MLR: full network | 0.57 R² |
| GAM: full network | 0.79 R² |
| RF: full network | 0.79 R² |
Cross-validated RMSE by model and network coverage
Approximate cross-validated root mean squared error reported for each model trained on reference stations alone and on the full station network. Lower values indicate smaller errors.
| Label | Value |
|---|---|
| MLR: reference only | 0.7 °C |
| GAM: reference only | 0.7 °C |
| RF: reference only | 0.7 °C |
| MLR: full network | 1 °C |
| GAM: full network | 0.69 °C |
| RF: full network | 0.69 °C |
The models also disagreed about what mattered. With only four stations, the analysis could retain just three predictors, and selected building volume at a 250-metre radius, tree cover at 500 metres, and distance to the lake. Tree cover even appeared with a warming sign in that sparse fit. With all sensors included, nine predictors were selected. Building volume at 500 metres was the main warming predictor, while nearby tree cover, higher elevation, north-facing slopes, and distance from the lake were associated with cooling. The apparent simplicity of the four-station model was a product of what the stations could support—not evidence that only three factors shape urban temperature.
At full coverage, residual spatial autocorrelation—a pattern in which nearby prediction errors resemble one another—was significant for the linear model, but not for the two nonlinear models. The linear model’s Moran’s I was +0.197, with a permutation-test p-value of 0.003. The generalized additive model’s was +0.019 (p = 0.296), and the random forest’s was −0.002 (p = 0.431). This points to a limitation of the linear form: it left spatially clustered errors that more flexible models largely captured.
Why This Changes Things
The central finding is about the relationship between a model and the places it has actually seen. A model can perform well on familiar settings and still fail when asked to map an unfamiliar part of the city. Cross-validation is not a guarantee against this kind of extrapolation—the act of predicting beyond the range of environments represented in the training data.
That distinction has practical consequences. If a city’s reference stations sit mainly in moderate environments, the model may be good at predicting other moderate environments while smoothing over the hottest core or the coolest fringe. A map can therefore look coherent and carry strong validation scores, yet understate the contrast that determines where heat risk is greatest. This does not make cross-validation useless. It means the score should be read alongside a map of where the training sites sit in relation to the places being predicted.
The Zurich study also complicates the idea that more flexible algorithms automatically solve the problem. With only four reference stations, all three model types produced similarly reassuring cross-validation scores, and all underestimated the temperature range. Once the network broadened, the model classes behaved differently. Flexibility helped the additive model and random forest accommodate the expanded sample, while linear regression struggled. But no model can learn a reliable relationship for an environmental extreme that the monitoring network never samples.
The researchers connect urban temperature mapping to “focal-site” study designs in landscape ecology. In both cases, measurements come from selected locations, while the surrounding landscape is summarized at several spatial scales. The analogy is useful because it brings a long-recognized warning into urban climate work: biased site selection can change which predictors appear important, and even reverse the apparent direction of an effect.
There is a further caution about interpreting the predictor results. Building volume, canopy, slope and other features are correlated in real cities; a green hillside may also be elevated and distant from the center. The study used a variance-inflation threshold to limit redundant predictors, but the selected variables and their apparent effects still depend on which environments the network includes. These associations are not, by themselves, proof that changing one feature will cause a particular temperature change.
The issue reaches beyond Zurich. Fine-scale environmental maps are increasingly used to guide decisions about heat, air pollution, and other urban conditions. For any such map, the relevant question is not only “How accurate is the model at monitored sites?” but also “Which kinds of places are missing from those sites?” An explicit coverage check can reveal when a model is interpolating among familiar conditions and when it is being asked to extrapolate into territory its training data barely describe.
What’s Next
For cities building or evaluating monitoring networks, the paper suggests a practical sequence: map the environmental features that matter, locate the stations in that feature space, and identify which parts of the city lie outside the sampled range. Then add or reposition sensors to cover important gaps—not simply to maximize the station count. Where the network is still sparse, testing alternative sensor subsets can show how sensitive the resulting maps are to station placement.
Zurich also shows why a network should be judged against the purpose of the map. The low-cost sensors improved coverage of dense urban settings, but barely reached the high, vegetated fringe. The study therefore cannot confirm how cool those unsampled locations are, or which model best predicts them. The forested hills may extend the cool end beyond any measured site, but that remains a plausible interpretation rather than a validated result.
The temperature anomaly used here is relative to the mean at the stations included in each fit, and the analysis centers on one city. Other cities have different terrain, climates, building patterns, and sensor constraints. The findings provide a transferable diagnostic framework, not a universal number of sensors or a guarantee that one model class will work everywhere.
Those limits make the main point more urgent, not less. Better urban heat maps will require both suitable algorithms and monitoring networks that represent the full range of environments residents inhabit. As heatwaves put more people at risk, knowing where a city’s hottest and coolest conditions actually occur is a necessary first step toward deciding where protection can do the most good.
Sign in to join the conversation.
Comments (0)
No comments yet. Be the first to share your thoughts.