An optimization method, system and storage medium for wafer defect detection

By generating a target model and binding it to a data source to form a monitoring service, the model can be adjusted and updated in real time, solving the problem of low optimization efficiency of wafer defect detection models and achieving efficient model optimization and accurate prediction results.

CN118691552BActive Publication Date: 2026-11-27SEMITRONIX
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410694532.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2026-11-27
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing wafer defect detection models have low optimization efficiency, which requires additional operations when the model is isolated between the online and training environments, thus affecting the optimization efficiency.

Method used

By acquiring the detection model of the wafer inspection dimension, evaluating and testing it to generate the target model, and binding it with the target data source to form a monitoring service, the system can obtain statistical data of the prediction results of the wafer image under test in real time, adjust the prediction results based on the statistical data and update the original dataset, thereby retraining and updating the target model.

Benefits of technology

It integrates model training, deployment, online data detection, and data feedback updates, improving model optimization efficiency and ensuring that the model can collect useful online data in real time for optimization in the online environment, thereby improving the accuracy of prediction results and the adaptability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691552B_ABST
    Figure CN118691552B_ABST
Patent Text Reader

Abstract

The application relates to a wafer defect detection optimization method, system and storage medium, wherein the wafer defect detection optimization method comprises the following steps: obtaining a detection model of a required wafer detection dimension, evaluating and testing the detection model to generate a target model; binding the target model with a target data source to form a monitoring service; the monitoring service obtains wafer images to be tested of the target data source in real time to form statistical data of prediction results, obtains a detection condition of the target model, obtains a required adjusted prediction result according to the statistical data, and updates the adjusted prediction result to an original data set, so that the target model is retrained and updated. According to the application, the optimization efficiency of the model is improved, and high-quality wafer defect detection data is output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to an optimized method, system and storage medium for wafer defect detection. Background Technology

[0002] The typical model training process generally involves data labeling, model training, model tuning, and model deployment. Isolating the deployment environment from the training environment can lead to a separation between training and application. If it is necessary to collect useful online data to expand the model training set and optimize the model, many additional operations are required, resulting in low optimization efficiency. Summary of the Invention

[0003] This application provides an optimized method, system, and storage medium for wafer defect detection to address the problem of low optimization efficiency in existing models.

[0004] In a first aspect, embodiments of this application provide an optimized method for wafer defect detection, the method comprising:

[0005] Obtain the detection model for the required wafer inspection dimension, evaluate and test the detection model to generate the target model;

[0006] Bind the target model to the target data source to form a monitoring service;

[0007] The monitoring service acquires statistical data on the prediction results of the wafer images to be tested from the target data source in real time, and obtains the detection status of the target model.

[0008] The required adjusted prediction results are obtained based on the statistical data, and the adjusted prediction results are updated to the original dataset, thereby retraining and updating the target model.

[0009] In some embodiments, obtaining the detection model for the desired wafer inspection dimension further includes:

[0010] Generate the original dataset for the required wafer inspection dimensions;

[0011] A detection model is generated by selecting a model based on the generated original dataset and training it.

[0012] In some embodiments, generating the original dataset for the required wafer inspection dimensions includes:

[0013] Import the image data of the wafer under test and determine whether there is any unlabeled data;

[0014] If present, select either the general model or the target model to intelligently label the unlabeled data;

[0015] The labeled data is verified to form the original dataset.

[0016] In some embodiments, the evaluation test includes training evaluation and training testing, and the evaluation test of the detection model to generate the target model includes:

[0017] Based on the validation dataset, obtain model evaluation data of the detection model under different model hyperparameters;

[0018] Based on the model evaluation data, the optimization terms of the detection model are determined and updated;

[0019] Based on the test dataset or the original dataset, obtain the model test data of the detection model to determine whether to generate the target model.

[0020] In some embodiments, the model evaluation data and / or model test data include a confusion matrix comprising elements representing the number of predicted defects versus standard defects, the elements containing image indexes, and the initial trained model is optimized based on the confusion matrix.

[0021] In some embodiments, optimizing the initial trained model based on the confusion matrix includes:

[0022] Select the target element in the confusion matrix and obtain the image index of the target element;

[0023] Based on the image index, the prediction results and label results of each wafer image to be tested corresponding to the target element are compared and displayed;

[0024] The defect category to be optimized is obtained from the prediction results and label results of each wafer image to be tested corresponding to the target element, and the preliminary training model is optimized.

[0025] In some embodiments, before binding the target model to the target data source to form a monitoring service, the method further includes:

[0026] Add the target model to the model repository and configure the optimization strategy;

[0027] Based on the analysis requirements of the target data source, the required target model is selected from the model repository; the target model outputs prediction results based on the optimization strategy.

[0028] In some embodiments, the wafer inspection dimension includes image classification and target detection for wafer defect detection;

[0029] When selecting a target model for image classification, the optimization strategy includes determining the target defect category corresponding to each wafer image under test based on the confidence value / position / size of the defect detection box.

[0030] In some embodiments, the optimization strategy consists of at least one of the following: confidence threshold setting for defect category screening, defect category priority, correlation between different defect categories, and defect size.

[0031] In some of these embodiments, the optimization strategy includes:

[0032] The target defect category of the wafer image under test can be determined by selecting at least one of the following methods: maximum confidence, closest to the center point, and largest detection box.

[0033] In some embodiments, binding the target model to the target data source to form a monitoring service further includes:

[0034] Select the target data source and the target model to create a monitoring service;

[0035] Trigger the pre-release page to evaluate the model's deployment, compare and display the prediction results of different optimization strategies, determine the optimization strategy that meets expectations, and update the configured optimization strategy.

[0036] In some embodiments, the monitoring service acquires statistical data on the prediction results of the wafer image to be tested from the target data source in real time to obtain the detection status of the target model, and further includes:

[0037] A visualization analysis page for generating the statistical data is provided. In response to a user's filtering operation on at least one data dimension in the visualization analysis page, the data range of the filtered at least one data dimension is obtained, the statistical data of the prediction result is determined, and the statistical data is displayed on the visualization analysis page.

[0038] In some embodiments, obtaining the required adjusted prediction results based on the statistical data includes:

[0039] The visualization analysis page is linked to the target data source to display the prediction results for the current data range.

[0040] In some embodiments, the method further includes:

[0041] Determine whether to trigger an alert based on the statistical data;

[0042] When an alert is triggered, an alert message is generated and sent to the user's device.

[0043] In some embodiments, adding the target model to the model repository and configuring the optimization strategy includes:

[0044] Generate the corresponding version information of the target model;

[0045] The target model and its corresponding version information are stored in the model repository;

[0046] Based on the version information of the target model, an optimization strategy is configured according to the requirements for the prediction results.

[0047] Secondly, this application provides an optimized system for wafer defect detection, the system comprising:

[0048] The target model generation module is used to obtain the detection model for the required wafer inspection dimension, evaluate and test the detection model to generate the target model;

[0049] The service generation module is used to bind the target model with the target data source to form a monitoring service;

[0050] The prediction module is used by the monitoring service to obtain statistical data of the prediction results from the image of the wafer to be tested from the target data source in real time, and to obtain the detection status of the target model.

[0051] The update module is used to obtain the required adjusted prediction results based on the statistical data, and update the original dataset with the adjusted prediction results, thereby retraining and updating the target model.

[0052] Thirdly, this application provides a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, comprises the steps of the optimized method for wafer defect detection described in the first aspect.

