AI Services on AWS - CTO Club JLM

68
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CTO Club - Jerusalem November 2017 AI Services on AWS Boaz Ziniman – Technical Evangelist, AWS @ziniman

Transcript of AI Services on AWS - CTO Club JLM

Page 1: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

CTO Club - Jerusalem

November 2017

AI Services on AWSBoaz Ziniman – Technical Evangelist, AWS

@ziniman

Page 2: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

The difficulty comes in writing software that will make sense

of the data

Page 3: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Artificial Intelligence

A system or service which can perform tasks that usually require human intelligence

Page 4: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Page 5: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Page 6: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Page 7: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

25,000 skills

Page 8: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

And a few more examples…

Fraud detection Detecting fraudulent transactions, filtering spam emails, flagging suspicious reviews, …

Personalization Recommending content, predictive content loading, improving user experience, …

Targeted marketing Matching customers and offers, choosing marketing campaigns, cross-selling and up-selling, …

Content classification Categorizing documents, matching hiring managers and resumes, …

Churn prediction Finding customers who are likely to stop using the service, free-tier upgrade targeting, …

Customer support Predictive routing of customer emails, social media listening, …

Page 9: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Machine Learning On AWS Today

Page 10: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon AI Ecosystem

Page 11: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon AI Ecosystem

Page 12: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

General-purpose GPU compute applications.Features:• High Frequency Intel Xeon E5-2686v4 (Broadwell)• High-performance NVIDIA K80 GPUs, each with

2,496 parallel processing cores and 12GiB of GPU memory

• Supports GPUDirect™• Enhanced Networking• EBS-optimized by default at no additional cost

Amazon EC2 P2 Instances

Instance Size GPUs GPU Peer to Peer

vCPUs Memory (GiB)

Network Bandwidth*

p2.xlarge 1 - 4 61 1.25Gbpsp2.8xlarge 8 Y 32 488 10Gbpsp2.16xlarge 16 Y 64 732 20Gbps

Page 13: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

General-purpose GPU compute applications.Features:• High Frequency Intel Xeon E5-2686v4 (Broadwell)• High-performance NVIDIA V100 GPUs, each with

5,120 GPU cores + 640 Tensor cores and 16GiB of GPU memory

• Supports GPUDirect™• Enhanced Networking• EBS-optimized by default at no additional cost

Amazon EC2 P3 Instances

Instance Size GPUs GPU Peer to Peer

vCPUs Memory (GiB)

Network Bandwidth*

p3.2xlarge 1 - 8 61 Up to 10Gbpsp3.8xlarge 4 Y 32 244 10Gbpsp3.16xlarge 8 Y 64 488 25Gbps

Page 14: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Expedia - Ranking Hotel Images

Leading online travel companyHow to improve hotels listing images?

• Use GPUs and deep learning to rank hotel images• Build a model based on 100K images

How to rank 10M images?• Use data parallelization across multiple GPUs on AWS• Improve ranking time from more than a week to 1 day

Page 15: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon AI Ecosystem

Page 16: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

One-ClickDeep Learning

AWS Deep Learning AMIsAmazon Linux & Ubuntu

Up to~40k CUDA cores

Apache MXNet

TensorFlow

Theano

Keras

Caffe

CNTK

Torch

Pre-configured CUDA drivers

Anaconda, Python3

Out-of-the-box Tutorials

+ CloudFormation template

+ Container Image

Available in the AWS Marketplace

Page 17: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon AI Ecosystem

Page 18: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Can We Help CustomersPut Intelligence At The Heart Of Every Application & Business?

Page 19: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon AI Ecosystem

Page 20: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

PollyText-to-Speech

Artificial Intelligence Services on AWS

Page 21: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

RekognitionImage Analysis

Artificial Intelligence Services on AWS

Page 22: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

LexConversation Bots

Artificial Intelligence Services on AWS

Page 23: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

PollyText-to-Speech

Artificial Intelligence Services on AWS

Page 24: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon Polly

“Today in Seattle, WA it’s 11°F”

“Today in Seattle Washington it’s 11 degrees Fahrenheit”

Text In, Life-like Speech Out

Page 25: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing• “Today in Seattle, WA, it’s 11°F”• ‘"We live for the music" live from the Madison Square Garden.’

Page 26: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing2. Intelligible and Easy to Understand

Page 27: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing2. Intelligible and Easy to Understand3. Add Semantic Meaning to Text

Page 28: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

https://www.w3.org/TR/speech-synthesis/

<speak>The spelling of my name is

<prosody rate='x-slow'><say-as interpret-as="characters">Boaz</say-as>

</prosody></speak>

A Focus On Voice Quality & Pronunciation

Page 29: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing2. Intelligible and Easy to Understand3. Add Semantic Meaning to Text

• “Richard’s number is 2122341237“<say-as interpret-as="telephone">

Page 30: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing2. Intelligible and Easy to Understand3. Add Semantic Meaning to Text

• “Richard’s number is 2122341237“ • “My daughter’s name is Kaja.”

Page 31: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing2. Intelligible and Easy to Understand3. Add Semantic Meaning to Text

• “Richard’s number is 2122341237“ • “My daughter’s name is Kaja.”

4. Amazon Polly-specific tags• dynamic range compression (drc)

<speak><prosody volume="loud">This text needs to be understandable and loud.<amazon:effect name="drc">This text also needs to be more understandable in a moving car.</amazon:effect></prosody></speak>

Page 32: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing2. Intelligible and Easy to Understand3. Add Semantic Meaning to Text

• “Richard’s number is 2122341237“ • “My daughter’s name is Kaja.”

4. Amazon Polly-specific tags• dynamic range compression (drc)• whispered

Page 33: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Duolingo voices its language learning service Using Polly

