Loading [MathJax]/jax/output/CommonHTML/jax.js

CORGI: Change Of Resolution in GLM Inference

Introduction

Scientific studies often involve exploring a regression-type relationship between a response and a set of purported explanatory variables, which can then be used to inform decision-making. An example of such a relationship, which will be illustrated throughout this project, is modelling a biodiversity response (eco-process) to climate conditions (geo-data). Once this relationship is learned, it can be used to predict biodiversity as climate changes.

Change Of Resolution in GLM Inference (CORGI)

 

This is a picture of a corgi dog, representing CORGI for Change of Resolution in GLM Inference

 

The GLM (Generalised Linear Model) is a powerful statistical model for this type of analysis, as it accommodates different types of data (e.g., count and binary outcomes). In a spatial context, valid inferences from a GLM follow when the spatial resolutions of response data and data on explanatory variables match. However, response data such as species diversity is usually at a finer spatial resolution than that of explanatory climate data. Figure 1 highlights an example: Soil temperature (explanatory variable) data are available at a much coarser resolution than moss presence-absence data (Gore et al., 2023) in the southern Bunger Hills. As an ice-free area, Bunger Hills is a small coastal region that is topographically complex with a large number of standing water ice bodies; see Figure 2 for a photo of Bunger Hills and its location in Antarctica. In fact,  the vast majority of known terrestrial biodiversity in Antarctica is restricted to ice-free areas, which occupy a small fraction of the entire landmass. As such, modelling of Antarctic biodiversity in response to environmental change typically requires environmental data at a resolution finer than currently available.

 

The sampling sites of moss presence-absence data (left panel) were specified at a much finer resolution than that of the available soil-temperature data (right panel) from the ERA5 climate renalysis product.

Figure 1: The sampling sites of moss presence-absence data (left panel) were specified at a much finer resolution than that of the available soil-temperature data (right panel) from the ERA5 climate renalysis product.

 

The Bunger Hills and Denman Glacier are about 440km away from Australia's Casey research station (source: Australian Antarctic Division)   A photo of the Bunger Hills during the summer (source: Bruce Wilson).

Figure 2: Left panel: The Bunger Hills and Denman Glacier are about 440km away from Australia's Casey research station (source: Australian Antarctic Division). Right panel:  A photo of the Bunger Hills during the summer (source: Bruce Wilson).

 

Recognising the change-of-resolution problem and solving it is critical for well-informed decision-marking about, for example, conservation priorities in the face of climate change (e.g. Jansen et al., 2022; Lu and Jetz, 2023). This project tackles the challenge of resolution mismatch and develops approaches for making reliable inferences from GLMs when spatial resolutions do not align. In an article published in Methods in Ecology and Evolution (Zheng et al. 2025), we introduce a two-stage protocol in which the coarse-resolution data on explanatory variables are first downscaled through Monte Carlo sampling, followed by incorporating the downscaled samples in GLM inference, as explained below. Since implementing the protocol involves a change of spatial resolution in explanatory variables, we call the implementation of the protocol, CORGI (Change Of Resolution in GLM Inference).

CORGI Stage 1: Statistical downscaling with uncertainties

To address the problem of resolution mismatch, we first need to downscale data on explanatory variables to the resolution of the response data. This has been tackled in the first stage of the protocol, ‘Spatial-statistical downscaling’. Using the downscaling method illustrated there, we obtain Monte Carlo samples of explanatory variables at a common fine-scale resolution, which we refer to as the downscaled samples. Figure 3 shows the means and standard deviations of the downscaled soil-temperature samples in Southern Bunger Hills, calculated for each basic areal unit (BAU) at 1×1km2 resolution obtained from coarse-resolution (5×11km2) ERA5 reanalysis data.

Soil-temperature prediction (mean of the soil-temperature downscaled samples), with sites where moss was present (triangles) in background (left panel); and standard deviation of the soil-temperature downscaled samples (right panel).

Figure 3: Soil-temperature prediction (mean of the soil-temperature downscaled samples), with sites where moss was present (triangles) in background (left panel); and standard deviation of the soil-temperature downscaled samples (right panel).

 

CORGI Stage 2: GLM inference with downscaled samples

Next, we incorporate these downscaled samples in GLM inference. At the core of our framework is a spatial Berkson-error model. Berkson error happens when data on explanatory variables are not obtained, collected, or measured imperfectly (Carroll et al., 2006). In this model, an explanatory variable at fine resolution, say X(f)(si) on the BAU located at si, is decomposed into two components:
X(f)(si)=ˆX(f)(si)+η(f)(si),
where ˆX(f)(si) is the mean of the downscaled samples at the i-th BAU, and η(f)(si) represents a downscaling error. Importantly, the downscaling error is spatially correlated, reflecting the natural spatial structure and heterogeneity of environmental processes.

Recall that a GLM with an explanatory variable can be written as, for i=1,,n,
[Z(f)(si)|Y(f)(si)]=EF(Y(f)(si)),g(Y(f)(si))=β0+β1X(f)(si),
where Z(f)(si) is the response data; [Z(f)(si)|Y(f)(si)] denotes the conditional distribution of Z(f)(si) given Y(f)(si); EF is a distribution that belongs to an exponential family such that E(Z(f)(si)|Y(f)(si))=Y(f)(si); g() is a link function, with unknown parameters β0 and β1 and a single covariate X(f)(si). Of particular interest is β1, the coefficient of the climate explanatory variable X(f)(si).

