Wafer selectivity detection method and system, medium and program product

By employing a wafer selective inspection method, and utilizing grid cell partitioning and deep learning models to assess the correlation between defect type and yield, the problem of resource waste and insufficient risk assessment in existing technologies is solved, enabling efficient defect analysis and process optimization.

CN121786418APending Publication Date: 2026-04-03XINLI INTELLIGENT TECH (SUZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-17
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing wafer defect detection technologies suffer from resource waste and a lack of risk assessment capabilities, failing to efficiently identify critical defects that affect yield, resulting in slow detection speeds and insufficient guidance for process optimization.

Method used

A wafer selective inspection method is adopted, which performs coarse-grained defect pre-scanning by dividing the grid cells, extracts defect features by combining channel and spatial attention mechanisms, constructs a dual-task deep learning model and graph neural network, performs defect type rating and yield correlation assessment, and dynamically schedules computing resources.

Benefits of technology

It has achieved optimized allocation of computing resources, improved the efficiency and engineering practicality of the defect analysis system, ensured the accurate capture of key risks and the timely output of high-value analysis conclusions, and improved production line throughput and decision-making effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121786418A_ABST
    Figure CN121786418A_ABST
Patent Text Reader

Abstract

The invention relates to a wafer selectivity detection method and system, a medium and a program product. The method comprises the following steps: acquiring a preprocessed to-be-detected wafer image; dividing the to-be-detected wafer image into a plurality of grid units; performing coarse-grained defect pre-scanning on the to-be-detected wafer image, and identifying a preliminary defect type and a spatial distribution condition; the spatial distribution condition comprises a distribution range and a function importance region; rating based on the preliminary defect type to obtain a defect type rating; obtaining a yield correlation rating based on the defect type rating and the spatial distribution condition; and selecting whether to carry out yield analysis or not according to a yield correlation rating result. According to the method, the recognition accuracy of the high-relevance defects is remarkably improved, and meanwhile, the overall optimization of the analysis efficiency is realized through lightweight processing of the low-risk area.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority application This application claims priority to Chinese Invention Patent Application No. 2025118605454, filed on December 10, 2025, entitled "A Method and System for Collaborative Prediction of Wafer Defects and Yield", which is incorporated herein by reference in its entirety. Technical Field

[0002] This application relates to the technical field of chip inspection, and in particular to a wafer selective inspection method, system, medium, and program product. Background Technology

[0003] In the semiconductor manufacturing industry, wafer defect detection is a crucial step in ensuring the yield of the final chip. As manufacturing processes advance to the nanoscale, the number and types of defects per unit area of ​​a wafer increase dramatically. How to efficiently and accurately identify defects that have a critical impact on yield from a massive number of defects has become a core challenge for the industry.

[0004] Current mainstream defect detection and analysis solutions, whether based on traditional machine vision or emerging deep learning models, generally adopt a one-size-fits-all, indiscriminate processing approach. Specifically, the system performs a uniform and comprehensive scan and analysis of the entire wafer image, allocating equal computing resources to all identified defects, regardless of their type, size, or location, for detailed identification and classification. The drawbacks of this approach are becoming increasingly apparent with advanced manufacturing processes: First, a single wafer may contain tens of thousands of defects, but the vast majority of these (such as tiny particles in non-functional areas or shallow scratches with no electrical impact) have negligible impact on chip functionality and final yield. However, current technology still consumes significant time and computing power to meticulously process these benign or low-risk defects, severely slowing down inspection speed and limiting production line throughput. Second, this indiscriminate processing model lacks the ability to assess the risk of defects and cannot provide prioritization guidance for process optimization. Production line engineers end up with a lengthy list of all defects, and they still need to rely on experience to manually sift through the critical defects that could lead to batch yield losses, making it difficult to pinpoint the root cause of process problems in a timely and accurate manner.

[0005] Existing technology CN113609814A provides a wafer yield loss prediction method and a custom defect density graph self-reporting system. The wafer yield loss prediction method includes sequentially acquiring the overall defect density of all chips on the wafer; establishing a defect density data model; acquiring the defect density graph of the wafer; sequentially analyzing the failure rate of all chips in the defect density graph; and predicting the yield loss of the wafer. Similarly, existing technology CN120673102A discloses a wafer defect classification method. This method classifies defects by acquiring multimodal test information of the wafer and generating multiple test maps, considering test information from different modes to improve classification accuracy. However, the above methods require manual intervention to define the attention graph, which limits the degree of automation and processing speed. Secondly, the method does not include steps for yield testing and optimization, lacking a clear mechanism to quantify the impact of defects on yield. Finally, the method lacks an end-to-end optimization process, affecting the overall performance and prediction accuracy of the model. Summary of the Invention

[0006] The purpose of this invention is to provide a wafer selective inspection method, system, medium, and program product that partially solves or alleviates the above-mentioned deficiencies in the prior art and can optimize resource allocation in the wafer inspection process.

[0007] To solve the aforementioned technical problems, the present invention specifically adopts the following technical solution: A first aspect of the present invention is to provide a wafer selective detection method, comprising the following steps: Acquire a pre-processed image of the wafer to be inspected; The image of the wafer to be inspected is divided into multiple grid units; A coarse-grained defect pre-scan is performed on the image of the wafer to be inspected to identify the preliminary defect types and spatial distribution. The spatial distribution includes the distribution range and the functional importance region. The distribution range is the size of the physical area spanned by the defect on the wafer surface and the number of grid cells it covers. The functional importance region is the importance level of the circuit functional area corresponding to the location of the defect. Based on the preliminary defect type, a defect type rating is obtained; Yield correlation ratings are obtained based on defect type ratings and spatial distribution, including: Assign a base weight score to the defect type rating; The basic weight scores are weighted and adjusted based on the spatial distribution. The weighted scores are mapped to a predefined yield correlation rating. The decision to perform yield analysis is based on the yield correlation rating results, including: The yield correlation rating results include three levels: high, medium, and low; If the yield correlation rating is high, then the pre-trained defect yield correlation model is called to perform yield analysis. If the yield correlation rating is medium, then the pre-trained lightweight model is called to perform yield analysis. The pre-trained lightweight model is obtained by distilling the pre-trained defect yield correlation model.

[0008] Furthermore, rating based on the aforementioned preliminary defect type includes: The initial types of defects are classified into at least two associated levels, with the first associated level including mask defects, circuit breaks and via defects, and the second associated level including particulate contamination, dirt and protrusions.

[0009] Furthermore, the steps for obtaining the pre-trained defect yield correlation model include: Construct a training dataset, which includes preprocessed wafer defect images and wafer normalized yield data; Construct a dual-task deep learning model, the dual-task deep learning model including: A defect feature extraction module, which uses channel attention mechanism and spatial attention mechanism to extract defect feature vectors from the preprocessed wafer defect image; The defect classification module classifies defect types based on the defect feature vectors output by the defect feature extraction module. The yield correlation analysis module divides the wafer surface into grid cells based on graph neural networks to construct a defect yield correlation graph. By learning the spatial distribution and interaction of defects, it outputs the yield loss corresponding to each type of defect or defect combination. A loss function is constructed using wafer normalized yield data, and the loss function is used to train a dual-task deep learning model. Then, the image of the wafer to be inspected is input into the trained dual-task deep learning model, and the defect classification result and the corresponding yield loss are output.

[0010] Furthermore, the processing flow of the channel attention mechanism is as follows: Initial feature maps are obtained by using an initial convolutional layer to extract initial features from the preprocessed wafer defect image. Perform global average pooling on each channel of the initial feature map to obtain global features; The global features are transformed through a fully connected layer to obtain the channel attention weights; The channel attention weights are multiplied by each channel of the initial feature map to obtain the weighted feature map.

[0011] Furthermore, the processing flow of the spatial attention mechanism is as follows: Perform global max pooling and global average pooling on the weighted feature map; The results of global max pooling and global average pooling are concatenated along the channel dimension to form a concatenated feature representation; The concatenated feature representation is input into a convolutional layer to extract spatial correlation information; The output of the convolutional layer is processed using an activation function to generate spatial attention weights; The generated spatial attention weights are multiplied element-wise with the weighted feature map to obtain the final defect feature vector.

[0012] Furthermore, the method of dividing the wafer surface into grid cells based on a graph neural network to construct a defect yield correlation graph includes: The wafer surface is divided into M×N grid cells, each grid cell is a node in the graph, and the characteristics of each node include: one-hot encoding of the defect type in the grid cell, the number of defects, and the defect area ratio. In a graph neural network, the connection of edges is based on the spatial proximity and circuit function relationship between grid cells, and each edge is assigned a weight, which is determined by the distance between grid cells and / or the circuit function correlation.

[0013] Furthermore, the dual-task deep learning model is trained using a hybrid loss function, which is specifically: L total =α×L1+β×L2; ; ; Among them, L total The loss function is a mixture of loss functions; L1 is the defect classification loss; L2 is the yield correlation loss; N is the number of defect types. It is the actual type of defect. M is the probability of the defect type predicted by the model; M is the number of samples. It is the yield loss calculated by the model. It represents the actual yield loss in production; α and β are preset hyperparameters.

[0014] Secondly, this application also discloses a wafer selective inspection system, the system comprising: The image acquisition module is configured to acquire preprocessed images of the wafer to be inspected. The grid division module is configured to divide the wafer image to be inspected into multiple grid units; The pre-scanning module is configured to perform a coarse-grained defect pre-scan on the image of the wafer to be inspected, and identify the preliminary defect types and spatial distribution. The spatial distribution includes the distribution range and the functional importance region. The distribution range is the size of the physical area spanned by the defect on the wafer surface and the number of grid cells it covers. The functional importance region is the importance level of the circuit functional area corresponding to the location of the defect. The defect type rating module is configured to perform a rating based on the preliminary defect type to obtain a defect type rating. The yield correlation rating module is configured to obtain yield correlation ratings based on defect type ratings and spatial distribution, including: Assign a base weight score to the defect type rating; The basic weight scores are weighted and adjusted based on the spatial distribution. The weighted scores are mapped to a predefined yield correlation rating. The yield analysis module is configured to select whether to perform yield analysis based on the yield correlation rating results, including: The yield correlation rating results include three levels: high, medium, and low; If the yield correlation rating is high, then the pre-trained defect yield correlation model is called to perform yield analysis. If the yield correlation rating is medium, then the pre-trained lightweight model is called to perform yield analysis. The pre-trained lightweight model is obtained by distilling the pre-trained defect yield correlation model.

[0015] Thirdly, this application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0016] Fourthly, this application also discloses a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.

