Manuscript Offprint
arXiv:2610.41596Patch-Based Deep Kernel Learning for Data Assimilation and Bias Correction with Extremely Sparse Observations
Emanuele Mele, Student Member, IEEE, Angelo Coluccia, Senior Member, IEEE, Massimo Cafaro, Senior Member, IEEE, Italo Epicoco and Paola Nassisi
Abstract—Data Assimilation (DA) reconstructs the state of a spatio-temporal system by combining sensor observations with the output of a numerical model. Since model states are high-dimensional while observations cover only a small fraction of the domain, DA is a challenging large-scale estimation problem, central to weather forecasting, oceanography and many other partially observed systems. Classical variational methods such as 3D-Var rely on a hand-crafted background error covariance that assumes unbiased errors, and therefore cannot capture state-dependent correlations or systematic model biases. Moreover, they compute the analysis over the full state space, so their cost grows with the size of the domain. Deep learning (DL) methods can perform DA and bias correction (BC) non-linearly, but standard architectures typically offer limited interpretability and do not natively provide calibrated uncertainty estimates. We propose a hybrid framework that couples a convolutional neural network (CNN) with a learnable-kernel Gaussian Process (GP) to jointly perform DA and BC from extremely sparse observations. The model is trained end-to-end by maximizing the marginal log-likelihood, learns a data-driven covariance over the whole grid, and provides both the Maximum A Posteriori analysis and its uncertainty by design. A patch-based strategy reduces the training cost of exact GPs over grid points to for a fixed patch size. Inference remains exact and only requires solving a linear system whose cost depends on the number of observations , not on the domain. The learned covariance can also replace the hand-crafted one in a classical 3D-Var scheme, improving its accuracy without changing the variational formulation. Experiments on sea surface temperature and salinity, with both synthetic and real, extremely sparse in-situ observations, show that the framework outperforms 3D-Var, a classical GP and a competing DL model, while reducing inference time by more than 98% with respect to 3D-Var.
Index Terms—Data Assimilation, Gaussian Processes, Deep Learning, Bias Correction, Uncertainty Quantification, Sparse Observations
I. INTRODUCTION
Data Assimilation (DA) estimates the state of a dynamical system by combining observations with the prior information provided by a numerical model [1], [2], [3]. More generally, it is a state-estimation and data-fusion problem in which heterogeneous, noisy and sparse measurements are integrated with a model-based representation of the system [4], [5], [6]. A central component is bias correction: numerical models suffer from systematic errors due to unresolved processes, discretization and parametrization choices, which must be identified and removed [7], [8], [9]. Beyond numerical weather prediction and geosciences, related formulations arise in land-surface modelling, air-quality estimation, traffic monitoring and other partially observed high-dimensional systems [3], [10], [11], [12], [13], where combining high-volume, heterogeneous observation streams with a model prior is a defining challenge of the big-data era [14], [15].
The problem is particularly hard when observations are sparse relative to the state dimension. Sensors cover only a small subset of locations, while the state and its bias must be reconstructed over the entire domain [16], [17], [18]. How information propagates from observed to unobserved regions is largely determined by the error covariance structure, whose specification is central to both variational and ensemble-based DA [2], [19] and remains difficult for high-dimensional data in general [20], [21].
Variational methods such as 3D-Var and 4D-Var balance the deviation from a background state against the discrepancy with the observations, and their effectiveness depends critically on the background-error covariance matrix [2], [19]. Standard formulations also assume unbiased errors, which limits their ability to represent systematic, spatially coherent biases. Ensemble Kalman filters represent uncertainty through an ensemble of states, but the relatively small ensemble sizes affordable in large systems lead to sampling errors in the estimated covariances, and the computational cost remains high [22], [2], [5]. The cost of estimating and updating high-dimensional uncertainty and bias structures mirrors the scalability bottlenecks of probabilistic models on big data [14], [23].
Machine Learning (ML) offers a complementary direction [24], [25], [26]. Neural networks learn nonlinear representations directly from data and have been used for spatio-temporal mining and forecasting [27], [28], [29], [30], data imputation [31], [32] and ocean state reconstruction [33], [34], [35]. Within DA, deep learning has been applied to latent-space assimilation, observation operators, model-error and bias correction, and end-to-end variational schemes [36], [37], [38], [39], [40], [41], [42], [43], [44], [45], while Bayesian deep learning has shown the value of calibrated uncertainty in environmental forecasting [46].
Purely neural approaches, however, provide accurate corrections, including implicit bias removal, but little informa-
E. Mele, A. Coluccia, M. Cafaro and I. Epicoco are with the Department of Engineering for Innovation, University of Salento, 73100 Lecce, Italy (e-mail: name.surname@unisalento.it); E. Mele, M. Cafaro, I. Epicoco and P. Nassisi are with the Euro-Mediterranean Center on Climate Change, Foundation (CMCC), 73100 Lecce, Italy (e-mail: name.surname@cmcc.it).
tion about their uncertainty or about how each observation influences the reconstructed state and bias. In sparse regimes, where most of the field is inferred rather than observed, uncertainty quantification is essential to assess the reliability of the corrections and to distinguish well-supported updates from extrapolations [3], [11], [47], [48].
Gaussian Processes (GPs) naturally address part of this challenge, as they provide predictive means and covariances as direct outputs of inference [49]. However, their expressiveness is bounded by predefined kernels, which struggle to capture state-dependent relationships and spatially varying biases, and exact inference scales as , a limitation that becomes severe for large sensor networks and high-resolution grids [50], [23], [51], [52]. Local and patch-based approximations mitigate this cost [13], [53], [54], [55], while deep kernel learning lets the kernel operate on neural features, increasing its flexibility while retaining principled uncertainty quantification [56], [57]. For DA, this yields a data-adaptive covariance able to jointly represent bias correction and error propagation.
In this work, we exploit this hybrid perspective for extremely sparse DA, jointly treating state and bias correction. We couple a convolutional neural network with a learnable-kernel GP, trained end-to-end by maximizing the marginal log-likelihood. The network learns a representation of the background state that captures systematic bias patterns, and the GP uses it to build a data-dependent background-error covariance. Unlike classical variational approaches, spatial dependencies and bias structures are learned rather than imposed; unlike deterministic deep learning, predictive uncertainty is an intrinsic output. The analysis is obtained via Maximum A Posteriori (MAP) estimation, which here coincides with the Minimum Mean Square Error (MMSE) estimate. The model learns how a few observations propagate to unobserved locations, and a spatial patching strategy limits the covariance computations during training while preserving global reconstruction at inference.
We use oceanographic data as case study, since ocean fields exhibit strong spatial dependencies, nonlinear interactions, heterogeneous observations and well-documented systematic biases, while in-situ measurements cover only a small fraction of the domain [34], [35]. The framework we propose is, however, fully general, as it can be adopted to the estimation of any high-dimensional field and its bias from model state and few observations, a problem formulation shared by many other applications [3], [10], [11], [12].
The contributions of this work are as follows. First, we introduce a hybrid CNN/GP architecture for DA in which the covariance, and hence the bias correction, is learned from the latent representation of the background state. Second, we provide a probabilistic formulation that yields both a MAP correction, including bias removal, and spatially predictive uncertainty. Third, we propose a patch-based strategy that reduces the computational and memory cost of exact GP training, making the framework applicable to large, high-resolution domains with a controllable trade-off between cost and accuracy. Fourth, we show that the learned covariance can be used directly as the background-error covariance of a classical 3D-Var scheme, consistently improving over the
hand-crafted Gaussian covariance without additional tuning. Finally, we evaluate the framework on Sea Surface Temperature (SST) and Sea Surface Salinity (SSS) in a domain that includes the Adriatic, Tyrrhenian and Ionian Seas, using both synthetic observations with controlled density and real, irregularly distributed in-situ measurements.
Assuming additive Gaussian noise, the observation model is with . Denoting by the covariance of the targets and by the residual with respect to the prior mean, the predictive distribution of is , with
Since the Gaussian posterior is symmetric and unimodal, is both the MAP and the Minimum Mean Squared Error (MMSE) estimate.
The hyperparameters and are estimated by maximizing the marginal likelihood , whose logarithm is
Both the linear system and the log-determinant are typically computed via the Cholesky decomposition of , which requires operations and memory. Once this is done, the predictive mean and variance cost and for each point, respectively.
III. PROPOSED METHOD
The proposed methodology performs data assimilation by integrating deep learning with GP modeling. As depicted in Figure 1, once the model is trained, the framework consists of two stages: feature extraction from the composite background state via a CNN, followed by GP-based inference to estimate and correct the background error field.
Let the background state be multi-variable data generated by a prior model over a regular grid of points, where H and W are the numbers of grid points along latitude and longitude, respectively, and C is the number of channels (i.e., fields). Each field is vectorized so that its i-th entry, i = 1, ..., HW, corresponds to the i-th grid point, and all

