SlideShare a Scribd company logo
Convolutional Neural
Networks
INTRODUCTION
• Tensor flow is an open source machine learning library for research
and production.
• Tensor means having both magnitude and direction.
• Tensor flow can be represented in n-dimension.
Neural Networks
• Neural Networks which are inspired from biological neurons.
• Neural networks which has the following functions
• Neurons
• Connection Links
• Weights
• Activation Functions
• Convolutional Neural Network= Convolution + Neural Network
CONVOLUTIONAL NEURAL NETWORKS
Convolution Layer
• Convolution is the first layer to extract features from an input image.
• Convolution preserves the relationship between pixels by learning image
features using small squares of input data.
• Convolution of an image with different filters can perform operations such
as edge detection, blur and sharpen by applying filters
• It is a mathematical operation that takes two inputs such as image matrix
and a filter or kernel
• Here if input is 50x50 matrix is multiplied with stride=2 and filter of
3x3 matrix we get an output which is called ā€˜feature map’ of size
25x25.
Strides
• Stride is the number of pixels shifts over the input matrix.
• When the stride is 1 then we move the filters to 1 pixel at a time.
When the stride is 2 then we move the filters to 2 pixels at a time and
so on
Padding
• Sometimes filter does not fit perfectly fit the input image Then
Pad the picture with zeros (zero-padding) so that it fits
Rectified Linear Unit (RELU)
• The main purpose of Relu is to introduce non-linearity
• The ReLU maps input x to max (0, x), that is, they map negative inputs
to 0, and positive inputs are output without any change as shown.
Pooling Layer
• Pooling layer reduce the number of parameters when the images are
too large.
• Different types of pooling:
• Max Pooling
• Average Pooling
• Sum Pooling
• Max pooling is widely used one as it take the largest element from
the rectified feature map.
Fully Connected:
• The layer is Fully Connected layer, we flattened our matrix into vector
and feed it into a fully connected layer like neural network.
• With the fully connected layers, we combined these features together
to create a model.
Softmax
• Finally, we have an activation function such as softmax or sigmoid to
classify the outputs.
• Softmax Converts outputs to probabilities by dividing output by
summation of all the values
• Forces the output be sum of 1
Cross-Entropy
• Cross-entropy is a loss function for which error has to be minimized.
• Compares the distance between output of softmax and one hot
encoding.
Dropout
• Dropout is an effective way of regularizing neural networks to avoid
the overfitting
• Drop out should be above 0.3
Result
• The performance was evaluated by using accuracy of the model with
actual vs predicted.
• How to find out best number of hidden layers for a model?
• If image size is nxn
• stride-=s
• Then no of hidden layers L should be (n/s)=a
• i.e., number of layers L should always be greater than a.

More Related Content

PPTX
PPTX
Machine Learning - Introduction to Convolutional Neural Networks
PDF
PR-284: End-to-End Object Detection with Transformers(DETR)
PDF
PR-317: MLP-Mixer: An all-MLP Architecture for Vision
PPTX
Image classification using CNN
PPTX
Introduction to CNN
PPTX
Parallel convolutional neural network
Machine Learning - Introduction to Convolutional Neural Networks
PR-284: End-to-End Object Detection with Transformers(DETR)
PR-317: MLP-Mixer: An all-MLP Architecture for Vision
Image classification using CNN
Introduction to CNN
Parallel convolutional neural network

What's hot (20)

