Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Machine Learning in small, low-powered devices

Machine Learning in small, low-powered devices

Machine learning (ML) is a way of writing computer programs. The difference is that the rules of ML programs are not determined by a developer but by training the machine. Attend this session and we will collect a substantial set of training data from a device, feed it into a special kind of algorithm that will discover the rules then convert it to a TinyML model. We will deploy the TinyML model to a small, low-powered embedded device, test it and send output to Azure.

Ron Dagdag

May 16, 2023
Tweet

More Decks by Ron Dagdag

Other Decks in Technology

Transcript

  1. Agenda •What is Machine Learning? •Embedded Machine Learning (TinyML) •Small,

    low-powered device •Challenges TinyML •Demo @rondagdag
  2. algorithm input answers algorithm input answers ML Primer Programming machine

    Learning Training Data Model Model Inferencing Training Framework Runtime
  3. Motion Sensors Gyroscope, radar, magnetometer, accelerator Environmental Sensors Temperature, Humidity,

    Pressure, IR, etc. Touchscreen Sensors Capacitive, IR Image Sensors Thermal, Image Biometric Sensors Fingerprint, Heart rate, etc. TinyML Is All About Sensor Data Intelligence 17 Rotation Sensors Encoders Force Sensors Pressure, Strain Acoustic Sensors Ultrasonic, Microphones, Geophones, Vibrometers ...
  4. Board MCU / ASIC Clock Memory Sensors Radio Himax WE-I

    Plus EVB HX6537-A 32-bit EM9D DSP 400 MHz 2MB flash 2MB RAM Accelerometer, Mic, Camera None Arduino Nano 33 BLE Sense 32-bit nRF52840 64 MHz 1MB flash 256kB RAM Mic, IMU, Temp, Humidity, Gesture, Pressure, Proximity, Brightness, Color BLE SparkFun Edge 2 32-bit ArtemisV1 48 MHz 1MB flash 384kB RAM Accelerometer, Mic, Camera BLE Espressif EYE 32-bit ESP32-D0WD 240 MHz 4MB flash 520kB RAM Mic, Camera WiFi, BLE 20
  5. • ARM Cortex-M4F core running at 120MHz(Boost up to 200MHz)

    • 4 MB External Flash, 192 KB RAM • WIFI,BT • LCD screen • Built-in Modules: • Accelerometer • Microphone • Speaker • Light Sensor • Infrared Emitter • MicroSD Card Slot,5-Way Switch, Programmable Buttons • Grove • Raspberry Pi 40-pin Compatible GPIO Wio Terminal
  6. Step 1 - Initialize Model Creation One-click model creation Step

    2 - Data Acquisition Upload data collection program and collect data Step 3 - Training & Deployment Easily adjust parameters to visualize training results Step 4 - Programming One-click deployment to personal programs
  7. 36

  8. 37

  9. 38

  10. 39

  11. 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
  12. ML Expertise BASIC EXPERT ML Engineer ML Researcher Data Scientist

    Data Engineer Software Engineer DevOps Business Analyst
  13. Deployment Expertise BASIC EXPERT ML Engineer ML Researcher Data Scientist

    Data Engineer Software Engineer DevOps Business Analyst
  14. Summary •What is Machine Learning? •training and inferencing •Embedded Machine

    Learning (TinyML) •Sensor Data Intelligence •Small, low-powered device •Wio Terminal •Challenges TinyML •Technical Debt, Embedded MLOps @rondagdag
  15. Resources • Wio Terminal - Hello World of AI •

    https://www.seeedstudio.com/wio-terminal-tinyml.html • Codecraft connecting Azure IoT with Wio Terminal • https://wiki.seeedstudio.com/Azure_IoT_CC/ • TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-low-power Microcontrollers • https://tinymlbook.com/ • The Future of ML is Tiny and Bright • https://www.edx.org/professional-certificate/harvardx-tiny-machine-learning @rondagdag
  16. About Me Ron Dagdag @rondagdag Director of Software Engineering at

    SpaceE 6th year Microsoft MVP awardee www.dagdag.net [email protected] @rondagdag Linked In www.linkedin.com/in/rondagdag/ www.dagdag.net https://linktr.ee/rondagdag