Electron microscope joint denoising and segmentation method, system, device and storage medium

By constructing a denoising and segmentation model, combined with a structure-aware fusion network, the problem of noise removal and structure preservation in electron microscope images is solved, the segmentation performance is improved, and high-quality denoising and segmentation effects under high noise are achieved.

CN118570097BActive Publication Date: 2024-10-11ARTIFICIAL INTELLIGENCE RES INST OF HEFEI COMPREHENSIVE NAT SCI CENT (ANHUI ARTIFICIAL INTELLIGENCE LAB)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047856.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-11
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively remove noise in electron microscope images, especially structural noise, and traditional denoising methods cannot simultaneously preserve important structures, resulting in challenges in downstream neuron segmentation tasks.

Method used

Build a denoising and segmentation model, including a denoising network, a segmentation network, and a fusion network. Through the noise and clean image pairs and affinity labels in the training data set, we combine semantic information with structure awareness to optimize the denoising and segmentation tasks. mutual gain between them.

Benefits of technology

It achieves the ability to remove noise and retain useful structures under high-noise conditions, improves segmentation performance, and obtains denoised electron microscopy images close to the clean image quality under high-voltage long-exposure conditions, and accurately segments target instances of interest.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570097B_ABST
    Figure CN118570097B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for combined denoising and segmentation of an electron microscope, which are one-to-one corresponding solutions. In the solution: a denoising and segmentation model is constructed to realize denoising and segmentation of electron microscope images under noisy conditions, and realize mutual gain between two subtasks (image denoising task and image segmentation task). The fusion network in the model combines segmentation priors for electron microscope image denoising to improve the ability to remove noise and retain useful structures, while implicitly improving the segmentation performance. The denoised electron microscope image obtained by the present invention can be close to a clean electron microscope image obtained under high voltage and long exposure time, while maintaining the integrity and detail features of the cell structure, and the obtained segmentation result can accurately segment out the target instance of interest.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an electron microscope joint denoising and segmentation method, system, device and storage medium. Background Art

[0002] Electron microscopy (EM) imaging is an important imaging technique in connectomics, resolving densely packed neuronal structures at the nanoscale. However, electron microscopy images (EM images for short) are data-intensive, and it is very time-consuming to acquire high-quality, large-scale images with a high signal-to-noise ratio. Although increasing the dwell time and voltage can improve the signal-to-noise ratio, this approach conflicts with the requirements of data throughput. Recent advances in automated tissue collection and imaging technologies, such as the automated collection ultramicrotome (ATUM) and transmission electron microscope camera array (TEMCA), have significantly reduced these acquisition burdens, making exascale data collection possible. However, along with their benefits, these high-throughput technologies also bring a variety of artifacts that make data analysis more challenging. For example, the electron absorption properties of some electron-transparent films used in the recently developed high-throughput transmission electron microscopy (TEM) techniques are not uniform, producing consistent background noise (film noise). In addition, charge damage artifacts are sometimes observed in scanning electron microscopy (SEM), where electrons can accumulate in the 30-60 nm thickness of a sample tissue slice and cause permanent damage, producing artifacts similar to spots and corruption in the style of Gaussian noise (charge noise). Such electron microscope image artifacts are difficult to remove using traditional denoising filters developed for specific noise models.

[0003] Image denoising is a hot topic and an important direction in the field of computer vision. Traditional denoising techniques usually rely on filter design and sparse representation techniques. These methods are usually best suited for random noise with a known distribution and cannot effectively solve the noise problem of electron microscope images. In recent years, natural image denoising algorithms based on deep learning have flourished and made a series of progress. Most of the electron microscope image denoising methods based on deep learning follow the natural image denoising algorithms. However, the noise in electron microscope images has complex noise distribution and it is difficult to accurately establish the noise model. In addition, the noise in electron microscope images is mostly structural noise, which does not meet the noise assumptions in existing natural image denoising algorithms. As a result, real electron microscope image denoising still faces huge challenges. Buchholz TO et al. (Buchholz TO, Jordan M, Pigino G, et al. Cryo-CARE: Content-aware image restoration for cryo-transmission electronmicroscopy data[C] / / 2019 IEEE 16th International Symposium on BiomedicalImaging (ISBI 2019). IEEE, 2019: 502-506.) demonstrated the promotion of electron microscope image denoising to downstream electron microscope segmentation tasks. Therefore, for electron microscope image denoising, it is crucial to retain important structures such as membrane structures, mitochondria, cell bodies and vesicles while denoising to facilitate downstream neuron segmentation tasks.

