A method and system for enhancing semiconductor defect analysis with semantic and visual interpretation

Through the codec structure based on spatial-channel attention, combined with Vision Transformer and GRU model, the problem of semantic-level image subtitles in wafer defect processing is solved, high accuracy and diversified diagnostic reports are achieved, and the wafer quality is improved. Semantic and visual interpretability of defect analysis.

CN118379602BActive Publication Date: 2024-10-22ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824676.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

In the field of wafer defect processing, existing technologies are difficult to effectively perform semantic-level image captioning tasks. The performance of traditional methods is limited by the size of annotation data sets and retrieval algorithms. Deep learning methods lack benchmark data sets and new methods, resulting in insufficient description of defect analysis. Accurate and diverse.

Method used

A multi-task defect image diagnosis network using a codec structure based on spatial-channel attention is used to generate detailed and diverse diagnostic reports through the Vision Transformer model and GRU decoder, combined with the spatial-channel attention mechanism and the attention mechanism.

Benefits of technology

It achieves high-accuracy analysis of wafer defect SEM images, generates diagnostic reports with semantic and visual interpretability, achieves higher BLEU scores and reduces calculation time, and adapts to complex and diverse defect characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379602B_ABST
    Figure CN118379602B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for enhancing semiconductor defect analysis with semantic and visual interpretation, belonging to the field of semiconductor defect analysis. A wafer defect image diagnosis dataset is obtained, including a wafer defect SEM image and a diagnosis report, wherein the diagnosis report contains sentences for multiple defect diagnosis tasks; a network is trained using the wafer defect image diagnosis dataset, and the network is a codec structure based on space-channel attention; during the training process, the sentence corresponding to the defect diagnosis task is used as a decoder input to guide the decoder to generate a target sentence; the wafer defect SEM image is analyzed using the trained multi-task defect image diagnosis network. The present invention designs a diagnosis report containing different diagnostic tasks, which provides a new perspective for wafer defect SEM image diagnosis; the proposed multi-task defect image diagnosis network consumes less time while achieving higher accuracy and BLEU compared to other baselines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of semiconductor defect analysis, and in particular relates to a method and system for enhancing semiconductor defect analysis with semantic and visual interpretation. Background Art

[0002] In recent years, the rapid development of deep learning technology has had a significant impact on the image field of various industries. Traditional defect classification and detection tasks support the rapid identification of defects from a large number of wafer images or scanning electron microscope (SEM) images, helping yield engineers to make manual diagnosis and decision-making. Such automatic decision-making tasks are often regarded as standard classification problems. Although traditional object-level visual tasks such as detection, matching, and classification have made some achievements in wafer defect processing, semantic-level tasks such as image captioning remain a thorny problem. On the real wafer production line, yield engineers often need to observe wafer images, observe a large number of defective SEM images by scanning electron microscopes, analyze the size, convexity, type, and process layer of defects based on images and wafers, and record the microscopic inspection results in the image to diagnose and trace back the process flow to find the root cause of the defect. Therefore, wafer defect image captions need to be described in coherent and concise natural language as much as possible to accurately summarize the specific scene of a specific image. This not only requires computers to simulate human vision to identify dominant objects and explore the relationship between different objects, but also requires computers to explain the recognized image content with sentences with clear and accurate grammar and diverse vocabulary.

[0003] Early studies usually used traditional methods, namely template-based or retrieval methods, to generate descriptive sentences for a certain image. The sentences generated by the template-based method are preset with fixed templates. By detecting relevant elements such as objects, scenes, and actions in the image, relevant words are filled in the template to form sentences. The generated content is single and relatively fixed, and the degree of manual participation is high. The retrieval-based method first searches for similar images, and then sorts the text descriptions of these similar images to obtain the sentence of the query image. The performance of these methods depends on the size of the annotated data set and the retrieval algorithm. Limited by the accuracy of the similarity calculation, the generated description is also relatively limited.

[0004] Deep learning-based methods usually use an encoder-decoder architecture, which can extract image features on the encoder side and convert their representation into descriptive language on the decoder side. Convolutional neural network (CNN) and recurrent neural network (RNN) / long short-term memory (LSTM) architectures have overcome the limitations of traditional methods and become the mainstream architecture for image captioning. However, at present, there are still few research benchmark datasets and new captioning methods in the field of wafer image processing, which limits its further development in the field of wafer defect processing. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a method and system for enhancing semiconductor defect analysis with semantic and visual interpretation.

