Method and device for positioning shooting of scanning electron microscope and storage medium

By using segmentation models to automatically identify features and calculate target electron microscope parameters in scanning electron microscopes, the problem of low efficiency of traditional manual positioning and shooting is solved, automatic positioning and shooting is realized, and shooting efficiency and accuracy are improved.

CN118570800APending Publication Date: 2024-08-30TSINGHUA UNIV TIANJIN INST OF ELECTRONIC INFORMATION +2

Patent Information

Application Number
CN202410710040.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the application of scanning electron microscopy, traditional feature positioning and shooting relies on manual operations, resulting in inefficiency, especially when multiple manual positioning and shooting of samples with different particle types are required, which is time-consuming and labor-intensive.

Method used

By acquiring the initial scanning electron microscope image, inputting it into the trained segmentation model for mask segmentation, extracting feature information and calculating the target electron microscope parameters required for secondary shooting, automatic positioning and shooting can be achieved, reducing manual intervention and secondary shooting time.

Benefits of technology

It improves the efficiency of scanning electron microscope photography, reduces manual intervention, and improves the accuracy and efficiency of positioning and photography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570800A
    Figure CN118570800A
Patent Text Reader

Abstract

The invention discloses a method and equipment for positioning shooting of a scanning electron microscope, and a storage medium. The method comprises the following steps: acquiring an original scanning electron microscope image acquired by initial shooting; inputting the original scanning electron microscope image into a trained segmentation model for mask segmentation operation to obtain a mask segmentation result; extracting feature information of the image based on the mask segmentation result; and calculating target electron microscope parameters required by secondary shooting according to the feature information so as to be used for positioning shooting of the scanning electron microscope. By means of the scheme, manual intervention can be reduced, the secondary shooting time is shortened, and the shooting efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of scanning electron microscope photography technology, and more specifically, to a method, device and computer-readable storage medium for scanning electron microscope positioning photography. Background Art

[0002] In the application scenarios of scanning electron microscopes, some users need to take a second photo of the sample. The first time, a large field of view of the sample is taken as a preliminary screening. Then, the features of interest are manually determined, located, and zoomed in for a second time to obtain more information about the features.

[0003] Traditional feature positioning and shooting methods rely entirely on manual work, and positioning and shooting are performed by manually adjusting the electron microscope parameters. In the case where multiple features need to be magnified and shot again, the user needs to repeatedly move the sample stage to locate and shoot the features, which is inefficient. In addition, for example, if there are multiple different types of particles in the sample, if the user wants to obtain magnified images of multiple particles, multiple manual positioning and shooting processes are required, which is time-consuming and labor-intensive.

[0004] In view of this, there is an urgent need to provide a solution for scanning electron microscope positioning shooting, so as to reduce manual intervention, reduce the time of secondary shooting, and improve shooting efficiency. Summary of the invention

[0005] In order to at least solve one or more of the technical problems mentioned above, the present application proposes solutions for positioning and photographing with a scanning electron microscope in multiple aspects.

[0006] In a first aspect, the present application provides a method for positioning shooting with a scanning electron microscope, comprising: obtaining an original scanning electron microscope image acquired by initial shooting; inputting the original scanning electron microscope image into a trained segmentation model for a mask segmentation operation to obtain a mask segmentation result; extracting feature information of the image based on the mask segmentation result; and calculating target electron microscope parameters required for secondary shooting based on the feature information for positioning shooting with a scanning electron microscope.

[0007] In one embodiment, the segmentation model is trained by the following operations: threshold segmentation is performed on the original scanning electron microscope image to obtain mask annotation data; and the original scanning electron microscope image and the mask annotation data are input into the segmentation model to perform an initial mask segmentation operation to obtain an initial mask segmentation result, so as to obtain the trained segmentation model.

[0008] In another embodiment, it also includes: performing connected domain analysis on the scanning electron microscope image after threshold segmentation to construct a mask label; extracting target prompt information in the mask label; and training the segmentation model based on the target prompt information to obtain the initial mask segmentation result, so as to obtain the trained segmentation model.

[0009] In another embodiment, performing connected domain analysis on the scanning electron microscope image after threshold segmentation to construct the mask label includes: performing connected domain analysis on the scanning electron microscope image after threshold segmentation and calculating the area of ​​each connected domain; and selecting a target connected domain according to the area of ​​each connected domain to construct the mask label.