[0004] Biomedical instance segmentation aims to assign each pixel in an image to an instance, which is crucial in biomedical instance morphology and distribution analysis. Affinity learning algorithm is the current typical representative instance segmentation method. Representative papers on affinity graph image segmentation include (Thorsten Beier, Constantin Pape, Nasim Rahaman, Timo Prange, Stuart Berg, Davi D Bock, Albert Cardona, Graham W Knott, Stephen MPlaza, Louis K Scheffer, et al. Multicut brings automated neuritesegmentation closer to human performance. Nature Methods, 14(2):101–102,2017.) and (Jan Funke, Fabian Tschopp, William Grisaitis, Arlo Sheridan, Chandan Singh, Stephan Saalfeld, and Srinivas C Turaga. Large scale imagesegmentation with structured loss based deep learning for connectomereconstruction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(7):1669–1680, 2019. ), affinity learning predicts pixel affinities, which only encodes the spatial structural information between neighboring instances without ensuring the uniqueness of each instance in the feature space. Therefore, the affinity map is easy to be learned by the network and is not affected by the number of instances. Even if there is only one annotated instance, this method can learn the affinity between unlabeled regions and that instance.

[0005] However, the possibility of segmentation-assisted denoising in the field of electron microscope denoising has not yet been explored. In view of this, the present invention is proposed. Summary of the invention

[0006] The purpose of the present invention is to provide an electron microscope joint denoising and segmentation method, system, device and storage medium, which has the ability to improve the ability to remove noise and retain useful structures, while implicitly improving the segmentation performance.

[0007] The objective of the present invention is achieved through the following technical solutions:

[0008] An electron microscope joint denoising and segmentation method, comprising:

[0009] Constructing a training data set, including: pairs of noisy and clean electron microscope images and affinity labels, wherein the clean electron microscope image is an electron microscope image without noise;

[0010] A denoising and segmentation model is constructed and trained using a training data set, wherein the denoising and segmentation model includes: a denoising network, a segmentation network, and a fusion network; a noisy electron microscope image is input into the denoising network to obtain a preliminary denoised image, and a predicted affinity graph is output through the segmentation network; in the fusion network, the denoised electron microscope image is reconstructed using the predicted affinity graph as a guide, and during the reconstruction process, the semantic information contained in the predicted affinity graph is gradually fused into the features of the preliminary denoised image in a structure-aware manner, and finally the denoised electron microscope image is reconstructed; a training optimization target is constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity graph and the affinity label, and the denoising and segmentation model is trained;

[0011] The given electron microscope is input into the trained denoising and segmentation model to obtain the denoised electron microscope image and the corresponding predicted affinity map, and the predicted affinity map is processed into the segmentation result.

[0012] An electron microscope joint denoising and segmentation system, comprising:

[0013] A training data set construction unit is used to construct a training data set, including: a pair of noise and clean electron microscope images, and affinity labels, wherein the clean electron microscope image is an electron microscope image without noise;

[0014] A model construction and training unit is used to construct a denoising and segmentation model and use a training data set for training, wherein the denoising and segmentation model includes: a denoising network, a segmentation network and a fusion network; a noisy electron microscope image is input into the denoising network to obtain a preliminary denoised image, and a predicted affinity map is output through the segmentation network; in the fusion network, the denoised electron microscope image is reconstructed using the predicted affinity map as a guide, and during the reconstruction process, the semantic information contained in the predicted affinity map is gradually fused into the features of the preliminary denoised image in a structure-aware manner, and finally the denoised electron microscope image is reconstructed; a training optimization target is constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity map and the affinity label, and the denoising and segmentation model is trained;

[0015] The denoising and segmentation unit is used to input a given electron microscope into the trained denoising and segmentation model to obtain a denoised electron microscope image and a corresponding predicted affinity map, and process the predicted affinity map into a segmentation result.

[0016] A processing device, comprising: one or more processors; a memory for storing one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.

[0018] A readable storage medium stores a computer program, which implements the above method when the computer program is executed by a processor.

[0019] It can be seen from the technical solution provided by the present invention that the constructed denoising and segmentation model realizes electron microscope image denoising and segmentation under noisy conditions, and realizes mutual gain between the two subtasks (image denoising task and image segmentation task). The fusion network in the model combines the segmentation prior for electron microscope image denoising to improve the ability to remove noise and retain useful structures, while implicitly improving the segmentation performance; the denoised electron microscope image obtained by the present invention can be close to the clean electron microscope image obtained under high voltage and long exposure time, while maintaining the integrity and detail features of the cell structure, and the obtained segmentation result can accurately segment the target instance of interest. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 A flowchart of an electron microscope joint denoising and segmentation method provided by an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of a framework of an electron microscope joint denoising and segmentation method provided by an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of an instance-aware embedding module provided by an embodiment of the present invention;

[0024] Figure 4 A comparison diagram of the AC4 dataset denoising and segmentation results provided by an embodiment of the present invention;

