Embryo pronucleus target counting method based on fuzzy elimination and multi-focus image fusion

Through blur elimination and multi-focus image fusion technology, the multi-focus problem of embryo images is solved, the accuracy and efficiency of pronucleus target counting are improved, and the reliability of embryo quality assessment is ensured.

CN118379288BActive Publication Date: 2024-09-06WUHAN MUTUAL UNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410810147.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-06
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

During the in vitro fertilization-embryo transfer process, the multi-focus problem of embryo images leads to inaccurate pronucleus identification and counting, affecting embryo quality assessment.

Method used

A method based on blur elimination and multi-focus image fusion is used to evaluate image sharpness through the Laplacian operator, build a fusion model to extract image features, and use a cross-attention mechanism to fuse image information at different focal lengths, combined with the detection model to perform proto-nucleation Target count.

Benefits of technology

Improves the accuracy and efficiency of pronucleus target detection, provides clearer fused images for detectors, and enhances the reliability of embryo quality assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379288B
    Figure CN118379288B
Patent Text Reader

Abstract

The present invention discloses an embryonic pronuclear target counting method based on fuzzy elimination and multi-focus image fusion, comprising the steps of: S1 using the Laplace operator to perform fuzzy evaluation on a group of multi-focus embryonic cell images to be detected, and deleting embryonic images with blurred exposure; S2 constructing a fusion model, extracting shallow local features from the multi-focus embryonic cell images, obtaining common information and difference features between image features through an information interaction module for different embryonic cell images, and then restoring the detail information of the fused image through a feature reconstruction module; S3 using a detection model to identify the number of pronuclei in the multi-focus embryonic cell images. The present invention has different clarity of pronuclear targets in different focused images, which leads to the obstruction of pronuclear target recognition. A fusion network based on cross attention is designed. By fusing multi-focus embryonic images, a clear fused image containing all pronuclear targets is obtained, thereby improving the efficiency of pronuclear target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of artificial intelligence technology, and in particular to an embryo pronuclear target counting method based on fuzzy elimination and multi-focus image fusion. Background Art

[0002] In vitro fertilization-embryo transfer has been developed as an effective method for treating infertility for more than 40 years. In in vitro fertilization-embryo transfer, evaluating the developmental potential of embryos cultured in vitro is one of the key technologies. At present, some scholars have proposed using the morphology of pronuclear embryos to preliminarily evaluate the developmental potential of embryos in order to increase the parameters for selecting transplanted embryos. After the sperm and egg cells fuse, the relevant factors in the cytoplasm of the egg cell will cause the nucleus to rupture and depolymerize. At the same time, other components in the egg cell are also activated. This process causes the egg that was originally stagnant in the late second meiotic division to continue meiosis and exclude the second polar body. The chromosomes of the egg are surrounded by a membrane to form the female pronucleus, while the chromosomes in the sperm head depolymerize to form the male pronucleus.

[0003] When the embryo is cultured in a time-difference incubator, the size, position and arrangement of the pronuclei are related to the development, pregnancy and implantation of the embryo. Two pronuclei of equal size, located in the center and side by side are ideal pronuclear embryos. It can be seen that the number and morphological parameters of pronuclei are important parameters for evaluating the developmental potential of embryos. Therefore, the identification and counting of pronuclei in embryo images is very meaningful and can provide corresponding references for embryo technicians. However, there are several problems with the identification and counting of pronuclei at present:

[0004] (1) In a time-lapse incubator, a professional lens is used to record the development of the embryo, and then an intelligent analysis system is used to identify the target in the embryo. However, the embryo image recorded by the lens has the problem of unclear multi-focus images, that is, the image clarity of different pronuclei at different focal lengths is inconsistent, resulting in inaccurate identification and counting of pronuclei, which affects the assessment of embryo quality;

[0005] (2) Image processing algorithms detect pronuclei based on their size, contrast with the surrounding area, and the diversity of their texture, so the results are strongly dependent on the embryo image. In addition, object recognition based on a single image cannot accurately detect all targets. The main reason is that some targets are focused at a specific distance from the lens, so other target cells may be blurred. During embryonic development, different focal planes highlight different details of the pronucleus. The texture details of a single pronucleus are usually not clearly visible in all focal planes.

