Convolutional neural network

Ferdous ahmed
Ferdous ahmedStudent at Khulna University of Engineering and Technology um KUET
Convolutional Neural Network
• A child recognize animal visiting a zoo or seeing animal picture.
• Computers ‘see’ in a different way than we do. Their world consists of only numbers.
Every image can be represented as 2-dimensional arrays of numbers, known as pixels.
• But the fact that they perceive images in a different way, doesn’t mean we can’t train
them to recognize patterns, like we do. We just have to think of what an image is in a
different way.
Convolutional Neural Network (Cont…)
• Convolutional Neural Network (CNN) specific type of Artificial Neural Network .
• Convolutional Neural Networks are inspired by the brain.
• Research in the 1950s and 1960s by D.H Hubel and T.N Wiesel on the brain of mammals
suggested a new model for how mammals perceive the world visually.
Deep Learning Basics
OUTPUTS
HIDDEN
NODES
CAT DOG
• Deep Learning – is a set of machine learning
algorithms based on multi-layer networks
INPUTS
Deep Learning Basics
CAT DOG
• Deep Learning – is a set of machine learning algorithms based on
multi-layer networks
4
Training
Deep Learning Basics
CAT DOG
• Deep Learning – is a set of machine learning algorithms based on
multi-layer networks
5
Deep Learning Basics
CAT DOG
Deep Learning – is a set of machine learning algorithms based on
multi-layer networks
Architecture
• Convolutional Neural Networks have a different architecture than regular Neural
Networks. Regular Neural Networks transform an input by putting it through a series of
hidden layers.
• Every layer is made up of a set of neurons, where each layer is fully connected to all
neurons in the layer before. Finally, there is a last fully-connected layer —the output
layer —that represent the predictions.
8
What is Convolutional NN ?
CNN - multi-layer NN architecture
– Convolutional + Non-Linear Layer
– Sub-sampling Layer
– Convolutional +Non-L inear Layer
– Fully connected layers
 Supervised
Feature Extraction
Classi-
fication
9
What is Convolutional NN ?
2x2
Convolution + NL Sub-sampling Convolution + NL
Architecture(Cont..)
• The layers are organised in 3 dimensions: width, height and depth.
Architecture(Cont..)
CNNs have two components
• The Hidden layers/Feature extraction part:
1. Convolutions
2. Poolingoperations ( which the features are detected)
• The Classification part:
1. Classifier
2. Probability is assigned for the object on the image.
Architecture(Cont..)
• Suppose INPUT [32x32x3] ,where width 32, height 32, and with three color channels R,G,B.
• CONV layer may produce [32x32x12] if filters is 12.
Architecture(Cont..)
• RELU layer will apply an elementwise activation function, such as the (max(0,x)).
• POOL layer will perform a downsampling operation along the spatial dimensions (width,
height), resulting in volume such as [16x16x12].
• FC (i.e. fully-connected) layer will compute the class scores.
Feature Extraction
• Convolution is one of the main building blocks of a CNN.
• At every location, a matrix multiplication is performed and sums the result onto the
feature map.
• The area of our filter is also called the receptive field, named after the neuron cells! The
size of this filter is 3x3.
Feature Extraction(Cont…)
Need for receptive field
• For example, suppose that the input volume has size [32*32*3].So
our connection would be 32*32*3 ,which is impractical. If the
receptive field (or the filter size) is 5*5, then each neuron in the Conv
Layer will have weights to a [5x5x3] region in the input volume, for a
total of 5*5*3 = 75 weights (and +1 bias parameter). Notice that the
extent of the connectivity along the depth axis must be 3, since this is
the depth of the input volume.
Feature Extraction(Cont…)
• Just like any other Neural Network, we use an activation function to make our output non-
linear. This could be the ReLU activation function.
• Stride is the size of the step the convolution filter moves each time. A stride size is usually 1,
meaning the filter slides pixel by pixel.
• This shows stride size 1 in action.
Feature Extraction(Cont…)
• Because the size of the feature map is always smaller than the input, we have to do
something to prevent our feature map from shrinking. This is where we use padding.
• Pooling layer reduce the dimensionality of parameters and computation in the network.
• The most frequent type of pooling is max pooling, which takes the maximum value in each
window.
Feature Extraction(Cont…)
• Convolutional Demo
Classification
• Classification part consists fully connected layers.
• It accept 1 Dimensional data.
• To convert our 3D data to 1D, function flatten in Python.
CNN applications
CNN is a big hammer Plenty low hanging fruits
You need just a right nail!
Conv NN: Detection
Conv NN: Scene parsing
CNN: indoor semantic labeling RGBD
Conv NN: Action Detection
Conv NN: Image Processing
Summary
• CNNs are especially useful for image classification and recognition.
• The main technique in CNNs is convolution.
• A filter slides over the input and merges the input value + the filter value on the feature
map.
• Feed new images to our CNN so it can give a probability for the object it thinks it sees
or describe an image with text.
1 von 26

