đŸ•ˇī¸ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 103 (from laksa024)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

â„šī¸ Skipped - page is already crawled

📄
INDEXABLE
✅
CRAWLED
1 day ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.geeksforgeeks.org/deep-learning/convolutional-neural-network-cnn-in-machine-learning/
Last Crawled2026-04-10 21:46:24 (1 day ago)
First Indexed2025-06-16 00:22:55 (10 months ago)
HTTP Status Code200
Meta TitleConvolutional Neural Network (CNN) in Deep Learning - GeeksforGeeks
Meta DescriptionYour All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more., Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
Meta Canonicalnull
Boilerpipe Text
Convolutional Neural Network (CNN) in Deep Learning Suggested Quiz 6 Questions What is the primary function of convolutional layers in a CNN? A To reduce the size of the image B To detect features like edges and textures C To classify images D To add non-linearity What is the role of activation functions in CNNs? A To normalize data B To introduce non-linearity C To reduce computational complexity D To generate labels Which CNN architecture first won the ImageNet competition in 2012? A LeNet B AlexNet C VGG D ResNet What is the key innovation introduced by ResNet architecture? A Inception modules B Skip connections C Dropout layers D Fully connected layers What type of problem is typically solved using CNNs in medical imaging? A Disease detection B Sentiment analysis C Time series prediction D Language translation Which CNN model is known for using small 3x3 convolution filters with deep layers? A GoogleNet B AlexNet C VGG D ResNet Quiz Completed Successfully Your Score : 0 / 6 Accuracy : 0% Login to View Explanation 1 /6
Markdown
[![geeksforgeeks](https://media.geeksforgeeks.org/gfg-gg-logo.svg)](https://www.geeksforgeeks.org/) ![search icon](https://media.geeksforgeeks.org/auth-dashboard-uploads/Property=Light---Default.svg) - Sign In - [Courses]() - [Tutorials]() - [Interview Prep]() - [DSA](https://www.geeksforgeeks.org/dsa/dsa-tutorial-learn-data-structures-and-algorithms/) - [Practice Problems](https://www.geeksforgeeks.org/explore) - [C](https://www.geeksforgeeks.org/c/c-programming-language/) - [C++](https://www.geeksforgeeks.org/cpp/c-plus-plus/) - [Java](https://www.geeksforgeeks.org/java/java/) - [Python](https://www.geeksforgeeks.org/python/python-programming-language-tutorial/) - [JavaScript](https://www.geeksforgeeks.org/javascript/javascript-tutorial/) - [Data Science](https://www.geeksforgeeks.org/data-science/data-science-for-beginners/) - [Machine Learning](https://www.geeksforgeeks.org/machine-learning/machine-learning/) - [Courses](https://www.geeksforgeeks.org/courses) # Convolutional Neural Network (CNN) in Deep Learning Last Updated : 30 Jan, 2026 [Convolutional Neural Networks (CNNs)](https://www.geeksforgeeks.org/machine-learning/introduction-convolution-neural-network/) 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. ![Introduction-to-Convolutional-Neural-Networks\_.webp](https://media.geeksforgeeks.org/wp-content/uploads/20250529121802768308/Introduction-to-Convolutional-Neural-Networks_.webp)![Introduction-to-Convolutional-Neural-Networks\_.webp](https://media.geeksforgeeks.org/wp-content/uploads/20250529121802768308/Introduction-to-Convolutional-Neural-Networks_.webp) ![Convolutional-Neural-Network-in-Machine-Learning.webp](https://media.geeksforgeeks.org/wp-content/uploads/20250529121802516451/Convolutional-Neural-Network-in-Machine-Learning.webp)![Convolutional-Neural-Network-in-Machine-Learning.webp](https://media.geeksforgeeks.org/wp-content/uploads/20250529121802516451/Convolutional-Neural-Network-in-Machine-Learning.webp) ![Application-of-CNN.webp](https://media.geeksforgeeks.org/wp-content/uploads/20250529121801792647/Application-of-CNN.webp)![Application-of-CNN.webp](https://media.geeksforgeeks.org/wp-content/uploads/20250529121801792647/Application-of-CNN.webp) 2 / 3 ### Key Components - [****Convolutional Layers****](https://www.geeksforgeeks.org/machine-learning/what-are-convolution-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. - [****Pooling Layers****](https://www.geeksforgeeks.org/deep-learning/cnn-introduction-to-pooling-layer/)****:**** 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. - [****Activation Functions****](https://www.geeksforgeeks.org/machine-learning/activation-functions-neural-networks/)****:**** They introduce non-linearity to the model by allowing it to learn more complex relationships in the data. - [****Fully Connected Layers****](https://www.geeksforgeeks.org/deep-learning/what-is-fully-connected-layer-in-deep-learning/)****:**** 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. ## Working of CNN 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\_](https://media.geeksforgeeks.org/wp-content/uploads/20250207123959732912/Working-of-CNN_.webp) Working of CNN Models ## ****Training 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: - ****Accuracy:**** Accuracy is the percentage of test images that the CNN correctly classifies. - ****Precision:**** Precision is the percentage of test images that the CNN predicts as a particular class and that are actually of that class. - ****Recall:**** Recall is the percentage of test images that are of a particular class and that the CNN predicts as that class. - ****F1 Score:**** The F1 Score is a harmonic mean of precision and recall. It is a good metric for evaluating the performance of a CNN on classes that are imbalanced. ## ****Different Types of CNN Models**** ****1\. LeNet:**** [LeNet](https://www.geeksforgeeks.org/computer-vision/what-is-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](https://www.geeksforgeeks.org/machine-learning/ml-getting-started-with-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)](https://www.geeksforgeeks.org/deep-learning/residual-networks-resnet-deep-learning/) 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](https://www.geeksforgeeks.org/machine-learning/understanding-googlenet-model-cnn-architecture/) 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](https://www.geeksforgeeks.org/computer-vision/vgg-net-architecture-explained/) 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**** - ****Image classification:**** CNNs are the state-of-the-art models for image classification. They can be used to classify images into different categories such as cats and dogs. - ****Object detection:**** It can be used to detect objects in images such as people, cars and buildings. They can also be used to localize objects in images which means that they can identify the location of an object in an image. - ****Image segmentation:**** It can be used to segment images which means that they can identify and label different objects in an image. This is useful for applications such as medical imaging and robotics. - ****Video analysis:**** It can be used to analyze videos such as tracking objects in a video or detecting events in a video. This is useful for applications such as video surveillance and traffic monitoring. ## ****Advantages**** - ****High Accuracy****: They can achieve high accuracy in various image recognition tasks. - ****Efficiency****: They are efficient, especially when implemented on GPUs. - ****Robustness****: They are robust to noise and variations in input data. - ****Adaptability****: It can be adapted to different tasks by modifying their architecture. ## ****Disadvantages**** - ****Complexity****: It can be complex and difficult to train, especially for large datasets. - ****Resource-Intensive****: It require significant computational resources for training and deployment. - ****Data Requirements****: They need large amounts of labeled data for training. - ****Interpretability****: They can be difficult to interpret making it challenging to understand their predictions. Convolutional Neural Network (CNN) in Deep Learning Suggested Quiz ![reset](https://media.geeksforgeeks.org/auth-dashboard-uploads/Reset-icon---Light.svg) 6 Questions What is the primary function of convolutional layers in a CNN? - A To reduce the size of the image - B To detect features like edges and textures - C To classify images - D To add non-linearity What is the role of activation functions in CNNs? - A To normalize data - B To introduce non-linearity - C To reduce computational complexity - D To generate labels Which CNN architecture first won the ImageNet competition in 2012? - A LeNet - B AlexNet - C VGG - D ResNet What is the key innovation introduced by ResNet architecture? - A Inception modules - B Skip connections - C Dropout layers - D Fully connected layers What type of problem is typically solved using CNNs in medical imaging? - A Disease detection - B Sentiment analysis - C Time series prediction - D Language translation Which CNN model is known for using small 3x3 convolution filters with deep layers? - A GoogleNet - B AlexNet - C VGG - D ResNet ![success](https://media.geeksforgeeks.org/auth-dashboard-uploads/sucess-img.png) Quiz Completed Successfully Your Score :0/6 Accuracy :0% Login to View Explanation **1**/6 \< Previous Next \> Comment [G](https://www.geeksforgeeks.org/user/goelaparna1520/) [goelaparna1520](https://www.geeksforgeeks.org/user/goelaparna1520/) 52 Article Tags: Article Tags: [Deep Learning](https://www.geeksforgeeks.org/category/ai-ml-ds/deep-learning/) [AI-ML-DS](https://www.geeksforgeeks.org/category/ai-ml-ds/) [Neural Network](https://www.geeksforgeeks.org/tag/neural-network/) ### Explore [![GeeksforGeeks](https://media.geeksforgeeks.org/auth-dashboard-uploads/gfgFooterLogo.png)](https://www.geeksforgeeks.org/) ![location](https://media.geeksforgeeks.org/img-practice/Location-1685004904.svg) Corporate & Communications Address: A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305) ![location](https://media.geeksforgeeks.org/img-practice/Location-1685004904.svg) Registered Address: K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305 [![GFG App on Play Store](https://media.geeksforgeeks.org/auth-dashboard-uploads/googleplay-%281%29.png)](https://geeksforgeeksapp.page.link/gfg-app)[![GFG App on App Store](https://media.geeksforgeeks.org/auth-dashboard-uploads/appstore-%281%29.png)](https://geeksforgeeksapp.page.link/gfg-app) - Company - [About Us](https://www.geeksforgeeks.org/about/) - [Legal](https://www.geeksforgeeks.org/legal/) - [Privacy Policy](https://www.geeksforgeeks.org/legal/privacy-policy/) - [Contact Us](https://www.geeksforgeeks.org/about/contact-us/) - [Advertise with us](https://www.geeksforgeeks.org/advertise-with-us/) - [GFG Corporate Solution](https://www.geeksforgeeks.org/gfg-corporate-solution/) - [Campus Training Program](https://www.geeksforgeeks.org/campus-training-program/) - Explore - [POTD](https://www.geeksforgeeks.org/problem-of-the-day) - [Job-A-Thon](https://practice.geeksforgeeks.org/events/rec/job-a-thon/) - [Blogs](https://www.geeksforgeeks.org/category/blogs/?type=recent) - [Nation Skill Up](https://www.geeksforgeeks.org/nation-skill-up/) - Tutorials - [Programming Languages](https://www.geeksforgeeks.org/computer-science-fundamentals/programming-language-tutorials/) - [DSA](https://www.geeksforgeeks.org/dsa/dsa-tutorial-learn-data-structures-and-algorithms/) - [Web Technology](https://www.geeksforgeeks.org/web-tech/web-technology/) - [AI, ML & Data Science](https://www.geeksforgeeks.org/machine-learning/ai-ml-and-data-science-tutorial-learn-ai-ml-and-data-science/) - [DevOps](https://www.geeksforgeeks.org/devops/devops-tutorial/) - [CS Core Subjects](https://www.geeksforgeeks.org/gate/gate-exam-tutorial/) - [Interview Preparation](https://www.geeksforgeeks.org/aptitude/interview-corner/) - [Software and Tools](https://www.geeksforgeeks.org/websites-apps/software-and-tools-a-to-z-list/) - Courses - [ML and Data Science](https://www.geeksforgeeks.org/courses/category/machine-learning-data-science) - [DSA and Placements](https://www.geeksforgeeks.org/courses/category/dsa-placements) - [Web Development](https://www.geeksforgeeks.org/courses/category/development-testing) - [Programming Languages](https://www.geeksforgeeks.org/courses/category/programming-languages) - [DevOps & Cloud](https://www.geeksforgeeks.org/courses/category/cloud-devops) - [GATE](https://www.geeksforgeeks.org/courses/category/gate) - [Trending Technologies](https://www.geeksforgeeks.org/courses/category/trending-technologies/) - Videos - [DSA](https://www.geeksforgeeks.org/videos/category/sde-sheet/) - [Python](https://www.geeksforgeeks.org/videos/category/python/) - [Java](https://www.geeksforgeeks.org/videos/category/java-w6y5f4/) - [C++](https://www.geeksforgeeks.org/videos/category/c/) - [Web Development](https://www.geeksforgeeks.org/videos/category/web-development/) - [Data Science](https://www.geeksforgeeks.org/videos/category/data-science/) - [CS Subjects](https://www.geeksforgeeks.org/videos/category/cs-subjects/) - Preparation Corner - [Interview Corner](https://www.geeksforgeeks.org/interview-prep/interview-corner/) - [Aptitude](https://www.geeksforgeeks.org/aptitude/aptitude-questions-and-answers/) - [Puzzles](https://www.geeksforgeeks.org/aptitude/puzzles/) - [GfG 160](https://www.geeksforgeeks.org/courses/gfg-160-series) - [System Design](https://www.geeksforgeeks.org/system-design/system-design-tutorial/) [@GeeksforGeeks, Sanchhaya Education Private Limited](https://www.geeksforgeeks.org/), [All rights reserved](https://www.geeksforgeeks.org/copyright-information/) ![]()
Readable Markdown
Convolutional Neural Network (CNN) in Deep Learning Suggested Quiz 6 Questions What is the primary function of convolutional layers in a CNN? - A To reduce the size of the image - B To detect features like edges and textures - C To classify images - D To add non-linearity What is the role of activation functions in CNNs? - A To normalize data - B To introduce non-linearity - C To reduce computational complexity - D To generate labels Which CNN architecture first won the ImageNet competition in 2012? - A LeNet - B AlexNet - C VGG - D ResNet What is the key innovation introduced by ResNet architecture? - A Inception modules - B Skip connections - C Dropout layers - D Fully connected layers What type of problem is typically solved using CNNs in medical imaging? - A Disease detection - B Sentiment analysis - C Time series prediction - D Language translation Which CNN model is known for using small 3x3 convolution filters with deep layers? - A GoogleNet - B AlexNet - C VGG - D ResNet ![success](https://media.geeksforgeeks.org/auth-dashboard-uploads/sucess-img.png) Quiz Completed Successfully Your Score :0/6 Accuracy :0% Login to View Explanation **1**/6
Shard103 (laksa)
Root Hash12046344915360636903
Unparsed URLorg,geeksforgeeks!www,/deep-learning/convolutional-neural-network-cnn-in-machine-learning/ s443