[0025] Figure 5A comparison diagram of denoising and segmentation results of the CREMI-C dataset provided in an embodiment of the present invention;

[0026] Figure 6 A schematic diagram of an electron microscope joint denoising and segmentation system provided by an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of a processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 protection scope of the present invention.

[0029] First, the terms that may be used in this article are explained as follows:

[0030] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0031] The term "consisting of..." means excluding any technical feature elements not explicitly listed. If this term is used in a claim, it will make the claim closed, so that it does not contain technical feature elements other than the technical feature elements explicitly listed, except for the conventional impurities related to them. If this term only appears in a clause of a claim, it only limits the elements explicitly listed in the clause, and the elements recorded in other clauses are not excluded from the overall claim.

[0032] The following is a detailed description of an electron microscope combined denoising and segmentation method, system, device and storage medium provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer are followed. The reagents or instruments used in the embodiments of the present invention, if the manufacturer is not specified, are all conventional products that can be purchased commercially.

[0033] Embodiment 1

[0034] The embodiment of the present invention provides a method for combined denoising and segmentation of an electron microscope, such as Figure 1 As shown, it mainly includes the following steps:

[0035] Step 1: Build a training dataset.

[0036] In the embodiment of the present invention, the training data set mainly includes: noise and clean electron microscope image pairs and affinity labels, wherein the clean electron microscope image is an electron microscope image without noise.

[0037] Step 2: Build a denoising and segmentation model and train it using the training dataset.

[0038] In an embodiment of the present invention, the denoising and segmentation model includes: a denoising network, a segmentation network and a fusion network; a noisy electron microscope image is input into the denoising network to obtain a preliminary denoised image, and a predicted affinity graph is output through the segmentation network; in the fusion network, the denoised electron microscope image is reconstructed using the predicted affinity graph as a guide, and during the reconstruction process, the semantic information contained in the predicted affinity graph is gradually fused into the features of the preliminary denoised image in a structure-aware manner, and finally the denoised electron microscope image is reconstructed; a training optimization target is constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity graph and the affinity label, and the denoising and segmentation model is trained.

[0039] Preferably: a feature extraction module, an instance embedding module and a decoder network are configured in the fusion network; the features of the predicted affinity graph and the features of the preliminary denoised image are respectively extracted through the feature extraction module; the features of the predicted affinity graph are used as a guide through the instance embedding module, and the features of the predicted affinity graph and the features of the preliminary denoised image are fused in a structure-aware manner in combination with the attention mechanism to obtain fused image features, and continue to fuse with the features of the predicted affinity graph, and obtain the final image features after the final fusion; the denoised electron microscope image is reconstructed in combination with the final image features through the decoder network.

[0040] Step 3: Input the given electron microscope into the trained denoising and segmentation model to obtain the denoised electron microscope image and the corresponding predicted affinity map, and process the predicted affinity map into the segmentation result.

[0041] For example, the predicted affinity graph can be converted into the final segmentation result using the mutex watershed algorithm (S. Wolf, A. Bailoni, C. Pape, N.Rahaman, A. Kreshuk, U. Köthe, and FA Hamprecht. The mutex watershed andits objective: Efficient, parameter-free graph partitioning. IEEE transactions on pattern analysis and machine intelligence, 43(10):3724–3738,2020.).

[0042] The above solution provided by the embodiment of the present invention realizes denoising and segmentation of electron microscope images under noisy conditions, aiming to achieve mutual gain between the two subtasks (namely denoising and segmentation). The fusion network combines the segmentation prior for electron microscope image denoising to improve the ability to remove noise and retain useful structures, while implicitly improving the segmentation performance.

[0043] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, the method provided by the embodiment of the present invention is described in detail with reference to specific embodiments below.

[0044] 1. Overall overview of the plan.

[0045] The present invention aims to solve the challenges of electron microscope image denoising and segmentation under high noise levels, and its goal is to improve the performance of denoising and segmentation at the same time. The denoising result obtained should be as close as possible to the clean image obtained under high voltage and long exposure time, while maintaining the integrity and detail features of the cell structure as much as possible. The segmentation result obtained by the segmentation network should segment the target instance of interest as accurately as possible. The denoising and segmentation model proposed in the present invention realizes electron microscope image denoising and segmentation under high noise levels, and can simultaneously obtain high-quality electron microscope image denoising effects and instance segmentation results under high noise levels, providing an innovative solution for electron microscope image analysis. Compared with existing solutions, the present invention achieves the best results in both denoising indicators and segmentation indicators.