[0010] In another embodiment, the target prompt information includes feature point prompt information and detection box prompt information, and the target prompt information in the mask label is extracted by the following operations: performing minimum rectangular frame detection on the mask label, and marking feature points of the foreground area in the mask label to obtain the feature point prompt information and the detection box prompt information.

[0011] In yet another embodiment, before training the segmentation model, the method further includes: performing an image cropping operation and / or an image filtering operation on the original scanning electron microscope image.

[0012] In another embodiment, inputting the original scanning electron microscope image into a trained segmentation model for performing a mask segmentation operation to obtain a mask segmentation result includes: inputting the original scanning electron microscope image into a trained segmentation model for performing an initial mask segmentation operation to obtain the initial mask segmentation result; and performing a post-processing operation on the initial mask segmentation result to obtain a final mask segmentation result.

[0013] In yet another embodiment, the post-processing operation includes at least one or more of morphological processing, feature clustering or background removal.

[0014] In yet another embodiment, the feature information includes at least image size information, image feature point size information and an initial magnification, and the target electron microscope parameters include at least a target moving distance and a target magnification of the image feature points.

[0015] In another embodiment, calculating the target electron microscope parameters required for secondary shooting based on the feature information includes: calculating the offset of the image feature point based on the size information of the image and the size information of the image feature point; calculating the target movement distance based on the offset and the pixel value of the image feature point; calculating the vertical field of view and the horizontal field of view based on the size information of the image, the size information of the image feature point and the pixel value of the image feature point; and calculating the target magnification based on the vertical field of view, the horizontal field of view and the initial magnification.

[0016] In a second aspect, the present application provides a device for positioning and photographing with a scanning electron microscope, comprising: a processor; and a memory on which computer instructions for positioning and photographing with a scanning electron microscope are stored. When the computer instructions are executed by the processor, multiple embodiments of the aforementioned first aspect are implemented.

[0017] In a third aspect, the present application provides a computer-readable storage medium having stored thereon computer program instructions for positioning and photographing with a scanning electron microscope. When the computer program instructions are executed by one or more processors, multiple embodiments of the aforementioned first aspect are implemented.

[0018] Through the solution for scanning electron microscope positioning shooting provided above, the embodiment of the present application performs a mask segmentation operation by inputting the original scanning electron microscope image collected by the initial shooting into the trained segmentation model to automatically identify the features and obtain the mask segmentation result. Then, the feature information of the image is extracted through the mask segmentation result, and the target electron microscope parameters required for the secondary shooting are calculated so that the positioning shooting can be automatically performed directly according to the target electron microscope parameters, thereby reducing manual intervention, reducing the secondary shooting time, and improving the shooting efficiency. Further, in some embodiments, the embodiment of the present application also obtains mask annotation data by processing the original image (such as threshold segmentation, connected domain analysis, etc.), and trains the segmentation model in combination with the target prompt information to improve the accuracy of the segmentation of the segmentation model. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0020] Figure 1 is an exemplary flowchart showing conventional scanning electron microscope positioning and shooting;

[0021] Figure 2 is an exemplary schematic diagram showing conventional manual positioning shooting;

[0022] Figure 3 is an exemplary flowchart showing a method for positioning and photographing a scanning electron microscope according to an embodiment of the present application;

[0023] Figure 4 is an exemplary flow chart showing the overall process of positioning and photographing with a scanning electron microscope according to an embodiment of the present application;

[0024] Figure 5 is an exemplary schematic diagram showing how to obtain a mask segmentation result based on a segmentation model according to an embodiment of the present application;

[0025] Figure 6 An exemplary schematic diagram showing calculation of offset according to an embodiment of the present application;

[0026] Figure 7 An exemplary schematic diagram showing secondary positioning shooting according to an embodiment of the present application is shown;

[0027] Figure 8 It is an exemplary structural block diagram showing a device for positioning and photographing with a scanning electron microscope according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0029] It should be understood that the terms "include" and "comprising" used in the specification and claims of the present application indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0030] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this application specification and claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in this application specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0031] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0032] Figure 1 FIG. 1 is an exemplary flowchart showing the conventional scanning electron microscope positioning and shooting. Figure 1 As shown in, at step S101, the electron microscope parameters for scanning electron microscope photography are first set. The electron microscope parameters may be, for example, resolution, magnification, acceleration voltage, etc. In actual application scenarios, the aforementioned electron microscope parameters may be set according to the shooting requirements. Then, at step S102, image shooting is performed. During the shooting process, the sample stage is moved so that the sample in the sample stage is at the scanning center to achieve image shooting and obtain a scanning electron microscope image.