Recomendados

CONVOLUTIONAL NEURAL NETWORK von
CONVOLUTIONAL NEURAL NETWORKCONVOLUTIONAL NEURAL NETWORK
CONVOLUTIONAL NEURAL NETWORKMd Rajib Bhuiyan
711 views11 Folien
Convolutional Neural Network (CNN) - image recognition von
Convolutional Neural Network (CNN)  - image recognitionConvolutional Neural Network (CNN)  - image recognition
Convolutional Neural Network (CNN) - image recognitionYUNG-KUEI CHEN
4.3K views64 Folien
Convolutional neural network von
Convolutional neural networkConvolutional neural network
Convolutional neural networkMojammilHusain
1.1K views11 Folien
Convolutional Neural Network (CNN) von
Convolutional Neural Network (CNN)Convolutional Neural Network (CNN)
Convolutional Neural Network (CNN)Muhammad Haroon
829 views16 Folien
CNN Tutorial von
CNN TutorialCNN Tutorial
CNN TutorialSungjoon Choi
5.6K views37 Folien
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori... von
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...Simplilearn
3.6K views54 Folien

Más contenido relacionado

Was ist angesagt?

Convolutional Neural Network and Its Applications von
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsKasun Chinthaka Piyarathna
4.6K views23 Folien
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S... von
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...Simplilearn
13.6K views63 Folien
Convolutional neural network von
Convolutional neural network Convolutional neural network
Convolutional neural network Yan Xu
5.3K views68 Folien
Introduction to CNN von
Introduction to CNNIntroduction to CNN
Introduction to CNNShuai Zhang
8.8K views18 Folien
Machine Learning - Convolutional Neural Network von
Machine Learning - Convolutional Neural NetworkMachine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkRichard Kuo
1K views36 Folien
Overview of Convolutional Neural Networks von
Overview of Convolutional Neural NetworksOverview of Convolutional Neural Networks
Overview of Convolutional Neural Networksananth
7.7K views43 Folien