[0006] The technical solution adopted by the present invention is as follows:

[0007] In a first aspect, the present invention provides a method for enhancing semiconductor defect analysis with semantic and visual interpretation, comprising:

[0008] Acquire a wafer defect image diagnosis dataset, including wafer defect SEM images and diagnosis reports, wherein the diagnosis report contains sentences for multiple defect diagnosis tasks;

[0009] A multi-task defect image diagnosis network is trained using a wafer defect image diagnosis dataset. The defect image diagnosis network is a codec structure based on space-channel attention. Each defect diagnosis task in the diagnosis report maintains a codec structure separately. In each codec structure, an encoder is first used to obtain the encoding features of the wafer defect SEM image, and then the encoding features are enhanced using a space-channel attention mechanism to obtain enhanced encoding features. Finally, a decoder is used to decode the enhanced encoding features word by word to generate sentences corresponding to the defect diagnosis task. Sentences of different defect diagnosis tasks are combined to obtain a diagnosis report.

[0010] During the training process of the defect image diagnosis network, the sentence corresponding to the defect diagnosis task needs to be used as the decoder input to guide the decoder to generate the target sentence;

[0011] The trained multi-task defect image diagnosis network is used to analyze wafer defect SEM images and generate a diagnosis report.

[0012] Furthermore, the defect diagnosis task includes:

[0013] Defect location, shape, and size diagnosis tasks;

[0014] The task of diagnosing the convexity and deformation degree of defects;

[0015] The task of diagnosing the process layer where the defect is located;

[0016] The background and composition information diagnosis task of the defect;

[0017] Defect category diagnosis task.

[0018] Furthermore, the sentences used to describe multiple defect diagnosis tasks in the diagnosis report meet the following conditions:

[0019] Except for the defect category diagnosis task, a sentence should contain at least six words;

[0020] Do not use ambiguous words and grammar;

[0021] The content of the sentence contains all the flaws.

[0022] Furthermore, the wafer defect SEM images in the wafer defect image diagnosis data set are obtained by taking wafer defect SEM images at different angles and synthesizing them.

[0023] Furthermore, before training the defect image diagnosis network, the sentences in the diagnosis report need to be preprocessed, including:

[0024] Convert all uppercase letters in the sentence to lowercase letters, remove all punctuation marks in the sentence and perform word segmentation, convert each sentence into a list containing multiple words, and save the processing results in a dictionary. The key in the dictionary is the ID of the wafer defect SEM image, and the value in the dictionary is a list containing multiple words.

[0025] All sentences in the diagnosis report are subjected to the same preprocessing.

[0026] Furthermore, the encoder in the defect image diagnosis network adopts a Vision Transformer model, which is a deep learning model based on the Transformer architecture and is used to process computer vision tasks, and can be called a visual transformer. It is further preferred that the patch size of the Vision Transformer model is 32×32.

[0027] Furthermore, the enhanced encoding features are implemented through a spatial-channel attention module.

[0028] Furthermore, the decoder adopts a gated recurrent (GRU) module based on an attention mechanism, and the GRU module includes multiple GRU units embedded with an attention mechanism; the enhanced coding features of the wafer defect SEM image are used as input, the image features obtained after processing by the attention mechanism are concatenated with the embedded features of the sentence under the corresponding task and sent to the GRU unit, and the hidden state generated by decoding in the previous time step is combined in the GRU unit for calculation, and the hidden state of the current time step and the predicted sequence of the sentence are gradually generated.

[0029] In a second aspect, the present invention provides a system for enhancing semiconductor defect analysis with semantic and visual interpretation, comprising:

[0030] A data acquisition module, which is used to acquire a wafer defect image diagnosis data set in a training phase, including a wafer defect SEM image and a diagnosis report, wherein the diagnosis report contains sentences for multiple defect diagnosis tasks; and, in a prediction phase, to acquire a wafer defect SEM image to be processed;

[0031] The defect image diagnosis network module is a codec structure based on space-channel attention. Each defect diagnosis task in the diagnosis report maintains a codec structure separately. In each codec structure, the encoder is first used to obtain the coding features of the wafer defect SEM image, and then the coding features are enhanced by the space-channel attention mechanism to obtain enhanced coding features. Finally, the decoder is used to decode the enhanced coding features word by word to generate sentences corresponding to the defect diagnosis task. The sentences of different defect diagnosis tasks are combined to obtain a diagnosis report.