[0053] Compared with existing technologies, the wafer defect detection optimization method, system, and storage medium provided in this application embodiment generate a corresponding dataset by selecting the required wafer detection dimensions (such as image classification and object detection), train a detection model for the required wafer detection dimensions based on the dataset, and use a combination of model evaluation and model testing for the initial detection model. The model optimization items are obtained through statistical analysis on a visual page, and finally a target model with high detection quality is generated and added to the model repository. The model repository contains multiple target models of different types or versions. In order to improve the accuracy of prediction results, this technical solution also introduces optimization strategy technology. Different optimization strategies can be equipped for each target model according to the analysis requirements, and the output of the model can be processed again to output relatively accurate results.

[0054] This technical solution integrates model training, model deployment, online data detection, and data feedback for model updates into a single process. By creating service concepts, different services can be created for real-time processing of different analytical needs or different data. The required data path is bound to the target model, allowing the model to continuously detect and analyze data along the corresponding data path in real time. The results are stored in the corresponding data path, and the service generates a corresponding visual analysis page to statistically analyze prediction results and model performance, such as prediction accuracy, defect types, and model runtime. This clearly shows the detection status of the target model under the corresponding data path, enabling a comprehensive judgment on whether the model needs to be updated or replaced. Furthermore, the generated prediction results are confirmed through the visual page, allowing for the identification of errors. The circular image undergoes defect category updates, ultimately outputting image annotation data that meets expectations. Of course, for data where the model misidentifies, or for data periodically fed back to the model's corresponding dataset, the model is updated and replaced within the service, ensuring continuous use of suitable models for high-quality predictions. This technical solution covers the entire process of model generation and optimization, enabling developers to efficiently generate high-precision models for specific tasks. After deploying the model online, difficult example data is acquired in real time, added to the original training dataset, and the model is fine-tuned before being deployed again. In other words, real-time data from the online environment can be added to the training dataset at any time for model training and tuning. The online and training environments are not isolated, allowing for the real-time collection of useful online data to expand the model training set and optimize the model, thereby improving optimization efficiency.

[0055] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0056] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0057] Figure 1 This is a hardware structure block diagram of a terminal that executes an optimized method for wafer defect detection according to an embodiment of this application;

[0058] Figure 2 This is a flowchart of an optimized method for wafer defect detection according to an embodiment of this application;

[0059] Figure 3 This is a flowchart of another optimized method for wafer defect detection according to an embodiment of this application;

[0060] Figure 4This is a flowchart of another optimized method for wafer defect detection according to an embodiment of this application;

[0061] Figure 5 This is a schematic diagram of the structure of an optimized wafer defect detection system according to an embodiment of this application;

[0062] Figure 6 This is a schematic diagram of the structure of another optimized wafer defect detection system according to an embodiment of this application. Detailed Implementation

[0063] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0064] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning as understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these,” used in this application, do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to such processes, methods, products, or devices. The terms “connected,” “linked,” and “coupled,” used in this application, are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. The term “multiple” used in this application refers to two or more. The "and / or" operator describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: A alone, A and B simultaneously, and B alone. Typically, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," and "third," etc., used in this application are merely for distinguishing similar objects and do not represent a specific ordering of the objects.

[0065] The method embodiments provided in this application can be executed on a terminal, computer, or similar computing device. For example, running on a terminal. Figure 1 This is a hardware structure block diagram of a terminal executing an optimized method for wafer defect detection according to an embodiment of this application. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 and a memory 104 for storing data are also included. The processor 102 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown are illustrated.

[0066] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to an optimized method for wafer defect detection in this embodiment of the application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the aforementioned method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0067] The transmission device 106 is used to receive or send data via a network. This network includes a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 can be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0068] This embodiment provides an optimized method for wafer defect detection. Figure 2 This is a flowchart of an optimization method for wafer defect detection according to an embodiment of this application. It can also be a method for optimizing a model, such as... Figure 2 As shown, the process includes the following steps:

[0069] Step S110: Obtain the detection model for the required wafer inspection dimension, and evaluate and test the detection model to generate the target model.

[0070] In this step, the required wafer inspection dimension can be defined according to the required output detection / prediction results, such as image classification of the defect category corresponding to each wafer image, or target detection of all defect categories existing on the wafer image, or analysis requirements for detecting one or more specific defect types. It is not limited to the two analysis dimensions of image classification and target detection.

[0071] Step S120: Bind the target model to the target data source to form a monitoring service.

[0072] In this step, monitoring services are created to meet different analytical needs. This involves binding the target data source and the target model to enable the automatic acquisition of images of the wafer under test from the target data source for defect detection. It's worth noting that the target data source can be a database such as an online image library, or a specific data path within that database. Different models will be configured to create different monitoring services depending on the data path or data type.

[0073] Step S130: The monitoring service obtains statistical data of the prediction results of the wafer image to be tested from the target data source in real time, and obtains the detection status of the target model.

[0074] In this step, due to the binding relationship between the target model and the target data source, the image of the wafer under test can be continuously acquired in real time and automatic defect detection can be performed. The prediction results will be stored in the target data source to form complete detection data (image of the wafer under test + defect detection box information). Through the visualization page of the monitoring service, the running status and detection status of the target model can be statistically analyzed, such as the model's detection volume, detection success rate, detection time, and other model running efficiency, as well as the accuracy of the prediction results, the prediction results, and the status of each defect category in the prediction results. This allows for a direct understanding of the target model's detection performance on the required data, facilitating the determination of the target model's prediction effect on this data type or determining whether the model needs to be updated.

[0075] Step S140: Obtain the required adjusted prediction results based on the statistical data, and update the original dataset with the adjusted prediction results, thereby retraining and updating the target model.

[0076] In this step, the quality of the prediction results can be obtained through statistical data, and the prediction results can be confirmed and adjusted through the visualization page of the monitoring service and the visualization page of the target database. Specifically, the main focus is on confirming the predicted defect types of the wafer images to be tested. Incorrect predicted defect types can be corrected through manual review. Given that the semiconductor industry produces a large number of defect images every day, and new defect types appear irregularly or uncertainly, and the model generally makes mistakes because new defect types have appeared, the prediction results that have been reviewed or the historical data of the prediction results are periodically fed back to the original dataset to allow the target to update and learn, thereby retraining and updating the target model. Of course, the monitoring service can manually select to replace the model or automatically replace the model. Subsequently, the wafer images to be tested will be subjected to high-quality wafer defect detection using the continuously learning target model.

[0077] In this embodiment, a corresponding dataset is generated by selecting the required wafer detection dimensions (such as image classification and object detection). Based on the dataset, a detection model for the required wafer detection dimensions is trained. For this initial detection model, a combination of model evaluation and model testing is used. The model optimization terms are obtained through statistical analysis on a visual page. Finally, a target model with high detection quality is generated and added to the model repository. The model repository contains multiple target models of different types or versions. In order to improve the accuracy of the prediction results, this technical solution also introduces optimization strategy technology. Different optimization strategies can be equipped for each target model according to the analysis requirements. The output of the model can be processed again to output relatively accurate results.

[0078] This technical solution integrates model training, model deployment, online data detection, and data feedback for model updates into a single process. By creating service concepts, different services can be created for real-time processing of different analytical needs or different data. The required data path is bound to the target model, allowing the model to continuously detect and analyze data along the corresponding data path in real time. The results are stored in the corresponding data path, and the service generates a corresponding visual analysis page to statistically analyze prediction results and model performance, such as prediction accuracy, defect types, and model runtime. This clearly shows the detection status of the target model under the corresponding data path, enabling a comprehensive judgment on whether to update or replace the model. The generated prediction results are confirmed through the visual page, and defect categories are updated for incorrectly identified wafer images. Finally, all outputs are image annotation data that meet expectations. Of course, for data incorrectly identified by the model, or for periodic data feedback to the model's corresponding dataset, the model is updated and replaced within the service, ensuring continuous use of the appropriate model for high-quality predictions.

