Method and system for defect inspection and re-inspection

Through the charged particle beam system and image processing technology, defect detection and re-inspection are optimized based on pattern data, which solves the problem of defect detection accuracy and efficiency after IC components are shrunk, achieving more efficient real defect identification and reducing false alarms.

CN111542855BActive Publication Date: 2024-10-15ASML NETHERLANDS BV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880084763.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-12-31
Filing Date
2018-12-19
Publication Date
2024-10-15
Estimated Expiration
2038-12-19

AI Technical Summary

Technical Problem

In the integrated circuit manufacturing process, as the physical size of IC components shrinks, the accuracy and yield of defect detection become increasingly important, but the imaging resolution and throughput of existing tools cannot keep up, resulting in a large number of noisy False alarms of defects and slow re-inspection of real defects affect the accuracy and efficiency of inspection information.

Method used

A charged particle beam system is used to perform image analysis on samples through image processing methods, identify and group possible defects, determine defect probabilities based on pattern data, and optimize the defect re-inspection process to improve the detection speed and information accuracy of real defects.

Benefits of technology

It improves the accuracy and efficiency of defect detection, reduces false alarms of noisy defects, increases the speed of re-inspection of real defects, and provides more informative detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111542855B_ABST
    Figure CN111542855B_ABST
Patent Text Reader

Abstract

Systems and methods for detecting defects are disclosed. According to certain embodiments, a method of performing image processing includes: acquiring one or more images of a sample; performing a first image analysis on the one or more images; identifying a plurality of first features in the one or more images; determining pattern data corresponding to the plurality of first features; based on the pattern data, selecting at least one first feature of the plurality of first features; and performing a second image analysis on at least one first feature of the plurality of first features. The method may also include determining a defect probability for the plurality of first features based on the pattern data. Selecting at least one first feature of the plurality of first features may be based on the defect probability.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. Application No. 62 / 612,599, filed December 31, 2017, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The description herein relates to the field of defect detection, and more particularly to inspection and review of defects on a sample. Background Art

[0004] During the manufacturing process of integrated circuits (ICs), unfinished or completed circuit components are inspected to ensure that they are manufactured according to the design and are free of defects. Inspection systems that utilize optical microscopes or charged particle (e.g., electron) beam microscopes, such as scanning electron microscopes (SEMs), may be employed. As the physical size of IC components continues to shrink, the accuracy and yield of defect detection become increasingly important. However, the imaging resolution and throughput of inspection tools have difficulty keeping up with the ever-decreasing feature sizes of IC components.

[0005] When technology nodes are reduced to, for example, 10nm, some inspection tools may generate a large number of nuisance defects (i.e., false positives). For example, in some inspection systems, 90% of the defects identified may be nuisance defects. Therefore, defect re-inspection becomes increasingly important. Defect re-inspection involving re-confirmation of previously identified defects or suspicious locations on the wafer may be employed.

[0006] In some inspection systems, such as in a wafer fab, defects may be re-inspected using an SEM re-inspection tool. The tool may select a predetermined number of defects for re-inspection based on a sample selection rule. The sample selection rule may be a random sampling of all defects found on the wafer. However, only a small fraction of the identified defects are actually real defects. Therefore, the speed of real defect re-inspection is slowed down and may result in misleading information being provided due to the re-inspection. In addition, new potential defects may need to be re-selected for re-inspection to ensure an appropriate number of real defect re-inspection coverage. However, performing repeated defect re-inspections is very time-consuming.

[0007] Therefore, related art systems face limitations in terms of, for example, accuracy and throughput in providing useful information about detected defects.Further improvements in the art are needed. Summary of the invention

[0008] Embodiments of the present disclosure provide systems and methods for defect detection. In some embodiments, a charged particle beam system is provided. The charged particle beam system may include a charged particle beam device configured to generate a charged particle beam.

[0009] In some embodiments, a controller of a charged particle beam system is configured to implement a method of performing image processing, a method of inspecting a sample, or other method. A method of performing image processing may include: acquiring one or more images of a sample; performing a first image analysis on the one or more images; identifying a plurality of first features in the one or more images; determining pattern data corresponding to the plurality of first features; based on the pattern data, selecting at least one first feature of the plurality of first features; and performing a second image analysis on at least one first feature of the plurality of first features. The method may also include determining a defect probability of the plurality of first features based on the pattern data. Selecting at least one first feature of the plurality of first features may be based on the defect probability.

[0010] According to some embodiments, an apparatus may be implemented that may enhance defect detection in a charged particle beam system.

[0011] Other objects and advantages of the disclosed embodiments will be set forth in part in the description that follows, and in part will become apparent from the description, or may be learned through the practice of the embodiments. The objects and advantages of the disclosed embodiments may be achieved and obtained through the elements and combinations set forth in the claims. However, achieving such exemplary objects and advantages does not necessarily require the exemplary embodiments of the present disclosure, and some embodiments may not achieve any stated objects and advantages.

[0012] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosed embodiments, as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a schematic diagram illustrating an exemplary electron beam inspection (EBI) system consistent with embodiments of the present disclosure.

[0014] Figure 2 It is to show that the embodiment consistent with the present disclosure can be used as Figure 1 A schematic diagram of an exemplary electron beam tool that is a portion of an exemplary electron beam inspection system.

[0015] Figure 3 is a block diagram of an exemplary defect review system consistent with embodiments of the present disclosure.

[0016] Figure 4 is a flow chart illustrating an exemplary image processing method consistent with an embodiment of the present disclosure.

[0017] Figure 5 is a flow chart illustrating an exemplary defect detection method consistent with embodiments of the present disclosure.

[0018] Figure 6 is a graph showing determined defect counts for a wafer consistent with an embodiment of the present disclosure.

[0019] Figure 7 is a table showing exemplary entries in a pattern library consistent with embodiments of the present disclosure.

[0020] Figure 8 is a block diagram of an exemplary computer system upon which embodiments described herein may be implemented. DETAILED DESCRIPTION

[0021] Reference will now be made in detail to exemplary embodiments, examples of which are shown in the accompanying drawings. The following description refers to the accompanying drawings, and unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations set forth in the following description of exemplary embodiments do not represent all implementations consistent with the present invention. On the contrary, they are merely examples of devices, systems and methods consistent with various aspects related to the subject matter as described in the appended claims. For example, although some embodiments are described in the context of utilizing electron beams, the present disclosure is not limited thereto. Other types of charged particle beams may be similarly applied. In addition, other imaging systems such as optical imaging, light detection, x-ray detection, etc. may be used.

[0022] Embodiments of the present disclosure may provide a charged particle system that may be used for charged particle imaging. The charged particle system may be used as a scanning electron microscope (SEM) tool for imaging and inspecting samples. The charged particle system may be used for defect detection.

[0023] A defect may be an anomaly at a component on a sample that may lead to failure.

