LearnItWeb

Biological Inspiration Behind Convolutional Neural Networks

Introduction

Convolutional Neural Networks (CNNs) are especially effective at processing images. They can identify edges, textures, shapes, and eventually objects, even when the raw input consists of nothing more than pixel values. But why do CNNs process images through a sequence of feature-detecting layers instead of treating every pixel independently?

An important part of the answer comes from neuroscience. Long before modern deep learning, researchers investigated how the visual cortex responds to light, lines, and patterns. Their experiments showed that neurons in the visual system can respond selectively to particular visual features, such as edges at specific orientations. These discoveries helped inspire the hierarchical feature-processing ideas that later appeared in convolutional neural networks.

In this tutorial, we will follow that connection from the human visual pathway to experiments on visual cortical neurons, and then to the early architectures that led to modern CNNs. Along the way, we will distinguish what the biological experiments actually demonstrated from the engineering ideas inspired by them.

1. How Visual Information Reaches the Brain

Before understanding how the brain recognizes a shape, we need to understand how visual information reaches the part of the brain responsible for processing it.

When we look at an object, light reflected from that object enters the eye and falls on the retina. The retina is not simply a passive screen. It contains photoreceptors and neural circuits that convert light into neural signals and perform substantial early visual processing.

Those signals are transmitted through retinal ganglion cells, whose axons form the optic nerve. Most of the signals relevant to conscious visual perception travel through a relay station in the thalamus called the lateral geniculate nucleus (LGN). From there, signals travel along the optic radiations to the primary visual cortex, also called V1, in the occipital lobe at the back of the brain.

The main pathway can be summarized as follows:

The optic chiasm is an important detail: some optic nerve fibers cross to the opposite side of the brain. Consequently, visual information from the left visual field is processed predominantly in the right hemisphere, and information from the right visual field is processed predominantly in the left hemisphere.

The LGN is not merely a wire connecting the eye to the cortex. It helps relay and regulate visual information. V1 then begins an extensive stage of cortical analysis, and information is processed through multiple interconnected visual areas, including V2, V3, V4, and regions involved in motion and object recognition.

The important observation for our discussion is that the brain does not immediately recognize an entire object from unprocessed light. Visual information is transformed through multiple stages of neural processing.

2. What Is the Primary Visual Cortex?

The visual cortex is a collection of cortical regions that process visual information. Its earliest major cortical stage is V1, located primarily around the calcarine sulcus in the occipital lobe.

V1 receives visual signals through the thalamus and contains neurons sensitive to particular properties of visual stimuli. Some neurons respond strongly when an edge or bar of light appears at a particular location and orientation. Other neurons have different response properties.

For example, imagine looking at the following simple patterns:

These patterns may look equally simple to us. However, a particular neuron in the visual cortex may respond strongly to one orientation and weakly to the others. Another neuron may prefer a different orientation.

This feature selectivity is one of the key discoveries that helped researchers understand how the visual system analyzes images.

3. The Famous Experiments of Hubel and Wiesel

Neuroscientists David Hubel and Torsten Wiesel performed influential experiments investigating how neurons in the visual cortex respond to visual stimuli. Their work began in the late 1950s and continued over many years, including studies involving cats and monkeys. They received the 1981 Nobel Prize in Physiology or Medicine, shared with Roger Sperry, for discoveries concerning information processing in the visual system.

The basic question was straightforward:

Does every visual cortical neuron respond equally to everything the eye sees, or do individual neurons respond preferentially to particular visual patterns?

To investigate, the researchers presented controlled visual stimuli and measured the electrical activity of individual neurons in the visual cortex.

3.1 Experimental setup

In a simplified representation of the experiment, an animal viewed a screen on which researchers displayed bars or edges of light. A recording electrode measured electrical activity from a neuron in the visual cortex.

The electrode detected action potentials, often called spikes. A greater number of spikes over a given interval generally indicates a stronger response from the recorded neuron. These experiments used invasive animal research methods; the diagram is intended to explain the scientific measurement, not to provide a procedural protocol.

3.2 Rotating the stimulus

Suppose the researchers are recording from a neuron that prefers a vertical bar. They display a line and gradually rotate it while keeping the relevant stimulus location approximately fixed.

The observed response might look like this:

The spike marks above are illustrative, not measurements copied from the experiment. Real neurons have tuning curves: their responses usually vary continuously with orientation rather than switching perfectly between zero and maximum.

For this example neuron, the vertical stimulus produces the strongest response. Rotating the bar away from vertical reduces the response. If the researchers record from a different neuron, they may find a different preferred orientation.

3.3 What did the experiment reveal?

The critical finding was that many visual cortical neurons are selective for the orientation of an edge or bar within a particular region of the visual field.

This means the visual cortex does not process all image features in exactly the same way. Different neurons can specialize in detecting different aspects of the visual input.

Importantly, these neurons do not each represent a complete object. An orientation-selective neuron may help signal the presence of a short edge. The recognition of a complete object depends on much broader processing across populations of neurons and interconnected brain regions.

4. Understanding Receptive Fields

