SlideShare a Scribd company logo
1 of 9
Download to read offline
TinyML: TFLite for
Microcontrollers
Robert John
GDE ML & GCP
@robert_thas
Machine Learning on Embedded Edge Devices
Why Machine Learning?
Learning from example: activity detection, pet
classification
โ— We canโ€™t write rules for everything
โ— We produce enough data for our examples
โ— We have powerful machines for training
Why Embedded Edge Devices?
Some computers do only one thing!
โ— Placed in hard-to-reach places
โ— Run on batteries
โ— Replaced once a year or even longer
โ— No keyboard or mouse
โ— Rely on sensors or inputs from other microcontrollers
โ— Control other microcontrollers or other outputs
โ— Smart temperature example
Sensors on Edge Devices
More sensors than the average computer
โ— Motion sensors
โ— Biometric sensors
โ— Acoustic sensors
โ— Environmental sensors
โ— Force sensors
Constraints on Edge Devices
Canโ€™t eat your cake and have it
Raspberry Pi Pico HP Chromebook
(Celeron)
Raspberry Pi 4
Classification Microcontroller Personal Computer Single-Board Computer
Microprocessor RP2040 Celeron BCM2711
Processor Designer Raspberry Intel Broadcom
ISA Family Arm Cortex-M0+ IA32 (32-bit x86) Arm Cortex-A72
Clock speed 133MHz 3.5 GHz 1.5 GHz
RAM 264 KB 4GB/8GB 2GB/4GB/8GB
Storage 2MB Flash HDD/SSD HDD/SSD
Inputs GPIO Serial Keyboard/Mouse Keyboard/Mouse
Outputs GPIO Serial Monitor/Speakers Monitor/Speakers
Edge ML Deployment Challenges
Inference is all you need!
โ— Pre-trained models are hard to fit into MCUs
โ— No OS to act as hardware buffer
โ— Mobile-optimized models might use instructions not present on MCU
โ— Need to understand the underlying ISA
โ— Floating-point arithmetic usually not present
โ— Model is task specific, no need classify 1000 images!
โ— Might need to start from scratch!!
โ— Need to know Python and C/C++
Keep It Simple!
You only need inference!
โ— The model should only be as large as it needs to be to guaranty the required
accuracy
โ— Leverage quantization-aware training to avoid model degradation
โ— Implement post-training quantization to shrink models from floating-point
(32-bit) to integer (8-bit)
โ— Itโ€™s okay to lose a little bit of context during inference
Learn More
Important Resources
โ— TensorFlow: https://www.tensorflow.org/
โ— TensorFlow Lite: https://www.tensorflow.org/lite
โ— TFLu: https://www.tensorflow.org/lite/microcontrollers
โ— TinyML Foundation: https://www.tinyml.org/
โ— TinyML Course on EdX:
https://www.edx.org/professional-certificate/harvardx-tiny-machine-learning
โ— Embedded Systems Essentials:
https://www.edx.org/professional-certificate/armeducationx-embedded-systems-essentials
โ—
Thank You!
Robert John
GDE ML & GCP
@robert_thas

More Related Content

What's hot

Edge Computing: Bringing the Internet Closer to You
Edge Computing: Bringing the Internet Closer to YouEdge Computing: Bringing the Internet Closer to You
Edge Computing: Bringing the Internet Closer to YouMegan O'Keefe
ย 
TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT   TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT Mia Chang
ย 
Why Drones are the Future of IoT
Why Drones are the Future of IoTWhy Drones are the Future of IoT
Why Drones are the Future of IoTColin Snow
ย 
What Is The Artificial Intelligence Of Things? When AI Meets IoT
What Is The Artificial Intelligence Of Things? When AI Meets IoTWhat Is The Artificial Intelligence Of Things? When AI Meets IoT
What Is The Artificial Intelligence Of Things? When AI Meets IoTBernard Marr
ย 
When IoT Meets Artificial Intelligence
 When IoT Meets Artificial Intelligence When IoT Meets Artificial Intelligence