Was ist angesagt?(20)

Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S... von Simplilearn
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
Simplilearn13.6K views
Convolutional neural network von Yan Xu
Convolutional neural network Convolutional neural network
Convolutional neural network
Yan Xu5.3K views
Introduction to CNN von Shuai Zhang
Introduction to CNNIntroduction to CNN
Introduction to CNN
Shuai Zhang8.8K views
Machine Learning - Convolutional Neural Network von Richard Kuo
Machine Learning - Convolutional Neural NetworkMachine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural Network
Richard Kuo1K views
Overview of Convolutional Neural Networks von ananth
Overview of Convolutional Neural NetworksOverview of Convolutional Neural Networks
Overview of Convolutional Neural Networks
ananth7.7K views
Convolutional Neural Network Models - Deep Learning von Benha University
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep Learning
Benha University12.6K views
Deep Learning - Overview of my work II von Benha University
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work II
Benha University15.6K views
CNN and its applications by ketaki von Ketaki Patwari
CNN and its applications by ketakiCNN and its applications by ketaki
CNN and its applications by ketaki
Ketaki Patwari1.7K views
Introduction to Recurrent Neural Network von Knoldus Inc.
Introduction to Recurrent Neural NetworkIntroduction to Recurrent Neural Network
Introduction to Recurrent Neural Network
Knoldus Inc.1.9K views
Deep Belief nets von butest
Deep Belief netsDeep Belief nets
Deep Belief nets
butest4.2K views
ShuffleNet - PR054 von Jinwon Lee
ShuffleNet - PR054ShuffleNet - PR054
ShuffleNet - PR054
Jinwon Lee2.6K views
Deep Learning - Convolutional Neural Networks von Christian Perone
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural Networks
Christian Perone71.4K views
convolutional neural network (CNN, or ConvNet) von RakeshSaran5
convolutional neural network (CNN, or ConvNet)convolutional neural network (CNN, or ConvNet)
convolutional neural network (CNN, or ConvNet)
RakeshSaran5120 views
What Is A Neural Network? | How Deep Neural Networks Work | Neural Network Tu... von Simplilearn
What Is A Neural Network? | How Deep Neural Networks Work | Neural Network Tu...What Is A Neural Network? | How Deep Neural Networks Work | Neural Network Tu...
What Is A Neural Network? | How Deep Neural Networks Work | Neural Network Tu...
Simplilearn2K views

Similar a Convolutional neural network

DL.pdf von
DL.pdfDL.pdf
DL.pdfssuserd23711
17 views23 Folien
Deep Learning von
Deep LearningDeep Learning
Deep LearningPierre de Lacaze
1.3K views62 Folien
Automatic Attendace using convolutional neural network Face Recognition von
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognitionvatsal199567
532 views57 Folien
Deep learning (2) von
Deep learning (2)Deep learning (2)
Deep learning (2)Muhanad Al-khalisy
170 views35 Folien
CNN_AH.pptx von
CNN_AH.pptxCNN_AH.pptx
CNN_AH.pptxssuserc755f1
2 views36 Folien
CNN_AH.pptx von
CNN_AH.pptxCNN_AH.pptx
CNN_AH.pptxssuserc755f1
4 views38 Folien

Similar a Convolutional neural network(20)

Automatic Attendace using convolutional neural network Face Recognition von vatsal199567
Automatic Attendace using convolutional neural network Face RecognitionAutomatic Attendace using convolutional neural network Face Recognition
Automatic Attendace using convolutional neural network Face Recognition
vatsal199567532 views
intro-to-cnn-April_2020.pptx von ssuser3aa461
intro-to-cnn-April_2020.pptxintro-to-cnn-April_2020.pptx
intro-to-cnn-April_2020.pptx
ssuser3aa46114 views
Deep Learning Training at Intel von Atul Vaish
Deep Learning Training at IntelDeep Learning Training at Intel
Deep Learning Training at Intel
Atul Vaish191 views
Deep learning von Rajgupta258
Deep learning Deep learning
Deep learning
Rajgupta2581.6K views
Convolutional Neural Networks: Part 1 von ananth
Convolutional Neural Networks: Part 1Convolutional Neural Networks: Part 1
Convolutional Neural Networks: Part 1
ananth1.5K views
Convolutional Neural Networks von milad abbasi
Convolutional Neural NetworksConvolutional Neural Networks
Convolutional Neural Networks
milad abbasi318 views
Artificial Intelligence, Machine Learning and Deep Learning von Sujit Pal
Artificial Intelligence, Machine Learning and Deep LearningArtificial Intelligence, Machine Learning and Deep Learning
Artificial Intelligence, Machine Learning and Deep Learning
Sujit Pal22.9K views
Digit recognition von btandale
Digit recognitionDigit recognition
Digit recognition
btandale4.3K views

