AI Quality Control System for Manufacturing: A Complete Edge AI Deployment Guide

Summary

Deploying AI quality control on the factory floor is more complex than training a model — it requires custom datasets, careful hardware selection, and robust edge infrastructure. Digi International's ConnectCore 95 SOM, paired with Digi ConnectCore Cloud Services, provides a complete platform for machine vision inspection: from NPU-accelerated inference and containerized model packaging to over-the-air updates, remote monitoring, and a continuous improvement loop that keeps models accurate as real-world conditions change.

Manufacturers are under pressure to catch defects faster, reduce waste, and keep production lines moving without adding headcount. AI quality control software for manufacturing has emerged as the most practical answer to that pressure. However, getting it to work reliably on the factory floor is harder than most teams expect.

The challenge is not building a model that detects defects. Most teams can do that in a controlled environment. The challenge is deploying that model to embedded hardware at the edge, keeping it accurate as production conditions change, and managing it across a fleet of devices in multiple facilities without a data scientist on-site at every location.

A recent Digi International webinar, "Closing the Edge AI Gap: From Model Training to Real-World Deployment," addressed this problem end to end. Presented with RBZ Robot Design, the session used a live automated visual inspection system running in a bakery in Valencia, Spain to show every stage of the deployment process, from data collection through OTA model updates in the field. This post uncovers the key lessons and applies them to industrial quality control deployments.

Key Takeaways:

  • Reaching the 95%+ accuracy threshold required for manufacturing quality control requires a custom dataset built from your actual production environment, not generic open-source images.
  • The training framework you choose should be driven by the accelerator you plan to run inference on. Changing frameworks mid-project is costly.
  • Quantization reduces model size by roughly 4x and dramatically speeds up inference, but introduces 5 to 10% accuracy loss. Quantization-aware training is the most effective way to manage it.
  • Inference performance varies dramatically by hardware tier. The internal NPU on Digi ConnectCore 95 delivers roughly 27x faster inference than the CPU, while the external RBZ ARA240 accelerator brings that down to under 2 milliseconds.
  • Containerization makes edge AI deployments portable, versioned, and updatable without touching the application layer above.
  • Digi ConnectCore Cloud Services provides OTA model updates, remote monitoring, and a continuous improvement loop that scales from one device to thousands.
  • The Digi ConnectCore 95 is designed with an upgrade path built in. Moving from the internal NPU to an external accelerator requires a container update, not a hardware replacement.

1. Data Collection and Annotation

This step is where most projects underestimate the effort required. Open-source image datasets can produce models that reach 75 to 80% accuracy, but manufacturing quality control typically requires 95% or higher. Reaching that threshold means building a custom dataset that reflects the actual production environment: your products, your lighting, your defect types.

The bakery project took several months to collect usable data. The facility produces different types of bread on different days based on demand, so the dataset had to cover a wide range of products and conditions. That required weeks of continuous video recording on-site, followed by frame extraction and manual labeling in collaboration with bakery staff who could identify what actually constituted a defect.

The practical lesson: data collection should start earlier than feels necessary, and teams should plan from day one for the dataset to evolve as devices in the field surface new edge cases.

2. Training Framework Selection

The framework used to train the model should be chosen based on where it will ultimately run. If the target accelerator requires TensorFlow Lite, training in TensorFlow from the start avoids a difficult conversion later. Accelerators that accept ONNX or PyTorch have other options.

For the bakery inspection system, RBZ Robot Design selected PyTorch and ONNX because they could target both the CPU and the external ARA240 accelerator. A separate TensorFlow model was built to validate against Digi ConnectCore 95's internal NPU. The framework decision shaped every downstream step, and reversing it mid-project would be costly.

3. Cloud Model Training

GPU-based cloud training typically produces a floating-point model. This step is the most familiar part of the pipeline for most AI teams, but one discipline that consistently gets skipped is checkpoint registration. Every training run, including its hyperparameters and results, should be logged and stored. When a model starts to drift in the field six months after deployment, the ability to trace the issue back to a specific training state is invaluable.

4. Model Optimization for Edge Inference

This is the step that separates edge AI from cloud AI. Models running on an embedded NPU must be quantized from 32-bit floating point to 8-bit integer representation. The payoff is significant: roughly 4x reduction in model size, lower memory bandwidth requirements, and faster inference. But quantization introduces accuracy loss of 5 to 10%, and sometimes more.

The most effective way to manage that loss is quantization-aware training, which modifies the training process itself to account for the precision reduction that will happen at inference time. For the NXP i.MX 95 and the Digi ConnectCore 95 platform, NXP's eIQ software framework provides the complete tool chain: quantization, accuracy recovery, and inference deployment across all three compute tiers.

One architecture principle that held true in the bakery project: smaller models quantize more cleanly than larger ones. Splitting a complex task into two lighter models, e.g. one for localization, one for classification, can be easier to optimize for the edge than building a single model that handles both.

5. Container Packaging

Once the model is optimized, it is packaged into a container alongside its inference runtime, dependencies, and configuration. Containerization is now standard practice for production edge AI. The container is portable, versioned, and reproducible. It also decouples the application layer from the inference layer: if the target accelerator changes from the internal NPU to the ARA240, a container swap handles the transition without touching the application above it.

Digi ConnectCore Cloud Services supports LXC, Docker, and Podman container formats. The packaged container is pushed to the cloud-based repository, where it becomes the artifact that gets deployed, monitored, and updated across the device fleet in the field.

Get the Datasheet
Learn about Digi ConnectCore 95 SMARC SOM