When IoT Meets Artificial IntelligenceVeselin Pizurica
ย 
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...Edureka!
ย 
OpenAIโ€™s GPT 3 Language Model - guest Steve Omohundro
OpenAIโ€™s GPT 3 Language Model - guest Steve OmohundroOpenAIโ€™s GPT 3 Language Model - guest Steve Omohundro
OpenAIโ€™s GPT 3 Language Model - guest Steve OmohundroNumenta
ย 
Internet of Things Overview
Internet of Things OverviewInternet of Things Overview
Internet of Things OverviewRomin Irani
ย 
NVIDIA Keynote #GTC21
NVIDIA Keynote #GTC21 NVIDIA Keynote #GTC21
NVIDIA Keynote #GTC21 Alison B. Lowndes
ย 
Machine Learning on Your Hand - Introduction to Tensorflow Lite Preview
Machine Learning on Your Hand - Introduction to Tensorflow Lite PreviewMachine Learning on Your Hand - Introduction to Tensorflow Lite Preview
Machine Learning on Your Hand - Introduction to Tensorflow Lite PreviewModulabs
ย 
ChatGPT - AI.pdf
ChatGPT - AI.pdfChatGPT - AI.pdf
ChatGPT - AI.pdfBannoon1
ย 
Internet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
Internet of Things(IOT)_Seminar_Dr.G.RajeshkumarInternet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
Internet of Things(IOT)_Seminar_Dr.G.RajeshkumarRAJESHKUMARG12
ย 
Internet of Things (IoT) Presentation
Internet of Things (IoT) PresentationInternet of Things (IoT) Presentation
Internet of Things (IoT) PresentationJason K
ย 
Regulating Generative AI - LLMOps pipelines with Transparency
Regulating Generative AI - LLMOps pipelines with TransparencyRegulating Generative AI - LLMOps pipelines with Transparency
Regulating Generative AI - LLMOps pipelines with TransparencyDebmalya Biswas
ย 
โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...
โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...
โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...Edge AI and Vision Alliance
ย 
Artificial intelligence and IoT
Artificial intelligence and IoTArtificial intelligence and IoT
Artificial intelligence and IoTVeselin Pizurica
ย 

What's hot (20)

Edge Computing: Bringing the Internet Closer to You
Edge Computing: Bringing the Internet Closer to YouEdge Computing: Bringing the Internet Closer to You
Edge Computing: Bringing the Internet Closer to You
ย 
Introduction to IoT - Unit I
Introduction to IoT - Unit IIntroduction to IoT - Unit I
Introduction to IoT - Unit I
ย 
Transformers - Part 1
Transformers - Part 1Transformers - Part 1
Transformers - Part 1
ย 
TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT   TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT
ย 
Why Drones are the Future of IoT
Why Drones are the Future of IoTWhy Drones are the Future of IoT
Why Drones are the Future of IoT
ย 
What Is The Artificial Intelligence Of Things? When AI Meets IoT
What Is The Artificial Intelligence Of Things? When AI Meets IoTWhat Is The Artificial Intelligence Of Things? When AI Meets IoT
What Is The Artificial Intelligence Of Things? When AI Meets IoT
ย 
When IoT Meets Artificial Intelligence
 When IoT Meets Artificial Intelligence When IoT Meets Artificial Intelligence
When IoT Meets Artificial Intelligence
ย 
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
ย 
OpenAIโ€™s GPT 3 Language Model - guest Steve Omohundro
OpenAIโ€™s GPT 3 Language Model - guest Steve OmohundroOpenAIโ€™s GPT 3 Language Model - guest Steve Omohundro
OpenAIโ€™s GPT 3 Language Model - guest Steve Omohundro
ย 
Internet of Things Overview
Internet of Things OverviewInternet of Things Overview
Internet of Things Overview
ย 
On-device ML with TFLite
On-device ML with TFLiteOn-device ML with TFLite
On-device ML with TFLite
ย 
NVIDIA Keynote #GTC21
NVIDIA Keynote #GTC21 NVIDIA Keynote #GTC21
NVIDIA Keynote #GTC21
ย 
Machine Learning on Your Hand - Introduction to Tensorflow Lite Preview
Machine Learning on Your Hand - Introduction to Tensorflow Lite PreviewMachine Learning on Your Hand - Introduction to Tensorflow Lite Preview
Machine Learning on Your Hand - Introduction to Tensorflow Lite Preview
ย 
ChatGPT - AI.pdf
ChatGPT - AI.pdfChatGPT - AI.pdf
ChatGPT - AI.pdf
ย 
On-Device AI
On-Device AIOn-Device AI
On-Device AI
ย 
Internet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
Internet of Things(IOT)_Seminar_Dr.G.RajeshkumarInternet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
Internet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
ย 
Internet of Things (IoT) Presentation
Internet of Things (IoT) PresentationInternet of Things (IoT) Presentation
Internet of Things (IoT) Presentation
ย 
Regulating Generative AI - LLMOps pipelines with Transparency
Regulating Generative AI - LLMOps pipelines with TransparencyRegulating Generative AI - LLMOps pipelines with Transparency
Regulating Generative AI - LLMOps pipelines with Transparency
ย 
โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...
โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...
โ€œPowering the Connected Intelligent Edge and the Future of On-Device AI,โ€ a P...
ย 
Artificial intelligence and IoT
Artificial intelligence and IoTArtificial intelligence and IoT
Artificial intelligence and IoT
ย 