Duolingo is a free language learning service where users help translate the web and rate translations.

With Amazon Polly our users benefit from the most lifelike Text-to-Speech voices available on the market.

Severin HackerCTO, Duolingo

”“ • Spoken language crucial for

language learning

• Accurate pronunciation matters

• Faster iteration thanks to TTS

• As good as natural human speech

Page 34: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

High quality,through

best-in-classdeep learning

Deep functionality

Easy to use& thoughtfully

integrated

Built forproduction

Lowcost

Polly: Life-like Speech Service

Page 35: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

RekognitionImage Analysis

Artificial Intelligence Services on AWS

Page 36: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon Rekognition

Object and scene detectionFacial analysisFace comparisonCelebrity recognitionImage moderation

Amazon Rekognition: Images In, Rich Metadata Out

Page 37: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Object & Scene Detection

Page 38: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Facial Analysis

Page 39: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Smiling?

Facial Analysis

(Deep) Learning from a Masterpiecehttp://bit.ly/MonaLisaAI

Page 40: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Celebrity Recognition

Page 41: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Facial Search

Page 42: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Explicit NudityNudityGraphic Male NudityGraphic Female NuditySexual ActivityPartial Nudity

SuggestiveFemale Swimwear or UnderwearMale Swimwear or UnderwearRevealing Clothes

Image moderation

Page 43: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon Rekognition Customers

Digital Asset ManagementMedia and EntertainmentTravel and HospitalityInfluencer MarketingSystems IntegrationDigital AdvertisingConsumer StorageLaw EnforcementPublic SafetyeCommerceEducation

Page 44: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.https://aws.amazon.com/solutions/case-studies/cspan/

Page 45: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

DEMO

Page 46: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

High quality,through

best-in-classdeep learning

Deep functionality

Easy to use& thoughtfully

integrated

Built forproduction

Lowcost

Rekognition: Search & Understand Visual Content

Page 47: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

LexConversation Bots

Artificial Intelligence Services on AWS

Page 48: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon LexAutomatic Speech RecognitionNatural Language Understanding

“What’s the weather forecast?”

WeatherForecast

Speech Recognition & Natural Language Understanding

Page 49: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon LexAutomatic Speech RecognitionNatural Language Understanding

“What’s the weather forecast?”

“It will be sunny and 25°C”

WeatherForecast

Speech Recognition & Natural Language Understanding

Page 50: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Origin

Destination

Departure Date

✈ Flight Booking

Page 51: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Origin

Destination

Departure Date

✈ Flight Booking

“Book a flight toLondon”

Page 52: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

“Book a flight toLondon”

AutomaticSpeech Recognition

Book Flight

London

Origin

Destination

Departure Date

✈ Flight Booking

Page 53: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Natural LanguageUnderstanding

Flight booking

London Heathrow

“Book a flight toLondon”

AutomaticSpeech Recognition

Book Flight

London

Origin

Destination

Departure Date

✈ Flight Booking

Page 54: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Natural LanguageUnderstanding

Flight booking

London Heathrow

“Book a flight toLondon”

AutomaticSpeech Recognition

Book Flight

London

Origin

Destination London Heathrow

Departure Date

✈ Flight Booking

Page 55: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Natural LanguageUnderstanding

Flight booking

London Heathrow

“Book a flight toLondon”

AutomaticSpeech Recognition

Book Flight

London

Origin Lisbon

Destination London Heathrow

Departure Date

✈ Flight Booking

Page 56: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Natural LanguageUnderstanding

Flight booking

London Heathrow

“Book a flight toLondon”

AutomaticSpeech Recognition

Book Flight

London

Origin Lisbon

Destination London Heathrow

Departure Date

✈ Flight Booking

Prompt

“When would you like to fly?”

Page 57: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

“When would you like to fly?”

PollyPrompt

“When would you like to fly?”

Natural LanguageUnderstanding

Flight booking

London Heathrow

“Book a flight toLondon”

AutomaticSpeech Recognition

Book Flight

London

Origin Lisbon

Destination London Heathrow

Departure Date

✈ Flight Booking

Page 58: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

“When would you like to fly?”

“Next Friday”

Origin Lisbon

Destination London Heathrow

Departure Date

✈ Flight Booking

Page 59: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

“Next Friday”

Origin Lisbon

Destination London Heathrow

Departure Date

✈ Flight Booking

AutomaticSpeech Recognition

Next Friday

Page 60: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

“Next Friday”

Origin Lisbon

Destination London Heathrow

Departure Date

✈ Flight Booking

Natural LanguageUnderstanding

Flight booking

10/11/2017

AutomaticSpeech Recognition

Next Friday

Page 61: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

“Next Friday”

Origin Lisbon

Destination London Heathrow

Departure Date 10/11/2017

✈ Flight Booking

Natural LanguageUnderstanding

Flight booking

10/11/2017

AutomaticSpeech Recognition

Next Friday

Page 62: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Origin Lisbon

Destination London Heathrow

Departure Date 10/11/2017

✈ Flight Booking

Page 63: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Origin Lisbon

Destination London Heathrow

Departure Date 10/11/2017

✈ Flight Booking

Confirmation

“Your flight is booked for next Friday”

Page 64: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Origin Lisbon

Destination London Heathrow

Departure Date 10/11/2017

✈ Flight Booking

Confirmation

“Your flight is booked for next Friday”

“Your flight is booked fornext Friday”

Polly

Page 65: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Lex: Build Natural, Conversational Interactions In Voice & Text

High quality,through

best-in-classdeep learning

Deep functionality

Easy to use& thoughtfully

integrated

Built forproduction

Lowcost

Page 66: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Wrap up

Page 67: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Smile!@ziniman

Page 68: AI Services on AWS - CTO Club JLM

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Thank you!@ziniman