PDF
PR095: Modularity Matters: Learning Invariant Relational Reasoning Tasks
PDF
Efficient Neural Architecture Search via Parameter Sharing
PPT
Cnn method
PDF
Restricting the Flow: Information Bottlenecks for Attribution
PPTX
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
PDF
PR-305: Exploring Simple Siamese Representation Learning
PDF
[ė”„ė…¼ģ½] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
PPTX
Exploring Randomly Wired Neural Networks for Image Recognition
PDF
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
Ā 
PDF
Overview of Convolutional Neural Networks
Ā 
PDF
N ns 1
PDF
Deep learning
PPTX
2021 03-02-transformer interpretability
PDF
Convolutional Neural Network Models - Deep Learning
PDF
ė”„ėŸ¬ė‹ ė…¼ė¬øģ½źø° ėŖØģž„ - ģ†”ķ—Œ Deep sets ģŠ¬ė¼ģ“ė“œ
PDF
Switch Transformers: Scaling to Trillion Parameter Models with Simple and Eff...
PDF
Case Study of Convolutional Neural Network
PDF
Densenet CNN
PPTX
CNN and its applications by ketaki
PDF
PR-108: MobileNetV2: Inverted Residuals and Linear Bottlenecks
PR095: Modularity Matters: Learning Invariant Relational Reasoning Tasks
Efficient Neural Architecture Search via Parameter Sharing
Cnn method
Restricting the Flow: Information Bottlenecks for Attribution
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
PR-305: Exploring Simple Siamese Representation Learning
[ė”„ė…¼ģ½] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
Exploring Randomly Wired Neural Networks for Image Recognition
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
Ā 
Overview of Convolutional Neural Networks
Ā 
N ns 1
Deep learning
2021 03-02-transformer interpretability
Convolutional Neural Network Models - Deep Learning
ė”„ėŸ¬ė‹ ė…¼ė¬øģ½źø° ėŖØģž„ - ģ†”ķ—Œ Deep sets ģŠ¬ė¼ģ“ė“œ
Switch Transformers: Scaling to Trillion Parameter Models with Simple and Eff...
Case Study of Convolutional Neural Network
Densenet CNN
CNN and its applications by ketaki
PR-108: MobileNetV2: Inverted Residuals and Linear Bottlenecks
Ad

Similar to Convolutional neural networks (20)

PDF
_AI_Stanford_Super_#DeepLearning_Cheat_Sheet!_šŸ˜ŠšŸ™ƒšŸ˜€šŸ™ƒšŸ˜Š.pdf
PDF
super-cheatsheet-deep-learning.pdf
PDF
deep CNN vs conventional ML
PPTX
Deep learning
PDF
Cheatsheet convolutional-neural-networks
PPTX
Introduction to convolutional networks .pptx
PDF
Faire de la reconnaissance d'images avec le Deep Learning - Cristina & Pierre...
PPTX
14_cnn complete.pptx
PPTX
Deep learning requirement and notes for novoice
PPTX
Deep Learning Interview Questions And Answers | AI & Deep Learning Interview ...
DOCX
Deep Neural Network DNN.docx
PPTX
Neural Networks with Google TensorFlow
PPTX
cnn ppt.pptx
PPTX
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
PPTX
V2.0 open power ai virtual university deep learning and ai introduction
PPTX
Introduction to Deep Learning and Tensorflow
PPT
digital image processing - convolutional networks
PDF
A Look at TensorFlow.js
PPTX
11_Saloni Malhotra_SummerTraining_PPT.pptx
PPTX
C++ and Deep Learning
_AI_Stanford_Super_#DeepLearning_Cheat_Sheet!_šŸ˜ŠšŸ™ƒšŸ˜€šŸ™ƒšŸ˜Š.pdf
super-cheatsheet-deep-learning.pdf
deep CNN vs conventional ML
Deep learning
Cheatsheet convolutional-neural-networks
Introduction to convolutional networks .pptx
Faire de la reconnaissance d'images avec le Deep Learning - Cristina & Pierre...
14_cnn complete.pptx
Deep learning requirement and notes for novoice
Deep Learning Interview Questions And Answers | AI & Deep Learning Interview ...
Deep Neural Network DNN.docx
Neural Networks with Google TensorFlow
cnn ppt.pptx
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
V2.0 open power ai virtual university deep learning and ai introduction
Introduction to Deep Learning and Tensorflow
digital image processing - convolutional networks
A Look at TensorFlow.js
11_Saloni Malhotra_SummerTraining_PPT.pptx
C++ and Deep Learning
Ad