[0033] Further, at step S103, the scanning electron microscope image can be pre-processed. In some embodiments, the pre-processing may include, for example, image enhancement, graying or histogram equalization, so that the scanning electron microscope image is clearer and convenient for subsequent analysis. At step S104, the pre-processed scanning electron microscope image is subjected to image feature recognition. Among them, for example, a target detection algorithm, an edge detection algorithm, etc. can be used to identify image features. Then, at step S105, it is determined whether the image feature needs to be retaken (i.e., a second take). If the image feature needs to be retaken, at step S106, the image feature of the retake is manually determined, or at step S107, the image feature of the image retake is automatically determined, and at step S108, the retake parameters are set. The retake parameters may also include, for example, resolution, magnification, acceleration voltage, etc. Based on the retake parameters after setting, at step S109, image retake is performed. After completing the image retake, at step S110, image capture is terminated. If the image feature does not need to be retaken, directly jump to step S110 to terminate image capture.

[0034] As can be seen from the above background description, if multiple features need to be magnified and photographed twice, or if, for example, there are multiple different types of particles in a sample, the user wants to obtain magnified images of multiple particles, the user needs to repeatedly move the sample stage to locate the features and photograph them (for example, Figure 2 ), which is time-consuming, labor-intensive and inefficient.

[0035] Figure 2 FIG. 1 is an exemplary schematic diagram showing conventional manual positioning shooting. Figure 2As shown in FIG. 2 , a sample 201 is placed on a sample stage 202 and aligned with an objective lens 203 of a scanning electron microscope. When a second shot is required, the sample stage is manually moved multiple times to locate and shoot features in the sample, for example Figure 2 2 shows, from left to right, an exemplary schematic diagram of manually moving the sample stage to the right for multiple times to position and photograph features in the sample. This traditional feature positioning and photographing method is completely dependent on manual labor, resulting in low photographing efficiency.

[0036] Based on this, the present application provides a solution for positioning shooting with a scanning electron microscope, which inputs the original scanning electron microscope image acquired by the initial shooting into a trained segmentation model for automatic feature recognition through a mask segmentation operation, extracts feature information of image feature points based on the mask segmentation result, and calculates the target electron microscope parameters required for the secondary shooting, so as to automatically perform positioning shooting directly according to the target electron microscope parameters, thereby reducing manual intervention, reducing the time for secondary shooting, and improving shooting efficiency.

[0037] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.

[0038] Figure 3 FIG. 3 is an exemplary flowchart showing a method 300 for positioning and photographing a scanning electron microscope according to an embodiment of the present application. Figure 3 As shown in , at step S301, the original scanning electron microscope image acquired by the initial shooting is obtained. In an implementation scenario, the original scanning electron microscope image can be acquired by scanning electron microscope acquisition. Then, at step S302, the original scanning electron microscope image is input into the trained segmentation model for mask segmentation operation to obtain a mask segmentation result. It can be understood that the mask corresponds to the target area (e.g., the region of interest) in the original scanning electron microscope image. By performing mask segmentation on the original scanning electron microscope image through the trained segmentation model, the mask can be automatically extracted to obtain the mask segmentation result.

[0039] In an implementation scenario, the segmentation model may be, for example, a SAM large model, which may include three modules, namely, an image encoding ("image encoder") module, a prompt encoding ("prompt encoder") module, and a mask decoding ("mask decoder") module. The aforementioned image encoding module is used to output an image encoding result, and the aforementioned prompt encoding module is used to receive prompt information (including, for example, prompt information of feature points and prompt information of detection boxes, etc.), and combine it with the image encoding result and input it into the mask decoding module for decoding to obtain a mask segmentation result. In some embodiments, the aforementioned SAM large model may use, for example, Vision Transformer as the backbone network, and freeze the aforementioned image encoding module and prompt encoding module.

