Machine Learning y Deep Learning con MATLAB

Similar documents
Deep search. Enhancing a search bar using machine learning. Ilgün Ilgün & Cedric Reichenbach

A Simple VQA Model with a Few Tricks and Image Features from Bottom-up Attention

System Implementation for SemEval-2017 Task 4 Subtask A Based on Interpolated Deep Neural Networks

Python Machine Learning

arxiv: v1 [cs.lg] 15 Jun 2015

Semantic Segmentation with Histological Image Data: Cancer Cell vs. Stroma

Lip Reading in Profile

Generative models and adversarial training

HIERARCHICAL DEEP LEARNING ARCHITECTURE FOR 10K OBJECTS CLASSIFICATION

Autoregressive product of multi-frame predictions can improve the accuracy of hybrid models

What is a Mental Model?

arxiv: v1 [cs.cv] 10 May 2017

Forget catastrophic forgetting: AI that learns after deployment

Training a Neural Network to Answer 8th Grade Science Questions Steven Hewitt, An Ju, Katherine Stasaski

Taxonomy-Regularized Semantic Deep Convolutional Neural Networks

LEGO MINDSTORMS Education EV3 Coding Activities

Semi-supervised methods of text processing, and an application to medical concept extraction. Yacine Jernite Text-as-Data series September 17.

TRANSFER LEARNING OF WEAKLY LABELLED AUDIO. Aleksandr Diment, Tuomas Virtanen

Lecture 1: Machine Learning Basics

Introduction to Ensemble Learning Featuring Successes in the Netflix Prize Competition

ADVANCED MACHINE LEARNING WITH PYTHON BY JOHN HEARTY DOWNLOAD EBOOK : ADVANCED MACHINE LEARNING WITH PYTHON BY JOHN HEARTY PDF

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

Word Segmentation of Off-line Handwritten Documents

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Twitter Sentiment Classification on Sanders Data using Hybrid Approach

THE enormous growth of unstructured data, including

A Compact DNN: Approaching GoogLeNet-Level Accuracy of Classification and Domain Adaptation

Modeling function word errors in DNN-HMM based LVCSR systems

Modeling user preferences and norms in context-aware systems

Course Outline. Course Grading. Where to go for help. Academic Integrity. EE-589 Introduction to Neural Networks NN 1 EE

Modeling function word errors in DNN-HMM based LVCSR systems

QuickStroke: An Incremental On-line Chinese Handwriting Recognition System

Dual-Memory Deep Learning Architectures for Lifelong Learning of Everyday Human Behaviors

Multisensor Data Fusion: From Algorithms And Architectural Design To Applications (Devices, Circuits, And Systems)

OCR for Arabic using SIFT Descriptors With Online Failure Prediction

Knowledge Transfer in Deep Convolutional Neural Nets

A Case Study: News Classification Based on Term Frequency

Cultivating DNN Diversity for Large Scale Video Labelling

The University of Amsterdam s Concept Detection System at ImageCLEF 2011

SORT: Second-Order Response Transform for Visual Recognition

CS 446: Machine Learning

Human Emotion Recognition From Speech

Software Maintenance

CS Machine Learning

A Deep Bag-of-Features Model for Music Auto-Tagging

arxiv: v1 [cs.cl] 27 Apr 2016

Driving Author Engagement through IEEE Collabratec

arxiv: v2 [cs.cv] 30 Mar 2017

CSL465/603 - Machine Learning

Lecture 1: Basic Concepts of Machine Learning

Assignment 1: Predicting Amazon Review Ratings

Offline Writer Identification Using Convolutional Neural Network Activation Features

Multi-tasks Deep Learning Model for classifying MRI images of AD/MCI Patients

Diverse Concept-Level Features for Multi-Object Classification

Unsupervised Learning of Word Semantic Embedding using the Deep Structured Semantic Model

Machine Learning from Garden Path Sentences: The Application of Computational Linguistics

(Sub)Gradient Descent

Testing A Moving Target: How Do We Test Machine Learning Systems? Peter Varhol Technology Strategy Research, USA

Using Deep Convolutional Neural Networks in Monte Carlo Tree Search

Data Fusion Models in WSNs: Comparison and Analysis

Speech Recognition at ICSI: Broadcast News and beyond

Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor

arxiv: v2 [cs.ro] 3 Mar 2017

Mining Association Rules in Student s Assessment Data

Time series prediction

Learning Methods for Fuzzy Systems

There are some definitions for what Word

Australian Journal of Basic and Applied Sciences

Exposé for a Master s Thesis

Speech Emotion Recognition Using Support Vector Machine

The 9 th International Scientific Conference elearning and software for Education Bucharest, April 25-26, / X

Image based Static Facial Expression Recognition with Multiple Deep Network Learning

A Review: Speech Recognition with Deep Learning Methods

