Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

66
PRACTICAL INTRODUCTION TO ARTIFICIAL INTELLIGENCE DEEP LEARNING LARGE-SCALE IMAGE ANALYTICS KEVIN MADER / FLAVIO TROLESE 4QUANT | BIG IMAGE ANALYTICS PANTALK TUESDAY, MARCH 19 2016 / IMPACTHUB GARAGE ZURICH

Transcript of Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Page 1: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

PRACTICAL INTRODUCTION TO

ARTIFICIAL INTELLIGENCEDEEP LEARNINGLARGE-SCALE IMAGE ANALYTICSKEVIN MADER / FLAVIO TROLESE4QUANT | BIG IMAGE ANALYTICS

PANTALKTUESDAY, MARCH 19 2016 / IMPACTHUB GARAGE ZURICH

Flavio Trolese
[email protected] können wir hier eine kurze demo zu video to text machen?
Page 2: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 3: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 4: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 5: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 6: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Die Länder, die Österreich umgeben.

Was sind Schweiz, Italien, Slowenien, Ungarn, Tschechische Republik, Deutschland, Slovakei?

Page 7: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 8: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 9: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 10: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 11: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 12: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 13: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 14: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 15: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 16: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 17: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 18: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 19: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 20: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 21: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 22: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

Page 23: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

http://4quant.com/javascript-breakout/

4Quant | BIG IMAGE ANALYTICS

Page 24: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

HOW?

4Quant | BIG IMAGE ANALYTICS

Page 25: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

STANDARD MACHINE LEARNING

4Quant | BIG IMAGE ANALYTICS

Page 26: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CORE IDEASWhat is an image?

What a human sees What a machine sees

4Quant | BIG IMAGE ANALYTICS

Page 27: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CORE IDEASFeature Generation → Making the computer see more

4Quant | BIG IMAGE ANALYTICS

Page 28: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CORE IDEASTraining / Validation

With all machine learning techniques it is critical to divide data into training and validation sets.

The algorithm can then be tested (validated) on data it has never seen before to ensure it generalizes

4Quant | BIG IMAGE ANALYTICS

Page 29: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

OUTPUT / LOSS FUNCTION

4Quant | BIG IMAGE ANALYTICS

The in order for machine learning to work there has to be a single output for the system which quantifies how well it is working

- the number of correctly identified structures (true-positives)

- the number of correct letters in a sentences

- the score of a game

Page 30: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CORE IDEASLearning from tagged data (supervised)

4Quant | BIG IMAGE ANALYTICS

What is this?

Page 31: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

PROBLEMSFeatures can be very difficult to ‘engineer’.

What makes a person a person?

More data doesn’t always lead to better results.

4Quant | BIG IMAGE ANALYTICS

Page 32: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

DEEP LEARNING

4Quant | BIG IMAGE ANALYTICS

Page 33: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

One of these can recognize without any programming by just experiencing and getting feedback.

THE IDEA

4Quant | BIG IMAGE ANALYTICS

https://flic.kr/p/2eryEj

Page 34: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

The human brain is a large, layered, connected network of neurons.

THE IDEA

4Quant | BIG IMAGE ANALYTICS

https://flic.kr/p/5J4uci

Page 35: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

We understand how some of these layers work and can make computationally fast models for simulating their behavior

THE IDEA

4Quant | BIG IMAGE ANALYTICS

Page 36: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

DEEP LEARNING

Deep learning is a set of algorithms in machine learning that attempt to learn in multiple levels, corresponding to different levels of abstraction.

4Quant | BIG IMAGE ANALYTICS

Page 37: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

THE IDEA

4Quant | BIG IMAGE ANALYTICS

A machine learning system with millions of inputs

And 1 output

Page 38: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

THE IDEA

4Quant | BIG IMAGE ANALYTICS

The networks can get very large (hence the deep)

Here is the Inception Network from Google

Page 39: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

TYPES OF ARTIFICIAL NEURONS

4Quant | BIG IMAGE ANALYTICS

Fully-connected → everything connected to everything

Convolutional (CNN) → mix things together

Recurring (RNN) → remember parts of sequences

Page 40: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Recurring Networks

4Quant | BIG IMAGE ANALYTICS

http://karpathy.github.io/2015/05/21/rnn-effectiveness/

Page 41: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Recurring Networks

4Quant | BIG IMAGE ANALYTICS