[0017] Beneficial technical effects: This application establishes an intelligent defect assessment and priority scheduling mechanism, achieving dynamic optimization of computing resource allocation and significantly improving the efficiency and engineering practicality of semiconductor defect analysis systems. Specifically, this application first performs rapid prediction based on defect type (e.g., circuit breaks that directly cause electrical failures and mask defects are marked as high-priority Class I defects, while bubbling and contamination, which require location-based judgment, are marked as Class II defects) and their spatial distribution pattern (distinguishing between widespread and dense defect distributions and widespread and sparse defect distributions). This allows for the initiation of a deep analysis model for highly correlated defects, while a lightweight identification process is used for medium- and low-correlation defects. Furthermore, this application performs secondary weight calibration based on the functional importance region of the defect, allocating more computing resources to defect combinations that may lead to direct failure, ensuring accurate capture of critical risks. This resource allocation strategy based on physical failure mechanisms enables the system to prioritize the defect combinations most likely to affect yield under limited computing power. This avoids excessive resource consumption on low-risk defects and ensures the timely output of high-value analysis conclusions. Ultimately, it forms a closed-loop resource optimization mechanism of intelligent perception, dynamic scheduling, and precise analysis, which significantly improves the throughput and decision-making effectiveness of the defect analysis system. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. The elements or parts in the drawings are not necessarily drawn to scale. Obviously, the drawings described below are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.

[0019] Figure 1 This is a flowchart of a method for co-predicting wafer defects and yield according to this application.

[0020] Figure 2 This is a flowchart of a wafer selective detection method according to this application.

[0021] Figure 3 This is a flowchart of a wafer yield analysis model screening method according to this application.

[0022] Figure 4 This is a schematic diagram of the module structure of a wafer defect and yield co-prediction system in one embodiment of this application.

[0023] Figure 5 This is a schematic diagram of the module structure of a wafer selective detection system in one embodiment of this application.

[0024] Figure 6This is a schematic diagram of the module structure of a wafer yield analysis model screening system in one embodiment of this application. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0026] In this document, suffixes such as "module," "component," or "unit" used to denote elements are used solely for the purpose of illustrative purposes and have no specific meaning in themselves. Therefore, "module," "component," or "unit" can be used interchangeably. In this document, terms such as "upper," "lower," "inner," "outer," "front," "rear," "one end," and "the other end," indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. In this document, unless otherwise expressly specified and limited, terms such as "installed," "equipped with," and "connected" should be interpreted broadly. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium; it can be a connection within two elements. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances. In this document, "and / or" includes any and all combinations of one or more of the listed related items. "Multiple" in this document means two or more, i.e., it includes two, three, four, five, etc.

[0027] Figure 1 A flowchart of a wafer defect and yield co-prediction method according to this application is shown. (Refer to...) Figure 1 The method specifically includes the following steps: S1, constructing a training dataset, which includes preprocessed wafer defect images and wafer normalized yield data; S2. Construct a dual-task deep learning model, wherein the dual-task deep learning model includes: The defect feature extraction module extracts defect feature vectors from the preprocessed wafer defect image using channel attention and spatial attention mechanisms. The defect classification module classifies defect types based on the defect feature vectors output by the defect feature extraction module. The yield correlation analysis module divides the wafer surface into grid cells based on a graph neural network to construct a defect yield correlation graph, and outputs the yield loss corresponding to each type of defect or defect combination by learning the spatial distribution and interaction of defects. S3. Construct a loss function using normalized wafer yield data, and use the loss function to train the dual-task deep learning model. Then, input the image of the wafer to be inspected into the trained dual-task deep learning model, and output the defect classification result and the corresponding yield loss.

[0028] The following disclosure provides a specific embodiment applicable to a wafer defect and yield co-prediction method of this application, which includes the following steps: Step S101: Dataset Construction 1) Data Collection This invention is applied to the wafer inspection stage of chip manufacturing, specifically targeting defect screening and yield optimization for 7nm and below advanced process wafers (such as logic chip wafers and memory chip wafers). During chip mass production, more than 20 typical defects may appear on the wafer surface, such as scratches, particle contamination, metal residue, and oxide layer defects. The type, location, and number of these defects directly affect the final chip yield (for example, if a 7nm logic wafer has ≥3 particle defects with a diameter >0.1μm, the yield may decrease by 15%-20%).

[0029] To achieve accurate classification of wafer defects and yield correlation analysis, high-quality raw data is first required. Specifically, this application acquires wafer surface images (i.e., wafer defect images) using high-resolution scanning electron microscopy (SEM). These images, with a resolution of up to 5000×5000 pixels, can clearly capture various minute defects on 7nm process logic wafers. This application has collected over 100,000 image samples, covering 20 typical wafer defect types, such as scratches, particle contamination, metal residue, and oxide layer defects. The type, location, and quantity of these defects directly affect the final chip yield. In addition to images of single defects, this application also collects image samples containing combinations of multiple defects. For example, some wafers may simultaneously have scratches and particle contamination, or metal residue and oxide layer defects superimposed. These combinations of multiple defects are very common in actual production and have a more complex impact on yield. Therefore, this application ensures that the dataset contains a sufficient number of samples of multiple defect combinations so that the model can learn the interactions between different defects and their combined impact on yield.

[0030] In addition to defect images, this application also collected corresponding wafer-level yield data. This data includes the test yield Y% for each wafer (where Y represents the percentage of yield) and failure markers for each chip unit. This yield data helps this application understand the specific impact of different defects (including single defects and combinations of multiple defects) on chip performance. Furthermore, this application also collected process auxiliary data, such as etching time and deposition temperature. This data can provide important references for subsequent process optimization.

[0031] 2) Data preprocessing: Denoising: Adaptive Gaussian filtering is used to denoise the defect image. Adaptive Gaussian filtering dynamically adjusts the filtering parameters based on the local features of the image, effectively removing random noise while preserving the detailed information of the defects. This step significantly improves the image quality and lays the foundation for subsequent feature extraction and analysis.

