Professional Documents
Culture Documents
20221122%5Fe4ds%5FST%5Fwebinar%5Fpresentation
20221122%5Fe4ds%5FST%5Fwebinar%5Fpresentation
Intelligence Solutions
MDG Korea
문현수 과장
A new way to add environment awareness
to your products
From rule-based engineering to data-driven engineering
Desired output
Rules
from the system
2
Distributed Artificial Intelligence approach
Edge Nodes
Millions IoT gateways, micro datacenters
3
Artificial intelligence at the deep edge
Moving part of Artificial Intelligence closer to the data acquisition
brings several benefits
Sustainable on
More reliability Add new functions and energy
services with Embedded AI
4
STM32 comprehensive AI ecosystem
Applications Frameworks
Applicative
Examples
(Function Packs)
AI Model convertor
Pre and post
Processing Graph Memory
Quantizer
libraries optimizer optimizer
Edge Hardware
5
STM32 Cube.AI
For teams with AI expertise
Accelerate your embedded development
Neural Machine
And more… Networks Learning
7
The 3 pillars of STM32Cube.AI
Graph optimizer Quantized model support Memory optimizer
Automatically improve performance through Import your quantized ANN to be compatible Optimize memory allocation to get the best
graph simplifications & optimizations that with STM32 embedded architectures while performance while respecting the constraints
benefit STM32 target HW architectures keeping their performance of your embedded design
STM32Cube.AI is free of charge, available both in graphical interface and in command line.
8
STM32Cube.AI
Get the best performance on STM32
Image Classif v0.5 Visual Wake Word v0.5
325
KB
96
KB
77
KB 214
KB
61
53
49 KB HW Target: STM32H723
KB
Flash: 1Mbyte
37 RAM: 564 Kbytes
98
KB Freq: 550 MHz
SW Version:
42 37 X-Cube.AI v 7.0.0
31
KB TFLm v2.5.0
Latency (ms) Flash RAM Latency (ms) Flash RAM
* the lower the better
9
Making deep edge AI accessible to all portfolio
All STM32 are compatible with NanoEdge™Studio ecosystem
STM32 compatible with STM32Cube.AI ecosystem (Extension down to M0 since 7.1.0 version)
STM32MP1
4158 CoreMark
MPU 800 MHz Cortex -A7
209 MHz Cortex -M4
Arm® Cortex® core -M0 -M0+ -M3 -M33 -M4 -M7 dual -A7& -M4 10
STM32Cube.AI
The STM32CubeMX expansion pack for ML
Power Consumption
MCU Selector
Calculator
Peripherals Configuration
11
Integrate your ML models more easily
with our application-oriented code examples
Time series-based
Audio and sensing Computer vision Face recognition
monitoring
12
We provide everything to kick off your project
Design documentation Hardware and software tools Support & Updates
• Wiki by ST is a great forum to learn and • Evaluation platforms for STM32 • ST Community: STM32 ML & AI group
start developing AI on STM32! MCU/MPU • Distributor certified FAE
• Videos of application examples • Extra sensor boards • Support center
• Massive Open Online Course (MOOC) • Full software suite • Newsletter
13
STM32Cube.AI Deeper dive
2 4
1 3 5
Clean, label data Convert NN into
Build NN topology optimized code for MCU 15
STM32Cube.AI main features
STM32Cube.AI is available both as graphical and command line interface
17
STM32Cube.AI user flow (2/3)
• Model complexity and footprint analysis
• Fine tune memory allocation with optimizations and GUI
• Optimize system parameters and clock tree
• Extend model with your own customer layers
1 Select MCU
18
STM32Cube.AI user flow (3/3)
1 Select MCU
• Generate Application Template
• Integrate with your application-
specific code in your favorite IDE
• Perform system tests
2 Optimize and validate
19
Fine-tuning memory allocation
Model RAM consumption can be
displayed layer per layer Model memory allocation is easily controlled
✓ Easily identify most critical layers ✓ Make use of external memory based on model
requirements and application footprint
✓ Mapped in non-contiguous internal flash section
✓ Mapping partially in internal and external flash memories
20
Possible conversion strategies:
Network code generation and interpreter
More Flexible: More optimized:
TensorFlow Lite interpreter mode Optimized C code generated by
STM32 device
run-time
run-time on
21
STM32Cube.AI with ML extension
22
STM32Cube.AI with ML extension
23
NanoEdge AI Studio
NanoEdge AI Studio V3
Same easiness, more power
ON THE PC ON THE MCU
25
New user interface,
more functions, better user experience
New families of Machine New Datalogging
Learning algorithms experience
Get inspired by
Multiple uses cases
Easily retrieve or create
projects
26
Our customers have increasingly ambitious use cases
for ever smarter products
"My pumps are installed in a variety of environments that I can't
anticipate.
I want them to autonomously adapt to their target environment
and detect anomalies by themselves."
"I know the signals when a pump is experiencing, for example, ball
bearing or cavitation problems.
I want to know by name what problems are occurring.“
Infer Infer
Model A Model B
ML library
Contextual
Signals Learn Learn
28
One class classification use-case
ON THE PC ON THE MCU
Infer
Embedded
Static
Model
Normal ML library
Condition
Signal
29
n Class classification use-case
ON THE PC ON THE MCU
Bearing
Problem
Signals Bearing 90% Bearing problem
Misalignment 0%
Misalignment Cavitation 3%
Problem Shaft Imbalance 7%
Signals ML library
Cavitation Classification
Problem
Signals
Shaft imbalance
Problem signals
30
Extrapolation use-case
ON THE PC ON THE MCU
SPEED 10%
Signals
Vibration level 80% Vibration level 87%
Vibration level 65%
SPEED 25%
Vibration level 25%
Signals Vibration level 10%
ML library
SPEED 80%
Signals
31
From idea to datalogging
in a matter of minutes
• Streamlined data logging process
• No code
• All settings done using a graphic interface
32
How NanoEdgeTM can grow your business
33
And many more
https://DATA.CARTESIAM.AI 34
STM32 EVK Board for AI
Running AI on ST
Microprocessors
Example form factor hardware
to capture and process data
SensorTile
STM32L4
www.st.com/SensorTile
36
www.st.com/SensorTile-edu
Fast go to market module
to capture data with more accuracy
SensorTile.Box
38
www.st.com/IoTnode
Wireless Industrial node
to capture data at industrial grade
STWIN
Industrial-grade sensors
• Industrial scale 9-DoF motion sensors including accelerometer, gyrometer
and an ultra wide-bandwidth 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
• BLE5.0 connectivity and WiFi expansion board
• USART
www.st.com/stwin 39
STM32H7 discovery boards with camera
STM32H747I-DISCO
with B-CAMS-OMV
41
https://github.com/openmv/openmv
AI Application demos
Running AI on ST
Microprocessors
STM32 AI Application demos
43
FP-AI-SENSING1
Human activity motion recognition (HAR)
5 classes example
Motion Data Capture Labelling controlled Data stored on the device Stationary, walking, running,
by smartphone application SD card for future learning biking, driving labelling
NN & example
dataset provided
45
FP-AI-SENSING1
Audio scene classification (ASC)
3 classes
Audio Data capture Labelling controlled Data stored on the device Indoor, Outdoor, In vehicle
by smartphone application SD card for future learning labelling
NN & example
dataset provided
SensorTile.Box
47
► Demo available on FP-AI-SENSING1
Handwritten character recognition
48
Computer Vision for STM32
Optimized NN Customer
files application
Food Person presence Face People
classification detection recognition counting STM32.Vision
STM32.AI lib
lib
FP-AI- FP-AI- FP-AI- FP-AI-
VISION1 v1.0 VISION1 v2.0 FACEREC v1.0 VISION1 v3.0
run-time
49
Food classification
52
Anomaly Detection using vibration
Real-time detection of
shocks, misalignment Neural Network on STM32L5R
or motor unbalance on
industrial appliances
53
Multiple object detection on STM32MP1 MPU
Advanced object detection among 90 different objects using
TensorFlow Lite on STM32MP1
Use cases Demo overview
• Detect object and its position. • integrated via C++
• 90 objects can be detected runtime implementation on dual-core A7
• Object detection is done in real time for • COCO ssd MobileNet v1: 90 classes
fast interaction with user • CPU load balanced on the 2 cores
• Requires only a low resolution camera • Processing time: 1.1 FPS
54
Aftermarket wireless digit reader for metering
55
Why choose STMicroelectronics?
A complete ST AI solution stack
57
Whatever your company's profile,
you will find an AI solution suited to your needs
USE CASES
COMPANY’S PROFILE
Anomaly detection Classification Deep Learning
Engineering
Services
Embedded developers
▪ No dataset available
▪ No dedicated AI Team
58
Don't go alone
59
Releasing your creativity
/STM32
@ST_World
community.st.com
www.st.com/STM32ai
wiki.st.com/stm32
github.com/STMicroelectronics
Videos