Implicit Boundary Modeling with Radial Basis Functions
Learning Objectives
- Review the importance of stationary domains
- Review the framework of radial basis functions (RBF)
- Compare RBF interpolation and dual kriging
Introduction
A critical task in geostatistical modeling is the delimitation of domain boundaries. This is performed to satisfy the decision of stationarity used in geostatistical workflows. These domains can be based on grade, lithology, alteration, mineralization, structure or a combination of these factors. Historically, a manual interpretation of the domain boundaries was considered based on the experience and knowledge of the geologist. There could be different interpretations in presence of widely spaced data (Silva & Deutsch, 2012) and these can be time-consuming and difficult to reproduce.
To supplement manual interpretation, several mathematical approaches have been developed for implicit modeling; a common method is the interpolation of signed distance functions using Radial Basis Functions (RBF) (Cowan et al., 2003). Signed distance functions have been widely used for implicit surface inference (Osher & Fedkiw, 2003). RBFs were first mentioned in the geological literature by (Hardy, 1971). The development of RBFs was in parallel to the work of Matheron on regionalized variables (Matheron, 1963). A key difference between RBFs and Kriging is that RBFs use a chosen radial basis function and Kriging uses the covariance function for interpolation (Cowan et al., 2003). Additionally, Kriging often computes weights for each estimate using a local search neighborhood; RBFs conventionally use all samples to compute the weights once. There is a similar form of Kriging, called Dual Kriging (Chilès & Delfiner, 1999), that also computes the weights once. RBF and Kriging interpolation are discussed below.
For implicit boundary modeling, the distance between samples and the nearest sample of a different domain is calculated, negative values are set for samples that fall inside the domain being modeled and positive values for samples that fall outside. Then, the distances are interpolated and the boundary between domains is extracted where . There are several methods for interpolation; discrete smooth interpolation (Mallet, 1989), classical geostatistical methods (Blanchin & Chilès, 1993) and RBF methods (Cowan et al., 2003), RBF with gradients and constraints (Hillier, Schetselaar, Kemp, & Perron, 2014) and RBF with local anisotropy (Martin & Boisvert, 2017). In this lesson, the Radial Basis Function (RBF) methodology will be reviewed. A comparison with Kriging will be presented.
Stationary Domains
Given a set of samples, two types of models can be used to predict values at unknown locations. If the laws that command the behavior of the samples are well known, a deterministic model can be inferred and the prediction of values is quite straightforward. Unfortunately, mineral deposits are typically the result of many complex and chaotic geological processes. These processes are too complex to define a deterministic model based on sparse data, thus, it is assumed that sample values are the result of stochastic processes. In these cases, a probabilistic model may be used (Isaaks & Srivastava, 1989).
In a probabilistic model, samples are considered to be realizations of random variables for . Several samples at each location would be needed to calculate probabilistic parameters such as the mean and variance. This is impossible since there is only one sample per location. To address this problem, the random variables are assumed to be stationary. Stationarity entails that the random variables follow the same probability laws independent of their location, therefore, probabilistic parameters, like the mean , are the same at all locations. The assumption of stationarity is a key component in the derivation of geostatistical tools like Kriging (Isaaks & Srivastava, 1989).
The geologic region is divided into domains that are assumed to be stationary (McLennan, 2007). These domains are considered to be statistically homogeneous and share common geological characteristics. The definition of domains should lead to better reproduction of geological features and more reliable models.
Distance Functions
For clarity, the following assumes the presence of two domains; one that is inside and the other outside. The formalism can be extended to more than two domains. The first step is to assign an indicator to each sample. The indicator will take the value of if the sample is inside the domain, or if the sample is outside (Silva & Deutsch, 2012):
where, , are the locations of the samples. Then, the distance to the nearest sample with a different indicator is calculated:
where the minimum is taken over samples in the other domain and is the Euclidean straight line distance:
Commonly, geological domains have anisotropy, that is, a different length scale of continuity in different directions. In these cases, the distance between samples can be calculated by:
where , , are the ranges of anisotropy. The coordinates , and are rotated to align with the directions of principal continuity (Silva & Deutsch, 2012). These distance function values will be used as measurements for interpolation.
Radial Basis Function Framework
Given a set of measurements at locations , , an interpolator can be defined to predict values at any unsampled location. The interpolator should reproduce the measurements at their locations (Fasshauer, 2007).
To define , a common approach is to consider a weighted linear combination of functions (Fasshauer, 2007):
The functions are referred to as basis functions. The interpolator has to replicate the measurements at their respective locations: , which leads to a system of linear equations:
where is a matrix of basis functions: for , is a column vector of measured values and are the weights. A transform of the distance function can be used as the basis function :
If we consider that if , then has the same value for fixed distances to a center location . This means that is radially symmetric about , and hence, is named a Radial Basis Function (RBF) (Fasshauer, 2007).
As mentioned, the weights are found by solving a system of linear equations. Strict positive definiteness of the RBF guarantees a unique solution for distinct sample locations (Fasshauer, 2007). Conditionally definite RBFs can also be used with suitable polynomial terms and side constraints. Some commonly used RBFs are shown in the table below:
| RBF | Equation | Properties |
|---|---|---|
| Gaussian | Positive definite | |
| Spherical | Positive definite in 1-D, 2-D and 3-D | |
| Exponential | Positive definite | |
| Multiquadratic | Conditionally negative definite of order 1 | |
| Linear | Conditionally negative definite of order 1 in any dimension, parameter free |
Where is a chosen parameter. The spherical expression applies for and is zero for . The negatives of the multiquadratic and linear functions are conditionally positive definite; for these order-1 functions, a constant polynomial and the constraint give the usual augmented interpolation system. Kriging is perhaps the most broadly used interpolator in geostatistics, see next.
Ordinary Kriging
Ordinary Kriging (OK) is a widely used linear estimator:
where is the estimated value at the unsampled location , are weights and are samples at locations . The OK estimator constrains the estimator to be unbiased. To satisfy this constraint of unbiasedness, the sum of the weights has to be one (Isaaks & Srivastava, 1989). The weights are calculated by minimizing the error variance. The partial derivatives of the error variance and the constraint of unbiasedness provide equations for unknown weights and a Lagrange multiplier (Isaaks & Srivastava, 1989):
where is the covariance between locations and . The solution to this problem can be written as:
where, and . The covariance between all pairs of locations is obtained from the variogram model. Usually, OK uses search neighborhoods for computational efficiency but, in the case of distance functions, all samples could be considered to reduce artifacts (Silva & Deutsch, 2012).
Dual Kriging
The equation for the kriging weights (see above) can be written as:
Using the augmented data vector , inserting these weights into the equation for the estimator leads to:
The product can be expressed as:
where is the result of the product .
Then, the estimator can be written in the dual form as:
This is called the Dual Kriging form (Chilès & Delfiner, 1999). Dual Kriging is more computationally efficient than the primal form of Kriging because the weights are calculated just once for all estimates (Stewart, Lacey, Hodkiewicz, & Lane, 2014). The estimates are calculated by the weighted linear combination of covariances between the estimate location and the samples. Notice that Dual Kriging has a similar form to RBF interpolation, where:
The covariance function can be considered as a radial basis function and the weights are calculated by a similar linear system of equations.
Example of RBF Interpolation
A boundary limit will be calculated from four samples from two different domains. The distance between samples and the nearest sample from other domain is calculated. By convention, negative distance values are assigned to samples of the domain being modeled:
| Sample | Domain | x | y |
|---|---|---|---|
| 1 | 5 | 4 | |
| 1 | 10 | 6 | |
| 2 | 3 | 10 | |
| 2 | 11 | 8 |
As an example, the interpolated distance at location is calculated using the Gaussian RBF with . The following equation is used to compute the weights:
For this example, the signed distance inputs are rounded to one decimal place as shown. The displayed kernel matrix is rounded to two decimals; solving with unrounded kernel values gives approximately:
Using unrounded weights and kernel values, the interpolated distance:
As the weights do not depend on the location being estimated, interpolated distances can be computed at all locations. An example of RBF interpolation on a grid using the Gaussian RBF for different values of is shown in the figure below (web version only). A boundary line is drawn where :