Fig. 1: Proposed data assimilation framework combining a neural network and a Gaussian process. Top: During training, the neural network learns an embedding of the input , which is fed to the learnable kernel to compute the covariance matrix over the grid and optimize the marginal log-likelihood. Bottom: At inference, the embeddings of the background state are used to compute the covariance matrices between observed and unobserved locations; conditioned on the residuals at the observed positions, the model predicts the background error corrections and their uncertainties , which are added to the background state to obtain the assimilated field.
fields are stacked into the vector . We partition it as \mathbf{x} = [\mathbf{x}^{(t)}^\top, \mathbf{x}^{(a)\top}]^\top, where is the variable to be assimilated (e.g., temperature) and collects the auxiliary fields (e.g., other oceanographic variables such as salinity and velocity components), which provide contextual information to the feature extractor. Given the ground-truth field of the target variable, the quantity reconstructed during training is the background error, or residual field, , defined over the entire grid.
Since this target covers the whole domain rather than just the observation locations, the framework learns to reconstruct the full background error, which combines a spatially coherent systematic bias, persisting over large regions regardless of observability, and localized, higher-frequency deviations tied to individual measurements. The learned covariance does not separate these two components but captures both in a single data-driven correlation structure. With extremely sparse observations, the GP predictive mean is dominated by the learned prior mean, which encodes a global, low-frequency bias pattern, performing an implicit bias correction even far from any observation; as the density increases, the same mechanism adds localized corrections driven by the nearby measurements. This unified formulation allows the framework to jointly perform DA and bias correction without explicitly disentangling the two error components during training.
A. Model setup and Training stage
Rather than a standard isotropic covariance over the raw input space, the GP kernel operates on the features extracted by a neural network with learnable parameters . The feature extractor is a CNN that processes the background state in its gridded form, i.e., as an image with channels, fusing the target variable with the auxiliary fields. It outputs an feature map with channels, i.e., an -dimensional embedding for each grid point , which we collect column-wise in the matrix
where, with a slight abuse of notation, includes the reshaping of onto the grid and of the output feature map into . The covariance between grid points is obtained by applying a base kernel , e.g., Radial Basis Function (RBF), in the learned feature space:
The prior over the full background error field is then
where is the observation noise variance and is the prior mean vector computed from the embeddings. The hyperparameters include the parameters of both the kernel and the prior mean (see Section IV-B). Note that both and depend on through .
During offline training, the residual field is known over the entire grid, and the CNN parameters and GP hyperparameters are optimized jointly end-to-end by minimizing the Negative Marginal Log-Likelihood (NMLL):
where and . Gradients are backpropagated through and to update both and . The training is summarized in Algorithm 1.
Algorithm 1 Training of the proposed framework
Input: Background states x and ground truths of the training set, patch size P, maximum number of patches per step b, epochs E
Output: Trained parameters , ,
1: Initialize , ,
2: for do
3: for each mini-batch of pairs do
4:
5: background error
6: Partition the grid into K patches of
7: Sample at most b patches
8: for each sampled patch k do
9: patch k of ,
10:
11: prior mean at
12:
13:
14:
15: end for
16: Update via
17: end for
18: end for
B. Inference stage and Data Assimilation
Once trained, , and are frozen. At inference, the ground truth is unavailable and the embeddings are computed from the current background state , i.e., . Observations are provided only at grid points; we denote by the columns of at these points and by the corresponding entries of the target channel . The background error at the observed points is estimated by the departure , and is its residual with respect to the prior mean. The correction over the entire grid is given by the MAP estimate, i.e., the GP predictive mean conditioned on :
where is the covariance of the departures and the cross-covariance between all grid points and the observed ones. The assimilated field is obtained by adding this correction to the background:
Owing to the noise term with covariance , the noisy measurements are smoothed at the observed points, while the background is corrected at all unobserved ones. The uncertainty of the correction is quantified by the GP predictive covariance
which provides a principled measure of the reliability of the assimilated state.
To turn this uncertainty into an adaptive correction strength, we introduce a modulation parameter . Let
be the pointwise predictive standard deviation. The correction is rescaled by the weight , with the square root and the exponential applied elementwise, yielding the modulated correction , which replaces in (8) when the modulation is enabled. For , and the unmodulated correction is recovered. As increases, the correction is increasingly concentrated in low-uncertainty regions and damped in poorly observed ones, providing a simple, interpretable trade-off between assimilation strength and confidence. The inference procedure is summarized in Algorithm 2.
Algorithm 2 Inference and data assimilation
Input: Background state , observations , trained , , , modulation parameter
Output: Assimilated field , predictive covariance
1:
2: columns of at observed points
3: departures
4:
5: prior mean at
6:
7:
8: for each patch do
9: patch of
10:
11: prior mean at
12:
13: end for
14: Stack into
15: Stack into
16:
17:
18:
19:
20:
21: return ,
C. Scalable and Memory-Efficient Approximation through Spatial Patching
Evaluating the GP over the whole domain requires building the dense matrix , factorizing it via

