Space-Time Kriging

Statistics
Introduced by
Cressie & Huang; Kyriakidis & Journel
Year
1999
Type
Geostatistical interpolation
Family
GIS / spatial

What does it do?

Space-Time Kriging is a geostatistical interpolation method that predicts an unknown variable at any location and time by borrowing strength from nearby observations in both space and time simultaneously.

It models the joint spatial-temporal covariance structure through a space-time variogram, then uses optimal linear weights to produce predictions with quantified uncertainty.

The intuition behind the method

Ordinary kriging interpolates across space by assuming nearby points are more correlated than distant ones. Space-Time Kriging extends this idea to a fourth dimension: two observations made at nearby places and close moments in time are treated as more similar than ones far apart in either dimension. The method learns how quickly correlation decays in each dimension independently — and possibly how they interact — then blends surrounding observations, closer in both space and time getting larger weights, to estimate the unknown value and how confident we can be in that estimate.

History

Space-time kriging extends spatial kriging to data indexed by both location and time. Cressie and Huang (1999) derived a general approach for obtaining classes of nonseparable, spatio-temporal stationary covariance functions, and fitted several of these classes to wind speed data over the tropical western Pacific Ocean. Kyriakidis and Journel (1999) reviewed geostatistical space-time models.

When to use it

Use Space-Time Kriging when you have spatially distributed measurements collected at multiple time points and need to interpolate values at unsampled locations or times, for example filling gaps in air quality networks, climate station records, or soil-monitoring grids. It is most valuable when the data exhibit clear spatial and temporal autocorrelation simultaneously. It is not appropriate when observations are purely cross-sectional (a single snapshot without temporal replication), when there are too few stations or time points to estimate the empirical variogram at both short and long spatial and temporal lags, when the variable is binary or count-based, or when the space-time covariance structure cannot be adequately modelled (e.g., strongly nonstationary processes without detrending).

Limitations and considerations

  • Computational cost scales as O(n^3) with the number of observations; large datasets (thousands of space-time points) require approximations or sparse covariance methods.
  • Assumes second-order stationarity (constant mean and covariance depending only on lag); non-stationarity must be removed by detrending or accounted for with extensions like universal space-time kriging.
  • Fitting a reliable space-time variogram requires adequate coverage of both short and long spatial and temporal lags — sparse or irregular sampling may yield a poorly identified covariance model.
  • Predictions can be unreliable far outside the sampled time range (extrapolation) even if spatial coverage is good.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Uses spatial and temporal correlation jointly, so it draws on more information than interpolating each time slice separately or each station's series separately.
  • Returns kriging variances as well as predictions, giving spatially and temporally varying uncertainty estimates.
  • The choice of covariance family (separable, nonseparable, product-sum) lets the analyst match the space-time dependence structure of the data, within the limits of what the data can identify.
  • Under the assumed covariance model, the kriging weights minimise prediction error variance among linear unbiased predictors; this optimality does not hold if the covariance model is misspecified.
  • Accepts irregular sampling in both space and time without requiring a regular lattice.

Applications

  • Interpolating air pollutant concentrations (PM2.5, ozone) at unmonitored locations and missing time steps from regulatory monitoring networks.
  • Filling gaps in climate station records (temperature, precipitation) to create complete gridded datasets for climate analysis.
  • Mapping soil moisture or groundwater levels from irregular sensor networks over multiple sampling campaigns.
  • Estimating disease incidence rates across space and time for epidemiological surveillance when not all areas are observed in every period.
  • Reconstructing oceanographic fields (sea surface temperature, salinity) from satellite swath data with coverage gaps.
  • Real-time traffic speed estimation across a road network between sensor locations and between measurement cycles.

How it works

How it works

1

A space-time variogram gamma(h, u) is estimated from the data, where h is the spatial lag vector and u is the temporal lag. It quantifies how dissimilarity in the observed variable grows as locations and times become further apart. Inspect the empirical space-time variogram first: it is the basis for choosing and fitting the covariance model.

Formula
\gamma(\mathbf{h}, u) = \frac{1}{2} \mathrm{Var}[Z(\mathbf{s}+\mathbf{h}, t+u) - Z(\mathbf{s}, t)]
2

A parametric space-time covariance function is fitted to the empirical variogram, typically by maximum likelihood or weighted least squares. Candidate families (separable, nonseparable, product-sum) are chosen from the shape of the empirical variogram, and the fitted function must be a valid (positive definite) covariance. Candidates can then be compared by cross-validation. The product-sum model is usually written C(h,u) = k C_S(h) C_T(u) + C_S(h) + C_T(u) with a positive constant k, subject to constraints that guarantee positive definiteness; the formula shown, with k = 1, is a special case. This allows space-time interaction while keeping separate spatial and temporal structures. Cressie and Huang (1999) describe general classes of nonseparable stationary covariance functions.