To understand why a neuron responds to one edge but not another, we need the idea of a receptive field.

A neuron’s visual receptive field is the region of the visual field in which a stimulus can influence that neuron’s activity. The neuron may respond differently depending on where light falls within this region.

For example, a simple visual cortical cell can have elongated areas where light increases its response and neighboring areas where light suppresses its response. These are often called ON and OFF subregions.

If a bar is aligned with the preferred region, it may stimulate the neuron strongly. If the bar is rotated, shifted, or placed outside the receptive field, the response can decrease.

A receptive field therefore helps explain both where a neuron responds and what kind of local pattern it prefers.

5. Simple Cells and Complex Cells

Hubel and Wiesel described different classes of neurons in the primary visual cortex, including simple cells and complex cells. Both can be sensitive to edge orientation, but their responses differ in how they depend on stimulus position and spatial structure.

5.1 Simple cells: sensitivity to orientation and precise position

A simple cell typically has distinct ON and OFF subregions within its receptive field. It often responds best to a bar or edge of a particular orientation at a particular position.

Imagine a neuron that responds to a vertical bright bar at the center of its receptive field:

The key idea is that a simple cell’s response depends on the spatial arrangement of the stimulus relative to its receptive-field subregions.

5.2 Complex cells: greater tolerance to exact position

Complex cells are also often orientation-selective, but their responses typically depend less on the exact position or phase of a stimulus within the receptive field. Many complex cells respond well to an appropriately oriented edge across several nearby positions; some are also sensitive to motion direction.

This can be a useful introductory intuition, but receptive-field size alone does not define the distinction. Their different spatial response properties are more important.

PropertySimple cellsComplex cells
Typical preferenceOriented bars or edgesOriented bars or edges
Spatial organizationDistinct ON/OFF subregionsLess clearly separated ON/OFF subregions
Sensitivity to exact positionOften highOften lower within the receptive field
Useful intuitionDetect a feature at a particular locationDetect a feature with some positional tolerance

The visual cortex contains many other neuron types, and the biological system is much more complicated than a two-cell classification. Nevertheless, the simple-cell and complex-cell distinction provides a useful starting point for understanding feature extraction.

6. Why Edge Detection Matters

Why would the brain devote so much processing to edges and orientations?

Edges often indicate changes in brightness, color, texture, or surface boundaries. These changes help reveal the structure of objects. A door is outlined by edges; the sides of a building create vertical lines; the boundaries of letters distinguish one character from another.

Consider a simple polygon. We recognize the overall shape because the individual line segments and corners form a meaningful arrangement. This suggests a useful computational strategy: instead of attempting to recognize the entire polygon directly from raw pixels, first identify local edges and orientations, then combine the detected information to infer more complex patterns.

That is an important source of inspiration for CNNs. Local feature extraction followed by progressively more abstract representations allows a network to build useful information from simpler visual patterns.

However, the brain’s actual visual processing is not a single rigid pipeline in which all simple cells feed all complex cells and then produce objects. Real visual circuits contain parallel pathways, feedback connections, and recurrent processing. The layered picture is a helpful analogy, not a complete biological model.

7. From Local Edges to Complex Patterns

Let us imagine recognizing an octagonal outline. The image contains horizontal, vertical, and diagonal line segments. A simplified hierarchy might work as follows:

In an artificial neural network, early layers might respond to short lines, corners, or texture changes. Intermediate layers might combine these into motifs or parts of an object. Deeper layers might learn representations useful for classifying the entire image.

The exact features are learned from training data, not hard-coded in advance. Not every CNN follows a neat progression from edges to corners to objects, but this description captures an important pattern often observed in trained convolutional networks.

8. The Neocognitron: An Early Biologically Inspired Architecture

One important step toward modern CNNs was the Neocognitron, introduced by Japanese researcher Kunihiko Fukushima in 1980.

The Neocognitron was inspired in part by findings about the visual cortex. It used alternating types of processing units called S-cells and C-cells.

S-cells were designed to detect features, while C-cells helped make the representation less sensitive to small shifts in feature position. Repeating these stages allowed the model to recognize increasingly complex patterns.

The Neocognitron is historically important because it brought together local feature detection, hierarchical processing, and some tolerance to position changes.

It was not, however, trained using the same end-to-end backpropagation approach that became standard in later CNNs. This is one of the major differences between the Neocognitron and modern convolutional networks.

9. Yann LeCun and Early Trainable CNNs

The next major development was the use of convolutional architectures trained with gradient-based learning, especially work by Yann LeCun and collaborators in the late 1980s and 1990s.

Their systems were applied to tasks such as recognizing handwritten digits on checks and other documents. A well-known architecture from this line of work is LeNet-5, described in 1998.

A simplified LeNet-style network looks like this:

This architecture retained the idea of detecting local patterns and combining them across layers. But unlike a purely hand-designed feature detector, its filter weights could be learned from labeled training examples using backpropagation.

This made CNNs more adaptable. Instead of specifying every line detector manually, researchers could let the model learn filters that helped minimize its prediction error.

10. How Convolution Relates to Biological Feature Detection