[0032] Image enhancement: Image enhancement is performed using histogram equalization and edge sharpening techniques. Histogram equalization adjusts the grayscale distribution of the image, enhancing contrast and making the grayscale difference between defects and the background more apparent. Edge sharpening highlights the edge features of defects, helping the model to more accurately locate their positions. The combination of these two techniques significantly improves the analyzability of the image.

[0033] Defect Region Cropping: This method uses threshold segmentation to extract the region of interest (ROI) of the defect, eliminating invalid background. By setting an appropriate threshold, the defect region in the image is separated from the background, cropping out the area containing the defect, reducing interference from invalid information, and improving the model's processing efficiency and accuracy. For cases with multiple defects, this application extracts the ROI of each defect separately and records their relative positions in the image for subsequent analysis of the interactions between defects.

[0034] 3) Preprocessing of yield data The yield data Y% is mapped to the [0,1] interval. Normalization ensures a consistent data range, facilitating model processing and learning. Specifically, this application converts the yield data Y% to Y∈[0,1], where 0 represents the lowest yield and 1 represents the highest yield.

[0035] Step S101 involves labeling the preprocessed data to construct a "defect-yield" aligned dataset. This application labels the type, location, number, and corresponding yield loss for each defect. For a single defect, such as a wafer with a particulate defect, this application labels the particulate defect as "particulate contamination," its location as "wafer center region," its quantity as "3," and its corresponding yield loss as "15%." For combinations of multiple defects, this application also provides detailed labeling. For example, if a wafer has both scratches and particulate contamination, this application labels the scratch as "scratch," its location as "wafer edge region," and its quantity as "1"; the particulate contamination as "particulate contamination," its location as "wafer center region," and its quantity as "5." Simultaneously, this application labels the overall yield loss of the wafer as "25%" and records the relative positional relationship between scratches and particulate contamination. In this way, this application can establish a direct correlation between defect features (including single defects and combinations of multiple defects) and yield loss, providing high-quality training data for subsequent deep learning model training.

[0036] Step S102: Deep Learning Model Construction This invention designs an "end-to-end dual-task deep learning model," which includes three core modules: Defect feature extraction module: An improved neural network convolutional layer is used to insert "channel attention mechanism" and "spatial attention mechanism" to focus on enhancing the feature response of small-sized defects (such as 0.1-0.3μm particles). Channel attention focuses on the gray-scale difference features of defects, and spatial attention focuses on the edge contour features of defects, which solves the problem that traditional CNNs do not extract low-contrast defect features sufficiently. The input to the defect feature extraction module is the initial input image I, which undergoes preprocessing operations such as denoising, contrast enhancement, and ROI extraction to obtain the preprocessed image I′: I′=Preprocess(I); In some embodiments, the processing flow of the channel attention mechanism is as follows: initial feature extraction is performed on the preprocessed wafer defect image using an initial convolutional layer to obtain an initial feature map; global average pooling is performed on each channel of the initial feature map to obtain global features; the global features are transformed through a fully connected layer to obtain channel attention weights; and the channel attention weights are multiplied by each channel of the initial feature map to obtain a weighted feature map.

[0037] In some embodiments, a more specific channel attention mechanism can be: Initial convolutional layer feature extraction: The input image is convolved using a 3x3 convolution kernel, followed by a BN layer and ReLU activation. F = ReLU(BN(Conv(I′,kernelsize=3,padding=1))); where F represents the feature map output by the convolutional layer, Conv represents the convolution operation, BN represents batch normalization, ReLU represents the ReLU activation function, kernelsize=3 indicates that the convolution kernel size used in the convolution operation is a 3x3 matrix. padding=1 indicates that a ring of pixels (usually 0) is added around the edges of the input image so that the size of the output image after convolution is the same as the input image. This setting helps to preserve edge information and avoid shrinking the feature map size.

[0038] First, global average pooling is performed on the feature map of each channel to obtain the global features of each channel; Where Fc is the feature map of the c-th channel, H and W are the height and width of the feature map, respectively; i,j represent the spatial dimension indices of the feature map. The global features are then transformed through two fully connected layers (usually two linear layers, with a non-linear activation function such as ReLU in between) to obtain the channel attention weights.

[0039] Att(c) = σ(W2δ(W1GAP(c))); Where δ is a non-linear activation function (such as ReLU), W1 and W2 are the weights of the fully connected layer, σ is the final activation function (such as Sigmoid), and Att(c) is the attention weight of the c-th channel.

[0040] The attention weights are then multiplied by each channel of the original feature map to obtain the weighted feature map: Fc′=Att(c)×Fc; The weighted feature maps are then fused to obtain the final channel attention feature map: Where Fout is the output feature map and C is the total number of channels.

[0041] In some embodiments, the processing flow of the spatial attention mechanism is as follows: global max pooling and global average pooling are performed on the weighted feature map; the results of global max pooling and global average pooling are concatenated along the channel dimension to form a concatenated feature representation; the concatenated feature representation is input into a convolutional layer to extract spatial correlation information; the output of the convolutional layer is processed using an activation function to generate spatial attention weights; the generated spatial attention weights are multiplied element-wise with the weighted feature map to obtain the final defect feature vector.

[0042] In some embodiments, a more specific spatial attention mechanism may be: first performing global max pooling (GMP) and global average pooling (GAP): ; Where i,j represent the spatial dimension indices of the feature map, i traverses the height H, and j traverses the width W.

[0043] The results of GMP and GAP are then concatenated along the channel dimension, and spatial correlation is extracted through a 7x7 convolutional layer: Fconcat=Concat(GMP(Fout),GAP(Fout)); Fspatial=Conv7x7(Fconcat); where Fconcat is the feature map after concatenating the results of GMP and GAP along the channel dimension, Fspatial is the feature map after extracting spatial correlation through a 7x7 convolutional layer, and Concat is the concatenation operation.

[0044] Then, the Sigmoid activation function is used to generate weights, which are then multiplied element-wise with the original feature map Fout to enhance important spatial locations in the feature map: M = σ(Fspatial); Fweighted = Fout ⊙ M; Where M represents the weights generated using the Sigmoid activation function, σ represents the Sigmoid activation function, ⊙ represents element-wise multiplication, and Fweighted represents the feature map after spatial attention weighting.

[0045] Finally, the defect feature extraction module generates the target feature vector through a final convolutional layer, including: Fweighted features are convolved using 3x3 kernels to integrate dual attention to enhance feature maps; F′=Conv3×3(Fweighted); Followed by a batch normalization layer to reduce internal covariate bias; F′′=BN(F′); F′′ is the normalized feature map; Then, the ReLU activation function is applied to increase the nonlinear expressive power of the network; Ffinal = ReLU(F′′); Ffinal represents the final output defect feature vector.

[0046] Defect classification module: Based on the 1024-dimensional feature vector output by the feature extraction module, it is connected to a fully connected layer and uses a parametric activation function to classify 20 types of defects (outputting the probability value P of each type of defect, such as "particle defect P=0.98"). Example of the processing procedure for the defect classification module: The feature vectors are mapped to the defect type space through a fully connected layer; Z=W2 ReLU(W1 Ffinal+b1)+b2; where Z represents the output of the fully connected layer, and W1,W2 and b1,b2 represent the weights and biases of the fully connected layer, respectively; Then use the LeakyReLU or PReLU activation function: A=LeakyReLU(Z) or A=PReLU(Z); where A represents the output after activation; The final output is a vector containing the probabilities of all defect types: P = Softmax(A); where P represents the final classification probability distribution.

[0047] Yield Correlation Analysis Module: This invention innovatively introduces a graph neural network (GNN) to construct a defect-yield correlation graph. The wafer is divided into 10000×10000 grid cells. The defect type (represented by one-hot encoding), defect quantity, and defect area ratio within each grid cell are used as node features. The distance between grid cells (whether they are adjacent) and the circuit functional correlation (such as whether they belong to the same SRAM area) are used as edge weights. Through the message passing mechanism of the GNN, the influence of the spatial distribution and interaction of defects on the yield is learned, and the yield loss weight W corresponding to each type of defect / defect combination is output (e.g., "core circuit area scratch defect W=0.25", indicating that the defect causes a 25% decrease in yield).

