Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine...

29
1 © 2015 The MathWorks, Inc. Machine Learning and Deep Learning Abhijit Bhattacharjee

Transcript of Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine...

Page 1: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

1© 2015 The MathWorks, Inc.

Machine Learning and

Deep Learning

Abhijit Bhattacharjee

Page 2: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

2

Deep Learning is Everywhere

&

MATLAB Accelerates Deep Learning

Page 3: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

3

Deep Learning is Everywhere

Computer Vision

Pedestrian and traffic sign detection

Landmark identification

Scene recognition

Medical diagnosis and drug discovery

Text and Signal Processing

Speech Recognition

Speech & Text Translation

Robotics & Controlsand many more…

Page 4: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

4

What is Deep Learning?

Page 5: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

5

http://googleresearch.blogspot.com/2014/11/a-picture-is-worth-thousand-coherent.html

Deep Learning is a Subset of Machine Learning

E.g. Google Captioning Project

Machine learning is the science of getting computers to act without being explicitly programmed.

Deep learning algorithms can learn tasks directly from data, eliminating the need for manual feature selection.

Page 6: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

6

MODEL

PREDICTION

Shallow Machine Learning Workflow

Train: Iterate until you find the best model

Predict: Integrate trained models into applications

MODELSUPERVISED

LEARNING

CLASSIFICATION

REGRESSION

PREPROCESS

DATA

Contrast

Adjustment

Feature

ExtractionCropping

Feature

Analysis

LOAD

DATAPREPROCESS

DATA

Contrast

Adjustment

Feature

ExtractionCropping

Feature

Analysis

NEW

DATA

Page 7: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

7

Shallow vs Deep Learning

Deep learning performs end-to-end learning by learning features, representations and tasks directly

from images, text and sound

Deep learning algorithms also scale with data – shallow learning convergesShallow Machine Learning

Deep Learning

Page 8: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

8

Shallow vs Deep Learning

Page 9: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

9

What problem does Deep Learning solve?

Data

Tasks

Metrics

1.2 million images

Object recognition

Top-5 error rate

Image credit: http://image-net.org/synset

ImageNet Large Scale Visual Recognition Challenge (ILSVRC)

1000 categories

Localization, and more

Page 10: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

10

RESULTS: Unparalleled accuracy

in image recognition

DATA: Enormous labeled data sets available

– e.g. ImageNet , PASCAL VoC , Kaggle

COMPUTING POWER: GPUs enable training on

massive amounts of data

BOOTSTRAPPING: Start prototyping with the best

available solutions

Why is Deep Learning so popular?

Page 11: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

11

Three Reasons to Use MATLAB for Deep Learning

Easily manipulate big data and networks

Use MATLAB to learn about the field

Unify multiple domains in a single workflow

ACCESS

LEARN

INTEGRATE

Page 12: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

12

Three Reasons to Use MATLAB for Deep Learning

Easily manipulate big data and networks

Use MATLAB to learn about the field

Unify multiple domains in a single workflow

ACCESS

LEARN

INTEGRATE

Page 13: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

13

Object Recognition using Deep Learning

Training

(using GPU)Millions of images from 1000 different categories

Prediction Real-time object recognition using a webcam connected to a

laptop

ACCESS

LEARN

INTEGRATE

Page 14: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

14

Handle Large Image Sets Easily

Also datastore for other collections of

data

ACCESS

LEARN

INTEGRATE

Page 15: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

15

Three Reasons to Use MATLAB for Deep Learning

Easily manipulate big data and networks

Use MATLAB to learn about the field

Unify multiple domains in a single workflow

ACCESS

LEARN

INTEGRATE

Page 16: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

16

Two Approaches for Deep Learning

1. Train a Deep Neural Network from Scratch

2. Fine-tune a pre-trained model (transfer learning)

ACCESS

LEARN

INTEGRATE

Page 17: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

17

Transfer Learning in MATLAB

ACCESS

LEARN

INTEGRATE

Page 18: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

18

Manipulate Deep Learning Networks Easily

ACCESS

LEARN

INTEGRATE

DELETE LAYERS

ADD LAYERS

Page 19: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

19

Manipulate Deep Learning Networks Easily

GPU CPU

ACCESS

LEARN

INTEGRATE

Page 20: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

20

Three Reasons to Use MATLAB for Deep Learning

Easily manipulate big data and networks

Use MATLAB to learn about the field

Unify multiple domains in a single workflow

ACCESS

LEARN

INTEGRATE

Page 21: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

21

Visualize Deep Learning Features

ACCESS

LEARN

INTEGRATE

Page 22: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

22

Other Resources

Documentation

Examples and Tutorials

MATLAB Community

Videos and Seminars

ACCESS

LEARN

INTEGRATE

Page 23: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

23

Three Reasons to Use MATLAB for Deep Learning

Easily manipulate big data and networks

Use MATLAB to learn about the field

Unify multiple domains in a single workflow

ACCESS

LEARN

INTEGRATE

Page 24: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

25

MATLAB

SIMULINK

ACCESS

LEARN

INTEGRATE

Deep Learning

Tools

Math, Stats,

And Optimization

Application

Deployment

Database

Integration

Camera

Integration

Real-Time

Simulation

Simulation

Graphics

Physical

Modeling

Verification and

Validation

Event-Based

Modeling

Code Generation

Deep Learning Tools

• Image Processing

• Computer Vision

• Machine Learning

• Neural Networks

• Parallel Computing

Page 25: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

26

Customer Examples

Page 26: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

27

• Extract hundreds of thousands of signs

• Confirm sign type and build a database

• Train system to deal with normal and imperfect signs

75,000speed limit signs

in the training set

Continental

Machine Learning for traffic sign recognition

ACCESS

LEARN

INTEGRATE

Page 27: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

28

• Detect cars, pedestrians, and other obstacles

• Median recognition rate of 99%

• Converted to C code running without MATLAB

Alpine

Machine Learning and MATLAB Coder for automatic ground detection

ACCESS

LEARN

INTEGRATE

Page 28: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

29

Deep Learning is Everywhere

MATLAB Accelerates Deep Learning

ACCESS

LEARN

INTEGRATE

Page 29: Machine Learning and Deep Learning - matlabexpo.com · Deep Learning is a Subset of Machine Learning E.g. Google Captioning Project Machine learning is the science of getting computers

30© 2015 The MathWorks, Inc.

Questions and Answers