BDA310 An Introduction to the AI services at AWS

45
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Keith Steward, Ph.D. Specialist Solution Architect, AWS July 26, 2017 An Introduction to the AI Services at AWS

Transcript of BDA310 An Introduction to the AI services at AWS

Page 1: BDA310 An Introduction to the AI services at AWS

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

Keith Steward, Ph.D.

Specialist Solution Architect, AWS

July 26, 2017

An Introduction to the AI Services at AWS

Page 2: BDA310 An Introduction to the AI services at AWS

Artificial Intelligence

at Amazon

Page 3: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Apache

Apache

MXNet

Deep learning framework

Page 4: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Apache

Amazon

Polly

Text-to-Speech

Apache

MXNet

Deep learning framework

Page 5: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Apache

Amazon

Polly

Text-to-Speech

Amazon

Rekognition

Computer Vision

Apache

MXNet

Deep learning framework

Page 6: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Apache

Amazon

Polly

Text-to-Speech

Amazon

RekognitionAmazon

Lex

Computer Vision ASR & NLU

Apache

MXNet

Deep learning framework

Page 7: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Apache

MXNet

Apache

Deep learning framework

Page 8: BDA310 An Introduction to the AI services at AWS

Apache MXNet

Programmable Portable High Performance

Near linear scaling

across hundreds of GPUs

Highly efficient

models for mobile

and IoT

Simple syntax,

multiple languages

Page 9: BDA310 An Introduction to the AI services at AWS

Why Apache MXNet?

Most Open Best On AWS

Optimized for

deep learning on AWS

Accepted into the

Apache Incubator

(Integration with AWS)

Page 10: BDA310 An Introduction to the AI services at AWS

Apache MXNet is the deep learning framework

of choice for AWS

Page 11: BDA310 An Introduction to the AI services at AWS

P2 INSTANCES DL CLOUD FORMATION TEMPLATE

DL AMIS

Page 12: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Amazon

Polly

Text-to-Speech

Apache

Page 13: BDA310 An Introduction to the AI services at AWS

Amazon Polly: Life-like Text-to-Speech Service

Converts text

to life-like speech

47 voices 24 languages Low latency,

real time

Fully managed

Page 14: BDA310 An Introduction to the AI services at AWS

Let’s take a listen…

Page 15: BDA310 An Introduction to the AI services at AWS

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

‘"We live for the music" live from the Madison Square Garden.’

1. Automatic, Accurate Text Processing

Amazon Polly: A Focus On Voice Quality & Pronunciation

Page 16: BDA310 An Introduction to the AI services at AWS

2. Intelligible and Easy to Understand

1. Automatic, Accurate Text Processing

Amazon Polly: A Focus On Voice Quality & Pronunciation

Page 17: BDA310 An Introduction to the AI services at AWS

2. Intelligible and Easy to Understand

3. Add Semantic Meaning to Text

“Richard’s number is 2122341237“

“Richard’s number is 2122341237“

Telephone Number

Amazon Polly: A Focus On Voice Quality & Pronunciation

1. Automatic, Accurate Text Processing

Page 18: BDA310 An Introduction to the AI services at AWS

2. Intelligible and Easy to Understand

3. Add Semantic Meaning to Text

4. Customized Pronunciation

“My daughter’s name is Kaja.”

“My daughter’s name is Kaja.”

1. Automatic, Accurate Text Processing

Amazon Polly: A Focus On Voice Quality & Pronunciation

Page 19: BDA310 An Introduction to the AI services at AWS

Amazon Polly: Common Use Cases

• Internet of Things (smart home, connected devices)

• Education (language learning, training videos)

• Voiced Media (news, blogs, email)

• Voiced Chat Bots (Amazon Lex, Alexa skills)

• Gaming (avatars, Amazon Lumberyard)

#VoiceFirst Movement

Page 20: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Amazon

Rekognition

Computer Vision

Apache

Page 21: BDA310 An Introduction to the AI services at AWS

Amazon Rekognition: Computer Vision Service

Object and Scene

Detection

Facial

AnalysisFacial

Comparison

Facial

Recognition

Page 22: BDA310 An Introduction to the AI services at AWS

Amazon Rekognition: Computer Vision ServiceState-of-the-art face recognition (bounding box and key features).