[0024] In some exemplary embodiments, a sampling method is provided to increase the chance of true defect selection based on pattern grouping and pattern defect probability.

[0025] In an exemplary method, a first defect search may be performed. The first defect search may be an inspection step in which an imaging tool inspects the wafer for defects and determines corresponding locations of the defects. The first defect search may include searching for possible defects and storing a list of possible defect locations. Wafer pattern data may then be extracted from the design plan based on the possible defect locations. Next, pattern grouping may be performed to group patterns with similar structures together. Grouping may be performed by clustering. A pattern library may be constructed based on the grouped patterns and their analyzed defect rates.

[0026] In particular, the first defect search may include performing image analysis on a captured image of the wafer surface using a first set of parameters and / or a first image processing algorithm. The image analysis may identify possible defects through the output of a defect scanning process (e.g., a Kraft file or other file that can record defect coordinates). Then, pattern data may be extracted from the wafer design using the location data of the identified possible defects. For example, the wafer design plan may be stored in a database. The wafer design plan may be based on a GDS (Graphic Data System) or OASIS (Open artwork system interchangestandard) design, etc. Pattern data (such as shape, size, geometry, etc.) of features in the wafer design may be extracted based on the possible defect location data. Based on the pattern data, the possible defects identified in the first defect search may be classified into groups. For example, features with similar shape data may be grouped together based on their correspondence to each other or to a standard pattern.

[0027] After the first defect search, a defect review may be performed on the identified possible defects. Defect review may include analyzing and classifying defects found in previous inspections. A predetermined number of possible defects may be selected for review based on a sample selection rule. The sample selection rule may be a random sampling of all possible defects found on the wafer, or some other rule. For example, 200 defects may be randomly selected for review. The predetermined number may be based on available machine time. The sample selection rule may also be based on user input, such as user selection of a particular region of interest.

[0028] In defect re-inspection, possible defects may be analyzed in more detail than in the first defect search. For example, the location of the selected possible defect may be imaged again at a higher resolution. Defect re-inspection may include performing image analysis on a captured image of the wafer surface using a second set of parameters and / or a second image processing algorithm. Defects may be confirmed and classified accordingly. Image analysis may reveal whether a possible defect is a real defect.

[0029] The defect probability may be determined based on the results of the defect re-inspection. For example, possible defects grouped into the same group in the pattern grouping step may be associated with each other. The defect probability of the group may be calculated based on a defect rate, which is determined based on all possible defects in the group. The defect probability may be determined for each group.

[0030] The determined defect probabilities can be fed back into the pattern library. For example, entries associated with a particular group and its defect probability can be stored in the pattern library. The pattern library can be continuously updated with new entries including newly discovered types of defects. When a possible defect with a pattern that is not present in the pattern library is identified, the pattern can be added with an initialized defect probability.

[0031] Similar to the first defect search, the second defect search may include performing image analysis on a captured image of the wafer surface. For example, the second defect search may use a second set of parameters and / or a second image processing algorithm. After the possible defects are identified, pattern data may be extracted and pattern grouping may be performed. Next, defect re-inspection may be performed on the identified possible defects.

[0032] Possible defects can be selected for re-inspection based on information from the pattern library. For example, pattern data corresponding to the identified possible defects can be searched in the pattern library. If an entry for the identified possible defect is found, the possible defect can be assigned to the corresponding group, and the defect probability can be loaded. If there is no entry for the identified possible defect, the possible defect can be marked as a new defect type. For new defect types, for example, defect probabilities can be assigned based on default values. In addition, the defect probability can be determined based on the extracted pattern data (such as the complexity of the geometric shape of the pattern and other factors). Therefore, even for identified possible defects without pre-existing defect rate data, high-risk patterns can be assigned defect probabilities that reflect the possibility of defects.

[0033] Likewise, low risk patterns may be identified.

[0034] The possible defects selected for re-verification can be based on defect probability. For example, among all defects identified in the defect search, defects with the highest defect probability can be prioritized, so only defects with the highest defect probability can be selected for re-confirmation and re-verification. Therefore, defects identified in the defect search that have a low probability of being real defects can be filtered out based on their pattern data. Therefore, nuisance defects can be omitted from defect re-verification, allowing for increased defect re-verification speed and providing defect detection information that is more informative to the user.

[0035] Reference now Figure 1 , Figure 1 An exemplary electron beam inspection (EBI) system 100 consistent with embodiments of the present disclosure is shown. The EBI system 100 can be used for imaging. Figure 1As shown, the EBI system 100 includes a main chamber 101, a load / lock chamber 102, an electron beam tool 104, and an equipment front end module (EFEM) 106. The electron beam tool 104 is located in the main chamber 101. The EFEM 106 includes a first load port 106a and a second load port 106b. The EFEM 106 may include additional load ports. The first load port 106a and the second load port 106b accommodate a wafer front opening transport box (FOUP), which accommodates wafers (e.g., semiconductor wafers or wafers made of other materials) or samples to be inspected (wafers and samples may be collectively referred to as "wafers" in this article). A batch of wafers containing multiple wafers can be loaded for batch processing.

[0036] One or more robotic arms (not shown) in the EFEM 106 can transport the wafer to the load / lock chamber 102. The load / lock chamber 102 is connected to a load / lock vacuum pump system (not shown) that removes gas molecules in the load / lock chamber 102 to reach a first pressure lower than atmospheric pressure. After reaching the first pressure, one or more robotic arms (not shown) can transport the wafer from the load / lock chamber 102 to the main chamber 101. The main chamber 101 is connected to a main chamber vacuum pump system (not shown) that removes gas molecules in the main chamber 101 to reach a second pressure lower than the first pressure. After reaching the second pressure, the wafer is inspected by the electron beam tool 104. The electron beam tool 104 can be a single beam system or a multi-beam system. The controller 109 is electrically connected to the electron beam tool 104. The controller 109 can be a computer configured to perform various controls of the EBI system 100. Although the controller 109 is

[0037] Figure 1 106, but it is understood that the controller 109 may be part of the structure.

[0038] Figure 2 An imaging system 200 is shown in accordance with an embodiment of the present disclosure. Figure 2 The electron beam tool 104 may be configured for use in the EBI system 100. The electron beam tool 104 may be a single beam device or a multi-beam device.

