Convolutional Neural Network
Introductory
Where’s Waldo Game
By holding a profile of a person (kernel), align the profile image and scan it line by line. At each position, compare the image against the position in the picture (find out the similarity), which is checking the correlation between the input profile against the position.
- Translation invariance: We want to capture the pitch information
- Locality: We want to focus on the local regions first and don’t care about the meaning at the beginning. Aggregate them later on to know the meaning
Convolutional Layers

- The convolution layers can learn and extract the important feature (information) from the images
The fully-connected layers are used for classification
Example:

Convolution Operation
(Training) Parameter: Filter Weights Kernel
Cross Correlation

Number of parameters

Note that the size of the first layer filter is 3x3, number of parameters of first layer is (3 x 3 + 1) x 6 = 60, which is much smaller than the fully-connected neural network. It reduces the number of parameters without seriously affects the quality.
Padding
For the boundary, extra values (padding) are added around the boundary
- In case, the size of padding is (1 x 1), the dimension of the output layer is
Stride
The number of rows and columns traversed per slide (Usually set as 1)
- In case, the stride is (3, 2), the dimension of the output layer is
Pooling Layers
It makes the representation smaller and more manageable by operate over each activation map independently
- Max pooling: Take the maximum number as the representation within a range of slice and form the output layer