[0032] A network training module is used to train a multi-task defect image diagnosis network using a wafer defect image diagnosis dataset. During the training of the defect image diagnosis network, sentences corresponding to the defect diagnosis task are used as decoder input to guide the decoder to generate target sentences.

[0033] The defect analysis module is used to analyze the wafer defect SEM image to be processed using the trained multi-task defect image diagnosis network and generate a diagnosis report.

[0034] The beneficial effects of the present invention are:

[0035] The present invention designs a diagnostic report containing different diagnostic tasks, providing a new perspective for wafer defect SEM image diagnosis; the proposed multi-task defect image diagnosis network introduces spatial and channel attention between the encoder and decoder, and learns a direct multimodal mapping from the words of the sentence in the diagnostic report to the image pixels, where the spatial attention deals with the aggregation of pixels in adjacent areas with high semantic relevance, while the channel attention deals with the screening of background noise and redundant information to further emphasize the salient targets in the defect image. The present invention makes the defect analysis process of wafer defect SEM images semantically and visually interpretable. The final trained network consumes less time while achieving higher accuracy and BLEU compared to other baselines. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is an example of some sample images in the image data set shown in the embodiment of the present invention;

[0037] Figure 2 is a structural block diagram of a defect image diagnosis network (SDNet) shown in an embodiment of the present invention;

[0038] Figure 3 is a block diagram of a spatial-channel attention module (SCA) according to an embodiment of the present invention;

[0039] Figure 4 It is a GRU module diagram based on the attention mechanism shown in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention.

[0041] The accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0042] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation.

[0043] The method for enhancing semiconductor defect analysis using semantic and visual interpretation proposed by the present invention mainly includes the following steps:

[0044] S1, obtains a wafer defect image diagnosis dataset, including wafer defect SEM images and diagnosis reports.

[0045] In this embodiment, a new dataset is established, called the SSID Captions dataset. The SSIDCaptions dataset is based on a real 55nm wafer production line and is established in cooperation with yield engineers. It contains 4425 grayscale images of wafer defects taken from the left, right, and top, mainly covering 7 major categories of defects commonly seen in the production process. This dataset is currently the first dataset built in the processing of wafer defect captions, in which scenes on multiple background process layers are collected for each defect of the same category, so that the dataset can adapt to greater changes and have richer intra-class diversity. In order to better describe the image content, SSID Captions considers many image representations from multiple aspects, and the diagnostic report content involved includes the location, shape, size of the defect itself, the convexity and deformation degree of the defect, and the process layer and further description of the background. The challenge of wafer defect captions lies not only in the number of its image and scene categories, but also in its huge changes and high intra-class diversity / inter-class similarity characteristics derived from data collection differences. Specifically, for most scene categories, the spatial resolution of wafer defect captions is in the range of about 0.1 to 1um / pixel, and finer categories with high semantic overlap are related, such as particles and holes are both round, but have different backgrounds and concavities. In order to ensure the diversity of vocabulary and syntax, the images of 1475 defects are manually annotated by five different sentences, so the wafer defect caption dataset contains 7375 original different sentences. In order to make the final diagnosis report more formatted and authoritative, follow the following instructions when constructing the image description sentences of the diagnosis report.

[0046] 1) A sentence should contain at least six words, except the fifth sentence which is used to define the category of image defects.

[0047] 2) All prominent defects of the input defect image should be described.

[0048] 3) Ambiguous words and grammar should not be used.

[0049] 4) The first sentence describes the location, shape, and size of the defect.

[0050] 5) The second sentence describes the concavity and deformation degree of the defect.

[0051] 6) The third sentence describes the process layer where the defect is located.

[0052] 7) The fourth sentence describes the background and composition information of the defect.

[0053] 8) Encourage the use of fresh vocabulary and flexible grammar.

[0054] Figure 1This is an example of some image samples. Each image sample contains a SEM image of a wafer defect and a five-sentence diagnostic report. The original file is named SSID.token.txt.

[0055] For example, Figure 1 Take the image in the lower left corner as an example. The five sentences in its diagnosis report are as follows:

[0056] 1) An irregular elliptical defect in the center.

[0057] 2) This defect is protruding and severely deformed.

[0058] 3) This defect occurs during the contact layer tungsten deposition-chemical mechanical polishing process steps.

