1 of 156

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

2 of 156

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

3 of 156

Our team!

with help from many more

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

4 of 156

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

5 of 156

Our website!

home base for all information!

tinyMLedu.org/EASI-22

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

6 of 156

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

7 of 156

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

8 of 156

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

9 of 156

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

10 of 156

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

11 of 156

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

12 of 156

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

13 of 156

The Turing Test

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

14 of 156

The Turing Test

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

15 of 156

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

16 of 156

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

17 of 156

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

18 of 156

Traditional AI Programming

Traditional AI Programming

Rules

Data

Answers

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

19 of 156

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

20 of 156

Traditional AI Programming

Traditional AI Programming

Rules

Data

Answers

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

21 of 156

Traditional AI Programming

Traditional AI Programming

Rules

Data

Answers

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

22 of 156

Traditional AI Programming

Traditional AI Programming

Rules

Data

Answers

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

23 of 156

Deep Blue

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

24 of 156

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

25 of 156

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

26 of 156

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

27 of 156

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

28 of 156

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

29 of 156

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

30 of 156

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

31 of 156

Experiments with Google

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

32 of 156

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

33 of 156

Fill in the blank

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

34 of 156

Fill in the blank

tomorrow

later

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

35 of 156

Prediction: autocomplete

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

36 of 156

AutoDraw

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

37 of 156

AutoDraw

autodraw.com

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

38 of 156

Discussion Groups

  1. Do you think the AI did a good job? 👍 / 👎
  2. Why do you think the AI did �(or did not) work well?
  3. How do you think the AI is working �to solve this task? 🤔
  4. What types of things were particularly �hard or easy for the AI?

anything else?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

39 of 156

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

40 of 156

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

41 of 156

Artificial Intelligence

Machine Learning

What’s the difference?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

42 of 156

Artificial Intelligence

Machine Learning

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

43 of 156

Traditional AI Programming

Traditional AI Programming

Rules

Data

Answers

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

44 of 156

Traditional AI Programming

Traditional AI Programming

Rules

Data

Answers

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

45 of 156

Categorize

1

2

3

4

5

6

7

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

46 of 156

8

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

47 of 156

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

48 of 156

Activity Detection with Machine Learning

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

49 of 156

Activity Detection with Machine Learning

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

50 of 156

Activity Detection with Machine Learning

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

51 of 156

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

52 of 156

Object Detection

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

53 of 156

Segmentation

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

54 of 156

Training the machine

ANSWERS

WE PROVIDE

INPUTS

RULES

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

55 of 156

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

56 of 156

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

57 of 156

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

58 of 156

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

59 of 156

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

60 of 156

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

61 of 156

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

62 of 156

Training the machine

ML

RULES

LABELS

INPUTS

CAT

CAT

DOG

DOG

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

63 of 156

After it’s learned:

Model

RULES

NEW

INPUTS

ANSWERS

NEW

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

64 of 156

After it’s learned:

Model

RULES

NEW

UNLABELED

INPUTS

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

65 of 156

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

66 of 156

Deep Learning

Machine Learning

Ok so what about Deep Learning?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

67 of 156

Artificial Intelligence

Machine Learning

Deep Learning

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

68 of 156

Artificial Intelligence

Machine Learning

Deep Learning

a lot of�DATA

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

69 of 156

Training the machine

Make a Guess!

Neural Network

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

70 of 156

Neural network

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

71 of 156

Neural network

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

72 of 156

Neural network

Y

X

threshold

0

1

Activation Function

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

73 of 156

Neural network

X

Y

artificial

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

74 of 156

Neural network

X

Y

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

75 of 156

Neural network

Y

X

threshold

0

1

X

Y

Activation Function

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

76 of 156

Multi-layer�neural network

X

Y

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

77 of 156

Deep Learning

with Neural Networks

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

78 of 156

Training the machine

ML

RULES

LABELS

INPUTS

CAT

CAT

DOG

DOG

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

79 of 156

Case Study:

Handwriting

LABELS

INPUTS

practice�DATA

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

80 of 156

Case Study:

Handwriting

practice�DATA

ML

RULES

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

81 of 156

Case Study:

Handwriting

ML

RULES

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

82 of 156

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

83 of 156

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

84 of 156

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

85 of 156

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

86 of 156

After Training the Model is VERY good!

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

87 of 156

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

88 of 156

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

89 of 156

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

90 of 156

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

91 of 156

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

92 of 156

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

93 of 156

Thing Translator

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

94 of 156

Thing Translator

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

95 of 156

Thing Translator

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

96 of 156

Thing Translator

thing-translator.appspot.com

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

97 of 156

Discussion Groups

  • Do you think the AI did a good job? 👍 / 👎
  • Why do you think the AI worked well?
  • How did the AI solve this task? 🤔
  • What types of things were particularly �hard or easy for the AI?
  • Was the AI better or worse in this experiment? Why do you think?

anything else?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

98 of 156

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

99 of 156

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

100 of 156

TinyML

ML

What’s the difference?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

101 of 156

Cloud / Server

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

102 of 156

Mobile

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

103 of 156

ML on

Embedded Devices

Google Assistant

nest

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

104 of 156

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

105 of 156

No Good Data Left Behind

5 Quintillion

bytes of data produced every day by IoT

<1%

of unstructured data is analyzed or used at all

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

106 of 156

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

107 of 156

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

108 of 156

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

109 of 156

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

110 of 156

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

111 of 156

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

112 of 156

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

113 of 156

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

114 of 156

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

115 of 156

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

116 of 156

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

117 of 156

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

118 of 156

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

119 of 156

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

120 of 156

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

121 of 156

TinyRL: Autonomous Navigation on Nano Drone

121

[ICRA’21]

[IROS’21]

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

122 of 156

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

123 of 156

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

124 of 156

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

125 of 156

Good Data is Necessary for Accuracy

What problem are you

trying to solve?

  • Your data must contain useful features
  • Can a human (expert) distinguish �between examples of each class?
  • How will you measure performance?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

126 of 156

Good Data is Necessary for Accuracy

What problem are you

trying to solve?

  • Your data must contain useful features
  • Can a human (expert) distinguish �between examples of each class?
  • How will you measure performance?

Both quantity and quality

will influence your

model’s performance

  • Wide variety of training examples
  • Correct labels (answers)
  • Good Balance (e.g., dog, cat, random)

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

127 of 156

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

128 of 156

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

129 of 156

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

130 of 156

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

131 of 156

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

132 of 156

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

133 of 156

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

134 of 156

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

135 of 156

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

136 of 156

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

137 of 156

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

138 of 156

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

139 of 156

Bonus Content:

Scaling TinyML

139

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

140 of 156

140

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

141 of 156

141

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

142 of 156

142

?

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

143 of 156

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 of 156

144

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

145 of 156

145

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

146 of 156

146

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

147 of 156

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 of 156

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 of 156

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 of 156

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 of 156

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 of 156

152

ML Operations

TinyML

BREADTHof experience, knowledge, & sectors

DEPTHhigh skills in one discipline

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

153 of 156

153

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

154 of 156

Our website!

home base for all information!

tinyMLedu.org/EASI-22

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

155 of 156

Our team!

with help from many more

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0

156 of 156

see you again at 12pm (Mountain Time)

hágoóneeʼ 👋

Copyright (c) 2022 TinyMLedu.

All rights reserved.

CC BY-NC-SA 4.0