[0046] The denoising and segmentation model provided in the embodiment of the present invention mainly includes: a denoising network, a segmentation network and a fusion network. Figure 2As shown in the figure, the denoising network first receives the noisy electron microscope image as input to generate a preliminary denoised image; the segmentation network receives the preliminary denoised image and outputs a predicted affinity graph; the fusion network receives the preliminary denoised image and the predicted affinity graph, and uses the affinity graph as a guide to implement the reconstruction process. The present invention introduces a novel instance embedding module (IEM) ( Figure 2 ), fuses semantic features (features of the predicted affinity graph) and image features (features of the preliminary denoised image) in a structure-aware manner, preserving cellular integrity during reconstruction. IEM computes the similarity between semantic and image features, facilitating cross-modal interactions between heterogeneous representations.

[0047] 2. Detailed introduction of the plan.

[0048] 1. Build a training dataset.

[0049] The preferred implementation method of this part is as follows: collect multiple clean electron microscope images; perform the following processing on each clean electron microscope image, and finally construct a training data set. The processing process for each clean electron microscope image includes: constructing a corresponding pixel-level segmentation label (this step can be achieved by manual annotation), and converting it into an affinity label, and combining the set noise with the corresponding clean electron microscope image to synthesize a noisy electron microscope image, and corresponding the synthesized noisy electron microscope image to the clean electron microscope image to form a noise and clean electron microscope image pair.

[0050] In the embodiment of the present invention, the corresponding noise type may be set according to actual needs. For example, the set noise may be: Gaussian Poisson mixed noise, or simulated film noise.

[0051] 2. Model construction and training.

[0052] In the embodiment of the present invention, Figure 2 As shown in the figure, the overall framework of the electron microscope joint denoising and segmentation method is demonstrated. The figure presents the construction of a denoising and segmentation model including a denoising network, a segmentation network and a fusion network, as well as the denoising and segmentation process.

[0053] (1) Denoising network.

[0054] The input of the denoising network is the noisy electron microscope image in the training data set, and the output is the preliminary denoised image (i.e., the coarse denoised image). ).

[0055] (2) Segment the network.

[0056] The input of the segmentation network is the preliminary denoised image, and the output is the predicted affinity map (Pixel-level affinity map).

[0057] (3) Integrated network.

[0058] When optimizing image features using segmentation priors (i.e., predicted affinity graphs), a challenge that requires special consideration is the difference between the two sources. To address this problem, the present invention proposes Figure 3 The instance embedding module shown in the figure embeds instance priors to optimize the image feature map. The instance embedding module is a bridge between the segmentation network and the denoising network, establishing a connection between the two heterogeneous tasks of image denoising and image segmentation.

[0059] The main working processes involved in the instance embedding module include:

[0060] (1) Convert the features of the predicted affinity graph and the features of the preliminary denoised image into the same dimension to obtain the features of the converted preliminary denoised image , and the characteristics of the transformed predicted affinity graph ; Among them, n is a serial number related to the number of fusions, indicating that the current process is the n+1th fusion process, and the subscripts i and s are used to identify two types of features.

[0061] (2) Combine the attention mechanism to calculate the attention map, expressed as:

[0062] ;

[0063] in, represents the multi-head attention mechanism, which is a form of attention mechanism. is the calculated attention map.

[0064] (3) Yes Activate and compare with the features of the converted preliminary denoised image Add together to get the fused image features , expressed as:

[0065] ;

[0066] Among them, ReLU is a rectified linear unit, which is an activation function.

[0067] Figure 3 The detailed process of the internal processing of the instance-aware embedding module is shown. The flattening operation, the processing of the linear layer, the processing of the scaled dot product attention mechanism, etc. are all part of the processing of the multi-head attention mechanism. The specific principles can be referred to conventional technologies, and the present invention will not elaborate on them. In addition, Figure 3 The number of linear layers in the middle part is related to the number of heads in the multi-head attention mechanism. Figure 3Only relevant examples are given, and the specific number of heads can be set by the user according to actual conditions. In the embodiment of the present invention, when n is equal to 0, it means that the first fusion process is currently being carried out, and the features of the predicted affinity graph are the features extracted from the predicted affinity graph, and the features of the preliminary denoised image are the features extracted from the preliminary denoised image; when n is greater than 0, it means that the n+1th fusion is currently being carried out, and the features of the predicted affinity graph are the features extracted from the features of the affinity graph predicted in the previous fusion, and the features of the preliminary denoised image are the features extracted from the fused image features obtained in the previous fusion; when the n+1th fusion is the last fusion, the features of the fused image obtained are This is the final image feature.

[0068] Figure 2 An example with a maximum fusion number of 2 is provided, where , are the corresponding features extracted from the predicted affinity graph and the preliminary denoised image, It is the image feature after the first fusion; , The corresponding , The features extracted from is the image feature after the second fusion. Since the second fusion is the last fusion, That is the final image feature. In practical applications, users can adjust the maximum number of fusion times according to actual needs to meet the performance requirements of denoising and segmentation.

