# The Leading Edge

- © 2015 by The Society of Exploration Geophysicists

## Abstract

Discontinuity calculations, also called coherence or semblance, are some of the most commonly used seismic attributes. They measure the amount of similarity between adjacent seismic traces. However, there are several types of discontinuity estimates and a plethora of names for similar attributes. As a result, it can be difficult to understand the differences among them. Although the discontinuity algorithm that any particular software package uses might be unknown, most are based on one of a few published methods. Understanding published discontinuity attributes gives insight into the trade-offs among different proprietary implementations. Therefore, in this tutorial and the accompanying Jupyter notebook, we will explore simplified Python implementations of a few widely used discontinuity algorithms.

## Introduction

Discontinuity attributes are a variety of poststack calculations that measure the degree of local similarity or dissimilarity between seismic traces. Discontinuities in a seismic volume, such as faults or mass-transport deposits, are apparent as regions of low similarity. Therefore, discontinuity attributes most often are applied to highlight faults in a seismic volume but are also useful in detecting subtle stratigraphic features in map view. Semblance-based coherence (Marfurt et al., 1998), eigenstructure-based coherence (Gersztenkorn and Marfurt, 1999), and other discontinuity attributes are among the most widely applied seismic attributes today.

The terminology used for discontinuity attributes can be confusing. Terms such as *coherence*, *semblance*, *similarity*, *discontinuity*, and many others are used to refer to both the general class of attribute and to specific algorithms. For these reasons, in this tutorial, we will use the term *discontinuity* to refer to the general class of attribute. Specific algorithms always will include a reference in addition to the name the original author used to avoid confusion.

In practice, most discontinuity attributes are calculated and applied in proprietary seismic-interpretation packages. The exact algorithm used by a particular package is in some cases considered a trade secret or might be undocumented. For that reason, we will not refer directly to or compare commercially available implementations in this tutorial. However, most proprietary discontinuity attributes are based on or similar to published algorithms. Therefore, understanding widely cited published algorithms for discontinuity helps us to understand the trade-offs among different commercial implementations.

We will focus on demonstrating a few of the most cited discontinuity algorithms in the literature with short Python code snippets. The data we will work with are a small subset of the Penobscot 3D seismic data set from offshore Nova Scotia, Canada, owned by the Nova Scotia Department of Energy and distributed by dGB Earth Sciences under a CC-BY-SA license (Nova Scotia Department of Energy, 1992) (Figure 1a). These examples eschew practical considerations (e.g., memory usage and speed) and focus on demonstrating the algorithm using high-level concepts. The accompanying Jupyter notebook expands on these examples and gives runnable versions of these short snippets.

## Early algorithms — Crosscorrelation

The earliest discontinuity algorithm was developed by Bahorich and Farmer (1995) and used the maximum crosscorrelation value of three traces. Each trace is correlated with a “moving-window” subset of two neighboring traces (Figures 1b and 2b). A complete implementation is given in the accompanying notebook, but we will skip it here for brevity. Bahorich and Farmer (1995) coin the term *coherence* for the attribute, based on its conceptual similarity to prestack methods for estimating stacking velocities (e.g., Taner and Koehler, 1969). Although this exact approach is computationally expensive and is not used widely today, it provides a starting point to understand later algorithms.

## Generalization to an arbitrary number of traces

The approach of Bahorich and Farmer (1995) was successful, but it is sensitive to noise because only three traces are used. Marfurt et al. (1998) generalize Bahorich and Farmer's crosscorrelation approach to an arbitrary number of input traces, referred to by Marfurt et al. (1998) as *semblance-based coherence* (Figure 1c). As an example:

Conceptually, the algorithm of Marfurt et al. (1998) treats each seismic trace within the moving window as a separate dimension and measures how close the resulting point cloud is to a hyperplane with a slope of 1 in all directions and an intercept of 0. It is easiest to visualize for the case of two traces, as shown in Figure 2c. In that case, semblance-based coherence computes how close the points fall to a line with a slope of 1 and an intercept of 0.

