Open-access Nonlinear data normalisation for reliable spatial inference with variational Gaussian processes

Abstract

Machine learning methods for grade estimation have been rising in popularity in recent years. Among these, the variational Gaussian process model possesses all the beneficial characteristics of the kriging estimator: conditioning on data, declustering properties, and an uncertainty measure that increases with distance from the data points. However, its use requires a transformation of the data to a Gaussian distribution, especially if the data is compositional, as is the case with drillhole assays. This work explores some transformations that were specifically adapted for this model, making use of principal components analysis, independent components analysis, monotonic splines, and flow methods. Results show that the best transformation is case-dependent, and that they provide similar results to the ones used for geostatistical simulation. An open-source implementation of the methods is available to the community.

Variational Gaussian process; normal score transform; mineral deposit modelling


Introduction

Spatial prediction has become an indispensable component of modern earth and mineral systems analysis, underpinning decision-making across exploration targeting, orebody characterisation, resource estimation, and geometallurgical modelling. However, spatial datasets used in geological, geochemical, and geometallurgical investigations are characterised by marked deviations from Gaussian distribution. Heavy-tailed grade distributions, multi-modal responses associated with lithological and geochemical heterogeneity, compositional constraints, and complex spatial dependence structures introduce asymmetry and nonlinearity that challenge widely used modelling frameworks. Gaussian process (GP) models (Rasmussen, Williams, 2006), and particularly their variational formulations (Hensman et al., 2015), have become increasingly attractive for spatial inference because they can capture nonlinear relationships, propagate uncertainty rigorously, and incorporate anisotropic kernels that reflect geological architecture. However, a core assumption embedded in the latent structure of Gaussian processes is that the transformed data should approximate a multivariate Gaussian distribution. When this assumption is violated, kernel hyperparameters may be poorly estimated, predictive means may exhibit structural bias, and uncertainty intervals may display under- or over-confidence. These issues can propagate into downstream technical and economic evaluations of mineral deposits, including recoverable resource estimates, metallurgical process response predictions, and mine planning decisions that depend on stable representations of spatial uncertainty.

Normalisation is therefore not a peripheral preprocessing decision, but a central element of the modelling workflow. The way spatial data are transformed prior to variational Gaussian process (VGP) modelling (Gonçalves et al., 2022) determines the geometry of the latent space, the smoothness and anisotropy recovered by the kernel, and the calibration of predictive probabilistic outputs. Despite its importance, normalisation is often treated as a routine operation, implemented through simple Z-score scaling or logarithmic transforms without consideration of spatial effects, compositional structure, or multivariate dependencies. In practice, these choices determine whether the resulting VGP captures the true spatial behaviour of the underlying process or produces misleadingly precise predictions that obscure geological variability.

The challenge is amplified in natural resource applications where datasets are typically sparse, irregularly sampled, and affected by both geological and analytical noise. Geochemical variables may possess strong positive skewness, reflecting enrichment processes, while mineralogical and geometallurgical attributes can exhibit non-linear cross-correlations arising from mineral associations, alteration fronts, or process domains. Compositional datasets, such as oxide proportions, reside in the simplex and obey closure constraints that invalidate many conventional transformations. Spatial cross-validation further reveals that naïve normalisation can result in models that perform well in random splits but degrade when honouring spatial autocorrelation structures.

Recent methodological advances have begun to address aspects of these challenges. Spline-based univariate Gaussianisation has been demonstrated as an effective means of handling skewness while preserving rank structure (Gonçalves et al., 2020). More flexible nonlinear transformations, including projection pursuit multivariate transformation (PPMT) (Barnett et al., 2014) and normalising flows (Grathwohl et al., 2019), have gained traction in the geostatistical and machine learning literature, respectively, although their data demands and interpretability constraints limit routine application in natural resource settings. Yet, there has been no systematic analysis of how these various normalisation strategies compare when applied to spatial datasets under a unified VGP framework, nor how they influence predictive accuracy, uncertainty calibration, and spatial continuity.

This study addresses that gap by examining a suite of univariate, multivariate, and nonlinear normalisation methods applied to representative geometallurgical datasets. The focus is on understanding how each transformation reshapes the latent Gaussian geometry and how these differences manifest in spatial predictions and associated uncertainty measures. Variational Gaussian processes are used as the modelling platform because of their suitability for large datasets and their explicit reliance on latent Gaussian structure. Spatial cross-validation is employed to ensure that model comparisons reflect realistic generalisation behaviour rather than artefacts of random partitioning.

Theory

Variational Gaussian process modelling