[0040] In one embodiment, the aforementioned segmentation model can be trained by the following operations: threshold segmentation is performed on the original SEM image to obtain mask annotation data, and the original SEM image and mask annotation data are input into the segmentation model to perform an initial mask segmentation operation to obtain an initial mask segmentation result to obtain a trained segmentation model. That is, the mask label is extracted by threshold segmentation of the original image, and the segmentation model is fine-tuned according to the image of the annotated mask to achieve the training of the segmentation model. In other words, the embodiment of the present application includes supervised training of the segmentation model.

[0041] In an implementation scenario, the original SEM image can be threshold segmented using the following formula:

[0042]

[0043] Among them, dst(x,y) represents the mask after threshold segmentation, thread represents the preset threshold of threshold segmentation, which can be adjusted for images of specific scenes. For the same batch of original SEM images, batch processing can be performed after the threshold is fixed. Furthermore, src(x,y) is the pixel value of the image after preprocessing, and maxval represents the maximum pixel value (that is, 255). That is, the pixel points exceeding the preset threshold thread are set to 0, and the pixel points less than the preset threshold thread are set to the maximum pixel value.

[0044] The image after threshold segmentation will have some small features (for example, the pixel area is less than 200), which will interfere with the subsequent feature extraction process. Therefore, the embodiment of the present application also proposes to perform connected domain analysis on the scanning electron microscope image after threshold segmentation to construct a mask label, then extract the target prompt information in the mask label, and then train the segmentation model based on the target prompt information to obtain the initial mask segmentation result to obtain a trained segmentation model. That is, the image after threshold segmentation is subjected to connected domain analysis to construct mask labels and target prompt information for training the segmentation model to further improve the model accuracy.

[0045] In one implementation scenario, a connected domain analysis can be performed on the scanning electron microscope image after threshold segmentation, and the area of ​​each connected domain can be calculated to select the target connected domain according to the area of ​​each connected domain to construct a mask label. That is, by performing a connected domain analysis on the image after threshold segmentation, the specific properties of each connected domain are obtained, and then the area of ​​the connected domain is screened to reconstruct a high-quality segmentation mask. In some embodiments, a target connected domain with an area greater than or equal to the area threshold can be selected to construct a mask label. Specifically, the mask label can be reconstructed by the following formula:

[0046]

[0047] Among them, dst′(x,y) represents the mask label, k i represents the i-th connected domain, and T represents the area threshold. That is, the target connected domains whose areas are greater than the area threshold are accumulated to construct the mask label.

[0048] In one embodiment, the target prompt information may include feature point prompt information and detection frame prompt information, and the target prompt information is obtained by the following operations: performing minimum rectangular frame detection on the mask label, and marking the feature points of the foreground area in the mask label to obtain feature point prompt information and detection frame prompt information. More specifically, a minimum rectangular frame detection is performed on each connected domain in the mask label, and the feature points of the foreground area in the mask segmentation result are marked to obtain feature point prompt information and detection frame prompt information. That is, the feature points and detection frames are marked in the segmentation result. Among them, the feature points of the foreground area in the mask label can be marked as 1. During the training process, each batch of training data will randomly select one of the feature point prompt information and detection frame prompt information for training. For the scanning electron microscope image of the chip, its mask has the characteristic of dense features, and the maximum number of independent areas for each batch of training can be adjusted according to the training equipment.

[0049] In some embodiments, before the original SEM image is input into the trained segmentation model for mask segmentation, an image cropping operation and / or an image filtering operation may be performed on the original SEM image to obtain a high-quality image suitable for the segmentation model input, thereby improving the accuracy of subsequent processing. Specifically, the aforementioned image cropping operation may be, for example, image scaling, and the aforementioned image filtering operation may be, for example, median filtering.

[0050] It is understood that the original scanning electron microscope image usually obtained by the scanning electron microscope has a high resolution (for example, 8192×8192). In order to save data annotation, training video memory and reduce training time, the image can be cropped. For example, the original scanning electron microscope image is scaled to 512×512, and the image is scaled in proportion during the scaling process to prevent the image features from being distorted. In addition, the collected original scanning electron microscope image usually has a large noise, the high-frequency components at the edge of the image are more, and the edge is jagged, so an image filtering operation can be used to pre-process the image. In some embodiments, for example, median filtering can be used, where the median filtering can be expressed as follows:

[0051] y(i)=Med(x i-N ,…x i+N ) (3)