[0079] In some embodiments, obtaining the detection model for the desired wafer inspection dimension further includes:

[0080] Generate the original dataset for the required wafer inspection dimensions;

[0081] A detection model is generated by selecting a model based on the generated original dataset and training it.

[0082] In this embodiment, based on the monitoring service to be generated, the user needs to generate the original dataset corresponding to the wafer inspection dimension for model training. The selected model can be a general model or an existing target model of the same type.

[0083] In some embodiments, generating the original dataset for the required wafer inspection dimensions includes:

[0084] Import the image data of the wafer under test and determine whether there is any unlabeled data;

[0085] If present, select either the general model or the target model to intelligently label the unlabeled data;

[0086] The labeled data is verified to form the original dataset.

[0087] In this embodiment, the imported wafer image data can be imported from the local source or from the target data source (online image library). To generate labeled data quickly and efficiently, the labeled data can be intelligently labeled to speed up the generation process.

[0088] In some embodiments, the evaluation test includes training evaluation and training testing, and the evaluation test of the detection model to generate the target model includes:

[0089] Based on the validation dataset, obtain model evaluation data of the detection model under different model hyperparameters;

[0090] Based on the model evaluation data, the optimization terms of the detection model are determined and updated;

[0091] Based on the test dataset or the original dataset, obtain the model test data of the detection model to determine whether to generate the target model.

[0092] In this embodiment, the evaluation test may include training evaluation and / or training testing, depending on the analysis requirements. If the model performs well in the training evaluation, training testing may not be necessary; or the model may be evaluated directly through training testing; or training evaluation may be performed first, followed by training testing. The specific number of training evaluations and training tests is determined according to the progress of model tuning, which means that multiple training evaluations and training tests can be performed.

[0093] Furthermore, the validation dataset and test dataset can be obtained by splitting the original dataset. Specifically, the labeled data in the original dataset can be divided into training dataset, validation dataset, and test dataset in a custom proportion. All three datasets have labeled data (detection box information and defect type, etc.) for the wafer image to be tested. The training dataset is used to train the detection model as the target model, and the validation dataset and test dataset are used for training evaluation and training testing, respectively. In addition, the training test can also select labeled historical data from the target data source for testing.

[0094] In some embodiments, the model evaluation data and / or model test data include a confusion matrix comprising elements representing the number of predicted defects versus standard defects, the elements containing image indexes, and the initial trained model is optimized based on the confusion matrix.

[0095] In this embodiment, the generated model evaluation data and / or model test data can also be used to evaluate the model by generating a confusion matrix. For example, the standard defects and predicted defects in the validation dataset and test dataset are respectively mapped to the rows and columns of the confusion matrix. The elements on the confusion matrix represent the number of each defect type. The elements are set with image indices, and the corresponding image data can be obtained by selecting the elements. At the same time, the confusion matrix can be used to obtain the data situation of each defect type and the situation of false detection / missed detection / false detection, so as to achieve targeted optimization of the model.

[0096] In some embodiments, optimizing the initial trained model based on the confusion matrix includes:

[0097] Select the target element in the confusion matrix and obtain the image index of the target element;

[0098] Based on the image index, the prediction results and label results of each wafer image to be tested corresponding to the target element are compared and displayed;

[0099] The defect category to be optimized is obtained from the prediction results and label results of each wafer image to be tested corresponding to the target element, and the preliminary training model is optimized.

[0100] In this embodiment, by selecting elements on the confusion matrix, comparative images with standard defects and predicted defects can be obtained through the image index corresponding to the element. For example, the left side shows an image with standard defects, and the right side shows an image with predicted defects. By using the elements of the confusion matrix and the corresponding comparative images, the defect category to be optimized can be obtained, thereby optimizing the model. It is worth noting that if the predicted defect box is found to be more accurate than the originally labeled defect box, the predicted defect box can replace the originally labeled defect box to provide a better dataset and labeling results.

[0101] In some embodiments, before binding the target model to the target data source to form a monitoring service, the method further includes:

[0102] Add the target model to the model repository and configure the optimization strategy;

[0103] Based on the analysis requirements of the data source, the required target model is selected from the model repository; the target model outputs prediction results based on the optimization strategy.

[0104] In this embodiment, by setting up a model repository, users can create multiple target models of different types or the same type with different model parameters, facilitating model selection and replacement. Given the continuous output of wafer defect images in the semiconductor field, continuous processing and real-time output of detection results are necessary for timely data analysis to identify process problems. Therefore, a monitoring service is created for continuous processing. Different monitoring services can be created based on different data sources or data dimensions. By binding the target data source (which can be a database with different data sources or a target data path under different data dimensions, such as process dimension, batch dimension, etc.) to the target model, the data under the target data source can be automatically persisted through the target model. Optimization strategies are also set to achieve more accurate output results.

[0105] In some embodiments, the wafer inspection dimension includes image classification and target detection for wafer defect detection;

[0106] When selecting a target model for image classification, the optimization strategy includes determining the target defect category corresponding to each wafer image under test based on the confidence value / position / size of the defect detection box.

[0107] In some embodiments, the optimization strategy comprises at least one of the following: a confidence threshold for defect category selection, defect category priority, correlation between different defect categories, and defect size. In some embodiments, the optimization strategy includes:

[0108] The target defect category of the wafer image under test can be determined by selecting at least one of the following methods: maximum confidence, closest to the center point, and largest detection box.

[0109] In this embodiment, the image classification dimension refers to determining the defect category corresponding to each image. Since an image may contain multiple defect types, this optimization strategy is used to output an accurate defect category. This technical solution sets the optimization strategy from several directions, such as the confidence value, position, and size of the defect detection box, to output an accurate prediction result. Optimally, one of the following can be selected: maximum confidence, closest to the center point, or largest detection box. Of course, if a certain method is not effective, other methods can be used to select the most suitable method or a combination of multiple methods to determine the target defect category of the wafer image under test.

[0110] In some embodiments, binding the target model to the target data source to form a monitoring service further includes:

[0111] Select the target data source and the target model to create a monitoring service;

[0112] Trigger the pre-release page to evaluate the model's deployment, compare and display the prediction results of different optimization strategies, determine the optimization strategy that meets expectations, and update the configured optimization strategy.

[0113] In this embodiment, to reduce the incompatibility of the target data source with the target model, this technical solution introduces a testing phase on the pre-release page. By selecting the data to be processed from the target data source for pre-release testing, the optimization strategy can be adjusted on the pre-release page. The prediction results of different optimization strategies can be compared and displayed to obtain an optimization strategy that meets expectations, and the latest optimization strategy replaces the configured optimization strategy.

[0114] In some embodiments, the monitoring service acquires statistical data on the prediction results of the wafer images to be inspected from the target data source in real time to obtain the detection status of the target model, and further includes:

[0115] A visualization analysis page for generating the statistical data is provided. In response to a user's filtering operation on at least one data dimension in the visualization analysis page, the data range of the filtered at least one data dimension is obtained, the statistical data of the prediction result is determined, and the statistical data is displayed on the visualization analysis page.

