CO3519 Artificial Intelligence
CO3519 Lecture 12 - Basics of Deep Learning
Lecture DocumentsΒΆ
Learning ObjectivesΒΆ
- Introduce ConvNet
- Learning how CNN works considering strides
- How to construct a complete CNN as a end-to-end model
ContentsΒΆ
- Convolutional Neural Network
- Building blocks of CNN
- Convolutional Operation
- Constructing CNN
Brief about CNNΒΆ
- Convolutional neural networks are a special kind of multi-layer neural network.
- CNN is a
feed-forwardnetwork that an extract the topological properties from an image. - Like almost every other neural network, they are trained with a version of
back-propagationalgorithm. - Convolutional neural networks are designed to recognise visual patterns directly from pixel images with minimal pre-processing.
- Can recognise patterns with extreme variability i.e. handwritten characters
CNN Building BlocksΒΆ

Convolutional LayerΒΆ









Strides ExampleΒΆ










Convolution Calculation ExampleΒΆ







Error
Skips 2 steps. Only moving in steps of 1. Slide error.









Reasons for Feature Map CreationΒΆ

Pooling LayerΒΆ
A subsampling layer commonly referred to as the pooling layer which reduces the spatial size of feature maps helping achieve translation invariance and reduces computational complexity.
Ensures that the same result will be obtained even when the image features have small translations.
Important
Important operation for object classification and detection.
Types of PoolingΒΆ
Max Pooling - Takes the maximum value from a given window. Helps preserve the most important features.
Average Pooling - Computes the average value in the window, resulting in a smoother representation.
Global Pooling - Reduces an entire feature map to a single value, often used before fully connected layers.
Pooling Layer Example (Feature Map to Pooling Layer)ΒΆ





Constructing CNNsΒΆ
- Construct a CNN by placing a number of convolution and pooling layers in cascade:
- Specify input size.
- Specify filter size at each layer, etc.
- Add a number of fully connected layers after convolution and pooling layers
- Add a classifier at the end of the network.

Next WeekΒΆ
- Extension of CNN.