liveBook · Manning

Spatial correlation

As explained in Inside Deep Learning: Math, Algorithms, Models

A dependency pattern where nearby positions in an input, such as neighboring pixels, tend to be related.

Spatial correlation is the tendency for nearby positions in structured data to be related. In images, neighboring pixels often share colors or shades, while distant pixels may have little direct relationship. Shuffling pixels destroys the image’s meaning because position carries information. section 3.1 section 3.2

Convolutional neural networks encode this prior by treating nearby items as related and far-apart items as largely unrelated. A convolution combines an input image with a filter to highlight patterns, such as a horizontal stroke. section 3.2

A digit image

In an image of the digit 5, a black pixel usually has neighboring black pixels, and a white pixel usually has white or nearly white neighbors. A filter can detect a local feature such as the top horizontal line of a 7. section 3.2

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Defines local dependence and connects it to convolutional filters, but defers detailed convolution mechanics, padding, and weight sharing.
Examples
Uses shuffled images, neighboring pixels in a digit 5, RGB channels, and a filter detecting a 7’s horizontal line.
What you can do after
Evaluate why convolutional models fit image data by recognizing that nearby pixels carry related information.
How it connects
Connects spatial correlation with images, convolution, filters, kernels, and convolutional neural networks.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.