[0116] In this embodiment, the statistical data visualization analysis page can be understood as a monitoring service page. In order for users to conveniently know the data volume, detection status, and model operation status under the target data source, a visualization analysis page is set up. On this page, users can filter data according to data dimensions, such as time dimension, process dimension, and other data-related filtering dimensions, which facilitates users to perform statistical analysis.

[0117] In some embodiments, obtaining the required adjusted prediction results based on the statistical data includes: binding a visualization analysis page to a target data source and displaying the prediction results for the current data range.

[0118] In some embodiments, the method further includes:

[0119] Determine whether to trigger an alert based on the statistical data;

[0120] When an alert is triggered, an alert message is generated and sent to the user's device.

[0121] In some of these embodiments, the target model is added to the model repository and an optimization strategy is configured, including:

[0122] Generate the corresponding version information of the target model;

[0123] The target model and its corresponding version information are stored in the model repository;

[0124] Based on the version information of the target model, an optimization strategy is configured according to the requirements for the prediction results.

[0125] This embodiment also provides an optimized method for wafer defect detection. Figure 3 This is a flowchart of another optimized method for wafer defect detection according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps:

[0126] Step S210: Train the first target model based on the original dataset to obtain at least one second target model.

[0127] In this step, we obtain the first target model and the original dataset. Both the original dataset and the first target model can be one or multiple. The first target model can be a general model or a third target model already added to the model repository. Multiple first target models can be target models of different types, or they can be the same type of target models with different model parameters (such as model training parameters, optimization strategies, and model hyperparameters). After configuring or setting the model parameters of the first target model, we train it to generate the second target model. Setting or configuring different model parameters and training the first target model generates multiple second target models; alternatively, selecting different first target models and original datasets will generate multiple second target models. The second target model can be understood as the model obtained after training the first target model with configured or set model parameters. The target model can be a classification model, a detection model, etc., without specific limitations. The model parameters include, but are not limited to, learning rate, regularization parameters, number of network layers, number of neurons per layer, number of training epochs, and batch size.

[0128] Step S220: Evaluate and test multiple second objective models to obtain multiple third objective models.

[0129] In this step, different second-objective models can be generated based on the model type and the different original datasets used for binding. Multiple second-objective models are trained and evaluated, and multiple third-objective models are obtained based on the training and evaluation results; alternatively, multiple second-objective models are trained and tested, and multiple third-objective models are obtained based on the training and testing results; or, multiple second-objective models are trained and tested repeatedly, and multiple third-objective models are obtained based on the training and testing results. Here, the third-objective model is understood as a model whose performance has been optimized from the second-objective model.

[0130] Step S230: Add multiple third-objective models to the model repository.

[0131] In this step, the multiple third-target models from step S220 are added to the model repository. Models that have been trained and evaluated can be added to the model repository. Storing models in the repository enables model version management; each model in the repository has corresponding version information. A third-target model can be added to the model repository repeatedly, creating different versions.

[0132] Step S240: Select the target model from the model repository and configure the optimization strategy corresponding to the target model.

[0133] In this step, a target model is selected from the model repository based on user configuration or user requirements, and the corresponding optimization strategy is configured for the target model. The target model here is the third target model selected from the model repository based on user configuration or user requirements. Different versions of the model can have different optimization strategy configurations. For example, scenario A requires a lower false negative rate, while scenario B requires a higher accuracy rate for defect x. Scenario A and scenario B can use the same model category, using different versions of the same model, and configuring different optimization strategies for different versions. These optimization strategies are set according to the requirements of different scenarios.

[0134] Step S250: Deploy the target model to the service.

[0135] In this step, the optimization strategy aims to improve the accuracy of the target model's output. This optimization strategy can be aimed at optimizing the target model's basic information or its displayed information.

[0136] This embodiment also provides an optimized method for wafer defect detection. Figure 4 This is a flowchart of another optimized method for wafer defect detection according to an embodiment of this application, such as... Figure 4 As shown, the process includes the following steps:

[0137] Step S302, data import.

[0138] In this step, data import can be done by uploading from a local machine or importing from an online database. Taking an image dataset as an example, importing from an online database means obtaining the data from an online image library. Online data can be understood as image data captured in real time by a capture machine. The data is stored in the database and can be filtered by information such as Product or Layer. Each user needs to create a dataset before importing data. The dataset needs to have a name, version number, and annotation type (image classification or object detection). Finally, the image data is imported from the local machine or by selecting the data dimension corresponding to the storage dimension of the online image library. After the data is imported, it can be cleaned to remove duplicate or similar images. When removing similar images, the threshold can be adjusted to control the deletion ratio, i.e., how many images to keep. After data cleaning, the dataset version will be updated.

[0139] Step S304, data annotation.

[0140] In this step, based on the original dataset required for training the model, the initial data can be labeled in two ways: image classification and object detection. For image data labeling, users can choose manual or intelligent labeling. If the active learning mode is selected for intelligent labeling, training parameters need to be set (such as the number of iterations, confidence threshold, and filtering of low-confidence detection boxes). It supports intelligent labeling using existing partially labeled data (train first, then label). If a specified model mode is selected, training parameters and a model need to be set. It supports intelligent labeling using models from the model repository (direct labeling). The intelligently labeled data serves as intermediate state data and requires confirmation before it is fully labeled. The intelligent labeling process includes the following logic: 1) After intelligent labeling, unlabeled data receives intelligent label labels; 2) Intelligent label labels can be added, deleted, or modified; 3) After clicking "confirm" on the image, the intelligent labeling becomes manual labeling, and the image is updated to labeled data. For image classification data labeling, a defect type can be assigned to each image in the initial data. The labeling information includes the defect type and the detection box used to identify that defect type. For data annotation of target detection, all defect types in the initial data can be annotated. The annotation information includes all defect types and detection boxes used to identify the locations of all defect types. The annotation information can also include the number of defect types in the initial data.

[0141] For automatic defect detection applied in semiconductor manufacturing processes, there are two categories: image classification and target detection. First, a single wafer image may detect multiple different types of defects. Image classification refers to selecting one of the multiple defect types as the defect type of this wafer image. Target detection refers to detecting all defects present in the wafer image (i.e., detecting the type and number of detection boxes).

[0142] Step S306, Model Training.

[0143] In this step, the first target model is trained using the labeled training dataset to obtain the second target model. Before training the model, training parameters need to be set. Parameters can be recommended based on the training data in the training dataset. For example, the data input size of the model can be recommended by statistically analyzing the image sizes in the training data, or the number of iterations of the model can be recommended by analyzing the number of training data sets and the number of categories. Finally, the model is trained according to the set training parameters, and the trained model can be added to the training camp. Further, based on the constraints of the model's data input size and the image sizes in the training data, the recommended data input size of the model is obtained. As a non-restrictive example, the recommended data input size of the model is determined by statistically analyzing the sizes in the training data. First, the average length and width of all images in the training data are calculated. For example, if the average length and width are 500, and the constraint of the model's data input size is that the model can only accept data inputs with sizes that are multiples of 32, then the strategy is to calculate the largest multiple of 32 less than 500 as the recommended data input size of the model, that is, the recommended data input size of the model is 480. The purpose of this is to provide a recommended size that corresponds to the model's input size. This is related to the model's size; a larger model has more parameters and a stronger learning ability. If the model's input size is larger than the image size (i.e., greater than 500), it cannot provide more image information, thus wasting computational resources. If the model's input size is very small, the image needs to be compressed, resulting in information loss. The advantage is faster model training, but the model's accuracy will decrease.

[0144] Step S308: Model evaluation test to determine whether the model meets the requirements for going live.

