AI on Edge Devices: A Three-Week Course

Workshop, KAUST Academy, 2026

The two boards of the course: the XIAOML Kit and a Raspberry Pi 5 with its camera

The two boards of the course: the XIAOML Kit (left) and the Raspberry Pi 5 with a camera (right)

I designed AI on Edge Devices, a three-week course for KAUST Academy. I wrote the syllabus, all 30 slide decks, the 15 labs with their notebooks, sketches, and solutions, the backup modules, and the capstone brief with its rubric. All of the material is open on GitHub.

The course teaches how to run deep learning models on devices with small memory, low power, and no reliable cloud connection. Students optimize models, deploy them on a microcontroller and on a Linux single-board computer, connect the devices, and monitor them. The course ends with a team project that joins all of these parts into one working system.

Quick links: Course repository · Syllabus · Capstone brief

Course Materials

30
slide decks: one theory deck and one lab deck for each of the 15 days
15
labs, each with steps, a report template, notebooks or sketches, and solutions
5
backup modules that replace part of a day when a lab finishes early or the hardware fails
~85 h
of contact time: 2.5 hours of theory and 3 hours of lab work every day

Curriculum

Each week opens a new layer. Week 1 runs TinyML on a microcontroller. Week 2 moves to model optimization and Linux-class devices. Week 3 connects the devices into a system and prepares it for production.

Day Topic Board
  Week 1: foundations and TinyML on the XIAOML Kit  
1 Edge AI landscape and system constraints XIAOML Kit
2 Embedded systems, MicroPython, and sensor data collection XIAOML Kit
3 From trained model to microcontroller XIAOML Kit
4 Quantization XIAOML Kit
5 Audio and vision on microcontrollers XIAOML Kit
  Week 2: optimization and Linux-class edge devices  
6 Pruning, distillation, and efficient design Laptop
7 Hardware acceleration and inference runtimes Raspberry Pi 5
8 Object detection at the edge Raspberry Pi 5
9 Benchmarking and profiling Both boards
10 Generative AI at the edge Raspberry Pi 5
  Week 3: connected systems and production  
11 Networking fundamentals and RTSP streaming Both boards
12 Local decision-making and MQTT Both boards
13 Monitoring, logging, and visualization Raspberry Pi 5
14 Production edge AI design and capstone start Both boards
15 Capstone build and demonstrations Both boards

By the end, a student can:

  • Select a deployment paradigm (cloud, edge, mobile, or TinyML) from latency, memory, power, and privacy constraints.
  • Convert a trained model and deploy it on a microcontroller with TensorFlow Lite Micro.
  • Apply quantization, pruning, and knowledge distillation, and measure the effect on accuracy, size, and latency.
  • Run and optimize vision models on a Raspberry Pi with different inference runtimes.
  • Run a small language model on a Raspberry Pi and use it in an application.
  • Connect edge devices with RTSP and MQTT, and make decisions locally without the cloud.

Two Device Classes

I built the course around two boards so that students meet both ends of edge hardware. Students work in pairs, and each pair gets one board of each kind.

  • XIAOML Kit (Seeed XIAO ESP32S3 Sense with an expansion board): a microcontroller with Wi-Fi, 8 MB of PSRAM, a camera, a microphone, an IMU, and a display. Students use it for MicroPython, motion classification, keyword spotting, vision, and MQTT.
  • Raspberry Pi 5 (8 GB) with a camera: a Linux single-board computer. Students use it for inference runtimes, object detection, small language models, RTSP streaming, the MQTT broker, and monitoring.

The gap between the two boards is a lesson in itself. Day 1 compares their memory on a logarithmic scale, and the rest of the course keeps asking which model fits which budget.

Measure First, Then Decide

Edge AI is a field of trade-offs. I designed the labs so that students make each trade-off with their own measurements, not with intuition.

  • Prediction before measurement. Students write a prediction before each measurement. A wrong prediction costs no points. A prediction written after the measurement does.
  • The Decision Log. Each lab ends with a text of about 100 words. The student states one design decision, gives the measured numbers, and names what they gave up. A rubric grades quantitative evidence, causal reasoning, and awareness of the constraints.
  • The lab check. Each pair demonstrates the result to the instructor, who then asks one question about the Decision Log. Both students in the pair must be able to answer.

The Capstone

On Days 14 and 15, teams of three or four students design, build, and demonstrate one edge AI system. The capstone is 40 percent of the grade. The system must meet five requirements:

  1. Use both the XIAOML Kit and the Raspberry Pi, with a task for each board that the other board cannot do as well.
  2. Run at least one optimized model, with its size and accuracy before and after the optimization.
  3. Make one decision locally. During the demonstration, the instructor cuts the link to the broker, and the decision must continue.
  4. Send telemetry over MQTT to a live dashboard.
  5. Report a benchmark table with latency, memory, and energy for each model on its board.

The brief tells teams to keep the scope small: a small system that works scores more than a large system that does not.