[0052] Among them, y(i) represents the filtered image, Med(*) represents the pixel point x in the original SEM image. i-N,…x i+N The median value of .

[0053] That is, the embodiment of the present application performs threshold segmentation processing on the scanning electron microscope image data, and performs connected domain analysis and frame detection on the mask to obtain frame prompt information and point prompt information during training, and constructs a deep learning model fine-tuning method for dense targets based on the SAM large model. Thus, fine-tuning training of the large model for scanning electron microscope image segmentation can be achieved. Specifically, a feature screening method for particle scanning electron microscope images is adopted to automatically extract its mask image and feature points, and realize automatic labeling of model data. By fine-tuning the large model, the model can quickly adapt to the visual task of particle recognition on a small amount of data set to obtain accurate initial mask segmentation results.

[0054] Based on the trained segmentation model obtained above, in an implementation scenario, the original SEM image is input into the trained segmentation model for an initial mask segmentation operation to obtain an initial mask segmentation result, and the initial mask segmentation result is post-processed to obtain a final mask segmentation result. That is, the initial mask segmentation result is directly output via the trained segmentation model, and then the initial mask segmentation result is post-processed to obtain the final mask segmentation result. In some embodiments, the aforementioned post-processing operation may include but is not limited to one or more of morphological processing, feature clustering, or background removal, and the morphological processing may be, for example, hole filling or splitting.

[0055] Further, at step S303, feature information of the image is extracted based on the mask segmentation result. In some embodiments, the feature information of the aforementioned image may include but is not limited to the size information of the image, the size information of the image feature points (such as particles) and the initial magnification. In addition, the aforementioned feature information may also include, for example, the position information of the center of the image and the position information of the image feature points. Among them, the aforementioned position information corresponds to, for example, the lateral coordinates and longitudinal coordinates of the particles, and the aforementioned size information may include, for example, the width and height of the particles. Based on the extracted feature information, at step S304, the target electron microscope parameters required for the secondary shooting are calculated according to the feature information for use in the scanning electron microscope positioning shooting. In some embodiments, the target electron microscope parameters may include but are not limited to the target moving distance and target magnification of the image feature points. In addition, the aforementioned target electron microscope parameters may also be, for example, the objective lens current value, the astigmatism value, etc.

[0056] In one embodiment, the offset of the image feature points can be calculated based on the image size information and the size information of the image feature points, the target moving distance can be calculated based on the offset and the pixel value of the image feature points, and the vertical field of view and horizontal field of view can be calculated based on the image size information, the size information of the image feature points and the pixel value of the image feature points, so as to calculate the target magnification based on the vertical field of view, the horizontal field of view and the initial magnification.

[0057] Specifically, first, the center position of the image and the center position of the image feature point can be determined according to the size information of the image and the size information of the image feature point, and then the offset of the image feature point is calculated according to the difference between the center position of the image and the center position of the image feature point. Among them, the center position of the image is 1 / 2 of the height and width of the image, and the center position of the image feature point is 1 / 2 of the height and width of the image feature point. The aforementioned offset includes a lateral offset and a longitudinal offset. In an implementation scenario, the lateral offset can be calculated according to the difference between 1 / 2 of the width of the image and 1 / 2 of the width of the image feature point, and the longitudinal offset can be calculated according to the difference between 1 / 2 of the height of the image and 1 / 2 of the height of the image feature point. Based on the aforementioned obtained offset, the target movement distance can be calculated according to the product between the offset and the pixel value of the image feature point, and the target movement distance includes a lateral movement distance and a longitudinal movement distance.

[0058] As an example, assume that the image width is w, the height is h, and the image feature point (such as a particle) has a width of m and a height of n. Accordingly, the center position of the image is The center position of the image feature point is Therefore, the offset can be calculated by the following formula:

[0059]

[0060] Wherein, Δx represents the lateral offset, and Δy represents the longitudinal offset.

[0061] In an exemplary scenario, assuming that the pixel size value of the image feature point is p, the target moving distance can be calculated by the following formula:

[0062] δ[x′,y′]=[Δx*p,Δy*p] (5)

[0063] Among them, δx′ represents the lateral movement distance, and δy′ represents the longitudinal movement distance.