[0048] Construction of Graph Neural Networks (GNNs): Step 1: Constructing the Defect-Yield Correlation Graph. To analyze the relationships, we must first express them mathematically. The input to a GNN is not a simple image or vector, but a graph: 1. Node This application divides the entire wafer surface into a huge grid, such as 10000x10000 cells. Each grid cell is a node. Each node has its own characteristics that describe the situation within the grid: Defect type: Represented by one-hot encoding, for example, [1,0,0,...] represents a particle defect.

[0049] Number of defects: There are several defects in this grid.

[0050] Defect area percentage: How much of the grid area are occupied by defects in total.

[0051] 2. Edge This application needs to define which mesh cells are related and connect them with an edge. There are two main types of relationships: spatial proximity: if two meshes are neighbors (adjacent), an edge is connected between them. This reflects the spatial clustering of defects. Circuit function relationship: if two meshes belong to the same important circuit function area (e.g., both in the SRAM memory area), an edge is also connected between them. This reflects the impact of defects on critical functions.

[0052] 3. Edge Weight Not all relationships are equally important. This application assigns a weight to each edge, representing the closeness of the relationship: the closer the distance, the higher the weight. The more important the functional association, the higher the weight (for example, edges belonging to the same CPU core area have a higher weight than edges belonging to the same peripheral circuit area).

[0053] Step 2: Message Passing and Learning in GNN 1. Adjacent Relationships: Each node (grid cell) "chats" with all its neighboring nodes, exchanging characteristic information. 2. Information Integration: Each node integrates and updates the information obtained from its neighbors, combining it with its own information. 3. Iterative Process: This chatting and information integration process goes through several rounds. After each round, each node gains a deeper understanding of the overall defect distribution on the wafer.

[0054] In some implementations, the method further includes the step of updating the features of nodes using a graph attention mechanism, including: calculating the attention coefficient of each node to its neighboring nodes; and using the attention coefficient to perform weighted aggregation of the features of the neighboring nodes to update the features of the nodes.

[0055] In some implementations, updating node features using graph attention mechanisms can be more specifically achieved by: calculating the attention coefficient of each node to its neighboring nodes; using the attention coefficients to perform weighted aggregation of the features of the neighboring nodes; and updating the node feature representation. The formula for calculating the attention coefficient is as follows: ; Among them, h i and h j Let be the feature vectors of node i and node j, respectively; W is the learnable weight matrix; and a is the learnable weight vector. This indicates a vector concatenation operation.

[0056] The aggregation formula is: ; Where N(i) is the set of neighboring nodes of node i, and σ is a non-linear activation function.

[0057] Graph Attention (GAT) is used in GNNs, which means that during the conversation, each node does not treat all its neighbors the same. It determines which neighbor's information is more important and assigns it a higher weight. For example, a node might pay more attention to information from its core GPU neighbors than to messages from less important edge neighbors.

[0058] Step 3: Output yield loss weights After several rounds of iterative learning, GNN has gained an understanding of each defect (or combination of defects) in the entire wafer system.

[0059] Output: It outputs a weight vector. Each value in this vector corresponds to the weight of the yield loss for a defect type (or combination). For example, the value for "core circuit area scratch defect" in the output weight is 0.25. This means that, based on the model's learning and analysis, the occurrence of this defect will lead to a 25% decrease in the final product yield.

[0060] Here is an example of the yield correlation analysis module: The wafer surface is divided into M×N grid cells, each grid cell is a node in the graph, and the characteristics of each node include: one-hot encoding of the defect type in the grid cell, the number of defects, and the defect area ratio. Node characteristics: Node(i) = {defecttypei, defectcounti, defectarearatioi}; The node feature Node(i) consists of three parts: first, defecttypei, which uses one-hot encoding to represent the defect type at the i-th node; second, defectcounti, which records the number of defects in the grid cell where the node is located; and finally, defectarearatioi, which represents the area ratio of the defects in the grid cell.

[0061] In a graph neural network, the connection of edges is based on the spatial proximity and circuit function relationship between grid cells, and each edge is assigned a weight, which is determined by the distance between grid cells and / or the circuit function correlation.

[0062] In some embodiments, edge weights: ; Where, ω d and ω f The preset fusion weights; S ij Spatial proximity factor: C ij This is the functional correlation factor.

[0063] In some embodiments, the spatial proximity factor and the functional correlation factor can be set in the following ways: According to node v i and node v j The spatial proximity factor is determined by the distance between nodes. For example, the smaller the node distance, the larger the spatial proximity factor.

[0064] The mapping relationship between node distance and spatial proximity factor can be pre-defined by the user. For example, the node distance and spatial proximity factor can be inversely proportional. Alternatively, different proximity values ​​can be set for different distance ranges as the spatial proximity factor. Specifically, when the node distance falls within a first distance range, the spatial proximity factor can use the first proximity value; when the node distance falls within a second distance range, the spatial proximity factor can use the second proximity value; when the node distance falls within a third distance range, the spatial proximity factor can use the third proximity value, and so on; where the distance gradually increases from the first to the third distance range, while the proximity value gradually decreases from the first to the third proximity value.

[0065] According to node v i and node v j The functional correlation factor is determined by the circuit's function. For example, different circuits are divided into different functional levels according to functional partitions (e.g., divided into at least level one and level two according to importance). Specifically, the functional correlation factor can be determined based on the functional level of the circuits to which two nodes belong. For example, when both nodes are level one, the functional correlation factor is the first correlation value; when one node is level one and the other is level two, the functional correlation factor is the second correlation value; when both nodes are level two, the functional correlation factor is the third correlation value, and the first correlation value gradually increases to the third correlation value.

[0066] Alternatively, in other embodiments, the spatial proximity factor and functional relevance factor can be set in the following ways: ; p i and p j These are nodes v i and v j The center coordinates; σ is the scale parameter that controls the distance decay rate; And C ij Functional correlation factor: ; Among them, I( R( ) is the importance weight of the functional area to which the node belongs; ) is the identifier of the functional area to which the node belongs; δ(a,b) is the Kronecker function: ; For example, in some embodiments, the edge weights can be... or Furthermore, the setting method for the spatial proximity factor or functional correlation factor can be found in the above embodiments.

[0067] GNNs learn the impact of the spatial distribution and interactions of defects on yield through a message passing mechanism. H(l+1)=GNN(H(l),EdgeWeight); Where H(l) represents the node feature representation of the l-th layer, and GNN represents a graph neural network; Then output the weight of the yield loss for each defect (or combination of defects): W = GNNOutput(H(L)); W represents the final yield loss weight vector, and L represents the number of layers in the GNN; Step S103: Model Training and Optimization In some embodiments, the dual-task deep learning model is trained using a hybrid loss function, which is specifically: L total =α×L1+β×L2; ; ; Among them, L total The loss function is a mixture of loss functions; L1 is the defect classification loss; L2 is the yield correlation loss; N is the number of defect types. It is the actual type of defect. M is the probability of the defect type predicted by the model; M is the number of samples. It is the yield loss calculated by the model. It represents the actual yield loss in production; α and β are preset hyperparameters.

[0068] In some embodiments, the following is an example of a training and optimization process: Define the hybrid loss function: The hybrid loss function consists of two parts: defect classification loss L1 and yield correlation loss L2, and its formula is as follows: L total =α×L1+β×L2; Where L1 is the defect classification loss, which uses the cross-entropy loss function to optimize the accuracy of defect classification. Its formula is as follows: ; Where N is the number of defect types, It is the actual defect type (usually one-hot encoded). This is the probability of the defect type predicted by the model. The cross-entropy loss function measures the difference between the model's predicted probability distribution and the true distribution. The smaller the L1 value, the higher the accuracy of the model in identifying defect types, which can reduce test misjudgments. L2 represents the yield-related loss, which uses the mean squared error loss function to optimize the error between the yield loss weight W and the actual yield loss. Its formula is as follows: ; Where M is the number of samples, These are the yield loss weights calculated by the model. This represents the actual yield loss in production. The mean squared error loss function measures the difference between the model's predicted value and the actual value. The smaller the L2 value, the more accurate the model's prediction of yield loss, which can help optimize production strategies and reduce yield loss. α and β are the weighting coefficients for defect classification loss and yield correlation loss, respectively. In this model, α = 0.4 and β = 0.6 are set to balance the weights of the two tasks. This weighting reflects the core objective of improving chip yield in semiconductor testing; therefore, a higher weight is given to the yield correlation loss to ensure that the accuracy of yield correlation prediction is optimized first during model training. Training strategy: Batch size Z: In each iteration, Z samples are randomly selected from the training dataset for training to improve the model's generalization ability.

