CNNs Along Depth: Convolution and Learned Filters

Chapter 14, Convolutional Networks for Spatial Data

Learning objectives

  • Compute a 1-D convolution by direct sum and say how long its output is, "same" and "valid"
  • Show that a logging tool's vertical response is a convolution, and what each rule does at the ends of a log
  • Read the filters a small 1-D CNN learns on the porosity logs
  • Say what context along depth buys a network that calls zones, scored on wells it has not seen

A Kernel Slid Along Depth

A convolution slides a short kernel along a log and, at each depth, sums the samples it covers, each weighted by the kernel's tap. The logging tool's own response is one: the book's tool model records each log as the mean of a few samples of rock, a box convolution, 5 samples (2.5 ft) for gamma ray. A 1-D convolutional network learns kernels of its own. On the Ogbon field's nine wells, 4 filters 21 samples (10.5 ft) long over the porosity logs call 0.993 of the samples' zones right held out one well at a time, where the same network reading one sample at a time calls 0.960.

Convolution Along DepthInteractive figure, enable JavaScript to interact.

The Data

The data are the book's own learning set: Ogbon-1, the Petrophysics book's well, and eight hypothetical appraisal wells of the book's field, each 1201 samples every 0.5 ft, 10809 in all, logged by Ogbon-1's own build and the book's own tool model, all synthetic. The class is the zone, by the generator's truth: the shale beds and the four reservoir zones of Ogbon-1 (the upper oil sand, the shaly oil sand, the tight limestone and the main sand), the same beds in every well, moved down the dip.

Plates (a) and (b) run the box down Ogbon-1's clean log on the page, with the kernel's own convolution. The network is precomputed in the book's CNN table: nine networks, each trained on eight wells, take seconds in node and far longer on a phone.

Convolution by Direct Sum

A kernel ww of mm taps run down a log xx gives yi=βˆ‘j=0mβˆ’1wj xi+jβˆ’py_i = \sum_{j=0}^{m-1} w_j\, x_{i + j - p} with p=⌊(mβˆ’1)/2βŒ‹p = \lfloor (m - 1)/2 \rfloor, so the kernel's middle tap sits on sample ii. This is the cross-correlation; signal processing flips the kernel first, and networks do not, which changes nothing when the kernel is learned. Ogbon-1's first five clean gamma-ray samples are 110.0, 109.0, 110.2, 114.3 and 108.5 API; the tool's box of 5, each tap 1/5, sitting on the third sample at 5801.0 ft, sums them to 110.4 API, the tool's reading there before its noise.

Same and Valid

Near the ends of a log the box hangs off it. "Valid" keeps only the places where every tap lies on the log: a box of 5 run down Ogbon-1's 1201 samples gives 1197 outputs, nβˆ’m+1n - m + 1. "Same" keeps all 1201 by taking the log as zero past its ends, so its first output counts three samples of shale and two zeros: 65.8 API, where the tool, which takes the mean of the samples that remain, reads 109.7 API. That mean is the "same" convolution divided by the box run over a log of ones. With a box of 41 samples "valid" gives 1161 outputs, and "same" starts at 57.9 API where the tool reads 113.0 API.

The Tool's Response Is a Convolution

The book's tool model records density as the mean of 3 samples, 1.5 ft: the box of 3. The measured density less the box run down the clean log has an rms of 0.0242 g/cc, close to the tool's stated noise of 0.025 g/cc: what the convolution leaves is the noise the tool adds after it. A longer response smooths more. At 5856 ft, the top of the upper oil sand, the clean gamma ray steps from 117.0 to 18.7 API in one sample; a box of 41 samples spreads the step over 20.5 ft, and a bed thinner than the box is never read at its true value.

A Network That Learns Its Kernels

The network's first layer is 4 filters, each 21 taps on each of the four porosity logs (gamma ray, density, neutron and sonic, standardized on the training wells), each summed into one output with a bias and passed through ReLU; a 1 x 1 layer then turns the 4 outputs at each depth into a softmax over the 5 zones. That is 365 numbers to learn: 336 taps, 4 biases, and 25 in the last layer. Trained by full-batch Adam for 150 epochs at a rate of 0.02, the network on all nine wells lowers its loss from 1.239 to 0.034. Plate (c) shows a filter's 21 taps on each log: a learned kernel is a weighted window of the logs, as the tool's box is a flat one.

What Context Buys

Held out one well at a time, the network of width 21 calls 10738 of the 10809 samples' zones right, 0.993, and every well between 0.992 and 0.997. The same network with filters one sample wide, which sees each depth alone, calls 10372, 0.960, the wells between 0.942 and 0.974. One sample at a time it confuses 358 samples of the upper oil sand and the main sand, two clean sands whose porosities in the bed table are 0.23 and 0.26 v/v; with 10.5 ft of the logs in view, 13. A single sample carries the tool's noise; a filter wider than the tool's response averages much of it away, which is what the zones need.

What Comes Next

Section 14.2, the chapter's workshop, builds a synthetic seismic line through the field by the Synthetic Seismic Modeling book's convolution and runs a CNN down its traces.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.