Similar to TinyML: Machine Learning for Microcontrollers

Choose your dev platform
Choose your dev platformChoose your dev platform
Choose your dev platformMarian Marinov
ย 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advancedImran Sheikh
ย 
MicroPython&electronics prezentฤcija
MicroPython&electronics prezentฤcija MicroPython&electronics prezentฤcija
MicroPython&electronics prezentฤcija CRImier
ย 
Fluent-bit
Fluent-bitFluent-bit
Fluent-biteventdotsjp
ย 
Solving IoT Hardware Issues With Docker
Solving IoT Hardware Issues With DockerSolving IoT Hardware Issues With Docker
Solving IoT Hardware Issues With DockerWill Hall
ย 
Embedded Linux Systems Basics
Embedded Linux Systems BasicsEmbedded Linux Systems Basics
Embedded Linux Systems BasicsMax Henery
ย 
What is a microcontroller
What is a microcontrollerWhat is a microcontroller
What is a microcontrollerparassini
ย 
Arduino Hands-on Workshop
Arduino Hands-on WorkshopArduino Hands-on Workshop
Arduino Hands-on WorkshopSuraj Kumar Jana
ย 
Introduction to Firmware
Introduction to FirmwareIntroduction to Firmware
Introduction to FirmwareCaroline Murphy
ย 
Hardware hacking
Hardware hackingHardware hacking
Hardware hackingTavish Naruka
ย 
Presentation
PresentationPresentation
PresentationAanchal Batra
ย 
Building Trojan Hardware at Home
Building Trojan Hardware at HomeBuilding Trojan Hardware at Home
Building Trojan Hardware at HomeE Hacking
ย 
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)Ron Munitz
ย 
Java 101 @ chattahoochee
Java 101 @ chattahoocheeJava 101 @ chattahoochee
Java 101 @ chattahoocheeDeanna Riddlespur
ย 
2015 01 24 Coding4Fun at Tajamar
2015 01 24 Coding4Fun at Tajamar2015 01 24 Coding4Fun at Tajamar
2015 01 24 Coding4Fun at TajamarBruno Capuano
ย 
lecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdflecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdfNikos374016
ย 

Similar to TinyML: Machine Learning for Microcontrollers (20)

Choose your dev platform
Choose your dev platformChoose your dev platform
Choose your dev platform
ย 
2019 04-23-tf lite-avid-f
2019 04-23-tf lite-avid-f2019 04-23-tf lite-avid-f
2019 04-23-tf lite-avid-f
ย 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
ย 
Lect 1 Into.pptx
Lect 1 Into.pptxLect 1 Into.pptx
Lect 1 Into.pptx
ย 
Micro-controllers (PIC) based Application Development
Micro-controllers (PIC) based Application DevelopmentMicro-controllers (PIC) based Application Development
Micro-controllers (PIC) based Application Development
ย 
MicroPython&electronics prezentฤcija
MicroPython&electronics prezentฤcija MicroPython&electronics prezentฤcija
MicroPython&electronics prezentฤcija
ย 
Fluent-bit
Fluent-bitFluent-bit
Fluent-bit
ย 
Solving IoT Hardware Issues With Docker
Solving IoT Hardware Issues With DockerSolving IoT Hardware Issues With Docker
Solving IoT Hardware Issues With Docker
ย 
Embedded Linux Systems Basics
Embedded Linux Systems BasicsEmbedded Linux Systems Basics
Embedded Linux Systems Basics
ย 
What is a microcontroller
What is a microcontrollerWhat is a microcontroller
What is a microcontroller
ย 
Arduino Hands-on Workshop
Arduino Hands-on WorkshopArduino Hands-on Workshop
Arduino Hands-on Workshop
ย 
Introduction to Firmware
Introduction to FirmwareIntroduction to Firmware
Introduction to Firmware
ย 
Arduino
ArduinoArduino
Arduino
ย 
Hardware hacking
Hardware hackingHardware hacking
Hardware hacking
ย 
Presentation
PresentationPresentation
Presentation
ย 
Building Trojan Hardware at Home
Building Trojan Hardware at HomeBuilding Trojan Hardware at Home
Building Trojan Hardware at Home
ย 
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
ย 
Java 101 @ chattahoochee
Java 101 @ chattahoocheeJava 101 @ chattahoochee
Java 101 @ chattahoochee
ย 
2015 01 24 Coding4Fun at Tajamar
2015 01 24 Coding4Fun at Tajamar2015 01 24 Coding4Fun at Tajamar
2015 01 24 Coding4Fun at Tajamar
ย 
lecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdflecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdf
ย 