[0069] Training rounds: Set the training rounds to 100 rounds, and process the entire training dataset once in each round.

[0070] Early stopping method: By monitoring the loss on the validation set, if the loss on the validation set does not decrease for 5 consecutive rounds, training is stopped to avoid overfitting.

[0071] Optimizer: The Adam optimizer is used for parameter updates, and its adaptive learning rate helps the model converge quickly.

[0072] During training, model performance can be periodically evaluated on a validation set, including defect classification accuracy and yield correlation prediction accuracy. Based on the evaluation results, the model structure, loss function weights, or training strategies can be adjusted to further improve model performance.

[0073] Through the above training and optimization process, this application finally obtains a trained deep learning model that can accurately classify wafer defects and predict their impact on yield in practical applications, thereby providing strong technical support for the chip manufacturing process.

[0074] Step S104: Defect classification and yield correlation reasoning: In step S104, this application inputs the scanning electron microscope (SEM) image of the wafer to be inspected into the trained model to perform defect classification and yield correlation inference. The following is a detailed inference process: 1. Input the SEM image of the wafer to be inspected. First, the input SEM images undergo the same preprocessing operations as during training, including denoising, contrast enhancement, and ROI extraction, to ensure that the input data received by the model is in a consistent format.

[0075] 2. Defect Classification The model first identifies defect features in the image through the defect feature extraction module, and then outputs the defect classification result through the defect classification module.

[0076] The defect classification results include defect type, location coordinates, and confidence level. For example, the model might output: "Location (X=120, Y=350): Metal residue defect, confidence level 0.96" 3. Yield loss weight W Next, the model calculates the yield loss weight W corresponding to each defect through the yield correlation analysis module.

[0077] The yield loss weight W quantifies the impact of different defect types on the final yield. For example, if the model outputs W=0.25, it means that the defect causes a 25% decrease in yield.

[0078] 4. Overall wafer yield prediction value Y Based on the yield loss weights W for all defects, the model further predicts the overall wafer yield Ypred. The overall wafer yield prediction Ypred is the result after comprehensively considering the impact of all defects on yield, providing a basis for the final quality assessment of the wafer.

[0079] In some embodiments, the method may further include the steps of: assigning a yield risk value to each grid cell based on the defect classification results and corresponding yield loss output by the dual-task deep learning model, and mapping the yield risk value to a corresponding color using a heatmap drawing tool to generate a heatmap. In some embodiments, to visually display high-risk defect areas on the wafer, a defect distribution-yield impact heatmap can be generated by the model. The heatmap uses color coding to represent the defect density and yield risk of different areas, where darker colors indicate higher defect density or greater yield risk; the heatmap can help engineers quickly identify critical defect areas on the wafer, providing guidance for subsequent process optimization and defect repair.

[0080] 5. Results Output and Report Generation The model integrates defect classification results, yield loss weights W, overall wafer yield predictions Ypred, and a defect distribution-yield impact heatmap into a detailed analysis report. This report not only provides detailed defect information but also yield predictions and risk assessments, offering data support for decision-making in the chip manufacturing process.

[0081] Step S105: Process optimization feedback In some embodiments, step S105 includes: generating optimization and adjustment suggestions for the front-end manufacturing process based on the defect classification results and corresponding yield loss output by the dual-task deep learning model and a preset rule base.

[0082] In some embodiments, a more specific step S105 may be: In step S105, based on the yield correlation results obtained in step S104, this application will output targeted process adjustment suggestions to optimize the process flow. This step is a key link in forming a detection-analysis-optimization closed loop, aiming to directly guide actual process improvements through the analysis results of the model, thereby improving chip yield and quality. The following is a detailed process optimization feedback process: 1. Analyze the correlation results of yield. Using the yield loss weight W and the overall wafer yield prediction value Ypred output from the model in step S104, the main defect types affecting yield and their distribution are identified. Simultaneously, a defect distribution-yield impact heatmap can be used to determine high-risk defect areas on the wafer.

[0083] 2. Matching the preset rule base Based on the identified primary defect types, the system queries a pre-defined rule base to obtain corresponding process adjustment suggestions. The pre-defined rule base is a database containing various defect types and recommended process adjustment measures.

[0084] For example, the rule base contains the following entries: Particle contamination defect: It is recommended to optimize the photoresist coating speed to 5 mm / s to reduce particle adsorption.

[0085] Metal residue defects: It is recommended to check the purity and flow rate of the etching gas and optimize the etching process parameters.

[0086] Oxide layer defects: It is recommended to adjust the deposition temperature to the optimal range to reduce the occurrence of defects.

[0087] 3. Suggestions for adjusting the output process Based on the model analysis results and suggestions from the preset rule base, targeted process adjustment suggestions are output.

[0088] For example, if the model identifies that the proportion of particle defects in the core circuit area exceeds 5%, the process adjustment suggestion is as follows: "If the proportion of particle defects in the core circuit area exceeds 5%, it is recommended to optimize the photoresist coating speed to 5 mm / s according to the rule library RQ-101 to reduce particle adsorption." 4. Implement process adjustments Submit process adjustment suggestions to the process engineer, who will then adjust the corresponding process parameters based on the suggestions. After implementation, monitor the effects of the process adjustments, collect new wafer inspection data, and assess whether the yield has improved.

[0089] 5. Continuous optimization and feedback The effects of the implemented process adjustments are fed back into the model to further optimize its predictive capabilities. Through continuous process optimization and model iteration, a dynamic "detection-analysis-optimization" closed loop is formed, continuously improving chip manufacturing yield and quality.

[0090] 6. Documentation and Knowledge Accumulation Record the suggestions, implementation process, and effects of each process adjustment to form a knowledge base. Utilize this knowledge to provide a reference for future process optimization, accelerating the development of new processes and the improvement of existing ones. This step achieves process optimization feedback based on yield correlation results, outputting targeted process adjustment suggestions, forming a closed loop of detection-analysis-optimization.

[0091] In some embodiments, this application also discloses a wafer selectivity detection method, referring to... Figure 2 The specific steps are as follows: S201: Obtain the preprocessed image of the wafer to be inspected; In some embodiments, the wafer is a wafer manufactured using a process of 7nm or below; In some embodiments, step 201 includes: acquiring raw wafer defect data, including wafer surface images (5000×5000 pixels resolution, covering 7nm process logic wafers, containing 20 typical defects) obtained by scanning electron microscopy (SEM). The input SEM images are then subjected to the same preprocessing operations as during training, including denoising, contrast enhancement, and ROI extraction, to ensure that the input data received by the model is in a consistent format.

[0092] S202: Divide the wafer image to be inspected into multiple grid units; for example, divide it using a single die as the basic unit. Each die is considered a grid unit. Alternatively, a single die can be further divided into smaller, regular grids, such as a preliminary grid array of 100x100 or 500x500.

[0093] S203: Perform a coarse-grained defect pre-scan on the wafer image to identify the preliminary defect type and spatial distribution. The spatial distribution includes the distribution range and the functional importance region. The distribution range is the size of the physical area spanned by the defect on the wafer surface and the number of grid cells it covers. The functional importance region is the importance level of the circuit functional area corresponding to the location of the defect.

[0094] In one specific embodiment, the pre-scanning process is performed by a lightweight deep learning model or a highly optimized traditional image processing pipeline. For example, a pruned and quantized lightweight convolutional neural network (such as MobileNetV3 or ShuffleNetV2) can be used as the backbone feature extractor, coupled with a Single Shot Detector (SSD) or a fast variant of YOLO as the detection head. The model receives complete or segmented wafer images and outputs the bounding box coordinates and preliminary classification results for each identified defect. The classification here is coarse-grained, aiming to categorize defects into a limited number of broad categories such as particulate contamination, scratches, patches, and metal residues, thereby achieving an optimal balance between speed and accuracy of basic information.

