SlideShare une entreprise Scribd logo
1  sur  55
Télécharger pour lire hors ligne
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Machine Learning at the Edge
A I M 3 0 2
Julien Simon
Principal Tech. Evangelist, AI/ML
Amazon Web Services
@julsimon
Brian Kursar
VP and Chief Data Scientist
Toyota Connected Data Services
Brian.Kursar@toyotaconnected.com
@briankursar
Nimish Amlathe
Data Scientist
Toyota Connected Data Services
Nimish.Amlathe@toyotaconnected.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• Machine learning at the edge?
• Leveraging AWS services
• Case study: Toyota Connected Data Services
• Alternative scenarios
• Optimizing for inference at the edge
• Getting started
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Most machine data never reaches the cloud
Medical equipment Industrial machinery Extreme environments
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why this problem isn’t going away
Law of physics Law of economics Law of the land
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Experimenting and training in the cloud
AWS Deep Learning AMI
Amazon Elastic
Compute Cloud
(Amazon EC2) c5 p3
Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Inferences and
local actions on
device
Extracted
intelligence
Trained model
and Lambda function
Generic
Deploying and predicting with AWS Greengrass
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deploying with AWS Greengrass
• Train a model in Amazon SageMaker (or import your own)
• Write an AWS Lambda function for prediction
• Add both as resources in your AWS Greengrass group
• Let AWS Greengrass handle deployment and updates
Best when
You want the same programming model in the
cloud and at the edge
Code and models need to be updated, even if
network connectivity is infrequent or unreliable
You need one device in the group to perform
prediction on behalf on other devices
Requirements
Devices are powerful enough to run AWS Greengrass
Devices are provisioned in AWS IoT Core
(certificate, keys)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A new way to learn
Custom built for Deep Learning
Broad framework support
Deploy models from Amazon SageMaker
Integrated with AWS
Fully programmable with AWS Lambda
AWS DeepLens
HD video camera
Custom-designed
Deep Learning
engine
Micro-SD
Mini-HDMI
USB
USB
Reset
Audio out
Power
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DeepLens
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Object detection with AWS DeepLens
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using your own models with AWS DeepLens
• AWS DeepLens can run TensorFlow, Caffe, and Apache MXNet models
• Inception
• MobileNet
• NasNet
• ResNet
• And others
• Train or fine-tune your model
on Amazon SageMaker
• Deploy to AWS DeepLens
with AWS Greengrass
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DEEP LEARNING AT THE EDGE
6
TOYOTA
BRIAN KURSAR
VICE PRESIDENT AND CHIEF DATA SCIENTIST
NIMISH AMLATHE
DATA SCIENTIST
TOYOTA CONNECTED DATA SERVICES
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
17
TOYOTA
connected
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Steering Angle
Accelerometer
Brake Sensor
Tire Pressure
Sensor
OdometerSpeedometer
RPMs
Gas Pedal
Window Sensor
Fuel Level
GPS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
21
48 average driving minutes per day
7.2 million data points
per connected vehicle
per day
500+ unique data points
generated every 200 milliseconds
captured in real time
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Data services that drive
customer satisfaction
Data insights that
improve our products
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CAMERA
2021: Vehicles will be
able to upload video in
addition to telemetry
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cars for good
Can we use video from vehicle cameras
to do positive things for the world?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Detect and alert other drivers on dangerous weather conditions
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Keep our environment clean
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reduce graffiti
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automatically improve maps in real time
DROP OFF
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Optimize public transportation routes
Four people
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Optimize emergency services
Six occupants
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Improve safety outside the car
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Improve safety inside the car
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We can, but…
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Transferring to the cloud HD video from multiple cameras
is too expensive to support real-time computer vision services
Cars for good
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
7.5 million vehicles
One camera in each vehicle
One minute of HD video from each vehicle
The cost of uploading is . . .
Billions of dollars per year
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Innovation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training dataset
• Multiple drivers performing four complex actions
• Labelled as Normal Driving, Texting, Looking Away, On the Phone
On the phoneTexting Looking away
Can we predict driver distraction?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“Don’t be a hero”
Instead of rolling your own network
architecture, look at whatever
currently works best on ImageNet,
download a pretrained model, and
fine-tune it on your data
You should rarely ever have to
design a model from scratch
or even train from scratch
Transfer learning
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ResNet-152
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We performed random rotations, random crop, RGB mean centering and
translations on each image sample
The augmented dataset makes the resulting model more robust and
less prone to overfitting
Image augmentation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Optimized hyper
parameters
• Epochs: 50
• Image Shape: 3,224,224
• Learning_rate: 0.001
• Lr_scheduler_factor: 0.0001
• Lr_scheduler_step: 5
• Mini_batch_size: 64
• Num_Layers: 152
• Num_training_samples: 16180
• Optimizer: sgd
Data preprocessing: Downsample the
images from 640 x 480 to 224 x 224 so
that their dimension matches the one used
by the pre-trained model
Fine-tune pretrained network: After multiple
iterations on training sample data to find
hyper parameters, train using the pre-
learned weights and our image data
Pre-processing and hyper parameter tuning
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Train on Amazon SageMaker: Amazon EC2 P2 instances, 8 NVIDIA Tesla K80 GPUs
• Deploy model artifacts on AWS DeepLens with AWS Greengrass
• Use the Intel Model Optimizer for faster GPU inferences
• Upload predicted images to Amazon Simple Storage Service (Amazon S3) in real
time
• Send inference results to AWS IoT
Deep Learning at the edge
MQTT protocol Client
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lessons learned
Use of other state-of-the-art models at the edge?
Ensemble is a very powerful tool, but performance on constrained devices is a challenge
Image preprocessing is the key
Focus on the part of the image that contains the driver, and cut out the useless part of
the image
Clipping does not work
Clipping the loss with various threshold does not help. The model has different level of
confidence on different classes
How often you run the inference and how you interpret it is more important
than model metrics like accuracy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Optimizing performance for inference at the edge
• Constrained devices require smaller and faster models
• Reduce memory usage
• Reduce computational complexity
• Reduce power consumption
• Code optimization: Intel Inference Engine, Intel MKL, NNPACK
• Quantization / Mixed-mode training: Smaller weights and activations
• Pruning: Remove useless connections
• Compression: Encode weights
• Some of these techniques are available in Apache MXNet or TensorFlow
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device can support HTTPS
Invoke an Amazon SageMaker endpoint
• Train a model in SageMaker (or import your own)
• Deploy it to a prediction endpoint
• Device invokes the HTTPS endpoint and receives prediction results
Best when
Devices are not powerful enough for local inference
Models can’t be easily deployed to devices
Additional cloud-based data is required for prediction
Prediction activity must be centralized
Requirements
Network is available
Devices support HTTP
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device cannot support HTTPS
Invoke an AWS Lambda function through AWS IoT Core
• Train a model in Amazon SageMaker (or import your own)
• Deploy it to a prediction endpoint
• Write an AWS Lambda function performing prediction
• Device sends an MQTT message to AWS IoT Core, triggers the function,
and receives prediction results
Best when
Devices can support neither HTTP nor local
inference (for example, Arduino)
Costs must be kept as low as possible
Requirements
Network is available
(MQTT is less demanding than HTTP)
Devices are provisioned in AWS IoT Core
(certificate, keys)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Resources
https://ml.aws/
https://aws.amazon.com/sagemaker
https://aws.amazon.com/machine-learning/amis/
https://aws.amazon.com/greengrass
https://aws.amazon.com/greengrass/ml
https://aws.amazon.com/deeplens
https://medium.com/@julsimon
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Julien Simon
Principal Tech. Evangelist, AI/ML
Amazon Web Services
@julsimon
Brian Kursar
VP and Chief Data Scientist
Toyota Connected Data Services
Brian.Kursar@toyotaconnected.com
@briankursar
Nimish Amlathe
Data Scientist
Toyota Connected Data Services
Nimish.Amlathe@toyotaconnected.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Contenu connexe

