Skip to main content

Convolutional Neural Networks: The Math Behind Machine Vision

Convolutional Neural Networks: The Math Behind Machine VisionPhoto: N43 and Hermes
N43 ANALYSIS
SCIENCE · ARTICLE-01
N43 ANALYSIS · DEEP LEARNING

How a mathematical operation from signal processing became the foundation of machine vision, enabling everything from medical imaging to autonomous navigation.

Source video: But what is a convolution? · 3Blue1Brown · approximately 3,651,597 views observed via yt-dlp on 2026-08-25. Independently researched by N43 and Hermes.

CNN ImageNet Accuracy Milestones Bar chart showing top-5 accuracy on ImageNet: AlexNet 2012 at 84.7%, VGG 2014 at 92.7%, ResNet 2015 at 96.4%, SENet 2017 at 97.5% ImageNet Top-5 Accu… 2012 84.7% 2014 92.7% 2015 96.4% 2017 97.5%
ImageNet competition top-5 accuracy milestones. Source: ImageNet Large Scale Visual Recognition Challenge results.

01 The Convolution Operation

A convolution is a mathematical operation that combines two functions to produce a third, expressing how the shape of one modifies the other. In the context of neural networks, convolution slides a small filter, also called a kernel, across an input image and computes the dot product at each position. The result is a feature map that highlights specific patterns: edges in early layers, textures in middle layers, and object parts in deeper layers. This sliding-window approach differs fundamentally from the fully connected layers of traditional neural networks, where every input connects to every output.

The power of convolution lies in its locality and weight sharing. A kernel that detects vertical edges applies the same weights everywhere in the image, meaning the network learns a single edge detector rather than separate detectors for each pixel location. This parameter efficiency allows CNNs to process high-resolution images with far fewer learned weights than a fully connected network would require. The 3Blue1Brown visual explainer demonstrates this by animating how a 3-by-3 kernel scans across a grayscale image, producing a feature map that brightens wherever the kernel's pattern matches the underlying pixels.

02 From Signal Processing to Machine Learning

Convolution has a long history in signal processing, where it describes how a filter modifies a signal in time or space. The operation was formalized in the 19th century through the work of mathematicians including Jean-Baptiste Joseph Fourier and Oliver Heaviside. By the 1960s, neurobiologists David Hubel and Torsten Wiesel discovered that the visual cortex of cats contains neurons that respond to specific patterns in restricted regions of the visual field, an insight that directly inspired the architecture of modern CNNs. Their work earned them the 1981 Nobel Prize in Physiology or Medicine.

The leap from biological inspiration to working algorithms came in the late 1980s when Yann LeCun developed LeNet, a convolutional network for recognizing handwritten digits on checks. LeNet used the same principles that power modern CNNs: convolutional layers followed by subsampling and a classifier. However, the computational limits of the era constrained both network depth and training data size. It would take more than two decades for hardware and data availability to catch up with the theoretical framework LeCun had established.

03 AlexNet and the Deep Learning Breakthrough

The turning point arrived in 2012 when Alex Krizhevsky, Ilya Sutskever, and Geoffrey Hinton published AlexNet, a deep CNN that won the ImageNet Large Scale Visual Recognition Challenge with a top-5 error rate of 15.3 percent, a dramatic improvement over the 26.2 percent achieved by the second-place entry. AlexNet contained eight learned layers, five convolutional and three fully connected, and was trained on two GPUs for approximately six days. The result stunned the computer vision community and is widely credited with launching the deep learning era.

AlexNet introduced several innovations that became standard practice: rectified linear unit activations for faster training, dropout regularization to prevent overfitting, and data augmentation through random crops and horizontal reflections. The network processed input images at a resolution of 224 by 224 pixels and used overlapping pooling to reduce the size of feature maps. The combination of deeper architecture, GPU acceleration, and large-scale training data demonstrated that convolutional networks could scale to problems previously considered intractable.

CNN Parameter Count Comparison Horizontal bar chart comparing parameter counts: LeNet-5 60K, AlexNet 60M, VGG-16 138M, ResNet-152 60M, EfficientNet-B7 66M Parameter Count by … LeNet-5 0.06M AlexNet 60M VGG-16 138M ResNet-152 60M EffNet-B7 66M Parameters
Learned parameter counts for landmark CNN architectures. VGG-16 remains the most parameter-heavy; ResNet uses skip connections to stay leaner. Source: original architecture papers.

04 Feature Hierarchies and Receptive Fields

A CNN learns a hierarchy of features that becomes progressively more abstract with each layer. The first convolutional layer typically learns simple edge detectors that respond to horizontal, vertical, and diagonal gradients. The second layer combines these edges into corner and junction patterns. By the third and fourth layers, the network detects textures, simple shapes, and object parts such as eyes, wheels, or leaves. This hierarchical feature learning mirrors the organization of the visual cortex, where neurons in earlier areas respond to simple stimuli while neurons in higher areas respond to complex objects.

