SlideShare a Scribd company logo
1 of 22
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Introduction to Machine
Learning on Mobile
Dennis Hills
Developer Advocate, AWS Mobile
Pop-up Loft
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is AI?
Artificial Intelligence (AI) is a broad term for applying ANY technique
that enables computers to mimic human intelligence, using logic, if-
then rules, decision trees, and machine learning (including deep
learning). – think chatbots, robots, and KITT from Knight Rider!
Inventing entirely
new customer
experiences
Drones Voice driven
interactions
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is Machine Learning?
A subset of AI: Machine learning
(ML) is a set of methods that can
automatically detect patterns in
data, and then use the uncovered
patterns to predict future data, or to
perform other kinds of decision
making under uncertainty.
Personalized
recommendations
Fulfillment
automation and
inventory
management
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
More definitions…
Machine Learning is all about using data to answer
questions. First, data (e.g., images, text, or voice) is
provided along with answers (labels) to that data. Then the
computer (model) is trained on this data so it can “learn”
and later make predictions (aka inference) on the mobile
device.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Important for mobile
In general… mobile apps use pre-trained models to make
predictions. These models are first trained outside of the
app—typically in the cloud—and then brought into the app
to accomplish the task you desire.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why all the hype?!
Several developments in the world of ML
are creating an exciting playing field for
mobile developers:
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What’s Changed?
Advances in neural networks (algorithms) have
dramatically improved accuracy in recognizing
images and speech. Accuracy rates matter. So,
what seemed like science fiction not so long ago is
here today.
1
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What’s Changed?
Advances in cloud computing have greatly
reduced the time it takes to train these models. I’m
talking weeks to hours! That means fewer
resources, reduced capital expenses, and faster to
market.
2
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What’s Changed?
There’s also been a flood of third-party API-driven
machine learning services hitting the market that
do a lot of the heavy lifting for you. Build your own
or let someone else do it.
3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Three Types of Machine Learning
Supervised Learning
Unsupervised Learning
Reinforcement Learning
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Supervised Learning
Supervised learning is a system of all labeled
data and a predictive model. We use labeled data
to train a “model” and then use that “model” to make
predictions (inference) on new unlabeled data. The
trained model is the core of our discussion when it
comes to machine learning on a mobile device.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Supervised learning consists of two
problem-solving tasks:
Regression and Classification.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Regression
Regression: Based on data input, this ML predicts
a continuous numerical value where the output is a
real value, such as “dollars” or “pounds”. For
example, I have a 2009 Honda Civic EX with
200,000 miles in fair condition in Seattle. What is
my car worth?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Classification
Classification: This ML takes mined data to
deliver a categorical output variable, such as “cat”
or “dog.” For example, when you take a picture of
your neighbor’s pet, the ML on your phone can tell
you it’s a dog and what the dog is doing.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Getting Started
So, we now understand machine learning, why it’s
being used, and what problems it can solve, but how
do I start playing with it as a mobile developer?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
iOS => Core ML
Android =>
TensorFlow Lite
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Now, you may be asking…why not TensorFlow
Lite on Android and iOS?!?!
Answer: Use the best tool for the job
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Best of Both Worlds When it Comes to Prediction
The ML model is really the core of ML and you are
simply interfacing with the same trained model on the
device, but using the best framework for each platform.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Imagine a little baby sitting between the two icons . . . that baby is the ML Model
they both have in common.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you
Get Started:
aws.amazon.com/mobile
AWS Mobile Twitter:@AWSforMobile
Dennis Hills: @dmennis

More Related Content

What's hot

Computers Of The Future
Computers Of The FutureComputers Of The Future
Computers Of The Future
amenda101095
 

What's hot (19)

Ai vs machine learning vs deep learning
Ai vs machine learning vs deep learningAi vs machine learning vs deep learning
Ai vs machine learning vs deep learning
 
Data Science & Artificial Intelligence for ALL
Data Science & Artificial Intelligence for ALLData Science & Artificial Intelligence for ALL
Data Science & Artificial Intelligence for ALL
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Ai current use-and-future-opportunities
Ai current use-and-future-opportunitiesAi current use-and-future-opportunities
Ai current use-and-future-opportunities
 
BUS 271 Ryan Roch Artificial Intelligence
BUS 271 Ryan Roch Artificial IntelligenceBUS 271 Ryan Roch Artificial Intelligence
BUS 271 Ryan Roch Artificial Intelligence
 
Why Artificial Intelligence?
Why Artificial Intelligence?Why Artificial Intelligence?
Why Artificial Intelligence?
 
Rise of Applied Artificial Intelligence in India
Rise of Applied Artificial Intelligence in IndiaRise of Applied Artificial Intelligence in India
Rise of Applied Artificial Intelligence in India
 
Building AI Startups & AI Mindset
Building AI Startups & AI MindsetBuilding AI Startups & AI Mindset
Building AI Startups & AI Mindset
 