The variational Gaussian process is a generalisation of the standard Gaussian process (Rasmussen, Williams, 2006), which in turn is a Bayesian derivation of kriging. It is based on the concept of latent variables, i.e., random Gaussian fields that are functions of the input coordinates. A vector-valued field f(x) is generated from a number M of inducing points t distributed over the same region as the data points x, with corresponding latent variables u(t). Aggregating all the N data points in D dimensions in an NxD matrix X, and the corresponding P latent variables in an NxP matrix F, the corresponding probability distribution is given by (Hensman et al., 2015; Gonçalves et al., 2022, Gonçalves, Wellmann, 2025):

where Kij is a covariance matrix computed for all pairs of inputs with any of the usual functions (Gaussian, spherical, exponential, etc.). For the sake of simplicity, they are assumed to be the same for all p latent variables, but this is not a requirement. Furthermore, mp and Sp are the posterior mean and covariance matrix of the up latent variables, which are trainable parameters in the model. In other words, a field is generated by kriging the latent variables from the inducing points to the data points. If M<N, a computational gain is obtained at the potential cost of a loss in spatial detail.

The latent variables are linked to the measurements y through a likelihood function p(y|f). If the likelihood is Gaussian, the model will seek to minimise the squared error of predictions similarly to kriging, but other likelihood functions can be used (Hensman et al., 2015; Gonçalves et al., 2022), even allowing the model to deal with categorical data (Gonçalves et al., 2023). The model is trained by maximising the evidence lower bound (ELBO), an approximation of the true data likelihood p(Y):

where Y is the matrix aggregating all measurements, p(up)~N(0,Kuu) is the prior distribution of the inducing points' latent variables, q(up)~N(mp,Sp) is the posterior, and KL[q(up)||p(up)] is the Kullback-Leibler divergence between them. The expectation Eq(fn) is computed by Monte Carlo, with samples generated from q(up) that are interpolated to the data points. The same approach can be used to generate samples at new spatial locations after the model is trained.

Normalisation methods

The formulation in the aforementioned assumes that the measurements y are Gaussian-distributed, which is often not the case in the geosciences, as data distributions can be skewed and/or constrained. In the GP literature, data normalisation is denominated as warping (Snelson et al., 2004, Gonçalves et al., 2020). Warping consists of a bijective function y=ϕ(z) that maps the measurements z to normalised values. It is essentially similar to the Gaussian anamorphosis employed in geostatistics, but it can have trainable parameters. To incorporate warping in VGP training, Equation 5 is extended with a change of variables formula:

where is the Jacobian of the transformation. Specific warping functions are described in the following, according to their uses.

Scaling

By default, the VGP implementation presented here assumes that the data has zero mean and unit variance. The Z score warping is simply given by:

where and Op are the trainable mean and variance. They can be initialised with the empirical mean and variance of the data.

Constraints

Quantities such as chemical assays have non-negativity constraints. In such cases the log ϕ(zp)=logzp) or softplus (φ-1) (yp)=log(1+e(yp)) functions can be applied. Chemical assays are often treated as compositional (Pawlowsky-Glahn et al., 2015), encompassing a positive and constant sum constraint. This can be dealt with by applying the centred log-ratio transformation (clr):

Note that, due to the subtraction of the mean, the resulting vector is linearly dependent. This can be avoided by using a vector basis in a (P-1)-dimensional space. The isometric log-ratio transformation (ilr) derives such a basis from sequential partitions of the original composition, but it is not explored in this work.

Decorrelation

The P latent variables are assumed to be independent for the sake of computational efficiency. If the measurements are not decorrelated, the final results may be sub-optimal. The simplest decorrelation method is principal components analysis (PCA) (Jolliffe, 2002). PCA finds the directions of maximum variance in the data space and returns an orthonormal matrix Q. The transformation is given by ϕ(z)=Qz. If the variables have strong correlations, it is possible to retain only the first few principal components that explain the majority of the variability in the data.

Datasets often contain extreme values and/or outliers that can influence the PCA results. In this case a robust method can be used, such as the minimum covariance determinant (MCD) after Rousseeuw and Van Driessen (1999). It consists of computing the data covariance matrix using only a fraction of the data points that are closer to the mean in the Mahalanobis sense.

Gaussianisation

Data distributions may present asymmetry and/or heavy tails. A simple way to correct this is to employ monotonic splines (Gonçalves et al., 2020), defining a set of (y,z) knots, which are interpolated to obtain ϕ(zp) and ϕ-1(yp). These splines are defined separately for each of the P directions, so if the data have a complex distribution this method may not be sufficient for a complete Gaussianisation. The data can be rotated prior to the application of splines to deal with non-Gaussianity in oblique directions. The method known as independent components analysis (ICA) (Hyvärinen, Oja, 2000) can be used to find the directions of maximum non-Gaussianity.

