Learn AI An open course in artificial intelligence
Language: English

Module 14 / 17

Edge AI & IoT

Run AI inference close to sensors within device limits for power, memory, connectivity, and security.

Level: Advanced Duration: 27 min

01 Why Run Inference at the Edge

Edge AI runs a model on or near the device that produces the data. A camera can reject a defective product in milliseconds and a vibration sensor can detect an anomaly while offline. ESP32, Raspberry Pi, Jetson, and Coral differ in RAM, power, and accelerators, so choose hardware from latency and field conditions.

02 Optimizing Models for Devices

Quantization turns float32 weights into int8, pruning removes less useful connections, and knowledge distillation trains a smaller model from a teacher. TensorFlow Lite, TensorRT, ONNX Runtime, and OpenVINO target different devices. Measure accuracy, p50/p95 latency, memory, temperature, and power, not only file size.

03 A Resilient IoT Pipeline

In a factory, an accelerometer can send a vibration window to a gateway, score an anomaly locally, and publish only the score or an important clip over MQTT. Include device ID, synchronized time, firmware version, and model version. Buffer during outages, avoid duplicate actuator commands, and separate telemetry from control.

04 Security and Lifecycle

Verify signed firmware and models before execution. Use secure boot where supported, unique device credentials, TLS, and key rotation. Roll out models to a small cohort first, monitor crashes and drift, and keep rollback available. Retraining and regression tests belong in the device lifecycle, not only at launch.

Open the interactive version with quiz and progress