Pollen image synthesis method, device and electronic device integrating multi-layer information

The pollen image synthesis method through multi-layer information fusion solves the problems of inaccurate depth information and missing information when generating pollen images from a single layer of images. It generates high-quality, content-rich pollen images, improves image utilization, and is suitable for depth applications. Learning model for pollen detection task.

CN113723470BActive Publication Date: 2024-08-27ZHIBOYUN INFORMATION TECH (GUANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110908383.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-09
Publication Date
2024-08-27
Estimated Expiration
2041-08-09

AI Technical Summary

Technical Problem

In the existing technology, pollen images are generated based on single-layer images, resulting in inaccurate depth information of the generated pollen images, missing important information, low image utilization, and inability to generate high-quality new data containing rich information.

Method used

A pollen image synthesis method that fuses multi-layer information is used to obtain multi-layer pollen images, calculate real perception scores, divide them into image pairs and compare them, input the twin neural network and conditional generative adversarial network, and use the quality score ranking information to generate synthetic pollen images to ensure that the depth information of the image is fully integrated and important information is retained.

Benefits of technology

The generated pollen images are rich in content and high in quality, which improves the utilization of image information and is suitable for pollen detection tasks of deep learning models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113723470B
    Figure CN113723470B
Patent Text Reader

Abstract

The present invention provides a pollen image synthesis method, device and electronic device that fuse multi-layer information, the method comprising: obtaining a multi-layer pollen image corresponding to a focal plane obtained by scanning the same pollen content; calculating the true perception score of each multi-layer pollen image, dividing the multi-layer pollen image into multiple pairs of images, comparing the true perception score in each pair of images, and using the comparison result as a label; inputting each pair of images and labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen image; inputting the multi-layer pollen image and its quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image. The present invention achieves the purpose of fully fusing the depth information of the image, retaining important information and improving the utilization rate of multi-layer information during the synthesis process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer image processing, and in particular to a pollen image synthesis method, device and electronic equipment integrating multi-layer information. Background Art

[0002] In my country, due to the seasonal and geographical distribution patterns of airborne pollen, when the seasons change, some people will have strong allergic reactions due to pollen particles in the air, which seriously affects their normal life. In recent years, pollen detection methods based on deep learning have been applied to the prevention of allergic diseases.

[0003] However, deep learning models have many adjustable parameters, and their performance is heavily dependent on a large number of data samples. In actual scenarios, pollen data collection is very complex and time-consuming, resulting in a limited number of existing pollen data samples, and a lack of high-quality pollen data samples, which cannot meet the data volume requirements of deep learning tasks.

[0004] In order to solve the problem of insufficient pollen data, pollen images need to be synthesized. Existing technologies use single-layer images as input for image synthesis, which ignores the fusion and complementarity of multi-layer information, and easily leads to inaccurate depth information of images, missing important information, low image utilization, and other problems, and cannot generate high-quality new data containing rich information. Summary of the invention

[0005] The present invention provides a pollen image synthesis method, device and electronic device integrating multi-layer information, so as to solve the defects in the prior art of generating pollen images based on single-layer images, resulting in inaccurate depth information of the generated pollen images, missing important information and low image utilization, so as to achieve effective complementarity between multi-layer pollen images and generate pollen images with rich content and high quality.

[0006] The present invention provides a pollen image synthesis method integrating multi-layer information, comprising:

[0007] Acquire a multi-layer pollen image corresponding to a focal plane obtained by scanning the same pollen content;

[0008] Calculating the true perception score of each of the multi-layer pollen images, dividing the multi-layer pollen images into a plurality of pairs of images, comparing the true perception scores in each pair of images, and using the comparison results as labels;

[0009] Inputting each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen images;

[0010] The multi-layer pollen images and their quality score ranking information are input into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen images as a conditional constraint for the generator and the discriminator.

[0011] According to the pollen image synthesis method for fusing multi-layer information provided by the present invention, the calculating of the true perception score of each of the multi-layer pollen images includes: using the Tenengrad gradient method to calculate the true perception score of each of the multi-layer pollen images.

[0012] According to the pollen image synthesis method integrating multi-layer information provided by the present invention, the branch network of the twin neural network is an Alexnet network, and the output of the branch network is the quality score of each pair of images.

[0013] According to the pollen image synthesis method integrating multi-layer information provided by the present invention, the input of the generator of the conditional generative adversarial network is:

[0014] The multi-layer pollen image and the conditional constraints.

[0015] According to the pollen image synthesis method integrating multi-layer information provided by the present invention, the input of the discriminator of the conditional generative adversarial network is:

[0016] The pollen image with the highest quality score determined according to the quality score ranking information of the multi-layer pollen images, the pollen image generated by the generator and the conditional constraints are used.

[0017] According to the pollen image synthesis method integrating multi-layer information provided by the present invention, the discriminator of the conditional generative adversarial network includes three convolutional layers, and each convolutional layer adopts LReLU as an activation function.

[0018] According to the pollen image synthesis method integrating multi-layer information provided by the present invention, the loss function of the conditional generative adversarial network includes an absolute value loss function, a perceptual loss function and a style loss function.

[0019] The present invention also provides a pollen image synthesis device integrating multi-layer information, comprising:

[0020] A pollen image acquisition module, used to acquire a multi-layer pollen image corresponding to the focal plane obtained by scanning the same pollen content;

[0021] A multi-layer pollen preprocessing module, used to calculate the true perception score of each of the multi-layer pollen images, divide the multi-layer pollen images into multiple pairs of images, compare the true perception scores in each pair of images, and use the comparison results as labels;

[0022] A ranking information extraction module, used for inputting each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen image;

[0023] A pollen image synthesis module is used to input the multi-layer pollen images and their quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen images as a conditional constraint for the generator and the discriminator.

[0024] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the pollen image synthesis method for fusing multiple layers of information as described in the first aspect are implemented.

[0025] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the pollen image synthesis method for fusing multiple layers of information as described in the first aspect.

[0026] The pollen image synthesis method, device and electronic device for fusing multiple layers of information provided by the present invention use a twin neural network to extract the sorting information between multiple layers of pollen images on the basis of multiple layers of pollen data, thereby generating constraints, and then guiding the conditional generative adversarial network to synthesize a new pollen image that is close to the image with the highest quality score, so as to fully fuse the depth information of the image, retain important information and improve the utilization rate of multiple layers of information during the synthesis process. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 This is one of the flow diagrams of the pollen image synthesis method for fusing multi-layer information provided by the present invention;

[0029] Figure 2 It is a multi-layer pollen image information fusion map provided by the present invention;

[0030] Figure 3 This is the second flow chart of the pollen image synthesis method for fusing multi-layer information provided by the present invention;

[0031] Figure 4 It is a schematic diagram of the structure of the pollen image synthesis device for fusing multi-layer information provided by the present invention;

[0032] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Figure 1 is a flowchart of a pollen image synthesis method that fuses multiple layers of information according to an embodiment of the present invention, referring to Figure 1 The pollen image synthesis method for fusing multi-layer information proposed in the embodiment of the present invention includes:

[0035] Step 110, obtaining a multi-layer pollen image corresponding to the focal plane obtained by scanning the same pollen content;

[0036] Step 120, calculating the real perception score of each of the multi-layer pollen images, dividing the multi-layer pollen images into a plurality of pairs of images, comparing the real perception scores in each pair of images, and using the comparison results as labels;

[0037] Step 130, inputting each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen images;

[0038] Step 140, input the multi-layer pollen image and its quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined based on the quality score ranking information of the multi-layer pollen image as a conditional constraint for the generator and the discriminator.

[0039] Figure 2 This is a multi-layer pollen image information fusion map provided by the present invention, referring to Figure 2, the multi-layer pollen images corresponding to the focal plane obtained by scanning the same pollen content include pollen images of multiple focal planes with equal spacing, and in three-dimensional microscopic imaging, each two-dimensional image imaged includes an image from the current focal plane and a blurred image of the adjacent defocused layer, so the two-dimensional images of different layers of multi-layer pollen data have a strong correlation in content and obvious differences in quality. More importantly, the information expressed is richer than that of a single-layer image, and can be effectively fused and complemented. To this end, the present invention improves the existing image synthesis method based on the characteristics of pollen data, and proposes a pollen image synthesis method based on multi-layer information fusion, which ensures the effective complementarity between multi-layer pollen image information and avoids the omission and loss of available pollen information to a certain extent. Thereby, a new pollen image with richer content and higher quality is obtained, and the utilization rate of image information is improved, which has very important practical significance for the pollen detection task based on the deep learning model.

[0040] The pollen image synthesis method based on multi-layer information fusion described in the present invention consists of three stages, wherein the first stage is a multi-layer pollen preprocessor, which selects perception indicators to calculate the true perception score of the image, and compares the scores between image pairs. The comparison results are defined as data labels. The second stage is a ranking information learner. The training process of this stage uses the image pairs and labels generated in the first stage as input to learn the ranking information between multi-layer pollen data. During the test process, the quality evaluation scores corresponding to the multi-layer pollen images, the relative ranking information between the multi-layer pollen images, and the pollen image with the highest current quality score are output. The third stage is a pollen data synthesizer. In this stage, conditional constraints, generators, and discriminators are designed respectively, and the pollen image with the highest quality score is used as the synthesis target to guide the conditional generative adversarial network to generate new pollen images close to the highest quality score.

[0041] Specifically, Figure 3 This is the second flow chart of the pollen image synthesis method for fusing multi-layer information provided by the present invention, refer to Figure 3 The pollen image synthesis method based on multi-layer information fusion of the present invention includes:

[0042] Step S1: multi-layer pollen pre-processor.

[0043] Step S11: Arrange multi-layer pollen data. The present invention selects multi-layer pollen data as the basic data set. Images of the same pollen content contain m layers of corresponding focal plane scan images, where m is a positive integer greater than 1, and the m layers of pollen images are combined into a pair of two to construct a pollen image pair.

[0044] Step S12: Set the perceptual quality label. In order to highlight the difference in image quality caused by the out-of-focus blur in the multi-layer pollen image, the present invention selects the Tenengrad gradient method as the non-reference image quality score evaluation. The Tenengrad gradient method is a commonly used image clarity evaluation function and a gradient-based function. It specifically uses the Sobel operator to calculate the gradients in the horizontal and vertical directions respectively. The main measurement indicator is the average grayscale value of the image after being processed by the Sobel operator. The higher the score obtained in the same scene, the higher the gradient value, which means the better the image quality. In the present invention, we believe that a well-focused image has sharper edges and therefore has a larger gradient function value.

[0045] Assume that the input image is I, and the Tenengrad gradient calculation obtains the true image quality score of the pollen image, which is denoted as P, where T represents the mapping of the Tenengrad gradient method. The specific calculation formula of P is as follows:

[0046]

[0047]

[0048] Where N is the total number of pixels in the image, S(x,y) represents the gradient of image I at point (x,y), and G x , G y They are the horizontal and vertical gradient values ​​extracted by the Sobel operator respectively.

[0049] The present invention has certain flexibility, and the specific perceptual quality index can be changed according to task requirements.

[0050] Step S13: Generate data pair labels. For a pair of images, given two pollen image inputs set as I1 and I2, their corresponding true quality perception scores are P1 and P2. According to the relative size of the true quality perception scores, the present invention sets the label of the image pair, recorded as The specific formula is as follows:

[0051]

[0052] fully represents the magnitude relationship of the relative quality perception scores in the image pair. This means that among the input image pairs, the real perceptual quality score of image I1 is lower than that of image I2, that is, the edge gradient information of I1 is clearer and the image quality of I1 is better than that of I2; if This means that among the input image pairs, the real perceptual quality score of image I2 is lower than that of image I1, that is, the edge gradient information of I2 is clearer and the image quality of I2 is better than that of I1.

[0053] Step S2: Ranking information learner. The feature extraction module in the ranking information learner uses a classic convolutional neural network (CNN) to construct a twin network structure to learn the ranking information between multiple layers of pollen images. The present invention names the loss function as the ranking pair loss to measure whether the quality score predicted by the ranking information extraction model is consistent with the actual perception score.

[0054] Step S21: Twin network training. The present invention is based on the classic CNN network and constructs a twin network structure to train a ranking information learner to learn the ranking information between multiple layers of pollen images. The twin network has two identical network branches. The present invention uses the pollen data image pairs and labels obtained in step S1 as inputs to the two branches of the twin network. The branch network adopts the classic Alexnet network, and its main function is to extract features from pollen images of different layers. The network consists of 8 layers in total, of which the first 5 layers are convolutional layers and the last 3 layers are fully connected layers. The last layer of the output is used to quantify the score prediction results of the ranking information learner.

[0055] During the whole process of network training, we only care about the relative ranking of image quality scores, not the quality scores themselves. During the whole training process, the two branch networks share all the parameters in the training process and generate their own prediction scores. Finally, they are jointly input into the loss function.

[0056] Step S22: Loss function content. For a pair of images, given two pollen image inputs set as I1 and I2, we let the ranking information learner learn the ranking information between multiple layers of pollen images, and the corresponding prediction quality scores are S1 and S2, respectively, and the corresponding relationship is as follows:

[0057] S1=R(I1;θ R )

[0058] S2=R(I2;θ R )

[0059] Where R represents the mapping of the ranking information learner to predict the quality score, θ R Represents all parameters in the twin network training process.

[0060] In order to make the ranking information learned by the ranking information learner closer to the real perceived quality score, the present invention sets a ranking loss function, the specific contents are as follows:

[0061]

[0062] Among them, L represents the mapping of a loss function, Represents the label of the data pair during training. ε is to increase the distance between S1 and S2.

[0063] The gradient of the loss function is calculated by back-propagation and the Siamese network is trained using the stochastic gradient method.

[0064] Step S3: Pollen data synthesizer. Generative adversarial networks (GANs) can learn the distribution of data through training and then generate new samples. However, the images generated by GANs are random, and it is impossible to control the category of the generated images. Therefore, the present invention introduces conditional generative adversarial networks (CGANs). CGAN is an improvement on GAN, which generates new data samples by adding additional conditional information to the generator (denoted as G) and discriminator (denoted as D) of the original GAN.

[0065] Step S31: conditional constraint Y. Based on the image in step S11, the present invention sets each group of pollen data to contain m layers of two-dimensional images, then vector L = (l1, li2, li3, ..., lm) represents a group of multi-layer pollen images, and vector V = (v1, v2, v3, ..., vm) represents the quality score of each layer of the current group of multi-layer pollen images. Sm is set to represent the maximum quality score, then according to vectors L and V, the present invention sets the max_score_img function, retrieves the quality score of the multi-layer pollen image layer by layer, finds Sm and outputs the pollen image of the corresponding layer, which is used as the real image for comparison in the generator stage. The algorithm pseudo code is as follows:

[0066]

[0067] In addition, according to the quality score ranking information between the multi-layer pollen images, the present invention uses one-hot encoding to re-encode the vector L as the constraint variable of the conditional generative adversarial network, and sets the variable Sc to the second highest quality score. We mark the nth layer image vector bit with the second highest quality score as 1, and the remaining bits as 0, and finally use the vector L as the conditional constraint of the subsequent generator G and discriminator D. The specific formula is as follows:

[0068] L[i]=1 if V[i]=Sc

[0069] L[i]=0 if V[i]!=Sc

[0070] Step S32: Generator G. Generator G is used to capture data distribution. In the present invention, generator G takes the combination of multi-layer pollen images and category labels y (category labels y are conditional constraints) as input. In the present invention, generator G adopts a Unet network to form an encoder and a decoder, respectively, for converting the original image in the multi-layer pollen data into pollen data close to the highest quality score in the same group of data, P_MP represents the probability distribution of multi-layer pollen image samples, and P_HQ represents the probability distribution of pollen data with the highest quality score in the same group of data.

[0071] The encoder includes 5 convolution blocks and 4 pooling layers. The convolution block is composed of two identical convolution layers, the convolution kernel of the convolution layer is 3×3, the step size is 1, the padding is 1, and ReLU is used as the activation function;

[0072] The decoder includes 5 convolution blocks and 4 pooling layers. The convolution block of the decoder consists of two identical convolution layers, with ReLU as the activation function. The convolution block in the decoder performs a deconvolution operation to convert the probability distribution of the original multi-layer pollen image samples into the probability distribution of images with high quality scores.

[0073] Step S33: Discriminator D. Discriminator D includes three convolutional layers, all of which use LReLU as activation function. It is based on the discriminator in PatchGAN to judge the authenticity of each batch in the entire image. It is not only used to identify the probability that a sample comes from real data rather than generated samples, but also needs to identify whether the input sample and the condition match. If not, the gradient descends and training continues. In the present invention, the discriminator D needs to use the generated image and the real image (that is, the pollen image with the highest quality score) and the category label y as input. At the same time, in order to make the generated samples more realistic, the present invention adds L1 loss so that the output samples are closer to the target samples.

[0074] Step S34: Network training. The network training includes the following steps: (1) training the generator G until the parameters of the generator G remain unchanged; (2) training the discriminator D until the parameters of the discriminator D remain unchanged; (3) continuing to train the generator G until its loss function G* is minimized, i.e., completing the training of the network model;

[0075] The optimization objectives of the generator and discriminator in this invention are as follows:

[0076]

[0077] Where E represents expectation, P HQ represents the probability distribution of images with high quality scores in step S2, P MP represents the probability distribution of multi-layer pollen image samples. L is the conditional constraint in step S31. D(x|L) represents the discriminator's discrimination of image samples with high quality scores, G(y|L) represents the generated pseudo data, and D(G(y|L)) represents the discriminator's discrimination result for pseudo data. For the generator, its loss function L G The calculation formula is as follows:

[0078]

[0079] Among them, L1 loss is also called the minimum absolute deviation (LAD) and the absolute loss function (LAE). Its function is to minimize the sum of the absolute differences between the target value and the estimated value.

[0080] L perc Perceptual loss is used to measure the perceptual similarity between two images. Perceptual loss compares the features obtained by convolution of the real image with the features obtained by convolution of the generated image, so that the high-level information of the image, that is, the content and the global structure, are closer. It is defined as follows:

[0081]

[0082] in, is the corresponding highest quality pollen image, It is the image generated by the generator.

[0083] Where L style is the style loss, which is used to reduce the artifacts in the upsampling process caused by the transposed convolution layer and is defined as follows:

[0084]

[0085] Where Gram is a Gram matrix constructed from feature maps extracted from a pre-trained network.

[0086] For the training of the CGAN network, the method adopted is single alternating iterative training. First, the generator G is trained, and the original multi-layer pollen data is input into the network, so that the generator G outputs a pseudo data set (the synthesis effect of the new pollen data is not necessarily the best at this time); the generator G is fixed, and the discriminator D is trained again, and the number of training times is until the parameters of the discriminator D remain unchanged. When the discriminator D is trained for a certain number of times, the parameters remain unchanged, and the generator G continues to be trained; this cycle is repeated until the loss function of the generator G is minimized, that is, the training of the network model is completed.

[0087] The pollen image synthesis device for fusing multiple layers of information provided by the present invention is described below. The pollen image synthesis device for fusing multiple layers of information described below and the pollen image synthesis method for fusing multiple layers of information described above can be referenced to each other. Figure 4 Schematic diagram of the structure of the pollen image synthesis device for fusing multi-layer information provided by the present invention. Figure 4 As shown, the pollen image synthesis device provided by the present invention that integrates multi-layer information includes:

[0088] The pollen image acquisition module 410 is used to acquire a multi-layer pollen image corresponding to the focal plane obtained by scanning the same pollen content;

[0089] The multi-layer pollen preprocessing module 420 is used to calculate the real perception score of each of the multi-layer pollen images, divide the multi-layer pollen images into multiple pairs of images, compare the real perception scores in each pair of images, and use the comparison results as labels;

[0090] A ranking information extraction module 430 is used to input each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen image;

[0091] The pollen image synthesis module 440 is used to input the multi-layer pollen images and their quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses the vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen images as the conditional constraint of the generator and the discriminator.

[0092] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0093] Since the pollen image synthesis device for fusing multiple layers of information provided in the embodiment of the present invention can be used to execute the pollen image synthesis method for fusing multiple layers of information described in the above embodiment, its working principle and beneficial effects are similar, so they will not be described in detail here. For specific contents, please refer to the introduction of the above embodiment.

