Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to...

27
Want to get started with deep learning? Prototyping a deep learning image classifier Thomas Ellebæk, Ferring Pharmaceuticals, ML02 PhUSE EU Connect 2018, November 5th 2018

Transcript of Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to...

Page 1: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Want to get started with deep learning?

Prototyping a deep learning image classifier

Thomas Ellebæk, Ferring Pharmaceuticals,

ML02 PhUSE EU Connect 2018,

November 5th 2018

Page 2: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Pattern detection

Page 3: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Classification

{Alligator, Beaver, Cat, Dog, …, Zebra}

Page 4: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Classification

{Alligator, Beaver, Cat, Dog, …, Zebra}

0.01 0.00 0.87 0.07 … 0.00

Page 5: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Deep learning applicationsTeradata report based on survey conducted July 2017:

”80% report that some form of AI is already in production in their organization”(EB9867_State_of_Artificial_Intelligence_for_the_Enterprises.pdf)

Page 6: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Deep learning applicationsTeradata report based on survey conducted July 2017:

”80% report that some form of AI is already in production in their organization”(EB9867_State_of_Artificial_Intelligence_for_the_Enterprises.pdf)

www.slideshare.net/AIFrontiers/jeff-dean-trends-and-developments-in-deep-learning-research/8

Page 7: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Deep learning breakthrough

ImageNet results (top-5)

Err

or

rate

AlexNet

16.4

Page 8: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Feedforward Neural Network

Page 9: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Feedforward Neural Network

Shoe size

Hair length

Male

Female

Page 10: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Feedforward Neural Network

Neuron output:

Activation function:(rectified linear unit – ReLU)

Shoe size and

hair lengthGender

Page 11: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Feedforward Neural Network

Neuron output:

Activation function:(rectified linear unit – ReLU)

Shoe size and

hair lengthGender

Page 12: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Feedforward Neural Network

Neuron output:

Activation function:(rectified linear unit – ReLU)

Shoe size and

hair lengthGender

Page 13: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Feedforward Neural Network

Neuron output:

Activation function:(rectified linear unit – ReLU)

Loss function:(categorical cross entropy)

Shoe size and

hair lengthGender

Page 14: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Convolutional Neural Network

https://se.mathworks.com/discovery/convolutional-neural-network.html

Page 15: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Convolution

2D convolution

a b c d

e f g h

i j k l

m n o p

Input

Kernel

… …

… … …

… … …

e

Page 16: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Convolution

2D convolution 2D cross-correlation

a b c d

e f g h

i j k l

m n o p

Input

Kernel

… …

… … …

… … …

e … …

… … …

… … …

e

Page 17: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Max pooling

1 4 9 16

2 3 8 15

5 6 7 14

10 11 12 13

4 16

11 14

Input

(2,2) max pooling

Page 18: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

CASE: Cell Counter

Page 19: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Computing environment

Page 20: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

1 2 3 4 >=5

1 0 0 0 79 0

2 0 0 0 96 0

3 0 0 0 56 0

4 0 0 0 157 0

>=5 0 0 0 52 0

Predicted labels

Act

ual

lab

els

Fitting AlexNet-type model

Validation accuracy: 35.7%

Page 21: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Final model

3 convolutional layers and

2 dense fully connected

layers

Page 22: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Final model

3 convolutional layers and

2 dense fully connected

layers

Page 23: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Error analysis

2 correct predicted examples

5 wrongly predicted examples

Test accuracy: 55.9% >> 35.7%

Page 24: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Live demo!

Page 25: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Takeaways and suggested learning

https://machinelearningmastery.com/

Page 26: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Takeaways and suggested learning

‣ Technology is ready

‣ Data is the most important asset

https://machinelearningmastery.com/

Page 27: Want to get started with deep learning? Prototyping a deep learning … · 2018-11-17 · Want to get started with deep learning? Prototyping a deep learning image classifier Thomas

Change size and add bullet by using the icon

Takeaways and suggested learning

‣ Technology is ready

‣ Data is the most important asset

https://machinelearningmastery.com/

Questions?