Formula
C(\mathbf{h}, u) = k\, C_S(\mathbf{h}) \cdot C_T(u) + C_S(\mathbf{h}) + C_T(u), \quad k > 0
3

The prediction at an unobserved location and time (s0, t0) is a weighted linear combination of the n observed values Z(si, ti). The weights lambda_i are chosen to minimise prediction error variance and depend on the fitted covariance structure. With a known mean (simple kriging) the weights are unconstrained; with an unknown constant mean (ordinary kriging) they are constrained to sum to one.

Formula
\hat{Z}(\mathbf{s}_0, t_0) = \sum_{i=1}^{n} \lambda_i Z(\mathbf{s}_i, t_i)
4

As written, lambda = C^-1 c0 is the simple kriging solution (known mean): the covariance matrix C of the observed space-time pairs is inverted and multiplied by the covariance vector c0 between each observation and the target. For ordinary space-time kriging, solve the augmented system [C 1; 1^T 0][lambda; mu] = [c0; 1], where mu is a Lagrange multiplier enforcing sum(lambda_i) = 1; lambda is the first n elements of the solution.

Formula
\mathbf{\lambda} = \mathbf{C}^{-1} \mathbf{c}_0
5

The kriging variance at (s0, t0) is computed from the covariance model as C(0,0) minus the reduction achieved by the neighbouring observations. The formula shown, C(0,0) - c0^T C^-1 c0, is the simple kriging variance; ordinary kriging adds the term (1 - 1^T C^-1 c0)^2 / (1^T C^-1 1) for the estimated mean. The variance is conditional on the fitted covariance parameters and ignores their estimation error. Prediction intervals require an assumed predictive distribution, often Gaussian.

Formula
\sigma^2_{OK}(\mathbf{s}_0, t_0) = C(\mathbf{0},0) - \mathbf{c}_0^\top \mathbf{C}^{-1} \mathbf{c}_0

Common pitfalls

  • Choosing a separable covariance model when spatial and temporal scales interact, which forces an independence structure the data do not support and degrades predictions.
  • Skipping variogram diagnostics, such as leave-one-out cross-validation RMSE, before using predictions in decision-making.
  • Ignoring a temporal trend (for example a seasonal cycle or long-term drift) before fitting the variogram, which inflates the sill and biases the weights.
  • Treating kriging variances as complete uncertainty bounds when the covariance model is misspecified; the model-based variance does not capture model error.
  • Applying Space-Time Kriging to data with very few time points, so that temporal correlation cannot be identified and the space-time variogram is effectively a noisy spatial fit.

Frequently asked questions

What is the difference between separable and nonseparable space-time covariance?

A separable covariance factors as C(h,u) = C_S(h) * C_T(u): the spatial and temporal components are independent. Nonseparable models, such as the product-sum model, add interaction terms, allowing, for example, spatial dependence that changes with the time lag. Nonseparable models are more flexible but need more data to fit reliably.

How many observations do I need for Space-Time Kriging?

There is no fixed rule. What matters is whether the empirical space-time variogram can be estimated reliably at both short and long spatial and temporal lags, which depends on the number of stations, the number of time points, the sampling design and the covariance model. Very sparse datasets give poorly identified covariance models and unreliable predictions.

Can Space-Time Kriging handle non-stationary data?

Standard space-time kriging assumes second-order stationarity. Non-stationarity (trends in mean or variance) must be removed first, for example by subtracting a regression-based spatio-temporal trend, before fitting the variogram. Extensions such as universal space-time kriging incorporate a deterministic trend component directly.

How do I validate a space-time kriging model?

Use leave-one-out cross-validation (or block cross-validation to avoid leakage): withhold each observation in turn, predict it from the rest, and compute RMSE and mean standardised error. A well-calibrated model yields standardised errors with mean near 0 and variance near 1.

What software implements Space-Time Kriging?

The R package gstat provides space-time variogram fitting and kriging via the STFDF/STSDF classes. The spacetime and FRK packages offer further options, including basis-function approximations for large datasets. Check each package's documentation for the space-time functions it currently provides.

Related methods

Sources

  1. Cressie, N., & Huang, H.-C. (1999). Classes of nonseparable, spatio-temporal stationary covariance functions. Journal of the American Statistical Association, 94(448), 1330-1340.

    Open DOI reference
  2. Kyriakidis, P. C., & Journel, A. G. (1999). Geostatistical space-time models: A review. Mathematical Geology, 31(6), 651-684.

    Open DOI reference