Recently uploaded (20)

PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
1_Introduction to advance data techniques.pptx
PDF
annual-report-2024-2025 original latest.
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Computer network topology notes for revision
PDF
Mega Projects Data Mega Projects Data
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
ā€œGetting Started with Data Analytics Using R – Concepts, Tools & Case Studiesā€
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
Business Analytics and business intelligence.pdf
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Introduction to machine learning and Linear Models
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
.pdf is not working space design for the following data for the following dat...
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
1_Introduction to advance data techniques.pptx
annual-report-2024-2025 original latest.
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Computer network topology notes for revision
Mega Projects Data Mega Projects Data
Supervised vs unsupervised machine learning algorithms
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
ā€œGetting Started with Data Analytics Using R – Concepts, Tools & Case Studiesā€
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Business Analytics and business intelligence.pdf
Miokarditis (Inflamasi pada Otot Jantung)
oil_refinery_comprehensive_20250804084928 (1).pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Introduction to machine learning and Linear Models
Reliability_Chapter_ presentation 1221.5784
.pdf is not working space design for the following data for the following dat...

Convolutional neural networks

  • 2. INTRODUCTION • Tensor flow is an open source machine learning library for research and production. • Tensor means having both magnitude and direction. • Tensor flow can be represented in n-dimension.
  • 3. Neural Networks • Neural Networks which are inspired from biological neurons. • Neural networks which has the following functions • Neurons • Connection Links • Weights • Activation Functions • Convolutional Neural Network= Convolution + Neural Network
  • 5. Convolution Layer • Convolution is the first layer to extract features from an input image. • Convolution preserves the relationship between pixels by learning image features using small squares of input data. • Convolution of an image with different filters can perform operations such as edge detection, blur and sharpen by applying filters • It is a mathematical operation that takes two inputs such as image matrix and a filter or kernel
  • 6. • Here if input is 50x50 matrix is multiplied with stride=2 and filter of 3x3 matrix we get an output which is called ā€˜feature map’ of size 25x25.
  • 7. Strides • Stride is the number of pixels shifts over the input matrix. • When the stride is 1 then we move the filters to 1 pixel at a time. When the stride is 2 then we move the filters to 2 pixels at a time and so on
  • 8. Padding • Sometimes filter does not fit perfectly fit the input image Then Pad the picture with zeros (zero-padding) so that it fits
  • 9. Rectified Linear Unit (RELU) • The main purpose of Relu is to introduce non-linearity • The ReLU maps input x to max (0, x), that is, they map negative inputs to 0, and positive inputs are output without any change as shown.
  • 10. Pooling Layer • Pooling layer reduce the number of parameters when the images are too large. • Different types of pooling: • Max Pooling • Average Pooling • Sum Pooling • Max pooling is widely used one as it take the largest element from the rectified feature map.
  • 11. Fully Connected: • The layer is Fully Connected layer, we flattened our matrix into vector and feed it into a fully connected layer like neural network. • With the fully connected layers, we combined these features together to create a model.
  • 12. Softmax • Finally, we have an activation function such as softmax or sigmoid to classify the outputs. • Softmax Converts outputs to probabilities by dividing output by summation of all the values • Forces the output be sum of 1
  • 13. Cross-Entropy • Cross-entropy is a loss function for which error has to be minimized. • Compares the distance between output of softmax and one hot encoding.
  • 14. Dropout • Dropout is an effective way of regularizing neural networks to avoid the overfitting • Drop out should be above 0.3
  • 15. Result • The performance was evaluated by using accuracy of the model with actual vs predicted. • How to find out best number of hidden layers for a model? • If image size is nxn • stride-=s • Then no of hidden layers L should be (n/s)=a • i.e., number of layers L should always be greater than a.