Page 23: BDA310 An Introduction to the AI services at AWS

Face Attribute Extraction (emotion, gender, race, age, etc.)

Emotion: confused: 4%, calm: 73%

Sunglasses: false (value: 0)

Gender: female (value: 0)

Mouth open wide: 0% (value: 0)

Eye closed: open (value: 0)

Glasses: no glass (value: 0)

Mustache: false (value: 0)

Beard: (value: 0)

Amazon Rekognition: Computer Vision Service

demo

Page 24: BDA310 An Introduction to the AI services at AWS

Amazon Rekognition: Object & Scene Detection

Page 25: BDA310 An Introduction to the AI services at AWS

Amazon Rekognition: Facial Search

Facial

verification

Face

Search

Visual Similarity

Search

(compare two faces) (compare many faces) (find similar faces)

Page 26: BDA310 An Introduction to the AI services at AWS

Amazon Rekognition: A few use cases

Best photo: use the attributes smile and eyesOpen to determine the best photos to post

Demographic detection: collect the age and gender of customers in your store

Sentiment capture: detect the emotions of your customers as they try your product

A/B tuning: identify visually similar alternatives to high-scoring images for A/B testing

Smart filtering: identify images with high visual similarity to ensure only one is displayed

Verify face: compare two faces, receive a confidence score that they are the same person

Protected images: identify visually similar images that are protected by trademarks

Page 27: BDA310 An Introduction to the AI services at AWS

An Introduction to the AI Services at AWS

Amazon

Lex

ASR & NLU

Apache

Page 28: BDA310 An Introduction to the AI services at AWS

The Advent of Conversational Interactions

1st gen: Machine-oriented

interactions

Page 29: BDA310 An Introduction to the AI services at AWS

The Advent of Conversational Interactions

1st gen: Machine-oriented

interactions

2nd gen: Control-oriented

& translated

Page 30: BDA310 An Introduction to the AI services at AWS

The Advent of Conversational Interactions

1st gen: Machine-oriented

interactions

2nd gen: Control-oriented

& translated

3rd gen:

Intent-oriented

Page 31: BDA310 An Introduction to the AI services at AWS

Amazon Lex ... for Conversational Interactions

Powered by the same deep learning technology as Alexa

Enterprise SaaS Connectors

Deployment to chat platforms, like Slack, Facebook

Messenger, Twilio SMS

Build Voice and Text Chatbots

Interactions on mobile, web, and devices

Page 32: BDA310 An Introduction to the AI services at AWS

Informational Bot: Example

Page 33: BDA310 An Introduction to the AI services at AWS
Page 34: BDA310 An Introduction to the AI services at AWS

Amazon Lex Use Cases

Informational BotsChatbots for everyday consumer requests

Application BotsBuild powerful interfaces to mobile applications

• News updates

• Weather information

• Game scores ….

• Book tickets

• Order food

• Manage bank accounts ….

Enterprise Productivity BotsStreamline enterprise work activities and improve efficiencies

• Check sales numbers

• Marketing performance

• Inventory status ….

Internet of Things (IoT) BotsEnable conversational interfaces for device interactions

• Wearables

• Appliances

• Auto ….

Page 35: BDA310 An Introduction to the AI services at AWS

AI Solutions for Every Developer

Page 36: BDA310 An Introduction to the AI services at AWS

https://aws.amazon.com/amazon-ai/

Amazon AI: Getting Started

Page 37: BDA310 An Introduction to the AI services at AWS

Thank you!

aws.amazon.com/amazon-ai

Page 38: BDA310 An Introduction to the AI services at AWS

• 10+ year partnership

• Joint development

• Shared customer passion

• High performance + low costs

• World class supply chain

CLOUD &

DATA CENTER

THINGS &

DEVICES

AWS IOT Alexa Voice

Services

Amazon EC2 Amazon S3

Amazon & Intel

Page 39: BDA310 An Introduction to the AI services at AWS

Amazon & Intel

Page 40: BDA310 An Introduction to the AI services at AWS

40@IntelAI

Hardware for DL Workloads

Up to 2X better peak performance

on compute-intensive analytics

100x improvement in inference

performance on EC2 C5 instance*

NEW C5 more computational

power, lower costs – customers do