New Skills in Engineering
New Skills in EngineeringNew Skills in Engineering
New Skills in Engineering
 
Artificial Intelligence In The Workplace: How AI Is Transforming Your Employe...
Artificial Intelligence In The Workplace: How AI Is Transforming Your Employe...Artificial Intelligence In The Workplace: How AI Is Transforming Your Employe...
Artificial Intelligence In The Workplace: How AI Is Transforming Your Employe...
 
What is Artificial Intelligence?
What is Artificial Intelligence?What is Artificial Intelligence?
What is Artificial Intelligence?
 
Issues on Artificial Intelligence and Future (Standards Perspective)
Issues on Artificial Intelligence  and Future (Standards Perspective)Issues on Artificial Intelligence  and Future (Standards Perspective)
Issues on Artificial Intelligence and Future (Standards Perspective)
 
AI and IoT : How do IoT and AI change the world?
AI and IoT : How do IoT and AI change the world?AI and IoT : How do IoT and AI change the world?
AI and IoT : How do IoT and AI change the world?
 
A primer on Artificial Intelligence (AI) and Machine Learning (ML)
A primer on Artificial Intelligence (AI) and Machine Learning (ML)A primer on Artificial Intelligence (AI) and Machine Learning (ML)
A primer on Artificial Intelligence (AI) and Machine Learning (ML)
 
Artificial Intelligence and Robotics in 2017
Artificial Intelligence and Robotics in 2017Artificial Intelligence and Robotics in 2017
Artificial Intelligence and Robotics in 2017
 
AI and The future of work
AI and The future of work AI and The future of work
AI and The future of work
 
Computers Of The Future
Computers Of The FutureComputers Of The Future
Computers Of The Future
 
Career Opportunities in Artificial Intelligence during the pandemic
Career Opportunities in Artificial Intelligence during the pandemicCareer Opportunities in Artificial Intelligence during the pandemic
Career Opportunities in Artificial Intelligence during the pandemic
 
Artificial intelligence in supply chain and manufacturing - An IBM case study...
Artificial intelligence in supply chain and manufacturing - An IBM case study...Artificial intelligence in supply chain and manufacturing - An IBM case study...
Artificial intelligence in supply chain and manufacturing - An IBM case study...
 

Similar to Dennis Hills - Introduction to Machine Learning on Mobile.pdf

Similar to Dennis Hills - Introduction to Machine Learning on Mobile.pdf (20)

Machine Learning on Mobile
Machine Learning on MobileMachine Learning on Mobile
Machine Learning on Mobile
 
Introduction to AI
Introduction to AIIntroduction to AI
Introduction to AI
 