## Removing amplitude sensitivity

One caveat to the methods of Bahorich and Farmer (1995) and Marfurt et al. (1998) is that they are sensitive to lateral differences in amplitude and in phase. Although this is desirable for detecting stratigraphic features, differences caused by amplitude can obscure subtle structural features. Gersztenkorn and Marfurt (1999) propose an implementation that is sensitive only to lateral changes in phase of the input waveforms — *eigenstructure-based coherence* (Figures 1d and 2d).

Eigenstructure-based coherence (Gersztenkorn and Marfurt, 1999) computes the covariance matrix of the input region, similar to the previous example. However, it uses the ratio of the largest eigenvalue of the covariance matrix to the sum of the eigenvalues:

def gersztenkorn(region): region = region.reshape(-1, region.shape[-1]) # Calculate eigenvalues of covariance matrix cov = region.dot(region.T) vals = np.linalg.eigvalsh(cov) return vals.max() / vals.sum() result = moving_window(seismic_data, gersztenkorn, (3, 3, 9))Conceptually, this is similar to treating each seismic trace within the moving window as a separate dimension and calculating how well the resulting point cloud is fit by a plane. To contrast with the method of Marfurt et al. (1998), for the case of two traces, this measures the scatter about the best-fit line instead of a line with a slope of 1, as shown in Figure 2d.

## Gradient changes instead of trace similarity

An entirely different approach than any we have discussed so far is to apply a structure tensor to seismic attributes. The structure tensor measures how the gradient of each dimension covaries locally. Randen et al. (2000) were the first to propose this approach in their gradient-structure-tensor (GST) attributes. Several useful attributes can be computed from the ratios of the eigenvalues of the structure tensor, one of which is a measure of how planar the data are locally, which we will refer to as GST coherence (Randen et al., 2000) (Figure 1e).

from scipy.ndimage import gaussian_filter1d def gradients(seismic, sigma): grads = [] for axis in range(3): grad = gaussian_filter1d(seismic, sigma, axis=axis, order=1) grads.append(grad[…, np.newaxis]) return np.concatenate(grads, axis=3) def gst_coherence_calc(region): region = region.reshape(-1, 3) gst = region.T.dot(region) eigs = np.sort(np.linalg.eigvalsh(gst))[::-1] return (eigs[0]-eigs[1]) / (eigs[0]+eigs[1]) def gst_coherence(seismic, window, sigma=1): grad = gradients(seismic, sigma) return moving_window4d(grad_array, window, gst_coherence_calc)Because GST coherence measures change in the local slope of the data, it is related more closely to curvature attributes than to the other discontinuity attributes we have discussed (Randen et al., 2000; Chopra and Marfurt, 2007). Therefore, GST coherence can reveal different features than discontinuity attributes that compare waveform similarity, but it tends to show thicker regions of discontinuity around faults (Chopra and Marfurt, 2007) (Figure 1e).

## Final thoughts

Discontinuity attributes are a fundamental part of an interpreter's tool kit when working with 3D data. Although most interpreters are familiar with using discontinuity attributes, few are familiar with how they are implemented or the differences among similar attributes. It is hoped that the accompanying Jupyter notebook and this brief tutorial will help to clear up some implementation details and will inspire you to attempt new variants on well-known discontinuity attributes.

## Acknowledgments

This article benefited greatly from reviews by Steve Purves and Matt Hall and suggestions from JoAnn Gage, Jonathan Fry, and Brendan Sullivan.

## Footnotes

Coordinated by Matt Hall

© The Author(s). Published by the Society of Exploration Geophysicists. All article content, except where otherwise noted (including republished material), is licensed under a Creative Commons Attribution 3.0 Unported License (CC BY-SA). See http://creativecommons.org/licenses/by/3.0/. Distribution or reproduction of this work in whole or in part commercially or noncommercially requires full attribution of the original publication, including its digital object identifier (DOI). Derivatives of this work must carry the same license.