Definition of Convolution? CNN variatnts model , detail comonent of cnn model
Q2. Explain CNN model and component of CNN MODEL?

A Convolutional Neural Network (CNN) is a type of deep learning model designed specifically for processing and analyzing visual data like images and videos. It is widely used for tasks like image classification, object detection, and facial recognition. CNNs are inspired by how the human brain processes visual information.
Components of a CNN Model
A CNN model is made up of several layers, each serving a specific purpose. Let’s break it down:
1. Input Layer
- What it does: Takes the input data, such as an image.
- How it works: An image is represented as a matrix of pixel values (e.g., grayscale images are 2D matrices, while color images are 3D matrices with RGB channels).
- Example: A 28x28 grayscale image will have 784 pixel values as input.
2. Convolution Layer
- What it does: This is the core layer where features are extracted from the input.
- How it works:
- A small filter (kernel) slides over the image to detect patterns like edges, textures, or shapes.
- At each position, the dot product between the filter and the image region is computed.
- The output is a feature map that highlights where certain patterns exist in the image.
- Example: A filter that looks for horizontal edges will highlight those edges, making them stand out as brighter areas in the image.
3. Activation Function (ReLU)
- What it does: Adds non-linearity to the model so it can learn complex patterns.