[0006] These problems will affect the recognition and counting of pronuclei by ordinary models, thereby affecting the quality assessment of embryos. Summary of the invention

[0007] In view of the deficiencies of the above-mentioned prior art, the present invention proposes an embryo pronuclear target counting method based on fuzzy elimination and multi-focus image fusion, and realizes the prediction of the automatic focusing task of embryo images based on supervised learning and self-supervised learning algorithms.

[0008] To achieve the above object, the embryo pronuclear target counting method based on fuzzy elimination and multi-focus image fusion designed by the present invention is special in that it includes the following steps:

[0009] S1 uses the Laplacian operator to perform blur evaluation on a set of multi-focus embryo cell images to be detected, and deletes embryo images with blurred exposure;

[0010] S2 builds a fusion model to extract shallow local features from multi-focus embryonic cell images, obtains common information and difference features between image features of different embryonic cell images through the information interaction module, and then restores the detailed information of the fused image through the feature reconstruction module;

[0011] S3 uses a detection model to identify the number of pronuclei in multi-focus embryonic cell images.

[0012] Preferably, in step S1, the second-order derivative of each embryo image is calculated using the Laplace operator, and the blur is evaluated by variance. The larger the variance value, the clearer the image; the smaller the variance value, the blurrier the image.

[0013] Preferably, the extraction of shallow local features in step S2 is implemented by a feature extraction module, including a convolution layer, a batch normalization BN layer and an activation function. The activation function uses a HardSwish activation function.

[0014] Preferably, the information interaction module in step S2 includes a weight matrix generation module, a difference information extraction module, a common information injection module and a fusion output module, wherein the weight matrix generation module is used to extract a learnable weight matrix between different focused embryo cell images; the difference information extraction module is used to extract difference information features; the common information injection module extracts common information from different focused embryo images, and the fusion output module is used to fuse the outputs of the difference information extraction module and the common information injection module.

[0015] Preferably, the weight matrix generation module generates two different focused embryo image feature maps using a learnable weight matrix F 1. F Query vector of 2 Q 1, Q 2. Key vector K 1, K 2 and value vector V 1, V 2,

[0016] ;

[0017] ;

[0018] in, F 1, F 2 is the feature map extracted from the image, is a learnable parameter in the model;

[0019] Compute feature maps F Query vector of 2 Q 2 and feature map F Key vector of 1 K 1 similarity matrix, multiplied by the feature map F A vector of values ​​1 V 1 to infer the query vector Q 2 and value vector V 1. Public information between:

[0020] ;

[0021] in d k is the scale factor.

[0022] Preferably, the difference information extraction module removes the common information to obtain the difference information, and injects the difference information into the feature map F Query vector of 2 Q In 2, after normalization and multi-layer perception, the output features are obtained :

[0023] .

[0024] Preferably, the public information injection module calculates the feature map F Query vector of 1 Q 1 and feature map F Key vector of 2 K 2 similarity matrix, multiplied by the feature map F 2 value vector V 2 to extract the query vector Q 1 and value vector V 2, injecting public information into the query vector Q 1, and then through normalization and multi-layer perception, the output features are obtained , expressed as:

[0025] ;

[0026] .

[0027] Preferably, the fusion output module combines the output of the difference information extraction module , the output of the public information injection module Fusion is performed to obtain fusion features .

[0028] Preferably, the detection model in step S3 inputs the fused image into the detection network to obtain the detection result:

[0029] ;

[0030] in D represents the detector, I d This is the final test result. I f To fuse the images.

[0031] Preferably, the fusion model in step S2 and the detection model in step S3 are trained collaboratively in an end-to-end manner, and the loss function is a combination of fusion loss fusion and detection loss detection.

[0032] ;

[0033] in is the weighted fusion loss constant, is a hyperparameter of the detection loss importance;

[0034] The fusion loss during training includes two parts: intensity loss and texture loss. The formula is as follows:

[0035] ;

[0036] in An important factor for balancing texture loss and intensity loss;

