Over the past year, the same kind of embedded project keeps landing on our desk. Clients describe it in different ways:
“We need a camera that counts insects without sending video anywhere.”
“We need a sensor on the motor that warns us when vibration patterns change.”
“We need to detect abnormal sounds in machinery, even when connectivity is unreliable.”
What is TinyML, and how does it relate to edge AI?
Edge AI means running artificial intelligence on edge devices such as cameras, sensors, gateways, or machines. The device can process data locally and send only results to cloud servers.
TinyML is a subset of edge AI. TinyML focuses on the smallest end of that range: microcontrollers (MCUs) and IoT sensors with a few hundred kilobytes of RAM and power budgets in milliwatts or less. You will also see it called tiny ML, tiny AI, or EdgeML. All of these names describe running AI models on the same device that collects the sensor data.
Cost is a big reason this approach is spreading. Cloud computing and high-end edge hardware are getting more expensive as memory prices climb. TinyML enables a device to work without constant cloud connectivity. Responses get faster and energy use drops. Sensitive data stays on the device, which gives enhanced privacy in clinical and industrial settings.
“Not long ago, most ML processing had to happen in the cloud because edge devices simply didn’t have the power. With edge AI and TinyML, we can now run useful, high-quality logic directly on the device. And do it fast.”
Mykhailo Maidan, CTO at Yalantis
TinyML vs. edge AI: what is the difference?
The two terms are often used as synonyms, but they cover different classes of hardware. Edge AI spans edge servers, GPU modules, smart cameras, and gateways. It includes running complex AI models, like the ones in self-driving cars and other autonomous vehicles that fuse camera and lidar feeds.
TinyML isn’t built for that kind of load. TinyML models are optimized for one narrow job on a chip that costs a few dollars and can run on a coin cell battery.
Our own projects show the difference well. For a PCB manufacturer, we built an edge AI vision system on an NXP i.MX 8M Plus processor with a built-in NPU. That is a classic edge setup with a Linux-class computer. For a respiratory therapeutics company, our smart inhaler runs a small classifier on a Nordic nRF52811 with 24 KB of RAM inside an inhaler add-on. That is TinyML edge computing in its purest form.
Both setups keep AI processing close to the data. For a quick verdict from a battery-powered node, TinyML edge AI is usually the better fit.
Why is tiny machine learning moving into real products now?
For years, tiny machine learning lived mostly in research labs and hobby projects. Engineers could squeeze a model onto a microcontroller, but every step was manual, and the chips were never designed for it. Several changes have since turned TinyML into a practical engineering option.
- The silicon changed first. Chipmakers now build ML support into the microcontroller itself. ST, NXP, and Arm offer MCUs with small neural processing units next to the CPU. ABI Research forecasts more than 4.1 billion TinyML AI chipset shipments by 2031, with NPU-equipped chips growing fastest.
- Then the software caught up. Getting a model onto an MCU used to mean hand-tuning code for every chip. Today, Google’s runtime, now called LiteRT for Microcontrollers, has a core that fits in 16 KB on an Arm Cortex-M3. Edge Impulse built a community of more than 170,000 developers before Qualcomm acquired it in March 2025. When one of the largest chip companies buys a TinyML platform, on-device ML becomes clearly part of the mainstream embedded toolkit.
- Finally, the economics shifted. One sensor costs little to run. Thousands of them sending raw data to the cloud around the clock create large bills and drain batteries fast. Processing on the device changes that math. In our CNC predictive maintenance retrofit, each clip-on sensor analyzes vibration on its own Cortex-M4 core and sends only compact results. Bandwidth dropped by about 95%. The retrofit cost €720 per machine, and the client cut unplanned downtime by 40%.
What value does TinyML bring to the business?
For most companies, TinyML is first a cost and reliability decision. These are the gains we see most often in real-world applications:
- Lower cloud and connectivity costs. TinyML devices send kilobytes of results instead of raw streams.
- Faster decisions. Local inference supports real-time decision-making. Our BLE forklift safety system computes proximity on each forklift and alerts drivers in under 500 ms, which cut near-misses by 60%.
- Fewer site visits. Smart duty cycling keeps sensors running for years, and alerts drive maintenance automation.
- Privacy by design. Raw audio, video, and health data never leave the device.
What are the main TinyML applications and use cases?
The applications of TinyML share one pattern. A sensor produces a steady stream of data, and only a small part of it matters. A tiny model running directly on edge hardware finds that part and ignores the rest. These are the use cases we see most often in TinyML edge AI projects.
Edge TinyML industrial monitoring and predictive maintenance
Vibration, current, and temperature sensors on motors and pumps are the classic case. The model learns the machine’s normal signature and flags the drift that comes before equipment failures. Only alerts leave the device, so batteries can last for years.
This TinyML industrial edge AI on-device pattern is the ground for numerous predictive maintenance programs. For a compressor manufacturer, we built explosion-proof IoT sensors that feed vibration and temperature data into predictive models. The client’s support costs fell by 52%. Our guide to industrial IoT software development covers the wider system.
TinyML in agriculture and environmental monitoring
Field sensors track soil moisture, air quality, or pest activity across large areas, often with no mains power. A local model can count insects from a low-resolution camera or detect a sudden humidity shift. The device then sends a short message over LoRaWAN instead of raw data.
TinyML and edge AI for vision
A tiny ML model on a microcontroller with a camera can detect presence, count objects, or wake a larger processor when something relevant appears. In many systems, the tiny model acts as a trigger, and edge AI systems at the gateway handle the heavy analysis. That is how our PCB inspection system works: a model on the NPU rechecks only the boards flagged by the existing AOI line, which cut false rejects by more than 35%.
Wearables and health devices
A wearable may need to classify motion, heart rhythm, or breathing all day on a small battery. That makes wearables one of the toughest targets for on-device AI. In our smart inhaler project, the firmware grades every inhalation on the device and syncs the result to the app in under three seconds. The device runs for 12 months on a coin cell, and patient adherence rose from 61% to 78% after launch.
Keyword spotting, smart home, and anomaly detection
Wake-word detection in smart home speakers was one of the earliest mass-market TinyML applications. The same always-on approach powers smart devices that detect glass breaking or an appliance making unusual sounds.
Planning a product with on-device ML?
We design the hardware, firmware, and on-device model as one system.
Which microcontroller platforms run TinyML?
Most production TinyML runs on Arm Cortex-M microcontrollers, the default choice for low-power devices.
General-purpose MCUs
Cortex-M4, M7, and M33 cores from ST, NXP, and Nordic power most deployed systems, and Espressif’s ESP32 is popular for Wi-Fi products.
MCUs with neural accelerators
The STM32N6 pairs an 800 MHz Cortex-M55 with ST’s Neural-ART accelerator, rated at 600 GOPS. NXP’s MCX N series includes the eIQ Neutron NPU. Inference runs in hardware, so it is faster and uses less energy.
Neuromorphic accelerators
Neuromorphic chips process events instead of frames. BrainChip’s Akida Pico targets sub-milliwatt operation for wearables and sensor-embedded products.
Which ecosystems and tools do teams use to deploy TinyML?
The common set combines training framework, a conversion step, and a runtime tuned for the chip. These are the AI frameworks and tools we use most:
- LiteRT for Microcontrollers. Google’s open-source runtime for 32-bit MCUs, formerly TensorFlow Lite Micro. We also use its toolchain to quantize and convert vision models.
- Vendor-native toolchains. STM32Cube.AI for STM32 and eIQ for NXP. They know the memory map and the accelerator, so models fit and run efficiently.
- Edge Impulse. An end-to-end platform for collecting sensor data, training, and generating deployable code.
- Arm CMSIS-NN. Optimized neural network kernels for Cortex-M cores.
Our guide to firmware development for embedded IoT devices covers how the model fits into the firmware. For safety-critical code around the model, we also use Rust for IoT.
How do TinyML models fit on devices with limited memory?
On a microcontroller, flash holds the model weights, and RAM holds intermediate results during inference. If peak memory use is higher than the chip offers, the model won’t run.
To optimize models, teams combine quantization, pruning, knowledge distillation, and feature extraction. Quantization alone, from 32-bit floats to 8-bit integers, makes a model about four times smaller.
Feature extraction is often the biggest win. In the smart inhaler, the firmware turns a pressure signal into flow features, and a lightweight decision tree does the rest within 24 KB of RAM. Simple machine learning algorithms like this are easier to validate than traditional AI models built for servers.
What engineering challenges come with TinyML?
TinyML hardware works within strict limits on memory, compute, and power.
Power consumption becomes a product requirement
Devices are often expected to run for years without maintenance. If the battery dies early, the product fails, whatever the model’s accuracy. Teams run inference only when a simple check spots something unusual.
Compute limits restrict model complexity
Microcontrollers offer a fraction of the computational power of larger edge hardware. In the BTE hearing aid we developed, real-time noise reduction runs on a dedicated audio DSP, and the battery still lasts 18 hours. Any ML on devices like this needs lightweight architectures.
Real-time behavior must be predictable
A safety module near industrial machinery has to react within a fixed time, every time. That calls for bounded execution time and timing tests on the target hardware. In our steel plant safety system, moving PPE detection from the cloud to on-site edge units cut alert latency from about 2 seconds to under 50 ms.
“The client couldn’t afford cloud latency – in a steel mill, 2 seconds is the difference between a near-miss and a tragedy. We moved PPE detection from the cloud to edge units on site and brought alert latency from about 2 seconds to under 50 ms. But a fast average isn’t enough near heavy machinery. The alert has to arrive within a fixed time, every time, which means bounded execution time and timing tests on the real hardware. That is the part that separates a demo from a safety system.”
Denys Hukov, Chief Growth Officer at Yalantis
Hardware diversity complicates deployment
Each vendor stack has its own toolchain. When a rollout spans factories with different MCU families, models need re-tuning for each one.
Data quality becomes even more critical
Larger models can absorb some variation between training and field conditions. Tiny ML models can’t. A sensor mounted at a slightly different angle or a change in weather can sharply cut accuracy.
How do we recommend approaching TinyML projects?
These are the guidelines we follow on our own projects.
Get training data from the real environment
Collect data from the exact device and setup you will deploy. If the system counts insects with a camera, train it on images from that camera, with its real mounting position and lighting.
Validate early, then check production limits
Prototyping platforms let you test viability in days. Before production, check on the real hardware that the model fits in flash and RAM, finishes within its timing limit, and lets the device meet its battery life target.
Keep the ML component narrow
The best setups often combine traditional embedded logic with a small, well-scoped model. In computer vision projects, adding a targeted model to an existing pipeline has raised detection accuracy from around 80% to 90% or higher for our clients.
Need a team that ships embedded ML on real hardware?
Yalantis handles board bring-up, firmware, and model deployment in one team.
When should you use TinyML vs. a larger edge AI approach?
TinyML is the right call when the device must decide locally, runs on a battery, and works with limited or costly connectivity. Use the guide below to check your case.
Use edge AI on a stronger processor for video analytics or generative AI applications. Many products combine both.
The edge AI future is tiny (and it’s already here)
Artificial intelligence now runs on sub-milliwatt microcontrollers. Edge AI reduces the need to ship every reading upstream and turns AI into a built-in feature of everyday products. Devices can use AI to process sensor data and become more autonomous.
At Yalantis, we build these systems end to end, from embedded systems design to the cloud. Want to add machine learning capabilities to your next device? Let’s look at your use case together.
Not sure if TinyML fits your device?
Tell us about your sensor and power budget. We’ll help you pick the right hardware and model approach.
FAQ
What is the difference between TinyML and edge AI?
Edge AI is the broad term for artificial intelligence that runs outside the cloud, on gateways, smart cameras, or edge servers with gigabytes of memory. TinyML is the smallest part of that range. It runs on microcontrollers with kilobytes of RAM and milliwatt power budgets, so it suits narrow, always-on tasks.
What are common applications of TinyML?
The most common are predictive maintenance on motors and pumps, agricultural and environmental sensing, and health wearables. Smart home devices use it for wake words and sound detection. Low-power cameras use it to detect presence or count objects. In each case, a small model reacts only to the events that matter.
What is the main advantage of TinyML in low-connectivity environments?
The device can process data locally and keep making decisions when the network is down. A remote pump station or field sensor keeps working, then sends short alerts once a link is available. This saves bandwidth and battery, which matters on cellular, LoRaWAN, or satellite connections.
What hardware is used to deploy TinyML?
Most deployments run on Arm Cortex-M microcontrollers from STMicroelectronics, NXP, and Nordic, or on Espressif’s ESP32 family. For heavier models, newer MCUs add neural accelerators, such as the STM32N6 or chips with Arm Ethos-U cores. Neuromorphic processors like BrainChip Akida target always-on sensing at sub-milliwatt power.
Which embedded ecosystems and tools are used for TinyML deployment?
LiteRT for Microcontrollers (formerly TensorFlow Lite Micro) is the most widely used open-source runtime. Vendor tools such as STM32Cube.AI and NXP eIQ map models onto specific chips and their accelerators. Edge Impulse covers the workflow from data collection to deployable code, and Arm CMSIS-NN supplies optimized kernels.
How does TinyML work on microcontrollers with limited memory?
The model shares a small flash and RAM budget with the firmware. Engineers shrink it with quantization, which turns 32-bit weights into 8-bit integers, and with pruning or distillation. Signal processing often reduces raw sensor data to a few features first. Peak RAM use during inference decides whether the model runs.
Is TinyML suitable for industrial monitoring and predictive maintenance?
Yes, it is one of the most proven TinyML use cases. Battery-powered sensors analyze vibration, current, and temperature directly on the machine and flag early signs of wear. In our CNC retrofit project, on-device processing cut bandwidth by about 95%, and the client reduced unplanned downtime by 40%.
What are the engineering constraints of TinyML?
Devices usually have a few megabytes of flash at most, kilobytes of RAM, and no GPU. Power budgets are in microwatts or milliwatts, so inference must run only when needed. Real-time tasks need predictable timing on the target chip. Teams also face fragmented vendor toolchains and models that are sensitive to field conditions.
When should you use TinyML vs. a larger edge AI approach?
Use TinyML when the device must decide locally, runs on a battery, and handles a narrow task like classification or anomaly detection. Choose a larger edge AI approach for high-resolution video, several models at once, or generative AI. Many products combine both, with TinyML on the sensor and a stronger system at the gateway.