[0069] In general, the instance embedding module establishes a connection between the two tasks of image segmentation and image denoising, which helps the module to focus on and integrate the feature information of the two tasks more accurately. Through this module, the instance prior is successfully integrated into the denoising network, which helps the denoised image retain richer structural information, providing an innovative solution for the electron microscope image denoising task. At the same time, the fusion network can provide implicit but effective feedback for the affinity learning process, which is beneficial to segmentation. Exemplarily, a Unet network (U-shaped convolutional network) can be selected as the fusion network. The network is further enhanced by multiple instance embedding modules, which perform pixel-level attention operations between images and semantic features to obtain fused features. The number of instance embedding modules here is equal to the maximum number of fusions, that is, one instance embedding module is used for each fusion. For example, Figure 2 An example of using two instance embedding modules is provided. Furthermore, in order to save parameters while improving performance, the two instance embedding modules can be integrated into the second and third layers of the U-net network encoder in this example.

[0070] Considering that the related technologies of the U-net network involved here can refer to conventional technologies, no further description is given. In addition, the denoising network and segmentation network provided by the present invention can also be implemented by the user by selecting an existing network structure according to actual conditions, and the present invention does not limit their specific structural forms.

[0071] 3. Cooperative training mechanism.

[0072] In order to enable the fusion network to effectively achieve mutual gain between the two subtasks of denoising and segmentation, the model framework adopts a cooperative training mechanism. Figure 2 As shown, for the noisy electron microscope image First, the denoising network is used to reduce noise degradation and obtain a coarse denoised image. The segmentation network then outputs the predicted affinity map , predicted affinity graph As a segmentation prior to guide the fusion network to obtain the final denoised electron microscope image , the input of the fusion network is the predicted affinity graph and coarse denoised image , output denoised electron microscope image .

[0073] (1) For coarse denoised images , using the corresponding clean electron microscope image for supervision, combined with the coarse denoised image Corresponding clean electron microscope image The initial denoising loss is calculated by the difference , for example, can be calculated by the following formula:

[0074] ;

[0075] in, is the symbol of L1 norm.

[0076] (2) For denoising electron microscope images , use the corresponding clean electron microscope image for supervision, and calculate the final denoising loss by combining the difference between the denoised electron microscope image and the corresponding clean electron microscope image ; Exemplarily, it can be calculated by the following formula:

[0077] .

[0078] Those skilled in the art can understand that what is calculated by the L1 norm is the mean square error (MSE) of the two images in the symbol, and the specific calculation process involved can be implemented with reference to conventional technologies, which will not be elaborated in the present invention.

[0079] (3) For the predicted affinity graph , combined with the difference between the affinity labels, the segmentation loss is calculated using the weighted binary cross entropy loss function , expressed as:

[0080] ;

[0081] in, is the affinity label, N is the batch size (i.e. the number of noisy EM images per training), is the weight of the binary cross entropy of the j-th noisy electron microscope image.

[0082] In the embodiment of the present invention, a joint learning strategy is adopted to jointly optimize the denoising network, the segmentation network and the fusion network, and the training optimization target is constructed by combining the above three types of losses, which is expressed as:

[0083] ;

[0084] in, To optimize the training goal, and is a hyperparameter, which can be set as , .

[0085] The specific model training process involved later can refer to conventional technology and will not be elaborated in the present invention.

[0086] 3. Denoising and segmentation.

[0087] When the training is completed (for example, the number of training times reaches the set number, or the training optimization target converges), the trained denoising and segmentation model can be used for image denoising and image segmentation tasks, such as Figure 2 As shown, referring to the same process as that during training, a denoised electron microscope image and a corresponding predicted affinity map are obtained. The predicted segmentation map can be obtained through post-processing in combination with the predicted affinity map. The relevant post-processing schemes involved in this part can refer to conventional technologies and will not be elaborated in the present invention.

[0088] 4. Verification experiment.

[0089] In order to illustrate the denoising and segmentation performance of the present invention, experiments were performed to verify it.

[0090] In the experiment, two types of noise degradation were simulated to demonstrate the versatility of the present invention for different types of noise degradation. In the experiment: for simulated film noise, the kernel size was set to 5 and the maximum intensity was 1.5; for Gaussian-Poisson mixed noise, the noise level of the Gaussian noise was randomly set between 55 and 85, and the lambda parameter (intensity parameter) of the Poisson component was set to a random number between 0.6 and 0.8. The noise images of all experiments were preprocessed to ensure that the noise electron microscope images were the same.