[0037] The intensity loss Linde and texture loss Ltexture are defined as follows:

[0038] ;

[0039] ;

[0040] in H and W is the height and width of the source image, p=1, 2, 3, 4, corresponding to four focuses, I p is the input image, I f To fuse the images, represents the L2 norm operation, represents absolute operation, Represents an operation that finds a gradient map, which measures the texture information of an image.

[0041] The beneficial effects of the embryo pronuclear target counting method based on fuzzy elimination and multi-focus image fusion proposed by the present invention are as follows:

[0042] 1. The present invention performs Laplace information evaluation in the data preprocessing stage to remove the high-exposure blurred embryo images, thereby preventing the exposure blurred images from interfering with subsequent image fusion and prokaryotic target detection;

[0043] 2. Aiming at the difficulty in identifying prokaryotic targets due to different clarity of prokaryotic targets in different focused images, the present invention designs a fusion network based on cross attention. By fusing multi-focused embryo images, a clear fused image containing all prokaryotic targets is obtained, which provides better input features for the detector and improves the efficiency of prokaryotic target detection.

[0044] 3. In view of the fact that it is difficult to provide the basic facts of fusion images for training high-level visual task models in the field of image fusion, and that a single-stage joint training strategy may make it difficult to maintain a balance between the effects of low-level and high-level visual tasks, the present invention designs a joint low-level and high-level training strategy to train the fusion network;

[0045] 4. The present invention constructs a joint optimization framework that collaboratively optimizes low-level and high-level tasks. The joint optimization is more effective in producing better fusion quality and detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is a schematic diagram of a multi-focus embryo image;

[0047] Figure 2 It is a flow chart of the prokaryotic target counting method based on multi-focus image fusion and a schematic diagram of joint optimization;

[0048] Figure 3 It is a schematic diagram of the fusion network process;

[0049] Figure 4 This is the architecture diagram of the information interaction module in the fusion network;

[0050] Figure 5 Calculate schematic diagrams for query matrix, key matrix and value matrix;

[0051] Figure 6 is a schematic diagram of a difference information module;

[0052] Figure 7 This is a schematic diagram of the public information injection module;

[0053] Figure 8 Evaluate preprocessed images for Laplacian information;

[0054] Fig. 9 This is the detection result image of the prokaryotic target counting network model based on multi-focus image fusion. DETAILED DESCRIPTION

[0055] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0056] The present invention uses images taken by a time-difference incubator. The time-difference incubator is a multi-room incubator with a built-in camera and microscope. The incubator can provide high-quality time-lapse images of embryonic development in real time without the need for external manual inspection under a microscope. The present invention successfully collected a large number of embryo images from different reproductive centers, which were recorded and photographed by a time-difference incubator, and these embryo image data provide a certain data basis for the research invention of this article. However, there are blurred images and images with missing visual targets in a large amount of embryo image data. The reason for this phenomenon is that the images of embryonic development are recorded on multiple different focal planes. For example, at a certain moment, the number of real pronuclei in the embryo image is two, but seeing clear pronuclei on different focal planes may be one of them. This phenomenon brings certain troubles to the target recognition model, and it is impossible to accurately judge the number of current pronuclei, thereby affecting the final embryo quality assessment. In addition to the problem that the above-mentioned image cannot clearly contain all pronucleus targets, there is also the problem of image multi-exposure interference. Therefore, the present invention designs an effective prokaryotic identification and counting method to solve the above problems. The method is prokaryotic target counting based on multi-focus image fusion, and proposes to use cross-attention to design an effective fusion network, which effectively learns the differences and common information of different focused images for fusion. Based on the proposed fusion network, it is further combined with the detection model to construct a joint optimization framework, which synergistically optimizes low-level and high-level tasks. Joint optimization is effective for producing better fusion quality and detection accuracy.

[0057] Figure 1 A set of multi-focus embryo cell images are shown. The left side shows a set of collected multi-focus embryo cell images, and the right side shows some special examples of multi-focus embryo cell images, that is, from top to bottom, each row is an embryo image with blurred exposure, a clear embryo image with a target, and a clear embryo image without a target; in addition, for the clear embryo image with a target, not all prokaryotic targets are clear, but they are clear to each other. For embryonic cells, under the recording of the lens in the time-difference incubator, the prokaryotic target has certain biological characteristics, which enables most of the image features of the prokaryotic target to be effectively preserved, which provides a good foundation for using deep learning detection algorithms to detect prokaryotic targets.

[0058] By recording embryonic cells in a time-difference incubator, a set of multi-focused embryo images can be obtained, and a set of images contains about ten images with different focuses. Due to optical properties, multiple exposure blurred images will appear in a set of images. Such images basically blur the prokaryotic targets and make them invisible, so such images increase the difficulty of single-frame target detection tasks. In addition, due to different focusing reasons, the clarity of different prokaryotic targets in different focused images is different, that is, there is rarely a frame in a set of images that can clearly see all prokaryotic targets. The above problems pose a huge challenge to the detection algorithm effect of single-frame targets.

[0059] In view of these challenges, the present invention proposes a prokaryotic target counting method based on multi-focus image fusion, which includes the following steps:

[0060] S1 uses the Laplacian operator to perform blur evaluation on a set of multi-focus embryo cell images to be detected, and deletes embryo images with blurred exposure;

[0061] S2 builds a fusion model to extract shallow local features from multi-focus embryonic cell images, obtains common information and difference features between image features of different embryonic cell images through the information interaction module, and then restores the detailed information of the fused image through the feature reconstruction module;

[0062] S3 uses a detection model to identify the number of pronuclei in multi-focus embryonic cell images.

[0063] The following is the detailed implementation process of this embodiment:

[0064] 1. Data Collection Phase

[0065] The data set used in the present invention is from tens of thousands of embryo images recorded in a medical reproductive center. These images are taken in a time-difference incubator, and these embryo images are basically in the pronuclear stage, and the number of pronuclei is basically two or more. Considering that the images taken in the time-difference incubator have similar characteristics within a small time difference, 1,000 groups of embryo images with obvious distinction are selected as the data set of this research, and each group of embryo images is composed of different focused images. Using the lens under different focusing to shoot the embryo image, all pronuclear targets can be recorded in a group of multi-focused images.

[0066] Finally, the collected data set is divided into training set, validation set and test set in a ratio of 3:1:1. Embryology experts annotate the divided data sets and obtain target labels. Specifically, the pronuclear targets in a set of multi-focus embryo images are annotated, and then the labels of a set of images are obtained. This label is used in the detection task. Verification and evaluation are performed on the validation set and test set.

[0067] 2. Model training phase

[0068] (1) Algorithm model construction

[0069] For this multi-focus embryo image, the present invention proposes a fusion based on the cross-attention mechanism to design an efficient multi-focus embryo image fusion network. First, the fusion based on the cross-attention mechanism can not only retain the texture detail information of the image, but also learn the differences between different focus images, which is conducive to further analysis and processing. For fusion based on learnable features, detailed features may be lost after extraction by the deep neural network, resulting in some blur after image reconstruction (i.e., image fusion). Therefore, the present invention uses a cross-attention mechanism instead of the traditional manual method to fuse information. In addition, some recent research works have shown that the association of low-level visual tasks (i.e., image fusion, super-resolution, etc.) with high-level visual tasks (i.e., object detection, semantic segmentation, etc.) can further improve the performance of these two tasks. Following this framework to simultaneously optimize image fusion and object detection results, the present invention proposes a multi-focus embryo image fusion network based on the cross-attention mechanism, and constructs a joint optimization framework containing the proposed fusion network and the downstream detection network to collaboratively optimize low-level and high-level tasks. The overall network of the fusion network is simple and efficient. Specifically, two adjacent frames of the multi-focus embryo image are combined and then sent to multiple cross-attention fusion modules respectively. After obtaining the fused feature map, the final fused image is obtained through the feature reconstruction module. Figure 2 As shown in the figure, the multi-focus embryo image fusion network includes a fusion model and a detection model. The fusion model extracts shallow local features from the multi-focus embryo cell images, obtains the common information and difference features between the image features of different embryo cell images through the information interaction module, and then restores the detailed information of the fused image through the feature reconstruction module; the detection model identifies the number of pronuclei in the multi-focus embryo cell images.

[0070] The fusion model is combined with the detection model YOLOv5s, and the overall architecture is trained in an end-to-end manner to produce better image fusion quality and prokaryotic target detection accuracy. The details of the present invention will be analyzed in detail from the three aspects of fusion, detection, and joint optimization.

[0071] Before entering the fusion model, the multi-focus embryo images are preprocessed. The preprocessing operation is to compress the information of a group of multi-focus embryo images, that is, to perform Laplace information evaluation on a group of embryo images, and remove the embryo images whose pronuclear targets are basically invisible due to exposure blur, so as to compress the data while preventing the exposure blur image from interfering with the subsequent image fusion. The Laplacian operator is used to calculate the second-order derivative of the image, and then the variance is used to evaluate the blur. The following is the mathematical expression of blur evaluation using the Laplacian operator:

[0072] (1)

[0073] (2)

[0074] here, L is the Laplace kernel, I is the input image, It is the convolution operation at position ( i , j ), is the variance, N is the total number of pixels, is the pixel value in the image after Laplacian operation, is the mean of these pixel values, m and n is the position subscript of the Laplace kernel, k is the subscript of the pixel. The present invention selects the embryo images with the top four evaluation scores in a group of images. In short, the variance of the Laplace operator is used as the blur evaluation score. The larger the value, the clearer the image; the smaller the value, the blurrier the image. This is because a clear image will have more significant edges and details, resulting in a greater change in the output of the Laplace operator and a greater variance. On the contrary, the edges and details of a blurred image are not obvious, resulting in a smaller change in the output of the Laplace operator and a smaller variance. The image after Laplace information evaluation preprocessing is shown in FIG. Figure 8 shown.

[0075] Regarding upstream fusion tasks, such as Figure 3 As shown in Figure 1, the fusion model includes a feature extraction module, an information interaction module, and a feature reconstruction module. First, the preprocessed multi-focus image is input into the feature extraction module to extract shallow features, which are then converted into patch embeddings. Then, multiple information interaction fusion modules are established to fuse difference features and common features. Finally, feature reconstruction is used to map the fused features into the synthetic image.

[0076] In deep learning and computer vision, feature extraction is a key step that extracts useful information from input data (such as images). Convolutional neural network (CNN) is a commonly used feature extraction model, which achieves this goal through convolution layers. For the extraction of shallow local features, small-sized convolution kernels, such as 3×3, are usually used because they can capture the details of the local area while keeping the number of parameters small, which helps the computational efficiency of the model. The feature module proposed in this invention still uses convolution layers with a kernel size of 3×3 to extract shallow local features because convolution layers have stability and enhanced optimization capabilities. The convolution is followed by a batch normalization (BN) layer and an activation function. The feature extraction process can be expressed as:

[0077] (3)

[0078] is the input image (p=1, 2, 3, 4, corresponding to four focuses), Represents the output feature map after a series of operations. For multi-focus embryo images, the texture details of the image are relatively complex, and the pronuclear target is small and can be easily submerged in the background. The advantage of the HardSwish activation function is that it is more efficient than Swish because it avoids the Sigmoid calculation in Swish while maintaining similar non-monotonic characteristics, which helps the network learn more complex features.

[0079] For pronuclear targets, different images in multi-focus embryo images are complementary, that is, different embryo images contain pronuclear targets with different clarity, so the goal of fusion is to obtain a comprehensive image containing significant pronuclear targets while retaining rich texture details. Therefore, how to make full use of the differences and common information in multi-focus images is a key factor in determining fusion performance.

[0080] The information interaction module is used to effectively obtain the difference features between the image features generated by the previous stage and the common information of the multi-focus embryo images, such as Figure 4 As shown in Figure 2, two feature maps with different focuses (with and For example, as input, the difference information features and common information features are fused as output. Specifically, the weight matrix generation module first uses a learnable weight matrix to generate different focused embryo image feature maps. F 1. F Query vector of 2 Q 1, Q 2. Key vector K 1, K 2 and value vector V 1, V 2. The process is as follows Figure 5 As shown:

[0081] (4)

[0082] (5)

[0083] in, and are the features extracted from the image Figure 1 and Features Figure 2 , are learnable parameters in the model.

[0084] In order to explore the common information of multi-focus embryo image features, we calculated Q 2 and K1, and then multiply it by V 1 to infer Q 2 and V 1. The process can be expressed as:

[0085] (6)

[0086] in d k is a scaling factor that mitigates the convergence of the softmax function to the minimum gradient region as the dot product increases. Subsequently, by removing the common information, the difference information can be easily obtained. In order to obtain complementary information, the difference information is injected into Q 2, and then through normalization and multi-layer perception, the final output feature is obtained, which is Figure 5 The feature output of the designed difference information extraction module , this process can be expressed as:

[0087] (7)

[0088] The output feature map obtained by the difference information extraction module contains not only the information of one image, but also the feature details from another image, making this module suitable for the multi-focus embryo image fusion task.

[0089] Although the feature map obtained by the above-mentioned difference information extraction module can contain almost all significant edge information, the background detail information is not completely retained in the fused feature. Therefore, it is necessary to further enhance the fused features by merging the common information from the two different focused embryo images. While the difference information extraction module is in progress, a common information injection module is proposed to extract common information reflecting background details from the two different focused embryo images. The structure of the common information injection module is shown in the figure. Figure 7 Calculation Q 1 and K 2, and then multiply it by V 2 to infer Q 1 and V In order to further enhance the fusion features, the public information is injected into Q 1, and then through normalization and multi-layer perception, the final output features are obtained , the process can be expressed as:

[0090] (8)

[0091] (9)

[0092] The output feature of the information interaction module constructed by the present invention is the feature output of the difference information extraction module. And the output characteristics of the public information injection module The fusion module of the present invention is provided with three information interaction modules ( They are the output features of the three information interaction modules, indicating the fusion of common information and difference features. The superscripts 1, 2, and 3 are the numbers of the three information interaction modules set in this embodiment. The final fusion feature The sum of the output features for each information interaction module is as follows.

[0093] (10)

[0094] For the feature reconstruction module, the fused features It is fed into the upsampling module to be resized back to the original image.

[0095] In addition, the present invention uses a refinement module based on a residual network to further restore the fused image Detailed information.

[0096] For downstream detection tasks, the existing YOLO (You Only Look Once) series of detection models are used. YOLOv5s is a variant of the YOLO series of target detection models. YOLOv5s is a smaller, more lightweight version designed for occasions that need to run in resource-constrained environments. YOLOv5s inherits the fast and efficient characteristics of the YOLO series while reducing the size of the model and computing requirements. The general operation is to input the fused image into the detection model to obtain the detection result.

[0097] (11)

[0098] in D represents the detector, I d is the final detection result. After obtaining the fused image, the detector YOLOv5s is followed to perform real-time object detection simultaneously.

[0099] The above is an introduction to the design of the fusion model and the selection of the detector. In addition to the innovative design of the fusion model, the present invention also proposes to further combine the fusion network with the detection model to construct a joint optimization framework that synergistically optimizes upstream and downstream tasks.

[0100] Regarding the specific training strategy of the joint optimization framework, the fusion model and the detection model are trained together in an end-to-end manner, resulting in the parameter updates of these two components affecting each other during the training phase. Therefore, a joint optimization loss is required, which can be defined as the combination of the fusion loss fusion and the detection loss detection.

[0101] (12)

[0102] in is the weighted fusion loss constant, is a hyperparameter of the importance of detection loss. It should be emphasized that according to the joint adaptive training strategy of low-level and high-level tasks, It increases gradually because the detection network becomes more adaptive to the fusion model as training progresses. Use YOLOv5s' own detection loss. The fusion loss is described as follows.

[0103] The fusion task should be combined with the characteristics of embryo images, which have rich texture information and good intensity information. Therefore, the fusion loss in the training process includes two parts: intensity loss and texture loss. The formula is as follows:

[0104] (13)

[0105] in An important factor for balancing texture loss and intensity loss.

[0106] The intensity loss guides the fused image to retain the important pixel intensity information contained in the multi-focus embryo image. The texture loss guides the fused image to retain more texture details, maximizes the image texture aggregation in the multi-focus embryo image, and ensures that the pronuclear target contained in the fused image is clearer. Therefore, the intensity loss and texture loss are defined as follows:

[0107] (14)

[0108] (15)

[0109] in H and W are the height and width of the source image, represents the L2 norm (also known as the Euclidean norm) operation, where represents absolute operation, and Represents the operation of finding a gradient map, which measures the texture information of an image. In the present invention, the Sobel operator is used to calculate the gradient.

[0110] Existing task-driven low-level vision methods either use pre-trained high-level models to guide the training of low-level vision task models, or jointly train low-level and high-level vision task models in one stage. However, in the field of image fusion, it is difficult to provide the ground truth of the fused image for training high-level vision task models. In addition, the single-stage joint training strategy may make it difficult to maintain a balance between the effects of low-level and high-level vision tasks. To this end, the present invention designs a joint low-level and high-level training strategy to train a multi-focus embryo image fusion network. More specifically, the fusion model and the detection model are jointly iteratively trained, and the number of joint iterations is set to T. First, all parameters in the fusion model are optimized by the Adam optimizer under the guidance of the joint loss. In addition, the hyperparameters of the loss are dynamically adjusted by iteration. , which is expressed as follows:

[0111] (16)

[0112] in t represents the number of joint iterations (starting from 0). As the number of iterations increases, the detection network better fits the fusion model. The value gradually increases as the training progresses, and the detection loss can guide the training of the fusion network more accurately. is a constant that balances the detection loss and the fusion loss. Then, given the current fusion result, the detection loss is used to update the parameters of the detection model.

[0113] (2) Model training

[0114] The set training set and validation set were input into the network model for training. The hardware used was Intel® Core™ i5-10400 CPU @ 2.90GHz, 16G memory, NVIDIA GeForce GTX1070. The number of training iterations was set to 5, the number of samples selected for one training was 8, the type recognition was multi-core class, the actual training time was 8h, and finally the configuration file required for prokaryotic detection was obtained.

[0115] 3. Image testing phase

[0116] The multi-focus embryo images are sent to the trained fusion and detection joint model. First, a fusion image containing all clear prokaryotic targets is obtained through fusion. Then the fused image enters the detection stage. The fused image is extracted by the backbone network. The backbone network of YOLOv5s usually consists of multiple convolutional layers, batch normalization layers, and nonlinear activation functions. The feature map is divided into multiple cells, and each cell is responsible for predicting the target in the area. The bounding box with the highest confidence is selected as the main prediction box. Since each cell predicts multiple bounding boxes, many bounding boxes may overlap. The non-maximum suppression method (NMS) is applied to select the best bounding box, remove overlapping low-quality predictions, and retain only the most confident bounding box. Finally, the bounding boxes with low confidence are filtered out according to the confidence threshold, and the detected prokaryotic target position information is output.

[0117] Based on the above research, the present invention proposes a prokaryotic target counting method based on multi-focus image fusion, which includes the following steps:

[0118] S1 collects embryo images containing pronuclear targets, marks 2,600 sets of multi-focus embryo images, and constructs an embryo image dataset;

[0119] S2 builds a training network model for joint optimization of fusion and detection. The general flow chart of its joint optimization is as follows: Figure 2 As shown;

[0120] S3 uses the embryo image dataset constructed in step S1 to train the training network model for joint optimization of fusion and detection to obtain the model and its parameters;

[0121] S4 uses the trained joint optimized network model to test the embryo images in the test set and completes the test set detection and result evaluation;

[0122] S5 inputs the embryo image with the number of pronuclei to be counted into the embryo image fusion and detection joint network model of step S4, and uses the model to detect the pronuclei in the embryo image, thereby counting the number of pronuclei.

[0123] The detection result image of the prokaryotic target counting network model based on multi-focus image fusion is shown in the figure below. Fig. 9 shown.

[0124] The contents not described in detail in the specification belong to the prior art known to professional and technical personnel in this field.

[0125] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the present invention.

Claims

1. A method for counting embryonic pronuclear targets based on fuzzy elimination and multi-focus image fusion, characterized in that: The steps include: S1 uses the Laplacian operator to perform blur evaluation on a set of multi-focus embryo cell images to be detected, and deletes embryo images with blurred exposure; S2 constructs a fusion model, extracts shallow local features from multi-focused embryonic cell images, obtains common information and difference information between image features of different embryonic cell images through an information interaction module, and then restores detail information of the fused image through a feature reconstruction module; the information interaction module includes a weight matrix generation module, a difference information extraction module, a common information injection module and a fusion output module, the weight matrix generation module is used to extract a learnable weight matrix between different focused embryonic cell images; the difference information extraction module is used to extract difference information features; The public information injection module extracts public information from different focused embryo images, and the fusion output module is used to fuse the outputs of the difference information extraction module and the public information injection module; The weight matrix generation module generates two different focused embryo image feature maps using a learnable weight matrix F 1. F Query vector of 2 Q 1, Q 2. Key vector K 1, K 2 and value vector V 1, V 2. Calculate feature map F Query vector of 2 Q 2 and feature map F Key vector of 1 K 1, multiplied by the feature map F A vector of values ​​1 V 1 to infer the query vector Q 2 and value vector V 1. Public information between; The difference information extraction module removes the common information to obtain the difference information, and injects the difference information into the feature map. F Query vector of 2 Q In 2, after normalization and multi-layer perception, the output features are obtained ; S3 uses a detection model to identify the number of pronuclei in multi-focus embryonic cell images.

2. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 1, characterized in that: In step S1, the Laplace operator is used to calculate the second-order derivative of each embryo image, and the blurriness is evaluated by the variance. The larger the variance value, the clearer the image; the smaller the variance value, the blurrier the image.

3. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 1, characterized in that: The extraction of shallow local features in step S2 is implemented through a feature extraction module, including a convolution layer, a batch normalization BN layer and an activation function; the activation function uses a HardSwish activation function.

4. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 1, characterized in that: The weight matrix generation module generates two different focused embryo image feature maps F 1. F Query vector of 2 Q 1, Q 2. Key vector K 1, K 2 and value vector V 1, V The expression of 2 is: ; ; in, F 1, F 2 is the feature map extracted from the image, is a learnable parameter in the model; The expression for calculating public information is: ; in d k is the scale factor.

5. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 4, characterized in that: The difference information extraction module obtains output features The expression is: 。 6. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 5, characterized in that: The public information injection module calculates the feature map F Query vector of 1 Q 1 and feature map F Key vector of 2 K 2 similarity matrix, multiplied by the feature map F 2 value vector V 2 to extract the query vector Q 1 and value vector V 2, injecting public information into the query vector Q 1, and then through normalization and multi-layer perception, the output features are obtained , expressed as: ; 。 7. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 1, characterized in that: The fusion output module converts the output of the difference information extraction module into , the output of the public information injection module Fusion is performed to obtain fusion features .

8. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 7, characterized in that: The detection model in step S3 inputs the fused image into the detection network to obtain the detection result: ; in D represents the detector, I d This is the final test result. I f To fuse the images.

9. The method for counting embryo pronuclear targets based on fuzzy elimination and multi-focus image fusion according to claim 1, characterized in that: The fusion model in step S2 and the detection model in step S3 are trained together in an end-to-end manner, and the loss function is a combination of fusion loss fusion and detection loss detection. ; in is the weighted fusion loss constant, is a hyperparameter of the detection loss importance; The fusion loss during training includes two parts: intensity loss and texture loss. The formula is as follows: ; in An important factor for balancing texture loss and intensity loss; The intensity loss and texture loss are defined as follows, ; ; in H and W is the height and width of the source image, p=1, 2, 3, 4, corresponding to four focuses, I p is the input image, I f To fuse the images, represents the L2 norm operation, represents absolute operation, Represents an operation that finds a gradient map, which measures the texture information of an image.