EJLThe Trust StackEdited by Emma-Jane MacKinnon-Lee
Edge

Edge compute and TinyML: thinking where the data is born

The cheapest, fastest and most private data transfer is the one that never happens. Edge compute moves inference onto sensors, gateways and devices, and attestation lets other machines believe the results.

By Emma-Jane MacKinnon-Lee, editorUpdated 15 April 202612 min read
Emma-Jane MacKinnon-Lee explainer on edge compute: TinyML sensor board running on-device inference
A microcontroller with a tiny model and a big job.

Why compute at the edge

Radio transmission costs far more energy than local computation on a modern microcontroller, connectivity is intermittent in fields, ships, vehicles and basements, and every byte sent is a byte that can be intercepted, retained or misused. Edge compute answers all three problems by performing analysis where data is collected and transmitting only results.

Neural processing units, small accelerators for matrix arithmetic, now appear in microcontrollers as well as phones. Combined with model quantisation to eight-bit or even lower-precision integers, they make useful inference possible in a few hundred kilobytes and a few milliwatts.

TinyML in practice

TinyML is the community name for machine learning on such constrained devices. Typical tasks include keyword spotting, anomaly detection on vibration sensors, gesture recognition, simple image classification and physiological signal analysis. Frameworks such as TensorFlow Lite for Microcontrollers and a range of open compilers turn trained models into compact code.

The design pattern that matters for privacy is minimisation: detect locally, send an event. A vibration sensor on a pump sends a signed alert that a bearing is failing, not a continuous waveform. A wearable sends a flagged episode, not a day of raw data. Everything else can stay sealed on the device.

Making edge results believable

An event from a sensor is only as useful as the recipient's confidence in it. Here edge compute meets attestation. If the device signs its result with a DICE-derived key and includes, or can produce on request, Evidence about its firmware and the hash of the model it ran, then a gateway or another device can evaluate that Evidence locally before acting.

This peer-to-peer verification is what turns a collection of edge devices into a trustworthy system without a central server. It is also the precondition for the machine-to-machine economy described in the next explainer: a machine cannot sensibly pay another for a result it cannot verify.

Standards and projects named
  • TensorFlow Lite for Microcontrollers
  • TCG DICE
  • IETF RFC 9334
  • COSE signing
Glossary terms in this explainer
Read next