[0059] 4) The background is darker and consists of many small blocks arranged neatly.

[0060] 5) This is a pit defect.

[0061] In terms of data set processing, SSID.token.txt is the original description of the data set. Its first column is the image ID, and the format of each line is: "Image ID address#title number+space+description". Through five loops, the text description corresponding to each image is traversed, and each sentence is processed as follows: all uppercase letters are converted to lowercase letters, all punctuation marks in the sentence are removed, and word segmentation is performed. Each sentence is converted into a list containing multiple words, and the processing results are saved in a new dictionary. Among them, the key is the image ID in the original dictionary, and the value is the processed word segmentation list.

[0062] S2, build a multi-task defect image diagnosis network, which is implemented using a codec structure based on spatial-channel attention. Each sentence contained in the diagnosis report in step S1 is regarded as a task, and each task maintains a codec structure separately, such as Figure 2 shown.

[0063] Compared with traditional CNN image modeling, the self-attention mechanism can capture non-local information from the entire feature map. The present invention uses Vision Transformer as an encoder, and the features it obtains are more interactive for long-term modeling. The input image is divided into multiple patches, and each patch is projected into an embedded vector of fixed length and input into the Vision Transformer encoder, establishing associations between different positions in a sequence, and outputting encoded features.

[0064] In a specific implementation of the present invention, the encoder adopts the ViT32 model, that is, the Vision Transformer encoder with a Patch Size of 32×32. In the Vision Transformer series of models, ViT16 is the most basic architecture. The present invention believes that on this basis, expanding the Patch Size from 16×16 to 32×32 can expand the global control ability of the encoding stage to a certain extent. Subsequent experimental results have also verified this conjecture. In addition, the number of encoder layers (the number of times the coding blocks are repeatedly stacked in the Transformer encoder) is 12 layers. This parameter is usually 12 / 24 / 32. If it is set too large, it will affect the running time of the model and cannot achieve a lightweight effect. This embodiment adopts the basic order of 12 in the basic architecture.

[0065] The existing GRU mechanism uses a soft attention mechanism, that is, a softmax function is used to generate a weight for each pixel on the feature map. This kind of attention is not a true attention mechanism. Therefore, the present invention combines spatial attention and channel attention in Vit-GRU, and then sends it to GRU for decoding processing. The spatial-channel attention module is as follows Figure 3 As shown in Figure 1, spatial attention deals with the aggregation of pixels in adjacent regions with high semantic relevance, while channel attention deals with the screening of background noise and redundant information to further emphasize salient targets in defective images. The overall image can be understood by analyzing the spatial consistency of different parts.

[0066] Spatial attention focuses on where the valid information on the feature map is. To calculate spatial attention, average pooling and maximum pooling are first performed in the channel dimension, and then the two pooling results are concatenated. A convolution operation is used on the concatenated feature map to generate the final spatial attention feature map. Unlike spatial attention, channel-level attention acts between feature maps, weighting each channel, and the weight value is a vector.

[0067] The calculation process of the spatial-channel attention module is as follows:

[0068]

[0069]