more with less

Blazingly Fast Data Access

New microarchitecture, hardware

acceleration, Intel® AVX-512

50% more memory than previous

generation

Novartis conducted 39 years of

computational chemistry in 9 hours*

High Speed Scalability

Up to 1.73x faster completion of

massively parallel research

simulations than the previous

generation

Seamless data transfer via

interconnects

Training AI: Intel® xeon® scalable processorBest-in-Class Deep Learning Training Performance

Accelerator for training compute density in deep learning centric environments

+

Page 41: BDA310 An Introduction to the AI services at AWS

41@IntelAI

Inference in the cloud: amazon & Intel®Math Kernel Library for Deep Neural Networks

For developers of deep learning frameworks featuring optimized performance on Intel hardware

6.1 2.4 1.2 0.8

679.4

262.5

79.7 73.9

0

200

400

600

800

AlexNet GoogLeNet v1 ResNet-50 Inception v3

Imag

es/S

ec

c4.8xlarge MXNet Inference

No MKL MKL

Up to 2X better peak performance on compute-intensive analytics

100x improvement in inference performance on EC2 C5 instance*

Intel-optimized Caffe, Intel® MKL for high performance distributed training and inference

CloudFormation template with AWS services and EC2, CfnCluster, DynamoDB, EBS and Spot Instance support

Classify text, train a Convolutional neural network, visualize the training using Tensorboard using BigDL on AWS

Page 42: BDA310 An Introduction to the AI services at AWS

Intel Confidential

INTEL® IOT GATEWAY REAL TIME ANALYTICSAWS IOT PLATFORM

Amazon EC2

X1

Inference at the edge: AWS & Intel®

cost savings with scalability

End-to-end interoperability

to scale applications and services

streamlined manageability and

analytics

Seamless data management

and analytics from thing

to network to cloud

multilayered, end-to-end

security

A chain of trust rooted

in the hardware and linked throughout

the software

Page 43: BDA310 An Introduction to the AI services at AWS

43@IntelAI

Libraries, frameworks & toolsIntel® Math Kernel

Library

Intel® MLSL

Intel® Data

Analytics

Acceleration

Library

(DAAL)

Intel®

Distributio

n

Open

Source

Frameworks

Intel Deep

Learning SDK

Intel® Computer

Vision SDKIntel® MKL MKL-DNN

High

Level

Overview

Computation

primitives; high

performance math

primitives granting

low level of control

Computation

primitives; free

open source DNN

functions for high-

velocity integration

with deep learning

frameworks

Communication

primitives; building

blocks to scale deep

learning framework

performance over a

cluster

Broad data analytics

acceleration object

oriented library

supporting distributed

ML at the algorithm

level

Most popular and

fastest growing

language for

machine learning

Toolkits driven by

academia and

industry for training

machine learning

algorithms

Accelerate deep

learning model

design, training and

deployment

Toolkit to develop &

deploying vision-

oriented solutions

that harness the full

performance of Intel

CPUs and SOC

accelerators

Primary

Audience

Consumed by

developers of

higher level

libraries and

Applications

Consumed by

developers of the

next generation of

deep learning

frameworks

Deep learning

framework

developers and

optimizers

Wider Data Analytics

and ML audience,

Algorithm level

development for all

stages of data

analytics

Application

Developers and

Data Scientists

Machine Learning

App Developers,

Researchers and

Data Scientists.

Application

Developers and Data

Scientists

Developers who

create vision-oriented

solutions

Example

Usage

Framework

developers call

matrix

multiplication,

convolution

functions

New framework

with functions

developers call for

max CPU

performance

Framework

developer calls

functions to distribute

Caffe training

compute across an

Intel® Xeon Phi™

cluster

Call distributed

alternating least

squares algorithm for

a recommendation

system

Call scikit-learn

k-means function

for credit card

fraud detection

Script and train a

convolution neural

network for image

recognition

Deep Learning

training and model

creation, with

optimization for

deployment on

constrained end

device

Use deep learning to

do pedestrian

detection

Find out more at software.intel.com/ai

Page 44: BDA310 An Introduction to the AI services at AWS

Q & A

Page 45: BDA310 An Introduction to the AI services at AWS

Don’t Forget Your Evaluations!