[0064] In an implementation scenario, for the target magnification, first determine the size between the width and height of the image and the size relationship between the width and height of the image feature point, and then calculate the vertical field of view and the horizontal field of view based on the determination results. Specifically, when the particle image is enlarged to 80% of the screen, if the width w of the image is greater than its height h (ie, w>h), the vertical field of view can be calculated based on HFW=h*p, where HFW represents the vertical field of view and p represents the pixel size value; if the width m of the image feature point is greater than its height n (ie, m>n), the horizontal field of view can be calculated based on HFW′=m*p, where HFW′ represents the horizontal field of view and p represents the pixel size value. Furthermore, the target magnification can be calculated based on the vertical field of view, the horizontal field of view and the initial magnification. As an example, assuming that the initial magnification is denoted as Mag, it can be calculated based on Calculate the target magnification, Mag′ represents the target magnification.

[0065] In an implementation scenario, based on the target moving distance and target magnification calculated above, it is possible to position and shoot the sample. Specifically, the image feature is moved to the center of the image according to the aforementioned target moving distance, and then it can be enlarged based on the target magnification. In some implementation scenarios, the method of moving the sample stage can be adopted, that is, by moving the sample, the offset of the scanning center relative to the sample is realized. In addition, the method of scanning center offset can also be adopted, that is, keeping the sample still, and realizing the offset of the scanning center relative to the sample by deflecting the scanning field. It can be understood that the change range of the deflection scanning field is limited, and too much offset center will cause image distortion. Therefore, the embodiment of the present application proposes that a small range of offsets adopts a deflection scanning field method, while a larger range of offsets adopts a mobile motion platform method. For example, if the current offset is less than the target value (e.g., 10um), the image is deflected to the center by a deflection scanning field. Conversely, the sample stage is moved along the X-axis and the Y-axis to move the particles to the center of the image. Similarly, all the shooting of all image feature points can be achieved.

[0066] In combination with the above description, it can be seen that the embodiment of the present application automatically segments the mask according to the original scanning electron microscope image taken initially, and automatically identifies the feature information, and then calculates the target electron microscope parameters required for the secondary shooting according to the feature information, so as to automatically locate and shoot the target electron microscope parameters directly, thereby reducing manual intervention, reducing the secondary shooting time, and improving shooting efficiency.

[0067] Figure 4 FIG. 1 is an exemplary flow chart showing the overall process of scanning electron microscope positioning and shooting according to an embodiment of the present application. Figure 4As shown in , at step S401, the initial electron microscope parameters for scanning electron microscope photography are first set. The electron microscope parameters may be, for example, resolution, magnification, acceleration voltage, etc. In actual application scenarios, the initial electron microscope parameters may be set according to the shooting requirements. Then, at step S402, the initial image shooting is performed. During the shooting process, the sample stage is moved so that the sample in the sample stage is in the lens to achieve initial image shooting and obtain an original scanning electron microscope image.

[0068] Further, at step S403, the scanning electron microscope image can be pre-processed. In certain embodiments, the pre-processing may include, for example, image cropping operations and / or image filtering operations, etc., so that the scanning electron microscope image is clearer and convenient for subsequent analysis. Then, at step S404, it is determined whether the image feature needs to be retaken (i.e., secondary shooting). If the image feature needs to be retaken, at step S405, the pre-processed original scanning electron microscope image is input to the trained segmentation model to perform a mask segmentation operation to obtain a mask segmentation result. In certain embodiments, the segmentation model may be, for example, a SAM large model. First, the pre-processed original scanning electron microscope image is input to the trained segmentation model to perform a mask segmentation operation to obtain an initial mask segmentation result, and then the initial mask segmentation result is post-processed (e.g., hole filling or splitting, feature clustering, background removal, etc.) to obtain a final mask segmentation result.

[0069] After obtaining the above-mentioned mask segmentation results, at step S406, feature information is extracted. As mentioned above, the feature information may be, for example, image size information, image feature point (e.g., particle) size information, and initial magnification. Among them, the size information includes width and height. Based on the extracted feature information, at step S407, the target electron microscope parameters required for secondary shooting are calculated according to the feature information. In one embodiment, the target electron microscope parameters may include but are not limited to the target moving distance and target magnification of the image feature points. For the target moving distance, it can be calculated in combination with the above-mentioned formula (4) and formula (5). For the target magnification, it can be based on Calculated, where HFW represents the vertical field of view, HFW′ represents the horizontal field of view, and Mag represents the initial magnification. For more details on the calculation of the target electron microscope parameters, please refer to the above Figure 3 The contents described are not repeated in this application.

