SlideShare a Scribd company logo
1 of 9
CNN COMPONENTS
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 1
CNN Filter Terminology
Convolution filter strides all over the image which convolve the filter value with the over the pixels
of the image.
Stride:
• how many units you “shift” the filter (1/2/3/etc)
Padding:
• makes feature map same size as image
Kernel size:
• the dimensions of the filter (1x1, 3x3, 5x5, etc)
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 2
CNNs: Max Pooling Example
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 3
Convolutional kernel Rectified linear unit,ReLU
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 4
Pooling layer
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 5
Pooling
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 6
Components of a CNN
1) Specify the input layer
2) Add a convolution to create feature maps
3) Perform RELU on the feature maps
4) repeat 1) and 2)
5) add a FC (fully connected layer)
6) connect FC to output layer via softmax
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 7
CNN pseudocode
• Specify an optimiser
• specify a cost function
• specify a learning rate
• Specify desired metrics (accuracy/precision/etc)
• specify # of batch runs in a training epoch
• For each epoch: For each batch:
• Extract the batch data
• Run the optimiser + cross-entropy operations
• Add to the average cost
• Calculate the current test accuracy
• Print out some results
• Calculate the final test accuracy and print
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 8
CNN in Python/Keras (fragment)
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Flatten, Activation from
keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.optimizers import Adadelta
input_shape = (3, 32, 32) nb_classes = 10 model = Sequential()
model.add(Conv2D(32, (3, 3), padding='same’, input_shape=input_shape))
model.add(Activation('relu')) model.add(Conv2D(32, (3, 3)))
model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Dropout(0.25)
3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 9

More Related Content

Similar to CONVOLUTIONAL NEURAL NETWORK COMPONENTS.pptx

Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...
Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...
Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...
Fabien Léonard
 

Similar to CONVOLUTIONAL NEURAL NETWORK COMPONENTS.pptx (20)

Structural and hardware complexities of
Structural and hardware complexities ofStructural and hardware complexities of
Structural and hardware complexities of
 
Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...
Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...
Laboratory X-ray CT Applied to the Characterisation of Tubular Composite Spec...
 
Basics of ct lecture 2
Basics of ct  lecture 2Basics of ct  lecture 2
Basics of ct lecture 2
 
IRJET-ASIC Implementation for SOBEL Accelerator
IRJET-ASIC Implementation for SOBEL AcceleratorIRJET-ASIC Implementation for SOBEL Accelerator
IRJET-ASIC Implementation for SOBEL Accelerator
 
ASIC Implementation for SOBEL Accelerator
ASIC Implementation for SOBEL AcceleratorASIC Implementation for SOBEL Accelerator
ASIC Implementation for SOBEL Accelerator
 
ITK Tutorial Presentation Slides-950
ITK Tutorial Presentation Slides-950ITK Tutorial Presentation Slides-950
ITK Tutorial Presentation Slides-950
 
Gg3112001206
Gg3112001206Gg3112001206
Gg3112001206
 
Vibration Isolation of an Air Compressor by using Sandwich Mount Isolators
Vibration Isolation of an Air Compressor by using Sandwich Mount IsolatorsVibration Isolation of an Air Compressor by using Sandwich Mount Isolators
Vibration Isolation of an Air Compressor by using Sandwich Mount Isolators
 
B.tech_project_ppt.pptx
B.tech_project_ppt.pptxB.tech_project_ppt.pptx
B.tech_project_ppt.pptx
 
Review of Diverse Techniques Used for Effective Fractal Image Compression
Review of Diverse Techniques Used for Effective Fractal Image CompressionReview of Diverse Techniques Used for Effective Fractal Image Compression
Review of Diverse Techniques Used for Effective Fractal Image Compression
 
Cb34474478
Cb34474478Cb34474478
Cb34474478
 
IRJET- HMC Column Structure Design Under Natural & Pre-Stress Vibration C...
IRJET-  	  HMC Column Structure Design Under Natural & Pre-Stress Vibration C...IRJET-  	  HMC Column Structure Design Under Natural & Pre-Stress Vibration C...
IRJET- HMC Column Structure Design Under Natural & Pre-Stress Vibration C...
 
Comparative Analysis of Natural Frequency of Transverse Vibration of a Cantil...
Comparative Analysis of Natural Frequency of Transverse Vibration of a Cantil...Comparative Analysis of Natural Frequency of Transverse Vibration of a Cantil...
Comparative Analysis of Natural Frequency of Transverse Vibration of a Cantil...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
A TRIPLE RECTANGULAR-SLOTTED MICROSTRIP PATCH ANTENNA FOR WLAN & WIMAX APPLIC...
 

More from KerenEvangelineI

More from KerenEvangelineI (20)

Ultrasound imaging in Medicine field.pptx
Ultrasound imaging in Medicine field.pptxUltrasound imaging in Medicine field.pptx
Ultrasound imaging in Medicine field.pptx
 
Physics of Thermography - Infrared radiation.pptx
Physics of Thermography - Infrared radiation.pptxPhysics of Thermography - Infrared radiation.pptx
Physics of Thermography - Infrared radiation.pptx
 
Medical Thermography and its applications.pptx
Medical Thermography and its applications.pptxMedical Thermography and its applications.pptx
Medical Thermography and its applications.pptx
 
Radio-isotopes in Medical Diagnosis.pptx
Radio-isotopes in Medical Diagnosis.pptxRadio-isotopes in Medical Diagnosis.pptx
Radio-isotopes in Medical Diagnosis.pptx
 
Principles of Magnetic Resonance Imaging.pptx
Principles of Magnetic Resonance Imaging.pptxPrinciples of Magnetic Resonance Imaging.pptx
Principles of Magnetic Resonance Imaging.pptx
 
APPLICATIONS OF DL IN BRAIN SCAN USING MRI.pptx
APPLICATIONS OF DL IN BRAIN SCAN USING MRI.pptxAPPLICATIONS OF DL IN BRAIN SCAN USING MRI.pptx
APPLICATIONS OF DL IN BRAIN SCAN USING MRI.pptx
 
APPLICATIONS OF DEEP LEARNING IN MRI SCAN.pptx
APPLICATIONS OF DEEP LEARNING IN MRI SCAN.pptxAPPLICATIONS OF DEEP LEARNING IN MRI SCAN.pptx
APPLICATIONS OF DEEP LEARNING IN MRI SCAN.pptx
 
Types of Activation functions in DL.pptx
Types of Activation functions in DL.pptxTypes of Activation functions in DL.pptx
Types of Activation functions in DL.pptx
 
Working Principle of Deep Learning Technique.pptx
Working Principle of Deep Learning Technique.pptxWorking Principle of Deep Learning Technique.pptx
Working Principle of Deep Learning Technique.pptx
 
Introduction to Deep Learning Technique.pptx
Introduction to Deep Learning Technique.pptxIntroduction to Deep Learning Technique.pptx
Introduction to Deep Learning Technique.pptx
 
Deep Learning and Recent Applications.pptx
Deep Learning and Recent Applications.pptxDeep Learning and Recent Applications.pptx
Deep Learning and Recent Applications.pptx
 
FEATURE SELECTION AND FEATURE REDUCTION.pptx
FEATURE SELECTION AND FEATURE REDUCTION.pptxFEATURE SELECTION AND FEATURE REDUCTION.pptx
FEATURE SELECTION AND FEATURE REDUCTION.pptx
 
CURVLET TRANSFORM USES IN DAILY LIFE.pptx
CURVLET TRANSFORM USES IN DAILY LIFE.pptxCURVLET TRANSFORM USES IN DAILY LIFE.pptx
CURVLET TRANSFORM USES IN DAILY LIFE.pptx
 
Edge detection Contourlet transform techniques.pptx
Edge detection Contourlet transform techniques.pptxEdge detection Contourlet transform techniques.pptx
Edge detection Contourlet transform techniques.pptx
 
Wavelet feature extraction technique.pptx
Wavelet feature extraction technique.pptxWavelet feature extraction technique.pptx
Wavelet feature extraction technique.pptx
 
Features of Gray level run length matrix.pptx
Features of Gray level run length matrix.pptxFeatures of Gray level run length matrix.pptx
Features of Gray level run length matrix.pptx
 
Features of GLCM extracted using GLCM .pptx
Features of GLCM extracted using GLCM .pptxFeatures of GLCM extracted using GLCM .pptx
Features of GLCM extracted using GLCM .pptx
 
Feature Extraction in image processing- Shape.pptx
Feature Extraction in image processing- Shape.pptxFeature Extraction in image processing- Shape.pptx
Feature Extraction in image processing- Shape.pptx
 
List of Shape features available in Image Processing
List of Shape features available in Image ProcessingList of Shape features available in Image Processing
List of Shape features available in Image Processing
 
Feature extraction.pptx
Feature extraction.pptxFeature extraction.pptx
Feature extraction.pptx
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 

CONVOLUTIONAL NEURAL NETWORK COMPONENTS.pptx

  • 1. CNN COMPONENTS 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 1
  • 2. CNN Filter Terminology Convolution filter strides all over the image which convolve the filter value with the over the pixels of the image. Stride: • how many units you “shift” the filter (1/2/3/etc) Padding: • makes feature map same size as image Kernel size: • the dimensions of the filter (1x1, 3x3, 5x5, etc) 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 2
  • 3. CNNs: Max Pooling Example 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 3
  • 4. Convolutional kernel Rectified linear unit,ReLU 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 4
  • 5. Pooling layer 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 5
  • 6. Pooling 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 6
  • 7. Components of a CNN 1) Specify the input layer 2) Add a convolution to create feature maps 3) Perform RELU on the feature maps 4) repeat 1) and 2) 5) add a FC (fully connected layer) 6) connect FC to output layer via softmax 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 7
  • 8. CNN pseudocode • Specify an optimiser • specify a cost function • specify a learning rate • Specify desired metrics (accuracy/precision/etc) • specify # of batch runs in a training epoch • For each epoch: For each batch: • Extract the batch data • Run the optimiser + cross-entropy operations • Add to the average cost • Calculate the current test accuracy • Print out some results • Calculate the final test accuracy and print 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 8
  • 9. CNN in Python/Keras (fragment) from keras.models import Sequential from keras.layers.core import Dense, Dropout, Flatten, Activation from keras.layers.convolutional import Conv2D, MaxPooling2D from keras.optimizers import Adadelta input_shape = (3, 32, 32) nb_classes = 10 model = Sequential() model.add(Conv2D(32, (3, 3), padding='same’, input_shape=input_shape)) model.add(Activation('relu')) model.add(Conv2D(32, (3, 3))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25) 3/8/2024 Department of Biomedical Engineering, SRMIST, KTR 9