All workshops
TinyML
Embedded systems Artificial intelligence ESP32

TinyML

From artificial intelligence to TinyML: analyse and preprocess an existing dataset, train an AI model, then deploy it on a XIAO ESP32S3 board.

5 tutorials 1 components 4 resources
Start

Overview

Welcome to the TinyML workshop!

A microcontroller can do much more than follow hand-written rules: it can recognise a gesture, an animal, a word or a sound from sensor data or images. In this workshop, you will take an existing dataset, prepare it, train a small model on your computer, then deploy it on a XIAO ESP32S3 board, with no Internet connection.

Your learning path

  • Discover the notions of artificial intelligence, machine learning and TinyML.
  • Explore and prepare an existing dataset to train the model.
  • Train and evaluate the model on a computer.
  • Convert and optimise the model for a board with limited resources.
  • Integrate the model into the XIAO ESP32S3 connected to a camera.
  • Capture an image, preprocess it into the format the model expects, run the prediction on the board, then show the result on a web page.

By the end of the workshop, you will have gone through the main stages of a TinyML project. You will understand how an AI model can run in a small connected object, quickly and autonomously.

Why this workshop?

Artificial intelligence does not only run in data centres. It is also found in watches, industrial sensors and toys, where sending every piece of data to a server would be too slow or too costly, or would raise privacy issues.

Running a model on a microcontroller with limited resources requires understanding how it works and measuring the impact of every choice: model size, memory used and prediction speed.

Prerequisites

Workshops to complete before starting this one.

Concepts

Key notions to understand before getting started.

Tutorials

Follow the steps in order to complete the workshop from start to finish.

How-to guides

Solve a specific problem, step by step.

Resources

Reference sheets for the hardware, software and tools used in the workshop.

Hardware & Components

Software & Tools

References

Need help?