[0070] Furthermore, at step S408, image reshoot is performed. In one implementation scenario, the scanning center can be offset relative to the sample by moving the sample stage or by shifting the scanning center, so as to complete, for example, the positioning shooting of particles. After the image reshoot is completed, at step S409, the image shooting is ended. If the image feature does not need to be reshot, directly jump to step S409 to end the image shooting.

[0071] Figure 5 FIG. 1 is an exemplary schematic diagram showing how to obtain a mask segmentation result based on a segmentation model according to an embodiment of the present application. Figure 5 As shown in , the original SEM image 510 is input into the trained SAM segmentation model 520 for an initial mask segmentation operation to obtain an initial mask segmentation result 530. The SAM segmentation model 520 may include an image encoding ("image encoder") module 521, a prompt encoding ("prompt encoder") module 522, and a mask decoding ("mask decoder") module 523. As can be seen from the foregoing, the image encoding module is used to output an image encoding result, and the prompt encoding module is used to receive prompt information, and combine it with the image encoding result and input it into the mask decoding module for mask decoding to obtain an initial mask segmentation result.

[0072] In one implementation scenario, before the original SEM image 510 is input into the trained SAM segmentation model 520 , the original SEM image 510 may be preprocessed, including, for example, image cropping operations and / or image filtering operations.

[0073] The pre-processed SEM image is subjected to initial mask segmentation via the trained SAM segmentation model to obtain an initial mask segmentation result 530, and then the initial mask segmentation result can be subjected to post-processing operations to obtain a final mask segmentation result 570. As described above, the post-processing operations may include, for example, hole filling or splitting 540, feature clustering 550, and background removal 560, so as to obtain a final mask segmentation result 570.

[0074] Figure 6 FIG. 2 shows an exemplary schematic diagram of calculating the offset according to an embodiment of the present application. Figure 6 The solid rectangular box in the figure represents the image, and the ellipse represents the image feature points (such as particles). In this scenario, assuming that the image width is w and the height is h, the corresponding center position is The width of the image feature point is m, the height is n, and its corresponding center position is Therefore, based on the above formula (4), the lateral offset Δx can be obtained as The longitudinal offset Δy is Furthermore, the target moving distance can be obtained according to the product of the offset and the pixel value of the image feature point (see the above formula (5)).

[0075] Figure 7 FIG. 2 shows an exemplary schematic diagram of secondary positioning shooting according to an embodiment of the present application. Figure 7 The left figure shows a schematic diagram of the initial shooting, the rectangular frame represents the image, and the polygons in the image represent the image features. Figure 7 The right figure of is a schematic diagram of the second positioning shooting of the embodiment of the present application, the rectangular frame represents the image, and the polygon in the image represents the image feature. As can be seen from the figure, the features after positioning shooting of the embodiment of the present application are clearer and are in the center of the image.

[0076] Figure 8 FIG. 8 is an exemplary structural block diagram showing a device 800 for scanning electron microscope positioning and shooting according to an embodiment of the present application. Figure 8 As shown in , the device 800 of the present application may include a processor 801 and a memory 802, wherein the processor 801 and the memory 802 communicate with each other via a bus. The memory 802 stores program instructions for scanning electron microscope positioning shooting. When the program instructions are executed by the processor 801, the method steps described in the above text in combination with the accompanying drawings are implemented: obtaining the original scanning electron microscope image acquired by initial shooting; inputting the original scanning electron microscope image into the trained segmentation model for mask segmentation operation to obtain the mask segmentation result; extracting the feature information of the image based on the mask segmentation result; and calculating the target electron microscope parameters required for secondary shooting based on the feature information for scanning electron microscope positioning shooting.

