Edge AI for IoT developers
Edge AI for IoT developers means running a trained AI model on a connected device or a nearby gateway. The model analyses sensor readings, images or other inputs locally so the system can detect an event or make a decision where the data is collected.
For example, on a packaging line, a camera takes a picture as each container passes. A computer beside the line checks whether the lid is in place. It records the exceptions and sends a count to the monitoring application while the line keeps running.

How edge AI works in an IoT system
An edge AI system collects or receives data from a source – sensor, camera, etc. The edge device or a nearby gateway prepares the input as needed and runs the trained model locally. The application uses the result to act, keep a record or send an update.

Example: checking lids on a packaging line
A development team usually trains the specific AI model before putting it on the device. Applying that model to new inputs is called inference. Following our previous packaging line example, the inspection follows four steps.
- The camera captures an image of each container.
- The edge computer crops and resizes the image to match the input the model was trained on.
- The model scores the image. The application checks the score and flags a missing lid for review.
- The computer records the result with a timestamp. It sends inspection counts to the dashboard and holds unsent results locally during a connection outage.
The model handles one part of the inspection. Device software controls when the camera takes a picture, what happens when the model flags a container and which results the system keeps. Running the inspection locally avoids a round trip to the cloud before the application flags a container.

Where edge AI helps in IoT deployments
Local inference is useful where a device has to respond quickly, produces a lot of raw data or works with an intermittent connection.
- Equipment monitoring. A gateway runs a model on short vibration samples from several ventilation fans. If one fan’s vibration stays outside its usual pattern, the application alerts maintenance staff to check that fan.
- Building occupancy. A room counter estimates how many people are present from a low-resolution thermal sensor. It sends the occupancy total to the building system.
- Asset tracking. A tracker on a shipping crate runs a model that recognises rough handling from accelerometer readings. It records the time and position of the event so staff know where it happened.
- Queue monitoring. A camera above a checkout queue counts people locally. It sends totals to a dashboard and keeps raw video on site. If the queue stays above a set limit, the application alerts staff so they can open another checkout.
- Smart metering. An electricity meter uses a model to estimate which appliances are drawing power from patterns in the home’s electricity use. It sends the estimates to an energy app.
- Voice control. A small model on a low-power audio processor listens for a wake phrase. A likely match wakes the main processor to check the phrase and handle the request.
- Other
An edge AI device can process raw data locally and send a short update, such as a count or an alert. Smaller uploads use less bandwidth and give the cloud less data to process and store. This may lower costs when the service charges by data volume.
Some devices put their radios to sleep between uploads. Reporting less often keeps the radio in that low-power state for longer. Running the model also uses energy and takes up memory. When designing a low power IoT device, measure how much energy it uses over a full operating cycle, including sensing, inference, transmission and time spent asleep.
Choosing hardware for edge AI on IoT devices
Start with the input and the time available to act. A motion sensor that checks several readings at once needs different IoT hardware from a camera that inspects products throughout a shift.
| Where inference runs | Typical use | What to check |
|---|---|---|
| Microcontroller | Classify movement on a battery-powered sensor node. | Peak RAM, model size in flash and energy per inference. |
| Gateway or single-board computer | Analyse readings from several machines on one Linux device. | Memory and processing time with all sensors reporting. |
| Edge computer with an AI accelerator such as a neural processing unit (NPU) | Inspect products with one or more cameras. | Supported model operations, frames per second and heat in the enclosure. |
A field-programmable gate array (FPGA) lets engineers build a custom processing pipeline in hardware. On a high-speed inspection line, an FPGA can resize images and run inference on several camera feeds in parallel. The application needs the result before each product reaches the reject gate.
Measure the complete interval from data capture to the response. For a camera, include the time it takes to capture and resize the image as well as the model’s processing time.
Edge AI for IoT developers in production
Development and deployment tools
Choose tools based on the target hardware, model format and stage of the project. Some tools help you collect and label sensor data and train a model. Others convert a trained model or run it on the device. The table shows a few current options for common IoT setups.
| Tool | Where it fits | Why use it |
|---|---|---|
| Edge Impulse | A sensor project that needs data collection, labelling, training and deployment, such as a vibration monitor. | Packages the signal processing and trained model together for deployment on a supported device. |
| LiteRT for Microcontrollers | A compatible microcontroller running a small model, such as a battery-powered motion sensor. | Runs inference inside the device firmware. Check that the model fits in memory and uses supported operations. |
| STM32Cube AI Studio | A project built around an STM32 microcontroller and a trained model. | Generates optimised C code for the selected STM32 and helps validate inference on the chip. |
| ONNX Runtime | A Linux gateway or industrial computer running a model in ONNX format. | Runs inference on the CPU or uses a compatible accelerator backend, such as TensorRT for NVIDIA GPUs. |
| OpenVINO | An industrial computer with a supported Intel CPU, GPU or NPU. | Optimises the model and runs inference on the selected Intel device. |
| NVIDIA TensorRT | A supported NVIDIA GPU, for example in a multi-camera inspection system. | Builds an optimised GPU inference engine from a trained model, such as an ONNX export. |
| AMD Vitis AI | A supported AMD adaptive system-on-chip (SoC), for example in a machine-vision system. | Compiles compatible models for the target accelerator and provides the inference runtime. |
If the model exceeds the device’s memory or response-time budget, try optimising it before deployment. Quantisation represents model values with fewer bits. Pruning removes parts of the model or sets selected weights to zero, which can make the model easier to compress.
Check which model operations the runtime supports and which run on the accelerator, if you use one. Test the build you plan to ship on the target device with sensing and communications running at the same time. Record the tool versions and build settings so your team can reproduce the deployment.
Testing and updating models in the field
Test with data from the installation site and include the range of conditions the device will encounter. Measure accuracy and response time. Agree on acceptable performance with the people who will use the results.
Record the model version and input settings on each device. For a fleet, a central service can store selected results for review and distribute tested model versions. If site conditions change, review field samples before retraining the model on a workstation or in the cloud.
Test each revised model before rollout, then try it on a small group of devices. Compare its performance with the current version and check how the devices recover from an interrupted update.
On the packaging line from the earlier example, you could test the lid inspection model with different container colours, lighting conditions and line speeds. Then record how often a container with no lid passes inspection and how often the system flags a correctly closed one.
If a new container design leads to more false alerts, review images from the line and use them to retrain the model. Trial the revised version at one inspection station before a wider rollout.
Connecting an edge device with LMT IoT
An IoT cloud platform can bring alerts and measurements from multiple sites together. For products that need LTE-M or NB-IoT, the LMT IoT module provides cellular connectivity. A device built with IoT Shortcut can use that connection to send selected readings or alerts to LMT IoT cloud services.
FAQ
You need a sensor or camera and a processor with enough memory and time to run the model. A microcontroller can handle a small motion classifier. A system that inspects several camera streams may need an edge computer with an accelerator. Test the model with the full application running.
Start with a task-specific model and check how much input it needs to make a reliable decision. Try 8-bit quantisation if the target runtime supports it. Use representative samples to calibrate the quantised model. If pruning sets some weights to zero, inference can run faster when the runtime skips the corresponding calculations.
Compare the original and optimised models on a separate set of field recordings. Check that the optimised version still detects the events that matter, and measure memory use, latency and energy on the target device.
Edge Impulse helps teams collect data, train models and package them for supported targets. LiteRT for Microcontrollers runs compatible small models in firmware. TensorRT helps optimize inference on supported NVIDIA GPUs. Try the deployment tool on your board before committing to a model and processor.
Give each device its own credentials and protect any images or sensor data it keeps. Use secure boot where supported and have the device verify signed firmware and model packages before applying updates. Limit who may deploy a new model, and test recovery to an approved version.
Edge AI for IoT developers starts with a local task that has a measurable result. For a first project, compare a small model with a simple rule on the same sensor data. Use the pilot to see which one meets the required accuracy, response time and power budget.