[0091] The scheme provided by the present invention achieves excellent denoising quality and segmentation quality under both types of noise degradation. In the experiment, the training set and the test set are divided on the CREMI dataset (Funke J, Saalfeld S, Bock DD, et al. MICCAI challenge on circuit reconstruction from electron microscopy images[J]. 2016.) and the AC3 / AC4 dataset (Kasthuri N, Hayworth KJ, Berger DR, et al. Saturated reconstruction of a volume of neocortex[J]. Cell, 2015, 162(3): 648-661.). In the experiment, for the AC3 / AC4 dataset, 256 slices of the AC3 dataset are used for training, and 100 slices of the AC4 dataset are used for verification and evaluation. The CREMI dataset comes from the electron microscope data of the CREMI neuron segmentation challenge, which contains three manually annotated sub-volume data (CREMI-A, CREMI-B, CREMI-C), of which CREMI-C contains the most challenging neuron types. Each sub-volume data contains 125 image slices with an original resolution of 1250×1250, which are cropped to a standard 1024×1024 pixel size in the experiment. The first 75 slices of each sub-volume data are used for training, and the last 50 slices are used for verification and evaluation.

[0092] In order to evaluate the difference between the denoising result and the actual situation, two fidelity indicators PSNR (peak signal-to-noise ratio) and SSIM (structural similarity) are used. For the evaluation of electron microscopy image segmentation, VOI (Nunez-Iglesias J, KennedyR, Parag T, et al. Machine learning of hierarchical clustering to segment 2Dand 3D images[J]. PloS one, 2013, 8(8): e71715.) and ARAND (Arganda-Carreras I, Turaga SC, Berger DR, et al. Crowdsourcing the creation of imagesegmentation algorithms for connectomics[J]. Frontiers in neuroanatomy, 2015,9: 152591.) are used. Among them, VOI is information variation and ARAND is adaptive Rand error.

[0093] Experiments were conducted on Gaussian-Poission mixture degradation and film noise degradation, and the quantitative and visual results obtained are shown in Table 1, Table 2, Table 3, Figure 4 , Figure 5 For each dataset, the proposed model is trained and compared with three competitive baselines to evaluate the segmentation and denoising performance: (1) models trained purely for segmentation or denoising (referred to as SEG-Only / Dn-Only, respectively); (2) a sequential scheme that first trains a denoiser and then trains the above segmentation network (referred to as Sequential); (3) another scheme that first initializes the network for segmentation in a noise-free setting and then trains the cascade of the two networks in an end-to-end manner while fixing the weights of the segmentation network (referred to as DMS).

[0094] Table 1: Quantitative comparison of denoising and segmentation results on the CREMI test set (Gaussian-Poisson mixed noise)

[0095]

[0096] Table 2: Quantitative comparison of denoising and segmentation results of two noise reduction methods on the AC4 test set

[0097]

[0098] Table 3: Quantitative comparison of denoising and segmentation results of different network combinations on the CREMI-C dataset (Gaussian Poisson mixed noise)

[0099]

[0100] In the experiment, various network combinations for denoising and segmentation were explored to verify the universal performance of the interactive learning strategy designed in the present invention for different networks, as shown in Table 3. In the top row of Table 3, the network in front of the + sign is used as a denoising network, and the network after the + sign is used as a segmentation network. The fusion network all uses the Unet network (not shown in Table 3). For example, Unet+TransUNet means using Unet as a denoising network and TransUNet as a segmentation network. TransUNet is a network structure that combines transformers (transformation neural network) and Unet; DnCNN is a deep convolutional neural network based on residual learning and batch normalization, and RIDNet is a denoising network based on a feature attention mechanism. The specific principles of the above networks can refer to conventional technologies, and the present invention will not go into details. Through the above Tables 1, 2 and 3, it can be shown that the present invention surpasses all other methods in terms of denoising indicators and segmentation indicators. Figure 4 and Figure 5 From the comparison results shown in the figure, it can be seen that the denoising and restoration results of the present invention have clearer boundaries, richer texture details, and more complete structures. Figure 4 and Figure 5 The noise on the far left is all Gaussian Poisson mixed noise, the rightmost column is the Ground Truth (i.e., label), the top row is the clean electron microscope image, the bottom row is the segmentation label, the top row of each middle column is the denoised electron microscope image corresponding to each scheme, and the bottom row is the segmentation result corresponding to each scheme. This shows that the instance-aware embedding module explored by the present invention can effectively fuse the segmentation prior, rather than producing overly smoothed results at the pixel level. At the same time, the present invention shows segmentation results that are superior to all other methods in terms of segmentation indicators. This shows that the joint learning strategy invented by En enables the fusion network to provide implicit but effective feedback to the learning process of the segmentation network, guiding the learning process of the segmentation network.

[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0102] Embodiment 2

[0103] The present invention also provides an electron microscope joint denoising and segmentation system, which is mainly used to implement the method provided in the above embodiment, such as Figure 6 As shown, the system mainly includes:

[0104] A training data set construction unit is used to construct a training data set, including: a pair of noise and clean electron microscope images, and affinity labels, wherein the clean electron microscope image is an electron microscope image without noise;

[0105] A model construction and training unit is used to construct a denoising and segmentation model and use a training data set for training, wherein the denoising and segmentation model includes: a denoising network, a segmentation network and a fusion network; a noisy electron microscope image is input into the denoising network to obtain a preliminary denoised image, and a predicted affinity map is output through the segmentation network; in the fusion network, the denoised electron microscope image is reconstructed using the predicted affinity map as a guide, and during the reconstruction process, the semantic information contained in the predicted affinity map is gradually fused into the features of the preliminary denoised image in a structure-aware manner, and finally the denoised electron microscope image is reconstructed; a training optimization target is constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity map and the affinity label, and the denoising and segmentation model is trained;

[0106] The denoising and segmentation unit is used to input a given electron microscope into the trained denoising and segmentation model to obtain a denoised electron microscope image and a corresponding predicted affinity map, and process the predicted affinity map into a segmentation result.

[0107] Considering that the main technical details involved in the above system have been introduced in the previous embodiments, they will not be repeated here.

[0108] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.

[0109] Embodiment 3

[0110] The present invention also provides a processing device, such as Figure 7 As shown, it mainly includes: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the methods provided in the aforementioned embodiments.

[0111] Furthermore, the processing device also includes at least one input device and at least one output device; in the processing device, the processor, memory, input device, and output device are connected via a bus.

[0112] In the embodiment of the present invention, the specific types of the memory, input device and output device are not limited; for example:

[0113] The input device may be a touch screen, an image acquisition device, a physical button or a mouse, etc.;

[0114] The output device may be a display terminal;

[0115] The memory may be a random access memory (RAM) or a non-volatile memory such as a disk storage.

[0116] Embodiment 4

[0117] The present invention also provides a readable storage medium storing a computer program, which implements the method provided in the above embodiment when the computer program is executed by a processor.

[0118] In the embodiment of the present invention, the readable storage medium as a computer-readable storage medium can be set in the aforementioned processing device, for example, as a memory in the processing device. In addition, the readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk, etc., which can store program codes.

[0119] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A combined denoising and segmentation method for electron microscopy, characterized in that: include: Constructing a training data set, including: pairs of noisy and clean electron microscope images and affinity labels, wherein the clean electron microscope image is an electron microscope image without noise; A denoising and segmentation model is constructed and trained using a training data set, wherein the denoising and segmentation model includes: a denoising network, a segmentation network, and a fusion network; a noisy electron microscope image is input into the denoising network to obtain a preliminary denoised image, and a predicted affinity graph is output through the segmentation network; in the fusion network, the denoised electron microscope image is reconstructed using the predicted affinity graph as a guide, and during the reconstruction process, the semantic information contained in the predicted affinity graph is gradually fused into the features of the preliminary denoised image in a structure-aware manner, and finally the denoised electron microscope image is reconstructed; a training optimization target is constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity graph and the affinity label, and the denoising and segmentation model is trained; Input a given electron microscope into the trained denoising and segmentation model to obtain a denoised electron microscope image and a corresponding predicted affinity map, and process the predicted affinity map into a segmentation result; In the reconstruction process, the semantic information contained in the predicted affinity graph is gradually integrated into the features of the preliminary denoised image in a structure-aware manner, and the denoised electron microscope image is finally reconstructed, including: Configure the feature extraction module, instance embedding module and decoder network in the fusion network; The features of the predicted affinity graph and the features of the preliminary denoised image are respectively extracted through the feature extraction module; The predicted affinity map features are used as a guide through the instance embedding module, and the predicted affinity map features are fused with the features of the preliminary denoised image in a structure-aware manner in combination with the attention mechanism to obtain the fused image features, which are then further fused with the predicted affinity map features. After the final fusion, the final image features are obtained. Reconstructing a denoised electron microscope image by combining the final image features with a decoder network; The features of the predicted affinity graph and the preliminary denoised image are fused in a structure-aware manner using the attention mechanism: The features of the predicted affinity graph and the features of the preliminary denoised image are converted to the same dimension to obtain the features of the converted preliminary denoised image. , and the characteristics of the transformed predicted affinity graph ; Among them, n is the serial number related to the number of fusions, indicating that the current process is the n+1th fusion process; Combined with the attention mechanism, the attention map is calculated and expressed as: ; in, represents the multi-head attention mechanism, which is a form of attention mechanism. is the calculated attention map; right Activate and compare with the features of the converted preliminary denoised image Add together to get the fused image features , expressed as: ; Among them, ReLU is a rectified linear unit, which is an activation function.

