TinyML is machine learning that runs on a microcontroller with kilobytes of memory and a power budget in milliwatts. The models are small neural networks that read sensor data, such as vibration or sound, and decide on the device without a network link.
Key takeaways
- Definition: TinyML runs models on microcontrollers at milliwatt power or below, so a battery can power it for long periods.
- Memory: The LiteRT core runtime fits in 16 KB, and the MLPerf Tiny reference models weigh 52 to 325 KB.
- Ceiling: MCUNet reached over 70% ImageNet accuracy on a chip with 320 kB of SRAM and 1 MB of flash.
- Fit: Anomaly detection on vibration or sound suits a microcontroller, and training stays off the device.
- Dev Station: Dev Station designs the system and works with clients to build and integrate TinyML solutions.
Definition
01 / 08
What is TinyML?
TinyML is the practice of running trained machine learning models on microcontrollers and other very low-power devices. The Edge AI Foundation defines it as on-device sensor data analytics at extremely low power, typically in the milliwatt range and below, which makes always-on use on battery devices possible.
A microcontroller is a small chip that holds a processor, a little memory and input pins on one die. It sits inside a motor drive, a thermostat or a vibration sensor. Google describes the case for putting a model there: no expensive hardware, no reliable internet link needed, lower latency, and no data leaving the device.
TinyML is the smallest tier of edge AI. A phone or a camera module with a GPU belongs to the larger tier.
Memory
02 / 08
How small is a model that fits on a microcontroller?
A TinyML model is measured in kilobytes. Google states that the core LiteRT for Microcontrollers runtime fits in 16 KB on an Arm Cortex-M3, with no operating system, no standard C or C++ library and no dynamic memory allocation.
The MLPerf Tiny benchmark gives the sizes of real reference models. Its authors, writing in the benchmark paper, list three tasks with the model each task uses.
| Task | Reference model | Model size | Quality target |
|---|---|---|---|
| Keyword spotting | DS-CNN | 52.5 KB | 90% top-1 accuracy |
| Visual wake words | MobileNetV1 | 325 KB | 80% top-1 accuracy |
| Anomaly detection | Fully connected autoencoder | 270 KB | 0.85 AUC |
Source: MLPerf Tiny Benchmark. The sizes explain why the first design question is memory, since the model, its working buffers and the firmware must share the same few hundred kilobytes.
Use cases
03 / 08
What can TinyML do on a factory floor?
TinyML fits narrow decisions on a continuous sensor signal. MLPerf lists keyword spotting, presence detection in a low-resolution image and anomaly detection as the three standard tasks, and it names predictive maintenance as the real-world case behind the anomaly benchmark.
Anomaly detection is the strongest match for industrial work. The benchmark paper says anomalies can appear in power, temperature or vibration data, and the most intuitive case is sound from a microphone. An autoencoder learns what a healthy machine sounds like, then flags a reading that it cannot rebuild well.
The chip sits next to the motor or the pump, so the result arrives in milliseconds and the raw signal never leaves the machine. Only an alert or a small summary goes up to the plant system. Our guides on IoT architecture and edge device management cover how those alerts reach the rest of the system.
Techniques
04 / 08
How do you fit a model into a few hundred kilobytes?
You design the model and the inference engine together, and you shrink the model after training. The MCUNet team at MIT calls this system-algorithm co-design: a search method (TinyNAS) shapes the network to the chip, and a lean inference engine (TinyEngine) runs it.
The result is concrete. MCUNet was the first system to pass 70% ImageNet top-1 accuracy on an off-the-shelf microcontroller, a chip with 320 kB of SRAM and 1 MB of flash. It used 3.5 times less SRAM and 5.7 times less flash than quantized MobileNetV2 and ResNet-18.
The standard workflow in the LiteRT documentation has three steps. Train a small model that uses only supported operations, convert it to a LiteRT model, and convert that file to a C byte array so that it sits in read-only program memory on the device. Inference then runs through the C++ library.
Limits
05 / 08
What are the limits of TinyML?
TinyML limits the model, the toolchain and the way the model learns. Google lists four limits for its microcontroller runtime: a subset of TensorFlow operations, a limited set of supported devices, a low-level C++ API with manual memory management, and no on-device training.
Two design consequences follow. Training happens on a PC or a server, and the finished model reaches the device as part of a firmware build, so updating a model means shipping new firmware. A model also cannot be larger than the memory left after the firmware takes its share.
A task that needs a large model, such as open-ended language or high-resolution vision, does not belong on a microcontroller. That work goes to a stronger edge device or to a local LLM.
Decision
06 / 08
How do you choose between TinyML and a larger edge device?
The choice depends on the signal, the power source and the size of the model. Google itself advises that on more powerful devices, such as an embedded Linux board like the Raspberry Pi, the standard LiteRT framework may be easier to integrate than the microcontroller version.
| Question | Points to TinyML | Points to a larger edge device |
|---|---|---|
| Power | Battery or harvested power, always on | Mains power is available |
| Signal | Vibration, sound, temperature or a small image | Full-resolution video |
| Model | Fits in a few hundred kilobytes | Needs megabytes or more |
| Updates | Firmware updates are acceptable | Models change often |
| Volume | Thousands of low-cost nodes | A few high-value nodes |
Mixed designs are common: a microcontroller wakes a bigger device only when it detects something worth a closer look.
Getting started
07 / 08
How do you start a TinyML project?
A TinyML project succeeds when the signal and the memory budget are fixed before any model is trained. Five steps cover the work.
- Define the one decision. Write down what the device must detect, how fast, and what it does after a detection.
- Collect real signals. Record vibration, sound or temperature from the actual machine in healthy and faulty states, since a lab recording rarely matches the floor.
- Set the memory budget. Subtract firmware and buffers from the chip memory, and give the model what remains.
- Train small, then convert. Start with the smallest model that meets the quality target, convert it, and measure it on the target chip.
- Plan the update path. Decide how new models reach devices in the field, because the model ships inside firmware.
Dev Station
08 / 08
What does Dev Station build for TinyML projects?
Dev Station designs and builds the systems around a TinyML model: the device software, the connection to plant systems and the update path. We work with clients from system design through development.
A client needs a TinyML solution when the decision must happen at the sensor, on the machine, with a battery or a small power budget. Our engineers write the firmware that carries the model, and AI integration services connect the results to the systems a client already runs. When the model itself needs training on the client data, custom AI model development covers that part.
Most of our clients are manufacturers and equipment makers in the United States and the United Kingdom, so SOC 2, GDPR and ISO 27001 sit in the specification from the start. Our engineers work from Vietnam with overlap into US Eastern, US Pacific and UK GMT hours, and we invoice in USD or GBP.
Tell us which machine signal your device has to judge, and we will outline what to build and how we would work with you.
Frequently asked questions
Teams ask these when they first scope a TinyML project.
What does TinyML stand for?
TinyML stands for tiny machine learning. The Edge AI Foundation describes it as on-device sensor analytics at extremely low power, typically in the milliwatt range and below.
How much memory does a TinyML model need?
A TinyML model needs tens to hundreds of kilobytes. The MLPerf Tiny reference models weigh 52.5 KB, 270 KB and 325 KB, and the LiteRT core runtime adds about 16 KB on a Cortex-M3.
Can TinyML train a model on the device?
TinyML does not train on the device with the LiteRT microcontroller runtime, because Google lists on-device training as unsupported. Training runs on a PC or a server, and the finished model is flashed to the device.
Which chips can run TinyML?
LiteRT for Microcontrollers needs a 32-bit platform. Google tested it on many Arm Cortex-M processors and ported it to others, including the ESP32.
Is TinyML the same as edge AI?
TinyML is the smallest part of edge AI. Edge AI also covers cameras, gateways and embedded Linux boards that run much larger models than a microcontroller can hold.
Want an AI assistant to summarize or cite this guide?
Click any link below to open the AI with a pre-filled prompt referencing this article:
Talk To Us
Tell us what you are building and what it has to connect to. An engineer answers, and you get a straight view of what the work would take.
Get In Touch →