Introduction to Spatiotemporal Kriging: A Powerful Tool for Space-Time Data Imputation
In many real-world applications, data are collected across both space and time, think of rainfall measurements across a network of weather stations over several months, or air pollution levels recorded hourly at various urban locations. Analyzing such data requires methods that can account for both spatial and temporal dependencies. This is where spatiotemporal kriging comes in, a geostatistical technique designed to interpolate or predict missing values in datasets that vary across space and time.
In this article, I will guide you step by step through the process of performing spatio-temporal kriging for imputing missing values.
Consider a spatiotemporal process denoted as:
Here, , with , represents the spatial location (typically latitude and longitude), and
To perform spatiotemporal kriging for missing data imputation, two main strategies are commonly employed:
-
Direct Method: A variogram is directly fitted to the original data, and kriging is applied to estimate the missing values. This method treats the raw observations as a realization of the underlying spatiotemporal process.
-
Residual-Based Method: First, a multiple linear regression model is fitted to explain the variation in the data using relevant covariates. Then, the variogram is constructed using the residuals from this model. Kriging is performed on these residuals, and the final predictions are obtained by combining the regression fit with the kriged residuals.
These approaches offer flexibility in modeling complex space-time patterns, especially in environmental and geophysical studies. In the sections that follow, we'll delve deeper into how spatiotemporal kriging works, how variograms are constructed, and how these methods perform in practical applications.
1. Directly Fitting the Variogram to the Original Data
In the context of space-time modeling, rainfall can be described as a spatiotemporal process:
where (with ) represents the spatial dimensions, typically latitude and longitude, and
This formulation allows us to model how rainfall varies not just geographic locations, but also over time.
To capture the dependence structure of this spatiotemporal process, we use a spatiotemporal variogram. The covariance is defined as the expected squared difference between observations separated by spatial and temporal lags :
From this, the experimental semi-variogram is defined as half of the covariance:
Here, the spatial lag and temporal lag represent the separation between any two space-time points and within the domain .
To estimate the semi-variogram empirically, we compute:
where is the set of all point pairs that are approximately spatial units and temporal units apart, and is the number of such pairs.
Once the empirical variogram is estimated, the next step is to fit a theoretical variogram model. There are several options available for selecting a theoretical variogram model depending on the characteristics of the spatial or spatiotemporal data. Some commonly used models include:
1. Separable Model
This model assumes that spatial and temporal dependencies can be modeled separately and then combined multiplicatively.
Covariance Function:
Variogram:
2. Product-Sum Model
Allows for interaction between space and time, combining spatial, temporal, and joint components.
Covariance Function:
Variogram:
3. Metric Model
Treats space and time on equal footing using a metric distance, after scaling time to spatial units.
Metric Distance:
Variogram:
4. Sum-Metric Model
Combines individual spatial, temporal, and joint components additively.
Covariance Function:
Variogram:
5. Simple Sum-Metric Model
A restricted version of the sum-metric model with a single spatio-temporal nugget and nugget-free spatial, temporal, and joint components.
Variogram:
In this article, I use the metric model to explain the procedure further, which assumes that the spatial and temporal dependencies can be combined using a metric distance:
Here, is a scaling parameter that adjusts the influence of temporal lag relative to spatial lag, and is a suitable isotropic variogram model (such as spherical, exponential, or Gaussian).
Once the model parameters (including ) are estimated by minimizing the mean squared error (MSE) between the empirical and fitted variograms, we can proceed with spatiotemporal kriging to predict missing values.
The kriging predictor for an unobserved space-time point is a weighted sum of the known data values:
where are the kriging weights, determined by solving the following system of equations derived using Lagrange multipliers:
Here, is the target point for prediction, is the Lagrange multiplier ensuring unbiasedness, and is the number of neighboring points used for kriging. Solving this system provides the optimal weights that minimize prediction error.
Fitting the Variogram to Residuals from the Multiple Linear Regression Model
The spatio-temporal variation , as introduced above, is modeled by decomposing it into a deterministic component and a stochastic residual component , as expressed in Equation (8):
This formulation assumes that the process possesses both first- and second-order moments. The deterministic component represents the expected value of the process and is estimated using a multiple linear regression model based on ordinary least squares (OLS).
The residual term captures the unexplained variability in the data and is assumed to consist of three mutually independent and second-order stationary components:
-
A spatial component,
-
A temporal component, and
-
A spatio-temporal interaction component.
It is also assumed that these components are spatially isotropic.
The deterministic part of the model, representing the trend, is fitted using the following OLS formulation:
where are the covariates (predictors), and are the estimated regression coefficients. This modeling approach incorporates spatial, temporal, and spatio-temporal variability through the selected covariates.
While the regression model can effectively capture broad trends in the data, it may not fully account for all the underlying spatial and temporal complexities. The residuals, therefore, may still exhibit structured spatio-temporal dependencies.
To capture these dependencies, a spatio-temporal variogram is estimated from the regression residuals. This step allows the characterization of remaining correlation structures not explained by the deterministic model. The estimated variogram of the residuals is then used in a kriging framework to interpolate the residual field, following the same procedure outlined in the section ''Directly Fitting the Variogram to the Original Data''.
This two-stage modeling approach, trend estimation via regression followed by kriging of residuals, enables more accurate and nuanced spatial and temporal predictions by combining deterministic and stochastic modeling strategies.
Interpretation of the Sample Variogram and Variogram Parameters
The Below figure presents the sample variogram, which is computed based on Equation (2). This empirical variogram illustrates how spatial and temporal correlations in the data decay with increasing separation in space and time.
On the variogram plot, the axes represent separation distances; typically, the horizontal axes correspond to spatial distances (in kilometers) and temporal lags (in units of time). According to spatial theory, the greater the distance between pairs of points, the lower the correlation between their values. The same principle applies in the temporal dimension: as the time gap between observations increases, the temporal correlation decreases.
The color gradient in the sample variogram plot indicates the magnitude of the semi-variance, which measures dissimilarity between point pairs. Cooler colors (such as blue) indicate lower semi-variance, meaning that those points are highly correlated in both space and time. Conversely, warmer colors (such as red) suggest higher dissimilarity, indicating lower correlation.
After constructing the sample variogram, the next step is to fit a theoretical variogram model that best captures the structure observed in the empirical variogram. The figure below illustrates such a model and highlights several key parameters that need to be estimated. These parameters play an essential role in defining the shape and behavior of the variogram:
- Nugget: The nugget is the y-intercept of the variogram. In practical terms, the nugget represents the small-scale variability of the data. A portion of that short-range variability can be the result of measurement error.
- Sill: The sill is the total variance contribution, or the maximum variability between pairs of points.
- Range: The range is the distance after which the variogram levels off. The physical meaning of the range is that pairs of points that are this distance (in time or in distance) are not spatially and temporally correlated.
- Anisotropy: This parameter quantifies how many spatial units are equivalent to one time unit. It essentially allows you to convert time differences into "effective" spatial distances.
Comments
Post a Comment