[0145] In this step, the second target model undergoes training evaluation and / or training testing. Training evaluation assesses model performance and optimizes hyperparameters. Specifically, performance evaluation uses a validation set to evaluate the model's generalization ability during training, i.e., its predictive ability on unseen data. Performance evaluation on the validation set helps select optimal model hyperparameters or prevent overfitting. Hyperparameter tuning involves comparing the model's performance with different hyperparameter settings on a validation set independent of the training set or labeled online data to improve model performance and generalization ability. If the model performs poorly on the validation set or labeled online data, methods such as enriching training data, adjusting training strategies, and adjusting data augmentation strategies can be tried to improve model performance. Enriching training data includes enriching training data for classes with poor performance metrics on the validation set. Adjusting data augmentation strategies, such as rotation and shearing, can help improve the model's generalization ability. The metric calculation and inference logic of training testing are the same as training evaluation, but training testing uses richer data sources and is not used to adjust training parameters, making it more useful for detecting the model's generalization ability. Training evaluation and training testing can be used individually or in combination. Using them in combination means: after training evaluation, improving model performance by enriching training data and adjusting training strategies, and then retraining the model; further, using training testing to compare the performance of the two models before and after optimization on a large-scale dataset. This allows us to observe whether the optimization truly improves model performance.

[0146] Specifically, training evaluation and training testing pages can be generated. These pages will statistically display the model's accuracy, false positives, and missed detections. They will also display the overall prediction results through statistical charts, such as bar charts or pie charts showing the percentage of predicted defect types, or a confusion matrix showing the difference between predicted labels and standard defects. The confusion matrix clearly shows the model's performance in terms of false positives, missed detections, and missed detections. However, this statistical data has a hidden problem. For example, defect A in image 1 and defect B in image 2 might be predicted as completely opposite, but the confusion matrix still shows them correctly. Therefore, image indexes are associated with the confusion matrix to confirm the image hierarchy. The values ​​in the confusion matrix represent the elements representing the number of predicted and standard defects. Each element has an image index, meaning the image corresponding to the statistical value of that element is associated with the confusion matrix. When a value is selected in the confusion matrix, the corresponding image data is retrieved through the image index for comparison. Specifically, images containing predicted defects and standard defects (validation set or labeled online data with standardized defect types) are compared and displayed.

[0147] When the model fails to meet deployment requirements during evaluation testing, data annotation optimization and / or model training hyperparameter optimization are performed. Data annotation optimization includes using a confusion matrix to identify manually mislabeled parts of the model and adjusting the data annotations, or adjusting the size and position of the detection boxes to better fit the target. Model training hyperparameter optimization involves analyzing training evaluation results, trying various hyperparameters, and selecting the best one. When the model meets deployment requirements, the third target model, generated from training, evaluation, and testing of the second target model, is added to the model repository.

[0148] Step S310: Add the model to the model container.

[0149] In this step, the third target model generated by training, evaluating, and testing the second target model will be added to the model repository.

[0150] Version control is implemented in the model repository:

[0151] 1. A model can be repeatedly added to the model repository to create different versions, each with different optimization strategies. For example, product A might want a lower false negative rate, while product B might want a higher accuracy rate for defect x. Since their model categories are the same, they can share different versions of the same model and configure different optimization strategies.

[0152] 2. Different versions of models can be deployed to the same service in a replacement manner. The service will record historical model information, and you can also quickly select a model from the history to replace the current model.

[0153] Step S312: Configure optimization strategies.

[0154] In this step, the trained model, i.e., the third target model, is added to the model repository. The model to be deployed, i.e., the fourth target model, is selected from the repository, and an optimization strategy is configured. The purpose of the optimization strategy is to improve the accuracy of classification results in the image classification dimension or detection results in the object detection dimension. The optimization strategy includes basic model information such as model name, type, and included categories; model running parameters such as global confidence threshold, image input size, and detection bounding box IOU threshold; image group settings, allowing selection of the detection image group capacity and image group number; and advanced settings, the content of which corresponds to the model category. The optimization strategy parameters are updated directly in the model's optimization strategy interface. After saving, the online optimization strategy parameters will be automatically updated.

[0155] In the advanced settings for the image classification model, each image may have multiple bounding boxes, meaning there may be multiple defect types. Ultimately, only one defect type is needed to represent the result of the wafer image under test. Therefore, the core of the optimization strategy is to determine which bounding box / defect type result is used as the final image classification dimension result. This can be deduced from the following advanced settings: i. Image classification mode: You can select the bounding box with the highest confidence, the one closest to the center point, or the bounding box with the largest area; ii. Class confidence threshold: Each class can filter out some low-confidence bounding boxes; iii. Class uncertainty Unicode iv. Reliability threshold: Images containing low-confidence detection boxes in each category are assigned to the "uncertain" category; iv. Category priority: When the "detection mode" equals the maximum confidence, the category priority is adjusted by multiplying the original confidence by the weight, so that images are assigned to more important categories first; v. Category detection count division: Used when the same defect appears in an image at different frequencies, the meaning to the user is different. For example, if class A appears 10 times, the image is considered to be of class B; vi. Defect measurement: Used when defects of the same shape have different meanings to the user depending on their size. As a non-restrictive example, the model's detection mode is based on maximum confidence selection, i.e., selecting the detection box with the highest confidence value; the confidence threshold for the Bump_Loss category is 0.3, and the category Uncertain threshold for the Bump_Loss category is 0.5. If a detection box is identified as belonging to the Bump_Loss category, and its inference or prediction confidence threshold is 0.4 (greater than the category confidence threshold of 0.3 but less than its category Uncertain threshold of 0.5), then the detection box will be classified as the Uncertain category; when a detection box is identified as other... When classifying and assigning priority to Bump_Shift, the priority of Bump_Shift will be determined according to the calculation formula, thus confirming the final inference result of the detection box. If the number of detection boxes of Cu_Residue in an image is greater than 10, the image will no longer be inferred as Cu_Residue, but will be classified into a new category Cu_Residue_New where the number of Cu_Residue is greater than 10. The calculation of defect size supports calculation based on the diagonal, long side, short side or area of ​​the detection box, and supports both adaptive scale and absolute scale measurement methods.

[0156] For advanced settings of the object detection model, only the class confidence threshold and the class uncertainty threshold need to be set. The class confidence threshold filters out some low-confidence classification results. The class uncertainty threshold assigns images containing low-confidence categories to the "uncertain" category. As a non-restrictive example, an image is ultimately classified as "Discolor" only if it is identified as such and its inference confidence threshold is greater than 0.8; otherwise, it will be classified as another category. Similarly, an image is classified as "Uncertain" only if it is identified as "PI_Concave" and its inference confidence threshold is less than 0.8. The class confidence threshold for the "Pattern_Fail" category is 0.8, and the class uncertainty threshold is 0.9. If an image is identified as "Pattern_Fail" and its inference confidence threshold is 0.85 (greater than the class confidence threshold of 0.8 but less than its class uncertainty threshold of 0.9), then the image will be classified as "Uncertain."

[0157] Step S314, Model Deployment.