[0039] The system 200 can be used to inspect a wafer 230 on a sample stage and, as described above, includes an electron beam tool 104. The system 200 also includes an image processing system 199, which includes an image acquisition device 120, a storage device 130, and a controller 109. The image acquisition device 120 may include one or more processors. For example, the image acquisition device 120 may include a computer, a server, a mainframe, a terminal, a personal computer, any kind of mobile computing device, or the like, or a combination thereof. The image acquisition device 120 may be connected to a detector 244 of the electron beam tool 104 through a medium such as an electrical conductor, a fiber optic cable, a portable storage medium, IR, Bluetooth, the Internet, a wireless network, a wireless broadcast, or a combination thereof. The image acquisition device 120 may receive a signal from the detector 244 and may construct an image. The image acquisition device 120 may thus acquire an image of the wafer 230. The image acquisition device 120 may also perform various post-processing functions, such as generating a contour, superimposing an indicator on the acquired image, and the like. The image acquisition device 120 may be configured to perform brightness and contrast adjustments, etc., on the acquired image. The storage device 130 may be a storage medium such as a hard disk, a random access memory (RAM), other types of computer readable memory, etc. The storage device 130 may be coupled to the image acquirer 120 and may be used to save the scanned raw image data as raw images and post-processed images. The image acquirer 120 and the storage device 130 may be connected to the controller 109. In some embodiments, the image acquirer 120, the storage device 130, and the controller 109 may be integrated together as a control unit.

[0040] In some embodiments, the image acquirer 120 may acquire one or more images of the sample based on the imaging signal received from the detector 244. The imaging signal may correspond to a scanning operation for performing charged particle imaging. The acquired image may be a single image including a plurality of imaging regions. The single image may be stored in the storage device 130. The single image may be an original image that may be divided into a plurality of sections. Each section may include an imaging region containing a feature of the wafer 230.

[0041] In some embodiments, a computer system may be provided that can identify defects on a wafer image and classify the defects into multiple categories based on defect type. For example, once a wafer image is acquired, it may be transmitted to a computer system for processing. Figure 3 is a schematic diagram of a defect review system 300 consistent with an embodiment of the present disclosure.

[0042] refer to Figure 3The defect review system 300 may include a wafer inspection system 310, an automatic defect classification (ADC) server 320, and a knowledge recommendation server 330 electrically coupled to the ADC server 320. The wafer inspection system 310 may be related to Figure 1 It is understood that the ADC server 320 and the knowledge recommendation server 330 can be part of the EBI system 100 and / or remote from the EBI system 100.

[0043] Wafer inspection system 310 may be any inspection system capable of generating an inspection image of a wafer. For example, the wafer may be, for example, a semiconductor wafer substrate, or a semiconductor wafer substrate having one or more epitaxial layers and / or process films. Wafer inspection system 310 may be any currently available or under development wafer inspection system. Embodiments of the present disclosure are not limited to a particular type of wafer inspection system 310, as long as such a system can generate a wafer image with a resolution high enough to observe key features on the wafer (e.g., less than 20 nm).

[0044] The ADC server 320 may include a communication interface 322 electrically coupled to the wafer inspection system 310 to receive a wafer image. The ADC server 320 may also include a processor 324 configured to analyze the wafer image and detect and classify wafer defects appearing on the wafer image by using a defect knowledge file. The defect knowledge file may be manually provided to the ADC server 320 by an operator. Alternatively, according to some embodiments of the present disclosure, the defect knowledge file may be automatically provided to the ADC server 320 by the knowledge recommendation server 330.

[0045] For example, the knowledge recommendation server 330 may be electrically coupled to the ADC server 320. The knowledge recommendation server 330 may include a processor 332 and a storage device 334. The processor 332 may be configured to construct a plurality of defect knowledge files and store the plurality of defect knowledge files in the storage device 334. The plurality of defect knowledge files may contain information related to various types of defects generated at various stages of the wafer manufacturing process. The various stages of the wafer manufacturing process may include, but are not limited to, a photolithography process, an etching process, a chemical mechanical polishing (CMP) process, and an interconnect formation process.

[0046] The processor 332 may be configured to construct a plurality of defect knowledge files based on the plurality of defect patch images. The plurality of defect patch images may be generated by, for example, Figure 2 The defect patch image may be generated by a wafer inspection tool such as the electron beam tool 104 shown. The defect patch image may be a small image (eg, 34×34 pixels) of a portion of the wafer containing the defect. The defect patch image may be centered on the defect and may include neighboring pixels of the defect.

[0047] The processor 332 may be trained via a machine learning process to construct a knowledge file related to a specific defect type based on a plurality of defect patch images of the specific defect type. For example, the processor 332 may be trained to construct a knowledge file related to a dotted line defect generated in an interconnect formation process based on a plurality of defect patch images of a dotted line defect.

[0048] The processor 332 may also be configured to, in response to a request for knowledge recommendation from the ADC server 320 , search for a knowledge file that matches the wafer image included in the received request, and provide the knowledge file to the ADC server 320 .

[0049] The storage device 334 may store an ADC data center containing a plurality of defect knowledge files related to various types of defects generated at various stages of the wafer manufacturing process. The plurality of defect knowledge files in the ADC data center may be constructed by the processor 332 of the knowledge recommendation server 330. Alternatively, a portion of the defect knowledge files in the storage device 334 may be preset by a user or an external computer system and may be preloaded into the storage device 334.

[0050] The defect knowledge file may include general information about a single type of defect. The general information may include patch images and feature parameters to be used to later classify the single type of defect (e.g., size, edge roughness, depth, height, etc.). Alternatively, according to some embodiments of the present disclosure, the defect knowledge file may include general information about multiple types of defects present in the same processing layer of the wafer. The single processing layer may be, for example, a substrate layer, an epitaxial layer, a thin film layer, a photoresist layer, an oxide layer, a metal interconnect layer, etc.

[0051] Figure 4 is a flow chart showing an exemplary image processing method consistent with an embodiment of the present disclosure. The image processing method can be performed by one or more processors that can be coupled to a charged particle beam device. For example, the controller 109 may include one or more processors and may be programmed to implement the image processing method. The controller 109 may generate various control signals for controlling the operation of the charged particle beam device. The controller 109 may receive data from the charged particle beam device and process the data. In some embodiments, the image processing method may be performed by the processor 324 or the processor 332 of the defect re-inspection system 300.

[0052] In step S101, a charged particle beam device may be controlled to image a wafer. Imaging may include scanning a wafer to image at least a portion of the wafer. In step S110, one or more scanned raw images of an imaging region may be acquired. One or more scanned raw images may include the entire surface of the wafer. Image acquisition in step S110 may include receiving a signal from a detector of a charged particle beam device or loading an image from a storage device. In step S120, one or more features on the wafer are identified. One or more features may include possible defects. Step S120 may include wafer mapping. Identification of possible defects may be performed by performing a defect search. For example, the defect search of step S120 may include performing image analysis on an acquired image of a wafer surface using a first set of parameters and / or using a first image processing algorithm. Identification of possible defects may include determining a position, a set of positions, or a range of positions in an xy coordinate on the wafer surface. The position information may be stored in a wafer map database. The storage device 130 may include a wafer map database.