Último

SPICE PARK DEC2023 (6,625 SPICE Models) von
SPICE PARK DEC2023 (6,625 SPICE Models) SPICE PARK DEC2023 (6,625 SPICE Models)
SPICE PARK DEC2023 (6,625 SPICE Models) Tsuyoshi Horigome
24 views218 Folien
DevOps-ITverse-2023-IIT-DU.pptx von
DevOps-ITverse-2023-IIT-DU.pptxDevOps-ITverse-2023-IIT-DU.pptx
DevOps-ITverse-2023-IIT-DU.pptxAnowar Hossain
9 views45 Folien
Pull down shoulder press final report docx (1).pdf von
Pull down shoulder press final report docx (1).pdfPull down shoulder press final report docx (1).pdf
Pull down shoulder press final report docx (1).pdfComsat Universal Islamabad Wah Campus
13 views25 Folien
SNMPx von
SNMPxSNMPx
SNMPxAmatullahbutt
17 views12 Folien
NEW SUPPLIERS SUPPLIES (copie).pdf von
NEW SUPPLIERS SUPPLIES (copie).pdfNEW SUPPLIERS SUPPLIES (copie).pdf
NEW SUPPLIERS SUPPLIES (copie).pdfgeorgesradjou
15 views30 Folien

Último(20)

NEW SUPPLIERS SUPPLIES (copie).pdf von georgesradjou
NEW SUPPLIERS SUPPLIES (copie).pdfNEW SUPPLIERS SUPPLIES (copie).pdf
NEW SUPPLIERS SUPPLIES (copie).pdf
georgesradjou15 views
Update 42 models(Diode/General ) in SPICE PARK(DEC2023) von Tsuyoshi Horigome
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Generative AI Models & Their Applications von SN
Generative AI Models & Their ApplicationsGenerative AI Models & Their Applications
Generative AI Models & Their Applications
SN8 views
Control Systems Feedback.pdf von LGGaming5
Control Systems Feedback.pdfControl Systems Feedback.pdf
Control Systems Feedback.pdf
LGGaming56 views
Effect of deep chemical mixing columns on properties of surrounding soft clay... von AltinKaradagli
Effect of deep chemical mixing columns on properties of surrounding soft clay...Effect of deep chemical mixing columns on properties of surrounding soft clay...
Effect of deep chemical mixing columns on properties of surrounding soft clay...
AltinKaradagli6 views
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... von Anowar Hossain
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
Anowar Hossain13 views
SUMIT SQL PROJECT SUPERSTORE 1.pptx von Sumit Jadhav
SUMIT SQL PROJECT SUPERSTORE 1.pptxSUMIT SQL PROJECT SUPERSTORE 1.pptx
SUMIT SQL PROJECT SUPERSTORE 1.pptx
Sumit Jadhav 13 views