[0158] In this step, the model with the configured optimization strategy, i.e., the fourth target model, is published online to the service. Publishing to a new service or an existing service is supported. After selecting a service, you will enter the service editing page. After completing the relevant configurations for the model and product, you can perform a pre-release test. After the test is completed, click "Publish" to complete the model deployment. Deploying the model to a service involves specifying one model and the configuration or data dimensions (product / layer, etc., corresponding to the data settings in the online graph library) that need to pass through that service. Data matching the service configuration will pass through the model to obtain classification results. A pre-release page will be available when the model is first launched, allowing you to view the model's performance and further adjust the optimization strategy. Binding the model and product to the service involves using the online model of the service to obtain classification results. Binding products: Each business can be bound to a unique service, and a service can be bound to multiple businesses. When new data under a business type enters the platform, it will be matched to the corresponding service according to the binding relationship and the set priority order. The bound products of a service can also be changed. In the service, select the model to be bound and complete the ID mapping configuration. The ID mapping configuration supports mapping the category name of the selected model to be launched to the business category name. After configuring the ID mapping, if the model is published to this service for the first time, it will automatically enter the pre-publishing page. On the pre-publishing page, you can view the model's performance and further adjust and optimize your strategies.

[0159] The pre-release page allows for model testing and quick adjustments to optimization strategies. It tests model performance by extracting historical data from an online image library based on service bindings and feeding it into the model for inference. The page displays the inference results along with corresponding metrics such as accuracy and false negative rate. For classification models, it shows classification results; for detection models, it shows detection results with bounding boxes. Users can check the inference results to confirm model performance. If the results meet expectations, the model can be released online. The right side of the pre-release page displays the model's optimization strategy settings, while the left side visualizes the optimization strategies, including the initial and updated strategies. If the model test results do not meet expectations, the optimization strategy from step S312 can be adjusted here. After adjustment, it can be applied to the current model. The page can be refreshed, and another test can be initiated to obtain new inference or prediction results. By comparing the before and after model results and metrics (accuracy and false negative rate), the optimization strategy can be continuously adjusted to a suitable level. When the model performance meets expectations, the "Apply" button in the optimization strategy section can be clicked to save, officially updating the optimization strategy parameters for the online model.

[0160] Step S316, monitoring service.

[0161] This step supports online data viewing, viewing the classification results of the online model, manually reviewing the classification results, and viewing service statistics and monitoring information.

[0162] For the online image library, online data is matched to the corresponding service based on the service binding relationship. After continuous inference using the online model bound to the service, the results are stored in the online image library's database. This data and inference results can be viewed on the online image library page. The online image library supports filtering by time and data dimensions to view the results of different business data inferred by different services. The online image library supports manual review of model inference results. Users can jump directly to the online image library page from the monitoring service page to view the corresponding data results. If the model inference result is correct, the corresponding image can be selected on the online image library page and confirmed by clicking the label bar on the right. If the model is misclassified, the label can be manually modified and saved to the database. The monitoring service module calculates and analyzes the current model's statistical indicators based on the manual review results and model classification results, including accuracy, number of images in each category, precision and recall for each category, and confusion matrix. These statistical results can be viewed on the monitoring service page. The online image library allows users to modify labels by selecting an image and using a shortcut key. The online image library supports adding data to the training dataset for retraining. After labeling the newly added data and retraining, users can directly edit or replace the old model on the service or model deployment page. The service supports changing models under different conditions without needing to specifically pause the service to change the online model, and also supports one-click re-deployment of historical models.

[0163] The monitoring service monitors the service's operational status in real time. After the service starts, online data is matched to the service according to rules, and the model within the service is used for inference to obtain classification results. The monitoring and detection results of this service can be filtered by data and time dimensions. Users can view the model's accuracy, false negative rate, false positive rate, and confusion matrix for each category. They can also directly view the classification results of this batch of data from the online gallery page. The service can monitor statuses such as detection volume, detection success rate, and average detection time, as well as data such as accuracy information. Users can use data monitoring to understand model performance and identify types with a high number of defects.

[0164] Step S318: Data is fed back and the model is optimized.

[0165] In this step, after the model goes live, it continuously infers data from online data. The results are stored in the database, and the inference results can be displayed on the online image library page. The model's inference results can be manually reviewed; if the model misclassifies an image, the corresponding label can be modified. After review, the current model's statistical metrics are obtained, including accuracy, the number of images in each category, precision and recall for each category, and the confusion matrix. The online image library can add misclassified images to the training dataset with one click, and it can also add images that the model is unsure about with one click. Alternatively, any desired image can be added to the training dataset from the online image library. Returning to step S302 (data import), the newly added data is imported, and data annotation is performed. After annotation, the new model replaces the old model in the service, optimizing the model. Data in the dataset can be trained separately and then merged for inference.

[0166] Step S320: Statistical analysis of model performance.

[0167] In this step, statistical indicators from the online model are analyzed. Online data is processed by the model to obtain automatic defect classification results, which are then statistically analyzed. Simultaneously, users can manually review the automatic defect classification results to obtain the true labels for the images. Based on the true labels and the model's classification results, statistical indicators such as accuracy are calculated. These indicators include the number of defects, defect accuracy, and defect percentage.

[0168] Step S322, abnormal warning.

[0169] In this step, anomaly alerts include defect alerts and model update alerts. When an alert is triggered, the anomaly alert module sends an alert message to the user. Defect alerts include alerts for excessive or fatal defects, requiring user attention. For example, an alert is issued when the number of a certain defect exceeds a threshold over a period of time, or as soon as a certain defect appears. An alert is also issued when the number of uncertain defects predicted by the model exceeds a threshold over a period of time. The model update alert mechanism includes alerts indicating that the online data distribution may not match the model training data, requiring an update of the training set and retraining of the model. Alerts are issued when the model predicts too many uncertain defects, low accuracy, high false negative rate, or large shifts in image feature distribution. This involves statistically analyzing the feature distribution of images over a period of time, identifying significant shifts compared to the feature distribution of images in the training set. These shifts include: changes in image size (e.g., many images that were originally 600*600 suddenly become 200*200); changes in detection boxes (significant changes in the size and position of detection boxes on the image); and changes in image features (e.g., changes in the histogram distribution of color and brightness).

[0170] It should be noted that the models, first target models, second target models, third target models, and fourth target models in the embodiments of this application can be machine learning models, artificial intelligence models, such as neural network models, decision tree models, support vector machine models, random forest models, Bayesian network models, linear regression models, logistic regression models, etc., and are not specifically limited here.

[0171] The wafer defect detection optimization method provided in this embodiment covers the entire process of machine learning model generation and tuning. It enables developers to efficiently generate high-precision models for specific tasks, easily obtain challenging example data after the model is deployed online, add it to the original training dataset, tune the model, and deploy it again. The model can be reused; models in the model repository can be used for intelligent annotation or as the base model for the next training iteration, improving training speed. It offers rich optimization strategies, and allows real-time, visual observation of the effects of modified optimization strategies using a batch of online data, making it easier to obtain optimal parameters. Data feedback allows adding erroneous and uncertain data from the online dataset to the training dataset for model optimization. Data supports intelligent deduplication and intelligent annotation. A visual and operable confusion matrix facilitates adjustments or updates to data and models. An early warning mechanism automatically notifies users when the model is no longer suitable for the current data and needs updating, improving model optimization efficiency.

[0172] In some embodiments, version control is implemented for both data and models. Version control includes data versions and model versions. For data versions, a new data version is created for new data. If data annotations need to be modified, a version can be copied, and then the annotations adjusted or updated. If data needs to be added, a version can be copied, and new data can be added. If data cleaning is required, a version can be copied, and data can be deleted or labels modified. For model versions, each training session generates a model, which can be added to a model repository, thus enabling model version management. A model can be added to the model repository repeatedly, forming different versions. Different versions can have different optimization strategy configurations. For example, product A might want a lower false negative rate, while product B might want a higher accuracy rate for defect x. Since their model categories are the same, they can share different versions of the same model while configuring different optimization strategies. Different versions of the model can be deployed to the same service in a replacement manner. The service records historical model information, allowing for quick selection of a model from the historical records to replace the current model. Version control of data and models allows different versions to train different models. Modifications to the data (data volume, data categories, data proportions, data labeling methods, etc.) can improve model performance. If an initial dataset A is labeled multiple times, generating different versions of the training dataset such as training dataset B, training dataset C, and training dataset D, and after model training and optimization, training dataset D performs better, then subsequent versions of the training dataset can be generated by further labeling training dataset D, such as training dataset E, training dataset F, training dataset G, and so on.