[0070] β =σ( f 7×7 [AvgPool V' ;MaxPool V' ]

[0071]

[0072] In the formula, and They are spatial attention weight and channel attention weight respectively; The encoding features of the wafer defect SEM image output by the encoder; is the activation function; Channel attention features of wafer defect SEM images; It is the channel-spatial attention feature of the wafer defect SEM image, i.e., the enhanced coding feature; It is the convolution calculation; , They are calculated for average pooling and maximum pooling respectively. Calculated for the multi-layer perceptron. In the spatial-channel attention module, the encoded features of the input , first perform channel attention processing, and the result is After spatial attention processing, the channel-spatial attention features of the wafer defect SEM image are finally obtained. .

[0073] Since the wafer defect SEM image data is captured by a scanning electron microscope at different spatial resolutions and magnification ratios, this leads to pixel differences and blurring of defects of the same type, making it difficult to understand the semantics of the image. For the Transformer encoder, the feature map finally extracted often contains features at a higher semantic level, and the differences between the channel features and the pixels inside the image are small and the boundaries are fuzzy. Therefore, the present invention uses a spatial-channel attention mechanism for the encoded features output by the encoder. The image features finally obtained are used for decoding. The channel-space attention module can adaptively select features of specific channels and positions passing through the encoder, thereby improving the processing effect of the subsequent decoder.

[0074] In the decoder part, the present invention adopts the GRU module based on the attention mechanism to perform word-by-word decoding. The GRU module includes multiple attention mechanisms (Atten modules) and GRU units, such as Figure 4 As shown, the channel-spatial attention features of wafer defect SEM images As input, the image features obtained after processing by the Atten module are concatenated with the embedded features of the sentence under the corresponding task and sent to the GRU unit, where the hidden state generated by the previous time step decoding is combined Calculations are performed to gradually generate a predicted sequence of the sentence. The principle of word-by-word decoding is well known in the art and will not be described in detail here.

[0075] The GRU unit uses a gating mechanism to enable the recurrent neural network to not only remember past information, but also selectively forget some unimportant information and model long-term contextual relationships. Based on this idea, GRU reduces the gradient vanishing problem while retaining long-term sequence information. It has a reset gate and an update gate. The reset gate determines how to combine new input information with previous memories, and the update gate defines the amount of previous memories saved to the current time step. The update gate of GRU corresponds to the input and forget gates in LSTM, and the reset gate acts directly on the previous hidden state. The sentence generation process is considered to be a problem of maximizing the probability of generating a correct sentence given the image information.

[0076] S3, training and prediction of defect image diagnosis network. In the training phase, the features of wafer defect SEM images are first obtained through the Vision Transformer encoder and the spatial-channel attention module. Then the image features and sentences of the corresponding tasks are input into the GRU module for step-by-step decoding, and the network is trained to predict words one by one for a given image. Each sentence in the diagnosis report is used as a training task, and a defect image diagnosis network containing five tasks is trained.

[0077] In the prediction stage, the wafer defect SEM image to be analyzed is input into the encoders corresponding to the five tasks, and the channel-spatial attention features of the wafer defect SEM image are generated after the spatial-channel attention module is calculated on the encoded features. The five tasks are input into the decoders respectively, and five sentences are generated in sequence, which are combined to obtain a diagnosis report.

[0078] In order to verify the effect of the present invention, according to the SSID data set, four descriptions and one definition are regarded as K=5 independent tasks for the present invention and the comparison model, and each model supports complete report generation. In the experiment, 20% of the images were randomly selected as test and verification data, and the remaining 80% were trained and cross-validated. The loss function of the training model adopts cross entropy loss. BLEU-n is the source of all text evaluation indicators, which is used to compare the overlap between the candidate description and the reference description. The higher the overlap, the higher the quality of the description. The value range of its score is 0-1, and the closer the score is to 1, the higher the model quality. Since the database of the present invention currently has only one sentence text of the same type for the same picture, the evaluation indicators such as METEOR and ROUGE-L that have higher requirements on sentence richness and grammar are not used; instead, the batch processing time and Top-5 accuracy are increased to evaluate the model. The Top-5 accuracy is the accuracy of the model in the prediction when the correct label is one of the top five labels with the highest probability predicted by the model to evaluate the model effect, which is more in line with industrial application standards.

[0079] As shown in Tables 1-5, Table 1 describes the location, shape, and size of the defects, Table 2 describes the concavity and deformation of the defects, Table 3 describes the process layer where the defects are located, Table 4 describes the background and composition information of the defects, and Table 5 describes the defect categories. Since the experiments are all improved on the basic CNN-GRU encoding-decoding architecture, the widely used Resnet101-GRU is set as the benchmark, and the performance of the model on different CNN (including ResNet101, shuffleNet and ResNet152, RegNet) and Transformer network architectures is evaluated.

[0080] Table 1. Location, shape, and size of defects

[0081]

[0082] Table 2. Concavity and convexity of defects and degree of deformation

[0083]

[0084] Table 3. Process layer where the defects are located

[0085]

[0086] Table 4. Background and composition information of defects

[0087]

[0088] Table 5. Defect categories

[0089]

[0090] The results show that the Transformer series of networks generally have better performance than the CNN series of networks, with better accuracy and BLEU while taking less time to train. Among the four CNNs, Regent has a network layer depth of 3024 and extracts richer high-dimensional features. It performs better than the other three CNNs in most indicators, but the corresponding time consumed for each batch is also the highest. In general, it is believed that the features extracted by Vision Transformer are effective, and the network performance is greatly improved after the encoder is improved to ViT32.

[0091] Next, we conducted experiments on the final network model SDNet after integrating the spatial-channel attention module. We processed the output features encoded by ViT32 and enhanced them with multi-scale attention by the SCA module. The resulting SDNet achieved SOTA results in various comprehensive performances of the output report, which also verified the effectiveness of the SCA module. For sentences like those in Table 3 that need to pay more attention to the background area, the Transformer's good global insight ability has a more obvious advantage, which is significantly higher than other networks.

[0092] At the same time, it can be found that the SDNet constructed by the present invention has achieved a significantly better BLEU level in sentence 1, which is more complex than other sentences, and has also reached a basically similar level in the other two simple sentences that did not achieve the SOTA effect. Therefore, it is believed that SDNet is the network structure with the highest comprehensive performance and has better adaptability to sentences with more complex scenes and structures.

[0093] In this embodiment, a system for enhancing semiconductor defect analysis with semantic and visual interpretation is also provided, which is used to implement the above embodiment. The terms "module", "unit", etc. used below can implement a combination of software and / or hardware for predetermined functions. Although the system described in the following embodiments is preferably implemented in software, it is also possible to implement hardware, or a combination of software and hardware.

[0094] This embodiment provides a system for enhancing semiconductor defect analysis using semantics and visual interpretation, including:

[0095] A data acquisition module, which is used to acquire a wafer defect image diagnosis data set in a training phase, including a wafer defect SEM image and a diagnosis report, wherein the diagnosis report contains sentences for multiple defect diagnosis tasks; and, in a prediction phase, to acquire a wafer defect SEM image to be processed;

[0096] The defect image diagnosis network module is a codec structure based on space-channel attention. Each defect diagnosis task in the diagnosis report maintains a codec structure separately. In each codec structure, the encoder is first used to obtain the coding features of the wafer defect SEM image, and then the coding features are enhanced by the space-channel attention mechanism to obtain enhanced coding features. Finally, the decoder is used to decode the enhanced coding features word by word to generate sentences corresponding to the defect diagnosis task. The sentences of different defect diagnosis tasks are combined to obtain a diagnosis report.

[0097] A network training module, which is used to train a multi-task defect image diagnosis network using a wafer defect image diagnosis data set. During the training process of the defect image diagnosis network, sentences corresponding to the defect diagnosis task need to be used as decoder input to guide the decoder to generate a target sentence;

[0098] The defect analysis module is used to analyze the wafer defect SEM image to be processed using the trained multi-task defect image diagnosis network and generate a diagnosis report.

[0099] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment, and the implementation methods of the remaining modules will not be repeated here. The system embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0100] The embodiments of the system of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The system embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, the corresponding computer program instructions in the non-volatile memory are read into the memory by the processor of any device with data processing capabilities and run.

