# US 2025/0166266 A1 · Systems and methods for defect image generation using diffusion model sampling

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

- Number: US 2025/0166266 A1
- Document ID: US20250166266A1
- Status: Published application
- Kind: A1
- Application number: 18/949,390
- Filed: 2024-11-15
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Applicants: Samsung Display Co., Ltd.
- Inventors: Zhihong Pan; Rahul Shenoy; Kaushik Balakrishnan; Qisen Cheng; Janghwan Lee
- Web page: https://patentgrep.com/patent/US20250166266A1

## CPC

- G06T 11/60: Creating or editing images; Combining images with text
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 5/70: Denoising; Smoothing
- G06T 7/001: {using an image reference approach}
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30108: Industrial image inspection
- G06T 2207/30148: Semiconductor; IC; Wafer
- G06T 2207/30168: Image quality inspection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A system and a method are disclosed for defect image generation using diffusion model sampling. The method includes generating, by a processor via a diffusion model, a noisy image from a defect-free image, generating, by the processor via the diffusion model, a sampled defect image and a sampled defect-free image from the noisy image, generating, by the processor, a mask based on the sampled defect image and the sampled defect-free image, generating, by the processor, a synthetic defect image by generating an additional sampled defect image based on the noisy image and the mask, and transmitting, by the processor, the synthetic defect image.

## Claims

### Claim 1

A method comprising:
generating, by a processor via a diffusion model, a noisy image from a defect-free image;
generating, by the processor via the diffusion model, a sampled defect image and a sampled defect-free image from the noisy image;
generating, by the processor, a mask based on the sampled defect image and the sampled defect-free image;
generating, by the processor, a synthetic defect image by generating an additional sampled defect image based on the noisy image and the mask; and
transmitting, by the processor, the synthetic defect image.

### Claim 2 (depends on 1)

The method of claim 1, wherein the defect-free image comprises a real defect-free image of a target product.

### Claim 3 (depends on 1)

The method of claim 1, wherein the generating the sampled defect image comprises sampling the diffusion model based on a first class label set to a defect label.

### Claim 4 (depends on 3)

The method of claim 3, wherein the generating the sampled defect-free image comprises sampling the diffusion model based on a second class label set to a defect-free label.

### Claim 5 (depends on 4)

The method of claim 4, wherein the generating the sampled defect image and the sampled defect-free image comprises sampling the diffusion model for a set of time steps in an iterative process.

### Claim 6 (depends on 1)

The method of claim 1, wherein the generating the mask comprises determining a difference between the sampled defect image and the sampled defect-free image.

### Claim 7 (depends on 1)

The method of claim 1, wherein the generating the synthetic defect image comprises generating a defect within a location defined by the mask and overlaying the mask over the additional sampled defect image.

### Claim 8 (depends on 1)

The method of claim 1, wherein the generating the synthetic defect image comprises replacing a background of the synthetic defect image outside of a location defined by the mask.

### Claim 9 (depends on 8)

The method of claim 8, wherein the replacing the background of the synthetic defect image is performed based on the defect-free image.

### Claim 10 (depends on 1)

The method of claim 1, wherein the synthetic defect image comprises a synthetic defect image of a target product and the defect-free image of the target product.

### Claim 11 (depends on 1)

The method of claim 1, wherein the generating the synthetic defect image comprises denoising an amount of noise within a location defined by the mask.

### Claim 12 (depends on 11)

The method of claim 11, wherein the denoising is performed for the additional sampled defect image for a set of time steps.

### Claim 13 (depends on 1)

The method of claim 1, wherein the diffusion model is trained based on a real defect-free image and a real defect image.

### Claim 14 (depends on 13)

The method of claim 13, wherein the real defect-free image and the real defect image are associated with a source product.

### Claim 15

A device comprising:
one or more processors that are configured to perform:
generating a sampled defect image and a sampled defect-free image from a noisy image using a diffusion model;
generating a mask based on the sampled defect image and the sampled defect-free image;
generating a synthetic defect image by generating an additional sampled defect image based on the noisy image and the mask; and
transmitting the synthetic defect image.

### Claim 16 (depends on 15)

The device of claim 15, wherein the one or more processors are configured to perform the generating the sampled defect image by sampling the diffusion model using a first classification set to a defect label.

### Claim 17 (depends on 16)

The device of claim 16, wherein the one or more processors are configured to perform the generating the sampled defect-free image by sampling the diffusion model using a second classification set to a defect-free label.

### Claim 18 (depends on 17)

The device of claim 17, wherein the one or more processors are configured to perform the generating the sampled defect image and the sampled defect-free image by sampling the diffusion model for a set of time steps in an iterative process.

### Claim 19 (depends on 15)

The device of claim 15, wherein the one or more processors are configured to perform:
the generating the mask by determining a difference between the sampled defect image and the sampled defect-free image; and
the generating the synthetic defect image by generating a defect within a location defined by the mask.

### Claim 20

A system comprising:
a processing circuit; and
a memory storing instructions, which, based on being executed by the processing circuit, cause the processing circuit to perform:
generating a noisy image from a defect-free image based on a diffusion model;
generating a sampled defect image and sampled defect-free image from the noisy image based on the diffusion model;
generating a mask based on the sampled defect image and the sampled defect-free image;
generating a synthetic defect image by generating an additional sampled defect image based on the noisy image and the mask; and
transmitting the synthetic defect image.
