The breakthrough of few-shot learning in industrial vision centers on compressing the defect samples needed for a line changeover from hundreds of images to a few or a few dozen, so that a visual inspection model can be trained and deployed on the day a new product goes on line. What it solves is not insufficient detection accuracy but the old problem that has held industrial vision back for years: samples cannot be assembled and changeovers cannot wait. For discrete manufacturing with many varieties and small batches, this capability matters more practically than simply raising accuracy by a few points.
1. What problem does few-shot learning actually solve for industrial vision?
Traditional industrial vision takes two paths. One is rule-based algorithms relying on edges, grey levels and template matching, which misjudge as soon as incoming parts change slightly; the other is supervised deep learning detection, which requires annotating hundreds to thousands of defect images. The trouble is that defects in many processes are low-frequency events: a line may produce only a few dozen non-conforming parts in a month, so samples simply cannot be accumulated. The new product introduction stage is even more typical - before mass production, where would defect samples come from?
Few-shot learning addresses exactly this contradiction. It uses a small number of annotated samples plus prior knowledge to give the model the ability to distinguish from only a few examples. The N-way K-shot setting often mentioned in the industry usually has K between 1 and 10, meaning 1 to 10 images per defect class. For a factory, this means engineers can photograph a few limit samples and the model can get started, then iterate with line data afterwards.
2. On which parameters do its technical principles and key capabilities show up?
Mainstream approaches fall into three technical routes. The first is data augmentation and synthesis, expanding a small number of samples with geometric transformation, lighting simulation and texture synthesis, or using generative models to fill in difficult samples during training. The second is metric learning, typically siamese networks and prototypical networks, which learn a distance metric for whether two images belong to the same defect class rather than memorising what a given defect looks like, so adding a new class does not require retraining the whole network. The third is transfer learning with a pre-trained backbone, using a model pre-trained on large-scale natural or industrial images for feature extraction and then fine-tuning the classification head with a few samples.
In terms of verifiable metrics, industrial vision usually cares about these: detection cycle time must match the line, commonly requiring per-part inspection within tens to hundreds of milliseconds; image resolution depends on the process, with SMT component inspection often achieving more than a dozen pixels per millimeter while surface defect inspection demands more for tiny scratches; classification accuracy under K=5 settings reaches above 90% in most published research and engineering practice, but specific values depend strongly on inter-class differences and imaging quality and cannot be generalised. On the integration side, images are usually acquired through GigE Vision or USB3 Vision, and the system interfaces with the PLC and MES over OPC-UA or Modbus TCP, returning judgement results and archived images.
3. Which processes in manufacturing adopted it first?
Suppose an electronics plant runs multi-variety small-batch PCBA processing with frequent SMT changeovers, where the AOI inspection program must be retuned at every product change. Solder defects such as bridging, cold joints and tombstoning vary widely in morphology, and new models have no historical samples. With a few-shot solution, process engineers select a dozen typical images using IPC-A-610 acceptance criteria and can get the new model inspection running the same day, then feed line misjudgements and escapes back for incremental training.
Suppose an automotive parts company inspects die-cast surfaces, where defects such as porosity, shrinkage cavities and scuffing occur at low frequency and manual visual inspection has poor consistency. A few-shot solution can first build a baseline model from a small number of defect samples, combine it with normal samples for anomaly detection, pick out parts that have not been seen before but do not look normal and hand them to manual review, and then refine classification as samples accumulate.
Another scenario is quality front-loading during new product trial production. When the die is newly made and the process is not settled, defect samples are almost zero; using few-shot learning for rapid prototype validation is far faster than waiting for mass production to accumulate samples before deploying a vision system.
4. Which issues must be pinned down in selection and implementation?
The first frequent question is whether the hardware must be replaced. Most few-shot solutions raise rather than lower the requirements on imaging conditions, because with few samples the model is more sensitive to lighting and background changes. A stable light source, a fixed station, and suitable lens and resolution are prerequisites; if the lighting solution is poor, no amount of algorithm strength can compensate.
The second is how to choose samples. Few-shot does not mean casually taking a few photos; sample selection must cover the main defect morphologies and boundary cases, and annotation must strictly align with acceptance criteria, otherwise a few mislabelled samples have a far greater impact on the model than in the era of large samples.
The third is the integration approach. Confirm whether the solution can connect to the existing MES and SCADA, whether image acquisition triggering is software or hardware triggered, and whether judgement results can be archived by station and batch; these directly affect subsequent traceability.
The fourth is the implementation timeline. The value of few-shot lies in speed: from sample collection and annotation to model go-live can usually be counted in days, but line acceptance and convergence of the misjudgement rate still need a trial operation period, so do not expect zero misjudgements on day one.
The fifth is the cost structure. It lies mainly not in algorithm licensing but in imaging hardware, industrial PC or edge compute, and ongoing sample maintenance manpower. Without a well-built sample feedback mechanism, the model will drift over time.
5. Which processes does it suit and which scenarios does it not?
Suitable scenarios are fairly clear: discrete manufacturing processes with many varieties, small batches and frequent changeovers; links where defects are low-frequency and samples are naturally scarce; occasions during new product trial production that need rapid validation of inspection feasibility; and stations where incoming consistency and imaging conditions are relatively controllable.
The less suitable cases should also be stated clearly. In strongly reflective, highly deformed or cluttered-background scenarios, the stability of few-shot models drops noticeably, so imaging must be solved first; in processes where the defect definition itself is vague and even human re-judgement consistency is low, no amount of few-shot can learn a stable boundary; and for metrology-grade inspection with extremely high precision requirements, such as micron-level dimensional measurement, traditional vision and dedicated measuring instruments should remain the main tools. In addition, few-shot is not maintenance-free: without a sample feedback and periodic evaluation mechanism, the model will still degrade.
Industrial software and smart manufacturing vendors that have worked for decades since the ERP era, serving 1.2 million customers with tens of millions of terminals deployed across domestic and overseas markets, usually emphasise one point when embedding such capability into existing vision platforms and MES links: the algorithm is only one part, and only when imaging, sample management and line integration are done solidly can few-shot learning truly take hold on the industrial floor.