[0095] After identifying the initial type and location of the defect, a quantitative analysis of its spatial distribution is immediately initiated. This analysis mainly revolves around two core dimensions. The first dimension is the distribution range. The system uses the pre-divided sub-chip-level grid from step S202 as a benchmark to calculate the total number of grid cells covered and spanned by the bounding box or pixel-level mask of each defect. This reveals the spatial influence and potential network effects of the defect. For example, a long but narrow scratch may have a small physical area, but because it covers numerous grid cells, its distribution range index will be high, indicating a greater risk.

[0096] Secondly, and more crucially, is the determination of functionally important regions. The system incorporates a functional map associated with the chip design layout. Once a defect is located, its coordinates are quickly mapped onto this digital map, allowing the system to query the corresponding circuit functional area attributes. The system assigns each defect a functional importance level based on its location. For example, defects located in the processor core computing unit or static memory array area are marked as highest priority, while defects located in the blank or filled areas on the chip's periphery are marked as low priority. This step links purely visual defects to the chip's actual function, a key step in achieving accurate yield prediction.

[0097] S204: Based on the initial defect type, a defect type rating is obtained. Step S204 primarily assigns a quantitative risk score or qualitative risk level to the various defects identified in the coarse-grained pre-scan, i.e., the defect type rating. This rating is not based on the apparent morphological characteristics of the defects, but rather integrates prior knowledge and failure analysis experience in the semiconductor manufacturing field. Its fundamental purpose is to pre-determine the inherent probability that different types of defects will lead to chip functional failure.

[0098] In one specific embodiment, this step relies on a pre-generated defect-failure association rule base embedded in the system. This rule base is built based on data mining of a large amount of historical wafer test data and failure analysis reports. Guided by this rule base, the system first classifies all identified preliminary defect types into risk categories. For example, they are divided into two basic categories: "Category I defects" and "Category II defects." Category I defects typically refer to defect types that have a direct and strong causal relationship with chip failure, such as "circuit breaks" that cause physical circuit disconnections, "bridging defects" that cause short circuits between different circuit nodes, and "via defects" that block interconnects. Once these defects occur, they almost inevitably lead to the loss of function of the circuit they are associated with, and are therefore given the highest risk rating. Category II defects, on the other hand, refer to defect types that have a conditional association with chip failure. Whether they ultimately lead to failure depends heavily on their specific physical parameters and the environment in which they occur. Common Category II defects include "particulate contamination," "surface contamination," "shallow scratches," and "micro-protrusions." For these defects, their initial risk rating is usually lower than that of Category I defects. In addition, more refined evaluation logic can be initiated. For example, the final rating of a "particulate contamination" defect will be dynamically adjusted based on its composition (whether it is a conductive particle) and size (whether it is sufficient to cause a short circuit or open circuit).

[0099] The final step, S204, outputs a comprehensive defect type rating for each identified defect. This rating can be a discrete level label (such as "high," "medium," or "low") or a quantified score.

[0100] S205: Obtain yield correlation rating based on defect type rating and spatial distribution, including: assigning a basic weight score to the defect type rating; adjusting the basic weight score based on spatial distribution; and mapping the weighted score to a predefined yield correlation rating.

[0101] Step S205 is the core decision-making step. Its task is to comprehensively consider the inherent risks of defects (defect type rating) and external impacts (spatial distribution) to calculate a final yield correlation rating for each defect that can directly guide subsequent resource analysis.

[0102] In a specific embodiment, step S205 begins by assigning a basic weight score to the defect type rating from step S204. This basic score reflects the inherent risk level of this type of defect in isolation. There is a pre-set scoring mapping table within the system. For example, a critical defect (such as a circuit break) classified as a "type I defect" will receive a relatively high basic score (such as 80 points). A conditional defect (such as particle contamination) classified as a "type II defect" will receive a medium basic score (such as 50 points), leaving room for subsequent score adjustment by combining other factors. This design ensures that the innate severity of the defect occupies a fundamental weight in the decision-making process.

[0103] After establishing the basic score, the system then enters the dynamic weighted adjustment stage based on the spatial distribution. This stage is the key to refined decision-making and aims to correct the basic score from two independent but complementary dimensions. The first dimension is the distribution range. The system adds points according to the number of grid cells covered by the defect. The more grid cells covered, the wider the impact range of the defect and the stronger its potential destructiveness. For example: if the number of covered grids exceeds N1, 20 points are added; between N2 and N1 (N2 < N1), 10 points are added; if less than N2, 5 points are added. The second dimension is the functional importance. The system strongly weights according to the functional importance level of the location where the defect is located. Defects in key areas such as the CPU core and SRAM storage array will have their harmfulness significantly amplified, so a weight addition of up to 30 points may be triggered; in secondary functional areas (such as buffer areas), 10 points are added, and in non-functional / blank areas, no points are added. The weighted scores based on the above two dimensions will be added to the basic weight score to generate a comprehensive score.

[0104] After that, through a mapping mechanism, the calculated comprehensive score is converted into a final operational instruction - that is, the yield correlation rating. The system has pre-set clear score interval thresholds. For example: if the comprehensive score is greater than or equal to 80 points, it is mapped to a "high" yield correlation rating; if the score is between 60 and 80 points, it is mapped to a "medium" rating; if the score is less than 60 points, it is mapped to a "low" rating.

[0105] S206: Select whether to conduct a yield analysis based on the yield correlation rating result.

[0106] The purpose of step S206 is to dynamically and hierarchically allocate computing resources according to the yield correlation rating generated in step S205, achieving precise and efficient in-depth analysis of defects. This on-demand allocation mechanism ensures that valuable computing resources are preferentially used to analyze the defects that pose the greatest threat to the chip yield, thus maximizing the computing efficiency while ensuring the analysis accuracy.

[0107] In one specific embodiment, the system internally pre-loads one or more pre-trained defect yield correlation models of varying complexity. For defects rated as having "high" yield correlation, the system will invoke an end-to-end dual-task deep learning model based on GNN. This model will simulate the spatial interaction and influence transmission of defects based on the constructed wafer defect correlation map, and ultimately output the quantitative yield loss weight caused by the defect (or combination of defects), thereby providing the most direct data support for process optimization.

[0108] For defects rated as having a "medium" yield correlation, considering their manageable risk and potentially large number, the system will invoke a simplified model. This model can be a lightweight variant of the full model, such as a distillation-based lightweight model for the aforementioned GNN-based end-to-end dual-task deep learning model. Its task is to quickly and accurately classify and locate defects and estimate their approximate yield impact, but it no longer performs complex spatial relationship reasoning. This strategy significantly saves computation time while meeting basic analytical needs.

[0109] For defects rated as having "low" yield correlation, the system adopts the most economical processing strategy. These defects are typically isolated points with minimal impact on yield or minor anomalies located in non-functional areas. The system does not invoke any complex pre-trained models for in-depth analysis, but only records their location and coarse classification results for later statistical queries. This approach avoids wasting computational resources on a large number of noisy defects, thereby improving the overall system throughput.

[0110] In some embodiments, this application also discloses a wafer yield analysis model screening method, referring to... Figure 3 The specific steps are as follows: S301: Construct a training dataset, which includes preprocessed wafer defect images and wafer normalized yield data.

[0111] S302: Defect classification is performed on the preprocessed wafer defect image using a defect classification model. The defect classification model includes: a defect feature extraction module, which extracts defect feature vectors from the preprocessed wafer defect image; and a defect classification module, which classifies the defect type based on the defect feature vectors extracted by the defect feature extraction module. S303: Divide the wafer surface into grid cells, and construct a yield correlation analysis model based on graph neural network with grid cells as nodes and spatial or functional relationships between grid cells as edges. The characteristics of each grid cell include defect type, defect number and defect area ratio.

[0112] S304: Set at least two grid cell partitioning schemes to obtain at least two yield correlation analysis models, construct a yield loss function using wafer normalized yield data, and train at least two yield correlation analysis models using the yield loss function respectively. After training, obtain the training efficiency data corresponding to at least two yield correlation analysis models.

