# US 2024/0257329 A1 · Method and apparatus with defect detection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0257329 A1
- Document ID: US20240257329A1
- Status: Published application
- Kind: A1
- Application number: 18/357,475
- Filed: 2023-07-24
- Published: 2024-08-01
- Earliest claimed: 2023-02-01
- Assignees: Samsung Electronics Co., Ltd.; Iucf-Hyu (Industry-University Cooperation Foundation Hanyang University)
- Applicants: Samsung Electronics Co., Ltd.; IUCF-HYU(Industry-University Cooperation Foundation Hanyang University)
- Inventors: Seungju HAN; Sanghyuk MOON; Je Hyeong HONG; Hyeon Jeong PARK
- Web page: https://patentgrep.com/patent/US20240257329A1

## CPC

- G06T 7/0004: {Industrial image inspection}
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A processor-implemented method including performing an iterative training operation of a defect detection model which includes randomly assigning a label for a detected defect pattern of an object having a defect to training data responsive to the detected defect pattern being determined to be a defect pattern that is not among the training data, dependent on the label being determined to be a new label, generating an importance score, which represents a frequency of an occurrence of the defect pattern, and executing the training of the defect detection model using the defect data of the defect pattern when the importance score exceeds the first threshold value, and deleting the defect data when the importance score does not exceed the first threshold.

## Claims

### Claim 1

A processor-implemented method, the method comprising:
performing an iterative training operation of a defect detection model, including:
randomly assigning a label for a detected defect pattern of an object having a defect to training data responsive to the detected defect pattern being determined to be a defect pattern that is not among the training data;
dependent on the label being determined to be a new label, generating an importance score, which represents a frequency of an occurrence of the defect pattern; and
executing the training of the defect detection model using the defect data of the defect pattern when the importance score exceeds the first threshold value, and deleting the defect data when the importance score does not exceed the first threshold.

### Claim 2 (depends on 1)

The method of claim 1, wherein the training of the defect detection model comprises:
calculating a quality score of defect image data that is output from the trained defect detection model; and
iteratively performing the training of the defect detection model until the calculated quality score becomes less than a second threshold value.

### Claim 3 (depends on 2)

The method of claim 2, wherein the calculating of the quality score is based on statistical values comprising an average value and a standard deviation value of classification prediction values for the defect pattern and on a true/false classification probability value for the defect pattern.

### Claim 4 (depends on 1)

The method of claim 1, wherein the generating of the importance score is based on one of a determined predefined frequency of occurrence of the defect data and a determined distribution of each pattern of a data set related to the defect data.

### Claim 5 (depends on 1)

The method of claim 1, wherein the assigning of the label includes performing clustering algorithm and a k-nearest neighbors (k-NN) algorithm and assigning a random label to the detected defect pattern dependent on result of the clustering algorithm and the k-nearest neighbors (k-NN) algorithm.

### Claim 6 (depends on 1)

The method of claim 1, wherein the defect detection model comprises a conditional generative adversarial network (CGAN).

### Claim 7 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 1.

### Claim 8

An electronic apparatus, the apparatus comprising:
a processor configured to:
perform an iterative training operation of a defect detection model, including:
randomly assign a label for a detected defect pattern to training data responsive to the detected defect pattern being determined to be a defect pattern that is not among the training data;
dependent on the label being determined to be a new label type, generate an importance score, which represents a frequency of an occurrence of the defect pattern;
and
execute the training of the defect detection model using the defect data of the defect pattern when the importance score exceeds the first threshold value; and
delete the defect data when the importance score does not exceed the first threshold.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the processor is configured to:
calculate a quality score of defect image data that is output from the trained defect detection model; and
iteratively perform the training of the defect detection model until the calculated quality score becomes less than a second threshold value.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the calculating of the quality score is based on statistical values comprising an average value and a standard deviation value of classification prediction values for the defect pattern and on a true/false classification probability value for the defect pattern.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the generating of the importance score is based on one of a determined predefined frequency of occurrence of the defect data and a determined distribution of each pattern of a data set related to the defect data.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein the assigning of the label includes:
performing a clustering algorithm and a k-nearest neighbors (k-NN) algorithm; and
assigning a random label to the detected defect pattern dependent on result of the clustering algorithm and the k-nearest neighbors (k-NN) algorithm.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the defect detection model comprises a conditional generative adversarial network (CGAN), and
wherein the training data corresponds to image data of an object having the defect.

### Claim 14

A processor-implemented method, the method comprising:
randomly assigning a defect label to a determined unknown detected defect type not among defect types in a training data set;
generating an importance score for the unknown detected defect type;
selectively training a machine learning model using the unknown detected defect type when the importance score meets a first threshold value; and
deleting the unknown detected defect type when the importance score fails to meet the first threshold value.

### Claim 15 (depends on 14)

The method of claim 14, wherein the generating of the importance score includes generating the importance score based on a determined frequency of occurrence of the unknown detected defect type.

### Claim 16 (depends on 14)

The method of claim 14, wherein the method further comprises performing a knowledge distillation of a corresponding pattern of the unknown detected defect type to add the corresponding pattern to the training data set when the importance score meets the first threshold.

### Claim 17 (depends on 14)

The method of claim 14, further comprising:
performing similarity comparisons between a plurality of defect types within the training data set to generate similarity values between respective pairs of the plurality of defect types; and
clustering the plurality of defects based on respective similarity values.

### Claim 18 (depends on 17)

The method of claim 17, wherein the random assigning of the defect label is based on a respective similarity value between the unknown detected defect types and a respective defect type of the plurality of defect types having a similar similarity value.

### Claim 19 (depends on 14)

The method of claim 14, further comprising using the trained model to detect another defect that is determined to be a known defect type.
