---
title: Spatio-temporal DeepKriging (STDK)
url: https://www.emergentmind.com/topics/spatio-temporal-deepkriging-stdk
type: topic
---

# Spatio-temporal DeepKriging (STDK)

Spatio-temporal DeepKriging (STDK) is a deep neural approach to spatio-temporal interpolation and probabilistic forecasting that replaces explicit covariance modeling in classical kriging and Gaussian-process formulations with supervised learning on spatio-temporal basis embeddings. In its canonical form, STDK extends the basis-expansion logic of DeepKriging from purely spatial prediction to a space-time index \((\mathbf{s},t)\), and, in the 2023 formulation called “Space-Time.DeepKriging,” organizes prediction into a two-stage pipeline: basis-embedded interpolation or imputation over observed time points, followed by sequence forecasting with quantile LSTM or quantile convolutional LSTM modules [2007.11972] [2306.11472].

## 1. Definition and historical positioning

The immediate precursor to STDK is DeepKriging, which introduced the core design pattern of representing spatial dependence through a basis-function embedding of location and then learning a nonlinear predictor with a deep neural network. In that formulation, the spatial random effect is motivated by a truncated Karhunen–Loève expansion, so that spatial structure enters the model as engineered features rather than through a fitted covariance matrix [2007.11972].

STDK generalizes that blueprint to spatio-temporal prediction. The 2023 “Spatio-temporal DeepKriging for Interpolation and Probabilistic Forecasting” paper defines a real-valued spatio-temporal random field \(Y(\mathbf{s},t)\), noisy observations \(Z(\mathbf{s},t)=Y(\mathbf{s},t)+\epsilon(\mathbf{s},t)\), and a two-stage procedure in which a basis-embedded feed-forward network first reconstructs or interpolates a complete historical signal at a target location, after which QLSTM or QConvLSTM models forecast future quantiles from that reconstructed history [2306.11472].

In a narrow architectural sense, STDK refers to this basis-expansion-plus-neural-network family. In a broader literature sense, it sits inside a larger movement from covariance-based kriging toward learned spatio-temporal field inference. That broader family also contains graph-based inductive kriging models. However, papers such as STA-GANN are best viewed as conceptually related but architecturally distinct: they solve the same high-level task of inferring spatio-temporal signals at unobserved sensors, yet do so through dynamic graph construction, message passing, phase alignment, and adversarial transfer rather than through canonical DeepKriging-style basis embeddings [2508.16161].

## 2. Basis-embedded spatio-temporal formulation

The canonical STDK formulation begins with the decomposition
$$
Z(\mathbf{s},t)=Y(\mathbf{s},t)+\epsilon(\mathbf{s},t), \qquad
Y(\mathbf{s},t)=\mu(\mathbf{s},t)+\gamma(\mathbf{s},t),
$$
where \(\epsilon(\mathbf{s},t)\) is white noise and \(\gamma(\mathbf{s},t)\) is the latent spatio-temporal residual process. The residual is motivated through a truncated basis expansion,
$$
\gamma(\mathbf{s},t)=\sum_{p=1}^{\infty} w_p \boldsymbol{\phi}_p(\mathbf{s},t)
\approx
\sum_{p=1}^{Q} w_p \boldsymbol{\phi}_p(\mathbf{s},t).
$$
Although tensor-product bases \(\boldsymbol{\phi}_p(\mathbf{s},t)=\phi_i(\mathbf{s})\psi_j(t)\) are discussed conceptually, the implemented STDK embedding stacks spatial and temporal basis evaluations,
$$
\boldsymbol{\phi}(\mathbf{s},t)=
\{\phi_1(\mathbf{s}),\ldots,\phi_G(\mathbf{s}),\psi_1(t),\ldots,\psi_H(t)\}^T,
$$
and then concatenates them with optional covariates into \(\mathbf{X}_\phi(\mathbf{s},t)\) [2306.11472].

