A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/deep-learning/convolutional-neural-network-cnn-in-machine-learning/ below:

Convolutional Neural Network (CNN) in Machine Learning

Convolutional Neural Network (CNN) in Machine Learning

Last Updated : 23 Jul, 2025

Convolutional Neural Networks (CNNs) are deep learning models designed to process data with a grid-like topology such as images. They are the foundation for most modern computer vision applications to detect features within visual data.

Key Components of a Convolutional Neural Network
  1. Convolutional Layers: These layers apply convolutional operations to input images using filters or kernels to detect features such as edges, textures and more complex patterns. Convolutional operations help preserve the spatial relationships between pixels.
  2. Pooling Layers: They downsample the spatial dimensions of the input, reducing the computational complexity and the number of parameters in the network. Max pooling is a common pooling operation where we select a maximum value from a group of neighboring pixels.
  3. Activation Functions: They introduce non-linearity to the model by allowing it to learn more complex relationships in the data.
  4. Fully Connected Layers: These layers are responsible for making predictions based on the high-level features learned by the previous layers. They connect every neuron in one layer to every neuron in the next layer.
How CNNs Work?
  1. Input Image: CNN receives an input image which is preprocessed to ensure uniformity in size and format.
  2. Convolutional Layers: Filters are applied to the input image to extract features like edges, textures and shapes.
  3. Pooling Layers: The feature maps generated by the convolutional layers are downsampled to reduce dimensionality.
  4. Fully Connected Layers: The downsampled feature maps are passed through fully connected layers to produce the final output, such as a classification label.
  5. Output: The CNN outputs a prediction, such as the class of the image.
Working of CNN Models How to Train a Convolutional Neural Network?

CNNs are trained using a supervised learning approach. This means that the CNN is given a set of labeled training images. The CNN learns to map the input images to their correct labels.

The training process for a CNN involves the following steps:

  1. Data Preparation: The training images are preprocessed to ensure that they are all in the same format and size.
  2. Loss Function: A loss function is used to measure how well the CNN is performing on the training data. The loss function is typically calculated by taking the difference between the predicted labels and the actual labels of the training images.
  3. Optimizer: An optimizer is used to update the weights of the CNN in order to minimize the loss function.
  4. Backpropagation: Backpropagation is a technique used to calculate the gradients of the loss function with respect to the weights of the CNN. The gradients are then used to update the weights of the CNN using the optimizer.
How to Evaluate CNN Models

Efficiency of CNN can be evaluated using a variety of criteria. Among the most popular metrics are:

Case Study of CNN for Diabetic retinopathy

Diabetic retinopathy is a severe eye condition caused by damage to the retina's blood vessels due to prolonged diabetes. It is a leading cause of blindness among adults aged 20 to 64. CNNs have successfully used to detect diabetic retinopathy by analyzing retinal images. By training on labeled datasets of healthy and affected retina images CNNs can accurately identify signs of the disease helping in early diagnosis and treatment.

Different Types of CNN Models 1. LeNet

LeNet developed by Yann LeCun and his colleagues in the late 1990s was one of the first successful CNNs designed for handwritten digit recognition. It laid the foundation for modern CNNs and achieved high accuracy on the MNIST dataset which contains 70,000 images of handwritten digits (0-9).

2. AlexNet

AlexNet is a CNN architecture that was developed by Alex Krizhevsky, Ilya Sutskever and Geoffrey Hinton in 2012. It was the first CNN to win the ImageNet Large Scale Visual Recognition Challenge (ILSVRC) a major image recognition competition. It consists of several layers of convolutional and pooling layers followed by fully connected layers. The architecture includes five convolutional layers, three pooling layers and three fully connected layers.

3. Resnet

ResNets (Residual Networks) are designed for image recognition and processing tasks. They are renowned for their ability to train very deep networks without overfitting making them highly effective for complex tasks. It introduces skip connections that allow the network to learn residual functions making it easier to train deep architecture.

4. GoogleNet

GoogleNet also known as InceptionNet is renowned for achieving high accuracy in image classification while using fewer parameters and computational resources compared to other state-of-the-art CNNs. The core component of GoogleNet allows the network to learn features at different scales simultaneously to enhance performance.

5. VGG

VGGs are developed by the Visual Geometry Group at Oxford, it uses small 3x3 convolutional filters stacked in multiple layers, creating a deep and uniform structure. Popular variants like VGG-16 and VGG-19 achieved state-of-the-art performance on the ImageNet dataset demonstrating the power of depth in CNNs.

Applications of CNN Advantages of CNN Disadvantages of CNN

Convolutional Neural Network (CNN) in Deep Learning


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4