2. The electron microscope joint denoising and segmentation method according to claim 1, characterized in that: The constructing of the training data set comprises: Collect multiple clean electron microscope images; The following processing is performed on each clean electron microscope image to finally construct a training data set. The processing process for each clean electron microscope image includes: constructing a corresponding pixel-level segmentation label and converting it into an affinity label, and combining the set noise with the corresponding clean electron microscope image to synthesize a noisy electron microscope image, and then corresponding the synthesized noisy electron microscope image to the clean electron microscope image to form a noise and clean electron microscope image pair.

3. The electron microscope joint denoising and segmentation method according to claim 2, characterized in that: The set noise is: Gaussian Poisson mixed noise or simulated film noise.

4. The electron microscope joint denoising and segmentation method according to claim 1, characterized in that: Also includes: When n is equal to 0, it means that the first fusion process is currently in progress, the features of the predicted affinity graph are the features extracted from the predicted affinity graph, and the features of the preliminary denoised image are the features extracted from the preliminary denoised image; When n is greater than 0, it means that the n+1th fusion is currently in progress, and the features of the predicted affinity graph are the features extracted from the features of the affinity graph predicted in the previous fusion, and the features of the preliminary denoised image are the features extracted from the fused image features obtained from the previous fusion; when the n+1th fusion is the last fusion, the obtained fused image features are the final image features.

5. The electron microscope joint denoising and segmentation method according to claim 1, characterized in that: The training optimization target constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity graph and the affinity label includes: The initial denoising loss is calculated by combining the difference between the initial denoised image and the corresponding clean electron microscope image. , the final denoising loss is calculated by combining the difference between the denoised electron microscopy image and the corresponding clean electron microscopy image , combining the difference between the predicted affinity graph and the corresponding affinity label, the weighted binary cross entropy loss function is used to calculate the segmentation loss ; Construct the training optimization objective, expressed as: ; in, To optimize the training goal, and is a hyperparameter.

6. An electron microscope joint denoising and segmentation system, characterized in that: include: A training data set construction unit is used to construct a training data set, including: a pair of noise and clean electron microscope images and affinity labels, wherein the clean electron microscope image is an electron microscope image without noise; A model construction and training unit is used to construct a denoising and segmentation model and use a training data set for training, wherein the denoising and segmentation model includes: a denoising network, a segmentation network and a fusion network; a noisy electron microscope image is input into the denoising network to obtain a preliminary denoised image, and a predicted affinity map is output through the segmentation network; in the fusion network, the denoised electron microscope image is reconstructed using the predicted affinity map as a guide, and during the reconstruction process, the semantic information contained in the predicted affinity map is gradually fused into the features of the preliminary denoised image in a structure-aware manner, and finally the denoised electron microscope image is reconstructed; a training optimization target is constructed by combining the difference between the preliminary denoised image and the corresponding clean electron microscope image, the difference between the denoised electron microscope image and the corresponding clean electron microscope image, and the difference between the predicted affinity map and the affinity label, and the denoising and segmentation model is trained; A denoising and segmentation unit, used for inputting a given electron microscope into a trained denoising and segmentation model, obtaining a denoised electron microscope image and a corresponding predicted affinity map, and processing the predicted affinity map into a segmentation result; In the reconstruction process, the semantic information contained in the predicted affinity graph is gradually integrated into the features of the preliminary denoised image in a structure-aware manner, and the denoised electron microscope image is finally reconstructed, including: Configure the feature extraction module, instance embedding module and decoder network in the fusion network; The features of the predicted affinity graph and the features of the preliminary denoised image are respectively extracted through the feature extraction module; The predicted affinity map features are used as a guide through the instance embedding module, and the predicted affinity map features are fused with the features of the preliminary denoised image in a structure-aware manner in combination with the attention mechanism to obtain the fused image features, which are then further fused with the predicted affinity map features. After the final fusion, the final image features are obtained. Reconstructing a denoised electron microscope image by combining the final image features with a decoder network; The features of the predicted affinity graph and the preliminary denoised image are fused in a structure-aware manner using the attention mechanism: The features of the predicted affinity graph and the features of the preliminary denoised image are converted to the same dimension to obtain the features of the converted preliminary denoised image. , and the characteristics of the transformed predicted affinity graph ; Among them, n is the serial number related to the number of fusions, indicating that the current process is the n+1th fusion process; Combined with the attention mechanism, the attention map is calculated and expressed as: ; in, represents the multi-head attention mechanism, which is a form of attention mechanism. is the calculated attention map; right Activate and compare with the features of the converted preliminary denoised image Add together to get the fused image features , expressed as: ; Among them, ReLU is a rectified linear unit, which is an activation function.

7. A processing device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

8. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.