[0053] In step S130, pattern data corresponding to the identified possible defects can be determined. Pattern data can be extracted from a wafer design plan based on the position information collected in step S120. The wafer design plan can be pre-registered. For example, the wafer design plan can be a graphical representation of features on the surface of the wafer. The wafer design plan can be based on a pattern layout for designing a wafer. The wafer design plan can correspond to a mask for manufacturing a wafer. The wafer design plan can be stored in a wafer design database. The storage device 130 may include a wafer design database. Based on the information data from step S120, individual features corresponding to the identified possible defects can be extracted. For example, based on the xy coordinates of the possible defect locations identified in step S120, pattern data including geometric information of the original feature design can be collected. Each identified possible defect can have a corresponding original feature design.

[0054] The pattern data may be extracted by superimposing contours on features in a graphical representation of a wafer design plan. The pattern data may also be provided in the original format of the wafer design plan. For example, pattern data that is part of a wafer design plan may be directly extracted from the graphical representation of the wafer design plan.

[0055] In the determination step S140, it is determined whether there is pattern data for the identified possible defect in the pattern library. The storage device 130 or the storage device 334 may include a pattern library. The method may search for matching patterns in the pattern library based on the degree of correspondence. For example, if the similarity between the feature design profile and another pattern in the pattern library is equal to or higher than 90%, it can be determined that the pattern matches. The patterns in the pattern library may include previously extracted patterns, standard patterns (such as patterns of standard IC features), etc.

[0056] If a matching pattern is found, the method may proceed to step S150. In step S150, a defect probability is loaded from a pattern library. The pattern library may include individual entries with pattern data, defect probabilities, pattern groups, and other information associated therewith. The defect probabilities may be based on previous calculation results, saved data, simulations, standard values ​​(such as industry standard rates for standard IC features), etc. The loaded defect probabilities may be assigned to the identified possible defects.

[0057] After step S150, the method may proceed to step S160. In step S160, the identified possible defects may be assigned to groups. The group assignment may be based on pattern data. For example, an identified possible defect having pattern data similar to other defects in the group may be added to the group. The group may have a common defect probability.

[0058] If no matching pattern is found in the determination step S140, the method may proceed to step S170. For example, if the similarity between the characteristic design profile of the identified possible defect and any other pattern in the pattern library is not equal to or not higher than 90%, it may be determined that there is no matching pattern and the identified possible defect is a new defect pattern. In some embodiments, a threshold value other than 90% may be used. In step S170, the pattern data of the identified possible defect may be added to the pattern library. In step S180, the possible defect may be marked as a new defect type. In step S190, a defect probability may be assigned to the identified possible defect. The defect probability may be determined based on, for example, an initialization value, a default value, or may be based on extracted pattern data such as the complexity of the geometry of the pattern and other factors.

[0059] For each possible defect identified in step S120, step S130 may be repeated. In some embodiments, a wafer having, for example, 200,000 or more total identified possible defects may be processed. Thus, steps S120 to S190 may be performed for each identified possible defect.

[0060] In step S195, one or more of the identified possible defects may be selected for the second image analysis. The selection may be based on a selection rule. The selection rule may be applied to determine which of the total identified possible defects will be used for the second image analysis.

[0061] The selection rule may be based on the defect probability of the identified possible defects. For example, the identified possible defects may be classified according to the defect probability, and the defects with the highest defect probability may be selected for the second image processing. The selection rule may also be based on a predetermined number. The predetermined number may be the maximum number of searchable defects. For example, the maximum number of searchable defects may be limited by available machine time, user schedule, etc. In some embodiments, the user may specify a defect review time of, for example, one hour. Thus, the maximum number of searchable defects may be set to the number of defects that can be reviewed within one hour. Therefore, for the second image processing, the selection of the identified possible defects may be the maximum number of searchable defects, including those with the highest defect probability.

[0062] In some embodiments, the selection may include any identified possible defects with a defect probability greater than a predetermined threshold. For example, if machine time is not limited and the user wishes to review identified defects that are likely to be real defects, the selection rules may be set accordingly.

[0063] Step S195 may also include selecting which of the multiple selection rules to apply. For example, if the number of possible defects identified as new defects is greater than a first threshold, it may be determined that a random sampling selection rule should be applied. The above determination may be made based on the ratio of the possible defects identified as new defects to the total number of possible defects identified. In some embodiments, it may be determined that the pattern library data is insufficient to provide a meaningful basis for the selection criteria based on the recorded defect probabilities. Alternatively, in some embodiments, previously saved defect probabilities based on actual defect re-inspections are not necessarily required, and simulated defect probabilities may be used. The simulated defect probability may be based on the complexity of the pattern data extracted for the identified possible defects. For example, the following pattern features may have a high simulated defect probability: the shape contour of the pattern feature has a large number of edges and a large number of vertices. The following pattern features may have a high simulated defect probability: the lines of the shape contour of the pattern feature are spaced less than a certain distance from each other. Various standards may be applied. In addition, the pattern may be marked as important by the user, and the corresponding defect probability may be set to be high.

[0064] Figure 5 is a flow chart illustrating an exemplary defect detection method consistent with an embodiment of the present disclosure. The defect detection method can be performed by one or more processors coupled to a charged particle beam device. For example, the controller 109 can be programmed to implement the defect detection method using the EBI system 100. The processor 324 or 332 can also be configured to implement the defect detection method.

[0065] In step S201, one or more wafers are received. For example, a batch of wafers may be received in a loading port of a charged particle beam system, wherein the batch of wafers includes several wafers in one wafer box or in more than one wafer box. In step S210, the wafers are loaded. For example, the wafers may be placed on a sample stage and prepared for imaging.

[0066] In step S220, an image of the wafer is acquired. The image may be a scanned raw image. In step S230, a first image analysis is performed. Step S230 may include: performing image analysis on the acquired image of the wafer surface using a first set of parameters and / or using a first image processing algorithm. Step S230 may also include performing image analysis such as by referring to the above Figure 4 Steps S120 to S190 are discussed to identify possible defects, etc.

[0067] In step S240, the identified possible defects are selected, which should be analyzed by the second image analysis. The selection can be performed by a selection rule. In step S250, the second image analysis is performed. The second image analysis may include: using a second set of parameters different from the first set of parameters and / or using a second image processing algorithm different from the first image processing algorithm, performing image analysis on the acquired image of the wafer surface. The second set of parameters and / or the second image processing algorithm may be more detailed than the first set of parameters and / or the first image processing algorithm, respectively. The second image analysis may include acquiring a new image of the wafer. For example, the second image analysis may include: imaging the location of the identified possible defects selected for the second image analysis in more detail than the first image analysis. The second image analysis may verify whether the identified possible defects are real defects.

