MATH7005 Chap.7 Convolution, Pooling and Feature Maps
Convolution, Pooling and Feature Maps
Local patterns with shared weights
Convolution applies one small kernel at many spatial locations, reducing parameter count and detecting a learned pattern across an image.
The chapter separates spatial output dimensions from channel counts and parameter counts, then traces ReLU and max pooling on explicit numeric patches.
What to verify
State kernel size, padding, stride, input channels and output filters before calculating.
For segmentation, distinguish channel compression through a small kernel from spatial upsampling and explain how skip connections recover fine location information.
Spatial size and channel count are separate
The output side follows input size, padding, kernel and stride. The number of filters supplies the output channels.
Parameter count then uses kernel area, input channels and output filters, not image width and height. Keeping these ledgers separate prevents a plausible spatial result from hiding a wrong channel or weight calculation.
Pooling changes evidence resolution
Max pooling keeps the strongest response inside each window and sends the backward signal to the winning location.
It reduces spatial detail without adding learned parameters. Inspect whether small or boundary objects disappear after repeated pooling, because an aggregate classification score may not reveal which information was removed.
Segmentation needs aligned output
A classifier can compress an image into one decision, while segmentation must return a grid aligned with the input.
An encoder-decoder architecture upsamples the representation and uses skip connections to recover fine structure. Verify crop, resize and alignment conventions before attributing a shifted boundary to the learned filters.
What this chapter covers
- 01
Shared convolution kernel
- 02
Spatial output size
- 03
Input and output channels
- 04
ReLU feature map
- 05
Max pooling
- 06
Segmentation and U-Net
Worked example · free
Count one convolution layer
- 2Count weights in one filter.
- 2Include all filters.
- 2Add the biases.
Key terms
- Convolution Kernel
- A small learned weight array reused across spatial positions.
- Feature Map
- One spatial output channel produced by applying a filter across an input.
- Padding
- Values added around an input boundary to control output size and edge coverage.
- Stride
- The spatial step taken when the convolution or pooling window moves.
- Max Pooling
- A parameter-free operation that retains the largest value in each local window.
Convolution, Pooling and Feature Maps FAQ
Why does convolution use fewer parameters?
The same small kernel is reused at every spatial location. Parameter count therefore depends on kernel dimensions and channel counts, rather than growing with the full image width and height.
What determines the output image size?
Input size, kernel size, padding and stride determine each spatial side. The number of output filters determines the channel count, which must be appended separately after calculating height and width.
Why does segmentation need a decoder?
Classification can compress spatial detail into one label, while segmentation must return a label at each location. A decoder upsamples the representation, and skip connections restore detail from matching encoder stages.
How should I test whether a filter learned a local pattern?
Shift or mask the suspected pattern while holding other content fixed and inspect whether the feature response moves or weakens predictably. This controlled perturbation is stronger evidence than selecting one attractive activation map.
Why inspect preprocessing beside the model input?
Resize, crop and channel order may change what the network actually received. Displaying the transformed tensor beside the original prevents a preprocessing mismatch from being mistaken for a learned spatial failure.
What should a spatial failure review preserve?
Keep the original input, transformed tensor, prediction, target and a short error category together. Sorting by edge, scale, background or alignment failure exposes repeated patterns that an overall metric or confidence ranking can hide.
Does pooling add trainable parameters?
Ordinary max or average pooling has no learned weights; it applies a fixed local reduction. It still changes spatial resolution and information flow, so record its window, stride and padding when tracing tensor shapes.
Assessment move
Start with a four-by-four numeric grid and a two-by-two kernel. Calculate one local inner product, slide the kernel and build the full valid output before using a library. On separate lines, compute spatial size, output channels and trainable parameters for several padding and stride settings. Apply ReLU and max pooling to explicit windows and trace where the backward gradient would go.
In code, print the tensor after every block and compare an edge case with and without padding. For a segmentation example, verify that the final grid aligns with the input and inspect boundary errors. Preserve transformed inputs beside originals so preprocessing cannot be mistaken for model behaviour.
Working through Convolution, Pooling and Feature Maps in MATH7005? Sia is AskSia’s AI Computer Science tutor — ask any MATH7005 Convolution, Pooling and Feature Maps question and get a clear, step-by-step explanation grounded in how MATH7005 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.