Day8(CNN)
Day8(CNN)
• Layer Types:
• ANN: Consists mainly of fully connected (dense) layers.
• CNN: Includes convolutional layers (which apply filters to extract features), pooling
layers (to downsample the data), and sometimes dense layers at the end for
classification or regression.
Feature Extraction:
Pooling is a down-sampling
operation that reduces the
dimensionality of the feature
map. The rectified feature map
now goes through a pooling
layer to generate a pooled
feature map.
The pooling layer uses various filters to
identify different parts of the image like edges,
corners, body, feathers, eyes, and beak.
how the structure
of the convolution
neural network
looks so far:
The next step in the process is
called flattening. Flattening is
used to convert all the resultant
2-Dimensional arrays from
pooled feature maps into a
single long continuous linear
vector.
The flattened matrix is fed as input to the fully
connected layer to classify the image.
how exactly CNN recognizes
a bird:
o The activation layer introduces nonlinearity into the
network by applying an activation function to the output
of the previous layer.
Activation
Layer o This is crucial for the network to learn complex patterns.
Common activation functions, such as ReLU, Tanh, and
Leaky ReLU, transform the input while keeping the
output size unchanged.
o After the convolution and pooling operations, the
feature maps still exist in a multi-dimensional format.
Flattening converts these feature maps into a one-
Flattening dimensional vector. This process is essential because it
prepares the data to be passed into fully connected
layers for classification or regression tasks.
Output Layer
o In the output layer, the final result from the fully connected layers is
processed through a logistic function, such as sigmoid or softmax. These
functions convert the raw scores into probability distributions, enabling the
model to predict the most likely class label.
Applications of CNN
Image Classification
Object Detection
Image Segmentation
Video Analysis
What Is Transfer
Learning?