This stacked embedding is central to the method’s interpretation. It reduces dependence learning to a feature-learning problem over a structured basis layer, while avoiding explicit specification of a spatio-temporal covariance function. The paper explicitly states that this stacking does not imply separability, because the downstream DNN shares weights across all basis coordinates and can learn nonlinear interactions between space and time features [2306.11472].

The spatial basis functions are compactly supported Wendland radial bases,
$$
B_1(d)=\frac{(1-d)^6}{3}(35d^2+18d+3)\mathbf 1\{0\le d\le 1\},
$$
with
$$
\phi_i(\mathbf s)=B_1\!\left(\frac{\|\mathbf s-u_i\|}{\theta}\right),
$$
where \(u_i\) are spatial anchor points and \(\theta\) is set to \(2.5\) times the distance between adjacent anchors. Temporal dependence is encoded with Gaussian radial basis functions,
$$
\psi_j(t)=\exp\!\left(-\frac12 \frac{(t-v_j)^2}{\kappa^2}\right),
$$
where \(v_j\) are temporal anchor points and \(\kappa\) equals the spacing between adjacent temporal anchors [2306.11472].

This basis-embedded view makes STDK closely related to low-rank geostatistical models such as FRK and to the original DeepKriging construction, but the predictor class is no longer linear in the basis evaluations. A plausible implication is that STDK should be read less as a neural approximation to a specific covariance model than as a nonlinear regression architecture whose inductive bias is supplied by multi-resolution spatio-temporal basis functions.

## 3. Two-stage architecture and probabilistic prediction

Stage 1 of STDK is a feed-forward deep neural network operating on \(\mathbf{X}_\phi(\mathbf{s},t)\). For an \(L\)-layer architecture, hidden layers use ReLU, and the output is
$$
f_{NN_\tau}(\mathbf X_{\phi}(\mathbf{s},t))=\Psi\!\left(\tau, h_L(a_{L-1}(\mathbf{s},t))\right),
$$
with parameters estimated by minimizing the quantile check loss
$$
\rho_\tau(v)=v\big(\tau-I(v<0)\big).
$$
For deterministic interpolation, the median quantile \(\tau=0.5\) is used; for probabilistic interpolation, additional lower and upper quantiles are estimated [2306.11472].

Stage 2 treats the Stage-1 interpolated history at a target location as a completed time series,
$$
\mathbf X^{NN} =
\left\{
\widehat{f_{NN_\tau}(\mathbf X_{\phi}(\mathbf s_0,t_1))},
\ldots,
\widehat{f_{NN_\tau}(\mathbf X_{\phi}(\mathbf s_0,t_K))}
\right\},
$$
and feeds that sequence into either QLSTM or QConvLSTM. The QLSTM uses the standard LSTM gating equations, while QConvLSTM augments forecasting with local \(r\times r\) spatial neighborhoods of Stage-1 predictions, followed by \(3\times 3\) convolutions with 64 feature maps before the recurrent stack [2306.11472].

The uncertainty mechanism is quantile-based rather than likelihood-based. STDK does not produce a full predictive density in closed form; instead it estimates conditional quantiles and constructs prediction intervals from them. To avoid quantile crossing, the 2023 paper uses a specialized output transformation centered on the median:
$$
\Psi(\tau,x)=
\begin{cases}
x, & \tau=0.5,\\[4pt]
f_{Constant}+\dfrac{\lambda(\tau-0.5)}{1+e^{-x}}, & \tau>0.5,\\[10pt]
f_{Constant}-\dfrac{\lambda(0.5-\tau)}{1+e^{-x}}, & \tau<0.5.
\end{cases}
$$
This ensures ordered lower and upper quantiles around the central forecast [2306.11472].

The two-stage organization is an important defining feature. Interpolation and forecasting are not jointly optimized as a single end-to-end dynamical model; rather, Stage 2 is conditional on Stage 1. The 2023 paper explicitly notes that forecast uncertainty therefore does not propagate interpolation uncertainty through a full joint probabilistic model [2306.11472].

## 4. Implementations, applications, and empirical demonstrations