arxiv:submit/ [cs.cv] 2 Aug 2017

Circuit Simulators: A Revolutionary E-Learning Platform

WE GAVE A LAWYER BASIC MATH SKILLS, AND YOU WON T BELIEVE WHAT HAPPENED NEXT

COMMUNITY ENGAGEMENT

The role of word-word co-occurrence in word learning

WebLogo-2M: Scalable Logo Detection by Deep Learning from the Web

Глубокие рекуррентные нейронные сети для аспектно-ориентированного анализа тональности отзывов пользователей на различных языках

Rule Learning With Negation: Issues Regarding Effectiveness

Machine Learning and Data Mining. Ensembles of Learners. Prof. Alexander Ihler

Copyright by Sung Ju Hwang 2013

Learning From the Past with Experiment Databases

FUZZY EXPERT. Dr. Kasim M. Al-Aubidy. Philadelphia University. Computer Eng. Dept February 2002 University of Damascus-Syria

M55205-Mastering Microsoft Project 2016

How to read a Paper ISMLL. Dr. Josif Grabocka, Carlotta Schatten

Seminar - Organic Computing

Learning Methods in Multilingual Speech Recognition

arxiv: v2 [cs.cv] 3 Aug 2017

DIGITAL GAMING & INTERACTIVE MEDIA BACHELOR S DEGREE. Junior Year. Summer (Bridge Quarter) Fall Winter Spring GAME Credits.

Evolutive Neural Net Fuzzy Filtering: Basic Description

arxiv: v1 [cs.lg] 7 Apr 2015

Predicting Student Attrition in MOOCs using Sentiment Analysis and Neural Networks

CS224d Deep Learning for Natural Language Processing. Richard Socher, PhD

WebLogo-2M: Scalable Logo Detection by Deep Learning from the Web

An Introduction to Simio for Beginners

Rover Races Grades: 3-5 Prep Time: ~45 Minutes Lesson Time: ~105 minutes

*Net Perceptions, Inc West 78th Street Suite 300 Minneapolis, MN

Essentials of Ability Testing. Joni Lakin Assistant Professor Educational Foundations, Leadership, and Technology

Transcription:

Machine Learning y Deep Learning con MATLAB Lucas García 2015 The MathWorks, Inc. 1

Deep Learning is Everywhere & MATLAB framework makes Deep Learning Easy and Accessible 2

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 & Controls and many more 3

Deep Learning Use Case e.g. Automated Driving 4

What is Deep Learning? 5

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. http://googleresearch.blogspot.com/2014/11/a-picture-is-worth-thousand-coherent.html 6

Shallow Machine Learning Workflow Train: Iterate until you find the best model LOAD DATA PREPROCESS DATA SUPERVISED LEARNING MODEL Cropping Contrast Adjustment Feature Extraction Feature Analysis CLASSIFICATION REGRESSION Predict: Integrate trained models into applications NEW DATA PREDICTION 7

Cat What is Deep Learning? Deep learning is a type of machine learning that learns tasks directly from data Dog Bird Learned Features Car Dog Cat Bird Car 8

Cat What is Deep Learning? Dog Bird Learned Features End-to-End Learning Car Dog Cat Bird Car Data Task 9

Why is Deep Learning so popular now? Source: ILSVRC Top-5 Error on ImageNet 10

Deep Learning Enablers 1. Acceleration with GPU s 2. Massive sets of labeled data 3. Availability of state of the art models from experts 11

MATLAB makes Deep Learning Easy and Accessible Learn about new MATLAB capabilities to Handle and label large sets of images Accelerate deep learning with GPUs Visualize and debug deep neural networks Access and use models from experts 12

Convolutional Neural Networks Train deep neural networks on structured data (e.g. images, signals, text) Implements Feature Learning: Eliminates need for hand crafted features Trained using GPUs for performance car truck van bicycle Input Convolution + ReLu Pooling Convolution + ReLu Pooling Flatten Fully Connected Softmax Feature Learning Classification 13

Convolution Layer Core building block of a CNN Convolve the filters sliding them across the input, computing the dot product 7 3 3 3 dot 3 W 1 3 2 7 3 3 sum 3 dot 3 W 2 Intuition: learn filters that activate when they see some specific feature 14

Agenda Image classification using pre-trained network Training a Deep Neural Network from scratch Transfer learning to classify new objects Locate & classify objects in images and video 15

Agenda Image classification using pre-trained network Training a Deep Neural Network from scratch Transfer learning to classify new objects Locate & classify objects in images and video 16

Image classification using pre-trained network 1 2 3 4 5 6 clear camera = webcam(); % Connect to the camera nnet = alexnet; % Load the neural net while true picture = camera.snapshot; % Take a picture picture = imresize(picture,[227,227]); % Resize the picture 7 label = classify(nnet, picture); % Classify the picture 8 9 10 11 end image(picture); % Show the picture title(char(label)); % Show the label drawnow; Deep Learning in 11 Lines of MATLAB Code 17