Machine Learning for the Enterprise, ft. Sony Interactive Entertainment (ENT2...
Machine Learning for the Enterprise, ft. Sony Interactive Entertainment (ENT2...Machine Learning for the Enterprise, ft. Sony Interactive Entertainment (ENT2...
Machine Learning for the Enterprise, ft. Sony Interactive Entertainment (ENT2...
 
Real-World AI and Deep Learning for Enterprise with Case Studies
Real-World AI and Deep Learning for Enterprise with Case StudiesReal-World AI and Deep Learning for Enterprise with Case Studies
Real-World AI and Deep Learning for Enterprise with Case Studies
 
Visão Geral de Inteligência Artificial
Visão Geral de Inteligência ArtificialVisão Geral de Inteligência Artificial
Visão Geral de Inteligência Artificial
 
AI Powered Conversational Interfaces
AI Powered Conversational InterfacesAI Powered Conversational Interfaces
AI Powered Conversational Interfaces
 
以 AWS 上的人工智能及數據平台開拓未來
以 AWS 上的人工智能及數據平台開拓未來以 AWS 上的人工智能及數據平台開拓未來
以 AWS 上的人工智能及數據平台開拓未來
 
Artificial Intelligence nella realtà di oggi: come utilizzarla al meglio
Artificial Intelligence nella realtà di oggi: come utilizzarla al meglioArtificial Intelligence nella realtà di oggi: come utilizzarla al meglio
Artificial Intelligence nella realtà di oggi: come utilizzarla al meglio
 
AIoT: AI Meets IoT (IOT204) - AWS re:Invent 2018
AIoT: AI Meets IoT (IOT204) - AWS re:Invent 2018AIoT: AI Meets IoT (IOT204) - AWS re:Invent 2018
AIoT: AI Meets IoT (IOT204) - AWS re:Invent 2018
 
ai mlLeverage Data and AI/ML to Drive New Experiences and Make Better Decisions
ai mlLeverage Data and AI/ML to Drive New Experiences and Make Better Decisionsai mlLeverage Data and AI/ML to Drive New Experiences and Make Better Decisions
ai mlLeverage Data and AI/ML to Drive New Experiences and Make Better Decisions
 
How Trupanion Became an AI-driven Company for Pets
How Trupanion Became an AI-driven Company for PetsHow Trupanion Became an AI-driven Company for Pets
How Trupanion Became an AI-driven Company for Pets
 
Ai in Learning Thought Paper
Ai in Learning Thought PaperAi in Learning Thought Paper
Ai in Learning Thought Paper
 
An Overview of Machine Learning on AWS
An Overview of Machine Learning on AWSAn Overview of Machine Learning on AWS
An Overview of Machine Learning on AWS
 
AWS AI state of the union - AWS Cape Town Summit 2018
AWS AI state of the union - AWS Cape Town Summit 2018AWS AI state of the union - AWS Cape Town Summit 2018
AWS AI state of the union - AWS Cape Town Summit 2018
 
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
 
Building the Organization of the Future: Leveraging AI & ML
Building the Organization of the Future: Leveraging AI & ML Building the Organization of the Future: Leveraging AI & ML
Building the Organization of the Future: Leveraging AI & ML
 
Practical Human-in-the-Loop Machine Learning
 Practical Human-in-the-Loop Machine Learning Practical Human-in-the-Loop Machine Learning
Practical Human-in-the-Loop Machine Learning
 
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
 
Drive digital transformation with AI
Drive digital transformation with AIDrive digital transformation with AI
Drive digital transformation with AI
 
Machine Learning for innovation and transformation
Machine Learning for innovation and transformationMachine Learning for innovation and transformation
Machine Learning for innovation and transformation
 

More from Amazon 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

More from 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
 

Dennis Hills - Introduction to Machine Learning on Mobile.pdf

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Introduction to Machine Learning on Mobile Dennis Hills Developer Advocate, AWS Mobile Pop-up Loft
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is AI? Artificial Intelligence (AI) is a broad term for applying ANY technique that enables computers to mimic human intelligence, using logic, if- then rules, decision trees, and machine learning (including deep learning). – think chatbots, robots, and KITT from Knight Rider! Inventing entirely new customer experiences Drones Voice driven interactions
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is Machine Learning? A subset of AI: Machine learning (ML) is a set of methods that can automatically detect patterns in data, and then use the uncovered patterns to predict future data, or to perform other kinds of decision making under uncertainty. Personalized recommendations Fulfillment automation and inventory management
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. More definitions… Machine Learning is all about using data to answer questions. First, data (e.g., images, text, or voice) is provided along with answers (labels) to that data. Then the computer (model) is trained on this data so it can “learn” and later make predictions (aka inference) on the mobile device.
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Important for mobile In general… mobile apps use pre-trained models to make predictions. These models are first trained outside of the app—typically in the cloud—and then brought into the app to accomplish the task you desire.
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why all the hype?! Several developments in the world of ML are creating an exciting playing field for mobile developers:
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What’s Changed? Advances in neural networks (algorithms) have dramatically improved accuracy in recognizing images and speech. Accuracy rates matter. So, what seemed like science fiction not so long ago is here today. 1
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What’s Changed? Advances in cloud computing have greatly reduced the time it takes to train these models. I’m talking weeks to hours! That means fewer resources, reduced capital expenses, and faster to market. 2
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What’s Changed? There’s also been a flood of third-party API-driven machine learning services hitting the market that do a lot of the heavy lifting for you. Build your own or let someone else do it. 3
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Three Types of Machine Learning Supervised Learning Unsupervised Learning Reinforcement Learning
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Supervised Learning Supervised learning is a system of all labeled data and a predictive model. We use labeled data to train a “model” and then use that “model” to make predictions (inference) on new unlabeled data. The trained model is the core of our discussion when it comes to machine learning on a mobile device.
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Supervised learning consists of two problem-solving tasks: Regression and Classification.
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Regression Regression: Based on data input, this ML predicts a continuous numerical value where the output is a real value, such as “dollars” or “pounds”. For example, I have a 2009 Honda Civic EX with 200,000 miles in fair condition in Seattle. What is my car worth?
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Classification Classification: This ML takes mined data to deliver a categorical output variable, such as “cat” or “dog.” For example, when you take a picture of your neighbor’s pet, the ML on your phone can tell you it’s a dog and what the dog is doing.
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Getting Started So, we now understand machine learning, why it’s being used, and what problems it can solve, but how do I start playing with it as a mobile developer?
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. iOS => Core ML Android => TensorFlow Lite
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Now, you may be asking…why not TensorFlow Lite on Android and iOS?!?! Answer: Use the best tool for the job
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Best of Both Worlds When it Comes to Prediction The ML model is really the core of ML and you are simply interfacing with the same trained model on the device, but using the best framework for each platform.
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Imagine a little baby sitting between the two icons . . . that baby is the ML Model they both have in common.
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you Get Started: aws.amazon.com/mobile AWS Mobile Twitter:@AWSforMobile Dennis Hills: @dmennis