SlideShare uma empresa Scribd logo
1 de 47
Baixar para ler offline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Racing with Artificial Intelligence
Alex Coqueiro
Head of Public Sector Solutions Architecture for Canada, Latin America and Caribbean
AWS
@alexbcbr
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Rubik’s cube challenge
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
43,252,003,274,489,856,000
43 QUINTILLION
UNIQUE COMBINATIONS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Don’t code the patterns, let the
system learn through data
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
F2 U' R' L F2 R L' U'
ModelData
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
F2 U' R' L F2 R L' U'
Confidence
1%
accuracy
R U r U R U2 r U2%
accuracy
Training Models
Model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Confidence
20%
accuracy
40%
accuracy
60%
accuracy
80%
accuracy
95%
accuracy
2%
accuracy
R U r U R U2 r U
Training Models
Model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Confidence
95%
accuracy
?
F2 R F R′ B′ D F D′ B D F
Inference
Model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SOLVED IN 0.9 SECONDS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Show me how to do it
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.Use Case – Autonomous Driving
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Our problem re-formulation
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Different problems require different learning strategies
labeled training data
Complexityofdecisions
Supervised learning
Non-labeled training data
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Autonomous Driving Development
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Robocar (Donkey Car Project)
Donkey Car Project
https://github.com/sunilmallya/donkey/tree/master/sagetrain
http://awsrobocar.s3-website-us-east-1.amazonaws.com/
https://github.com/tescal2/donkey
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SSD MultiBox — Real-Time Object Detection +
Behavioral Cloning
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon SageMaker:
Build, Train, and Deploy ML Models at Scale
1
2
3
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Different problems require different learning strategies
labeled training data
Complexityofdecisions
Supervised learning
Unsupervised
learning
Reinforcement
Learning
Non-labeled training data
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reinforcement learning in the real world
Reward positive
behavior
Don’t reward
negative
behavior
The result!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Build machine learning models in Amazon
SageMaker
• Train, test, and iterate on the track using the AWS
DeepRacer 3D racing simulator
• Compete in the world’s first global autonomous
racing league, to race for prizes and a chance to
advance to win the coveted AWS DeepRacer Cup
AWS DeepRacer
A fully autonomous 1/18th-scale race car designed to help you learn about
reinforcement learning through autonomous driving
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Robotic autonomous
race car
DeepRacer: An exciting way for developers to get hands-on experience with
Reinforcement Learning
Racing LeagueVirtual simulator, to
train and experiment
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Track components
TRACK CENTER
TRACK WALL
TRACK SURFACE aka ON-TRACK
FIELD aka OFF-TRACK
TRACK BOUNDARIES
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Action space
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The reward function in a race grid
S G = 2
GOALAGENT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Incentivizing centerline behavior
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
S 2 2 2 2 2 2 G = 2
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
REWARD FUNCTION
8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9
S 10.4 9.4 8.2 6.9 5.4 3.8 G = 2
8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9
MAX VALUE OF EACH STATE
AFTER LOTS OF EXPLORING
Discount per step
0.9
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Programming your own reward function
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’s go deeper
Let’s go deeper…
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DeepRacer Neural Network Architecture
An overview of the network architecture that AWS DeepRacer uses:
Output
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon
Sagemaker RL
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reinforcement Learning Algorithms Compared
Value Approximation Policy Approximation
Advantages
More stable performance when it works, and tends to
converge on global optimum
Effective in continuous action spaces, can learn stochastic policies,
and faster convergence
Disadvantages
Difficult to converge if too many (state, action)
combinations, slower convergence in general, and can’t
learn stochastic properties
Typically converges to a local rather than global optimum, high
variance in estimating the gradient adversely affects stability, and
evaluating a policy is generally inefficient
Examples Q-Learning, Deep Q Network, Deep Double Q Network Policy Gradient, Proximal Policy Optimization (PPO)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyper parameters control the training algorithm
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Coordinate system and track waypoints
OUTER BOUNDARY WAYPOINTS
TRACK CENTER WAYPOINTS
INNER BOUNDARY WAYPOINTS
X
Y
TRACK WIDTH
CAR DIRECTION
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DeepRacer Car Specifications
CAR 18th scale 4WD with monster truck chassis
CPU Intel Atom™ Processor
MEMORY 4GB RAM
STORAGE 32GB (expandable)
WI-FI 802.11ac
CAMERA 4 MP camera with MJPEG
DRIVE BATTERY 7.4V/1100mAh lithium polymer
COMPUTE BATTERY 13600mAh USB-C PD
SENSORS Integrated accelerometer and gyroscope
PORTS 4x USB-A, 1x USB-C, 1x Micro-USB, 1x HDMI
SOFTWARE Ubuntu OS 16.04.3 LTS, Intel® OpenVINO™
toolkit, ROS Kinetic
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Robotic Arms
International Space Station
Drones
Education
Water
Home
Self-Driving Vehicles
Autonomous Walker
Rover
Robot landscape
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Robotics trends
in 2018
Robotics is undergoing fundamental
change in collaboration, autonomous
mobility, and increasing intelligence
Source: IDTechEx
• Logistics
• Construction
• Retail
• Hospitality
• Healthcare
Robots are being put to work every
day across many industries
• Agriculture
• Energy Management
• Oil and Gas
• Facilities Management
• Household chores
By 2023, it’s estimated that mobile autonomous robots will
emerge as the standard for logistic and fulfillment processes
By 2030, 70% of all mobile material
handling equipment will be autonomous
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Robotic development cycle
2) Develop
robotics
application
1) Select robotics
software
framework
1) Deploy and
manage
application
3) Test and
simulate
application
New application release and update
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Most widely used software framework for teaching and learning about robotics – over 16 million .deb (Linux Debian)
packages downloaded in 2018, a 400% increase since 2014
Founded in Stanford labs over 10 year ago, now managed by the Open Source Robotics Foundation (OSRF)
Global open-source community supports two products—Robot Operating System (ROS) and Gazebo
ROS
A set of software libraries and tools, from drivers to algorithms,
that help developers build robot applications
Gazebo
Robust physics engine, high-quality graphics, and programmatic
and graphical interfaces to help developers simulate robots
Robot Operating System (ROS) primer
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing AWS RoboMaker
A service that makes it easy for
developers to develop, test, and
deploy robotics applications, as
well as build intelligent robotics
functions using cloud services
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS RoboMaker service suite
Development
Environment
SimulationCloud Extensions for
ROS
Fleet
Management
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS RoboMaker
Sample Robot Applications
Hello
World
Navigation
and Person
Recognition
Voice
Commands
Robot
Monitoring
Object-
following using
RL
Self-
driving
using RL
AWS Cloud
AWS
DeepRacer
NAT gateway
VPC
AWS DeepRacer
Models
Simulation
video
Metrics
AWS DeepRacer Simulation Architecture
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ROS Msg Node
Stored File
ROS Nodes
Model
Optimizer
Video
M-JPEG
Web Server
Video
Inference
Results
Web
Server
Publisher
Autonomous
Drive
Control
Node
Optimized
Model
Media engine
Camera
Model
Inference
engine
Manual
Drive
Navigation
Node
Servo & Motor
AWS DeepRacer Software Architecture
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DATA
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We are not spectators,
but actors of the future
Herb Simon, 2000
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ml.aws@alexbcbr
Thank you!

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
 
Kubernetes on AWS with Amazon EKS
Kubernetes on AWS with Amazon EKSKubernetes on AWS with Amazon EKS
Kubernetes on AWS with Amazon EKS
 
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
 
AWS Blackbelt 2015シリーズ RDS
AWS Blackbelt 2015シリーズ RDSAWS Blackbelt 2015シリーズ RDS
AWS Blackbelt 2015シリーズ RDS
 
AWS Summit Seoul 2023 | Amazon Neptune 및 Elastic을 이용한 추천 서비스 및 검색 플랫폼 구축하기
AWS Summit Seoul 2023 | Amazon Neptune 및 Elastic을 이용한 추천 서비스 및 검색 플랫폼 구축하기AWS Summit Seoul 2023 | Amazon Neptune 및 Elastic을 이용한 추천 서비스 및 검색 플랫폼 구축하기
AWS Summit Seoul 2023 | Amazon Neptune 및 Elastic을 이용한 추천 서비스 및 검색 플랫폼 구축하기
 
20200714 AWS Black Belt Online Seminar Amazon Neptune
20200714 AWS Black Belt Online Seminar Amazon Neptune20200714 AWS Black Belt Online Seminar Amazon Neptune
20200714 AWS Black Belt Online Seminar Amazon Neptune
 
Serverless Architectures.pdf
Serverless Architectures.pdfServerless Architectures.pdf
Serverless Architectures.pdf
 
AWS 101
AWS 101AWS 101
AWS 101
 
Introduction to AWS Cost Management
Introduction to AWS Cost ManagementIntroduction to AWS Cost Management
Introduction to AWS Cost Management
 
Amazon Rekognition
Amazon RekognitionAmazon Rekognition
Amazon Rekognition
 
Edge Computing Use Cases: Interactive Deep Dive on AWS Snowball Edge (STG387)...
Edge Computing Use Cases: Interactive Deep Dive on AWS Snowball Edge (STG387)...Edge Computing Use Cases: Interactive Deep Dive on AWS Snowball Edge (STG387)...
Edge Computing Use Cases: Interactive Deep Dive on AWS Snowball Edge (STG387)...
 
Cloud Center of Excellence
Cloud Center of ExcellenceCloud Center of Excellence
Cloud Center of Excellence
 
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
 
AWS Lambda를 기반으로한 실시간 빅테이터 처리하기
AWS Lambda를 기반으로한 실시간 빅테이터 처리하기AWS Lambda를 기반으로한 실시간 빅테이터 처리하기
AWS Lambda를 기반으로한 실시간 빅테이터 처리하기
 
Introduction to AWS DeepRacer
Introduction to AWS DeepRacerIntroduction to AWS DeepRacer
Introduction to AWS DeepRacer
 
20190213 AWS Black Belt Online Seminar Amazon SageMaker Advanced Session
20190213 AWS Black Belt Online Seminar Amazon SageMaker Advanced Session20190213 AWS Black Belt Online Seminar Amazon SageMaker Advanced Session
20190213 AWS Black Belt Online Seminar Amazon SageMaker Advanced Session
 
AWS Summit Seoul 2023 | 삼성전자/쿠팡의 대규모 트래픽 처리를 위한 클라우드 네이티브 데이터베이스 활용
AWS Summit Seoul 2023 | 삼성전자/쿠팡의 대규모 트래픽 처리를 위한 클라우드 네이티브 데이터베이스 활용AWS Summit Seoul 2023 | 삼성전자/쿠팡의 대규모 트래픽 처리를 위한 클라우드 네이티브 데이터베이스 활용
AWS Summit Seoul 2023 | 삼성전자/쿠팡의 대규모 트래픽 처리를 위한 클라우드 네이티브 데이터베이스 활용
 
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
 
Amazon API Gateway
Amazon API GatewayAmazon API Gateway
Amazon API Gateway
 
New Trends of Geospatial Services on AWS Cloud - Channy Yun :: ICGIS 2015 Seoul
New Trends of Geospatial Services on AWS Cloud - Channy Yun :: ICGIS 2015 SeoulNew Trends of Geospatial Services on AWS Cloud - Channy Yun :: ICGIS 2015 Seoul
New Trends of Geospatial Services on AWS Cloud - Channy Yun :: ICGIS 2015 Seoul
 

Semelhante a Reinforcement Learning with Sagemaker, DeepRacer and Robomaker

Semelhante a Reinforcement Learning with Sagemaker, DeepRacer and Robomaker (20)

Racing with Artificial Intelligence
Racing with Artificial IntelligenceRacing with Artificial Intelligence
Racing with Artificial Intelligence
 
DeepRacer-Workshop-HongKong-Donnie-Prakoso
DeepRacer-Workshop-HongKong-Donnie-PrakosoDeepRacer-Workshop-HongKong-Donnie-Prakoso
DeepRacer-Workshop-HongKong-Donnie-Prakoso
 