[0068] The second image analysis may include defect review. In defect review, the identified possible defects may be classified as described below. In addition, defect levels may be assigned to defects. For example, defects may be classified as safe, uncertain, fragile, and fatal. Although the structure on the wafer may be defective, the defect may not interfere with the function it should perform in the IC device. Therefore, such a defect may be classified as safe. On the other hand, if the defect is so severe that it may damage the IC device, the defect may be classified as fatal.

[0069] Based on the results of the second image analysis, a probability of detection may be determined. In step S255, the defect probability of the identified possible defect may be updated. If the identified possible defect is confirmed as a real defect by the second image analysis, a predetermined number may be assigned as the defect probability of the real defect. The updating may include overwriting the value of the defect probability previously associated with the identified possible defect. The updating may include writing an initial value of the defect probability for the identified possible defect.

[0070] The value of the defect probability may be based on the defect level determined as a result of the second image analysis. For example, the numerical value of the defect probability of a "fatal" defect may be greater than the numerical value of the defect probability of a "safe" defect.

[0071] If the identified possible defect is confirmed to be a nuisance defect, its defect probability may be zero. For example, in the first image analysis, a low-resolution image may be used. However, as the size of IC features becomes smaller, such a low-resolution image may not be sufficient to correctly identify the presence or absence of defects. The identification of certain structures as possible defects may be due to the image being out of focus, for example, the feature may not be within the focal plane of the imaging tool. Therefore, when using the second image analysis, for example, to perform imaging with a higher resolution and more accurate focus, it can be determined that the structure is not actually defective.

[0072] Although the name "nuisance defect" is used herein, the present disclosure need not be limited thereto. For example, defects that are real defects but have a negligibly small defect probability may be similarly ignored when selected for the second image analysis. A predetermined threshold value for the defect probability may be used accordingly.

[0073] Step S255 may include determining a defect probability for a group. For example, the possible defects may be assigned to the group based on the pattern data of the identified defects. Thus, the results of the immediate second image analysis and defect probability determination may be used to determine the group defect probability. The group defect probability may be based on an average. The group defect probability may be based on a weighted average, where more recent data is given a greater weight. The group defect probability may be based on an average, where a predetermined number of the most recent defect probability determinations are used, and other defect probability determinations are discarded.

[0074] The group defect probability may be calculated as the ratio of the number of defects confirmed by the second image analysis to the total number of identified possible defects found on the wafer. For example, in some embodiments, if a real defect exists, the defect is counted regardless of whether the defect is classified as safe, uncertain, fragile, or fatal, etc. The group defect probability may be calculated on a per-wafer basis. The group defect probability may be calculated by averaging over one or more wafers. The group defect probability may also be based on a batch basis.

[0075] Defects may include various types of defects, such as those described below. Some common types of defects generated in the lithography process may include photoresist (PR) residual defects (which are caused by photoresist (PR) degradation or impurities), peeling defects, bridge defects, bubble defects, and virtual pattern missing defects caused by pattern shift. Defects generated in the etching process may include etching residual defects, over-etching defects, and open circuit defects. Defects generated in the chemical mechanical planarization (CMP) process may include slurry residual defects, depression defects, and corrosion defects caused by different polishing rates, scratches caused by polishing, etc. In addition, as the process node continues to shrink, new materials and processes that may cause new defect types will be introduced. For example, since the physical size of the pattern may be smaller than the optical resolution of the applied lithography wavelength (e.g., 193nm), the critical size exposed on the wafer may cause an offset. Thinning defects are another type of defects that are inevitably caused when the process node shrinks. In order to reduce the RC delay in the multilayer interconnect structure, low-k dielectric layers and copper materials can be introduced. Since etching may not be ideal when copper is used, a damascene process can be used in which metal is filled into the dielectric layer. Therefore, some other hidden defects may be covered under the layer, such as void defects, etching residue defects, over-etching defects, particles under the layer, and via openings generated in the interconnect process.

[0076] In addition, other types of semiconductor processes can cause other types of defects. For example, some other processing techniques used in the semiconductor industry may include physical vapor deposition (PVD), chemical vapor deposition (CVD), electrochemical deposition (EPC), molecular beam epitaxy (MBE), atomic layer deposition (ALD), etc. Other techniques, such as techniques for patterning, removal, and modification (e.g., doping) of electrical features, may also cause other types of defects.

[0077] Defect review may include classifying defects according to their type.

[0078] A certain type of defect that may impair the functionality of the intended structure can be further classified based on the type of defect. For example, for a line pattern structure, a defect can be classified as a thinning defect, and therefore, there may be a chance that the structure will not be able to perform the intended function of signal transmission. If the trace becomes too thin, the trace may not be able to withstand the electrical load expected to pass through the trace according to the design specifications. In addition, if the pattern becomes too thin so that a break defect occurs, the structure will not be able to transmit signals at all. Therefore, based on the defect classification, corresponding categories such as safe, uncertain, fragile, and fatal can be assigned.

[0079] Defects can include systematic defects and non-systematic defects. Systematic defects can be found repeatedly and systematically in the wafer, so that the defect pattern can be used as a reference in classification to determine, for example, which processes are the root cause of such defects. More specifically, systematic defects can be classified into: mask errors in alignment or machine offset, process errors caused by recipes or materials, probe damage during wafer probing, scratches on the wafer surface, and wafer edge effects of topography caused by non-uniformity of PR coating or thermal stress.

[0080] Non-systematic defects can include random particle defects, such as random residues left in the wafer. The distribution and characteristic profiles can serve as a useful reference to distinguish systematic defects from non-systematic defects. Non-systematic defects, such as random particle defects caused by particles in the air that randomly fall on the wafer, may not be easy to identify and resolve. However, the identification and classification of such defects can provide information.

[0081] Defect classification can also include determining whether the defect is systematic or non-systematic. Classification and detailed re-examination can be important for various applications. For example, in some cases, it may be desirable to distinguish between systematic defects and random defects.

[0082] Defects can have various types of structures and features. However, the precursor patterns can have standard pattern geometries. For example, the same type of precursor pattern can be associated with different types of defects, and vice versa.

[0083] The determination of defect probability may be based on defect classification.

[0084] continue Figure 5 , the method may proceed to step S260. In step S260, the wafer may be released from the tool so that a new wafer may be loaded. In a determination step S270, it is determined whether there are additional wafers to be processed. For example, the method may request imaging and analysis of the next wafer in the batch, and when there are no more wafers to be inspected, processing of the batch may be completed, as shown in step S280.

[0085] In some embodiments, image analysis can be performed on structures on a wafer based on pattern data. For example, selective inspection can be used. In selective inspection, the wafer design plan can be analyzed before the wafer is actually inspected. A wafer inspection plan can be determined based on pattern data available from a pattern library. In some embodiments, the pattern library can be searched to determine which patterns have the highest probability of defects. Based on the results of the pattern library search, a wafer inspection plan can be constructed to prioritize the location of wafers including patterns with the highest probability of defects. The data in the pattern library can be based on previous defect detections of other wafers. The other wafers can be other wafers in a batch containing the wafer to be inspected. In some embodiments, for example, the data in the pattern library can be based on some other training data.