Fig. 2: Mediterranean Sea domain selected for the numerical experiments. The dashed box delimits the computational domain; the shaded areas outside it are excluded. Yellow markers indicate the positions of in-situ mooring buoys.
Cholesky decomposition and computing its log-determinant, with time and memory complexities of and , respectively. To reduce this cost, we adopt a spatial patching strategy.
During training, the grid is partitioned into non-overlapping square patches of points (), which are treated as samples within mini-batches for Stochastic Gradient Descent (SGD). For the -th patch, let collect the columns of at its grid points, and and the corresponding entries of the background error and of the prior mean. The NMLL is then evaluated locally as
where and . Each patch costs and patches cover the domain, so the training cost per sample scales as : for a fixed patch size it grows linearly with the number of grid points rather than cubically, making the approach applicable to large domains.
At inference, instead, patch-wise evaluation is exact rather than approximate. Let collect the columns of in the -th patch. By the linearity of the GP predictive mean, the correction restricted to each patch is
Since depends only on the observed points, it is computed once, and the full correction is obtained by stacking the local predictions, , up to a reordering of the grid points. This yields exactly the same result as a full-domain pass, while bounding the memory required on large outputs.
IV. EXPERIMENTAL SETUP AND RESULTS
To evaluate the performance of the proposed approach, the assimilation technique is tested within the surface of the Mediterranean Sea, particularly focusing on the marine sectors surrounding the Italian peninsula, as shown in Figure 2. Particular focus is given to the buoys' observations since they
are the most reliable and, at the same time, challenging to assimilate because of the scarcity of the available data. In particular, two experiments are performed:
-
the assimilation of noisy synthetic observations sampled from the ground truth, to evaluate the framework as the observation density grows;
-
the assimilation of real, extremely sparse in-situ observations, to assess its behavior in an operational setting.
To ensure a rigorous comparison, the proposed method is evaluated against three main models.
First, a classical GP model is implemented as a baseline. Since the GP approach entirely discards the CNN backbone while retaining the same assimilation framework, it also serves as an ablation study to isolate and quantify the specific contribution of the CNN; its formulation follows directly from the GP framework introduced in Section II.
Second, the proposed method is compared against the consolidated 3D-Var algorithm. In classic 3D-Var data assimilation, the background state , with the number of ocean grid points, is corrected using the observations by minimizing the variational cost function:
where and represent the background and observation error covariance matrices, respectively, and is the linear observation operator. The assimilated state can be computed as . To ensure a fair comparison, the covariance matrices and are constructed using the same kernel family as our proposed hybrid framework. Furthermore, their hyperparameters are fine-tuned via Bayesian Optimization to directly minimize the Root Mean Squared Error (RMSE) on the training and validation dataset. Additionally, since the spatial domain is defined over a 2D image grid, full domain covariance matrices are initially computed using Kronecker products ( ) along the spatial dimensions. These are subsequently masked/sliced to remove land grid points, ensuring that all error covariance operators and strictly operate over valid ocean locations.
Third, we developed a purely deep-learning competitor, referred to as FiLM CNN, which shares the identical convolutional backbone of the proposed method but replaces the GP correction stage with a direct regression head; sparse observations are injected both as additional input channels and, at the latent-embedding level, through Feature-wise Linear Modulation (FiLM) [58], a general-purpose conditioning mechanism originally proposed for visual reasoning. Complementary to the GP-only ablation, the FiLM CNN isolates the specific contribution of the GP layer, since it retains the same neural backbone and observation-conditioning philosophy as the proposed method but lacks its probabilistic, kernel-based mechanism for propagating information from the sparse observations across the domain.
Finally, since both 3D-Var and the classical GP assume an unbiased background error, while the proposed method and the FiLM CNN learn the systematic bias implicitly from data, a direct comparison would penalize the former for a limitation that is routinely addressed in practice. We therefore also test an offline climatological bias correction for 3D-Var and the GP, as commonly done in operational systems: the mean background error is estimated per grid point and calendar month over the training and validation periods only, without using the test year, and is added to the background before the assimilation. For SSS, this correction substantially improves both competitors and is therefore adopted in all SSS experiments. For SST, instead, it slightly degrades their accuracy, suggesting that the SST background error is dominated by a state-dependent rather than a recurring seasonal component; to compare against the strongest version of each competitor, the correction is therefore not applied to SST.
A. Datasets
To ensure reproducibility, we evaluate the framework on publicly available oceanographic datasets, considering four variables: SST, SSS, and the zonal and meridional components of Sea Surface Velocity (SSU and SSV). All four fields are provided as inputs to the feature extractor, while DA is performed on SST and SSS.
The GLORYS12V1 reanalysis¹ is used as the ground truth , since reanalyses provide the most reliable reference by integrating multi-source observations with physical models. The background state , concatenating the four variables, is taken from the uncorrected forecasts of the Operational Mercator global ocean analysis and forecast system², reproducing realistic operational conditions. Both products have a native resolution of and are extracted over (approximately ) at a depth of about 0.49 m. This yields an grid with 9,709 ocean points out of 16,384. Although the reanalysis spans several decades, the operational forecasts are only available over a much shorter period, which therefore bounds the number of background–ground truth pairs that can be used for training and evaluation. The daily dataset covers the entire period in which both products are available, from June 1, 2022 to April 1, 2026: the period from June 2022 to June 2024 is used for training, the year 2025 is reserved as the independent test set, and July–December 2024 together with January–March 2026 are used as validation set for model selection and for the choice of .
Sparse in-situ observations are taken from the INSTAC product³. To avoid low-quality data, we retain SST measurements with quality level 1 and, given their scarcity, SSS measurements with levels 1 to 3. Days without valid measurements are excluded from the assimilation. Although GLORYS12V1 also assimilates in-situ measurements, its surface fields are mainly constrained by satellite observations, such as sea surface temperature and altimetry, which provide a much denser coverage; the contribution of the sparse in-situ buoys to the

