Scanning electron microscope image processing method for weakly conductive materials based on unsupervised learning
The scanning electron microscope images of weakly conductive materials are processed through the bidirectional loop generative adversarial network model of unsupervised learning, which solves the shortcomings of relying on paired data in the existing technology, achieves efficient improvement of images of weakly conductive materials, simplifies the production of data sets and improves Improve image processing efficiency.
Patent Information
- Application Number
- CN202410278993.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-03-12
AI Technical Summary
When processing SEM images of weakly conductive materials, the existing technology relies on paired image data, resulting in the inability to effectively process blurred and clear images of weakly conductive samples in actual scenarios, thus hindering the accuracy of image processing.
The bidirectional cyclic generative adversarial network (CycleGAN) model based on unsupervised learning is used to train through blurred and clear images that do not require pairing, and an unsupervised network model is constructed, including the first and second generative networks and the judgment network, and the generative adversarial loss is used , cycle consistency loss and identity loss are optimized to achieve image improvement.
There is no need to pair data to train the network, which simplifies the production of data sets. By generating adversarial networks, the quality of scanning electron microscope images of weakly conductive materials is quickly and effectively improved, and the image processing efficiency is improved.
Smart Images

Figure CN118115390B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a scanning electron microscope image processing method of weakly conductive materials based on unsupervised learning. Background Art
[0002] The scanning electron microscope is a widely used electronic instrument. It uses the function of the electronic system to magnify the observed object and display the microscopic structure, allowing people to understand and study the characteristics of the object from the microscopic morphology. The images taken by the scanning electron microscope are real and three-dimensional, providing a way to obtain fine structural information, and are widely used in many scientific fields. At present, it has been widely used in biology, pathology, cell histology, pharmaceutical chemistry, clinical diagnosis, material testing, aerospace, geology and archaeology, electronic component performance testing and analysis and other fields.
[0003] For weakly conductive samples, such as most polymers and some semiconductor materials, they often show excess electrons or free charges on their surfaces, which hinder the transmission of electronic signals and lead to a significant reduction in imaging contrast and clarity. In addition, organic contamination introduced during material synthesis or processing can also reduce the conductivity of the sample. Under the action of the electron beam, organic matter decomposes into carbon-hydrogen compounds and covers the surface of the sample. This will lead to the accumulation of charges, thereby reducing the quality of scanning electron microscope imaging.
[0004] Scanning electron microscopes produce high-resolution images by focusing an electron beam onto the sample surface and detecting the emitted secondary electrons. Therefore, a prerequisite for obtaining high-resolution, high-quality scanning electron microscope images is the high conductivity of the sample. However, due to the limitations of the material imaging principle, the quality of scanning electron microscope imaging is significantly impaired for weakly conductive materials or structures caused by intrinsic properties or organic doping, which hinders the accuracy of subsequent structure-related analysis. In order to improve the conductivity of the sample, the usual method is to coat the sample surface with a gold film by vacuum sputtering. However, the gold layer will cover the original material information, thereby reducing the elemental contrast of the material. For samples with a scale of hundreds of nanometers or even smaller, the gold layer will obscure the details of the sample structure, resulting in an incorrect description of the surface structure. On the other hand, deep learning has made significant progress in scanning electron microscope imaging, but existing research mainly relies on supervised learning, which requires paired data containing blurred and clean images for network training; however, in actual scenarios involving weakly conductive samples, it is challenging to obtain one-to-one corresponding scanning electron microscope images with blurred and clear versions in the same field of view. In this case, there are no pairs of high and low quality images, making supervised image processing methods unable to be used to deal with this image problem. Summary of the invention
[0005] The present invention provides a scanning electron microscope image processing method for weakly conductive materials based on unsupervised learning, aiming to solve the problem that the prior art relies on paired image data and cannot realize microscopic imaging processing.
[0006] Specifically, the present invention provides a method for processing a weakly conductive material scanning electron microscope image based on unsupervised learning, comprising the following steps:
[0007] S1, obtaining a scanning electron microscope image of a weakly conductive material as an original image b, and constructing a blurred image a based on the original data;
[0008] S2. Construct an unsupervised network model, wherein the unsupervised network model includes a first generation network G and a first judgment network D. A , second generation network F, second judgment network D B ;
[0009] S3, training the unsupervised network model, inputting the blurred image a into the first generation network G to obtain a first clear generation image G(a), then inputting the first clear generation image G(a) into the second generation network F to obtain a second clear generation image F(G(a)), and at the same time, inputting the blurred image a into the second generation network F to obtain a second blurred image F(a);
[0010] S4, judging network D according to the second B , the blurred image a, the second clear generated image F(G(a)) calculate the first loss function L1, and update the network training parameters of the first generating network G according to the first loss function L1;
[0011] S5, inputting the original image b into the second generation network F to obtain a first blurred generation image F(b), then inputting the second blurred generation image F(b) into the first generation network G to obtain a second blurred generation image G(F(b)), and at the same time, inputting the original image b into the first generation network G to obtain a second original image G(b);
[0012] S6, judging network D according to the first A , the original image b, the second blurred generated image G(F(b)) calculate the second loss function L2, and update the network training parameters of the second generating network F according to the second loss function L2;
[0013] S7, using a preset optimization method to optimize the training process of the unsupervised network model, and determine whether the total loss of the first loss function L1 and the second loss function L2 meets the preset training conditions, if not, return to step S3; if so, save all network training parameters, and output the unsupervised network model that has completed the training as a scanning electron microscope image optimization model for weakly conductive materials;
[0014] S8. Input the fuzzy weakly conductive material scanning electron microscope image to be optimized into the weakly conductive material scanning electron microscope image optimization model, and obtain a clear weakly conductive material scanning electron microscope image after being processed and output by the first generation network G.
[0015] Furthermore, the first loss function L1 satisfies the following relationship:
[0016] L1=L1 GAN +L1 cycle +L1 id ;
[0017] Among them, L1 GAN is the first generation adversarial loss, which satisfies:
[0018]
[0019] L1 cycle is the first cycle consistency loss, which satisfies:
[0020] L1 cycle =(1-SSIM(F(G(a)),a));
[0021] Among them, SSIM is the structural similarity calculation;
[0022] L1 id is the first identity loss, which satisfies:
[0023] L1 id =MSE(aF(a));
[0024] Among them, MSE is the mean square error calculation.
[0025] Furthermore, the second loss function L2 satisfies the following relationship:
[0026] L2=L2 GAN +L2 cycle +L2 id ;
[0027] Among them, L2 GAN is the first generation adversarial loss, which satisfies:
[0028]
[0029] L2 cycle is the first cycle consistency loss, which satisfies:
[0030] L2 cycle =(1-SSIM(G(F(b)),b));
[0031] Among them, SSIM is the structural similarity calculation;
[0032] L2 id is the first identity loss, which satisfies:
[0033] L2 id =MSE(bG(b));
[0034] Among them, MSE is the mean square error calculation.
[0035] Furthermore, in step S7, the total loss of the first loss function L1 and the second loss function L2 is calculated using the following expression:
[0036] L(G,F,A,B)=(L1 GAN +L2 GAN )+λ1(L1 cycle +L2 cycle )+λ2(L1 id +L2 id );
[0037] Among them, λ1 and λ2 are the weights of cycle consistency loss and identity loss respectively.
[0038] Furthermore, the unsupervised network model is based on a bidirectional cycle generative adversarial network CycleGAN.
[0039] Furthermore, the preset optimization method is a gradient descent method.
[0040] Furthermore, the preset training condition is that the total loss of the first loss function L1 and the second loss function L2 satisfies Nash equilibrium.
[0041] Furthermore, in step S4, after the network training parameters of the first generating network G are updated using the first loss function L1, the second generating network F, the first generating network G, and the first discriminant network D are maintained. A The network training parameters remain unchanged.
[0042] Furthermore, in step S6, after the network training parameters of the first generating network F are updated using the second loss function L2, the first generating network G, the second generating network F, and the second discriminant network D are maintained. B The network training parameters remain unchanged.
[0043] The beneficial effect achieved by the present invention is that an unsupervised learning network model based on a bidirectional cyclic generative adversarial network CycleGAN is constructed to improve the scanning electron microscope imaging quality of weakly conductive materials. This method uses unpaired data to train the network and does not require one-to-one correspondence between clear and blurred images, making data set preparation more convenient and simple. Moreover, based on the generative adversarial network model, clear scanning electron microscope images of weakly conductive materials can be quickly, conveniently and effectively obtained without any complex physical operations, thereby improving image processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the steps of a scanning electron microscope image processing method of weakly conductive materials based on unsupervised learning provided by an embodiment of the present invention;
[0045] Figure 2 Schematic diagram of an unsupervised learning framework based on a bidirectional cycle generative adversarial network CycleGAN provided by an embodiment of the present invention;
[0046] Figure 3 is a schematic diagram of the structure of an unsupervised network model provided by an embodiment of the present invention;
[0047] Figure 4 is a schematic diagram of a discriminant network structure provided by an embodiment of the present invention;
[0048] Figure 5 This is a schematic diagram of a scanning electron microscope image of a fuzzy weakly conductive material that needs to be optimized provided by an embodiment of the present invention;
[0049] Figure 6 It is a schematic diagram of a clear scanning electron microscope image of a weakly conductive material provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0051] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of the steps of a scanning electron microscope image processing method for weakly conductive materials based on unsupervised learning provided by an embodiment of the present invention. The scanning electron microscope image processing method for weakly conductive materials based on unsupervised learning comprises the following steps:
[0052] S1. Acquire a scanning electron microscope image of a weakly conductive material as an original image b, and construct a blurred image a based on the original data.
[0053] During the implementation process, 2000 pairs of scanning electron microscope images of normal samples are collected as clear original images, and the original images are contaminated by automatic or manual processing to obtain blurred scanning electron microscope images of weakly conductive samples as blurred images. In order to facilitate network training and testing, 1800 sets of data can be used for network training as training sets, and 200 sets can be used for network testing as test sets.
[0054] S2. Construct an unsupervised network model, wherein the unsupervised network model includes a first generation network G and a first judgment network D. A , second generation network F, second judgment network D B .
[0055] The unsupervised network model is based on the bidirectional cycle generative adversarial network CycleGAN, which is characterized by an unsupervised learning method. Figure 2 , Figure 3 and Figure 4 , Figure 2 is a schematic diagram of an unsupervised learning framework based on a bidirectional cycle generative adversarial network CycleGAN provided by an embodiment of the present invention, Figure 3 is a schematic diagram of the structure of an unsupervised network model provided by an embodiment of the present invention, Figure 4 It is a schematic diagram of the discrimination network structure provided by an embodiment of the present invention.
[0056] S3. Train the unsupervised network model, input the blurred image a into the first generation network G to obtain a first clear generated image G(a), then input the first clear generated image G(a) into the second generation network F to obtain a second clear generated image F(G(a)), and at the same time, input the blurred image a into the second generation network F to obtain a second blurred image F(a).
[0057] S4, judging network D according to the second B , the blurred image a, and the second clear generated image F(G(a)) calculate the first loss function L1, and update the network training parameters of the first generating network G according to the first loss function L1.
[0058] The first loss function L1 satisfies the following relationship:
[0059] L1=L1 GAN +L1 cycle +L1 id ;
[0060] Among them, L1 GAN is the first generation adversarial loss, which satisfies:
[0061]
[0062] L1 cycle is the first cycle consistency loss, which satisfies:
[0063] L1 cycle =(1-SSIM(F(G(a)),a));
[0064] Among them, SSIM is the structural similarity calculation;
[0065] L1 id is the first identity loss, which satisfies:
[0066] L1 id =MSE(aF(a));
[0067] Among them, MSE is the mean square error calculation.
[0068] In step S4, after updating the network training parameters of the first generator network G using the first loss function L1, the second generator network F, the first generator network G, and the first discriminant network D are maintained. A The network training parameters remain unchanged.
[0069] S5. Input the original image b into the second generation network F to obtain a first blurred generated image F(b). Then, input the second blurred generated image F(b) into the first generation network G to obtain a second blurred generated image G(F(b)). At the same time, input the original image b into the first generation network G to obtain a second original image G(b).
[0070] S6, judging network D according to the first A , the original image b, and the second blurred generated image G(F(b)) calculate the second loss function L2, and update the network training parameters of the second generating network F according to the second loss function L2.
[0071] The second loss function L2 satisfies the following relationship:
[0072] L2=L2 GAN +L2 cycle +L2 id ;
[0073] Among them, L2 GAN is the first generation adversarial loss, which satisfies:
[0074]
[0075] L2 cycle is the first cycle consistency loss, which satisfies:
[0076] L2 cycle =(1-SSIM(G(F(b)),b));
[0077] Among them, SSIM is the structural similarity calculation;
[0078] L2 id is the first identity loss, which satisfies:
[0079] L2 id =MSE(bG(b));
[0080] Among them, MSE is the mean square error calculation.
[0081] In step S6, after the network training parameters of the first generating network F are updated using the second loss function L2, the first generating network G, the second generating network F, and the second discriminant network D are maintained. B The network training parameters remain unchanged.
[0082] S7. Use a preset optimization method to optimize the training process of the unsupervised network model, and determine whether the total loss of the first loss function L1 and the second loss function L2 meets the preset training conditions. If not, return to step S3; if so, save all network training parameters and output the unsupervised network model that has completed training as a scanning electron microscope image optimization model for weakly conductive materials.
[0083] The preset optimization method is the gradient descent method.
[0084] In step S7, the total loss of the first loss function L1 and the second loss function L2 is calculated using the following expression:
[0085] L(G,F,A,B)=(L1 GAN +L2 GAN )+λ1(L1 cycle +L2 cycle )+λ2(L1 id +L2 id );
[0086] Among them, λ1 and λ2 are the weights of cycle consistency loss and identity loss respectively. The weights determine the impact of different losses on the overall loss function. For example, λ1 and λ2 can be set to 10 and 5 respectively during the implementation process.
[0087] The preset training condition is that the total loss of the first loss function L1 and the second loss function L2 satisfies Nash equilibrium.
[0088] S8. Input the fuzzy weakly conductive material scanning electron microscope image to be optimized into the weakly conductive material scanning electron microscope image optimization model, and obtain a clear weakly conductive material scanning electron microscope image after being processed and output by the first generation network G.
[0089] Please refer to Figure 5 and Figure 6 , which are respectively a schematic diagram of a fuzzy weakly conductive material scanning electron microscope image that needs to be optimized and a corresponding schematic diagram of a clear weakly conductive material scanning electron microscope image provided in an embodiment of the present invention. It can be seen that the image output after processing by the first generation network G has improved clarity compared with the original image.
[0090] The beneficial effect achieved by the present invention is that an unsupervised learning network model based on a bidirectional cyclic generative adversarial network CycleGAN is constructed to improve the scanning electron microscope imaging quality of weakly conductive materials. This method uses unpaired data to train the network and does not require one-to-one correspondence between clear and blurred images, making data set preparation more convenient and simple. Moreover, based on the generative adversarial network model, clear scanning electron microscope images of weakly conductive materials can be quickly, conveniently and effectively obtained without any complex physical operations, thereby improving image processing efficiency.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0092] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0094] The embodiments of the present invention are described above in conjunction with the accompanying drawings. What is disclosed is only the preferred embodiment of the present invention. However, the present invention is not limited to the above-mentioned specific implementation manner. The above-mentioned specific implementation manner is only illustrative rather than restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms and equivalent changes without departing from the scope of protection of the purpose of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A SEM image processing method for weakly conductive materials based on unsupervised learning, It is characterized in that The following steps are involved: S1, obtaining a scanning electron microscope image of a weakly conductive material as an original image b, and constructing a blurred image a based on the original image; S2. Construct an unsupervised network model, wherein the unsupervised network model includes a first generation network G and a first judgment network D. A , second generation network F, second judgment network D B ; S3, training the unsupervised network model, inputting the blurred image a into the first generation network G to obtain a first clear generation image G(a), then inputting the first clear generation image G(a) into the second generation network F to obtain a second clear generation image F(G(a)), and at the same time, inputting the blurred image a into the second generation network F to obtain a second blurred image F(a); S4, judging network D according to the second B , the blurred image a, the second clear generated image F(G(a)) calculate the first loss function L1, and update the network training parameters of the first generating network G according to the first loss function L1; S5, inputting the original image b into the second generation network F to obtain a first blurred generation image F(b), then inputting the first blurred generation image F(b) into the first generation network G to obtain a second blurred generation image G(F(b)), and at the same time, inputting the original image b into the first generation network G to obtain a second original image G(b); S6. Determine network D based on the first A , the original image b, the second blurred generated image G(F(b)) calculate the second loss function L2, and update the network training parameters of the second generating network F according to the second loss function L2; S7, using a preset optimization method to optimize the training process of the unsupervised network model, and determining whether the total loss of the first loss function L1 and the second loss function L2 meets the preset training conditions, if not, returning to step S3; If yes, save all network training parameters, and output the unsupervised network model that has completed training as a scanning electron microscope image optimization model for weakly conductive materials; S8, inputting the fuzzy weak conductive material scanning electron microscope image to be optimized into the weak conductive material scanning electron microscope image optimization model, and obtaining a clear weak conductive material scanning electron microscope image after being processed and output by the first generation network G; Among them, the first loss function L1 satisfies the following relationship: L1=L1 GAN +L1 cycle +L1 id , Among them, L1 GAN is the first generation adversarial loss, which satisfies: ; L1 cycle is the first cycle consistency loss, which satisfies: ; Among them, SSIM is the structural similarity calculation; L1 id is the first identity loss, which satisfies: ; Among them, MSE is the mean square error calculation; The second loss function L2 satisfies the following relationship: <h2 style=";text-align:left;direction:ltr">L2=L2<h2 style=";text-align:left;direction:ltr"> GAN <h2 style=";text-align:left;direction:ltr"> +L2<h2 style=";text-align:left;direction:ltr"> cycle <h2 style=";text-align:left;direction:ltr"> +L2<h2 style=";text-align:left;direction:ltr"> id <h2 style=";text-align:left;direction:ltr"> ; Among them, L2 GAN is the first generation adversarial loss, which satisfies: ; L2 cycle is the first cycle consistency loss, which satisfies: ; Among them, SSIM is the structural similarity calculation; L2 id is the first identity loss, which satisfies: ; Among them, MSE is the mean square error calculation; In step S7, the total loss of the first loss function L1 and the second loss function L2 is calculated using the following expression: ; Among them, λ 1 and λ 2 are the weights of cycle consistency loss and identity loss, respectively.
2. The method for processing scanning electron microscope images of weakly conductive materials based on unsupervised learning according to claim 1, It is characterized in that The unsupervised network model is based on a bidirectional cycle generative adversarial network CycleGAN.
3. The method for processing scanning electron microscope images of weakly conductive materials based on unsupervised learning according to claim 1, It is characterized in that The preset optimization method is the gradient descent method.
4. The method for processing scanning electron microscope images of weakly conductive materials based on unsupervised learning according to claim 1, It is characterized in that The preset training condition is that the total loss of the first loss function L1 and the second loss function L2 satisfies Nash equilibrium.
5. The method for processing scanning electron microscope images of weakly conductive materials based on unsupervised learning according to claim 1, It is characterized in that In step S4, after the network training parameters of the first generating network G are updated using the first loss function L1, the second generating network F, the first generating network G, and the first judging network D are maintained. A The network training parameters remain unchanged.
6. The method for processing scanning electron microscope images of weakly conductive materials based on unsupervised learning according to claim 1, It is characterized in that In step S6, after the network training parameters of the second generation network F are updated using the second loss function L2, the first generation network G, the second generation network F, and the second judgment network D are maintained. B The network training parameters remain unchanged.