Tendances

Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...Amazon Web Services
 
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...Amazon Web Services
 
Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018
Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018
Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018Amazon Web Services
 
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018Amazon Web Services
 
Introducing Amazon SageMaker - AWS Online Tech Talks
Introducing Amazon SageMaker - AWS Online Tech TalksIntroducing Amazon SageMaker - AWS Online Tech Talks
Introducing Amazon SageMaker - AWS Online Tech TalksAmazon Web Services
 
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...Amazon Web Services
 
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018Amazon Web Services
 
M&E Leadership Session: The State of the Industry, What's New from AWS for M&...
M&E Leadership Session: The State of the Industry, What's New from AWS for M&...M&E Leadership Session: The State of the Industry, What's New from AWS for M&...
M&E Leadership Session: The State of the Industry, What's New from AWS for M&...Amazon Web Services
 
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Amazon Web Services
 
From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...
From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...
From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...Amazon Web Services
 
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...Amazon Web Services
 
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...Amazon Web Services
 
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...Amazon Web Services
 
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...Amazon Web Services
 
AWS Startup Day Kyiv - AI/ML services for developers
AWS Startup Day Kyiv - AI/ML services for developersAWS Startup Day Kyiv - AI/ML services for developers
AWS Startup Day Kyiv - AI/ML services for developersAmazon Web Services
 
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...Amazon Web Services
 
ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...
ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...
ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...Amazon Web Services
 
Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018
Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018
Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018Amazon Web Services
 
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Amazon Web Services
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Amazon Web Services
 