Fig. 3: Training cost per day and RMSE improvement over the unassimilated simulation as a function of the patch size.
reanalysis is therefore marginal, limiting their dependence on the ground truth.
B. Neural Network & Gaussian Process Setup
The feature extractor is a lightweight CNN with four convolutional layers and 304,384 trainable parameters. The first three layers follow a U-Net-style encoder-decoder with a 64-dimensional bottleneck, while the last one projects the features into a latent space of dimension , preserving the spatial resolution of the input. Four auxiliary channels are concatenated with the input to provide spatial and temporal context: a binary land-sea mask (equal to 0 on land), two channels with the latitude and longitude of each grid point, and a sinusoidal time embedding encoding month and year. The resulting embedding matrix provides, at each grid point , a latent vector encoding inter-variable dependencies.
The GP uses an RBF kernel with Automatic Relevance Determination (ARD):
where is the -th entry of , is the outputscale and are feature-specific lengthscales that weight the relevance of each latent dimension. The GP has 68 trainable hyperparameters: 33 for the linear prior mean , with and ; 33 for the kernel ( lengthscales and ); and 2 for the Gaussian likelihood. A patch size of is used, selected through a grid search hyper-parameter evaluation with in which the proposed framework is re-trained and evaluated on the validation set: results reported in Figure 3 show that smaller patches reduce the accuracy, while larger ones increase the training cost without further improvements. For small patches, the measured cost exceeds the scaling, as it is dominated by the overhead of processing many small patches.
¹https://data.marine.copernicus.eu/product/GLOBAL_MULTIYEAR_PHY_001_030/description ²https://data.marine.copernicus.eu/product/GLOBAL_ANALYSISFORECAST_PHY_001_024/description ³https://data.marine.copernicus.eu/product/INSITU_MED_PHYBGCWAV_DISCRETE_MYNRT_013_035/description

Fig. 4: Mean daily RMSE of SST and SSS over the test year as a function of the density of synthetic observations. The dashed line is the unassimilated simulation.
The value of is selected on the validation set for each variable and observation density; its effect is analyzed in Section IV-C.
The architecture is trained end-to-end for 500 epochs with constant learning rates of for the feature extractor and for the GP hyperparameters. To facilitate reproducibility, the source code will be released publicly with the final version of the paper.
C. Numerical results
The first experiment aims to evaluate the impact of the volume of the available observations on data assimilation performance. Because real-world measurements are limited, model behavior across varying observation densities is evaluated using noisy synthetic observations. Performance is measured by the mean daily RMSE, i.e., the RMSE over all ocean points computed for each day and averaged over the test year; observation locations are kept fixed across days to isolate the impact of observation density.
Figure 4 (left panel) compares the SST mean RMSE of the proposed approach and the competing algorithms against the unassimilated baseline (dashed line). Our model achieves the lowest RMSE at all observation ratios, remaining robust even under extreme sparsity. At 1% observation density (97 observations out of 9,709 spatial points), it improves on the baseline by approximately 10%, against 6% for the FiLM CNN and 4% for both 3D-Var and the GP. At 5% observation density the margin widens, with approximately 16% for our model versus 12% for 3D-Var and 7% for both the GP and the FiLM CNN. The gains of the proposed method and 3D-Var scale linearly with the number of observations, whereas those of the GP grow more slowly. At low densities, the FiLM CNN outperforms both model-based competitors thanks to a globally learned bias correction applied regardless of the observation locations. However, it improves only marginally as observations increase, and is eventually overtaken by 3D-Var and matched by the GP.
For SSS in Figure 4 (right panel) the climatological bias correction substantially reduces the error of 3D-Var and the GP, which already lie well below the unassimilated simulation at the lowest density. Nevertheless, the proposed method achieves the lowest RMSE at all observation ratios. At 1%, it reduces the baseline error by approximately 36%, against 27% for the FiLM CNN, 25% for 3D-Var and 24% for the GP. At 5%, the reduction reaches approximately 50%, versus 44% for the GP, 36% for 3D-Var and 28% for the FiLM CNN. At the lowest densities the three competitors perform similarly, since their gains are dominated by bias removal, climatological for 3D-Var and the GP and learned for the FiLM CNN, rather than by the observations. As the density increases, 3D-Var and the GP progressively benefit from local conditioning, with the GP overtaking 3D-Var beyond 1.5%, whereas the FiLM CNN remains almost flat. The error of the proposed method decreases monotonically, with the largest gain between 1.4% and 1.9%. Its margin over the bias-corrected competitors indicates that the learned, state-dependent bias term captures more than the climatological mean bias.
Figure 5 shows, for both variables with 1% of synthetic observations, the spatial distribution of the error and of the error reduction with respect to the unassimilated baseline. The corresponding mean daily RMSE values are those reported in Figure 4 at 1%, so this figure is meant as a qualitative illustration of the spatial structure of the corrections. For SST, the proposed method produces broad, spatially coherent improvements that extend well beyond the observation points, whereas 3D-Var yields isotropic corrections centered on each observation, as imposed by its Gaussian background error covariance B. The GP achieves only marginal improvements, while the FiLM CNN produces a diffuse error reduction only weakly tied to the observation locations. For SSS, the largest errors and corrections of all methods are concentrated in the northern Adriatic, along the Po River plume, where the proposed method achieves the strongest error reduction.
Furthermore, the proposed framework provides an explicit

