Book a free call

How to Implement Edge AI Step by Step

Edge AI runs models on the device instead of in the cloud. Here is how to pick the hardware, prepare the model and ship a first version that stays fast and reliable.

Hertiv engineering teamReviewed by a senior engineer
6 min read
How to Implement Edge AI Step by Step
On this page

Short answer

Implementing edge AI means running a trained model on a device — a camera, a gateway or a machine — instead of sending data to the cloud. You pick the hardware, shrink the model to fit it, connect the model to the device's inputs and outputs, and monitor it in the field.

What is edge AI?

Edge AI is artificial intelligence that runs on a device at the edge of the network, such as a camera, a sensor gateway or a factory machine, instead of in a data centre or the cloud.

The model is trained in the cloud as usual, then packaged and shipped to the device, where it makes decisions locally. The device sends back only the results — an alert, a count or a label — instead of a constant stream of raw images or sensor readings.

That shift matters for three reasons: decisions happen in milliseconds because there is no round trip to the cloud, the system keeps working when the network drops, and sensitive data can stay on the device instead of travelling over the internet.

The privacy benefit is one reason edge AI is common in regulated settings; see AI security for the wider picture on protecting models and the data around them.

Where does edge AI fit?

Edge AI fits where latency, bandwidth or privacy makes the cloud the wrong place to decide. If a decision must happen in under a second, or the connection is unreliable, the edge is usually the better home for the model.

Use case Why the edge Typical device
Defect inspection Decide in milliseconds on the line Factory camera
Warehouse alerts Works during network outages Gateway
Voice commands Answer without a round trip Speaker or kiosk
Vehicle safety Cannot wait for the cloud On-board unit
Remote monitoring Bandwidth is limited Sensor gateway
Retail counting Footage stays on site Store camera

If none of those reasons apply — the data is small, the decision can wait and privacy is not a concern — a cloud model is simpler to run and to update, so start there instead.

How do you pick the hardware?

Pick the hardware by matching the model to the device, not the other way around. Start from the model's size, the speed you need and the power and heat limits of the location where the device will run.

Three broad options cover most projects. A small single-board computer handles light models such as counting or simple classification. An AI accelerator, either a USB stick or a built-in chip, handles vision models that need real-time speed. An industrial gateway or rugged PC handles several models at once and survives dust, heat and vibration.

Test on the real hardware early, with the real model, because a model that runs fast on a laptop can crawl on a device with a fraction of the memory. Borrow or buy one unit of the target hardware before you commit to a fleet of them.

Check power and heat as well. A device in a warm warehouse or a sealed cabinet may slow down when it gets hot, so measure latency after the device has run for an hour, not just in the first minute.

How do you prepare the model for the edge?

Preparing a model for the edge means making it smaller and faster without losing the accuracy your use case needs. The usual techniques are quantisation, pruning and distillation, and they are often combined.

Quantisation reduces the precision of the model's numbers, which shrinks the model and speeds up the maths. Pruning removes connections that contribute little to the result. Distillation trains a smaller model to copy the behaviour of a larger one. Each technique trades a little accuracy for size and speed, so you must measure the trade on your own data.

After shrinking, convert the model to a format the device can run, such as ONNX or TensorRT, and test it on the target hardware with real inputs. Measure accuracy, latency and memory together, because a model that is fast but wrong is no use to anyone.

A six-step implementation plan

A six-step plan keeps an edge AI project small enough to finish and measured enough to trust.

  1. Define the decision: what the device must detect, how fast, and what happens when it is wrong.
  2. Collect a sample of real inputs from the actual location, with labels for the cases that matter.
  3. Train or adapt the model in the cloud, and set a minimum accuracy bar before you ship anything.
  4. Shrink and convert the model for the target hardware, then measure accuracy, latency and memory on the device.
  5. Wire the model to the device: camera or sensor in, decision out, and a clear path for alerts and logs.
  6. Ship to one device first, watch it for a few weeks, then roll out to the rest of the fleet.

Each step has a check before the next one starts. The most expensive failure in edge AI is shipping a model to hundreds of devices before anyone has watched it work on one.

A MLOps consulting engagement can set up the versioning and rollout pipeline that keeps the fleet on the right model version.

Example: a warehouse camera pilot

Example (hypothetical): a warehouse runs 40 cameras that watch loading docks. Sending every frame to the cloud means 40 cameras x 2,000 images a day = 80,000 images a day. At 0.5 MB per image, that is 80,000 x 0.5 MB = 40,000 MB, or about 40 GB of upload a day.

The team moves the model to the edge instead. Each camera now sends only alerts: 200 alerts a day across the whole warehouse, each with one image, so 200 x 0.5 MB = 100 MB a day. Upload falls from about 40 GB to about 0.1 GB a day.

Latency falls too. A cloud round trip takes about 400 milliseconds, while the on-device model answers in about 40 milliseconds, which is fast enough to stop a forklift before it enters a blocked aisle. The pilot runs on two cameras for a month before the other 38 are switched over.

The cost picture for this kind of project is covered in edge AI cost, which breaks down hardware, model work and running costs.

What are the common mistakes?

The most common mistakes are picking hardware before the model exists, shipping to the whole fleet at once and forgetting that edge models still need updates.

  • Buying a fleet of devices before testing the model on one unit of the target hardware.
  • Shrinking the model until it is fast but too inaccurate for the decision it must make.
  • Shipping to every device at once, so a bad model fails everywhere on the same day.
  • Treating the model as finished at launch, with no plan for retraining when the scene changes.
  • Collecting no logs from the field, so failures are invisible until a customer reports them.
  • Ignoring heat and power limits, so the device throttles and the model slows down in summer.

Plan the update path before the first device ships. A model that cannot be updated in the field becomes a liability the first time the real world changes around it.

Key takeaways

  • Edge AI runs the model on the device, so decisions happen in milliseconds and survive network outages.
  • Pick hardware by matching the model to the device, and test on the real hardware early.
  • Shrink the model with quantisation, pruning or distillation, and measure accuracy on your own data.
  • Ship to one device first and watch it for weeks before rolling out to the fleet.
  • Plan the update path before launch, because edge models still need retraining and new versions.

Frequently asked questions

What is the difference between edge AI and cloud AI?

Edge AI runs the model on the device, while cloud AI runs it in a data centre. Edge AI answers faster, works without a network and keeps raw data on site. Cloud AI is easier to update and suits large models that need more compute than a device can offer.

How much does edge AI hardware cost?

It depends on the model and the setting. A small single-board computer suits light models, an accelerator handles real-time vision, and an industrial gateway suits harsh environments. See vendor site for current prices, and test on the target hardware before buying a fleet.

Do I need to retrain a model for the edge?

Usually you adapt rather than retrain from scratch. You train in the cloud, then shrink the model with quantisation, pruning or distillation and convert it to a format the device runs. Measure accuracy again on the device, since shrinking can change results.

When is edge AI the wrong choice?

When the data is small, the decision can wait and privacy is not a concern, a cloud model is simpler to run and update. Edge AI earns its place when latency, bandwidth or privacy makes the cloud the wrong place to decide.

How do I update a model that is already on devices?

Ship model updates like software updates: version each model, push it to a few devices first and roll back if accuracy drops. Keep a log of which device runs which version, so you can trace a bad decision to the model that made it.

Can edge AI work without any internet connection?

Yes, that is one of its main strengths. A device with a local model can keep deciding while offline, and it can store results until the connection returns. Plan what the device does with its backlog when the network comes back.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning an edge AI deployment for cameras or machines? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Computer Vision service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call