To account for the downscaling uncertainty properly, both components, ˆX(f)(si) and η(f)(si), are included in the GLM for inference, as follows:
g(Y(f)(si))=β0+β1X(f)(si)=β0+β1(ˆX(f)(si)+η(f)(si))=β0+β1ˆX(f)(si)+δ(f)(si).

Here, the downscaling uncertainty is incorporated through the component δ(f)(si)β1η(f)(si), which is seen to be the downscaling error η(f)(si) scaled by β1. The simulation results in Figure 4 show why including the downscaling error matters: Inference using CORGI (colour blue) is valid compared to the commonly used ‘plug-in’ approach (colour green), which simply substitutes ˆX(f)(si) without accounting for the error (i.e., g(Y(f)(si))=β0+β1ˆX(f)(si)). Another approach called ‘ensemble’ (colour red), shown in Figure 4 directly includes downscaled samples without using the Berkson-error decomposition (i.e., g(Y(f)(si))=β0+β1˜X(f)(si), where ˜X(f)(si) is a downscaled sample). While the ‘ensemble’ approach seems intuitively appealing, it can lead to biased and invalid inferences. Recall that CORGI incorporates downscaling uncertainty in GLM inference. Figure 5 demonstrates Monte Carlo downscaled samples of X(f)=(X(f)(s1),,X(f)(sN)) and Monte Carlo samples of Y(f)=(Y(f)(s1),,Y(f)(sN)).

Comparison of CORGI (blue) to other methods, ‘plug-in’ (green) and ‘ensemble’ (red). The black line represents the ‘gold standard’ as a GLM was fitted with the ‘ground truth’.

Figure 4: Comparison of CORGI (blue) to other methods, ‘plug-in’ (green) and ‘ensemble’ (red): Bias of estimate ˆβ1 against spatial range ψ0 and spatial variance σ20, respectively (top row); coverage probability (CP) for β1 against spatial range ψ0 and spatial variance σ20, respectively (bottom row). The black line represents the ‘gold standard’ as a GLM was fitted with the ‘ground truth’.

Figure 5: (left panel) 100 Monte Carlo samples of X(f); (right panel) 100 Monte Carlo samples of Y(f) under CORGI.

Applying CORGI protocol: Predicting moss-occurrence response to climate

So far, we have introduced the second stage of our (CORGI) protocol. Returning to the moss-data example in the southern Bunger Hills, Figure 3 shows the results from the first stage of our protocol, where we obtained the downscaled soil-temperature samples.

Figure 5 maps the mean and standard deviations of the moss-presence probability. These results correspond to the second stage of our protocol, where we fitted a Bernoulli GLM that incorporates the downscaled samples via the Berkson-error relationship. In particular, the model is given by

[Z(f)(si)|Y(f)(si)]=Bernoulli(Y(f)(si)),g(Y(f)(si))=β0+β1ˆX(f)(si)+δ(f)(si),

where Z(f)(si)=1 if mosses were present at site si, and Z(f)(si)=0 otherwise; Y(f)(si) represents the moss-presence probability; and g(y)=log(y/(1y)) for y(0,1) is a logit function. Our goal is to make inference on both β1 and Y(f)(s1),Y(f)(s2),.

The result suggests that, on average, lower soil temperatures are associated with higher moss-presence probabilities in the southern Bunger Hills. Larger prediction uncertainties appear in pixels where mosses were not found or not surveyed and soil temperatures were relatively low. In addition, large soil-temperature downscaling uncertainties on individual pixels give larger moss-presence probabilistic uncertainties.

Mean (left panel) and standard deviation (right panel) of the predictive distribution of the moss-presence probability.

Figure 6: Mean (left panel) and standard deviation (right panel) of the predictive distribution of the moss-presence probability.

Publications

The work above was supported by Australian Research Council SRIEAS Grant SR200100005 Securing Antarctica’s Environmental Future (SAEF) funding and is described in the following article:

Zheng, X., Cressie, N., Clarke, D. A., McGeoch, M. A., and Zammit-Mangion, A. (2025). Spatial-statistical downscaling with uncertainty quantification in biodiversity modelling. Methods in Ecology and Evolution, 16, 837–853. https://doi.org/10.1111/2041-210X.14505.

Reproducible code

All data and code are available at https://doi.org/10.5281/zenodo.14600559 (Zheng et al., 2025).

References

Carroll, R. J., Ruppert, D., Stefanski, L. A., & Crainiceanu, C. M. (2006). Measurement Error in Nonlinear Models: A Modern Perspective. Chapman and Hall/CRC. https://doi.org/10.1201/9781420010138.

Gore, D., Leishman, M., & Gibson, J. A. (2023). Biogeography of the Bunger Hills—plant and bird locations 1995-2000. Australian Antarctic Data Centre. https://doi.org/10.26179/563m-p165.

Jansen, J., Woolley, S. N., Dunstan, P. K., Foster, S. D., Hill, N. A., Haward, M., & Johnson, C. R. (2022). Stop ignoring map uncertainty in biodiversity science and conservation policy. Nature Ecology & Evolution, 6, 828–829. https://doi.org/10.1038/s41559-022-01778-z.

Lu, M., & Jetz, W. (2023). Scale-sensitivity in the measurement and interpretation of environmental niches. Trends in Ecology & Evolution, 38, 554–567. https://doi.org/10.1016/j.tree.2023.01.003.

Zheng, X., Cressie, N., Clarke, D. A., McGeoch, M. A., & Zammit-Mangion, A. (2025). Spatial-statistical downscaling with uncertainty quantification in biodiversity modelling using CORGI (Change Of Resolution in GLM Inference). Zenodo. v0.1.0. https://doi.org/10. 5281/zenodo.14600559.