[0077] According to the above description in combination with the accompanying drawings, those skilled in the art can also understand that the embodiments of the present application can also be implemented by a software program. Therefore, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores computer-readable instructions for scanning electron microscope positioning and shooting. When the computer-readable instructions are executed by one or more processors, the present application in combination with the accompanying drawings can be implemented. Figure 3 A method for scanning electron microscopy positioning imaging is described.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0079] It should be noted that although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0080] It should be understood that when the terms "first", "second", "third" and "fourth" are used in the claims, the specification and the drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0081] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this application specification and claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in this application specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0082] Although the implementation methods of the present application are as above, the contents described are only examples adopted to facilitate the understanding of the present application, and are not intended to limit the scope and application scenarios of the present application. Any technician in the technical field described in the present application can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present application, but the scope of patent protection of the present application shall still be subject to the scope defined in the attached claims.

Claims

1. A method for positioning and photographing a scanning electron microscope, comprising: Acquire the original scanning electron microscope image acquired by initial shooting; Inputting the original SEM image into a trained segmentation model to perform a mask segmentation operation to obtain a mask segmentation result; Extracting feature information of the image based on the mask segmentation result; as well as The target electron microscope parameters required for the secondary shooting are calculated according to the characteristic information, so as to be used for the scanning electron microscope positioning shooting.

2. The method according to claim 1, wherein the segmentation model is trained by: Performing threshold segmentation on the original SEM image to obtain mask annotation data; and The original SEM image and the mask annotation data are input into the segmentation model to perform an initial mask segmentation operation, and an initial mask segmentation result is obtained to obtain the trained segmentation model.

3. The method according to claim 2, further comprising: Conduct connected domain analysis on the SEM images after threshold segmentation to construct mask labels; Extracting target prompt information in the mask label; as well as The segmentation model is trained based on the target prompt information to obtain the initial mask segmentation result, so as to obtain the trained segmentation model.

4. The method according to claim 3, wherein performing connected domain analysis on the SEM image after threshold segmentation to construct a mask label comprises: Performing connected domain analysis on the scanning electron microscope image after the threshold segmentation, and calculating the area of ​​each connected domain; as well as A target connected domain is selected according to the areas of the connected domains to construct the mask label.

5. The method according to claim 3, wherein the target prompt information includes feature point prompt information and detection box prompt information, and the target prompt information in the mask tag is extracted by the following operation: Minimum rectangular frame detection is performed on the mask label, and feature points of the foreground area in the mask label are marked to obtain the feature point prompt information and the detection frame prompt information.

6. The method according to claim 2, wherein before training the segmentation model, it also includes: An image cropping operation and / or an image filtering operation is performed on the original scanning electron microscope image.

7. The method according to any one of claims 1 to 3, wherein inputting the original SEM image into a trained segmentation model to perform a mask segmentation operation to obtain a mask segmentation result comprises: Inputting the original SEM image into the trained segmentation model to perform an initial mask segmentation operation to obtain the initial mask segmentation result; as well as A post-processing operation is performed on the initial mask segmentation result to obtain a final mask segmentation result.

8. The method according to claim 7, wherein the post-processing operation comprises at least one or more of morphological processing, feature clustering or background removal.

9. The method according to claim 1, wherein the feature information at least includes image size information, image feature point size information and initial magnification, and the target electron microscope parameters at least include target moving distance and target magnification of image feature points.

10. The method according to claim 9, wherein calculating the target electron microscope parameters required for secondary shooting according to the feature information comprises: Calculate the offset of the image feature point based on the size information of the image and the size information of the image feature point; Calculate the target moving distance according to the offset and the pixel value of the image feature point; Calculate the vertical field of view and the horizontal field of view based on the size information of the image, the size information of the image feature points, and the pixel values ​​of the image feature points; as well as The target magnification is calculated according to the vertical field of view, the horizontal field of view, and the initial magnification.

11. A device for positioning and photographing a scanning electron microscope, comprising: processor; as well as A memory having computer instructions for positioning and photographing with a scanning electron microscope stored thereon, wherein when the computer instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.

12. A computer-readable storage medium having stored thereon computer program instructions for positioning and photographing with a scanning electron microscope, wherein when the computer program instructions are executed by one or more processors, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Moving target detection method and device and terminal equipment

    CN112101135A

  • Microscope system and method for image segmentation

    CN114326077A

  • Microscope system and method for calibration verification

    CN114326078A

  • Microscopy System and Method for Generating Training Data

    US20220114387A1

Cited By

  • Method, apparatus and storage medium for collision monitoring in scanning electron microscope

    CN119151995A

  • Dislocation identification system based on gallium oxide wafer and identification method thereof

    CN119888726A