Flow methods generate a time-variant vector field that is used to move the data points closer to a Gaussian distribution (Grathwohl et al., 2019). This vector field is integrated for a number of time steps, and over time they may aggregate in a region of space, spread apart in others, make curves, etc. The flow can be reversed by integrating the vector field backwards in time. In this work, the vector field is defined by the mean of a GP generated from inducing points spread over z space.

Warping chains

A single warping function may not be sufficient to obtain good results. In this case, multiple warping functions can be chained together, each one working with the output of the previous one. Such chains can be built to mimic the behaviour of the known approaches in geostatistics. Figure 1 demonstrates the chains employed in this work. By choosing different paths and partially traversing the graph, different normalisation strategies can be tested, also considering the characteristics of the data (non-negative, compositional, etc.).

Methodology

The evaluation presented in this study is based on a comparative analysis of univariate and multivariate normalisation strategies applied to representative spatial datasets drawn from geometallurgical domains. The purpose of this section is to describe the datasets, justify their selection, outline the transformation procedures applied, and detail the variational Gaussian process modelling and cross-validation framework used to assess predictive accuracy, uncertainty calibration, and spatial structure recovery.

Data description

Four datasets were selected to capture a spectrum of distributional and dependence structures commonly encountered in mineral-systems analysis:

> Jura: the Jura dataset (Goovaerts, 1997) contains 7 variables that represent heavy metal contamination. Each variable has a different degree of asymmetry and they present non-linear relationships.

> Synthetic: this dataset contains 6 variables with highly non-linear relationships, generated explicitly to test a geostatistical simulation algorithm (De Figueiredo et al., 2021).

> Copper: a Cu deposit in Brazil, where many different elements were analysed (Hoffimann et al., 2022).

> Assen: a Fe deposit in South Africa, presenting multiple lithological domains and multi-modal distributions.

The characteristics of each dataset and the methodologies employed are described in Table 1. To explore a range of practical situations, a different validation strategy was applied to each one.

Table 1

The last two datasets are compositional, consisting of normalised oxide proportions from a set of drillhole or bench-scale samples. Because compositional data lie in the simplex and obey a closure constraint (Pawlowsky-Glahn et al., 2015), they provide an essential test of normalisation strategies that must respect this geometry. These datasets therefore provide a realistic basis for evaluating warping methods. Across all datasets, the spatial configuration reflects irregular sampling common in exploration and operational settings. Sampling density varies across structural domains, and drilling patterns reflect operational priorities, leading to non-isotropic spatial support. These characteristics ensure that the evaluation framework reflects conditions typical of real-world geometallurgical modelling, where data sparsity and anisotropy interact strongly with the normalisation and GP modelling choices.

Validation metrics

To assess the efficiency of the proposed approach over a wide range of situations, different validation methods were applied to each dataset (Table 1). Different validation metrics were also tested. The following metrics are available in the scikit-learn library (Pedregosa et al., 2011): Root mean square error (RMSE), mean absolute error (MAE), and median absolute error (MDAE). In the figures below, a subscript p indicates that the metric was computed from the prediction, averaging all predictive samples, while the subscript s indicates the aggregation of the errors of the individual samples. The samples were also used to compute the squared bias (average deviation from the true values) and variance, treating the samples as the predictions from individual models. The interval score (IS) (Gneiting, Raftery, 2007) was also computed with a significance of 0.05. IS assesses the accuracy of confidence intervals, which in this case were derived empirically from the samples. For compositional data the Aitchison distance is also computed (Pawlowsky-Glahn et al., 2015). For all metrics a lower value is better, and 25 samples were found to be sufficient to obtain stable results.

Results

Jura

Figure 2 displays the performance of different warping chains on the Jura dataset, using a set of 100 validation points as reference. The results vary for each element but overall, the ICA path performed best in terms of the interval score and, thus, has the best calibrated uncertainty.

Figure 2

Figure 3 displays the obtained normal scores, while Figure 4 allows a comparison of the distributions of the original data and samples computed at the data points. A close correspondence can be observed between the two.

Figure 4-Distribution of the Jura data (lower triangle, bars) and samples computed on the data locations (upper triangle, black lines)

Synthetic data

This dataset was designed specifically to challenge the standard normalisation methods. In this case the flow path performed better overall. Figures 5 to 7 display the results.

Copper

