Product Defect Detection Using Autoencoder Difference Clustering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing defect detection methods struggle to accurately distinguish between background errors and real defects, leading to low accuracy in defect detection.

Innovation Solution

A method utilizing a pre-trained autoencoder to generate a reconstructed image, a difference image, and perform clustering processing to identify feature absolute values, followed by generating a target image and determining defect detection results based on these values, effectively distinguishing between background errors and defects.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional defect detection methods are used, then the detection process is simple, but the accuracy of distinguishing between background errors and real defects is low

Engineering Contradiction:
Improvedefect detection accuracyVSAvoiddetection process complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the image processing into distinct stages: obtaining the image, generating difference image through autoencoder, performing clustering processing on difference image, and generating target image. This segmentation allows each stage to focus on specific tasks, improving overall detection accuracy while maintaining manageable process complexity

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary clustering processing step that analyzes the difference image to identify feature absolute values. This intermediary step acts as a mediator between the raw difference image and the final defect detection, filtering out background errors while preserving real defects through mathematical clustering operations

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If background errors are not filtered out, then the detection process remains simple, but the distinction between defect-indicating pixel values and background noise is poor

Engineering Contradiction:
Improvedistinction between defects and background noiseVSAvoidimage processing complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts and removes background errors from the difference image through clustering processing. By identifying and separating the clustering centers corresponding to background errors from those corresponding to real defects, the method extracts only the relevant defect information while discarding background noise, achieving clear distinction between defects and background

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter representation by transforming the image into a difference image with adjusted pixel values, then further processing through clustering to create target image with modified feature absolute values. These parameter changes enable better differentiation between defect and background regions that were not distinguishable in the original image

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12367378B2Method for detecting product for defects, electronic device, and storage medium
Publication Date: 2025.07.22 HON HAI PRECISION INDUSTRY CO LTD
  • US12367378B2 patent drawing
  • US12367378B2 patent drawing
  • US12367378B2 patent drawing

AI summary

A method for detecting a product for defects implemented in an electronic device, the method obtains an image of a product to be detected, obtains a reconstructed image by inputting the image to be detected into a pre-trained autoencoder, generates a difference image from the image and the reconstructed image, obtains a number of feature absolute values by performing clustering processing on the difference image; generates a target image according to the number of feature absolute values, the difference image, and a preset value; and determines a defect detection result by detecting the target image for defects.