TinyML Talks Massimo Banzi 210601-1
TinyML Talks Massimo Banzi 210601-1
with Arduino”
Massimo Banzi – Arduino
Open now
• St ro n g c o n n e c t io n w it h it a lia n a c a d e m ia a n d in d u s t ry
• Ta lk s w ill b e (m o s t ly) in it a lia n
• Lo c a t io n w ill ro t a t e in d iffe re n t it a lia n a n d s w is s c it ie s
The next big opportunity in Tech
ABI Re s e a rc h
TinyML
● Ru n n in g n e u ra l n e t w o rk a t a n e n e rg y c o s t o f le s s t h a n 1m W
● A d e vic e ru n n in g o n a c o in b a t t e ry t h a t h a s a life t im e o f 1 ye a r
● 32-b it m ic ro c o n t ro lle rs c o s t in g ~ 1$
● Ha vin g a c lo c k s p e e d lo w e r t h a n 1 GHz
● Ho ld in g le s s t h a n 1 MB o f RAM
Massimo Banzi
Massimo Banzi
01.06.2021
Introduction
In this talk we walk through some examples of TinyML on Arduino devices
to show how simple it is to build working examples of ML with minimal
coding using three different platforms compatible with Arduino.
2
Arduino
Enabling anyone
to innovate by
making complex
technologies
simple to use.
3
29M+ Users/Year on arduino.cc
900K+ Arduino Forum Users
17M+ IDE downloads/year
1.2M+ Users of Arduino Create Cloud
4000+ Libraries Available for Arduino
5
Arduino Hardware
> RIGHT CLICK ON IMAGE
> REPLACE IMAGE
> UPLOAD FROM COMPUTER /
DRIVE /
WEB URL
6
Arduino Nano
BLE Sense
● Nano form factor
● nRF52840 Arm Cortex M4f @
64MHz
● 1MByte Flash
● 256Kb Ram
● Bluetooth 5
● Sensors: IMU, Microphone,
Gesture, Light, Proximity,
Pressure, Temperature , Humidity
7
7
Tiny Machine
Learning Kit
• VGA Camera and Nano BLE Sense
• Used for the EdX course on TinyML
8
8
https://sites.google.com/g.harvard.edu/tinyml/home 10
https://www.edx.org/professional-certificate/harvardx-tiny-machine-learning 11
Arduino Edge Control / Smart Agriculture 12
Portenta H7
● Portenta form factor
● STM32H747
● Dual core
○ Arm Cortex M7@480MHz
○ Arm Cortex M4@240MHz
● up to 64 MByte SDRAM
● up to 128 MByte QSPI Flash
● Common Criteria Crypto
● WiFi b/g/n 65Mbps + BT 5.1
● 100Mbit Ethernet
● CAN
● USB-C with DisplayPort output
13
13
Portenta Vision
Shield
● Portenta form factor
● Low power cameras
○ Himax HM-01B0
○ Himax HM-0360
● Dual microphone (beamforming)
● Ethernet
● Lora
● SD Card
14
14
15
TinyML on Arduino
Tensorflow Lite Micro
Title 16
16
17
Arduino Portenta Machine Control 18
Arduino IDE 2.0 Beta 19
19
OpenMV IDE (Supports Portenta H7, Nano 33 BLE support coming soon) 20
20
Examples
Arduino Tiny ML
21
TinyML on Arduino
Tensorflow Lite Micro
36
36
37
37
38
38
39
39
40
40
41
41
42
42
43
43
44
44
45
45
46
46
47
47
48
48
Examples
Arduino Tiny ML
49
STM / STM32 Cube AI (Portenta Family) 50
50
Edge Impulse / https://docs.edgeimpulse.com/docs/responding-to-your-voice 51
51
Qeexo / https://github.com/qeexo/Qeexo_AutoML_Arduino_Nano33BLE_pub 52
52
SensiML 53
53
https://experiments.withgoogle.com/collection/tfliteformicrocontrollers 54
54
That’s a wrap,
Thank you!
Massimo Banzi
askmassimo@arduino.cc
Please take the 5 question poll
and continue the conversation
@ tinyML.org/forums
tinyML Talks Sponsors
Stay Connected
Arm Cortex-M CPUs and microNPUs
@ArmSoftwareDevelopers
@ArmSoftwareDev
Resources: developer.arm.com/solutions/machine-learning-on-arm
1313 © 2020 Arm Limited (or its affiliates)
WE USE AI TO MAKE OTHER AI FASTER, SMALLER
AND MORE POWER EFFICIENT
Reduce model optimization trial & error from weeks to days using
Deeplite's design space exploration
Test
Copyright © EdgeImpulse Inc. www.edgeimpulse.com
Maxim Integrated: Enabling Edge Intelligence
Advanced AI Acceleration IC Low Power Cortex M4 Micros Sensors and Signal Conditioning
The new MAX78000 implements AI inferences at Large (3MB flash + 1MB SRAM) and small (256KB Health sensors measure PPG and ECG signals
low energy levels, enabling complex audio and flash + 96KB SRAM, 1.6mm x 1.6mm) Cortex M4 critical to understanding vital signs. Signal chain
video inferencing to run on small batteries. Now microcontrollers enable algorithms and neural products enable measuring even the most
the edge can see and hear like never before. networks to run at wearable power levels. sensitive signals.
www.maximintegrated.com/MAX78000 www.maximintegrated.com/microcontroller www.maximintegrated.com/sensor
s s
Qeexo AutoML
Automated Machine Learning Platform that builds tinyML solutions for the Edge using sensor data
▪ Supports 17 ML methods:
▪ Multi-class algorithms: GBM, XGBoost, Random
Forest, Logistic Regression, Gaussian Naive Bayes,
Decision Tree, Polynomial SVM, RBF SVM, SVM, CNN,
RNN, CRNN, ANN
▪ Single-class algorithms: Local Outlier Factor, One
Class SVM, One Class Random Forest, Isolation Forest
For more information, visit: www.qeexo.com
▪ Labels, records, validates, and visualizes time-series
sensor data Target Markets/Applications
▪ On-device inference optimized for low latency, low power ▪ Industrial Predictive ▪ Automotive
consumption, and small memory footprint applications Maintenance
▪ Mobile
▪ Supports Arm® Cortex™- M0 to M4 class MCUs ▪ Smart Home
▪ IoT
▪ Wearables
Advancing AI Perception
Object detection, speech IoT/IIoT
res earch to make
recognition, contextual fus ion
Efficient
Scene unders tanding, language
Automotive
Power efficiency Pers onalization unders tanding, behavior prediction
learning
Model des ign, Continuous learning, Robus t learning
compres s ion, quantization, contextual, always -on, through minimal data,
algorithms, efficient privacy-pres erved, uns upervis ed learning,
hardware, s oftware tool dis tributed learning on-device learning
Action
Reinforcement learning Cloud
A platform to s cale AI for decis ion making
• End-to-end AI workflow
• Multi-user auto-labeling of time-series data
• Code transparency and customization at each
step in the pipeline
https://SynSense.ai
Copyright Notice
This multimedia file is copyright © 2021 by tinyML Foundation. All
rights reserved. It may not be duplicated or distributed in any form
without prior written approval.
www.tinyml.org
Copyright Notice
This presentation in this publication was presented as a tinyML® Talks webcast. The content reflects the
opinion of the author(s) and their respective companies. The inclusion of presentations in this
publication does not constitute an endorsement by tinyML Foundation or the sponsors.
There is no copyright protection claimed by this publication. However, each presentation is the work of
the authors and their respective companies and may contain copyrighted material. As such, it is strongly
encouraged that any use reflect proper acknowledgement to the appropriate source. Any questions
regarding the use of any materials presented should be directed to the author(s) or their companies.
www.tinyML.org