The 2023 STDK paper reports results on both simulated and real datasets. On the KAUST competition datasets, STDK achieved RMSPE \(0.25\) on sub-competition 2a and \(0.26\) on sub-competition 2b, corresponding to a \(22\%\) improvement and a \(9\%\) improvement over the second-best team, respectively. In the nonstationary simulation, “Space-Time.DeepKriging” obtained interpolation MSPE \(0.167\) versus \(0.746\) for GpGp, while QConvLSTM achieved forecasting MSPE \(0.267\), MPIW \(1.462\), and coverage \(90.39\%\) [2306.11472].

The large PM\(_{2.5}\) application in that paper used monthly U.S. EPA data from January 1999 to December 2022 at more than \(200{,}000\) space-time locations. Reported interpolation performance was MSPE \(21.35\) for STDK versus \(63.72\) for GpGp. For forecasting, QConvLSTM achieved MSPE \(39.37\), MPIW \(20.99\), and coverage \(91.02\%\), while QLSTM had MSPE \(43.59\) and MPIW \(19.45\). The authors also report runtimes of about \(3.13\) minutes on a Tesla P100 GPU for the competition datasets, \(7.29\) minutes on GPU for PM\(_{2.5}\) interpolation, and \(19.46\) minutes on a 16-core CPU [2306.11472].

A later supplementary paper implemented STDK in PyTorch for daily European precipitation and emphasized interpolation plus probabilistic forecasting on irregular station data. In that implementation, interpolation used four spatial Wendland resolutions with nominal counts \(9^2\), \(17^2\), \(35^2\), and \(73^2\), pruned to \(6756\) spatial basis functions after removing water-body bases, together with \(1400\) temporal Gaussian basis functions. The resulting input dimension was approximately \(8156\), and the network output three values per sample: predictive median and the lower and upper bounds of a \(95\%\) prediction interval [2509.12708].

That supplementary study reported interpolation over approximately \(13\) million space-time locations at 10-day intervals for Europe, after a 10-day moving average and standardization of precipitation observations from 2014-01-01 to 2024-12-31. Reported interpolation metrics were MSPE \(0.017\), PICP \(0.955\), and MPIW \(0.245\). For the forecasting comparison on a \(64\times 64\) subregion, ConvLSTM obtained MSPE \(0.060\), PICP \(0.94\), and MPIW \(0.888\), whereas STDK obtained MSPE \(0.101\), PICP \(0.95\), and MPIW \(0.783\) [2509.12708].

The supplementary paper is also notable for its implementation detail and its ambiguities. It states that the interpolation model has “10 hidden layers,” while explicitly listing five hidden layers of width 100 and four hidden layers of width 50, which sums to nine. It also under-specifies the forecasting STDK architecture and defers several equations, including the exact quantile activation, to the main STDK paper. This suggests that the PyTorch supplement is best read as an implementation-oriented application note rather than a complete standalone methodological specification [2509.12708].

## 5. Relation to adjacent neural kriging frameworks

Within the larger neural kriging literature, STDK occupies the basis-expansion branch. Graph-based methods such as SATCN, INCREASE, and STA-GANN address the same family of tasks—inferring spatio-temporal signals at unobserved locations—but they do so through masked graph aggregation, relation-aware recurrent units, dynamic graph learning, or adversarial transfer rather than through fixed spatio-temporal basis embeddings [2109.12144] [2302.02738] [2508.16161].

SATCN represents kriging as masked graph message passing plus temporal convolution. Its first SAN layer prevents unsampled nodes from sending messages, after which TCN blocks model temporal dynamics over the imputed node features. INCREASE constructs target-specific inductive representations from multiple relations—spatial proximity, functional similarity, and transition probability—then uses relation-aware GRUs and multi-relation attention. STA-GANN extends the graph-based line further with Dynamic Data-Driven Metadata Graph Modeling, the Decoupled Phase Module for timestamp shift, and adversarial transfer learning for unknown-sensor generalization [2109.12144] [2302.02738] [2508.16161].