Tendances (20)

Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
 
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
 
Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018
Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018
Releasing Mission-Critical Software at Amazon (DEV209-R1) - AWS re:Invent 2018
 
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
 
Introducing Amazon SageMaker - AWS Online Tech Talks
Introducing Amazon SageMaker - AWS Online Tech TalksIntroducing Amazon SageMaker - AWS Online Tech Talks
Introducing Amazon SageMaker - AWS Online Tech Talks
 
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
 
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
 
M&E Leadership Session: The State of the Industry, What's New from AWS for M&...
M&E Leadership Session: The State of the Industry, What's New from AWS for M&...M&E Leadership Session: The State of the Industry, What's New from AWS for M&...
M&E Leadership Session: The State of the Industry, What's New from AWS for M&...
 
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
 
From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...
From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...
From Monolith to Microservices (And All the Bumps along the Way) (CON360-R1) ...
 
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
 
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
 
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
 
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
 
AWS Startup Day Kyiv - AI/ML services for developers
AWS Startup Day Kyiv - AI/ML services for developersAWS Startup Day Kyiv - AI/ML services for developers
AWS Startup Day Kyiv - AI/ML services for developers
 
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
 
ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...
ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...
ML Best Practices: Prepare Data, Build Models, and Manage Lifecycle (AIM396-S...
 
Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018
Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018
Business Process Automation Using Crowdsourcing (AIM352) - AWS re:Invent 2018
 
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
 

Similaire à Machine Learning at the Edge (AIM302) - AWS re:Invent 2018

AWS re:Invent 2018 - AIM302 - Machine Learning at the Edge
AWS re:Invent 2018 - AIM302  - Machine Learning at the Edge AWS re:Invent 2018 - AIM302  - Machine Learning at the Edge
AWS re:Invent 2018 - AIM302 - Machine Learning at the Edge Julien SIMON
 
Quickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleQuickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleAWS Germany
 
Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018
Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018
Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018Yotam Yarden
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Amazon Web Services
 
Building a Recommender System on AWS
Building a Recommender System on AWSBuilding a Recommender System on AWS
Building a Recommender System on AWSAmazon Web Services
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitAmazon Web Services
 
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018Amazon Web Services
 
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...Amazon Web Services
 
Build Your Recommendation Engine on AWS Today!
Build Your Recommendation Engine on AWS Today!Build Your Recommendation Engine on AWS Today!
Build Your Recommendation Engine on AWS Today!AWS Germany
 
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...Amazon Web Services
 
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Amazon Web Services
 
Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências - MCL...
Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências -  MCL...Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências -  MCL...
Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências - MCL...Amazon Web Services
 
Supercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMakerSupercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMakerAmazon Web Services
 
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Amazon Web Services
 
Introduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day IsraelIntroduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day IsraelAmazon Web Services
 
Introduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day IsraelIntroduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day IsraelAmazon Web Services
 
Accelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAccelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAmazon Web Services
 
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Amazon Web Services
 

Similaire à Machine Learning at the Edge (AIM302) - AWS re:Invent 2018 (20)

AWS re:Invent 2018 - AIM302 - Machine Learning at the Edge
AWS re:Invent 2018 - AIM302  - Machine Learning at the Edge AWS re:Invent 2018 - AIM302  - Machine Learning at the Edge
AWS re:Invent 2018 - AIM302 - Machine Learning at the Edge
 
Quickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleQuickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scale
 
Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018
Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018
Build Your Recommendation Engine on AWS Today - AWS Summit Berlin 2018
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
 
Building a Recommender System on AWS
Building a Recommender System on AWSBuilding a Recommender System on AWS
Building a Recommender System on AWS
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
 
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
 
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
 
Build Your Recommendation Engine on AWS Today!
Build Your Recommendation Engine on AWS Today!Build Your Recommendation Engine on AWS Today!
Build Your Recommendation Engine on AWS Today!
 
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
 
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
 
Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências - MCL...
Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências -  MCL...Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências -  MCL...
Machine Learning e Amazon SageMaker: Algoritmos, Modelos e Inferências - MCL...
 
Amazon SageMaker
Amazon SageMakerAmazon SageMaker
Amazon SageMaker
 
Supercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMakerSupercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMaker
 
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
 
Introduction to Sagemaker
Introduction to SagemakerIntroduction to Sagemaker
Introduction to Sagemaker
 
Introduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day IsraelIntroduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day Israel
 
Introduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day IsraelIntroduction to AI services for Developers - Builders Day Israel
Introduction to AI services for Developers - Builders Day Israel
 
Accelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAccelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMaker
 
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
 

Plus de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Machine Learning at the Edge (AIM302) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Machine Learning at the Edge A I M 3 0 2 Julien Simon Principal Tech. Evangelist, AI/ML Amazon Web Services @julsimon Brian Kursar VP and Chief Data Scientist Toyota Connected Data Services Brian.Kursar@toyotaconnected.com @briankursar Nimish Amlathe Data Scientist Toyota Connected Data Services Nimish.Amlathe@toyotaconnected.com
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • Machine learning at the edge? • Leveraging AWS services • Case study: Toyota Connected Data Services • Alternative scenarios • Optimizing for inference at the edge • Getting started
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Most machine data never reaches the cloud Medical equipment Industrial machinery Extreme environments
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why this problem isn’t going away Law of physics Law of economics Law of the land
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Experimenting and training in the cloud AWS Deep Learning AMI Amazon Elastic Compute Cloud (Amazon EC2) c5 p3 Amazon SageMaker
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Inferences and local actions on device Extracted intelligence Trained model and Lambda function Generic Deploying and predicting with AWS Greengrass
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deploying with AWS Greengrass • Train a model in Amazon SageMaker (or import your own) • Write an AWS Lambda function for prediction • Add both as resources in your AWS Greengrass group • Let AWS Greengrass handle deployment and updates Best when You want the same programming model in the cloud and at the edge Code and models need to be updated, even if network connectivity is infrequent or unreliable You need one device in the group to perform prediction on behalf on other devices Requirements Devices are powerful enough to run AWS Greengrass Devices are provisioned in AWS IoT Core (certificate, keys)
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A new way to learn Custom built for Deep Learning Broad framework support Deploy models from Amazon SageMaker Integrated with AWS Fully programmable with AWS Lambda AWS DeepLens HD video camera Custom-designed Deep Learning engine Micro-SD Mini-HDMI USB USB Reset Audio out Power
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS DeepLens
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Object detection with AWS DeepLens
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using your own models with AWS DeepLens • AWS DeepLens can run TensorFlow, Caffe, and Apache MXNet models • Inception • MobileNet • NasNet • ResNet • And others • Train or fine-tune your model on Amazon SageMaker • Deploy to AWS DeepLens with AWS Greengrass
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DEEP LEARNING AT THE EDGE 6 TOYOTA BRIAN KURSAR VICE PRESIDENT AND CHIEF DATA SCIENTIST NIMISH AMLATHE DATA SCIENTIST TOYOTA CONNECTED DATA SERVICES
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17 TOYOTA connected
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 19.
  • 20. Steering Angle Accelerometer Brake Sensor Tire Pressure Sensor OdometerSpeedometer RPMs Gas Pedal Window Sensor Fuel Level GPS
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21 48 average driving minutes per day 7.2 million data points per connected vehicle per day 500+ unique data points generated every 200 milliseconds captured in real time
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Data services that drive customer satisfaction Data insights that improve our products
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CAMERA 2021: Vehicles will be able to upload video in addition to telemetry
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cars for good Can we use video from vehicle cameras to do positive things for the world?
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Detect and alert other drivers on dangerous weather conditions Cars for good
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Keep our environment clean Cars for good
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Reduce graffiti Cars for good
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automatically improve maps in real time DROP OFF Cars for good
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Optimize public transportation routes Four people Cars for good
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Optimize emergency services Six occupants Cars for good
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Improve safety outside the car Cars for good
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Improve safety inside the car Cars for good
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We can, but…
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Transferring to the cloud HD video from multiple cameras is too expensive to support real-time computer vision services Cars for good
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7.5 million vehicles One camera in each vehicle One minute of HD video from each vehicle The cost of uploading is . . . Billions of dollars per year
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Innovation
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training dataset • Multiple drivers performing four complex actions • Labelled as Normal Driving, Texting, Looking Away, On the Phone On the phoneTexting Looking away Can we predict driver distraction?
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “Don’t be a hero” Instead of rolling your own network architecture, look at whatever currently works best on ImageNet, download a pretrained model, and fine-tune it on your data You should rarely ever have to design a model from scratch or even train from scratch Transfer learning
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ResNet-152
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We performed random rotations, random crop, RGB mean centering and translations on each image sample The augmented dataset makes the resulting model more robust and less prone to overfitting Image augmentation
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Optimized hyper parameters • Epochs: 50 • Image Shape: 3,224,224 • Learning_rate: 0.001 • Lr_scheduler_factor: 0.0001 • Lr_scheduler_step: 5 • Mini_batch_size: 64 • Num_Layers: 152 • Num_training_samples: 16180 • Optimizer: sgd Data preprocessing: Downsample the images from 640 x 480 to 224 x 224 so that their dimension matches the one used by the pre-trained model Fine-tune pretrained network: After multiple iterations on training sample data to find hyper parameters, train using the pre- learned weights and our image data Pre-processing and hyper parameter tuning
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Train on Amazon SageMaker: Amazon EC2 P2 instances, 8 NVIDIA Tesla K80 GPUs • Deploy model artifacts on AWS DeepLens with AWS Greengrass • Use the Intel Model Optimizer for faster GPU inferences • Upload predicted images to Amazon Simple Storage Service (Amazon S3) in real time • Send inference results to AWS IoT Deep Learning at the edge MQTT protocol Client
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lessons learned Use of other state-of-the-art models at the edge? Ensemble is a very powerful tool, but performance on constrained devices is a challenge Image preprocessing is the key Focus on the part of the image that contains the driver, and cut out the useless part of the image Clipping does not work Clipping the loss with various threshold does not help. The model has different level of confidence on different classes How often you run the inference and how you interpret it is more important than model metrics like accuracy
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Optimizing performance for inference at the edge • Constrained devices require smaller and faster models • Reduce memory usage • Reduce computational complexity • Reduce power consumption • Code optimization: Intel Inference Engine, Intel MKL, NNPACK • Quantization / Mixed-mode training: Smaller weights and activations • Pruning: Remove useless connections • Compression: Encode weights • Some of these techniques are available in Apache MXNet or TensorFlow
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device can support HTTPS Invoke an Amazon SageMaker endpoint • Train a model in SageMaker (or import your own) • Deploy it to a prediction endpoint • Device invokes the HTTPS endpoint and receives prediction results Best when Devices are not powerful enough for local inference Models can’t be easily deployed to devices Additional cloud-based data is required for prediction Prediction activity must be centralized Requirements Network is available Devices support HTTP
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device cannot support HTTPS Invoke an AWS Lambda function through AWS IoT Core • Train a model in Amazon SageMaker (or import your own) • Deploy it to a prediction endpoint • Write an AWS Lambda function performing prediction • Device sends an MQTT message to AWS IoT Core, triggers the function, and receives prediction results Best when Devices can support neither HTTP nor local inference (for example, Arduino) Costs must be kept as low as possible Requirements Network is available (MQTT is less demanding than HTTP) Devices are provisioned in AWS IoT Core (certificate, keys)
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Resources https://ml.aws/ https://aws.amazon.com/sagemaker https://aws.amazon.com/machine-learning/amis/ https://aws.amazon.com/greengrass https://aws.amazon.com/greengrass/ml https://aws.amazon.com/deeplens https://medium.com/@julsimon
  • 54. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Julien Simon Principal Tech. Evangelist, AI/ML Amazon Web Services @julsimon Brian Kursar VP and Chief Data Scientist Toyota Connected Data Services Brian.Kursar@toyotaconnected.com @briankursar Nimish Amlathe Data Scientist Toyota Connected Data Services Nimish.Amlathe@toyotaconnected.com
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.