Unsupervised attention generation network device and method based on adaptive normalization
By adopting an adaptive normalized unsupervised attention generation network in medical image analysis, and using high and low frequency convolutional layers and self-attention layers to perform bidirectional conversion of CT and MRI images, the image conversion efficiency and accuracy issues are solved. Simplifying the diagnostic process and reducing radiation dose.
Patent Information
- Application Number
- CN202111154782.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-29
AI Technical Summary
Existing technology is difficult to effectively convert CT images and MRI images in medical image analysis, resulting in long MRI image acquisition time, high cost and the presence of motion artifacts. CT scans are limited by radiation hazards, and there is a lack of effective modal conversion methods to simplify diagnosis. process.
Using an unsupervised attention generation network based on adaptive normalization, the Cycle-GAN architecture is combined with high and low frequency convolutional layers, self-attention layers and adaptive normalization layers to extract and transform image features to achieve CT and MRI images. Bidirectional conversion between images reduces low-frequency information, highlights high-frequency information, and improves the accuracy and efficiency of image conversion.
By maintaining the original high-frequency characteristics of the image, it reduces the computational burden, improves the accuracy and efficiency of image conversion, simplifies the diagnostic process, is suitable for image supplementation of radioactive tumor treatment and automatic image analysis tools, and reduces radiation dose.
Smart Images