Fig. 5: Spatial distribution of the SST and SSS assimilation error and of the error reduction with respect to the unassimilated baseline. Black markers indicate the observation locations.

Fig. 6: Posterior standard deviation estimated by the proposed model over the test year for SST and SSS. Black markers indicate the observation locations.
measure of predictive uncertainty through spatial standard deviation maps, as shown in Figure 6, obtained in the same setting as Figure 5. Owing to the GP structure, for both variables the standard deviation is lower around the observations and higher in unobserved regions, reflecting the model's confidence in its corrections. For SSS, the highest uncertainty
is concentrated in the northern Adriatic along the Po River plume, even in the presence of nearby observations: this is the region where Figure 5 shows the largest background errors, so the predictive variance also flags where the corrections are least reliable.
Building on this notion of predictive uncertainty, the modulation parameter strengthens corrections in confident regions and dampens them in high-uncertainty areas, preventing over-correction driven by simulation biases. Figure 7 shows the sensitivity of the assimilation accuracy to at five densities of synthetic observations, from 1% to 5%. For SST, the modulation is clearly beneficial: starting from the unmodulated case (), the RMSE drops markedly and reaches a broad minimum, from at 1% to at 4% and 5%, after which it slightly increases. At the optimum, the error is reduced by approximately 15% at 1% and 18% at 5% with respect to . The optimal grows with the observation density: as more observations lower , over a larger part of the domain, a larger is needed to obtain a comparable damping in the regions that remain poorly observed.
For SSS, all curves share a similar shape, with a shallow minimum at small values, –0.7, followed by a steady

Fig. 7: Mean daily RMSE of the proposed method as a function of for SST and SSS, at different densities of synthetic observations. Stars mark the best value of for each density on the test year.
increase, and the gain with respect to is limited to approximately 1–2%. This is consistent with a correction dominated by the learned bias term, which spans the whole basin. Note that the results in Figure 4 are obtained with the value of selected on the validation set, which does not necessarily coincide with the test year optimum marked by the stars in Figure 7. Overall, the optimal depends on both the variable and the observation density, making the assimilation strength a flexible, tunable design choice.
We evaluate the model in an operational setting by performing DA over the test year with real buoy observations, with selected on the validation set as in the synthetic experiments. High-quality observations are available on only 189 days for SST and 125 days for SSS, and the number and positions of the buoys change over time. At most, 6 SST and 3 SSS observations out of 9,709 points are available in a single day ( and , respectively), with fewer on average.
For SST in Figure 8 (top panel), the proposed model overcomes this scarcity by simultaneously assimilating the observations and correcting the bias, remaining below all competitors for most of the period. 3D-Var and the GP improve only slightly on the baseline: lacking bias correction, their observation-driven updates are confined to the areas covered by the observations. The FiLM CNN network performs competitively for roughly the first half of the period, and in some cases matches the proposed method. It then degrades markedly, exceeding even the unassimilated simulation (approximately between the 100th and the 170th available day), before converging again toward the end.
As to SSS in Figure 8 (bottom panel), this is more challenging since approximately 0.03% of observations are barely sufficient to affect the assimilated state. Here, the climatological bias correction brings 3D-Var and the GP well below the unassimilated simulation, with two nearly overlapping curves. Given the extreme sparsity, their gain comes almost entirely