More from Robert John

DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...
DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...
DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...Robert John
ย 
DevFest 2022 - Nairobi ML Keynote.pptx
DevFest 2022 - Nairobi ML Keynote.pptxDevFest 2022 - Nairobi ML Keynote.pptx
DevFest 2022 - Nairobi ML Keynote.pptxRobert John
ย 
Arduino Certification
Arduino CertificationArduino Certification
Arduino CertificationRobert John
ย 
Fundamentals of cloud computing
Fundamentals of cloud computingFundamentals of cloud computing
Fundamentals of cloud computingRobert John
ย 
Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019Robert John
ย 
What is TensorFlow and why do we use it
What is TensorFlow and why do we use itWhat is TensorFlow and why do we use it
What is TensorFlow and why do we use itRobert John
ย 
What is Google Cloud Good For at DevFestInspire 2021
What is Google Cloud Good For at DevFestInspire 2021What is Google Cloud Good For at DevFestInspire 2021
What is Google Cloud Good For at DevFestInspire 2021Robert John
ย 
TinyML at DevFestLagos21
TinyML at DevFestLagos21TinyML at DevFestLagos21
TinyML at DevFestLagos21Robert John
ย 

More from Robert John (8)

DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...
DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...
DevFest 2022 Nairobi - Considerations for Deploying ML Models on Edge Devices...
ย 
DevFest 2022 - Nairobi ML Keynote.pptx
DevFest 2022 - Nairobi ML Keynote.pptxDevFest 2022 - Nairobi ML Keynote.pptx
DevFest 2022 - Nairobi ML Keynote.pptx
ย 
Arduino Certification
Arduino CertificationArduino Certification
Arduino Certification
ย 
Fundamentals of cloud computing
Fundamentals of cloud computingFundamentals of cloud computing
Fundamentals of cloud computing
ย 
Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019
ย 
What is TensorFlow and why do we use it
What is TensorFlow and why do we use itWhat is TensorFlow and why do we use it
What is TensorFlow and why do we use it
ย 
What is Google Cloud Good For at DevFestInspire 2021
What is Google Cloud Good For at DevFestInspire 2021What is Google Cloud Good For at DevFestInspire 2021
What is Google Cloud Good For at DevFestInspire 2021
ย 
TinyML at DevFestLagos21
TinyML at DevFestLagos21TinyML at DevFestLagos21
TinyML at DevFestLagos21
ย 

Recently uploaded

(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...motiram463
ย 
CHEAP Call Girls in Hauz Quazi (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
CHEAP Call Girls in Ashok Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Ashok Nagar  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...Call Girls in Nagpur High Profile
ย 
CHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7
Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7
Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7shivanni mehta
ย 
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)amitlee9823
ย 
Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)amitlee9823
ย 
Call Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Standamitlee9823
ย 
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...amitlee9823
ย 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammamahmedjiabur940
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men ๐Ÿ”Muzaffarpur๐Ÿ” ...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men  ๐Ÿ”Muzaffarpur๐Ÿ”  ...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men  ๐Ÿ”Muzaffarpur๐Ÿ”  ...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men ๐Ÿ”Muzaffarpur๐Ÿ” ...amitlee9823
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men ๐Ÿ”kakinada๐Ÿ” Escor...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men  ๐Ÿ”kakinada๐Ÿ”   Escor...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men  ๐Ÿ”kakinada๐Ÿ”   Escor...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men ๐Ÿ”kakinada๐Ÿ” Escor...amitlee9823
ย 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...drmarathore
ย 
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...amitlee9823
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men ๐Ÿ”Deoghar๐Ÿ” Escorts...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men  ๐Ÿ”Deoghar๐Ÿ”   Escorts...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men  ๐Ÿ”Deoghar๐Ÿ”   Escorts...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men ๐Ÿ”Deoghar๐Ÿ” Escorts...amitlee9823
ย 
VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...SUHANI PANDEY
ย 
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 

Recently uploaded (20)