[0113] In one specific embodiment, to determine the optimal mesh partitioning scheme, this application first needs to set up a set of candidate schemes and perform pre-training and evaluation. Specifically, this application predefines at least two different mesh cell partitioning schemes, such as a coarse-grained scheme (e.g., dividing each die into a 10x10 mesh) and a fine-grained scheme (e.g., dividing into a 100x100 mesh). Each partitioning scheme corresponds to a unique graph structure used to construct an independent yield correlation analysis model.

[0114] After the model construction is completed, this application enters the training phase. Using a pre-prepared training dataset containing wafer defect images and corresponding yield labels, this application trains at least two yield correlation analysis models in parallel. The core objective of the training can be to minimize the yield loss function of each model, which is typically expressed as mean squared error, etc., to measure the difference between the model's predicted yield and the actual yield. Through iterative optimization, each model learns the defect-yield correlation under its specific grid division.

[0115] After all models have completed training, this application systematically acquires and records the training efficiency data for each model. The training efficiency data mainly includes two aspects: first, model training time, which is the total time consumed from the start of training to model convergence; and second, model computational complexity, which quantifies the total computational resources consumed to complete the entire training process, typically measured by the total number of floating-point operations performed during training. This efficiency data will provide crucial quantitative basis for subsequent comprehensive evaluation and selection of the optimal solution.

[0116] In a specific embodiment, the training efficiency score is as follows: ; Wherein, λ1 and λ2 are preset hyperparameters. In this application, λ1 is set to 0.3 and λ2 is set to 0.7, thus favoring the selection of grid partitioning schemes with smaller single inference computation and lower hardware computing power requirements, even if their training time may be slightly longer. This configuration is beneficial to reducing long-term deployment costs and hardware barriers; T is the model training time score; C is the model computational complexity score based on the number of floating-point operations.

[0117] Model training time score T: refers to the total time consumed by the model from the start of training until convergence. ; in, This indicates the moment when the model converges. This indicates the moment when the model begins training.

[0118] Model computational complexity score C: Here, C specifically refers to the computational complexity of the model during the inference phase. It measures the computational resources required to perform a complete defect classification and yield correlation analysis on a single unknown wafer image using a trained yield correlation analysis model, typically measured in floating-point operations per inference iteration (Inference FLOPs). ; In one specific embodiment, this application provides two targeted technical paths for determining the grid cell partitioning scheme: a uniform partitioning scheme and a non-uniform partitioning scheme. The uniform partitioning scheme uses a uniform grid granularity to partition the entire wafer surface. Its advantages are uniformity, ease of implementation, and suitability for chip types with relatively uniform circuit layout.

[0119] The non-uniform partitioning scheme is a more complex and refined partitioning strategy. Its core lies in its adaptive partitioning based on the wafer's circuit layout, rather than a uniform partitioning standard. Specifically, in the core functional areas of the chip, such as CPU / GPU computing units and cache areas—critical regions highly sensitive to defects—the system automatically adopts a finer mesh granularity. This refined partitioning can capture smaller defects and more accurately analyze their potential impact on yield. Conversely, in non-core functional areas of the wafer, such as edge blank areas or redundant circuit areas with less impact on performance, the system uses a relatively coarser mesh granularity. The advantage of this approach is that it can significantly reduce the number of nodes and edges in the entire graph structure while maintaining the analysis accuracy of core areas, thereby effectively controlling the computational complexity of the model and improving overall training and inference efficiency. Through this non-uniform partitioning strategy based on focused analysis of key areas, this application achieves an optimal balance between computational resources and analysis accuracy.

[0120] S305: Use the validation set to verify the accuracy of at least two completed yield correlation analysis models to obtain accuracy data corresponding to at least two yield correlation analysis models; After the model training phase is completed, this application proceeds to the accuracy verification stage. The purpose of this step is to objectively evaluate the generalization ability and prediction accuracy of the models obtained under different mesh partitioning schemes. This application utilizes a validation set independent of the training set and with real-label data to systematically test at least two previously trained yield correlation analysis models. Wafer defect data from the validation set are sequentially input into each trained model, allowing the model to output its predicted yield value. Subsequently, this application precisely compares these predicted values ​​with the known real yield values ​​in the validation set. The predictive performance of each model is quantified by calculating predefined accuracy evaluation metrics (such as mean squared error (MSE) or coefficient of determination (R²).

[0121] S306: Use training efficiency data and accuracy data to screen at least two completed yield correlation analysis models to obtain the final yield correlation analysis model.

[0122] In one specific embodiment, the training efficiency data and accuracy data are weighted and scored to obtain a comprehensive score. The yield correlation analysis model with the highest comprehensive score is selected as the final yield correlation analysis model. The comprehensive score is as follows: ; Where S represents the overall score; A represents the training efficiency score; E represents the accuracy score; w a and w b w is the preset weighting coefficient. a ∈[0,1],w b ∈[0,1], in this application, w is set a =0.3, w b The assignment strategy of setting the value to 0.7 takes into account the efficiency of training and inference while ensuring the accuracy of model prediction. This allows us to select the yield correlation analysis model with the highest comprehensive score from all candidate models as the final version to be used in the actual production environment.

[0123] The above embodiments provide a mechanism for filtering the mesh partitioning granularity in a graph neural network model. By filtering the mesh partitioning granularity, a balance between analytical accuracy and computational efficiency can be achieved to a certain extent. That is, by filtering the partitioning granularity from both training efficiency and training accuracy dimensions, suitable partitioning schemes can be selected for different types of wafer products. Furthermore, this filtering mechanism, while improving the reliability of the partitioning granularity, avoids situations where inappropriate partitioning granularity leads to excessively large (or unsuitable) nodes or edges in the graph neural network, resulting in exponential growth in computational resource requirements and making deployment difficult under the time-sensitive requirements of actual production lines.

[0124] Further reference Figure 4As an implementation of the aforementioned method for co-predicting wafer defects and yield, this application provides an embodiment of a co-predicting wafer defect and yield system. This embodiment is similar to... Figure 1 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0125] refer to Figure 4 A wafer defect and yield co-prediction system includes: a dataset construction module 110 configured to construct a training dataset, the training dataset including preprocessed wafer defect images and wafer normalized yield data; a dual-task deep learning model construction module 120 configured to construct a dual-task deep learning model, the dual-task deep learning model including: a defect feature extraction module, the defect feature extraction module extracting defect feature vectors from the preprocessed wafer defect images using channel attention and spatial attention mechanisms; a defect classification module, classifying defect types based on the defect feature vectors output by the defect feature extraction module; a yield correlation analysis module, dividing the wafer surface into grid cells based on a graph neural network to construct a defect-yield correlation graph, and outputting the yield loss corresponding to each type of defect or defect combination by learning the spatial distribution and interaction of defects; and a defect and yield output module 130 configured to construct a loss function using wafer normalized yield data, and train the dual-task deep learning model using the loss function, then inputting the image of the wafer to be detected into the trained dual-task deep learning model, and outputting the defect classification result and the corresponding yield loss.

[0126] Further reference Figure 5 As an implementation of the above-mentioned wafer selective inspection method, this application provides an embodiment of a wafer selective inspection system, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0127] refer to Figure 5A wafer selective inspection system includes: an image acquisition module 210 configured to acquire a preprocessed image of a wafer to be inspected; a mesh division module 220 configured to divide the image of the wafer to be inspected into multiple mesh units; a pre-scanning module 230 configured to perform a coarse-grained defect pre-scan on the image of the wafer to be inspected, identifying preliminary defect types and spatial distribution; the spatial distribution includes the distribution range and functional importance regions, the distribution range being the size of the physical area spanned by the defect on the wafer surface and the number of mesh units covered, and the functional importance region being the importance level of the circuit functional area corresponding to the location of the defect; a defect type rating module 240 configured to perform a rating based on the preliminary defect type to obtain a defect type rating; and a yield correlation rating module 250 configured to perform a rating based on the yield correlation. The yield correlation rating is obtained based on defect type rating and spatial distribution, including: assigning a basic weight score to the defect type rating; adjusting the basic weight score based on spatial distribution; mapping the weighted score to a predefined yield correlation rating; and a yield analysis module 260 configured to select whether to perform yield analysis based on the yield correlation rating result, including: the yield correlation rating result includes three levels: high, medium, and low; if the yield correlation rating result is high, a pre-trained defect yield correlation model is called for yield analysis; if the yield correlation rating result is medium, a pre-trained lightweight model is called for yield analysis, the pre-trained lightweight model being obtained by distillation of the pre-trained defect yield correlation model; and if the yield correlation rating result is low, no yield analysis is performed.