[0094] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute a pollen image synthesis method that fuses multiple layers of information, the method comprising: obtaining multiple layers of pollen images corresponding to the focal plane obtained by scanning the same pollen content; calculating the true perception scores of each of the multiple layers of pollen images, dividing the multiple layers of pollen images into multiple pairs of images, comparing the true perception scores in each pair of images, and using the comparison results as labels; inputting each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multiple layers of pollen images; inputting the multiple layers of pollen images and their quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multiple layers of pollen images as a conditional constraint for the generator and the discriminator.

[0095] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0096] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the pollen image synthesis method for fusing multiple layers of information provided by the above-mentioned methods, the method including: obtaining a multi-layer pollen image corresponding to a focal plane obtained by scanning the same pollen content; calculating the true perception score of each of the multi-layer pollen images, dividing the multi-layer pollen images into multiple pairs of images, comparing the true perception scores in each pair of images, and using the comparison results as labels; inputting each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen image; inputting the multi-layer pollen image and its quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen image as a conditional constraint of the generator and the discriminator.

[0097] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned pollen image synthesis method for fusing multiple layers of information, the method comprising: obtaining a multi-layer pollen image corresponding to a focal plane obtained by scanning the same pollen content; calculating the true perception score of each of the multi-layer pollen images, dividing the multi-layer pollen image into a plurality of pairs of images, comparing the true perception scores in each pair of images, and using the comparison results as labels; inputting each pair of images and the labels into a twin neural network for processing to obtain quality score ranking information of the multi-layer pollen image; inputting the multi-layer pollen image and its quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen image as a conditional constraint of the generator and the discriminator.