Convolutional neural network

  • 1. Convolutional Neural Network • A child recognize animal visiting a zoo or seeing animal picture. • Computers ‘see’ in a different way than we do. Their world consists of only numbers. Every image can be represented as 2-dimensional arrays of numbers, known as pixels. • But the fact that they perceive images in a different way, doesn’t mean we can’t train them to recognize patterns, like we do. We just have to think of what an image is in a different way.
  • 2. Convolutional Neural Network (Cont…) • Convolutional Neural Network (CNN) specific type of Artificial Neural Network . • Convolutional Neural Networks are inspired by the brain. • Research in the 1950s and 1960s by D.H Hubel and T.N Wiesel on the brain of mammals suggested a new model for how mammals perceive the world visually.
  • 3. Deep Learning Basics OUTPUTS HIDDEN NODES CAT DOG • Deep Learning – is a set of machine learning algorithms based on multi-layer networks INPUTS
  • 4. Deep Learning Basics CAT DOG • Deep Learning – is a set of machine learning algorithms based on multi-layer networks 4 Training
  • 5. Deep Learning Basics CAT DOG • Deep Learning – is a set of machine learning algorithms based on multi-layer networks 5
  • 6. Deep Learning Basics CAT DOG Deep Learning – is a set of machine learning algorithms based on multi-layer networks
  • 7. Architecture • Convolutional Neural Networks have a different architecture than regular Neural Networks. Regular Neural Networks transform an input by putting it through a series of hidden layers. • Every layer is made up of a set of neurons, where each layer is fully connected to all neurons in the layer before. Finally, there is a last fully-connected layer —the output layer —that represent the predictions.
  • 8. 8 What is Convolutional NN ? CNN - multi-layer NN architecture – Convolutional + Non-Linear Layer – Sub-sampling Layer – Convolutional +Non-L inear Layer – Fully connected layers  Supervised Feature Extraction Classi- fication
  • 9. 9 What is Convolutional NN ? 2x2 Convolution + NL Sub-sampling Convolution + NL
  • 10. Architecture(Cont..) • The layers are organised in 3 dimensions: width, height and depth.
  • 11. Architecture(Cont..) CNNs have two components • The Hidden layers/Feature extraction part: 1. Convolutions 2. Poolingoperations ( which the features are detected) • The Classification part: 1. Classifier 2. Probability is assigned for the object on the image.
  • 12. Architecture(Cont..) • Suppose INPUT [32x32x3] ,where width 32, height 32, and with three color channels R,G,B. • CONV layer may produce [32x32x12] if filters is 12.
  • 13. Architecture(Cont..) • RELU layer will apply an elementwise activation function, such as the (max(0,x)). • POOL layer will perform a downsampling operation along the spatial dimensions (width, height), resulting in volume such as [16x16x12]. • FC (i.e. fully-connected) layer will compute the class scores.
  • 14. Feature Extraction • Convolution is one of the main building blocks of a CNN. • At every location, a matrix multiplication is performed and sums the result onto the feature map. • The area of our filter is also called the receptive field, named after the neuron cells! The size of this filter is 3x3.
  • 15. Feature Extraction(Cont…) Need for receptive field • For example, suppose that the input volume has size [32*32*3].So our connection would be 32*32*3 ,which is impractical. If the receptive field (or the filter size) is 5*5, then each neuron in the Conv Layer will have weights to a [5x5x3] region in the input volume, for a total of 5*5*3 = 75 weights (and +1 bias parameter). Notice that the extent of the connectivity along the depth axis must be 3, since this is the depth of the input volume.
  • 16. Feature Extraction(Cont…) • Just like any other Neural Network, we use an activation function to make our output non- linear. This could be the ReLU activation function. • Stride is the size of the step the convolution filter moves each time. A stride size is usually 1, meaning the filter slides pixel by pixel. • This shows stride size 1 in action.
  • 17. Feature Extraction(Cont…) • Because the size of the feature map is always smaller than the input, we have to do something to prevent our feature map from shrinking. This is where we use padding. • Pooling layer reduce the dimensionality of parameters and computation in the network. • The most frequent type of pooling is max pooling, which takes the maximum value in each window.
  • 19. Classification • Classification part consists fully connected layers. • It accept 1 Dimensional data. • To convert our 3D data to 1D, function flatten in Python.
  • 20. CNN applications CNN is a big hammer Plenty low hanging fruits You need just a right nail!
  • 22. Conv NN: Scene parsing
  • 23. CNN: indoor semantic labeling RGBD
  • 24. Conv NN: Action Detection
  • 25. Conv NN: Image Processing
  • 26. Summary • CNNs are especially useful for image classification and recognition. • The main technique in CNNs is convolution. • A filter slides over the input and merges the input value + the filter value on the feature map. • Feed new images to our CNN so it can give a probability for the object it thinks it sees or describe an image with text.