(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
ย 
CHEAP Call Girls in Hauz Quazi (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
CHEAP Call Girls in Ashok Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Ashok Nagar  (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
ย 
CHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Vinay Nagar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7
Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7
Escorts Service Daryaganj - 9899900591 College Girls & Models 24/7
ย 
(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7
(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7
(INDIRA) Call Girl Napur Call Now 8617697112 Napur Escorts 24x7
ย 
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
ย 
Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
ย 
Call Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In RT Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
ย 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men ๐Ÿ”Muzaffarpur๐Ÿ” ...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men  ๐Ÿ”Muzaffarpur๐Ÿ”  ...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men  ๐Ÿ”Muzaffarpur๐Ÿ”  ...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Muzaffarpur Call-girls in Women Seeking Men ๐Ÿ”Muzaffarpur๐Ÿ” ...
ย 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men ๐Ÿ”kakinada๐Ÿ” Escor...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men  ๐Ÿ”kakinada๐Ÿ”   Escor...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men  ๐Ÿ”kakinada๐Ÿ”   Escor...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป kakinada Call-girls in Women Seeking Men ๐Ÿ”kakinada๐Ÿ” Escor...
ย 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
ย 
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men ๐Ÿ”Deoghar๐Ÿ” Escorts...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men  ๐Ÿ”Deoghar๐Ÿ”   Escorts...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men  ๐Ÿ”Deoghar๐Ÿ”   Escorts...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Deoghar Call-girls in Women Seeking Men ๐Ÿ”Deoghar๐Ÿ” Escorts...
ย 
VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Gahunje WhatSapp Number 8005736733 With Elite Staff And ...
ย 
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
ย 

TinyML: Machine Learning for Microcontrollers

  • 1. TinyML: TFLite for Microcontrollers Robert John GDE ML & GCP @robert_thas Machine Learning on Embedded Edge Devices
  • 2. Why Machine Learning? Learning from example: activity detection, pet classification โ— We canโ€™t write rules for everything โ— We produce enough data for our examples โ— We have powerful machines for training
  • 3. Why Embedded Edge Devices? Some computers do only one thing! โ— Placed in hard-to-reach places โ— Run on batteries โ— Replaced once a year or even longer โ— No keyboard or mouse โ— Rely on sensors or inputs from other microcontrollers โ— Control other microcontrollers or other outputs โ— Smart temperature example
  • 4. Sensors on Edge Devices More sensors than the average computer โ— Motion sensors โ— Biometric sensors โ— Acoustic sensors โ— Environmental sensors โ— Force sensors
  • 5. Constraints on Edge Devices Canโ€™t eat your cake and have it Raspberry Pi Pico HP Chromebook (Celeron) Raspberry Pi 4 Classification Microcontroller Personal Computer Single-Board Computer Microprocessor RP2040 Celeron BCM2711 Processor Designer Raspberry Intel Broadcom ISA Family Arm Cortex-M0+ IA32 (32-bit x86) Arm Cortex-A72 Clock speed 133MHz 3.5 GHz 1.5 GHz RAM 264 KB 4GB/8GB 2GB/4GB/8GB Storage 2MB Flash HDD/SSD HDD/SSD Inputs GPIO Serial Keyboard/Mouse Keyboard/Mouse Outputs GPIO Serial Monitor/Speakers Monitor/Speakers
  • 6. Edge ML Deployment Challenges Inference is all you need! โ— Pre-trained models are hard to fit into MCUs โ— No OS to act as hardware buffer โ— Mobile-optimized models might use instructions not present on MCU โ— Need to understand the underlying ISA โ— Floating-point arithmetic usually not present โ— Model is task specific, no need classify 1000 images! โ— Might need to start from scratch!! โ— Need to know Python and C/C++
  • 7. Keep It Simple! You only need inference! โ— The model should only be as large as it needs to be to guaranty the required accuracy โ— Leverage quantization-aware training to avoid model degradation โ— Implement post-training quantization to shrink models from floating-point (32-bit) to integer (8-bit) โ— Itโ€™s okay to lose a little bit of context during inference
  • 8. Learn More Important Resources โ— TensorFlow: https://www.tensorflow.org/ โ— TensorFlow Lite: https://www.tensorflow.org/lite โ— TFLu: https://www.tensorflow.org/lite/microcontrollers โ— TinyML Foundation: https://www.tinyml.org/ โ— TinyML Course on EdX: https://www.edx.org/professional-certificate/harvardx-tiny-machine-learning โ— Embedded Systems Essentials: https://www.edx.org/professional-certificate/armeducationx-embedded-systems-essentials โ—
  • 9. Thank You! Robert John GDE ML & GCP @robert_thas