Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training...

20
Customizing and Assessing Deep Learning for Specific Tasks Amir Tavanaei, Matthew Barker, William Brenneman Data Science and AI Group Fall Technical Conference (October 2018)

Transcript of Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training...

Page 1: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Customizing and Assessing Deep Learning for Specific Tasks

Amir Tavanaei, Matthew Barker, William Brenneman

Data Science and AI Group

Fall Technical Conference (October 2018)

Page 2: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

About Me

• Amirhossein Tavanaei (Amir)• R&D Data Scientist at Procter and Gamble,

• Dept. of Data Science and Artificial Intelligence.

• Education• Computer Science, PhD

• AI, Machine Learning, Deep Learning

• Bio-inspired Spiking Networks

• Hobby• Hiking

• Movies

10/8/2018 2

Page 3: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Agenda

• Introduction to neural networks and deep learning

• Deep learning architectures for different problems

• Data variations and requirements

• Deep learning customization

• Recent examples

• Summary

10/8/2018 3

Page 4: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Neural Networks and Deep Learning

10/8/2018 4

Page 5: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Neural Networks and Deep Learning

Bastos et al, Neuron, 2012

10/8/2018 5

Page 6: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

History, Big Data, GPU, and Break ThroughA

ccu

racy

Rat

e

# Training Samples

Traditional ML Deep NN70

75

80

85

90

95

100

2010 2011 2012 2013 2014 2015 2016 2017

Cla

ssif

icat

ion

Acc

ura

cy

ILSVRC

Shallow/Stat. Deep

10/8/2018 6

Page 7: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Machine Learning Models

BayesianLogistic Reg.

SVMHMM

EMMLP (NN)

MDA…

Training Dataset

# Adaptive Parameters << # Training SamplesLet’s say: *10

Thanks to Big Data for managing and providing enough data for training deep neural networks with many parameters. Enough data points make the NN enable to handle saddle areas and local minima.Thanks to GPU for speeding up the massive computations.

NNs are easily stuck in local minima

Deep NNs have many parameters to train

10/8/2018 7

Page 8: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

DS/AI Project Management

Project Management

Problem

Model

Time

Performance

Constraints

Data

What is the PROBLEM?

Do I have enough Data to train my MODEL

Which MODEL is appropriate?

What do I EXPECT from the final MODEL

10/8/2018 8

Page 9: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Data/Model Variations

DataStructured Data

Image

Voice

Video

Experimental

Info. Record

Clinical

Sensory Signals

Security and Data Generation

...

TypeN-D

2D Pixels

1D Frequency (Sequential)

2D Pixels (Sequential)

Multimodal

Multimodal (Sequential)

1D/2D/3D Complex structure

N-D Numerical (Sequential)

Max-Min Problem

...

ModelFully Connected NN

CNN

RNN, LSTM

Convolutional LSTM/RNN

Multimodal DBN

Multimodal Pred. Coding

3D CNN, RNN, Multimodal

RNN, Stacked Autoencoder

GANs, Generative NNs

...

10/8/2018 9

Page 10: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Common Mistakes in Applying ML/DL

You won’t have a good AI model if you do:

• not aware of data distribution, skewness, balance/imbalance, …

• not have enough and good (clean) data for training

• not choose proper ML model/structure

• not have a strategy to build your model (e.g. # of layers for NN)

• use one algorithm for everything

• not consider generalization and regularization

• not consider required equipment

• not know programing and the theory behind the ML model

10/8/2018 10

Page 11: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Convolutional Neural Network (CNN)

Feature Extraction Classifier

LeNet: Lecun et. al. Tavanaei et. al. (2016) Lee et. al. (2009)

10/8/2018 11

Page 12: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

CNN Example: Bioinformatics and Biomedicine

Do not ignore the Preprocessing Phase

Tavanaei et. al. (2017)

10/8/2018 12

Detecting Tumor Suppressor Genes and Onco-Genes

Page 13: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

CNN Example: P&G Skin Advisor

10/8/2018 13

THE SCIENCE BEHINDOLAY SKIN ADVISORskinadvisor.olay.com

Image Processing

Cloud Computing

Problem Detection

Deep Learning

Page 14: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

CNN Example: P&G Skin Advisor

10/8/2018 14

Predicted Age

Raw Image Pixels

• An input image was forward propagated through the model to obtain a predicted age.

Page 15: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

P&G Skin Advisor Demo

10/8/2018 15

• Age is predicted• A heat map was created.• The heat map localizes pixel

differences of a subject’s image relative to younger than their predicted age

Page 16: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Recurrent Neural Network (RNN)

Recurrent Neural Network

Long Short Term Memory (LSTM)

Sequential Data, e.g. Speech

10/8/2018 16

Memory gate

Learn to forget

Page 17: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

RNN/LSTM Example: Influenza Count Prediction

Venna, Tavanaei, et. al. (2017)

10/8/2018 17

• Influenza peak prediction

• Emergency management

• Vaccination• Controlling the

influenza trend

Page 18: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Generative Adversarial Network (GAN)

Karras et. al. (2018), NVIDIA Research

G: GeneratorD: Discriminator

10/8/2018 18

• Virtual image generation• Security• Data/Formula generation

(e.g. Medicine discovery)• Automatic data

augmentation• etc.

Page 19: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Project Management

Problem

Model

Time

Performance

Constraints

Data

Summary

What do we want to do?Do I have enough Data to train my deep learning model?Which type of data do we have?Can I acquire or augment the data?

Does deep learning is a proper solution?If yes, which architecture?How large the deep learning model can

be?Is it a real time application?What are the limitations?How much performance do we expect?

10/8/2018 19

Page 20: Customizing and Assessing Deep Learning for Specific Tasks · HMM EM MLP (NN) MDA … Training Dataset # Adaptive Parameters

Question?

Thank you!

Contact Info:

[email protected]

10/8/2018 20

Deep Learning is not a hammerIt is a HUGE toolbox