Fig. 8: Daily mean RMSE of SST and SSS over the test year with real buoy observations.
from the removal of the mean seasonal bias, and it narrows toward the end of the period. The proposed method achieves the lowest error for almost the entire period, approached by the FiLM CNN only around the 35th available day, and keeps a clear margin over the bias-corrected competitors. This shows that the learned, state-dependent bias term goes beyond a climatological correction, and confirms the effectiveness of the
TABLE I: Per-day inference time of the four assimilation approaches as a function of the density of synthetic observations.
| Obs. Density | 3D-Var [s] | GP [s] | FiLM CNN [s] | Proposed [s] |
|---|---|---|---|---|
| 1.0% | 17.9385 | 0.0595 | 0.0743 | 0.1617 |
| 1.4% | 16.1644 | 0.0614 | 0.0764 | 0.2776 |
| 1.9% | 17.7259 | 0.0628 | 0.0850 | 0.3038 |
| 2.3% | 16.9607 | 0.0763 | 0.0858 | 0.2836 |
| 2.8% | 18.3246 | 0.0697 | 0.0810 | 0.3082 |
| 3.2% | 16.7395 | 0.0734 | 0.0820 | 0.3156 |
| 3.7% | 18.8173 | 0.0824 | 0.0858 | 0.3413 |
| 4.1% | 16.2498 | 0.0773 | 0.0760 | 0.3209 |
| 4.6% | 16.2388 | 0.0871 | 0.1088 | 0.3113 |
| 5.0% | 16.5836 | 0.0766 | 0.0748 | 0.3155 |
framework in exploiting real, extremely sparse observations.
D. Computational Cost
Beyond accuracy, operational deployment requires a limited computational cost, particularly for daily, low-latency updates. The proposed framework is trained on a single NVIDIA RTX 4090 GPU in approximately 1 hour (500 epochs), and the FiLM CNN is trained under the same protocol and hardware, with a cost of the same order. The 3D-Var covariances are instead tuned once, offline, via Bayesian Optimization (Section IV), and the classical GP hyperparameters are obtained by maximizing the marginal log-likelihood, both at negligible cost. Since these procedures are not directly comparable to gradient-based training, we focus on inference, which is the recurring cost in operational settings. Inference is evaluated on a resource-constrained CPU (Apple M1 Pro, 16GB RAM), without the GPU required for training.
Inference time depends on the number of observations m, which determines the size of the linear system solved at each assimilation step. Table I reports the per-day inference time for observation densities from 1% to 5%. 3D-Var is consistently the slowest method, requiring about 16–19 s per day: although its analysis is also computed in closed form, the minimizer of the cost function (12) is obtained in state space, through a linear system whose size equals the number of ocean grid points (n = 9,709), so that its cost is dominated by the full domain rather than by the observations. The proposed method instead solves an system in observation space, whose cost scales with m rather than with the full domain. The classical GP, operating directly on the raw input features, and the FiLM CNN, whose cost is dominated by a single forward pass, are the fastest methods, with comparable times. The proposed framework adds a modest, roughly constant overhead due to the GP conditioning stage. Although its inference time is several times higher than those of the GP and the FiLM CNN, it remains below one second, an overhead largely outweighed by the accuracy gains discussed in Section IV-C.
V. LEARNED COVARIANCE MATRIX ANALYSIS
The kernel parameters, learned jointly with the network weights, define a similarity measure between grid points in the latent space of the neural network: the resulting covariance thus encodes learned correlations among the background errors at different locations. At inference, evaluated on the embeddings of the current background state, the

Fig. 9: Learned SST and SSS correlations between the location marked by the star and every other point.
covariance determines how the information provided by the observations is propagated across the domain. Because similarity is measured in the learned feature space rather than in physical space, two distant grid points can be strongly correlated whenever their embeddings are similar, allowing the model to capture relationships that a stationary spatial kernel cannot represent.
To visualize these relationships, Figure 9 maps a single row of the correlation matrix obtained by normalizing back onto the spatial grid. For SST, the open-ocean reference point shows a strong local correlation, surrounded by localized patterns of weaker correlation that extend beyond its immediate neighborhood. For SSS, the model autonomously captures a well-known physical phenomenon: the reference point, located near the Po River outflow, is weakly correlated with the rest of the basin and strongly correlated only within the river plume, where freshwater discharge alters salinity. In both cases, the patterns around the reference point are not circular but take complex, unconstrained shapes learned from the data.
A. Hybrid Data Assimilation
We replace the Gaussian background error covariance B of the 3D-Var benchmark with the learned covariance , keeping all other components unchanged (background state, observations and observation error covariance ), so that any difference in performance is due solely to B. Note that, for , the analysis increment of this configuration coincides with the correction of the proposed method with zero prior mean, so that this experiment also isolates the contribution of the learned covariance from that of the learned bias term. Figure 10 compares the daily RMSE of the two configurations over the test year for SST and SSS, with 1% of synthetic observations. For both variables, the learned covariance reduces the error on every day of the test year.
For SST, the largest gains occur approximately between days 100 and 200, when the error of the Gaussian configuration is highest and, on several days, is almost halved by the learned covariance. In the first and last months of the year, instead, the points lie closer to the diagonal, indicating smaller but consistent improvements. The full proposed method still performs better, since it also benefits from the learned prior

SSS