[0173] The optimized wafer defect detection method in this application supports a map group mode. Map groups are used because, in the context of semiconductor ADC (Automatic Defect Classification) systems, images generated by manual review machines are typically taken at the same physical coordinates (e.g., the same defect ID). Separate training and merging inference of these images ensure improved model classification accuracy. Separate training: In the dataset or training dataset, images in a map group may have different labels, which can be separately labeled. Some images may be blurry or unimportant; not every image reflects defect features. Images that do not reflect defect features are not used as training samples and can be deleted. When creating the training set, only the current image is considered, ignoring information from other images in the map group. Merging inference: Different images at the same coordinate represent the same type of defect. These images can be grouped together. During inference, the results of several images are considered holistically, and a unique category is assigned. In the online service, once the model is deployed, images are packaged into map groups for model inference. Although a map group contains multiple images, only one classification result is obtained. The specific classification result is determined jointly by the model and the optimization strategy.

[0174] This embodiment also provides an optimized system for wafer defect detection. Figure 5 This is a schematic diagram of the structure of an optimized wafer defect detection system according to an embodiment of this application, as shown below. Figure 5 As shown, the system includes:

[0175] The model training module 610 is used to train the first target model based on the training dataset to obtain multiple second target models. The model training module 610 presets training parameters and monitors the model training process in real time.

[0176] The evaluation and testing module 620 is used to evaluate and test multiple second-target models to obtain multiple third-target models. The evaluation and testing module 620 supports rich performance metrics, detailed error analysis, and data annotation and correction. The evaluation and testing module 620 optimizes the model through annotation optimization and model training hyperparameter optimization. Annotation optimization (using the confusion matrix to identify and adjust manually mislabeled parts of the model, or adjusting the size and position of the detection boxes to better fit the target) and model training hyperparameter optimization (by observing the evaluation results, trying various hyperparameters, and selecting the best one) are then performed. The evaluation and testing module 620 then places the evaluated models into the model repository.

[0177] The model deployment module 630 is used to add multiple third-target models to the model repository; select a fourth-target model from the model repository and obtain the corresponding optimization strategy for the fourth-target model; and deploy the fourth-target model to the service. The model deployment module 630 publishes the model with the configured optimization strategy to the service, supporting publication to a new service or an existing service. After selecting a service, users enter the service editing page of the model deployment module 630, complete the relevant configurations for the model and product, and then perform pre-release testing. After the test is completed, clicking "Publish" completes the model deployment and launch. The model deployment module 630 can seamlessly integrate with business processes, perform pre-testing of model performance, and implement personalized optimization strategies.

[0178] The monitoring service module 640 is used to monitor the service's operational results and obtain the first classification result of the test data after classification by the fourth target model. The monitoring service module 640 monitors the service's operational status in real time and performs statistical manual review. It allows filtering of the service's operational monitoring and detection results by data and time dimensions, and viewing the model's accuracy, false negative rate, false positive rate, and confusion matrix for each category. It also supports direct access from the monitoring service module 640 to the online image library module 650 to view the classification results of the batch of data.

[0179] The online image library module 650 is used to update the training dataset based on the first classification result, thereby optimizing and updating the fourth-objective model. The online image library module 650 is used for data feedback, online data viewing / copying, and continuous learning, further optimizing and updating the fourth-objective model. The online image library module 650 supports filtering by time and data dimensions to view the results of different business data from different service inferences. The online image library module 650 supports manual review of the model inference results. Users can jump directly to the online image library module 650 from the monitoring service module 640 to view the corresponding data results. If the model inference result is correct, the corresponding image can be selected and the label in the right-hand tab bar can be clicked for confirmation; if the model misclassifies, the label can be manually modified. Modifying labels in the online image library module 650 supports selecting images and using keyboard shortcuts.

[0180] The wafer defect detection optimization system provided in this embodiment trains a first target model based on a training dataset to obtain multiple second target models; evaluates and tests these second target models to obtain multiple third target models; adds these third target models to a model repository; selects a fourth target model from the model repository and configures the corresponding optimization strategy for the fourth target model; deploys the fourth target model to a service; monitors the service's running results and obtains the first classification result of the test data after detection by the fourth target model; updates the training dataset based on the first classification result, thereby optimizing and updating the fourth target model. This covers the entire process of model generation and optimization, enabling developers to efficiently generate high-precision models for specific tasks. After deploying and using the model online, they can acquire difficult example data in real time, add it to the original training dataset, fine-tune the model, and then deploy it again. In other words, real-time data from the online environment can be added to the training dataset at any time for model training and fine-tuning. The online environment and the training environment are not isolated, allowing for the real-time collection of useful online data to expand the model training set and optimize the model, thereby improving the optimization efficiency of the model.

[0181] This embodiment also provides a model optimization system. Figure 6 This is a schematic diagram of the structure of another optimized wafer defect detection system according to an embodiment of this application, as shown below. Figure 6 As shown, the system includes:

[0182] The dataset module 710 is used to annotate initial data and generate a training dataset. The dataset module 710 supports data import from multiple channels, flexible switching between classification / detection tasks or modes, and AI-assisted annotation. Data can be uploaded locally or imported from online databases. The dataset module 710 can perform two types of annotation on the initial data: image classification and object detection. For image data annotation, the dataset module 710 can perform manual or intelligent annotation based on the user's selection.

[0183] The model training module 610 is used to train the first target model based on the training dataset to obtain multiple second target models. The model training module 610 presets training parameters and monitors the model training process in real time.

[0184] The evaluation and testing module 620 is used to evaluate and test multiple second-objective models to obtain multiple third-objective models. The evaluation and testing module 620 supports rich performance metrics, detailed error analysis, and data annotation and correction.

[0185] The model deployment module 630 is used to add multiple third-target models to the model repository; select a fourth-target model from the model repository and obtain the corresponding optimization strategy for the fourth-target model; and deploy the fourth-target model to the service. The model deployment module 630 can seamlessly connect with business processes, perform pre-testing of online model performance, and implement personalized optimization strategies.

[0186] The monitoring service module 640 is used to monitor the service's operational results and obtain the first classification result of the data under test after being classified by the fourth objective model. The monitoring service module 640 monitors the service's operational status in real time and performs statistical analysis of manual reviews.

[0187] The online image library module 650 is used to optimize and update the fourth objective model based on the first classification result. The online image library module 650 is used for data feedback, online data viewing / copying, and continuous learning, thereby optimizing and updating the fourth objective model.

[0188] The wafer defect detection optimization system provided in this embodiment trains a first target model based on a training dataset to obtain multiple second target models; evaluates and tests these second target models to obtain multiple third target models; adds these third target models to a model repository; selects a fourth target model from the model repository and obtains the corresponding optimization strategy for the fourth target model; deploys the fourth target model to a service; monitors the service's operation results and obtains the first classification result of the test data after detection by the fourth target model; updates the training dataset based on the first classification result, thereby optimizing and updating the fourth target model. This covers the entire process of model generation and optimization, enabling developers to efficiently generate high-precision models for specific tasks. After deploying and using the model online, they can acquire difficult example data in real time, add it to the original training dataset, fine-tune the model, and then deploy it again. In other words, real-time data from the online environment can be added to the training dataset at any time for model training and fine-tuning. The online environment and the training environment are not isolated, allowing for the real-time collection of useful online data to expand the model training set and optimize the model, thereby improving the optimization efficiency of the model.

