TinyML: Artificial Intelligence Revolution at the Edge in Industrial Sensors
TinyML (Tiny Machine Learning) is the practice of running machine learning models on microcontrollers (MCUs) with only tens or hundreds of kilobytes of memory, at power levels measured in milliwatts. In an industrial setting, it means a transmitter or vibration sensor answers the question "is this normal or abnormal?" inside the device instead of streaming raw data to the cloud. The result is lower latency, far less data traffic, and monitoring that keeps working even when the connection drops.
What does TinyML change in sensors?
A traditional sensor collects and transmits data; interpretation happens centrally. A smart sensor running TinyML instead:
- Decides locally: It analyses data on site without sending it to the cloud. With no network round trip, response time drops to the order of milliseconds.
- Saves bandwidth: Instead of a continuous raw stream, it transmits only a classification result, or data when an abnormal condition (fault, leak, etc.) is detected. This cuts the energy and communication cost of IoT systems.
- Protects data: Raw process data never leaves the device, which shrinks the attack surface and the amount of data that could leak.
How does a TinyML model get into the field?
A TinyML project is about shrinking a model trained on a workstation until it fits on an MCU. A typical workflow:
- Data collection: Labelled sensor data is recorded from normal and faulty operating conditions.
- Feature extraction: Compact features such as RMS, peak value and FFT bands are computed from the raw signal. This step is often more decisive than the model itself.
- Training: A small neural network (e.g. a 1D CNN or an autoencoder) or a classical model (decision tree, k-means) is trained on a computer.
- Quantization: 32-bit floating-point weights are converted to 8-bit integers (int8).
- Conversion and embedding: The model is converted to a format a runtime such as TensorFlow Lite Micro can read and is compiled into the firmware as a C array.
- Validation: In the field, the model's output is compared with reference measurements for a period.
Memory calculation with quantization
Take a small network with 20,000 parameters:
- float32: 20,000 × 4 bytes = 80 kB
- int8: 20,000 × 1 byte = 20 kB
Weight memory shrinks by a factor of 4, and int8 arithmetic runs faster on an MCU. The accuracy loss is small for most classification problems, but it must be measured on validation data for every model.
How much does data traffic drop?
A concrete example: a single channel read at 1 kHz with 24-bit (3-byte) resolution.
| Scenario | Calculation | Data per day |
|---|---|---|
| Raw stream | 1,000 samples/s × 3 bytes × 86,400 s | ≈ 259 MB |
| One feature packet per second (16 bytes) | 16 bytes × 86,400 | ≈ 1.4 MB |
| Class result only (1 byte per second) | 1 byte × 86,400 | ≈ 86 kB |
Moving from a raw stream to sending only the result reduces transmitted data by roughly a factor of 3,000. On constrained links such as cellular or LoRa, this difference decides whether a project is feasible at all.
How do you choose between TinyML, an edge computer and the cloud?
| Criterion | TinyML (MCU) | Edge computer (Linux) | Cloud |
|---|---|---|---|
| Typical memory | kB to a few MB | GB | Practically unlimited |
| Power consumption | mW | W | — |
| Latency | ms | ms to tens of ms | Network-dependent |
| Model complexity | Small, purpose-built | Medium | Large |
| When the link drops | Keeps working | Keeps working | Stops |
| Best suited for | Continuous monitoring, pre-classification | Multi-sensor fusion, vision | Fleet-wide analysis, retraining |
In practice these layers complement rather than replace each other: the MCU catches the event, the edge device gathers context, and the cloud improves the model over time.
Industrial application examples
- Anomaly detection: An autoencoder trained on normal operation can flag previously unseen behaviour in motor vibration through a rise in reconstruction error.
- Smart filtering: Learned models can be used alongside classic filters to distinguish noise from genuine change (for example, sloshing in a tank versus actual filling).
- Sound analysis: Systems that classify bearing or pump sounds from microphone data.
Keep the sampling-rate limit in mind: by the Nyquist criterion, 1 kHz sampling can represent frequency content only up to 500 Hz. High-frequency bearing fault signatures need a vibration sensor that samples faster; for weighing, pressure or slowly changing process signals this bandwidth is more than enough.
Amazeng and the future with AI
At Amazeng, we are making our data acquisition devices "Edge AI" compatible.
- High-resolution 24-bit data from our ZMA Data Acquisition devices provides quality training material for TinyML models.
- The modern MCU infrastructure in our embedded system architecture allows libraries such as TensorFlow Lite Micro and Edge Impulse to run on our devices.
Summary: checklist before starting a TinyML project
- Define exactly which decision must be made on the device (alarm, class, threshold).
- Collect enough labelled data from normal and faulty conditions.
- Confirm that the sampling rate covers the frequencies you care about.
- Quantize the model to int8 and measure the accuracy loss.
- Compare the model's output with a reference measurement in the field for a period.
For hardware-accelerated solutions, see our article on predictive maintenance with NPU MCUs; for background, see the AI inference glossary entry. For AI-enabled sensor projects, explore our Industrial AI solutions or contact our engineers.