Due to the sheer number of variables, the distribution of the Copper dataset is best visualised through a PCA (Figure 8). It can be seen that the point cloud is not perfectly aligned with the principal components axes and there are some extreme points in the lower right corner of the plot. Due to this the robust PCA version was used in the warping chain for this dataset.

Figure 8

The validation strategy here was to divide the data into 5 folds, using the methodology by Linnenbrink et al. (2024). Four folds were used for training, and one was held out for validation. Figures 9 to 10 display the results on the validation set. In this case the ICA path displayed better results overall.

Assen

The Assen dataset displays a strong multimodality induced by differences in lithology (Figure 11). To take this feature into account, this deposit was modelled with the method described in Gonçalves and Wellmann (2025), where extra latent variables are assigned to the lithological classes and reused to influence the latent variables responsible for the assays. Due to the relatively small sample size concentrated in a small number of drillholes, a simple random train/test split was made, keeping 80% of the data for training.

Figure 11

The validation results are displayed in Figure 12. Some elements were insensitive to the choice of method, while for others the best results were obtained with simpler warping paths. The flow path seems to be slightly better overall.

Figure 12

Due to the influence of lithology, the model normalised the data only within each category (Figure 13). The two clusters visible in Figure 11 were not merged by the flow warping as would be expected. Nevertheless, the relationships between the variables were recovered (Figure 14).

Figure 14

Discussion

The results did not reveal a clear winner among the methods studied, although the ICA and flow paths performed better than the simpler methods overall. All methods performed better than simple rescaling, demonstrating that asymmetries and correlations do impact modelling results and should not be ignored. Apart from this, the choice of method is a matter of geological interpretation and an accuracy/complexity trade-off.

For the Assen data normalisation was not complete, but that does not necessarily mean that the model was sub-optimal. The corresponding procedure in traditional geostatistics would be to make separate models for each geological domain, in which it would be possible to fully normalise the data. VGP achieves a similar result without the need for separate models.

From the results is seems that approximate Gaussianity is sufficient to obtain good results, without the need for multiple passes as in PPMT. In machine learning it is always beneficial to avoid unnecessarily complex models due to the risk of overfitting and sub-optimal training convergence.

Conclusions

This study demonstrates that spatial data normalisation is a decisive factor in the reliability of variational Gaussian process inference for geological, geochemical, and geometallurgical datasets. Transformations that merely rescale or symmetrise the data are insufficient when confronted with the heavy-tailed distributions, non-linear dependencies and compositional constraints that characterise natural-resource systems. Effective normalisation must regularise both marginal and joint behaviour while preserving spatial continuity and geological structure.

The comparative evaluation across the four datasets demonstrates that the choice of normalisation strategy exerts some influence on predictive accuracy, uncertainty calibration, and spatial structure. All transformations improved accuracy relative to modelling on raw variables, but the choice of method still depends on the interpretation and experience of the professional.

CRediT author statement

IG: Conceptualisation, methodology, software, investigation, writing; GN: Conceptualisation, methodology, investigation, writing.

Acknowledgements

The authors acknowledge the Brazilian National Council for Scientific and Technological Development (CNPq) for financial support (process 407752/2022-6).