[0101] Obviously, the above-described embodiments and drawings are only some examples of the present application. For those of ordinary skill in the art, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that, although the work done in this development process may be complicated and lengthy, for those of ordinary skill in the art, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application. Without departing from the concept of the present application, several variations and improvements can also be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A method for enhancing semiconductor defect analysis using semantic and visual interpretation, characterized in that include: Acquire a wafer defect image diagnosis dataset, including wafer defect SEM images and diagnosis reports, wherein the diagnosis report contains sentences for multiple defect diagnosis tasks; A multi-task defect image diagnosis network is trained using a wafer defect image diagnosis dataset. The defect image diagnosis network is a codec structure based on space-channel attention. Each defect diagnosis task in the diagnosis report maintains a separate codec structure. In each codec structure, an encoder is first used to obtain the encoding features of the wafer defect SEM image, and then the encoding features are enhanced using a space-channel attention mechanism to obtain enhanced encoding features. Finally, a decoder is used to decode the enhanced encoding features word by word to generate a sentence corresponding to the defect diagnosis task. The sentences of different defect diagnosis tasks are combined to obtain the diagnosis report; The enhanced coding feature is implemented by a space-channel attention module, and the calculation formula of the space-channel attention module is as follows: α=σ(MLP(AvgPool(V)+MaxPool(V)) V′=αV β=σ(f([AvgPool(V′);MaxPool(V′)]) F=β*V′ Among them, α and β are the spatial attention weight and channel attention weight respectively; V is the encoding feature of the wafer defect SEM image output by the encoder; σ is the activation function; V′ is the channel attention feature of the wafer defect SEM image; F is the channel-spatial attention feature of the wafer defect SEM image, that is, the enhanced encoding feature; f(.) is the convolution calculation; AvgPool(.) and MaxPool(V) are the average pooling and maximum pooling calculations respectively, and MLP(.) is the multi-layer perceptron calculation; During the training process of the defect image diagnosis network, the sentence corresponding to the defect diagnosis task needs to be used as the decoder input to guide the decoder to generate the target sentence; The trained multi-task defect image diagnosis network is used to analyze wafer defect SEM images and generate a diagnosis report.

2. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 1, characterized in that The defect diagnosis tasks include: Defect location, shape, and size diagnosis tasks; The task of diagnosing the convexity and deformation degree of defects; The task of diagnosing the process layer where the defect is located; The background and composition information diagnosis task of the defect; Defect category diagnosis task.

3. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 2, characterized in that: The sentences used to describe multiple defect diagnosis tasks in the diagnosis report meet the following conditions: Except for the defect category diagnosis task, a sentence should contain at least six words; Do not use ambiguous words and grammar; The content of the sentence contains all the flaws.

4. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 1, characterized in that: The wafer defect SEM images in the wafer defect image diagnosis data set are obtained by synthesizing wafer defect SEM images taken at different angles.

5. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 1, characterized in that: Before training the defect image diagnosis network, the sentences in the diagnosis report need to be preprocessed, including: Convert all uppercase letters in the sentence to lowercase letters, remove all punctuation marks in the sentence and perform word segmentation, convert each sentence into a list containing multiple words, and save the processing results in a dictionary. The key in the dictionary is the ID of the wafer defect SEM image, and the value in the dictionary is a list containing multiple words. All sentences in the diagnosis report are subjected to the same preprocessing.

6. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 1, characterized in that: The encoder in the defect image diagnosis network adopts the Vision Transformer model.

7. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 6, characterized in that: The patch size of the Vision Transformer model is 32×32.

8. The method of enhancing semiconductor defect analysis with semantic and visual interpretation according to claim 1, characterized in that: The decoder adopts a GRU module based on an attention mechanism, and the GRU module includes multiple GRU units embedded with an attention mechanism; the enhanced coding features of the wafer defect SEM image are used as input, the image features obtained after being processed by the attention mechanism are concatenated with the embedded features of the sentence under the corresponding task and sent to the GRU unit, and the hidden state generated by decoding at the previous time step is combined in the GRU unit for calculation, and the hidden state of the current time step and the predicted sequence of the sentence are gradually generated.

9. A system for enhancing semiconductor defect analysis with semantic and visual interpretation, characterized in that include: A data acquisition module, which is used to acquire a wafer defect image diagnosis data set in a training phase, including a wafer defect SEM image and a diagnosis report, wherein the diagnosis report contains sentences for multiple defect diagnosis tasks; and, in a prediction phase, to acquire a wafer defect SEM image to be processed; The defect image diagnosis network module is a codec structure based on space-channel attention. Each defect diagnosis task in the diagnosis report maintains a codec structure separately. In each codec structure, the encoder is used to obtain the coding features of the wafer defect SEM image, and then the coding features are enhanced by the space-channel attention mechanism to obtain enhanced coding features. Finally, the decoder is used to decode the enhanced coding features word by word to generate sentences corresponding to the defect diagnosis task. The sentences of different defect diagnosis tasks are combined to obtain the diagnosis report; The enhanced coding feature is implemented by a space-channel attention module, and the calculation formula of the space-channel attention module is as follows: α=σ(MLP(AvgPool(V)+MaxPool(V)) V′=αV β=σ(f([AvgPool(V′);MaxPool(V′)]) F=β*V′ Among them, α and β are the spatial attention weight and channel attention weight respectively; V is the encoding feature of the wafer defect SEM image output by the encoder; σ is the activation function; V′ is the channel attention feature of the wafer defect SEM image; F is the channel-spatial attention feature of the wafer defect SEM image, that is, the enhanced encoding feature; f(.) is the convolution calculation; AvgPool(.) and MaxPool(V) are the average pooling and maximum pooling calculations respectively, and MLP(.) is the multi-layer perceptron calculation; A network training module is used to train a multi-task defect image diagnosis network using a wafer defect image diagnosis dataset. During the training of the defect image diagnosis network, sentences corresponding to the defect diagnosis task are used as decoder input to guide the decoder to generate target sentences. The defect analysis module is used to analyze the wafer defect SEM image to be processed using the trained multi-task defect image diagnosis network and generate a diagnosis report.