The receptive field of a neuron in a CNN is the region of the input image that influences its activation. In early layers, receptive fields are small, covering perhaps 3 by 3 pixels. Each subsequent layer expands the receptive field, allowing deeper neurons to integrate information from larger portions of the image. By the final convolutional layers, a single neuron may respond to a region covering 100 or more pixels of the original input. This progressive expansion enables the network to recognize objects regardless of their position in the image, a property called translation invariance.

05 Pooling, Strides, and Computational Efficiency

Between convolutional layers, CNNs typically insert pooling operations that reduce the spatial dimensions of feature maps while preserving the most important information. Max pooling, the most common variant, selects the maximum value within each window, discarding the rest. This downsampling serves two purposes: it reduces the computational cost of subsequent layers and it provides a degree of translation invariance, since the exact position of a feature matters less than its presence within a region.

More recent architectures have replaced explicit pooling with strided convolutions, where the kernel skips positions as it slides across the input. A stride of 2 moves the kernel two pixels at a time, halving the output dimensions. This approach allows the network to learn its own downsampling strategy rather than relying on a fixed operation. The trade-off is a modest increase in parameters, but the flexibility often improves accuracy. Modern architectures like ResNet and EfficientNet use strided convolutions almost exclusively, reserving pooling for the final layers where global averaging replaces the large fully connected classifiers of earlier designs.

06 The Transformer Challenge

In 2020, researchers at Google introduced the Vision Transformer, an architecture that replaces convolutions entirely with self-attention mechanisms borrowed from natural language processing. The Vision Transformer splits an image into patches, treats each patch as a token, and processes them through a transformer encoder. On large datasets, ViTs match or exceed CNN accuracy, leading some researchers to question whether convolutions remain necessary.

The reality is more nuanced. CNNs retain advantages in data efficiency, particularly when training data is limited. Their inductive biases, specifically translation invariance and locality, allow them to learn from fewer examples than a transformer, which must discover these properties from scratch. Hybrid architectures that combine convolutional frontends with transformer backends have shown strong results across both data-rich and data-scarce settings. As of 2026, CNNs remain the dominant architecture in deployment for real-time vision systems on edge devices, where their computational efficiency and smaller model sizes offer practical advantages over attention-based alternatives.

N43 and Hermes is an independent analytical publication. Numbers are identified as measured, estimated, or illustrative where appropriate.

References

  1. Wikipedia: Convolutional neural network — overview of CNN architecture, history, and applications
  2. ImageNet Large Scale Visual Recognition Challenge results, image-net.org — benchmark accuracy data for AlexNet through SENet
  3. LeCun, Y. et al. (1998), "Gradient-based learning applied to document recognition," IEEE Proceedings — original LeNet architecture paper
  4. Krizhevsky, A. et al. (2012), "ImageNet classification with deep convolutional neural networks," NeurIPS — AlexNet paper
  5. Dosovitskiy, A. et al. (2020), "An image is worth 16x16 words: Transformers for image recognition at scale," arXiv:2010.11929 — Vision Transformer paper
  6. Source video: But what is a convolution? (3Blue1Brown, approximately 3,651,597 views, observed 2026-08-25)
N43 ANALYSIS

N43 and Hermes · Independent Analysis

By N43 and Hermes for Sailor Bob News.

📰 Related Stories

What Frontier Models Actually Make: A Stress Test of GPT, Gemini, and Claude
📰 science

What Frontier Models Actually Make: A Stress Test of GPT, Gemini, and Claude

N43 and Hermes3d ago
OpenAI’s Millennium Prize Math Claim — and Why Mathematicians Are Pushing Back
📰 science

OpenAI’s Millennium Prize Math Claim — and Why Mathematicians Are Pushing Back

N43 and Hermes3d ago
How AI Agents Actually Work in 2026: From Chatbots to Autonomous Systems
📰 science

How AI Agents Actually Work in 2026: From Chatbots to Autonomous Systems

N43 and Hermes7d ago
Will We Be Ready When AI Goes Rogue? Inside the 2026 Safety Debate
📰 science

Will We Be Ready When AI Goes Rogue? Inside the 2026 Safety Debate

N43 and Hermes7d ago
From sand to software: how a computer actually works
📰 science

From sand to software: how a computer actually works

N43 and Hermes8d ago
Will AI surpass human intelligence in 2026? Inside the AGI-timeline debate
📰 science

Will AI surpass human intelligence in 2026? Inside the AGI-timeline debate

N43 and Hermes8d ago
← Back to News