[0128] Further reference Figure 6 As an implementation of the above-mentioned wafer yield analysis model screening method, this application provides an embodiment of a wafer yield analysis model screening system, which is similar to... Figure 3 Corresponding to the method embodiments shown, the system can be specifically applied to various electronic devices.

[0129] refer to Figure 6A wafer yield analysis model screening system includes: a dataset construction module 310 configured to construct a training dataset, which includes preprocessed wafer defect images and normalized wafer yield data; a defect classification module 320 configured to classify defects in the preprocessed wafer defect images using a defect classification model, the defect classification model including: a defect feature extraction module, which extracts defect feature vectors from the preprocessed wafer defect images; and a defect classification module, which classifies defect types based on the defect feature vectors; and a yield correlation analysis model construction module 330 configured to divide the wafer surface into grid cells and construct a yield correlation analysis model based on a graph neural network, with grid cells as nodes and spatial or functional relationships between grid cells as edges, wherein the features of each grid cell include defects. The model includes: a type, number of defects, and defect area ratio; a training efficiency data acquisition module 340, configured to set at least two grid cell partitioning schemes to obtain at least two yield correlation analysis models, construct a yield loss function using wafer normalized yield data, and train at least two yield correlation analysis models using the yield loss function respectively, and obtain training efficiency data corresponding to at least two yield correlation analysis models after training; an accuracy data acquisition module 350, configured to use a validation set to verify the accuracy of at least two trained yield correlation analysis models to obtain accuracy data corresponding to at least two yield correlation analysis models; and a model selection module 360, configured to use training efficiency data and accuracy data to select at least two trained yield correlation analysis models to obtain the final yield correlation analysis model.

[0130] In another aspect, this application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the following... Figure 1The methods shown above. Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a computer terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention. The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art, under the guidance of the present invention, can make many other forms without departing from the spirit and scope of the claims, and these all fall within the protection scope of the present invention.

Claims

1. A wafer selectivity detection method, characterized in that, Includes the following steps: Acquire a pre-processed image of the wafer to be inspected; The image of the wafer to be inspected is divided into multiple grid units; A coarse-grained defect pre-scan is performed on the image of the wafer to be inspected to identify the preliminary defect types and spatial distribution. The spatial distribution includes the distribution range and the functional importance region. The distribution range is the size of the physical area spanned by the defect on the wafer surface and the number of grid cells it covers. The functional importance region is the importance level of the circuit functional area corresponding to the location of the defect. Based on the preliminary defect type, a defect type rating is obtained; Yield correlation ratings are obtained based on defect type ratings and spatial distribution, including: Assign a base weight score to the defect type rating; The basic weight scores are weighted and adjusted based on the spatial distribution. The weighted scores are mapped to a predefined yield correlation rating. The decision to perform yield analysis is based on the yield correlation rating results, including: The yield correlation rating results include three levels: high, medium, and low; If the yield correlation rating is high, then the pre-trained defect yield correlation model is called to perform yield analysis. If the yield correlation rating is medium, then the pre-trained lightweight model is called to perform yield analysis. The pre-trained lightweight model is obtained by distilling the pre-trained defect yield correlation model.

2. The wafer selectivity detection method according to claim 1, characterized in that, The rating based on the aforementioned preliminary defect type includes: The initial types of defects are classified into at least two associated levels, with the first associated level including mask defects, circuit breaks and via defects, and the second associated level including particulate contamination, dirt and protrusions.

3. The wafer selectivity detection method according to claim 1, characterized in that: The steps for obtaining the pre-trained defect yield correlation model include: Construct a training dataset, which includes preprocessed wafer defect images and wafer normalized yield data; Construct a dual-task deep learning model, the dual-task deep learning model including: A defect feature extraction module, which uses channel attention mechanism and spatial attention mechanism to extract defect feature vectors from the preprocessed wafer defect image; The defect classification module classifies defect types based on the defect feature vectors output by the defect feature extraction module. The yield correlation analysis module divides the wafer surface into grid cells based on graph neural networks to construct a defect yield correlation graph. By learning the spatial distribution and interaction of defects, it outputs the yield loss corresponding to each type of defect or defect combination. A loss function is constructed using wafer normalized yield data, and the loss function is used to train a dual-task deep learning model. Then, the image of the wafer to be inspected is input into the trained dual-task deep learning model, and the defect classification result and the corresponding yield loss are output.

4. The wafer selectivity detection method according to claim 3, characterized in that, The processing flow of the channel attention mechanism is as follows: Initial feature maps are obtained by using an initial convolutional layer to extract initial features from the preprocessed wafer defect image. Perform global average pooling on each channel of the initial feature map to obtain global features; The global features are transformed through a fully connected layer to obtain the channel attention weights; The channel attention weights are multiplied by each channel of the initial feature map to obtain the weighted feature map.

5. The wafer selectivity detection method according to claim 3, characterized in that, The processing flow of the spatial attention mechanism is as follows: Perform global max pooling and global average pooling on the weighted feature map; The results of global max pooling and global average pooling are concatenated along the channel dimension to form a concatenated feature representation; The concatenated feature representation is input into a convolutional layer to extract spatial correlation information; The output of the convolutional layer is processed using an activation function to generate spatial attention weights; The generated spatial attention weights are multiplied element-wise with the weighted feature map to obtain the final defect feature vector.

6. The wafer selectivity detection method according to claim 3, characterized in that, The method of dividing the wafer surface into grid cells based on graph neural networks to construct a defect yield correlation graph includes: The wafer surface is divided into M×N grid cells, each grid cell is a node in the graph, and the characteristics of each node include: one-hot encoding of the defect type in the grid cell, the number of defects, and the defect area ratio. In a graph neural network, the connection of edges is based on the spatial proximity and circuit function relationship between grid cells, and each edge is assigned a weight, which is determined by the distance between grid cells and / or the circuit function correlation.

7. The wafer selectivity detection method according to claim 6, characterized in that, The dual-task deep learning model is trained using a hybrid loss function, which is specifically as follows: L total =α×L1+β×L2; ; ; Among them, L total The loss function is a mixture of loss functions; L1 is the defect classification loss; L2 is the yield correlation loss; N is the number of defect types. It is the actual type of defect. M is the probability of the defect type predicted by the model; M is the number of samples. It is the yield loss calculated by the model. It represents the actual yield loss in production; α and β are preset hyperparameters.

8. A wafer selectivity detection system, characterized in that, The system includes: The image acquisition module is configured to acquire preprocessed images of the wafer to be inspected. The grid division module is configured to divide the wafer image to be inspected into multiple grid units; The pre-scanning module is configured to perform a coarse-grained defect pre-scan on the image of the wafer to be inspected, and identify the preliminary defect types and spatial distribution. The spatial distribution includes the distribution range and the functional importance region. The distribution range is the size of the physical area spanned by the defect on the wafer surface and the number of grid cells it covers. The functional importance region is the importance level of the circuit functional area corresponding to the location of the defect. The defect type rating module is configured to perform a rating based on the preliminary defect type to obtain a defect type rating. The yield correlation rating module is configured to obtain yield correlation ratings based on defect type ratings and spatial distribution, including: Assign a base weight score to the defect type rating; The basic weight scores are weighted and adjusted based on the spatial distribution. The weighted scores are mapped to a predefined yield correlation rating. The yield analysis module is configured to select whether to perform yield analysis based on the yield correlation rating results, including: The yield correlation rating results include three levels: high, medium, and low; If the yield correlation rating is high, then the pre-trained defect yield correlation model is called to perform yield analysis. If the yield correlation rating is medium, then the pre-trained lightweight model is called to perform yield analysis. The pre-trained lightweight model is obtained by distilling the pre-trained defect yield correlation model.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Wafer yield loss prediction method and self-defined defect density graph self-reporting system

    CN113609814A

  • Wafer defect classification method, model training method, system, equipment and medium

    CN120673102A