[0098] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0099] 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.

[0100] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A pollen image synthesis method integrating multi-layer information, characterized in that: include: Acquire a multi-layer pollen image corresponding to a focal plane obtained by scanning the same pollen content; Calculate the true perception score of each of the multi-layer pollen images, divide the multi-layer pollen images into multiple pairs of images, compare the true perception scores in each pair of images, and use the comparison results as labels; suppose the input pollen image is I, and the true perception score of the pollen image is obtained by Tenengrad gradient calculation, which is denoted as P, where T represents the mapping of the Tenengrad gradient method, and the specific calculation of P is as follows: Where N is the total number of pixels in the pollen image, S(x,y) represents the gradient of the pollen image I at the point (x,y), and G x , G y They are the gradient values ​​in the horizontal and vertical directions extracted by the Sobel operator respectively; Each pair of images and the labels are input into the twin neural network for processing to obtain the quality score ranking information of the multi-layer pollen image; for a pair of images, given two pollen image inputs are set as I1 and I2, and the ranking information learner is allowed to learn the ranking information between the multi-layer pollen images, and the corresponding predicted quality scores are S1 and S2, respectively, and the corresponding relationship is as follows: S1=R(I1;θ R ) S2=R(I2;θ R ) Where R represents the mapping of the ranking information learner to predict the quality score, θ R Represents all parameters in the twin network training process; Set the sorting loss function, the specific contents are as follows: Among them, L represents the mapping of a loss function, represents the label of the data pair during training, and ε is to increase the distance between S1 and S2; The gradient of the loss function is calculated by back-propagation and the twin network is trained using the stochastic gradient method; The multi-layer pollen images and their quality score ranking information are input into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating the pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen images as a conditional constraint for the generator and the discriminator; assuming that each group of pollen data contains m layers of two-dimensional images, then vector L=(l1, li2, li3, ..., lm) represents a group of multi-layer pollen images, and vector V=(v1, v2, v3, ..., vm) represents the quality score of each layer of the current group of multi-layer pollen images; assuming that Sm represents the maximum quality score, the max_score_img function is set according to the vectors L and V, the quality scores of the multi-layer pollen images are retrieved layer by layer, Sm is found and the pollen image of the corresponding layer is output as the real image used for comparison in the generator stage.