An example of RBF interpolation on a grid using the Gaussian RBF for different parameters. Use the slider at the bottom to change the parameter.
The RBF interpolation of signed distance functions is not constrained to a 2 dimensional grid only. It can be applied on a 3 dimensional grid and also be used for boundary delimitation of more than two domains:
The extension to account for more than two domains will be reviewed below.
RBF and Kriging Comparison
Stationarity is assumed to derive the Kriging formulation. The measurements should satisfy this assumption to get reliable estimates. This constraint is challenging when interpolating distance due to the non-stationary nature of distance functions. In addition, Kriging methods use the variogram to obtain the weights. In some cases, the variograms are difficult to model and are not reliable (sparse sampling). As the RBF formulation does not rely on the assumption of stationarity and does not depend on variograms, it may be more robust in this situation (Cowan et al., 2003), although, estimates will be more accurate if stationarity is reasonably satisfied (Stewart et al., 2014).
Kriging aims to minimize an error or estimation variance. The minimized estimation variance can be computed and used as a measure of local estimation error that represents the data configuration (Rossi & Deutsch, 2014). RBF interpolation alone does not quantify estimation variance. Dual Kriging gives the same estimates as the primal form, and its kriging variance can be computed from the covariance model, although the dual coefficients alone do not provide it.
The variogram model is a way of describing the spatial correlation of the samples. Typically, the variogram is modeled using nested structures with different shapes and anisotropy (Rossi & Deutsch, 2014). Kriging uses covariance values obtained from the variogram model to optimally weight the samples. Certain RBFs can play a similar role in interpolation. The Gaussian and Inverse Multiquadratic functions are examples of this characteristic, where the parameter determines the length scale of sample influence. Positive definite covariance functions can also be used for RBF interpolation.
The example below shows implicit boundary modeling for three different RBFs with similar parameter compared with Ordinary Kriging Dual form. There is a noticeable difference between the shapes of the boundary limits generated by the RBFs and Dual Kriging. The Gaussian RBF tends to generate a smooth boundary, whereas the other RBFs and Dual Kriging follow the shape of the samples. For the parameters used in this example, the Exponential RBF produces a smaller boundary. The relative decay rates depend on the parameterization and distance. The volume and shape of the boundary can be modified by changing the parameter, as it represents the radius of influence of the samples. The shapes of the boundaries are fairly similar close to the samples, but they depart considerably in scattered areas. Consequently, the boundary shape will depend on the type of RBF used for interpolation, the parameter, and the data spacing. The uncertainty of the boundary shapes could be calculated, but an interpolated RBF or Dual Kriging boundary alone does not provide a distribution of possible boundary shapes. Although Ordinary Kriging Dual form is using a Spherical RBF as covariance function (with the same parameter used for the Spherical RBF interpolation), it generates a closed boundary. Depending on the value, the data may not influence unsampled locations that are far away. In the case of Dual Kriging, the component in the estimator is an estimate of the global mean. When locations are far away, the summation goes to 0 and the value prevails. In this example has a positive value, limiting the extension of the boundary. The Simple Kriging Dual form is more similar to the RBF formulation as it does not have the component.
RBF interpolation and Dual Kriging appear more computationally efficient than Kriging, but the size of the dataset must be reasonably small, say less than 10000. Larger systems require modifications, such as iterative solving methods (Beatson, Cherrie, & Mouat, 1999) or domain decomposition methods such as partition of unity (Martin & Boisvert, 2015).
Discussion
Even though RBF interpolation of distance functions is an established methodology for implicit modeling, it has some drawbacks that must be taken into consideration. Depending on the kernel used, RBF interpolation tends to be less reliable in sparse data areas and could generate biased extrapolation volumes at the edges of the model (Silva, 2015). Also, adding new data can change boundary limits a large distance away from the new data in an apparently arbitrary manner. The boundary limits are dependent on the drill hole spacing; the RBF interpolation may not put the boundary limit fairly centered between samples of different categories. Moreover, it is difficult to modify the interpolation approach to account for geological trends. Finally, there is no direct uncertainty inference. There is ambiguity in the location of the boundary in presence of widely spaced data, but interpolation algorithms provide only one best estimate. Some of these problems have been addressed in the literature. A brief discussion of RBF extensions and other applications follows.
An RBF methodology with local anisotropy is presented by (Martin & Boisvert, 2015). To include local anisotropy in the RBF framework, additional components are added to the formulation:
where are vector coefficients, and are sample locations , are gradient locations with strike-dip data where the gradient of the scalar function is normal to the planar orientation, , and are tangent locations where is a vector tangent to the surface of interest, . In some situations the set of samples may have an underlying function that should be reproduced. In these cases, a polynomial component can be added to the formulation (Fasshauer, 2007):
where are polynomials and are coefficients.
The formulation for boundary delimitation can be extended for multiple domains (Silva & Deutsch, 2012). Instead of assigning a single indicator, an indicator vector of size , say the number of domains, is assigned to each sample. A sample belonging to the domain will have a 1 in the -th element of the vector and zero in the -1 remaining elements. Similar to before, the distance function is calculated for each element of the vector. Then, the signed distance function of each domain is interpolated using RBF or Kriging. The domain at each location is assigned by taking the minimum estimated signed distance function at that location. A deeper insight of this methodology can be reviewed in the geostatistic lesson Signed Distance Function Modeling with Multiple Categories.
Another method for implicit boundary modeling is the interpolation of indicators. The methodology is described in detail by (Mancell & Deutsch, 2020). A 1/0 indicator is interpolated and thresholded at a value that leads to an unbiased proportion inside the domain. A nearest neighbor model is used to determine the unbiased proportion. One advantage of this method is that it can provide a model of uncertainty by changing the threshold value. Optimistic and pessimistic boundary models can be created.
One of the major components of mineralization uncertainty is geological uncertainty. Implicit modeling only delivers a deterministic domain model; there are modifications to incorporate uncertainty (Munroe & Deutsch, 2008) and (Wilde & Deutsch, 2011).
Summary
RBFs and Kriging are interpolation methods of distance functions for implicit domain boundary delimitation. Their formulation is similar, with differences regarding the assumption of stationarity, error quantification, computational efficiency and parameter selection. In recent years, variants have been developed to include geological trends, anisotropy and uncertainty. Many software use these methods for implicit geological modeling. The geologic modeler will almost always have to intervene to ensure that the resulting models satisfy complex geological constraints that defy simple incorporation into implicit modeling.
References
Cite this lesson as:
Sanchez, S., & Deutsch, C. V. (2022). Implicit Boundary Modeling with Radial Basis Functions. In J. L. Deutsch (Ed.), Geostatistics Lessons. Retrieved from https://geostatisticslessons.com/lessons/implicitrbf