These models are not canonical STDK in the narrow architectural sense. The relation is conceptual rather than nominal: they share the objective of replacing explicit covariance-based kriging with learned spatio-temporal inference, but their dependence modeling is graph-induced rather than basis-embedded. The STA-GANN analysis in particular is explicit that the method is “conceptually yes” but “architecturally no” with respect to STDK: it belongs to the same broader movement away from explicit covariance specification, yet it is better characterized as inductive graph neural kriging than as standard DeepKriging [2508.16161].

At the same time, STDK itself has begun to develop internal extensions. A 2026 paper proposes a density-adaptive multi-quantile STDK variant with trainable cluster-adaptive spatial bases and cluster-aware conformal calibration. In that formulation, the standard STDK input \([x(s,t),\phi(s),\psi(t)]\) is retained, but fixed regular-grid spatial bases are replaced with basis functions whose centers and scales are initialized from spatial sampling density, and prediction intervals are calibrated within spatial clusters rather than by a single global conformal correction [2606.06753].

This extension is important because it directly targets a weakness of standard basis-grid STDK under clustered sampling. The paper reports that under clustered observation patterns, standard STDK plus global conformal calibration can severely undercover, whereas the adaptive-basis variant improves both coverage and worst-site reliability. Under uniform sampling, by contrast, gains are small or absent. This suggests that the principal fault line inside the STDK family is no longer only covariance versus deep learning, but also fixed geometric bases versus sampling-adaptive bases [2606.06753].

## 6. Statistical precursors, limitations, and open directions

Two classical frameworks are especially relevant for situating STDK. FRK provides a low-rank spatial random effects model with automatically generated or user-specified spatial and spatio-temporal basis functions, BAU discretization, EM estimation, and exact Gaussian uncertainty propagation over arbitrary supports. The SPDE advection-diffusion approach provides a sparse-precision, physics-informed route to nonseparable and asymmetric spatio-temporal dependence, together with kriging means, conditional variances, and conditional simulations [1705.08105] [2208.14015].

Compared with FRK, STDK inherits the basis-expansion intuition but discards the Gaussian latent-variable structure, support-change machinery, and analytic posterior uncertainty. Compared with the SPDE approach, STDK replaces explicit transport-diffusion dynamics and sparse precision matrices with a more flexible but less interpretable neural approximation. These contrasts are not merely philosophical: FRK and SPDE retain principled distinction between measurement error and latent-process uncertainty, while STDK’s uncertainty is quantile-based and operational rather than model-based [1705.08105] [2208.14015].

The main limitations explicitly identified in the STDK literature are therefore structural. The 2023 paper states that Stage-2 forecasting is conditional on Stage-1 interpolation and does not propagate interpolation uncertainty through a joint model; forecast maps can be less spatially smooth because forecasting is performed location by location; basis choices are fixed rather than learned; and QConvLSTM is more computationally expensive than QLSTM [2306.11472]. The PyTorch supplementary application adds practical limitations of under-specified implementation details, including an inconsistent hidden-layer count and a forecasting architecture that is summarized more as a pipeline than as a fully specified model [2509.12708].

A more recent limitation is geometric rather than probabilistic. Under highly non-uniform spatial sampling, fixed regular-grid bases can over-allocate representational capacity to sparse regions while under-resolving dense clusters. The density-adaptive conformal extension addresses exactly this issue by learning cluster-adaptive spatial bases and calibrating intervals locally, which indicates that standard STDK’s fixed spatial basis layer is not always efficient under clustered observation designs [2606.06753].

A plausible implication is that subsequent STDK developments will continue to hybridize three strands that already coexist in the literature: basis-embedded DeepKriging, graph-based inductive kriging, and classical low-rank or physics-informed spatio-temporal structure. The most technically natural directions suggested by the existing papers are adaptive basis construction, localized uncertainty calibration, explicit treatment of unseen-location generalization, and mechanisms that recover some of the uncertainty semantics and support-awareness that remain stronger in FRK and SPDE-based kriging than in current deterministic STDK formulations.

Source: https://www.emergentmind.com/topics/spatio-temporal-deepkriging-stdk