[0086] Using selective inspection, the first image analysis and the second image analysis can be performed based on the data in the pattern library. Selective inspection may help to further improve throughput.

[0087] Figure 6 A graph showing determined defect counts for a wafer according to an embodiment of the present disclosure is shown. For example, defect probability information for identified possible defects can be graphically represented in the graph. In some embodiments, the defect probability can be based on defect counts confirmed by a second image analysis (such as by defect re-inspection). The defect counts can be broken down into defects organized by various criteria. For example, defects can be classified as safe, uncertain, fragile, fatal, etc.

[0088] like Figure 6 As shown, counts can be associated with pattern groups based on pattern data. For example, pattern 1 can represent a defect with pattern data of a specific geometry. Pattern 1 can be associated with a group of identified possible defects that have pattern data that matches each other. Figure 7 As shown, pattern 1 may be associated with a three-terminal semiconductor pattern.

[0089] Figure 7 A table is shown which shows exemplary entries in a pattern library consistent with embodiments of the present disclosure. Figure 7 As shown, the group labels can correspond to Figure 6 The pattern number shown on the horizontal axis of the diagram may correspond to a pattern group. As shown in the figure, the defect probability information may include symbols such as A, B, C, etc. Symbols A, B, C, etc. may represent defect probabilities, such as numerical values.

[0090] like Figure 6 and Figure 7 As shown, patterns 8, 14, 20, 21, etc. are considered as nuisance defects because their true defect counts are small. The defect count of a nuisance defect may be, for example, zero.

[0091] Results from the second image analysis, such as defect review, can be used to continuously update the pattern library.As the wafer continues to be processed, feedback control can be used to continuously add entries to the pattern library and update the defect probability information.

[0092] Although in some embodiments the controller, memory, and one or more circuits are discussed as separate units, a computer may perform the processing of all of these units.

[0093] For example, a computer system may be provided. Figure 8 800 is a block diagram of an exemplary computer system 800, which can be used to implement the embodiments described herein. One or more of the knowledge recommendation server, defect classification server, and image processing system described above can be implemented using the computer system 800.