[0189] It should be noted that the steps shown in the above flowchart or the flowchart in the accompanying figures can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here. The modules described above can be functional modules or program modules, and can be implemented in software or hardware. For modules implemented in hardware, the modules can reside in the same processor; or the modules can be located in different processors in any combination.

[0190] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0191] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0192] Optionally, in this embodiment of the application, the processor described above can be configured to perform the following steps via a computer program:

[0193] S1, Obtain the detection model for the required wafer inspection dimension, evaluate and test the detection model to generate the target model;

[0194] S2, bind the target model with the target data source to form a monitoring service;

[0195] S3, the monitoring service obtains statistical data of the prediction results of the wafer image to be tested from the target data source in real time, and obtains the detection status of the target model;

[0196] S4. Obtain the required adjusted prediction results based on the statistical data, and update the original dataset with the adjusted prediction results, thereby retraining and updating the target model.

[0197] It should be noted that the specific examples in the embodiments of this application can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in the embodiments of this application.

[0198] Furthermore, in conjunction with the optimized wafer defect detection method provided in the above embodiments, this application embodiment can also provide a storage medium for implementation. The storage medium stores a computer program; when executed by a processor, the computer program implements any of the optimized wafer defect detection methods described in the above embodiments.

[0199] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0200] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0201] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0202] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. An optimized method for wafer defect detection, characterized in that, The method includes: Obtain the detection model for the required wafer inspection dimension, evaluate and test the detection model to generate the target model; Bind the target model to the target data source to form a monitoring service; The monitoring service acquires statistical data on the prediction results of the wafer images to be tested from the target data source in real time, and obtains the detection status of the target model. The required adjusted prediction results are obtained based on the statistical data, and the adjusted prediction results are updated to the original dataset, thereby retraining and updating the target model. The step of binding the target model with the target data source to form a monitoring service includes: Select the target data source and the target model to create a monitoring service; The pre-release page is triggered to evaluate the model's online deployment, compare and display the prediction results of different optimization strategies, determine the optimization strategy that meets the expectations, and update the configured optimization strategy; wherein, the target model outputs prediction results based on the optimization strategy.

2. The optimized method for wafer defect detection according to claim 1, characterized in that, The detection model for obtaining the required wafer inspection dimensions also includes: Generate the original dataset for the required wafer inspection dimensions; A detection model is generated by selecting a model based on the generated original dataset and training it.

3. The optimized method for wafer defect detection according to claim 2, characterized in that, The original dataset for generating the required wafer inspection dimensions includes: Import the image data of the wafer under test and determine whether there is any unlabeled data; If present, select either the general model or the target model to intelligently label the unlabeled data; The labeled data is verified to form the original dataset.

4. The optimized method for wafer defect detection according to claim 1, characterized in that, The evaluation test includes training evaluation and training testing. The step of evaluating the detection model to generate the target model includes: Based on the validation dataset, obtain model evaluation data of the detection model under different model hyperparameters; Based on the model evaluation data, the optimization terms of the detection model are determined and updated; Based on the test dataset or the original dataset, obtain the model test data of the detection model to determine whether to generate the target model.

5. The optimized method for wafer defect detection according to claim 4, characterized in that, The model evaluation data and / or model test data include a confusion matrix, which includes elements representing the number of predicted defects and standard defects, and the elements contain image indexes. Based on the confusion matrix, the initially trained model is optimized.

6. The optimized method for wafer defect detection according to claim 5, characterized in that, The optimization of the initial trained model based on the confusion matrix includes: Select the target element in the confusion matrix and obtain the image index of the target element; Based on the image index, the prediction results and label results of each wafer image to be tested corresponding to the target element are compared and displayed; The defect category to be optimized is obtained from the prediction results and label results of each wafer image to be tested corresponding to the target element, and the preliminary training model is optimized.

7. The optimized method for wafer defect detection according to claim 1, characterized in that, Before binding the target model to the target data source to form a monitoring service, the process also includes: Add the target model to the model repository and configure the optimization strategy; Based on the analysis requirements of the target data source, the required target model is selected from the model repository.

8. The optimized method for wafer defect detection according to claim 7, characterized in that, The wafer inspection dimension includes image classification and target detection for wafer defect detection; When selecting a target model for image classification, the optimization strategy includes determining the target defect category corresponding to each wafer image under test based on the confidence value / position / size of the defect detection box.

9. The optimized method for wafer defect detection according to claim 8, characterized in that, The optimization strategy consists of at least one of the following: confidence threshold setting for defect category selection, defect category priority, correlation between different defect categories, and defect size.

10. The optimized method for wafer defect detection according to claim 8, characterized in that, The optimization strategy includes: The target defect category of the wafer image under test can be determined by selecting at least one of the following methods: maximum confidence, closest to the center point, and largest detection box.

11. The optimized method for wafer defect detection according to claim 1, characterized in that, The monitoring service acquires statistical data on the prediction results of the wafer images from the target data source in real time, and obtains the detection status of the target model, and also includes: A visualization analysis page for generating the statistical data is provided. In response to a user's filtering operation on at least one data dimension in the visualization analysis page, the data range of the filtered at least one data dimension is obtained, the statistical data of the prediction result is determined, and the statistical data is displayed on the visualization analysis page.

12. The optimized method for wafer defect detection according to claim 11, characterized in that, The step of obtaining the required adjusted prediction results based on the statistical data includes: The visualization analysis page is linked to the target data source to display the prediction results for the current data range.

13. The optimized method for wafer defect detection according to claim 1, characterized in that, The method further includes: Determine whether to trigger an alert based on the statistical data; When an alert is triggered, an alert message is generated and sent to the user's device.

14. The optimized method for wafer defect detection according to claim 7, characterized in that, The step of adding the target model to the model repository and configuring the optimization strategy includes: Generate the corresponding version information of the target model; The target model and its corresponding version information are stored in the model repository; Based on the version information of the target model, an optimization strategy is configured according to the requirements for the prediction results.

15. An optimized system for wafer defect detection, characterized in that, The system includes: The target model generation module is used to obtain the detection model for the required wafer inspection dimension, evaluate and test the detection model to generate the target model; The service generation module is used to bind the target model and the target data source to form a monitoring service. Specifically, it includes: selecting the target data source and the target model to create a monitoring service; triggering the pre-release page to evaluate the model's online deployment, comparing and displaying the prediction results of different optimization strategies, determining the optimization strategy that meets the expectations, and updating the configured optimization strategy; wherein, the target model outputs prediction results based on the optimization strategy. The prediction module is used by the monitoring service to obtain statistical data of the prediction results from the image of the wafer to be tested from the target data source in real time, and to obtain the detection status of the target model. The update module is used to obtain the required adjusted prediction results based on the statistical data, and update the original dataset with the adjusted prediction results, thereby retraining and updating the target model.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the optimized method for wafer defect detection as described in any one of claims 1 to 14.

Citation Information

Patent Citations

  • Wafer surface defect detection method and detection model

    CN116051498A

  • Wafer defect unknown category detection and classification method and system

    CN116188877A

  • Vehicle target detection data management method and system and electronic equipment

    CN116204670A