2. The pollen image synthesis method integrating multi-layer information according to claim 1, characterized in that: The calculating the true perception scores of the respective multi-layer pollen images includes calculating the true perception scores of the respective multi-layer pollen images using the Tenengrad gradient method.

3. The pollen image synthesis method integrating multi-layer information according to claim 1, characterized in that: The branch network of the twin neural network is an Alexnet network, and the output of the branch network is the quality score of each pair of images.

4. The pollen image synthesis method integrating multi-layer information according to claim 1, characterized in that: The input of the generator of the conditional generative adversarial network is: The multi-layer pollen image and the conditional constraints.

5. The pollen image synthesis method integrating multi-layer information according to claim 4, characterized in that: The input of the discriminator of the conditional generative adversarial network is: The pollen image with the highest quality score determined according to the quality score ranking information of the multi-layer pollen images, the pollen image generated by the generator and the conditional constraints are used.

6. The pollen image synthesis method integrating multi-layer information according to claim 5, characterized in that: The discriminator of the conditional generative adversarial network includes three convolutional layers, and each convolutional layer uses LReLU as an activation function.

7. The pollen image synthesis method according to any one of claims 1 or 4 to 6, characterized in that: The loss functions of the conditional generative adversarial network include an absolute value loss function, a perceptual loss function, and a style loss function.