Fig. 10: Paired comparison of the daily RMSE obtained by 3D-Var with the classical Gaussian background error covariance (x-axis) and with the covariance learned by the proposed method (y-axis), over the test year for SST and SSS.
mean, which captures the systematic bias, but the learned B alone already improves the structure of the 3D-Var corrections.
For SSS, the points lie along a narrow band parallel to the diagonal, indicating a nearly constant improvement regardless of error level and season.
Overall, the learned covariance is not only an interpretable product of the framework but also a better background error covariance in its own right, which can be plugged directly into an existing variational system without modifying its structure. The proposed framework therefore serves a dual purpose: an effective covariance generator for DA and an interpretability tool for investigating the spatial structure of the background error.
VI. CONCLUSIONS
In this work, we presented a hybrid data assimilation framework that combines neural networks and Gaussian Processes, trained end-to-end by maximizing the marginal log-likelihood. A CNN feature extractor generates embeddings that parametrize a learnable GP kernel. This overcomes two main limitations of classical variational approaches such as 3D-Var: a hand-crafted, static background error covariance and the lack of an explicit bias correction. Unlike purely data-driven solutions, the framework remains interpretable and provides uncertainty quantification by design, since both the learned covariance and the predictive variance are direct outputs of the GP rather than post-hoc approximations. A spatial patching strategy addresses the cost of exact GP training, allowing the framework to scale to large, high-resolution domains with a controllable trade-off between cost and accuracy.
Experiments on SST and SSS, with both synthetic observations at controlled densities and real, irregularly distributed buoy measurements, showed that the proposed approach consistently outperforms 3D-Var, a classical GP and a FiLM-conditioned CNN. Even with real buoys only (0.03% and 0.06% observation density), it achieves effective assimilation and implicit bias correction, also outperforming competitors equipped with a climatological bias correction. The learned covariances capture state-dependent spatial structures, such as the Po River plume, that a stationary kernel cannot represent. Moreover, when plugged into a classical 3D-Var scheme in place of the hand-crafted Gaussian covariance, without further tuning, the learned covariance reduces the error on all test days for both SST and SSS in the synthetic setting. Operational systems can thus benefit from data-driven covariance modeling while preserving their variational formulation. This also opens the way to settings where closed-form GP inference is unavailable, such as non-linear observation operators, additional physical constraints or 4D-Var.
Overall, combining deep learning with Gaussian Processes offers an effective, interpretable and scalable alternative to traditional DA, as well as a practical means of enhancing it, particularly in operational settings with extreme observational sparsity.
REFERENCES
[1] G. Evensen et al., Data Assimilation Fundamentals: A Unified Formulation of the State and Parameter Estimation Problem. Springer, 2022. [2] R. N. Bannister, "A review of operational methods of variational and ensemble-variational data assimilation," Quarterly Journal of the Royal Meteorological Society, vol. 143, no. 703, pp. 607–633, 2017. [3] S. Cheng et al., "Machine learning with data assimilation and uncertainty quantification for dynamical systems: A review," IEEE/CAA Journal of Automatica Sinica, vol. 10, pp. 1361–1387, 2023. [4] Y. Zheng, "Methodologies for cross-domain data fusion: An overview," IEEE Transactions on Big Data, vol. 1, no. 1, pp. 16–34, 2015. [5] U. A. Khan et al., "Distributing the Kalman filter for large-scale systems," IEEE Transactions on Signal Processing, vol. 56, no. 10, pp. 4919–4935, 2008. [6] Y. Sun et al., "Scaling the Kalman filter for large-scale traffic estimation," IEEE Transactions on Control of Network Systems, vol. 5, no. 3, pp. 968–980, 2018. [7] M. Penalba et al., "Bias correction techniques for uncertainty reduction of long-term metocean data for ocean renewable energy systems," Renewable Energy, vol. 219, p. 119404, 2023.
[8] K. F. Ahmed et al., “Statistical downscaling and bias correction of climate model outputs for climate change impact assessment in the U.S. northeast,” Global and Planetary Change, vol. 100, pp. 320–332, 2013.
[9] A. Farchi et al., “A comparison of combined data assimilation and machine learning methods for offline and online model error correction,” Journal of Computational Science, vol. 55, p. 101468, 2021.
[10] X. Li et al., “Land data assimilation: Harmonizing theory and data in land surface process studies,” Reviews of Geophysics, vol. 62, no. 1, p. e2022RG000801, 2024.
[11] N. Raoult et al., “Parameter estimation in land surface models: Challenges and opportunities with data assimilation and machine learning,” Journal of Advances in Modeling Earth Systems, vol. 17, no. 11, p. e2024MS004733, 2025.
[12] J. Y. Zhu et al., “An extended spatio-temporal Granger causality model for air quality estimation with heterogeneous urban big data,” IEEE Transactions on Big Data, vol. 3, no. 3, pp. 307–319, 2017.
[13] T. V. Le et al., “Local Gaussian processes for efficient fine-grained traffic speed prediction,” IEEE Transactions on Big Data, vol. 3, no. 2, pp. 194–207, 2017.
[14] C. L. P. Chen et al., “Data-intensive applications, challenges, techniques and technologies: A survey on big data,” Information Sciences, vol. 275, pp. 314–347, 2014.
[15] H. Liang et al., “A survey on spatio-temporal big data analytics ecosystem: Resource management, processing platform, and applications,” IEEE Transactions on Big Data, vol. 10, pp. 174–193, 2024.
[16] K. Manohar et al., “Data-driven sparse sensor placement for reconstruction: Demonstrating the benefits of exploiting known patterns,” IEEE Control Systems Magazine, vol. 38, no. 3, pp. 63–86, 2018.
[17] M. Joneidi et al., “E-optimal sensor selection for compressive sensing-based purposes,” IEEE Transactions on Big Data, vol. 6, no. 1, pp. 51–65, 2020.
[18] X. Liu et al., “LS-decomposition for robust recovery of sensory big data,” IEEE Transactions on Big Data, vol. 4, no. 4, pp. 542–555, 2018.
[19] A. C. Lorenc, “Modelling of error covariances by 4D-Var data assimilation,” Quarterly Journal of the Royal Meteorological Society, vol. 129, no. 595, pp. 3167–3182, 2003.
[20] F. Wen et al., “Fast and positive definite estimation of large covariance matrix for high-dimensional data analysis,” IEEE Transactions on Big Data, vol. 7, no. 3, pp. 603–609, 2021.
[21] L. Chu et al., “Massive streaming PMU data modelling and analytics in smart grid state evaluation based on multiple high-dimensional covariance test,” IEEE Transactions on Big Data, vol. 4, no. 1, pp. 55–64, 2018.
[22] G. Evensen, “The ensemble Kalman filter: theoretical formulation and practical implementation,” Ocean Dynamics, vol. 53, pp. 343–367, 2003.
[23] H. Liu et al., “When Gaussian process meets big data: A review of scalable GPs,” IEEE Transactions on Neural Networks and Learning Systems, vol. 31, no. 11, pp. 4405–4423, 2020.
[24] R. Arcucci et al., “The convergence of machine learning and data assimilation in Earth system science,” npj Artificial Intelligence, vol. 2, no. 1, p. 48, 2026.
[25] M. Reichstein et al., “Deep learning and process understanding for data-driven Earth system science,” Nature, vol. 566, no. 7743, pp. 195–204, 2019.
[26] X. X. Zhu et al., “Deep learning in remote sensing: A comprehensive review and list of resources,” IEEE Geoscience and Remote Sensing Magazine, vol. 5, no. 4, pp. 8–36, 2017.
[27] S. Wang et al., “Deep learning for spatio-temporal data mining: A survey,” IEEE Transactions on Knowledge and Data Engineering, vol. 34, no. 8, pp. 3681–3700, 2022.
[28] J. Ji et al., “Spatio-temporal transformer network for weather forecasting,” IEEE Transactions on Big Data, vol. 11, no. 2, pp. 372–387, 2025.
[29] Y. Gong et al., “Spatio-temporal enhanced contrastive and contextual learning for weather forecasting,” IEEE Transactions on Knowledge and Data Engineering, vol. 36, no. 8, pp. 4260–4274, 2024.
[30] P. Zhang et al., “Short-term rainfall forecasting using multi-layer perceptron,” IEEE Transactions on Big Data, vol. 6, no. 1, pp. 93–106, 2020.
[31] Y. Yuan et al., “STGAN: Spatio-temporal generative adversarial network for traffic data imputation,” IEEE Transactions on Big Data, vol. 9, no. 1, pp. 200–211, 2023.
[32] W. Shi et al., “Effective prediction of missing data on Apache Spark over multivariable time series,” IEEE Transactions on Big Data, vol. 4, no. 4, pp. 473–486, 2018.
[33] Y. Meng et al., “Physics-guided generative adversarial networks for sea subsurface temperature prediction,” IEEE Transactions on Neural Networks and Learning Systems, vol. 34, no. 7, pp. 3357–3370, 2023.
[34] L. Meng et al., “Reconstructing high-resolution ocean subsurface and interior temperature and salinity anomalies from satellite observations,” IEEE Transactions on Geoscience and Remote Sensing, vol. 60, p. 4104114, 2022.
[35] R. Fablet et al., “Multimodal 4DVarNets for the reconstruction of sea surface dynamics from SST-SSH synergies,” IEEE Transactions on Geoscience and Remote Sensing, vol. 61, p. 4204214, 2023.
[36] R. Arcucci et al., “Deep data assimilation: Integrating deep learning with data assimilation,” Applied Sciences, vol. 11, p. 1114, 2021.
[37] M. Amendola et al., “Data assimilation in the latent space of a convolutional autoencoder,” in Computational Science – ICCS 2021, ser. Lecture Notes in Computer Science, vol. 12746. Springer, 2021, pp. 373–386.
[38] X. Shan et al., “Assimilating ASCAT normalized backscatter and slope into the land surface model ISBA-A-gs using a deep neural network as the observation operator: Case studies at ISMN stations in western Europe,” Remote Sensing of Environment, vol. 308, p. 114167, 2024.
[39] M. Beauchamp et al., “4DVarNet-SSH: end-to-end learning of variational interpolation schemes for nadir and wide-s swath satellite altimetry,” Geoscientific Model Development, vol. 16, no. 8, pp. 2119–2147, 2023.
[40] Q. Februe et al., “Joint calibration and mapping of satellite altimetry data using trainable variational models,” in Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2022, pp. 1536–1540.
[41] A. Farchi et al., “Online model error correction with neural networks in the incremental 4D-Var framework,” Journal of Advances in Modeling Earth Systems, vol. 15, no. 9, p. e2022MS003474, 2023.
[42] X. Xu et al., “FuXi-DA: a generalized deep learning data assimilation framework for assimilating satellite observations,” npj Climate and Atmospheric Science, vol. 8, no. 1, p. 156, 2025.
[43] P. Lean et al., “Global reanalysis from observations alone with machine learning,” arXiv:2607.07879, 2026.
[44] L. Huang et al., “DiffDA: a diffusion model for weather-scale data assimilation,” in Proceedings of the 41st International Conference on Machine Learning (ICML), 2024.
[45] A. J. Geer, “Learning Earth system models from observations: machine learning or data assimilation?” Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, vol. 379, no. 2194, p. 20200089, 2021.
[46] Y. Han et al., “A domain-specific Bayesian deep-learning approach for air pollution forecast,” IEEE Transactions on Big Data, vol. 8, no. 4, pp. 1034–1046, 2022.
[47] E. Hüllermeier et al., “Aleatoric and epistemic uncertainty in machine learning: an introduction to concepts and methods,” Machine Learning, vol. 110, no. 3, pp. 457–506, 2021.
[48] T. Mallick et al., “Uncertainty quantification for traffic forecasting using deep-ensemble-based spatiotemporal graph neural networks,” IEEE Transactions on Intelligent Transportation Systems, vol. 25, no. 8, pp. 9141–9152, 2024.
[49] C. E. Rasmussen et al., Gaussian Processes for Machine Learning. The MIT Press, 2005.
[50] J. Hensman et al., “Gaussian processes for big data,” in Proceedings of the 29th Conference on Uncertainty in Artificial Intelligence (UAI), 2013, pp. 282–290.
[51] M. Titias, “Variational learning of inducing variables in sparse Gaussian processes,” in Proceedings of the 12th International Conference on Artificial Intelligence and Statistics (AISTATS), 2009, pp. 567–574.
[52] J. R. Gardner et al., “GPyTorch: Blackbox matrix-matrix Gaussian process inference with GPU acceleration,” in Advances in Neural Information Processing Systems (NeurIPS), 2018, pp. 7587–7597.
[53] C. Park et al., “Efficient computation of Gaussian process regression for large spatial data sets by patching local Gaussian processes,” Journal of Machine Learning Research, vol. 17, no. 174, pp. 1–29, 2016.
[54] —, “Patchwork kriging for large-scale Gaussian process regression,” Journal of Machine Learning Research, vol. 19, pp. 269–311, 2018.
[55] D. Gu et al., “Spatial Gaussian process regression with mobile sensor networks,” IEEE Transactions on Neural Networks and Learning Systems, vol. 23, no. 8, pp. 1279–1290, 2012.
[56] A. G. Wilson et al., “Deep kernel learning,” in Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), 2016, pp. 370–378.
[57] —, “Kernel interpolation for scalable structured Gaussian processes (KISS-GP),” in Proceedings of the 32nd International Conference on Machine Learning (ICML), 2015, pp. 1775–1784.
[58] E. Perez et al., “FiLM: Visual reasoning with a general conditioning layer,” in Proceedings of the AAAI Conference on Artificial Intelligence, 2018, pp. 3942–3951.