Device-Only (TinyML) Architecture

The model runs entirely on the microcontroller, and the core function needs no connectivity.

Educational content in scientific-draft form; a specialist should review it before it is adopted as an academic reference. No measurement or performance result that was not actually obtained is shown here.

Layers

  1. The sensorCaptures the signal
  2. DevicePreprocessing and inference
  3. Actuator or indicatorReacts to the result

Components explained

  1. Compressed model — Quantised or pruned to fit memory
  2. Memory and firmware — Hold the model and decision rules

Strengths

  • High privacy
  • Needs no network
  • Low consumption

Limitations

  • Limited capability
  • Model updates are hard
  • Remote evaluation is harder

Requirements

Theoretically expected latencyShortest, as the decision is on the device.
Connectivity requirementsNo connectivity required.
Resource requirementsVery small resources; a tiny model.

Use cases

  • Keyword spotting
  • Wearable devices

Reference versus implementation

This is a simplified reference architecture for teaching; a production design adds details such as identity management, updates, monitoring and redundancy according to the project's requirements.

Design your architecture in the lab

References

  1. Jiasi Chen, Xukan Ran. Deep Learning With Edge Computing: A Review. Proceedings of the IEEE 107(8):1655–1674 (2019). DOI Link not checked automatically
  2. Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, Dmitry Kalenichenko. Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2704–2713 (2018). DOI Link not checked automatically

Simulations and labs run inside your browser. Nothing you enter and none of the conversations is stored on the server. Privacy policy