8. A pollen image synthesis device integrating multi-layer information, characterized in that: include: A pollen image acquisition module, used to acquire a multi-layer pollen image corresponding to the focal plane obtained by scanning the same pollen content; The multi-layer pollen preprocessing module is used to calculate the real perception score of each of the multi-layer pollen images, divide the multi-layer pollen images into multiple pairs of images, compare the real perception scores in each pair of images, and use the comparison results as labels; assuming that the input pollen image is I, the real perception score of the pollen image is obtained by Tenengrad gradient calculation, denoted as P, T represents the mapping of the Tenengrad gradient method, and the specific calculation of P is as follows: Where N is the total number of pixels in the pollen image, S(x,y) represents the gradient of the pollen image I at the point (x,y), and G x , G y They are the gradient values ​​in the horizontal and vertical directions extracted by the Sobel operator respectively; The sorting information extraction module is used to input each pair of images and the labels into the twin neural network for processing to obtain the quality score sorting information of the multi-layer pollen image; for a pair of image pairs, given two pollen image inputs set as I1 and I2, let the sorting information learner learn the sorting information between the multi-layer pollen images, and the corresponding predicted quality scores are S1 and S2 respectively, and the corresponding relationship is as follows: S1=R(I1;θ R ) S2=R(I2;θ R ) Where R represents the mapping of the ranking information learner to predict the quality score, θ R Represents all parameters in the twin network training process; Set the sorting loss function, the specific contents are as follows: Among them, L represents the mapping of a loss function, represents the label of the data pair during training, and ε is to increase the distance between S1 and S2; The gradient of the loss function is calculated by back-propagation and the twin network is trained using the stochastic gradient method; A pollen image synthesis module is used to input the multi-layer pollen images and their quality score ranking information into a conditional generative adversarial network for processing to obtain a synthesized pollen image; wherein the conditional generative adversarial network uses a vector indicating a pollen image with the second highest quality score determined according to the quality score ranking information of the multi-layer pollen images as a conditional constraint for the generator and the discriminator; each group of pollen data is assumed to contain m layers of two-dimensional images, then vector L=(l1, li2, li3, ..., lm) represents a group of multi-layer pollen images, and vector V=(v1, v2, v3, ..., vm) represents the quality score of each layer of the current group of multi-layer pollen images; Sm is assumed to represent the maximum quality score, then the max_score_img function is set according to the vectors L and V, the quality scores of the multi-layer pollen images are retrieved layer by layer, Sm is found and the pollen image of the corresponding layer is output, which is used as a real image for comparison in the generator stage.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the pollen image synthesis method fusing multi-layer information according to any one of claims 1 to 7 are implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the pollen image synthesis method fusing multi-layer information according to any one of claims 1 to 7 are implemented.