References

  • Barnett, R.M., Manchuk, J.G., Deutsch, C.v. 2014. Projection Pursuit Multivariate Transform. Mathematical Geosciences, vol. 46, no3, pp. 337-359. https://doi.org/10.1007/s11004-013-9497-7
    » https://doi.org/10.1007/s11004-013-9497-7
  • De Figueiredo, L.P., Schmitz, T., Lunelli, R., Roisenberg, M., Santana de Freitas, D., Grana, D. 2021. Direct Multivariate Simulation - A stepwise conditional transformation for multivariate geostatistical simulation. Computers and Geosciences, 147(November 2020), 104659. https://doi.org/10.1016/j.cageo.2020.104659
    » https://doi.org/10.1016/j.cageo.2020.104659
  • Gneiting, T., Raftery, A.E. 2007. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, vol. 102, no. 477,pp. 359-378. https://doi.org/10.1198/016214506000001437
    » https://doi.org/10.1198/016214506000001437
  • Gonçalves, Í.G., Echer, E., Frigo, E. 2020. Sunspot Cycle Prediction Using Warped Gaussian Process Regression. Advances in Space Research, vol. 65, pp. 677-683. https://doi.org/10.1016/j.asr.2019.11.011
    » https://doi.org/10.1016/j.asr.2019.11.011
  • Gonçalves, Í.G., Guadagnin, F., Cordova, D.P. 2022. Learning spatial patterns with variational Gaussian processes: Regression. Computers & Geosciences, 161, 105056. https://doi.org/10.1016/j.cageo.2022.105056
    » https://doi.org/10.1016/j.cageo.2022.105056
  • Gonçalves, Í.G., Guadagnin, F., Cordova, D.P. 2023. Variational Gaussian processes for implicit geological modeling. Computers & Geosciences, vol. 174. https://doi.org/10.1016/j.cageo.2023.105323
    » https://doi.org/10.1016/j.cageo.2023.105323
  • Gonçalves, Í. G., & Wellmann, F. (2025). Uncertainty propagation in deep Gaussian process networks. Mathematical Geosciences, vol. 57, no. 6, pp. 1115-1133. https://doi.org/10.1007/s11004-025-10187-4
    » https://doi.org/10.1007/s11004-025-10187-4
  • Goovaerts, P. 1997. Geoestatistics for Natural Resources Evaluation. Oxford University Press.
  • Grathwohl, W., Chen, R.T.Q., Bettencourt, J., Sutskever, I., Duvenaud, D. 2019. Ffjord: Free-form continuous dynamics for scalable reversible generative models. 7th International Conference on Learning Representations, ICLR 2019, pp. 1-13.
  • Hensman, J., Matthews, A.G., Ghahramani, Z. 2015. Scalable variational Gaussian process classification. Journal of Machine Learning Research, vol. 38, pp. 351-360.
  • Hoffimann, J., Augusto, J., Resende, L., Mathias, M., Mazzinghy, D., Bianchetti, M., Mendes, M., Souza, T., Andrade, V., Domingues, T., Silva, W., Silva, R., Couto, D., Fonseca, E., Gonçalves, K. 2022. Modeling Geospatial Uncertainty of Geometallurgical Variables with Bayesian Models and Hilbert-Kriging. Mathematical Geosciences, vol. 54, no. 7, pp. 1227-1253. https://doi.org/10.1007/s11004-022-10013-1
    » https://doi.org/10.1007/s11004-022-10013-1
  • Hyvärinen, A., Oja, E. 2000. Independent component analysis: algorithms and applications. Neural Networks, vol. 13, pp. 411-430. www.elsevier.com/locate/neunet
    » www.elsevier.com/locate/neunet
  • Jolliffe, I.T. 2002. Principal Component Analysis (2nd ed.). Springer.
  • Linnenbrink, J., Milà, C., Ludwig, M., Meyer, H. 2024. KNNDM CV: K-fold nearest-neighbour distance matching cross-validation for map accuracy estimation. Geoscientific Model Development, vol. 17, no. 15, pp. 5897-5912. https://doi.org/10.5194/gmd-17-5897-2024
    » https://doi.org/10.5194/gmd-17-5897-2024
  • Pawlowsky-Glahn, V., Egozcue, J.J., Tolosana-Delgado, R. 2015. Modeling and Analysis of Compositional Data. John Wiley & Sons.
  • Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., Duchesnay, E. 2011. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, vol. 12, pp. 2825-2830. http://scikit-learn.sourceforge.net.
    » http://scikit-learn.sourceforge.net
  • Rasmussen, C.E., Williams, C.K.I. 2006. Gaussian processes for machine learning. MIT Press. https://doi.org/10.1142/S0129065704001899
    » https://doi.org/10.1142/S0129065704001899
  • Rousseeuw, P., Van Driessen, K. 1999. A fast algorithm for the minimum covariance determinant estimator. Technometrics, vol 41, no. 3. http://amstat.tandfonline.com/doi/abs/10.1080/00401706.1999.10485670
    » http://amstat.tandfonline.com/doi/abs/10.1080/00401706.1999.10485670
  • Snelson, E., Rasmussen, C.E., Ghahramani, Z. 2004. Warped Gaussian processes. Adv. Neural Inf. Proc. Syst., vol. 16, pp. 337-344.

Correspondence:
I.G Gonçalves
Email:

Received: 12 Jan. 2026
Revised: 28 Sep. 2026
Accepted: 02 Oct. 2026
Published: Oct. 2026

Publication Dates

  • Publication in this collection
    24 Nov 2026
  • Date of issue

History

  • Received
    12 Jan 2026
  • Reviewed
    28 Sept 2026
  • Accepted
    02 Oct 2026
location_on
The Southern African Institute of Mining and Metallurgy The Southern African Institute of Mining and Metallurgy, 5 Hollard Street, P.O. Box 61127, Marshalltown, Johannesburg, Gauteng, ZA, 2107, Tel: +27 11 834 1273, Tel: +27 11 834 1277 - E-mail: journal@saimm.co.za
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo