SlideShare a Scribd company logo
Wednesday, July 31, 2019
1. Intro & Activity Update
2. Community Open Mic
3. Alex Barbosa Coqueiro - Public
Sector SA Manager @ AWS
Canada: “Racing with AI”
4. Networking
1
ServerlessToronto.org Meetup Agenda
Why we do what we do?
2
Serverless is New Agile
Serverless Dev (gluing
other people’s APIs
and managed services)
We're obsessed
helping Startups (and
creating meaningful
MVPs & products)
We build bridges
between Serverless
Community (“Dev leg”),
and Front-end & Voice-
First folks (“UX leg”),
and empower UX
developers
Achieve agility NOT by
“sprinting” faster (like in
Scrum), but by working
smarter (by using
bigger building blocks
and less Ops)
Why AI/ML topics at Serverless meetup?
3
AWS Machine Learning Stack
#ServerlessTO
Sponsors
4
Manning Publications 2019 giveaways:
1. www.manning.com/books/serverless-applications-with-nodejs
2. www.manning.com/livevideo/production-ready-serverless
3. www.manning.com/livevideo/production-ready-serverless
4. www.manning.com/livevideo/serverless-applications-with-AWS
5. www.manning.com/livevideo/serverless-applications-with-AWS
6. www.manning.com/books/serverless-architectures-on-aws
7. www.manning.com/books/http2-in-action
8. www.manning.com/books/event-streams-in-action
9. www.manning.com/books/the-design-of-everyday-apis
10. www.manning.com/livevideo/graphql-in-motion
11. www.manning.com/books/voice-applications-for-alexa-and-google-assistant
12. www.manning.com/livevideo/machine-learning-for-mere-mortals
13. www.manning.com/books/classic-computer-science-problems-in-python
14. www.manning.com/books/getting-mean-with-mongo-express-angular-and-node
5Check out MEAP program from our Learning Sponsor!
Venue Sponsor
6
As Certified B Corporation, Myplanet is purpose-driven and
creates benefit for all stakeholders, not just shareholders!
Catering Sponsor
7
Also an active Serverless Community member – check out
their “Data Pipelines using Serverless Architectures” talk!
Devinity
8
Devinity… continued
9
Community Open Mic
10
10 seconds of freedom
to pitch yourself, or
your company
Feature Talk
Racing with AI
11
© 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
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.
Let’s apply it into the business
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://youtu.be/xC-tikvEvzo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
10,000+ customers | 2x customer references | 85% of TensorFlow projects in the cloud happen on
AWS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LEA (Robot Care Systems)
https://youtu.be/r-US8rs8EY0
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
tuSimple (Autonomous Vehicle)
© 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!
Future Talks
2019
1
Upcoming Serverless Toronto Meetups
2
1. August 12, 2019: 1. A look at Google Cloud Functions
– Matt Welke // 2. Firebase Crash Course – Kudz Murefu
2. September 12, 2019: Serverless Design Patterns and
Best Practices – Mike Apted, Startup SA at AWS
3. October, 2019: Serverless CI/CD pipelines with AWS
CodePipeline and CodeBuild, vs CircleCI, vs Travis, vs
Seed – Frank Wang & Jay V
4. November or December: Serverless Heroes (authors
of “Serverless Applications with Node.js”) Slobodan
Stojanović & Aleksandar Simović will be here!
5. December or January, 2020: re:Invent recap –
Jonathan Dion, Senior Technical Evangelist at AWS

More Related Content

PPTX
An Introduction to Reinforcement Learning (December 2018)
PDF
Reinforcement Learning with Sagemaker, DeepRacer and Robomaker
PDF
aws_deepracer_amazon_sagemaker_look_under_the_hood.pdf
PDF
Revving up with Reinforcement Learning by Ricardo Sueiras
PDF
Introducing AWS DeepRacer: David Smith
PPTX
AWS re:Invent 2018 - Machine Learning recap (December 2018)
PPTX
Amazon SageMaker (December 2018)
PDF
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
An Introduction to Reinforcement Learning (December 2018)
Reinforcement Learning with Sagemaker, DeepRacer and Robomaker
aws_deepracer_amazon_sagemaker_look_under_the_hood.pdf
Revving up with Reinforcement Learning by Ricardo Sueiras
Introducing AWS DeepRacer: David Smith
AWS re:Invent 2018 - Machine Learning recap (December 2018)
Amazon SageMaker (December 2018)
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...

Similar to Racing with Artificial Intelligence (20)

PDF
AI & Machine Learning at AWS - An Introduction
PDF
New way to learn Machine Learning with AWS DeepLens & Daniel ZivKovic
PPTX
An Introduction to Amazon SageMaker (October 2018)
PDF
AWS Summit Singapore 2019 | Build, Train and Deploy Deep Learning Models on A...
PDF
Innovation report: Artificial Intelligence
PDF
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
PDF
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
PPTX
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
PDF
AILABS - Lecture Series - Is AI the New Electricity. Topic- Role of AI in Log...
PDF
Ai & ml
PDF
Self-Navigation Car using Reinforcement Learning
PPTX
DSML 2021 Keynote: Intelligent Software Engineering: Working at the Intersect...
PDF
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
PDF
Visão Geral de Inteligência Artificial
PPTX
Deep Dive Amazon SageMaker
PPTX
A Journey Through The Far Side Of Data Science
PDF
Artificial intelligence in actions: delivering a new experience to Formula 1 ...
PPTX
recent.pptx
PPTX
Intro to SageMaker
PPT
Machine Learning and Robotics
AI & Machine Learning at AWS - An Introduction
New way to learn Machine Learning with AWS DeepLens & Daniel ZivKovic
An Introduction to Amazon SageMaker (October 2018)
AWS Summit Singapore 2019 | Build, Train and Deploy Deep Learning Models on A...
Innovation report: Artificial Intelligence
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
AILABS - Lecture Series - Is AI the New Electricity. Topic- Role of AI in Log...
Ai & ml
Self-Navigation Car using Reinforcement Learning
DSML 2021 Keynote: Intelligent Software Engineering: Working at the Intersect...
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
Visão Geral de Inteligência Artificial
Deep Dive Amazon SageMaker
A Journey Through The Far Side Of Data Science
Artificial intelligence in actions: delivering a new experience to Formula 1 ...
recent.pptx
Intro to SageMaker
Machine Learning and Robotics
Ad

More from Daniel Zivkovic (20)

PDF
'The Art & Science of LLM Reliability - Building Trustworthy AI Systems' by M...
PDF
AI - Your Startup Sidekick (Leveraging AI to Bootstrap a Lean Startup).pdf
PDF
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
PDF
Canadian Experts Discuss Modern Data Stacks and Cloud Computing for 5 Years o...
PDF
Opinionated re:Invent recap with AWS Heroes & Builders
PDF
Google Cloud Next '22 Recap: Serverless & Data edition
PDF
Conversational Document Processing AI with Rui Costa
PDF
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
PDF
Gojko's 5 rules for super responsive Serverless applications
PDF
Retail Analytics and BI with Looker, BigQuery, GCP & Leigha Jarett
PDF
What's new in Serverless at AWS?
PDF
Intro to Vertex AI, unified MLOps platform for Data Scientists & ML Engineers
PDF
Empowering Developers to be Healthcare Heroes
PDF
Get started with Dialogflow & Contact Center AI on Google Cloud
PDF
Building a Data Cloud to enable Analytics & AI-Driven Innovation - Lak Lakshm...
PDF
Smart Cities of Italy: Integrating the Cyber World with the IoT
PDF
Running Business Analytics for a Serverless Insurance Company - Joe Emison & ...
PDF
This is my Architecture to prevent Cloud Bill Shock
PDF
Lunch & Learn BigQuery & Firebase from other Google Cloud customers
PDF
Azure for AWS & GCP Pros: Which Azure services to use?
'The Art & Science of LLM Reliability - Building Trustworthy AI Systems' by M...
AI - Your Startup Sidekick (Leveraging AI to Bootstrap a Lean Startup).pdf
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
Canadian Experts Discuss Modern Data Stacks and Cloud Computing for 5 Years o...
Opinionated re:Invent recap with AWS Heroes & Builders
Google Cloud Next '22 Recap: Serverless & Data edition
Conversational Document Processing AI with Rui Costa
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
Gojko's 5 rules for super responsive Serverless applications
Retail Analytics and BI with Looker, BigQuery, GCP & Leigha Jarett
What's new in Serverless at AWS?
Intro to Vertex AI, unified MLOps platform for Data Scientists & ML Engineers
Empowering Developers to be Healthcare Heroes
Get started with Dialogflow & Contact Center AI on Google Cloud
Building a Data Cloud to enable Analytics & AI-Driven Innovation - Lak Lakshm...
Smart Cities of Italy: Integrating the Cyber World with the IoT
Running Business Analytics for a Serverless Insurance Company - Joe Emison & ...
This is my Architecture to prevent Cloud Bill Shock
Lunch & Learn BigQuery & Firebase from other Google Cloud customers
Azure for AWS & GCP Pros: Which Azure services to use?
Ad

Recently uploaded (20)

PPTX
Cell Membrane: Structure, Composition & Functions
PPTX
microscope-Lecturecjchchchchcuvuvhc.pptx
PPT
Chemical bonding and molecular structure
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
PDF
The scientific heritage No 166 (166) (2025)
PDF
. Radiology Case Scenariosssssssssssssss
PPTX
2. Earth - The Living Planet Module 2ELS
PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PDF
bbec55_b34400a7914c42429908233dbd381773.pdf
PDF
AlphaEarth Foundations and the Satellite Embedding dataset
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PPTX
Microbiology with diagram medical studies .pptx
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPTX
2. Earth - The Living Planet earth and life
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PPTX
Comparative Structure of Integument in Vertebrates.pptx
PDF
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
PDF
Biophysics 2.pdffffffffffffffffffffffffff
Cell Membrane: Structure, Composition & Functions
microscope-Lecturecjchchchchcuvuvhc.pptx
Chemical bonding and molecular structure
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
The scientific heritage No 166 (166) (2025)
. Radiology Case Scenariosssssssssssssss
2. Earth - The Living Planet Module 2ELS
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
bbec55_b34400a7914c42429908233dbd381773.pdf
AlphaEarth Foundations and the Satellite Embedding dataset
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
Microbiology with diagram medical studies .pptx
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
2. Earth - The Living Planet earth and life
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
Comparative Structure of Integument in Vertebrates.pptx
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
Biophysics 2.pdffffffffffffffffffffffffff

Racing with Artificial Intelligence

  • 1. Wednesday, July 31, 2019 1. Intro & Activity Update 2. Community Open Mic 3. Alex Barbosa Coqueiro - Public Sector SA Manager @ AWS Canada: “Racing with AI” 4. Networking 1 ServerlessToronto.org Meetup Agenda
  • 2. Why we do what we do? 2 Serverless is New Agile Serverless Dev (gluing other people’s APIs and managed services) We're obsessed helping Startups (and creating meaningful MVPs & products) We build bridges between Serverless Community (“Dev leg”), and Front-end & Voice- First folks (“UX leg”), and empower UX developers Achieve agility NOT by “sprinting” faster (like in Scrum), but by working smarter (by using bigger building blocks and less Ops)
  • 3. Why AI/ML topics at Serverless meetup? 3 AWS Machine Learning Stack
  • 5. Manning Publications 2019 giveaways: 1. www.manning.com/books/serverless-applications-with-nodejs 2. www.manning.com/livevideo/production-ready-serverless 3. www.manning.com/livevideo/production-ready-serverless 4. www.manning.com/livevideo/serverless-applications-with-AWS 5. www.manning.com/livevideo/serverless-applications-with-AWS 6. www.manning.com/books/serverless-architectures-on-aws 7. www.manning.com/books/http2-in-action 8. www.manning.com/books/event-streams-in-action 9. www.manning.com/books/the-design-of-everyday-apis 10. www.manning.com/livevideo/graphql-in-motion 11. www.manning.com/books/voice-applications-for-alexa-and-google-assistant 12. www.manning.com/livevideo/machine-learning-for-mere-mortals 13. www.manning.com/books/classic-computer-science-problems-in-python 14. www.manning.com/books/getting-mean-with-mongo-express-angular-and-node 5Check out MEAP program from our Learning Sponsor!
  • 6. Venue Sponsor 6 As Certified B Corporation, Myplanet is purpose-driven and creates benefit for all stakeholders, not just shareholders!
  • 7. Catering Sponsor 7 Also an active Serverless Community member – check out their “Data Pipelines using Serverless Architectures” talk!
  • 10. Community Open Mic 10 10 seconds of freedom to pitch yourself, or your company
  • 12. © 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
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Rubik’s cube challenge
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 43,252,003,274,489,856,000 43 QUINTILLION UNIQUE COMBINATIONS
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Don’t code the patterns, let the system learn through data
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. F2 U' R' L F2 R L' U' ModelData
  • 17. © 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
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Confidence 20% accuracy 40% accuracy 60% accuracy 80% accuracy 95% accuracy 2% accuracy Training Models Model
  • 19. © 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
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. SOLVED IN 0.9 SECONDS
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Let’s apply it into the business
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://youtu.be/xC-tikvEvzo
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10,000+ customers | 2x customer references | 85% of TensorFlow projects in the cloud happen on AWS
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. LEA (Robot Care Systems) https://youtu.be/r-US8rs8EY0
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. tuSimple (Autonomous Vehicle)
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Show me how to do it
  • 28. © 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
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Our problem re-formulation
  • 30. © 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
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Autonomous Driving Development
  • 32. © 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
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. SSD MultiBox — Real-Time Object Detection + Behavioral Cloning
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon SageMaker: Build, Train, and Deploy ML Models at Scale 1 2 3
  • 35. © 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
  • 36. © 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!
  • 37. © 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
  • 38. © 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
  • 39. © 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
  • 40. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Action space
  • 41. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The reward function in a race grid S G = 2 GOALAGENT
  • 42. © 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
  • 43. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Programming your own reward function
  • 44. © 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…
  • 45. © 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
  • 46. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Sagemaker RL
  • 47. © 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)
  • 48. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hyper parameters control the training algorithm
  • 49. © 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
  • 50. © 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
  • 51. © 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
  • 52. © 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
  • 53. © 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
  • 54. © 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
  • 55. © 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
  • 56. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS RoboMaker service suite Development Environment SimulationCloud Extensions for ROS Fleet Management
  • 57. © 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
  • 58. AWS Cloud AWS DeepRacer NAT gateway VPC AWS DeepRacer Models Simulation video Metrics AWS DeepRacer Simulation Architecture
  • 59. © 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
  • 60. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. DATA
  • 61. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. We are not spectators, but actors of the future Herb Simon, 2000
  • 62. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ml.aws @alexbcbr
  • 65. Upcoming Serverless Toronto Meetups 2 1. August 12, 2019: 1. A look at Google Cloud Functions – Matt Welke // 2. Firebase Crash Course – Kudz Murefu 2. September 12, 2019: Serverless Design Patterns and Best Practices – Mike Apted, Startup SA at AWS 3. October, 2019: Serverless CI/CD pipelines with AWS CodePipeline and CodeBuild, vs CircleCI, vs Travis, vs Seed – Frank Wang & Jay V 4. November or December: Serverless Heroes (authors of “Serverless Applications with Node.js”) Slobodan Stojanović & Aleksandar Simović will be here! 5. December or January, 2020: re:Invent recap – Jonathan Dion, Senior Technical Evangelist at AWS