Figure CN113989605B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of medical image processing, active health, convolutional neural networks, and adaptive normalization of attention mechanisms, and in particular to an unsupervised attention generation network device and method based on adaptive normalization. Background Art
[0002] In recent years, computer vision has gained momentum in the field of medical image analysis and has been widely used in a range of application areas, such as lesion detection and classification, semantic segmentation, etc. The development of deep learning algorithms, especially the application of convolutional neural networks (CNN) and GAN networks, image registration and image enhancement related technologies have led to a boom in methods for generating and transforming image data. From another perspective, radiological scans are an important tool in modern medicine. They support diagnosis, disease tracking and patient treatment monitoring. This has led to recent advances in the use of computer vision in the field of medical image analysis.
[0003] Currently in the field of medical imaging, many methods are used to obtain spatially resolved information of organs and tissues in the body. This includes ordinary radiography, computed tomography (CT), magnetic resonance imaging (MRI) and positron emission tomography (PET). Computed tomography (CT) images have good spatial resolution and geometric characteristics, low contrast for human soft tissues, clear reflection of bones, and can serve as a good reference for the location of lesions, but CT has poor ability to distinguish soft tissue structures with similar electron density, so the display of the lesions themselves is relatively poor. Nuclear magnetic resonance (MRI) images can clearly reflect the anatomical structure of soft tissues, organs, blood vessels, etc., but are insensitive to calcification points, have poor display of rigid bone tissue, and will be geometrically distorted by magnetic interference.
[0004] Typically, two imaging modes or image contrasts, computed tomography (CT) and magnetic resonance imaging (MRI), provide complementary information, so two or more acquisitions of images are necessary steps in a complete diagnostic procedure. Radiotherapy is currently one of the three effective methods for treating malignant tumors. CT images are used for dose determination in radiation oncology, and MRI images mainly reflect inter-tissue characteristic parameters to observe organs and their lesions. In general, two MRI images and CT images are required to compare to observe the final lesion location and cause. However, MRI images require longer acquisition time and are more expensive than CT images, and patients' unconscious (i.e., due to breathing) and autonomous (i.e., due to uncomfortable conditions) movements are very common, which can cause some key information in magnetic resonance imaging to be lost, resulting in motion artifacts in the final MRI images, which cannot accurately provide the information needed by doctors. However, MRI provides excellent soft tissue contrast and hopes to reduce unnecessary radiation doses. Radiotherapy with only MRI also simplifies clinical workflow and avoids the uncertainty of MRI and CT alignment. However, there is a need for methods to derive a CT-equivalent representation from the patient's MRI images, usually called synthetic CT (SCT), for dose calculation and DRR-based patient positioning. In addition, the use of MRI-based radiotherapy is limited in the context of the increasing use of metal implants such as pacemakers and artificial joints in an aging society. Most of the concerns about CT scans are the hazards of radiation. At the same time, in the field of medical imaging, the optimization of imaging image quality is an important step in extracting and diagnosing information. Especially when using automatic image analysis tools, high image quality is required for the accuracy and reliability of the results. In specific cases, it is feasible to generate additional image information to supplement relevant information without the need for additional examinations using information from already acquired data. Therefore, a framework that can convert between medical image modes will shorten the diagnostic process by making additional scans unnecessary. This improved diagnostic efficiency is not only beneficial to medical staff, but also more convenient and effective for patients. So modality conversion between CT images and MRI images becomes particularly important.
[0005] In the conversion between MRI images and CT images, since it is impossible to find a large number of registered images, the Gan network is proposed to perform modal conversion. The self-attention layer is used to capture long-distance dependencies, and the adaptive normalization layer and high- and low-frequency convolution layers are used to maintain the original features of the image, thereby achieving conversion between modalities while maintaining the original features. Summary of the invention
[0006] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide an unsupervised attention generation network device and method based on adaptive normalization.
[0007] The objective of the present invention is achieved through the following technical solutions:
[0008] An unsupervised attention generation network device based on adaptive normalization uses Cycle-GAN as the basic architecture, including a generator and a discriminator. The generator is provided with high- and low-frequency convolution layers, a self-attention layer and an adaptive normalization layer. The high- and low-frequency convolution layers are used to extract first-order information from input images; the self-attention layer continues to process the extracted first-order information to form a second-order image representation with an attention mechanism; the adaptive normalization layer cascades the second-order image representation information with an attention mechanism to generate a final image; the discriminator discriminates between real images and generated images to assist the generator in better generation.
[0009] The present invention also provides an image conversion method of an unsupervised attention network device based on adaptive normalization, comprising the following steps:
[0010] (1) Given an input image, the input image is fed into a generator network for feature extraction;
[0011] (2) The input image passes through the high- and low-frequency convolution layers to separate the high-frequency information from the low-frequency information of the input image, and then performs downsampling operations using different convolution kernels.
[0012] (3) The downsampled features are input into the self-attention layer to capture the long-range dependencies between pixels in the image and weight different pixel parts to achieve intensive conversion of high-frequency information.
[0013] (4) After the self-attention layer, an adaptive normalization layer is used to balance the ratio of InstanceNormalization and Layer Normalization in the synthesized image;
[0014] (5) Finally, the image generated after deconvolution is obtained. The generated image and the original image are sent to the discriminator together, and the discriminator is used to determine whether the generated image is real.
[0015] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0016] 1. The present invention uses high- and low-frequency convolution layers to divide the image into a high-frequency part and a low-frequency part. The high-frequency part of the image is a feature-intensive part, which helps to better maintain the original features of the image during the conversion process. The purpose of dense conversion in the high-frequency area is achieved. The low-frequency part is too flat in CT and MRI. We can discard a certain proportion of this part to reduce the parameters and computational complexity of our network.
[0017] 2. Use the self-attention layer to effectively capture the long-range dependencies between pixels in the image in the high-level features, so that the features not only have the high-frequency features of the image, but also have certain spatial features. The self-attention layer can give a certain weight to the high-frequency features during the image conversion process, so as to achieve the purpose of focusing on important areas and better converting the texture and features in important areas.
[0018] 3. The use of the adaptive normalization layer solves the ratio problem of Instance Normalization and Layer Normalization in the image restoration process. We learn a parameter α to adaptively balance the ratio of Instance Normalization and Layer Normalization. This is reflected in the process of this structure, which is to scale and translate the high-frequency information with a certain weight obtained through the self-attention layer accordingly to help the attention guide model flexibly control the change of shape and texture.
[0019] 4. The present invention can filter low-frequency information, reduce the calculation burden, highlight the importance of high-frequency information, and achieve intensive conversion in the high-frequency information area by deriving the calculation method of high / low-frequency information in the field of change image generation.
[0020] 5. The present invention extracts complete image information features by designing an updated multi-layer Cycle_GAN network to avoid information forgetting in model derivation.
[0021] 6. The present invention can be used in the process of radioactive tumor treatment and image supplementation of automatic image analysis tools. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of the overall structure of the unsupervised attention generation network device of the present invention.
[0023] Figure 2 It is a schematic diagram of the network generator structure of the present invention.
[0024] Figure 3 It is a schematic diagram of the high and low frequency convolution layer structure of the feature extraction part of the present invention.
[0025] Figure 4 It is a schematic diagram of the self-attention layer structure of the feature extraction part of the present invention.
[0026] Figure 5 It is a schematic diagram of the adaptive normalization layer structure of the decoding part of the present invention.
[0027] Figure 6 It is a schematic diagram of the experimental results of the present invention. DETAILED DESCRIPTION
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0029] An unsupervised attention generation network structure based on adaptive normalization uses Cycle-GAN as the basic architecture, and adds high and low frequency convolution layers, self-attention layers and adaptive normalization layers on this basis to complete image feature extraction and restoration, and convert the extracted features into corresponding images.
[0030] The basic model of the unsupervised attention generation network device proposed in the present invention is Cycle-GAN, which includes a generator and a discriminator, and the generator includes an encoder and a decoder process. The structure of the present invention mainly improves the encoder and decoder processes of the generator. It is mainly composed of high and low frequency convolution layers, attention layers and adaptive normalization layers. The generator encoder extracts features from the input image, and the decoder upsamples the extracted features and restores them to an image. The generated image is sent to the discriminator together with the original image, so that the discriminator can determine whether the generated image is real. In summary, in the structure proposed in the present invention, the input is any MRI or CT image: I mri or I ct The network structure output will generate O ct Or mri , which is a tool for bidirectional conversion of computed tomography (CT) / magnetic resonance imaging (MRI) images, used in the process of radioactive tumor treatment and image supplement of automatic image analysis tools. The overall structure is shown in the attached Figure 1 .
[0031] like Figure 2 As shown, it is a structural diagram of the generator in the network structure of the present invention. The generator mainly includes three modules, namely high and low frequency convolution layers, self-attention layers and adaptive normalization layers.
[0032] For details, see Figure 3 , high and low frequency convolution layers:
[0033] The high- and low-frequency convolution layers divide the input image into high-frequency information and low-frequency information, and perform convolution with different convolution kernels respectively to achieve dense conversion in the high-frequency area and filter out unimportant low-frequency information to reduce the amount of calculation.
[0034] 1) High-frequency information can be expressed as Y H =X H +upsample(X L , 2)
[0035] 2) Low-frequency information can be expressed as Y L =XL +pool(X H , 2)
[0036] High-frequency information is obtained by upsampling high-frequency information and low-frequency information. Low-frequency information is obtained by downsampling low-frequency information and high-frequency information. We assign different weights to obtain different high-frequency and low-frequency information, so as to adjust the network structure according to different tasks.
[0037] See Figure 4 , self-attention layer:
[0038] The self-attention layer can focus on important areas and suppress unnecessary information by learning a weight matrix in the entire image. Therefore, the attention mechanism is integrated into the network structure to focus on important areas to achieve better conversion of textures and features in important areas.
[0039] The feature map obtained from the encoder will be divided into three branches, through which the input feature Gather into three feature spaces f, g and h, then transpose and transform the matrix through the feature map, multiply them, and get the attention feature map A through softmax. The formula is as follows:
[0040]
[0041] Among them A i,j It indicates the degree of attention paid by the model to the i-th position when synthesizing the j-th region, where N is the number of features in the previous layer. Finally, the feature map of the h space is matrix multiplied with the attention feature map A to obtain the final output.
[0042] x sa =x+αT(Ah′(x))
[0043] like Figure 5 , adaptive normalization layer:
[0044] The choice of normalization function has a significant impact on the quality of the transformation results for datasets with different amounts of shape and texture variations. Inspired by Batch Normalization, this paper proposes an adaptive normalization layer, whose parameters are learned from the dataset during training by adaptively selecting the appropriate ratio between instance normalization (IN) and layer normalization (LN). The adaptive normalization function helps our attention-guided model flexibly control the amount of shape and texture variations.
[0045]
[0046]
[0047] p〈←clipo,1](p-τ△p)
[0048] where μ I , σ I are the channel-wise mean and standard deviation, μ L , σ L are the layer-wise mean and standard deviation, γ and β are the parameters generated by the feature-map after the full connection level, τ represents the learning rate, Δ ρ Represents the parameter update (e.g., gradient) determined by the optimizer. By enforcing boundaries in the parameter update step, the value of ρ is limited to the range of [0, 1], and the ratio of Instance Normalization and Layer Normalization can be adjusted according to the generator. The initial value of ρ in the decoding part is set to 0.9.
[0049] The specific steps are as follows: (101) Use the Cycle-GAN infrastructure to build a basic network model, and then add high and low frequency convolution layers, self-attention layers, and adaptive normalization layers.
[0050] First, Cycle-GAN is used as the basic architecture. On this basis, high- and low-frequency convolution layers are used to divide the image into high- and low-frequency forms, and some low-frequency information is discarded. Since low-frequency information represents global information, it can be discarded during the conversion process. Then the extracted feature image is passed through a layer of self-attention, which can focus on important areas to achieve better conversion of textures and features in important areas.
[0051] After downsampling, the attention map is upsampled with adaptive normalization to help the attention guide model flexibly control the amount of change in shape and texture. Here, a hyperparameter α is set to represent the ratio of Instance Normalization and Layer Normalization in adaptive normalization.
[0052] Specifically, in this embodiment, 60% of the data set provided by Tianjin Medical University General Hospital and 40% of the data in CT / MRI brainscans are combined into a new data set for training and testing. After the images are divided into the data set and the test set, the images are put into the generator, and after passing through the feature extraction module, the results are finally obtained.
[0053] In practical applications, these data samples can be replaced with your own data samples as long as the framework structure is kept the same. Moreover, this embodiment only needs to use pytorch (Python machine learning framework), which is more convenient for practical application.
[0054] In order to verify the feasibility of the technical solution, this embodiment conducted experiments on the data set and finally obtained the results in Table 1 and Figure 6 result. Figure 6 The leftmost column is the image result obtained by the network structure and method of the present invention.
[0055] Table 1
[0056]
[0057] The present invention is not limited to the embodiments described above. The above description of the specific embodiments is intended to describe and illustrate the technical solution of the present invention. The above specific embodiments are merely illustrative and not restrictive. Without departing from the scope of the present invention and the scope of protection of the claims, a person of ordinary skill in the art can also make many forms of specific changes under the guidance of the present invention, which all fall within the scope of protection of the present invention.
Claims
1. An unsupervised attention generation network device based on adaptive normalization, It is characterized in that Cycle-GAN is used as the basic architecture, including a generator and a discriminator. The generator is equipped with high- and low-frequency convolution layers, self-attention layers, and adaptive normalization layers. The high- and low-frequency convolution layers are used to extract first-order information from the input image; the self-attention layer continues to process the extracted first-order information to form a second-order image representation with an attention mechanism; The adaptive normalization layer cascades the second-order image representation information with the attention mechanism to generate the final image; the discriminator is used to discriminate between the real image and the generated image; The high- and low-frequency convolution layers divide the input image into high-frequency information and low-frequency information, and perform convolution with different convolution kernels to achieve dense conversion in the high-frequency area. The high-frequency information is obtained by upsampling the high-frequency information and the low-frequency information; the low-frequency information is obtained by downsampling the low-frequency information and the high-frequency information. The self-attention layer incorporates the attention mechanism by learning a weight matrix across the entire image; Specifically, the feature map obtained from the encoder will be divided into three branches. Through the three branches, the input feature Gather into three feature spaces f, g and h, then transpose and transform the matrix through the feature map, multiply them, and get the attention feature map A through softmax. The formula is as follows: Among them A i,j Indicates the degree of attention paid by the model to the i-th position when synthesizing the j-th region, where N is the number of features in the previous layer; finally, the feature map of the h space is matrix multiplied with the attention feature map A to obtain the final output; The adaptive normalization layer learns its parameters from the dataset during training by adaptively choosing the ratio between instance normalization and layer normalization; ρ←clip [0,1] (r-tDr) where μ I , σ I are the channel-wise mean and standard deviation, μ L , σ L are the layer-wise mean and standard deviation, γ and β are the parameters generated by the feature-map after the full connection level, τ represents the learning rate, Δ ρ represents the parameter update determined by the optimizer; the value of ρ is in the range [0, 1].
2. An image conversion method based on an unsupervised attention network structure with adaptive normalization, based on the unsupervised attention generation network device described in claim 1, It is characterized in that The following steps are involved: (1) Given an input image, the input image is fed into a generator network for feature extraction; (2) The input image passes through the high- and low-frequency convolution layers to separate the high-frequency information from the low-frequency information of the input image, and then performs downsampling operations using different convolution kernels. (3) The downsampled features are input into the self-attention layer to capture the long-range dependencies between pixels in the image and weight different pixel parts to achieve intensive conversion of high-frequency information. (4) After the self-attention layer, an adaptive normalization layer is used to balance the ratio of InstanceNormalization and Layer Normalization in the synthesized image; (5) Finally, the image generated after deconvolution is obtained. The generated image and the original image are sent to the discriminator together, and the discriminator is used to determine whether the generated image is real.