Now we can make the connection more concrete.

A convolutional layer applies a small learnable filter to local regions of an image. The same filter is used at many spatial positions. This produces a feature map showing where the filter responds strongly.

For example, consider a simple vertical-edge filter:

K=[−101−101−101] K = \begin{bmatrix} -1 & 0 & 1 \\ -1 & 0 & 1 \\ -1 & 0 & 1 \end{bmatrix}

When applied to an image, this filter can produce strong responses near certain vertical brightness transitions. The sign of the response depends on the direction of the brightness change.

Conceptually:

This resembles the basic idea of an orientation-selective receptive field: a local region of the input influences the response to a particular feature.

10.1 What about pooling?

A pooling layer summarizes activations in a small neighborhood. For example, max pooling retains the strongest response within a local window.

       Feature map region       Max-pooled value

          +---+---+
          | 1 | 4 |
          +---+---+       --->        7
          | 7 | 2 |
          +---+---+

Pooling can help make a network less sensitive to small shifts in feature location. This is a useful analogy to the greater positional tolerance associated with some complex-cell responses.

But a pooling operation is not a literal model of a biological complex cell. Biological neurons are more diverse, and modern CNNs may achieve spatial tolerance through pooling, strided convolution, training augmentation, and other mechanisms.

11. The Rise of AlexNet in 2012

CNNs existed well before 2012, but AlexNet brought them much greater attention. Developed by Alex Krizhevsky, Ilya Sutskever, and Geoffrey Hinton, AlexNet achieved a major breakthrough in the 2012 ImageNet Large Scale Visual Recognition Challenge.

AlexNet combined a deep convolutional architecture with techniques that made large-scale training effective, including GPU computation, ReLU activations, data augmentation, and dropout.

The broader historical progression can be summarized as:

  Hubel and Wiesel's visual cortex studies
           (1950s onward)
                    |
                    v
  Orientation-selective receptive fields
  and simple/complex cell discoveries
                    |
                    v
     Neocognitron (Fukushima, 1980)
     Hierarchical S-cell/C-cell stages
                    |
                    v
  Trainable convolutional networks
  (LeCun and collaborators, 1980s-1990s)
                    |
                    v
           LeNet-5 (1998)
                    |
                    v
           AlexNet (2012)
                    |
                    v
        Modern CNN architectures

This timeline is a simplified intellectual history, not a claim that every later architecture was directly derived from the preceding one. CNN development also depended on advances in optimization, datasets, hardware, and software.

12. Biological Vision and CNNs: Similarities and Differences

The connection between biology and CNNs is powerful, but it should not be taken too literally.

AspectBiological visual systemConvolutional neural network
InputLight converted to neural activity by the retinaPixel values or other image tensors
Local processingNeurons respond to stimuli within receptive fieldsFilters operate on local input regions
Feature selectivityMany neurons prefer particular orientations or patternsLearned filters respond to useful patterns
Spatial toleranceArises through diverse neural mechanismsCan arise through pooling, strides, and learned representations
LearningBiological plasticity and many interacting learning processesTypically gradient-based optimization and backpropagation
ArchitectureHighly recurrent, parallel, and interconnectedOften organized into computational layers

A particularly important difference is weight sharing. A CNN generally applies the same filter at many image locations. This is a practical mathematical design that greatly reduces parameter count and makes convolution effective. Biological visual cortex does not simply implement exact CNN-style weight sharing.

Therefore, CNNs are best understood as engineering systems inspired by selected principles of visual processing, not as faithful simulations of the human brain.

13. Putting Everything Together

We started with a simple question: how does the brain transform light into meaningful visual information?

The retina converts light into neural signals. Much of this information travels through the LGN to V1, where neurons can respond selectively to local visual properties such as edge orientation. Hubel and Wiesel’s experiments demonstrated that these response properties are structured rather than uniform.

The distinction between simple and complex cells suggested useful ways of thinking about local feature selectivity and tolerance to small changes in feature position. Researchers later explored analogous ideas in artificial systems, notably Fukushima’s Neocognitron. Subsequent convolutional networks introduced effective gradient-based training, and architectures such as LeNet and AlexNet demonstrated the practical power of hierarchical visual feature learning.

The central connection is:

     Biological observation
  Local neurons respond to
  particular visual features
               |
               v
      Computational idea
  Learn local feature detectors
               |
               v
      Hierarchical processing
  Combine simple features into
  more informative representations
               |
               v
       Image recognition

Conclusion

The biological inspiration behind convolutional neural networks comes primarily from the observation that visual processing involves local, selective responses to visual features and that increasingly useful representations can emerge through multiple stages of processing.

The experiments of Hubel and Wiesel helped establish how orientation-selective neurons respond to edges and bars. Fukushima’s Neocognitron translated aspects of this insight into an early artificial recognition architecture. LeCun and collaborators advanced trainable convolutional networks, and AlexNet later demonstrated their effectiveness at large-scale image classification.

In the next tutorial, we can build on this intuition to study how convolution, filters, feature maps, padding, stride, and pooling work mathematically and computationally.