[0094] Computer system 800 includes a bus 802 or other communication mechanism for communicating information, and one or more hardware processors 804 (for simplicity, represented as processor 804; for example, Figure 2 The processor of the controller 109, or Figure 3 The hardware processor 804 may be, for example, one or more microprocessors.

[0095] The computer system 800 also includes a main memory 806, such as a random access memory (RAM) or other dynamic storage device, coupled to the bus 802 to store information and instructions to be executed by the processor 804. The memory 806 may also be used to store temporary variables or other intermediate information during the execution of instructions to be executed by the processor 804. Such instructions, after being stored in a non-transitory storage medium accessible to the processor 804, render the computer system 800 as a special-purpose machine customized to perform the operations specified in the instructions.

[0096] Computer system 800 also includes a read-only memory (ROM) 808 or other static storage device coupled to bus 802 for storing static information and instructions for processor 804. Storage device 810 (e.g., Figure 2 The storage device 130 or Figure 3 A storage device 334 of the knowledge recommendation server 330 ) (such as a magnetic disk, optical disk, or USB thumb drive (flash drive), etc.) may be provided and coupled to the bus 802 for storing information and instructions.

[0097] The computer system 800 may be coupled to a display 812, such as a cathode ray tube (CRT), a liquid crystal display (LCD), or a touch screen, via the bus 802 to display information to a computer user. An input device 814 including alphanumeric keys and other keys may be coupled to the bus 802 to communicate information and command selections to the processor 804. Another type of user input device may be a cursor control 816, such as a mouse, a trackball, or cursor direction keys, which is used to communicate direction information and command selections to the processor 804 and control cursor movement on the display 812. The input device may have two degrees of freedom on two axes, a first axis (e.g., x) and a second axis (e.g., y), which allows the device to specify a position in a plane. In some embodiments, the same direction information and command selection as a cursor control may be achieved by receiving a touch on a touch screen without a cursor.

[0098] The computer system 800 may include a user interface module for implementing a graphical user interface (GUI), which may be stored in a mass storage device as executable software code executed by one or more computing devices. As examples, this module and other modules may include components such as software components, object-oriented software components, class components, and task components, processes, functions, fields, procedures, subroutines, program code segments, drivers, firmware, microcode, circuit systems, data, databases, data structures, tables, arrays, and variables. These modules may include, for example, Figure 3 One or more components of system 300 are shown.

[0099] The computer system 800 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that is combined with a computer system to cause or program the computer system 800 to be a special purpose machine. According to some embodiments, the computer system 800 performs the operations, functions, and techniques and other features described herein in response to the processor 804 executing one or more sequences of one or more instructions contained in the main memory 806. Such instructions may be read into the main memory 806 from another storage medium such as the storage device 810. Execution of the sequences of instructions contained in the main memory 806 may cause the processor 804 to perform the method steps described herein (e.g., Figure 4 The process shown or Figure 5 In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions.

[0100] A non-transitory computer readable medium may be provided that stores instructions for use by a processor (e.g., a processor of controller 109) to perform image processing, data processing, database management, graphic display, operation of a charged particle beam device or other imaging equipment, etc. Common forms of non-transitory media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a pattern of holes, RAM, PROM and EPROM, FLASH-EPROM or any other flash memory, NVRAM, cache, registers, any other memory chip or cassette, and networked versions thereof.

[0101] Non-transient media are distinct from transmission media, but can be used in conjunction with transmission media. Transmission media can participate in the transmission of information between storage media. For example, transmission media can include coaxial cables, copper wires, and optical fibers, including the wires that make up bus 802. Transmission media can also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.

[0102] Various forms of media may be involved in carrying one or more sequences of one or more instructions to the processor 804 for execution. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to the computer system 800 may receive the data on the telephone line and use an infrared transmitter to convert the data to an infrared signal. An infrared detector may receive the data carried in the infrared signal and appropriate circuitry may place the data on the bus 802. The bus 802 carries the data to the main memory 806 from which the processor 804 retrieves and executes the instructions. The instructions received by the main memory 806 may optionally be stored on the storage device 810 before or after execution by the processor 804.

[0103] Computer system 800 may also include a communication interface 818 coupled to bus 802. Communication interface 818 (e.g., Figure 3The communication interface 322 of the defect classification server 320 or any communication interface (not shown) of the knowledge recommendation server 330 can provide a two-way data communication coupled to the network link 820 (which can be connected to the local network 822). For example, the communication interface 818 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem for providing a data communication connection to a corresponding type of telephone line. As another example, the communication interface 818 can be a local area network (LAN) card for providing a data communication connection to a compatible LAN. A wireless link can also be implemented. In any such implementation, the communication interface 818 sends and receives electrical, electromagnetic, or optical signals that carry digital data streams representing various types of information.

[0104] The network link 820 can generally provide data communication through one or more networks to other data devices. For example, the network link 820 can provide a connection through a local network 822 to a host 824 or data equipment operated by an Internet service provider (ISP) 826. The ISP 826 can, in turn, provide data communication services through the global packet data communication network now commonly referred to as the "Internet" 828. Both the local area network 822 and the Internet 828 use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 820 and through the communication interface 818, which carry the digital data to and from the computer system 800, can be example forms of transmission media.

[0105] Computer system 800 can send messages and receive data including program code through the network, network link 820 and communication interface 818. In the Internet example, server 830 can transmit the requested code for the application through Internet 828, ISP 826, local area network 822 and communication interface 818.

[0106] The received code may be executed by processor 804 as it is received, and / or stored in storage device 810 or other non-volatile memory for later execution.In some embodiments, server 830 may provide information for display on a display.

[0107] The embodiments may be further described using the following terms:

[0108] 1. A method for performing image processing, comprising:

[0109] acquiring one or more images of the sample;

[0110] identifying, using a first image analysis, a plurality of first features in the one or more images;

[0111] determining pattern data corresponding to the plurality of first features;

[0112] selecting at least one first feature of the plurality of first features based on the pattern data; and

[0113] A second image analysis is performed on the at least one first feature of the plurality of first features.

[0114] 2. The method according to clause 1, further comprising:

[0115] determining a defect probability of each of the plurality of first features based on the pattern data;

[0116] Wherein selecting the at least one first feature of the plurality of first features is based on the defect probability.

[0117] 3. A method according to any one of clauses 1 to 2, wherein the first image analysis comprises acquiring an image of the sample using a first set of parameters or using a first image processing algorithm, and the second image analysis comprises acquiring an image of the sample using a second set of parameters or using a second image processing algorithm.

[0118] 4. A method according to any one of clauses 1 to 3, wherein the first image analysis comprises defect inspection and the second image analysis comprises defect verification.

[0119] 5. A method according to any one of clauses 1 to 4, wherein the pattern data comprises a design plan of the sample.

[0120] 6. The method of clause 5, wherein determining the pattern data comprises extracting a pattern from the design plan of the sample based on the position of the first feature determined in the first image analysis.

[0121] 7. The method according to any one of clauses 1 to 6, further comprising:

[0122] grouping a first number of the first features in a first group based on the pattern data; and

[0123] A first defect probability of the first group is determined based on defect probabilities of other members of the first group, wherein the defect probability is based on results of defect re-inspection of the other members of the first group, and wherein selecting the at least one first feature of the plurality of first features is based on the first defect probability.

[0124] 8. The method according to any one of clauses 1 to 7, further comprising:

[0125] Searching the pattern library; and

[0126] Based on the pattern data, a match of the at least one first feature of the plurality of first features with an entry in the pattern library is determined, wherein selecting the at least one first feature of the plurality of first features is based on information of the entry in the pattern library.

[0127] 9. The method according to clauses 1 to 7, further comprising:

[0128] The pattern data is added to a pattern library corresponding to the at least one first feature of the plurality of first features.

[0129] 10. A method for examining a sample, comprising:

[0130] performing a first imaging of at least a portion of a sample to acquire a first image of the sample;

[0131] identifying a plurality of first features in the first image;

[0132] determining pattern data corresponding to the plurality of first features;

[0133] selecting at least one first feature of the plurality of first features based on the pattern data; and

[0134] A second imaging is performed on the sample at locations corresponding to the plurality of first features.

[0135] 11. The method according to clause 10, further comprising:

[0136] determining a defect probability of each of the plurality of first features based on the pattern data;

[0137] Wherein selecting the at least one first feature of the plurality of first features is based on the defect probability.

[0138] 12. A method according to any one of clauses 10 to 11, wherein the first imaging comprises acquiring an image of the sample using a first set of parameters or using a first image processing algorithm, and the second imaging comprises acquiring an image of the sample using a second set of parameters or using a second image processing algorithm.

[0139] 13. A method according to any of clauses 10 to 12, wherein the first imaging comprises defect inspection and the second imaging comprises defect verification.

[0140] 14. A method according to any one of clauses 10 to 13, wherein the pattern data comprises a design plan of the sample.

[0141] 15. The method of clause 14, wherein determining the pattern data comprises extracting a pattern from the design plan of the sample based on the position of the first feature determined in the identification.

[0142] 16. The method according to any one of clauses 10 to 15, further comprising:

[0143] grouping a first number of the first features in a first group based on the pattern data; and

[0144] A first defect probability of the first group is determined based on defect probabilities of other members of the first group, wherein the defect probability is based on results of defect re-inspection of the other members of the first group, and wherein selecting the at least one first feature of the plurality of first features is based on the first defect probability.

[0145] 17. The method according to any one of clauses 10 to 16, further comprising:

[0146] Searching the pattern library; and

[0147] Based on the pattern data, a match of the at least one first feature of the plurality of first features with an entry in the pattern library is determined, wherein selecting the at least one first feature of the plurality of first features is based on information of the entry in the pattern library.

[0148] 18. The method according to any one of clauses 10 to 16, further comprising:

[0149] The pattern data is added to a pattern library corresponding to the at least one first feature of the plurality of first features.

[0150] 19. The method according to any one of clauses 10 to 18, further comprising:

[0151] examining the first sample and the second sample;

[0152] determining a defect probability of one or more features of the first sample based on a second image of the first sample;

[0153] selecting one or more features of the second sample based on the defect probabilities of the one or more features of the first sample; and

[0154] A second imaging is performed on the second sample at a location corresponding to the one or more features of the second sample.

[0155] 20. A non-transitory computer-readable medium storing a set of instructions executable by at least one processor of a device to cause the device to perform a method comprising:

[0156] performing a first imaging of at least a portion of the sample to acquire a first image of the sample;

[0157] identifying a plurality of first features in the first image;

[0158] determining pattern data corresponding to the plurality of first features;

[0159] selecting at least one first feature of the plurality of first features based on the pattern data; and

[0160] A second imaging is performed on the sample at locations corresponding to the plurality of first features.

[0161] 21. The computer-readable medium of clause 20, wherein the set of instructions further causes the apparatus to perform:

[0162] determining a defect probability of each of the plurality of first features based on the pattern data;

[0163] Wherein selecting the at least one first feature of the plurality of first features is based on the defect probability.

[0164] 22. A computer-readable medium according to any one of clauses 20 to 21, wherein the first imaging comprises acquiring an image of the sample using a first set of parameters or using a first image processing algorithm, and the second imaging comprises acquiring an image of the sample using a second set of parameters or using a second image processing algorithm.

[0165] 23. The computer-readable medium of any of clauses 20 to 22, wherein the first imaging comprises defect inspection and the second imaging comprises defect verification.

[0166] 24. The computer-readable medium of any of clauses 20 to 23, wherein the pattern data comprises a design plan of the sample.

[0167] 25. The computer-readable medium of clause 24, wherein determining the pattern data comprises extracting a pattern from the design plan for the sample based on the position of the first feature determined in the identification.

[0168] 26. The computer-readable medium of any one of clauses 20 to 25, wherein the set of instructions further causes the apparatus to perform:

[0169] grouping a first number of the first features in a first group based on the pattern data; and

[0170] A first defect probability of the first group is determined based on defect probabilities of other members of the first group, wherein the defect probability is based on results of defect re-inspection of the other members of the first group, and wherein selecting the at least one first feature of the plurality of first features is based on the first defect probability.

[0171] 27. The computer-readable medium of any one of clauses 20 to 26, wherein the set of instructions further causes the apparatus to perform:

[0172] Searching the pattern library; and

[0173] Based on the pattern data, a match of the at least one first feature of the plurality of first features with an entry in the pattern library is determined, wherein selecting the at least one first feature of the plurality of first features is based on information of the entry in the pattern library.

[0174] 28. The computer-readable medium of any one of clauses 20 to 26, wherein the set of instructions further causes the apparatus to perform:

[0175] The pattern data is added to a pattern library corresponding to the at least one first feature of the plurality of first features.

[0176] 29. The computer-readable medium of clause 20, wherein the set of instructions further causes the apparatus to perform:

[0177] examining the first sample and the second sample;

[0178] determining a defect probability of one or more features of the first sample based on a second image of the first sample;

[0179] selecting one or more features of the second sample based on the defect probabilities of the one or more features of the first sample; and

[0180] A second imaging is performed on the second sample at a location corresponding to the one or more features of the second sample.

[0181] 30. The computer-readable medium of any of clauses 20 to 29, wherein the apparatus is a charged particle beam apparatus configured to generate a charged particle beam.

[0182] The block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer hardware / software products according to various exemplary embodiments of the present disclosure. In this regard, each frame in the flow chart or block diagram may represent a module, segment or part of a code including one or more executable instructions for implementing a specified logical function. It should be understood that in some alternative implementations, the functions indicated in the frame may not occur in the order indicated in the figure. For example, depending on the functions involved, the two frames shown in succession may be executed or implemented substantially simultaneously, or the two frames may sometimes be executed in reverse order. Some frames may also be omitted. It should also be understood that each frame of the block diagram and the combination of these frames may be implemented by a dedicated hardware-based system that performs a specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.

[0183] It will be appreciated that the invention is not limited to the exact construction that has been described above and shown in the accompanying drawings, and that various modifications and changes may be made without departing from the scope of the invention.

Claims

1. A method for performing image processing, include: acquiring one or more images of the sample; identifying, using a first image analysis, a plurality of first features in the one or more images; determining pattern data corresponding to the plurality of first features; Based on the pattern data, selecting at least one first feature among the plurality of first features comprises: Based on the pattern data, assigning each target first feature of the plurality of first features to a target group with other members in a pattern library, wherein a similarity between the pattern data of the target first feature and the pattern data of the other members is greater than a threshold; Determining an initial defect probability of each target first feature based on the defect probabilities of the other members stored in the pattern library; and selecting the at least one first feature of the plurality of first features based on a plurality of initial defect probabilities for the plurality of first features; and A second image analysis is performed on the at least one first feature of the plurality of first features.

2. The method of claim 1, wherein the first image analysis comprises acquiring an image of the sample using a first image processing algorithm, and the second image analysis comprises acquiring an image of the sample using a second image processing algorithm. 3 . The method of claim 1 , wherein the first image analysis comprises defect inspection and the second image analysis comprises defect re-inspection.

4. The method of claim 1, wherein the pattern data comprises a design plan of the sample including a pattern representation of features on a surface of the sample.

5. The method according to claim 4, wherein determining the pattern data include: A pattern is extracted from the design plan for the sample based on the location of the first feature determined in the first image analysis.

6. The method according to claim 1, further comprising: include: Searching the pattern library; as well as Based on the pattern data, a match is determined between the at least one first feature among the plurality of first features and an entry in the pattern library, wherein the selection of the at least one first feature among the plurality of first features is also performed based on information of the entry in the pattern library, and the information of the entry includes at least a pattern group, pattern data, and a defect probability for the pattern feature.

7. The method according to claim 1, further comprising: include: The pattern data is added to a pattern library corresponding to the at least one first feature of the plurality of first features.

8. The method of claim 1, wherein the second image analysis includes defect re-inspection, and the defect probabilities of the other members stored in the pattern library are based on results of the defect re-inspection of the second image analysis previously performed on the other members. 9 . The method of claim 1 , wherein the second image analysis includes defect review, and the defect review is configured to update the plurality of initial defect probabilities for the plurality of first features.

10. A non-transitory computer-readable medium storing a set of instructions, the set of instructions being executable by at least one processor of a device to cause the device to perform a method, the method include: performing a first imaging of at least a portion of the sample to acquire a first image of the sample; identifying a plurality of first features in the first image; determining pattern data corresponding to the plurality of first features; Based on the pattern data, selecting at least one first feature of the plurality of first features comprises: Based on the pattern data, assigning each target first feature of the plurality of first features to a target group with other members in a pattern library, wherein a similarity between the pattern data of the target first feature and the pattern data of the other members is greater than a threshold; Determining an initial defect probability of each target first feature based on the defect probabilities of the other members stored in the pattern library; and selecting the at least one first feature of the plurality of first features based on a plurality of initial defect probabilities for the plurality of first features; and A second imaging is performed on the sample at locations corresponding to the plurality of first features.

11. The computer-readable medium of claim 10, wherein the first imaging comprises acquiring an image of the sample using a first image processing algorithm, and the second imaging comprises acquiring an image of the sample using a second image processing algorithm.

12. The computer readable medium of claim 10, wherein the first imaging comprises defect inspection and the second imaging comprises defect verification.

13. The computer-readable medium of claim 10, wherein the pattern data comprises a design plan for the sample, the design plan for the sample comprising a pattern representation of features on a surface of the sample.

14. The computer readable medium of claim 13, wherein determining the pattern data include: A pattern is extracted from the design plan for the sample based on the position of the first feature determined in the identification.

15. The computer-readable medium of claim 10, wherein the second imaging includes defect review, and the defect probabilities of the other members stored in the pattern library are based on results of the defect review of the second imaging previously performed on the other members.

16. The computer-readable medium of claim 10, wherein the second imaging comprises defect review, and the defect review is configured to update the plurality of initial defect probabilities for the plurality of first features.