EASI-22
with Navajo Tech
Edge AI Summer �Institute 2022
Yá’át’ééh 👋
Harvard
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Hi! I’m Brian!
I’m an Assistant Professor of Computer Science at Barnard College, Columbia University
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Our team!
with help from many more
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Our website!
home base for all information!
tinyMLedu.org/EASI-22
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Make Sure to Pick Up an Arduino Kit!
Question? Contact: Monsuru Ramoni
mramoni@navajotech.edu
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Teachers Sign up for Buy2Pay
Question? Contact:
Molly Marshall
mmarshall@seas.harvard.edu
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Workshop Agenda
9
Introduction to AI and (Tiny)ML
Cloud ML
Day 1
Keyword Spotting for the Navajo Language
Mobile ML
Day 2
Bringing AI/ML from the Cloud to the Edge
Embedded ML
Day 3
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
10
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
11
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Artificial Intelligence (AI) is when a computer can…
Think Like A Human
Think Rationally
Act Rationally
Act Like a Human
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The Turing Test
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The Turing Test
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The Turing Test
Chatbots can be convincing
Q: What is your favorite animal?
A: My favorite animal is a dog.
Q: Why?
A: Because dogs are loyal and friendly.
Q: What are two reasons that a dog might be in a bad mood?
A: Two reasons that a dog might be in a bad mood are if it is hungry or if it is hot.
Q: How many eyes does a giraffe have?
A: A giraffe has two eyes.
Q: How many legs does a frog have?
A: A frog has four legs.
Q: Are there any animals with three legs?
A: No, there are no animals with three legs.
Q: Why don't animals have three legs?
A: Animals don't have three legs because they would fall over.
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The Turing Test
Chatbots can be convincing
Q: What is your favorite animal?
A: My favorite animal is a dog.
Q: Why?
A: Because dogs are loyal and friendly.
Q: What are two reasons that a dog might be in a bad mood?
A: Two reasons that a dog might be in a bad mood are if it is hungry or if it is hot.
Q: How many eyes does a giraffe have?
A: A giraffe has two eyes.
Q: How many legs does a frog have?
A: A frog has four legs.
Q: Are there any animals with three legs?
A: No, there are no animals with three legs.
Q: Why don't animals have three legs?
A: Animals don't have three legs because they would fall over.
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The Turing Test
But they only know “what they know”
Q: How many eyes does a giraffe have?
A: A giraffe has two eyes.
Q: How many eyes does my foot have?
A: Your foot has two eyes.
Q: How many eyes does a spider have?
A: A spider has eight eyes.
Q: How many eyes does the sun have?
A: The sun has one eye.
Q: How many eyes does a blade of grass have?
A: A blade of grass has one eye.
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
AI is the study of algorithms that can give computers the rules they need to be “intelligent”!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Blue
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Blue
On average in any board configuration there are 35 possible moves in chess.
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Blue
On average in any board configuration there are 35 possible moves in chess.
That means that the computer can search for the move that eventually leads to success with a 35turns guesses
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Blue
On average in any board configuration there are 35 possible moves in chess.
That means that the computer can search for the move that eventually leads to success with a 35turns guesses
That means if a chess game took 10 turns and the computer could check 1 billion guesses a second it would take ?????? to come up with the optimal move!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Blue
On average in any board configuration there are 35 possible moves in chess.
That means that the computer can search for the move that eventually leads to success with a 35turns guesses
That means if a chess game took 10 turns and the computer could check 1 billion guesses a second it would take 30 days to come up with the optimal move!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Blue
So deep blue searched ~7 turns ahead and relied on a board scoring rule created by the programmers!
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
29
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
30
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Experiments with Google
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Fill in the blank
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Fill in the blank
tomorrow
later
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Prediction: autocomplete
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
AutoDraw
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
AutoDraw
autodraw.com
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Discussion Groups
anything else?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
39
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
40
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Artificial Intelligence
Machine Learning
What’s the difference?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Artificial Intelligence
Machine Learning
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Traditional AI Programming
Traditional AI Programming
Rules
Data
Answers
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Categorize
1
2
3
4
5
6
7
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
8
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The Machine Learning Paradigm
Traditional AI Programming
Rules
Data
Answers
Machine Learning
Answers
BIG Data
Rules
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Activity Detection with Machine Learning
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Activity Detection with Machine Learning
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Activity Detection with Machine Learning
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Review what we’ve learned
Machine learning provides a computer with data, rather than explicit instructions. Using these data, the computer learns to recognize patterns and becomes able to execute tasks on its own.
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Object Detection
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Segmentation
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
ANSWERS
WE PROVIDE
INPUTS
RULES
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
For a set of Input Data
�CAT
�CAT
DOG
Input, Label
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
Input, Label
Result
�CAT
�CAT
DOG
Dog
Dog
Cat
For a set of Input Data
Guess the Answer�and count mistakes
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
Loss�function of mistakes
Guess the Answer�and count mistakes
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
Improve the model to be more correct
For a set of Input Data
Guess the Answer�and count mistakes
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
Minimum
Loss�number of mistakes
Improve the model to be more correct
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
Improve the model to be more correct
For a set of Input Data
Guess the Answer�and count mistakes
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
https://www.researchgate.net/publication/339545333_The_Connectivity_Evaluation_Among_Wells_in_Reservoir_Utilizing_Machine_Learning_Methods/figures?lo=1
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
ML
RULES
LABELS
INPUTS
�CAT
�CAT
DOG
DOG
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
After it’s learned:
Model
RULES
NEW
INPUTS
ANSWERS
NEW
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
After it’s learned:
Model
RULES
NEW
UNLABELED
INPUTS
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Making predictions:
Model
RULES
NEW
UNLABELED
INPUTS
NEW
ANSWERS (LABELS)
CAT
DOG
This is often called INFERENCE!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Learning
Machine Learning
Ok so what about Deep Learning?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Artificial Intelligence
Machine Learning
Deep Learning
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Artificial Intelligence
Machine Learning
Deep Learning
a lot of�DATA
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
Make a Guess!
Neural Network
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Neural network
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Neural network
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Neural network
Y
X
threshold
0
1
Activation Function
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Neural network
X
Y
artificial
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Neural network
X
Y
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Neural network
Y
X
threshold
0
1
X
Y
Activation Function
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Multi-layer�neural network
X
Y
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Deep Learning
with Neural Networks
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Training the machine
ML
RULES
LABELS
INPUTS
�CAT
�CAT
DOG
DOG
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Case Study:
Handwriting
LABELS
INPUTS
practice�DATA
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Case Study:
Handwriting
practice�DATA
ML
RULES
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Case Study:
Handwriting
ML
RULES
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What number?
00
0
0
0
0
0
1
0
0
It’s a 7!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What number?
00
0
0
0
0
0
1
0
0
It’s a 7!
28px
28px
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What number?
00
0
0
0
0
0
1
0
0
It’s a 7!
28px
28px
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Transform:�flatten
00
0
0
0
0
0
1
0
0
It’s a 7!
784
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
After Training the Model is VERY good!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
And it can solve problems we couldn’t solve without ML!
DeepBlue
On average in any board configuration there are 35 possible moves in chess.
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
And it can solve problems we couldn’t solve without ML!
DeepBlue
On average in any board configuration there are 35 possible moves in chess.
AlphaGo
“There are an astonishing 10 to the power of 170 possible board configurations - more than the number of atoms in the known universe. This makes the game of Go a googol times more complex than chess.”
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
But It Need Lots of Data
6000 Images / Class
10 Classes
This is considered a SMALL and simple dataset (~45MB)
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
But It Need Lots of Data
6000 Images / Class
10 Classes
GPT-3 Used ~45TB of data that’s ~1,000,000 times more data than MNIST!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
91
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
92
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Thing Translator
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Thing Translator
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Thing Translator
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Thing Translator
thing-translator.appspot.com
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Discussion Groups
anything else?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
98
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
99
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
TinyML
ML
What’s the difference?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Cloud / Server
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Mobile
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
ML on
Embedded Devices
Google Assistant
nest
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
Google Assistant
nest
IoT 1.0:
Internet
of Things
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
No Good Data Left Behind
5 Quintillion
bytes of data produced every day by IoT
Source: Harvard Business Review, What’s Your Data Strategy?, April 18, 2017
Cisco, Internet of Things (IoT) Data Continues to Explode Exponentially. Who Is Using That Data and How?, Feb 5, 2018
<1%
of unstructured data is analyzed or used at all
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
IoT 1.0:
Internet
of Things
B
L
E
R
P
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
IoT 1.0:
Internet
of Things
Bandwidth
Latency
Energy
Reliability
Privacy
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
IoT 1.0:
Internet
of Things
Bandwidth
Latency
Energy
Reliability
Privacy
Battery Life is only O(months) and only sends GPS signal
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
IoT 1.0:
Internet
of Things
Bandwidth
Latency
Energy
Reliability
Privacy
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
IoT 1.0:
Internet
of Things
Bandwidth
Latency
Energy
Reliability
Privacy
Google Assistant
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
IoT 2.0: Intelligence on Things
IoT 1.0:
Internet
of Things
Bandwidth
Latency
Energy
Reliability
Privacy
TinyML to the rescue!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Algorithms, hardware, software
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Algorithms, hardware, software
On-device sensor analytics
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Algorithms, hardware, software
Low power consumption
On-device sensor analytics
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Algorithms, hardware, software
Low power consumption
On-device sensor analytics
Battery-operated
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Algorithms, hardware, software
Low power consumption
On-device sensor analytics
Always-on ML
Battery-operated
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
What is Tiny Machine Learning (TinyML)?
TinyML
Fastest-growing field of ML
Algorithms, hardware, software
Low power consumption
On-device sensor analytics
Always-on ML
Battery-operated
Putting ML on embedded devices!
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Promising Social Applications of TinyML
Wildlife conservation
Agriculture
May be able to reduce agrichemical use to 0.1% of conventional blanket spraying
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
TinyRL: Autonomous Navigation on Nano Drone
121
[ICRA’21]
[IROS’21]
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The (Tiny) Machine Learning Workflow
Collect & Transform
Data
Design & Train� a Model
Convert
Model
Deploy
Model
Make
Inferences
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
The (Tiny) Machine Learning Workflow
Collect & Transform
Data
Design & Train� a Model
Convert
Model
Deploy
Model
Make
Inferences
If ML is going to be everywhere we need to consider how to best collect GOOD data RESPONSIBLY
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Good Data is Necessary for Accuracy
What problem are you
trying to solve?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Good Data is Necessary for Accuracy
What problem are you
trying to solve?
Both quantity and quality
will influence your
model’s performance
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Potential Bias in Speech Recognition
Gender
Sources of Bias
Gender
Age
Group
Accent
Dialect
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
129
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Today’s Agenda
What is Artificial Intelligence?
Hands-on: AutoDraw
What is (Deep) Machine Learning?
Hands-on: ThingTranslator
What is Responsible TinyML?
Summary
130
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
131
Collect & Transform
Data
Design & Train� a Model
Convert
Model
Deploy
Model
Make
Inferences
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
LABELS
INPUTS
Dog
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
Sources of Bias
Gender
Age
Group
Accent
Dialect
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Y
X
threshold
0
1
Activation Function
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
X
Y
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
practice�DATA
ML
RULES
For a set of Input Data
Guess the Answer�and count mistakes
Improve the model to be more correct
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
Neural Network
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
Google Assistant
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Machine Learning Workflow
Collect &�Transform Data
Design & Train� a Model
Evaluate
Optimize
Convert
Model
Deploy
Model
Make
Inferences
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Bonus Content:
Scaling TinyML
139
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
140
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
141
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
142
?
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
143
Source: https://blogs.gartner.com/andrew_white/2019/01/03/our-top-data-and-analytics-predicts-for-2019/
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
144
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
145
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
146
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
MLCode
147
Training formalization
Experimentation & prototyping
Data Engineering
�Dataset & feature repository
Problem Definition
�Model registry
�ML metadata & artifact repository
�Version Control
Model Validation
Model Prototyping
Data Selection
Data Exploration
Feature Engineering
Implement training pipeline
Training operationalization
Code & Config
<\>
Dataset
<\>
Parameters, metrics, annotations
<\>
Trained Model
<\>
Model Evaluation
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
148
ML Development
ML Training
Continuous Training
Model Deployment
Prediction Serving
Continuous Monitoring
Data, Model Management
Code & Config
Training Pipeline
Serving Logs
Convert Model
Tensor Flow Lite Model
Serving Package
Registered Model
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
149
ML Development
ML Training
Continuous Training
Model Deployment
Prediction Serving
Continuous Monitoring
Data, Model Management
Code & Config
Training Pipeline
Serving Logs
Convert Model
Tensor Flow Lite Model
Serving Package
Registered Model
ML Engineer
ML Researcher
Data Scientist
Data Engineer
Software Engineer
DevOps
Business Analyst
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
150
ML Expertise
BASIC
EXPERT
ML Engineer
ML Researcher
Data Scientist
Data Engineer
Software Engineer
DevOps
Business Analyst
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
151
Deployment Expertise
BASIC
ML Engineer
ML Researcher
Data Scientist
Data Engineer
Software Engineer
DevOps
Business Analyst
EXPERT
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
152
ML Operations
TinyML
BREADTH�of experience, knowledge, & sectors
DEPTH�high skills in one discipline
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
153
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Our website!
home base for all information!
tinyMLedu.org/EASI-22
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
Our team!
with help from many more
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0
see you again at 12pm (Mountain Time)
hágoóneeʼ 👋
Copyright (c) 2022 TinyMLedu.
All rights reserved.
CC BY-NC-SA 4.0