AWS-DeepRacer-Workshop-HK-Donnie-Prakoso
AWS-DeepRacer-Workshop-HK-Donnie-PrakosoAWS-DeepRacer-Workshop-HK-Donnie-Prakoso
AWS-DeepRacer-Workshop-HK-Donnie-Prakoso
 
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
 
[REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer Leagu...
[REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer Leagu...[REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer Leagu...
[REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer Leagu...
 
Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...
Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...
Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...
 
AWS Initiate - DevOps do Jeito Amazon
AWS Initiate - DevOps do Jeito AmazonAWS Initiate - DevOps do Jeito Amazon
AWS Initiate - DevOps do Jeito Amazon
 
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
 
Moving to DevOps the Amazon Way
Moving to DevOps the Amazon WayMoving to DevOps the Amazon Way
Moving to DevOps the Amazon Way
 
Developing and Teaching Robotics with AWS RoboMaker
Developing and Teaching Robotics with AWS RoboMaker Developing and Teaching Robotics with AWS RoboMaker
Developing and Teaching Robotics with AWS RoboMaker
 
Developing and Teaching Robotics with AWS Robomaker
Developing and Teaching Robotics with AWS RobomakerDeveloping and Teaching Robotics with AWS Robomaker
Developing and Teaching Robotics with AWS Robomaker
 
Machine Learning at the Edge
Machine Learning at the EdgeMachine Learning at the Edge
Machine Learning at the Edge
 
The Future of AI on AWS
The Future of AI on AWSThe Future of AI on AWS
The Future of AI on AWS
 
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon WayAWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
 
AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28
 
AI Services for Developers - Floor28
AI Services for Developers - Floor28AI Services for Developers - Floor28
AI Services for Developers - Floor28
 
Tools for building your Startup on AWS
Tools for building your Startup on AWSTools for building your Startup on AWS
Tools for building your Startup on AWS
 
Moving to DevOps the Amazon Way
Moving to DevOps the Amazon WayMoving to DevOps the Amazon Way
Moving to DevOps the Amazon Way
 
AWS Initiate Day Dublin 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Dublin 2019 – Moving to DevOps the Amazon WayAWS Initiate Day Dublin 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Dublin 2019 – Moving to DevOps the Amazon Way
 

Mais de Alex Barbosa Coqueiro

Mais de Alex Barbosa Coqueiro (15)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Generative Artificial Intelligence for Macro-Fiscal Risks.pdf
Generative Artificial Intelligencefor Macro-Fiscal Risks.pdfGenerative Artificial Intelligencefor Macro-Fiscal Risks.pdf
Generative Artificial Intelligence for Macro-Fiscal Risks.pdf
 
Unlocking the Power of Quantum Computing dist.pdf
Unlocking the Power of Quantum Computing dist.pdfUnlocking the Power of Quantum Computing dist.pdf
Unlocking the Power of Quantum Computing dist.pdf
 
Building Robotics Application at Scale using OpenSource from Zero to Hero
Building Robotics Application at Scale using OpenSource from Zero to HeroBuilding Robotics Application at Scale using OpenSource from Zero to Hero
Building Robotics Application at Scale using OpenSource from Zero to Hero
 
Building Your Robot using AWS Robomaker
Building Your Robot using AWS RobomakerBuilding Your Robot using AWS Robomaker
Building Your Robot using AWS Robomaker
 
Desafios da transição de estado em um mundo serverless
Desafios da transição de estado em um mundo serverlessDesafios da transição de estado em um mundo serverless
Desafios da transição de estado em um mundo serverless
 
Webinar de Dados Abertos na AWS
Webinar de Dados Abertos na AWSWebinar de Dados Abertos na AWS
Webinar de Dados Abertos na AWS
 
A maturidade dos sistemas tecnológicos e a migração para a nuvem. Como lidar?
A maturidade dos sistemas tecnológicos e a migração para a nuvem. Como lidar?A maturidade dos sistemas tecnológicos e a migração para a nuvem. Como lidar?
A maturidade dos sistemas tecnológicos e a migração para a nuvem. Como lidar?
 
Deploying Bigdata from Zero to Million of records in Amazon Web Services
Deploying Bigdata from Zero to Million of records in Amazon Web ServicesDeploying Bigdata from Zero to Million of records in Amazon Web Services
Deploying Bigdata from Zero to Million of records in Amazon Web Services
 
HPC in AWS - Technical Workshop
HPC in AWS - Technical WorkshopHPC in AWS - Technical Workshop
HPC in AWS - Technical Workshop
 
Migração do seu website para a AWS
Migração do seu website para a AWSMigração do seu website para a AWS
Migração do seu website para a AWS
 
Seminario de Cloud Computing na UFRRJ
Seminario de Cloud Computing na UFRRJSeminario de Cloud Computing na UFRRJ
Seminario de Cloud Computing na UFRRJ
 
IBM Mobile Platform: Desenvolvimento de Aplicações Mobile
IBM Mobile Platform: Desenvolvimento de Aplicações MobileIBM Mobile Platform: Desenvolvimento de Aplicações Mobile
IBM Mobile Platform: Desenvolvimento de Aplicações Mobile
 
Just java 2011
Just java   2011Just java   2011
Just java 2011
 
Webcast WebSphere Portal Performance
Webcast WebSphere Portal PerformanceWebcast WebSphere Portal Performance
Webcast WebSphere Portal Performance
 

Último

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Reinforcement Learning with Sagemaker, DeepRacer and Robomaker

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Racing with Artificial Intelligence Alex Coqueiro Head of Public Sector Solutions Architecture for Canada, Latin America and Caribbean AWS @alexbcbr
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Rubik’s cube challenge
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 43,252,003,274,489,856,000 43 QUINTILLION UNIQUE COMBINATIONS
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Don’t code the patterns, let the system learn through data
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. F2 U' R' L F2 R L' U' ModelData
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. F2 U' R' L F2 R L' U' Confidence 1% accuracy R U r U R U2 r U2% accuracy Training Models Model
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Confidence 20% accuracy 40% accuracy 60% accuracy 80% accuracy 95% accuracy 2% accuracy R U r U R U2 r U Training Models Model
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Confidence 95% accuracy ? F2 R F R′ B′ D F D′ B D F Inference Model
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. SOLVED IN 0.9 SECONDS
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Show me how to do it
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.Use Case – Autonomous Driving
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Our problem re-formulation
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Different problems require different learning strategies labeled training data Complexityofdecisions Supervised learning Non-labeled training data
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Autonomous Driving Development
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Robocar (Donkey Car Project) Donkey Car Project https://github.com/sunilmallya/donkey/tree/master/sagetrain http://awsrobocar.s3-website-us-east-1.amazonaws.com/ https://github.com/tescal2/donkey
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. SSD MultiBox — Real-Time Object Detection + Behavioral Cloning
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon SageMaker: Build, Train, and Deploy ML Models at Scale 1 2 3
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Different problems require different learning strategies labeled training data Complexityofdecisions Supervised learning Unsupervised learning Reinforcement Learning Non-labeled training data
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Reinforcement learning in the real world Reward positive behavior Don’t reward negative behavior The result!
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Build machine learning models in Amazon SageMaker • Train, test, and iterate on the track using the AWS DeepRacer 3D racing simulator • Compete in the world’s first global autonomous racing league, to race for prizes and a chance to advance to win the coveted AWS DeepRacer Cup AWS DeepRacer A fully autonomous 1/18th-scale race car designed to help you learn about reinforcement learning through autonomous driving
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Robotic autonomous race car DeepRacer: An exciting way for developers to get hands-on experience with Reinforcement Learning Racing LeagueVirtual simulator, to train and experiment
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Track components TRACK CENTER TRACK WALL TRACK SURFACE aka ON-TRACK FIELD aka OFF-TRACK TRACK BOUNDARIES
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Action space
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The reward function in a race grid S G = 2 GOALAGENT
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Incentivizing centerline behavior 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 S 2 2 2 2 2 2 G = 2 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 REWARD FUNCTION 8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9 S 10.4 9.4 8.2 6.9 5.4 3.8 G = 2 8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9 MAX VALUE OF EACH STATE AFTER LOTS OF EXPLORING Discount per step 0.9
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Programming your own reward function
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Let’s go deeper Let’s go deeper…
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS DeepRacer Neural Network Architecture An overview of the network architecture that AWS DeepRacer uses: Output
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Sagemaker RL
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Reinforcement Learning Algorithms Compared Value Approximation Policy Approximation Advantages More stable performance when it works, and tends to converge on global optimum Effective in continuous action spaces, can learn stochastic policies, and faster convergence Disadvantages Difficult to converge if too many (state, action) combinations, slower convergence in general, and can’t learn stochastic properties Typically converges to a local rather than global optimum, high variance in estimating the gradient adversely affects stability, and evaluating a policy is generally inefficient Examples Q-Learning, Deep Q Network, Deep Double Q Network Policy Gradient, Proximal Policy Optimization (PPO)
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hyper parameters control the training algorithm
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Coordinate system and track waypoints OUTER BOUNDARY WAYPOINTS TRACK CENTER WAYPOINTS INNER BOUNDARY WAYPOINTS X Y TRACK WIDTH CAR DIRECTION
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS DeepRacer Car Specifications CAR 18th scale 4WD with monster truck chassis CPU Intel Atom™ Processor MEMORY 4GB RAM STORAGE 32GB (expandable) WI-FI 802.11ac CAMERA 4 MP camera with MJPEG DRIVE BATTERY 7.4V/1100mAh lithium polymer COMPUTE BATTERY 13600mAh USB-C PD SENSORS Integrated accelerometer and gyroscope PORTS 4x USB-A, 1x USB-C, 1x Micro-USB, 1x HDMI SOFTWARE Ubuntu OS 16.04.3 LTS, Intel® OpenVINO™ toolkit, ROS Kinetic
  • 35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Robotic Arms International Space Station Drones Education Water Home Self-Driving Vehicles Autonomous Walker Rover Robot landscape
  • 36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Robotics trends in 2018 Robotics is undergoing fundamental change in collaboration, autonomous mobility, and increasing intelligence Source: IDTechEx • Logistics • Construction • Retail • Hospitality • Healthcare Robots are being put to work every day across many industries • Agriculture • Energy Management • Oil and Gas • Facilities Management • Household chores By 2023, it’s estimated that mobile autonomous robots will emerge as the standard for logistic and fulfillment processes By 2030, 70% of all mobile material handling equipment will be autonomous
  • 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Robotic development cycle 2) Develop robotics application 1) Select robotics software framework 1) Deploy and manage application 3) Test and simulate application New application release and update
  • 38. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Most widely used software framework for teaching and learning about robotics – over 16 million .deb (Linux Debian) packages downloaded in 2018, a 400% increase since 2014 Founded in Stanford labs over 10 year ago, now managed by the Open Source Robotics Foundation (OSRF) Global open-source community supports two products—Robot Operating System (ROS) and Gazebo ROS A set of software libraries and tools, from drivers to algorithms, that help developers build robot applications Gazebo Robust physics engine, high-quality graphics, and programmatic and graphical interfaces to help developers simulate robots Robot Operating System (ROS) primer
  • 39. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing AWS RoboMaker A service that makes it easy for developers to develop, test, and deploy robotics applications, as well as build intelligent robotics functions using cloud services
  • 40. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS RoboMaker service suite Development Environment SimulationCloud Extensions for ROS Fleet Management
  • 41. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS RoboMaker Sample Robot Applications Hello World Navigation and Person Recognition Voice Commands Robot Monitoring Object- following using RL Self- driving using RL
  • 42. AWS Cloud AWS DeepRacer NAT gateway VPC AWS DeepRacer Models Simulation video Metrics AWS DeepRacer Simulation Architecture
  • 43. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ROS Msg Node Stored File ROS Nodes Model Optimizer Video M-JPEG Web Server Video Inference Results Web Server Publisher Autonomous Drive Control Node Optimized Model Media engine Camera Model Inference engine Manual Drive Navigation Node Servo & Motor AWS DeepRacer Software Architecture
  • 44. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. DATA
  • 45. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. We are not spectators, but actors of the future Herb Simon, 2000
  • 46. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ml.aws@alexbcbr