Articles

Embedded AI: when to run artificial intelligence on the device itself

· Frederico Conte

Not all artificial intelligence needs a server. Small models run on the device itself, on a microcontroller or embedded processor, and respond in milliseconds without depending on the internet.

When it makes sense

Running AI on the device is the best choice when:

  • The response must be immediate: there is no time for the round trip to the cloud.
  • Connectivity is not guaranteed: in the field, in remote areas or on unstable networks.
  • The data is sensitive: audio and images are processed on site, and only the result leaves the device.
  • The volume is large: streaming continuous audio or video to the cloud costs bandwidth and money.

Examples

  • Audio: detecting a keyword, an alarm or an unusual sound in an audio channel.
  • Vibration: noticing that a motor or pump has started to behave differently, before it fails.
  • Image: counting, classifying or detecting presence with an embedded camera.

In all of them the device sends only the event (“keyword detected”, “abnormal vibration”), not the raw data.

The limits that go into the design

  • Memory and processing: the model has to fit on the device. Techniques such as quantisation shrink the model, with some loss of accuracy that has to be measured.
  • Power: on battery-powered devices, every inference counts.
  • Real data: the model is trained and validated with data from the environment where it will run, with its noise and variations. A model that works in the lab can fail in the field.
  • Updates: the model will need retraining. The device has to receive new models without a service visit.

How we assess it

We start by measuring: what accuracy is needed, what delay is acceptable and what an error costs (a false alarm and a missed event cost different things). With that defined, we choose the hardware and the model, and test on the real device.

Have an application that could run AI on the device itself? Talk to CONTE.