1 โ Convolution
4 small filters (each 2ร2) slide across your 5ร5 drawing. At every position, each filter computes: "how much does this match what I'm looking for?"
2 โ ReLU
Negative scores mean "doesn't match." ReLU sets them to zero. Only positive matches survive.
3 โ Pooling
Shrinks each 4ร4 map to 2ร2 by keeping only the strongest response per block. Now the network cares about whether a pattern exists, not exactly where.
4 โ Flatten
The 2ร2 maps from all 4 filters are unrolled into a single list of 16 numbers โ the network's final description of your drawing.
5 โ Dense
A single neuron weighs all 16 numbers against what it learned. Produces one number: "how diagonal is this?"
6 โ Sigmoid
Squashes the number into 0โ1. > 0.5 = "yes, diagonal-like." < 0.5 = "no."