3. 3
Typical industrial sensor in 2020
Vibration sensor (up to 1,000 times per second)
Temperature sensor
Water & explosion proof
Can send data >10km using 25 mW power
Processor capable of running >20 million
instructions per second
4. 4
But... what does it actually do?
Once an hour:
• Average motion (RMS)
• Peak motion
• Current temperature
5. 5
99% of sensor data is discarded due to
cost, bandwidth or power constraints.
https://www.mckinsey.com/~/media/McKinsey/Business%20Functions/McKinsey%20Digital/Our%20Insights/
The%20Internet%20of%20Things%20The%20value%20of%20digitizing%20the%20physical%20world/The-
Internet-of-things-Mapping-the-value-beyond-the-hype.ashx
8. 8
On-device intelligence is the only solution
Vibra&on pa+ern
heard that lead to fault
state in a weekTemperature
varies in a way that
I've never seen
before
Machine
oscillates different
than all other
machines in the
factory
12. 12
TinyML
Inspired by "OK Google"
Focus on inferencing, not training
Machine learning model is just a mathematical
function with lots of parameters
Accuracy vs. speed, reducing parameters, hardware-
optimized paths
Targeting battery-powered microcontrollers
Pete Warden
Neil Tan
15. Lone worker monitoring
Check new Person Presence Detection example in
FP-AI-VISION1 !
https://www.st.com/en/embedded-software/fp-ai-vision1.html
16. Endpoint
Machine level
Decisions
Distributed AI from Edge to Cloud
Edge
Actions
Data
Gateways
Room or building-level
Decisions
HomeIndustrial
Cloud
Cities or factory-level
decisions
• Fleet monitoring
• Macro Decisions (AI)
• Macro Actuation
Sensor
• Sensing
Smart sensor
• Sensing
• Preprocessing
• Micro classification
Data
MCU
• Real time
• Data privacy
• Micro Decisions (AI)
• Micro Actuation
Actions
Event
detection
Event
detection
Sensor Data
(Option)
Event
MCU / MPU
• Data or Event integration
• Data Privacy
• Meso Decisions (AI)
• Meso Actuation
16
17. GatewaysEndpoint
Edge
Actions
Data
Room or building-level
Decisions
Cloud
Cities or factory-level
decisions
• Fleet monitoring
• Macro Decisions (AI)
• Macro ActuationActions
Event
detection
Connectivity
Security
Sensing
Accelerometer
Gyrometer
Magnetometer
Vibration
PressureAcoustic Temperature
ML Core
Extensive MCU
portfolio
Processing &
Actuating
Machine level
Decisions
STM32MP1
STM32H7
STM32WB
Connectivity
Security
Processing &
Actuating
Event
detection
Sensor Data
(Option)
Event
Distributed AI from Edge to Cloud
17
18. IIS3DWB
Ultra Wide Bandwidth
Accelerometer
ISM330DLC
ISM330DHCX
Wide Bandwidth
Accelerometer + Gyroscope
IIS2DH
Wide Bandwidth, Ultra-low-power
Accelerometer
IIS2MDC
Low-Noise, Low Power
Magnetometer
18
ST portfolio for condition monitoring
Vibration
MP23ABS1TR Analog Differential Microphone
IMP34DT05-A Digital Top Port Microphone
Acoustic
LPS22HH
High Accuracy – Compact Size
Absolute Pressure Sensor
LPS27HHW
LPS33HW
Water Resistant
Absolute Pressure Sensor
STTS22H Digital Temperature Sensor
STLM20 Analog Temperature Sensor
Environmental
High Perf
MCUs
Ultra-low Power
MCUs
Wireless
MCUs
Mainstream
MCUs
MPU MEMS & Sensors
19. Wireless Industrial node
to capture data at industrial grade
19www.st.com/stwin
Industrial-grade sensors
• Industrial scale 9-DoF motion sensors including accelerometer, gyrometer
and an ultra wide-band vibrometer with ultra low noise
• Very high frequency audio and ultrasound microphone
• High precision temperature and environmental monitoring
• Micro SD card for standalone data logging
• BLE connectivity and WiFi expansion board
• USART
STWIN
Process & analyze new
data using trained NNCapture data
9
25. Classification
What's happening right now?
Anomaly detection
Is this behavior out of the ordinary?
Forecasting
What will happen in the future?
25
3. Letting the computers figure it out
26. 26
Picking the right algorithm
Classification
Neural network
Anomaly detection
K-means clustering
Forecasting
Regression
28. Seamless integration to STM32Cube ecosystem
STM32CubeMX, GUI Builders
Configure & generate code
28
Configure clocks, peripherals
and generate low-level code
Add application code and compile for any
STM32 target with the IDE of your choice
Deploy, debug and monitor
Generate model, optimize with STM32Cube.AI and export as CMSIS-PACK
And commercial IDEs
CMSIS-PACK
Import in CubeMX and benefit from STM32 ecosystem
CMSIS-PACK
running in Edge
Impulse’s Cloud
29. STM32CubeL1
Hardware Abstraction Layer
CMSI
S
STM32CubeF0
Hardware Abstraction Layer
CMSI
S
STM32CubeF2
Hardware Abstraction Layer
CMSI
S
STM32CubeF4
Hardware Abstraction Layer
CMSI
S
STM32CubeF1
Hardware Abstraction Layer
CMSI
S
STM32Cube
Hardware abstraction layer
CMSIS
STM32Cube
Middleware
User code
FirmwareHardware
Making it easy to start development, develop Proof of Concept
STM32
Ecosystem foundations
Configuration Development
Programming Monitoring
Tools
macOS®
And more
30. STM32CubeMX expansion
STM32Cube.AI tool
STM32Cube.AI offers interoperability
with state-of-the-art Deep Learning
design frameworks
Any framework that can export models in
ONNX open format can be imported,
including quantized models
Automatic and fast generation of an
STM32-optimized library
Train NN Model
Convert NN into
optimized code
for MCU
Process & analyze new
data using trained NN
30
On-device validation enable fast
comparison of model accuracy vs
different memory / quantization options
And more
35. 35
Get some hardware
ST IoT Discovery Kit
80MHz, 128K RAM, $50
Any smartphone Any other device
With our SDKs
36. 36
Edge Impulse - TinyML as a service
Embedded or edge
compute deployment
options
Test
Edge Device Impulse
Dataset
Acquire valuable
training data securely
Test impulse with
real-time device
data flows
Enrich data and
generate ML process
Real sensors in real time
Open source SDK
Free for developers: edgeimpulse.com