Image classification using pre-trained network 18

Agenda Image classification using pre-trained network Training a Deep Neural Network from scratch Transfer learning to classify new objects Locate & classify objects in images and video 19

Two Deep Learning Approaches Approach 1: Train a Deep Neural Network from Scratch Configure and train a CNN (convolutional neural network) Configure a network architecture to learn a specific task Gather a training set with massive amount of training data Use when necessary: Training data Computation Training Time Model accuracy Thousands to millions of labeled images Compute-intensive (requires GPU) Days to weeks for real problems High (but can overfit to small datasets) 20

Demo: Classifying the CIFAR-10 dataset Approach 1: Train a Deep Neural Network from Scratch Objective: Train a Convolutional Neural Network to classify the CIFAR-10 dataset Data: Input Data Response Thousands of images of 10 different Classes AIRPLANE, AUTOMOBILE, BIRD, CAT, DEER, DOG, FROG, HORSE, SHIP, TRUCK Approach: Import the data Define an architecture Train and test the CNN Data Credit: Learning Multiple Layers of Features from Tiny Images, Alex Krizhevsky, 2009. https://www.cs.toronto.edu/~kriz/cifar.html 21

Demo: Classifying the CIFAR-10 dataset Approach 1: Train a Deep Neural Network from Scratch 22

Agenda Image classification using pre-trained network Training a Deep Neural Network from scratch Transfer learning to classify new objects Locate & classify objects in images and video 23

Why train a new model? Models from research do not work on your data Pre-trained model not available for your data Improve results by creating a model specific to your problem 24

Two Deep Learning Approaches Approach 2: Fine-tune a pre-trained model (transfer learning) CNN already trained on massive sets of data Trained model has robust learned representations Can then be fine-tuned for new data or task using small/medium-size datasets Use when possible: Training data Computation Training Time Model accuracy Hundreds to thousands of labeled images (small) Moderate computation (GPU optional) Seconds to minutes Good, depends on the pre-trained CNN model 25

Why Perform Transfer Learning Requires less data and training time Reference models (like AlexNet, VGG-16, VGG-19) are great feature extractors Leverage best network types from top researchers 26

Convolution Activation Pooling Convolution Activation Pooling Convolution Activation Pooling Convolution Activation Pooling Fully Connected Layers Demo: Classify Vehicles With Transfer Learning Approach 2: Fine-tune a pre-trained model (transfer learning) AlexNet 1000 Category Classifier New Data AlexNet car suv pickup van truck 5 Category Classifier 27

Demo: Classify Vehicles With Transfer Learning Approach 2: Fine-tune a pre-trained model (transfer learning) 28

Agenda Image classification using pre-trained network Training a Deep Neural Network from scratch Transfer learning to classify new objects Locate & classify objects in images and video 29

Is Object Recognition/Classification Enough? Car Label for entire image Car? SUV? Truck? 30

Object Detection Locate and Classify Object TRUCK SUV CAR 31

Goal: Create Object Detector to Locate Vehicles Step 1: Label / Crop data Step 2: Train detector Step 3: Use detector 32

Label Images with MATLAB 33

Labeling Videos with MATLAB 34

Demo: Vehicle detection using Faster R-CNNs 35

MATLAB makes Deep Learning Easy and Accessible Learn about new MATLAB capabilities to imageds = imagedatastore(dir) Easily manage large sets of images Handle and label large sets of images Accelerate deep learning with GPUs Visualize and debug deep neural networks Image Labeler Access and use models from experts Video Labeler 36

MATLAB makes Deep Learning Easy and Accessible Learn about new MATLAB capabilities to Handle and label large sets of images Accelerate deep learning with GPUs Training modes supported: Auto Select GPU Multi GPU (local) Multi GPU (cluster) Visualize and debug deep neural networks Access and use models from experts Acceleration with Multiple GPUs 37

MATLAB makes Deep Learning Easy and Accessible Learn about new MATLAB capabilities to Handle and label large sets of images Training Accuracy Plot Accelerate deep learning with GPUs Visualize and debug deep neural networks Deep Dream Network Activations Access and use models from experts Feature Visualization 38

MATLAB makes Deep Learning Easy and Accessible Learn about new MATLAB capabilities to Handle and label large sets of images Accelerate deep learning with GPUs Visualize and debug deep neural networks Access and use models from experts Curated Set of Pretrained Models Access Models with 1-line of MATLAB Code net1 = alexnet net2 = vgg16 net3 = vgg19 39

MATLAB makes Deep Learning Easy and Accessible Learn about new MATLAB capabilities to Handle and label large sets of images Accelerate deep learning with GPU s Visualize and debug deep neural networks Access and use models from experts 40

% Questions? 41