http://karpathy.github.io/2015/05/21/rnn-effectiveness/

Given the starting letter h

Predict the rest of the letters

Page 42: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

SCHWIIZERDÜTSCH

4Quant | BIG IMAGE ANALYTICS

Goes through hundreds of pages of text character by character and trains neurons to predict the correct output

Page 43: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

The text shows the algorithm learning to complete the sentence.

The curve shows how confident it is in each guess

SCHWIIZERDÜTSCH

4Quant | BIG IMAGE ANALYTICS

Page 44: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

100 gu sisxt n eigeiua a esSWctaicobemhat,E out?s v t t uew

10K Uhe uf Hountigm don d’Bomura fürsyn al jerisim Sbeour Rucch

65K Übschamt wiänä wo und ebs haGscham, üblart uls zä flusch, zänsert. De Unner sindämzalagsel

100K Totatwärt. Dischtä Tittä vo dä ues und erwiä Gsacht agä schtüswongeilä. Beterischtiongehärne vordä em Verbichunt. Diä Mieräng ader h d Zientlichnig vu CHF

4Quant | BIG IMAGE ANALYTICS

SCHWIIZERDÜTSCH

Page 45: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 46: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Spell/Grammar Check (for a language with ‘no rules’) Dialect Detector

Autocomplete

APPLICATIONS

4Quant | BIG IMAGE ANALYTICS

Page 47: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Automatic C code

Wikipedia Text

BEYOND SCHWIIZERDÜTSCH

4Quant | BIG IMAGE ANALYTICS

Page 48: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CONVOLUTIONAL NETWORKS

4Quant | BIG IMAGE ANALYTICS

Pixels Edges Object parts Object models

→ → →

Page 49: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CONVOLUTIONAL NETWORKS

4Quant | BIG IMAGE ANALYTICS

Page 50: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

CONVOLUTIONAL NETWORKS

4Quant | BIG IMAGE ANALYTICS

Page 51: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

CONVOLUTIONAL NETWORKS

Page 52: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Street, Trees, Fence, Bicycle

UNDERSTANDING COMPLEX SCENES

4Quant | BIG IMAGE ANALYTICS

Page 53: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Self-driving cars need to be able to identify walkways automatically

All point geo-referenced

IDENTIFY WALKWAYS

4Quant | BIG IMAGE ANALYTICS

Page 54: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Understanding what is happening inside of these complex networks

DREAMING

4Quant | BIG IMAGE ANALYTICS

Page 55: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

4Quant | BIG IMAGE ANALYTICS

DREAMING

Page 56: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Applying parts of trained networks to other types of images.

TRANSFER

4Quant | BIG IMAGE ANALYTICS

Page 57: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics
Page 58: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

A challenging field

- noisy

- highly variable

- many tissues / diseases look the same

MEDICAL IMAGES

4Quant | BIG IMAGE ANALYTICS

Page 59: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Red are lungs

Yellow are bones

Blue are the other organs

MEDICAL IMAGES

4Quant | BIG IMAGE ANALYTICS

Page 60: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

FINDING CANCER

4Quant | BIG IMAGE ANALYTICS

Page 61: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

MEDICAL IMAGES

4Quant | BIG IMAGE ANALYTICS

Convolutional neurons act on the image and learn to extract the relevant information

Page 62: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

MEDICAL IMAGES

4Quant | BIG IMAGE ANALYTICS

These representations can then be used to automatically find organs like the heart and measure blood flow

→ →

Page 63: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

MEDICAL IMAGES

4Quant | BIG IMAGE ANALYTICS

These representations can then be used to automatically find organs like the heart and measure blood flow

→ →

Page 64: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

Open Challenges

4Quant | BIG IMAGE ANALYTICS

You need a lot of data to identify (1K-100M)

Some networks learn well, others do not

Parameters can make a huge difference

Intermediate layers can be difficult to interpret

Page 66: Practical Introduction to AI, Deep Learning, and Large Scale Image Analytics

PRACTICAL INTRODUCTION TO

ARTIFICIAL INTELLIGENCEDEEP LEARNINGLARGE-SCALE IMAGE ANALYTICSTHANK YOUKEVIN MADER / FLAVIO TROLESE4Quant Ltd.

PANTALKTHURSDAY MARCH 19 2016 / IMPACTHUB GARAGE ZURICH

4Quant| BIG IMAGE ANALYTICS