Slide 1

Slide 1 text

Computer Vision - CNN for Image Classification by Wale Ayandiran Presented at AI Wales meetup, Tramshed Tech, Cardiff. 08-06-2022

Slide 2

Slide 2 text

We might start by identifying certain pictures of animals ourselves. Shall we? How does computer identify images with their labels?

Slide 3

Slide 3 text

Can you tell these wild cats aparts?

Slide 4

Slide 4 text

Leopard Cheetah Jaguar Tiger Image credit: Google

Slide 5

Slide 5 text

Machine Learning

Slide 6

Slide 6 text

Lion Cat Wolf Dog Fox

Slide 7

Slide 7 text

Cat Lion Dog Arctic Fox Wolf Image credit: Google

Slide 8

Slide 8 text

How are we as humans able to differentiate things easily?

Slide 9

Slide 9 text

Recognizing Patterns How are we as humans able to differentiate things easily?

Slide 10

Slide 10 text

Credit: MIT Feature Detection Low level feature detection to high level feature detection

Slide 11

Slide 11 text

What do computers see?

Slide 12

Slide 12 text

Images are matrix of numbers

Slide 13

Slide 13 text

Images are matrix of numbers What computers see

Slide 14

Slide 14 text

Images are matrix of numbers What computers see Credit: https://openframeworks.cc/ofBook/chapters/image_processing_computer_vision.html

Slide 15

Slide 15 text

Credit: https://www.keithbcarter.com/think-differently/how-a-machine-sees Computer detects features of an image as matrix of numbers.

Slide 16

Slide 16 text

How do we make computers identify images? Neural Networks. Neural networks are computing systems with interconnected nodes that work much like neurons in the human brain. Using algorithms, they can recognize hidden patterns and correlations in raw data, cluster and classify it, and – over time – continuously learn and improve. Credit: https://www.sas.com/en_us/insights/analytics/neural-networks.html

Slide 17

Slide 17 text

A simple neural network includes an input layer, an output (or target) layer and, in between, a hidden layer. The layers are connected via nodes, and these connections form a “network” – the neural network – of interconnected nodes. How Neural Network Works Credit: https://www.sas.com/en_us/insights/analytics/neural-networks.html

Slide 18

Slide 18 text

● Artificial Neural Network (ANN) ● Convolutional Neural Network (CNN) ● Recurrent Neural Network (RNN) 3 Popular Neural Networks

Slide 19

Slide 19 text

Convolutional Neural Networks

Slide 20

Slide 20 text

Learning Visual Features ➔ Filter extraction Applying filters and generating smaller pieces of image from the original image. ➔ Features Mapping Using the filters extracted to create a feature map of the image.

Slide 21

Slide 21 text

Image credit: MIT

Slide 22

Slide 22 text

Tiger Tiger’s eyes ? = Y Tiger’s nose ? = Y Tiger’s mouth/whiskers ? = Y Tiger’s paws ? = Y Tiger’s tail ? = Y Tiger’s head ? = Y Tiger’s body ? = Y Is it a Tiger ? = Y Image credit: Google

Slide 23

Slide 23 text

Main parts of a CNN Three main parts to a CNN ➔ Convolution Application of filters to generate feature maps ➔ Non-linearity (ReLU) Replacing negative values with zero (0) often ReLU (Rectified Linear Unit) ➔ Pooling Reduces dimensions and distortions, making the model tolerant towards image variations.

Slide 24

Slide 24 text

Feature Extraction Classification Image credit: codebasics

Slide 25

Slide 25 text

Some limitations of CNN in Image classification ❏ Requires large datasets to train ❏ Can take a lot of time to train if there are several layers ❏ Can be computing power intensive.

Slide 26

Slide 26 text

A CNN model to identify traffic signs https:/ /bit.ly/traffic_cnn

Slide 27

Slide 27 text

Thank You! Find slide and code link below Demo link: https:/ /bit.ly/traffic_cnn Github https:/ /github.com/waleCloud/solid-fortnight

Slide 28

Slide 28 text

Wale Ayandiran. Software and AI Engineer. Find me at https://walecloud.me Twitter @walecloud