Cross-modal conversion method and device for CT image and MRI image

By optimizing the Cycle-GAN network structure and loss function, image features are extracted to convert CT images to MRI images and MRI images to CT images, solving the problems of insufficient generated image quality and insufficient annotation information of the training data set, achieving high quality and Consistent image transformation.

CN114677263BActive Publication Date: 2024-10-01SHENZHEN BAY LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210236033.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2024-10-01
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

In the cross-modal conversion of CT images and MRI images, the existing technology has problems of limited generated image quality and insufficient annotation information of the training data set, which makes it difficult to train the generation network and makes it difficult to achieve ideal generation effects.

Method used

Using the Cycle-GAN network structure, by extracting the structural features and grayscale features of the image, and introducing the loss functions of the generative network and the discriminant network, combined with the structural loss, reconstruction loss and adversarial loss, the generative network is optimized to realize CT images to MRI images and Automatic modality conversion of MRI images to CT images.

Benefits of technology

It improves the quality of generated images and the consistency of anatomical structures, reduces the need for segmentation branches and manual annotation, achieves more flexible and high-quality image conversion, and can effectively perform translation between CT images and MRI images in clinical practice. Any conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114677263B_ABST
    Figure CN114677263B_ABST
Patent Text Reader

Abstract

The present invention discloses a cross-modal conversion method for CT images and MRI images, comprising: obtaining a sample image pair; constructing a learning system based on Cycle-GAN, wherein two generative networks generate a first structural feature, a first grayscale feature and a generated image according to an input image, and two discriminative networks are used to judge the authenticity of the CT image and the MRI image; constructing a loss function of the learning system, including a loss function of the generative network and a loss function of the discriminative network, wherein the loss function of the generative network includes a structural loss based on the structural feature, a reconstruction loss based on the generated image and an adversarial loss based on the discriminative network's discriminative result; the loss function of the discriminative network includes a discriminative loss for the CT image and a discriminative loss for the MRI image; the sample image pair and the loss function perform parameter optimization on the learning system to obtain two generative models; and the two generative models are used to realize the conversion between the CT image and the MRI image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of medical image processing, and in particular relates to a method and device for cross-modal conversion of CT images and MRI images. Background Art

[0002] MRI images have outstanding advantages in clinical diagnosis due to their superior soft tissue resolution, providing doctors with a large amount of information and no ionizing radiation harm to patients. However, MRI imaging equipment is expensive, the scanning cost is high, and the scanning time is long, making it difficult to widely obtain and use MRI images in clinical practice.

[0003] Computed tomography (CT) images have the advantages of short scanning time, low cost, and wide availability, and are widely used in clinical practice. CT images are particularly important when making radiotherapy plans for patients. However, CT images have poor soft tissue resolution and are difficult to provide rich tissue information for clinical diagnosis.

[0004] In order to give full play to the advantages of CT images and MRI images and avoid the difficulties faced in using CT images and MRI images in clinical practice, the researchers proposed using an image generation model to learn the mapping relationship between the distribution of CT images and MRI images at the same anatomical position of the patient, to achieve modal conversion of CT images and MRI images, and to achieve the effect of automatically generating corresponding MRI images from the patient's CT images and vice versa.

[0005] To address the problem of unpaired CT data and MRI data, the researchers proposed using a cycle-consistency generative adversarial network, Cycle-GAN, which avoids the requirement for paired and matching training data, greatly alleviates the restrictions on training data sets, and expands the amount of data that can be used to generate network training.

[0006] When using the Cycle-GAN network structure to perform modality conversion between CT and MRI images, on unpaired CT and MRI datasets, the generator that generates corresponding MRI images from CT images and the generator that generates corresponding CT images from MRI images are trained simultaneously to achieve automatic modality conversion between CT images and MRI images to meet more clinical needs.

[0007] In order to make up for the problem of limited quality of generated images caused by insufficient supervision information of generated images due to unpaired training datasets, that is, to ensure the integrity and consistency of important areas such as targets during image generation, the researchers added a segmentation branch based on the image generation framework, and introduced the segmentation loss of the input image and the segmentation loss of the generated image into the network loss function, thereby enhancing supervision of core areas such as targets during network optimization, preventing the loss of target areas during image generation, and achieving higher quality generation.

[0008] However, the above-mentioned image generation method based on the Cycle-GAN network structure adds a segmentation branch to strengthen the supervision of the generation results, requires additional pixel-level annotation information in the training data set, increases the complexity of the network, and increases the difficulty of network training. During the network training process, it is difficult to effectively balance the generation network, the discrimination network, and the segmentation network to achieve an ideal generation effect. Summary of the invention

[0009] In view of the shortcomings of the above-mentioned image generation technology, the object of the present invention is to provide a method and device for cross-modality conversion of CT images and MRI images to meet clinical needs for images of different modalities.

[0010] To achieve the above-mentioned object of the invention, the cross-modal conversion method of CT images and MRI images provided in the embodiment of the present invention comprises the following steps:

[0011] Acquire CT images and MRI images of the same target, and construct a CT image set and a MRI image set;

[0012] A learning system is constructed based on Cycle-GAN, wherein the first generation network is used to generate a first structural feature, a first grayscale feature, and an MRI image according to a CT image, the second generation network is used to generate a second structural feature, a second grayscale feature, and a CT image according to an MRI image, the first discriminant network is used to judge the authenticity of the CT image, and the second discriminant network is used to judge the authenticity of the MRI image;

[0013] Constructing the loss function of the learning system, including the loss function of the generative network and the loss function of the discriminative network, wherein the loss function of the generative network includes the structural loss based on the structural features, the reconstruction loss based on the generated image, and the adversarial loss based on the discriminative network's discriminative result; the loss function of the discriminative network includes the discriminative loss for CT images and the discriminative loss for MRI images;

[0014] Optimize the parameters of the learning system using the CT image set, the MRI image set and the loss function. After the optimization is completed, extract the first generation network with determined parameters as the first generation model, and extract the second generation network with determined parameters as the second generation model;

[0015] Using the first generative model to achieve conversion from CT images to MRI images;

[0016] The second generative model is used to realize the conversion of MRI images to CT images.

[0017] Preferably, bilinear interpolation is performed on the acquired CT image and MRI image of the same target to change the CT image and the MRI image to the same spatial resolution, and then a CT image set and a MRI image set are constructed.

[0018] Preferably, the first generation network and the second generation network have the same structure, both comprising an encoding part and a decoding part;

[0019] The encoding part includes a feature pre-extraction module, a structural feature encoding module, and a grayscale feature encoding module. After the input image is extracted by the feature pre-extraction module, the extracted features are respectively input to the structural feature encoding module and the grayscale feature encoding module, and the structural features and grayscale features are output after encoding respectively.

[0020] The decoding part includes multiple deconvolution units connected in sequence, at least one convolution layer and an activation layer, wherein the deconvolution unit includes a connected residual submodule and a deconvolution layer; the structural features and grayscale features output by the encoding part are spliced ​​and input to the decoding part, and the decoding part performs a decoding operation on the input spliced ​​features to generate an image.

[0021] Preferably, the feature pre-extraction module comprises at least one convolution unit, wherein the convolution unit comprises a connected residual submodule and a convolution layer;

[0022] The structure feature encoding module has the same structure as the grayscale feature encoding module, including at least one convolution unit, and the number of network layers of the structure feature encoding module is greater than the number of network layers of the feature pre-extraction module.

[0023] Preferably, the first discriminant network and the second discriminant network have the same structure, including at least one convolutional module, a convolutional layer and an activation layer connected in sequence;

[0024] Among them, the convolution module includes connected convolution layers, normalization layers and activation layers.

[0025] Preferably, the structural loss based on structural features includes:

[0026]

[0027]

[0028] Where j represents the image index, N represents the number of images, and I CTRepresents the input CT image, I MRI represents MRI image, I fCT Indicates I CT The pseudo CT image generated by the first generation network, I fMRI represents a pseudo MRI image, Indicates I CT The structural characteristics of I fMRI The structural characteristics of Indicates I MRI The structural characteristics of Indicates I fCT The structural characteristics of L E-CT represents the structural loss corresponding to the CT image, L E-MRI Indicates the structural features corresponding to the MRI image;

[0029] The reconstruction loss based on the generated image includes:

[0030]

[0031]

[0032] in, represents the jth CT image, express Generate a pseudo MRI image I through the first generation network fMRI , the pseudo MRI image I fMRI The reconstructed CT image generated by the second generation network, L cyc-CT represents the reconstruction loss corresponding to the CT image, L cyc-MRI represents the reconstruction loss corresponding to the MRI image;

[0033] The adversarial loss based on the discriminant network's discriminant result includes:

[0034]

[0035]

[0036]

[0037]

[0038] Among them, D MRI () represents the discrimination result of the second discriminant network, D CT () represents the discrimination result of the first discriminant network, Represents MRI images Generate a pseudo CT image I through the second generation network fCT , the pseudo CT image I fCTThe reconstructed MRI image generated by the first generation network, Represents the second discriminant network The judgment result, L adv-fMRI represents the pseudo MRI image I fMRI The corresponding adversarial loss, Represents the second discriminant network The judgment result, L adv-rMRI Represents the reconstructed MRI image I rMRI The corresponding adversarial loss, Represents the first discriminant network pair The judgment result, L adv-fCT Represents the pseudo CT image I fCT The corresponding adversarial loss, Represents the first discriminant network pair The judgment result, L adv-rCT Represents the reconstructed CT image I rCT The corresponding adversarial loss;

[0039] Then, the loss function L of the generated network is G for:

[0040] L G =λ G1 (L cyc-CT +L cyc-MRI )+λ G2 (L E-CT +L E-MRI )+λ G3 (L adv-fCT +L adv-fMRI )+λ G4 (L adv-rCT +L adv-rMRI )

[0041] Among them, λ G1 , G2 , G3 and λ G4 They represent the loss term (L cyc-CT +L cyc-MRI )、(L E-CT +L E-MRI )、(L adv-fCT +L adv-fMRI ) and (L adv-rCT +L adv-rMRI ) weight parameter.

[0042] Preferably, the discrimination loss of the CT image includes:

[0043]

[0044]

[0045]

[0046] Where j represents the image index, N is the number of images, Represents the first discriminant network pair The judgment result, L D-CT Represents CT images The corresponding discriminant loss is Represents the first discriminant network pair The judgment result, L D-fCT Represents a pseudo CT image The corresponding discriminant loss is Represents the first discriminant network pair The judgment result, L D-rCT Represents the reconstructed CT image The corresponding discriminative loss;

[0047] The discrimination loss of the MRI image includes:

[0048]

[0049]

[0050]

[0051] in, Represents the second discriminant network The judgment result, L D-MRI Represents MRI images The corresponding discriminant loss is Represents the second discriminant network The judgment result, L D-fMRI Represents a pseudo MRI image The corresponding discriminant loss is Represents the second discriminant network The judgment result, L D-rMRI Represents the reconstructed MRI image The corresponding discriminative loss;

[0052] Then, the loss function L of the discriminant network is D for:

[0053] L D =λ D1 (L D-CT +L D-MRI )+λ D2 (L D-fCT +L D-fMRI )+λ D3 (L D-rCT +L D-rMRI )

[0054] Among them, λ D1 , D2 and λ D3 They represent the loss term (L D-CT +L D-MRI )、(L D-fCT +L D-fMRI ) and (L D-rCT +L D-rMRI ) weight parameter.

[0055] Preferably, when optimizing the parameters of the learning system, first, the parameters of the first discriminant network and the second discriminant network are kept unchanged, and the parameters of the first generative network and the second generative network are updated by optimizing the loss function of the generative network;

[0056] Then, the parameters of the first generation network and the second generation network are kept unchanged, and the parameters of the first discriminant network and the second discriminant network are updated by optimizing the loss function of the discriminant network.

[0057] Preferably, an adaptive learning rate optimization algorithm is used to optimize the loss function of the generator network and the loss function of the discriminator network.

[0058] To achieve the above-mentioned purpose of the invention, an embodiment of the present invention provides a cross-modal conversion device for CT images and MRI images, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the memory stores a first generation model and a second generation model constructed by the cross-modal conversion method for CT images and MRI images provided in the above-mentioned embodiment;

[0059] When the processor executes the computer program, the following steps are implemented:

[0060] Using the first generative model to achieve conversion from CT images to MRI images;

[0061] The second generative model is used to realize the conversion of MRI images to CT images.

[0062] Compared with the prior art, the present invention has the following beneficial effects:

[0063] The present invention separates the extracted image features into specific structural features and modality-independent grayscale features, strengthens the guidance of the generated image by utilizing the structural consistency constraints of the input image and the generated image, alleviates the need to introduce segmentation branches and manual labeling, and has greater flexibility.

[0064] The present invention extracts structural features of the input image and the generated image that are independent of the image modality, calculates the structural feature loss between the input image and the generated image, strengthens the supervision of the generated image, enhances the consistency of the anatomical structure in the image generation process, thereby improving the quality of the generated image, and can realize arbitrary conversion between CT images and MRI images in clinical practice. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0066] Figure 1 is a flow chart of a cross-modality conversion method between a CT image and an MRI image provided in an embodiment;

[0067] Figure 2 is a schematic diagram of the structure of a first generation network and a second generation network provided in an embodiment;

[0068] Figure 3 is an exemplary sample image pair consisting of an abdominal CT image and an abdominal MRI image provided by an embodiment;

[0069] Figure 4 are a pseudo MRI image and a real MRI image corresponding to the CT image provided by the embodiment;

[0070] Figure 5 are a pseudo CT image and a real CT image corresponding to the MRI image provided by the embodiment;

[0071] Figure 6 These are the reconstructed CT images and the reconstructed MRI images provided by the embodiments. DETAILED DESCRIPTION

[0072] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.

[0073] Figure 1 1 is a flow chart of a method for cross-modal conversion of CT images and MRI images provided in an embodiment. Figure 1 As shown, the cross-modal conversion method of CT images and MRI images provided in the embodiment includes:

[0074] Step 1: Acquire a CT image and an MRI image of the same target.

[0075] In an embodiment, a computed tomography (CT) image and a magnetic resonance (MRI) image of the same target (e.g., abdomen) are obtained. Then, the CT image and the MRI image obtained for the same target are bilinearly interpolated to change the CT image and the MRI image to the same spatial resolution, and the CT image and the MRI image are divided into a training sample set and a test sample set according to a certain ratio (e.g., 3:1), wherein the training sample set includes the CT image set and the MRI image set, and the test sample set also includes the CT image set and the MRI image set.

[0076] Step 2: Build a learning system based on Cycle-GAN.

[0077] In the embodiment, the learning system constructed based on Cycle-GAN includes a first generation network G CT-MRI , the second generation network G MRI-CT , the first discriminant network D CT And the second discriminant network D MRI Among them, the first generation network G CT-MR The second generation network G is used to generate a first structural feature, a first grayscale feature and an MRI image according to the CT image. MRI-CT For generating the second structural feature, the second grayscale feature and the CT image according to the MRI image, the first discriminant network D CT Used to judge the authenticity of CT images, the second discriminant network D MRI Used to determine the authenticity of MRI images.

[0078] In the embodiment, the first generation network G CT-MRI and the second generation network G MRI-CT The structures of the two are the same, including an encoding part and a decoding part.

[0079] Among them, the encoding part includes a feature pre-extraction module, a structural feature encoding module, and a grayscale feature encoding module. After the input image is extracted by the feature pre-extraction module, the extracted features are input into the structural feature encoding module and the grayscale feature encoding module respectively, and the structural features and grayscale features are output after encoding respectively.

[0080] In an embodiment, the feature pre-extraction module includes at least one convolution unit, wherein the convolution unit includes a connected residual sub-module and a convolution layer; the structural feature encoding module has the same structure as the grayscale feature encoding module, includes at least one convolution unit, and the number of network layers of the structural feature encoding module is more than the number of network layers of the feature pre-extraction module.

[0081] In an embodiment, the feature pre-extraction module includes a convolution unit consisting of a residual submodule RES_Block and a convolution layer with a convolution kernel size of 3*3*3 and a step size of 2*2*2 connected in series. st and grayscale feature encoding module E md It includes 4 convolution units, each of which includes a residual submodule RES_Block and 4 convolution layers with a kernel size of 3*3*3 and a step size of 2*2*2. Each residual submodule RES_Block consists of three convolution layers with kernel sizes of 1*1*1, 3*3*3 and 1*1*1 connected in series, and the input of the first convolution layer is added to the output of the third convolution layer as the output of the residual submodule RES_Block.

[0082] In an embodiment, the decoding part includes a plurality of deconvolution units connected in sequence, at least one convolution layer and an activation layer, wherein the deconvolution unit includes a connected residual submodule RES_Block and a deconvolution layer; the structural features and grayscale features output by the encoding part are spliced ​​and input to the decoding part, and the decoding part performs a decoding operation on the input spliced ​​features to generate an image.

[0083] In an embodiment, if Figure 2 As shown, the decoding part includes 4 deconvolution units connected in sequence, a convolution layer with a convolution kernel size of 1*1*1 and an output channel of 1, and a ReLU activation layer, wherein the deconvolution unit includes a connected residual submodule RES_Block and a deconvolution layer with a convolution kernel size of 3*3*3 and a step size of 2*2*2.

[0084] In the embodiment, the first discriminant network D CT and the second discriminant network D MRI The structures are the same, including at least one convolution module, a convolution layer and an activation layer connected in sequence; wherein the convolution module includes a convolution layer, a normalization layer and an activation layer connected to each other.

[0085] In an embodiment, if Figure 2 As shown, the first discriminant network D CT and the second discriminant network D MRI They all include 5 convolution modules Conv_Block, 1 convolution layer with a convolution kernel size of 1*1*1, and 1 Sigmoid activation layer connected in sequence, among which the convolution module Conv_Block includes a serially connected convolution layer with a convolution kernel size of 3*3*3 and a step size of 2*2*2, a BctchNorm normalization layer, and a LeakyReLU activation layer.

[0086] Step 3: construct a loss function of the learning system and use the loss function to train the learning system to construct two generation models.

[0087] In an embodiment, the constructed loss function includes a loss function of a generative network and a loss function of a discriminative network, wherein the loss function of the generative network includes a structural loss based on structural features, a reconstruction loss based on a generated image, and an adversarial loss based on a discriminative result of the discriminative network; the loss function of the discriminative network includes a discriminative loss for CT images and a discriminative loss for MRI images.

[0088] Step 3-1, optimize the first generative network G using the loss function of the generative network CT-MRI and the second generation network G MRI-CT network parameters.

[0089] In the embodiment, the network parameters are initialized first. When initializing the parameters, G is initialized using uniform distribution. CT-MRI and G MRI-CT The weight W G1 and W G2 , and G CT-MRI and G MRI-CT The bias b G1 , b G2 Initialize them to 0. Use uniform distribution to initialize D CT and D MRI Weight D1 and W D2 , and D CT and D MRI The bias b D1 , b D2 are initialized to the value 0. Let G CT-MRI , G MRI-CT The initial learning rate lr G =0.001, discriminant network D MRI , D CT The initial learning rate lr D =0.0001.

[0090] Then, the order of images in the training dataset is disrupted, and a single CT image and MR image are randomly selected from them, which are recorded as a sample image pair {I CT , I MRI}, multiple sample image pairs constitute a training batch.

[0091] Next, keep D MRI and D CT The parameters of G remain unchanged. CT-MRI and G MRI-CT The specific process of training includes:

[0092] (a) CT image I CT and MRI images I MRI Input to GCT-MRI and G MRI-CT In, through G CT-MRI and G MRI-CT The forward propagation of CT image I is obtained. CT The corresponding structural feature E st (I CT ), grayscale feature E md (I CT ) and the generated pseudo MRI image I fMRI , and MRI image I MRI The corresponding structural feature E st (I MRI ), grayscale feature E md (I MRI ) and the generated pseudo CT image I fCT ;

[0093] (b) The pseudo MRI images I fMRI and pseudo CT image I fCT Input to G MRI-CT and G CT-MRI In, through G MRI-CT and G CT-MRI The forward propagation of the pseudo MRI image I fMRI The corresponding structural feature E st (I fMRI ), grayscale feature E md (I fMRI ) and the generated reconstructed CT image I rCT , and the pseudo CT image I fCT The corresponding structural feature E st (I fCT ), grayscale feature E md (I fCT ) and the generated reconstructed MRI image I rMRI ;

[0094] (c) The generated pseudo MRI image I fMRI and reconstructed MRI image I rMRI Input to D MRI In the above example, we get the discrimination result D MRI (I fMRI ) and D MRI (I rMRI ), and the generated pseudo CT image I fCT and reconstructed CT image I rCT Input to D CT In the above example, we get the discrimination result D CT (I fCT ) and D CT (I rCT );

[0095] (d) Calculation of CT image I CT and reconstructed CT image I rCT The reconstruction loss L between cyc-CT , MRI image I MRI and reconstructed MRI images I rMRI The reconstruction loss L between cyc-MRI :

[0096]

[0097]

[0098] Among them, j represents the image index and N represents the number of images.

[0099] (e) Calculate CT image I CT The corresponding structural feature E st (I CT ) and pseudo MRI image I fMRI The corresponding structural feature E st (I fMRI ) between the structural losses L E-CT , MRI image I MRI The corresponding structural feature E st (I MRI ) and pseudo CT image I fCT The corresponding structural feature E st (I fCT ) between the structural losses L E-MRI :

[0100]

[0101]

[0102] (f) Based on the generated pseudo MRI image I fMRI and reconstructed MRI image I rMRI The judgment result D MRI (I fMRI ) and D MRI (I rMRI ) Calculate the adversarial loss L adv-fMRI and adversarial loss L adv-rMRI , and based on the generated pseudo CT image I fCT and reconstructed CT image I rCT The judgment result D CT (I fCT ) and D CT (I rCT ) Calculate the adversarial loss L adv-fCT and adversarial loss L adv-rCT :

[0103]

[0104]

[0105]

[0106]

[0107] (g) Construct G CT-MRI and G MRI-CT The loss function is:

[0108] L G =λ G1 (L cyc-CT +L cyc-MRI )+λ G2 (L E-CT +L E-MRI )+λ G3 (L adv-fCT +L adv-fMRI )+λ G4 (L adv-rCT +L adv-rMRI )

[0109] Among them, λ G1 , G2 , G3 and λ G4 They represent the loss term (L cyc-CT +L cyc-MRI )、(L E-CT +L E-MRI )、(L adv-fCT +L adv-fMRI ) and (L adv-rCT +L adv-rMRI ) weight parameter.

[0110] (h) Use the adaptive learning rate optimization algorithm Adam to optimize G CT-MRI and G MRI-CT The loss function L G , update G CT-MRI and G MRI-CT The weight W G1 , W G2 and bias b G1 , b G2 .

[0111] Step 3-2, use the loss function of the discriminant network to optimize the first discriminant network D CT and the second discriminant network D MRI network parameters.

[0112] In the embodiment, keep G CT-MRI and G MRI-CTThe parameters of D MRI and D CT The specific process of training includes:

[0113] (a) CT image I CT , the generated pseudo CT image I fCT and reconstructed CT image I rCT Input to D CT In the above example, we get the discrimination result D CT (I CT )、D CT (I fCT ) and D CT (I rCT ), and the MRI image I MRI , generated pseudo MRI image I fMRI and reconstructed MRI image I rMRI Input to D MRI In the above example, we get the discrimination result D MRI (I MRI )、D MRI (I fMRI ) and D MRI (I rMRI );

[0114] (b) According to CT image I CT , the generated pseudo CT image I fCT and reconstructed CT image I rCT The judgment result D CT (I CT )、D CT (I fCT ) and D CT (I rCT ) Calculate the corresponding discriminant loss L D-CT , L D-fCT and L D-rCT :

[0115]

[0116]

[0117]

[0118] (c) Based on MRI image I MRI , generated pseudo MRI image I fMRI and reconstructed MRI image I rMRI The judgment result D MRI (I MRI )、D MRI (I fMRI ) and D MRI (I rMRI) Calculate the corresponding discriminant loss L D-MRI , L D-fMRI and L D-rMRI :

[0119]

[0120]

[0121]

[0122] (d) Construction D MRI and D CT The loss function is:

[0123] L D =λ D1 (L D-CT +L D-MRI )+λ D2 (L D-fCT +L D-fMRI )+λ D3 (L D-rCT +L D-rMRI )

[0124] Among them, λ D1 , D2 and λ D3 They represent the loss term (L D-CT +L D-MRI )、(L D-fCT +L D-fMRI ) and (L D-rCT +L D-rMRI )’s weight parameter;

[0125] (e) Use the adaptive learning rate optimization algorithm Adam to optimize D MRI and D CT The loss function L D , update D MRI and D CT The weight W D1 , W D2 and bias b D1 、b D2 .

[0126] Repeat steps 3-1 and 3-2 until the entire training data set has been iterated for 250 consecutive rounds and then stop training to obtain the trained G MRI-CT , G CT-MRI and D MRI and D CT .

[0127] After training, the G CT-MRI As the generative model G CT-MRI , extract the parameters to determine GMRI-CT As the generative model G MRI -CT.

[0128] Figure 3 It is an exemplary sample image pair consisting of an abdominal CT image and an abdominal MRI image provided by the embodiment. Figure 4 A pseudo MRI image and a real MRI image corresponding to the CT image provided in the embodiment; Figure 5 A pseudo CT image and a real CT image corresponding to the MRI image provided in the embodiment; Figure 6 The embodiments provide a reconstructed CT image and a reconstructed MRI image.

[0129] analyze Figure 3-Figure 6 , and get the generated model G CT-MRI And the generative model G MRI-CT The image conversion accuracy is high, the generated pseudo image is very close to the real image, and the reconstructed image is also very close to the real image.

[0130] Step 4: Use the generative model to perform modality conversion from CT images to MRI images.

[0131] In the embodiment, the generation model G is used CT-MRI To achieve the conversion from CT images to MRI images, we use the generative model G MRI-CT Realize the conversion of MRI images to CT images.

[0132] Specifically, the CT images in the test dataset are input into the generative model G CT-MRI , after generating the model G CT-MRI The forward transmission calculation of is performed to obtain the MRI image corresponding to the CT image, thus realizing the conversion from CT image to MRI image. The MRI image in the test data set is input into the generative model G MRI-CT , after generating the model G MRI-CT The forward transmission calculation is performed to obtain the CT image corresponding to the MRI image, thereby realizing the conversion from MRI image to CT image.

[0133] The embodiment also provides a cross-modal conversion device for CT images and MRI images, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the memory stores a generation model G constructed by the cross-modal conversion method for CT images and MRI images. CT-MRI And the generative model G MRI-CT When the processor executes the computer program, the following steps are implemented:

[0134] Using the generative model G CT-MRI To achieve the conversion from CT images to MRI images, we use the generative model G MRI-CT Realize the conversion of MRI images to CT images.

[0135] In practical applications, the computer memory can be a volatile memory at the near end, such as RAM, or a non-volatile memory, such as ROM, FLASH, floppy disk, mechanical hard disk, etc., or a remote storage cloud. The computer processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), that is, the conversion steps between CT images and MRI images can be implemented through these processors.

[0136] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-modal conversion method for CT images and MRI images, characterized in that: include: Acquire CT images and MRI images of the same target, and construct a CT image set and a MRI image set; A learning system is constructed based on Cycle-GAN, wherein the first generation network is used to generate a first structural feature, a first grayscale feature, and an MRI image according to a CT image, the second generation network is used to generate a second structural feature, a second grayscale feature, and a CT image according to an MRI image, the first discriminant network is used to judge the authenticity of the CT image, and the second discriminant network is used to judge the authenticity of the MRI image; Constructing the loss function of the learning system, including the loss function of the generative network and the loss function of the discriminative network, wherein the loss function of the generative network includes the structural loss based on the structural features, the reconstruction loss based on the generated image, and the adversarial loss based on the discriminative network's discriminative result; the loss function of the discriminative network includes the discriminative loss for CT images and the discriminative loss for MRI images; Optimize the parameters of the learning system using the CT image set, the MRI image set and the loss function. After the optimization is completed, extract the first generation network with determined parameters as the first generation model, and extract the second generation network with determined parameters as the second generation model; Using the first generative model to achieve conversion from CT images to MRI images; The second generative model is used to realize the conversion of MRI images to CT images.

2. The cross-modality conversion method of CT images and MRI images according to claim 1, characterized in that: Bilinear interpolation is performed on the acquired CT image and MRI image of the same target to change the CT image and the MRI image to the same spatial resolution, and then a CT image set and a MRI image set are constructed.

3. The cross-modality conversion method of CT images and MRI images according to claim 1, characterized in that: The first generation network and the second generation network have the same structure, both including an encoding part and a decoding part; The encoding part includes a feature pre-extraction module, a structural feature encoding module, and a grayscale feature encoding module. After the input image is extracted by the feature pre-extraction module, the extracted features are respectively input to the structural feature encoding module and the grayscale feature encoding module, and the structural features and grayscale features are output after encoding respectively. The decoding part includes multiple deconvolution units connected in sequence, at least one convolution layer and an activation layer, wherein the deconvolution unit includes a connected residual submodule and a deconvolution layer; the structural features and grayscale features output by the encoding part are spliced ​​and input to the decoding part, and the decoding part performs a decoding operation on the input spliced ​​features to generate an image.

4. The cross-modal conversion method of CT images and MRI images according to claim 3, characterized in that: The feature pre-extraction module includes at least one convolution unit, wherein the convolution unit includes a connected residual submodule and a convolution layer; The structure feature encoding module has the same structure as the grayscale feature encoding module, including at least one convolution unit, and the number of network layers of the structure feature encoding module is greater than the number of network layers of the feature pre-extraction module.

5. The cross-modality conversion method of CT images and MRI images according to claim 1, characterized in that: The first discriminant network and the second discriminant network have the same structure, including at least one convolutional module, a convolutional layer and an activation layer connected in sequence; Among them, the convolution module includes connected convolution layers, normalization layers and activation layers.

6. The cross-modality conversion method of CT images and MRI images according to claim 1, characterized in that: The structural loss based on structural features includes: Where j represents the image index, N represents the number of images, and I CT Represents the input CT image, I MRI represents MRI image, I fCT Indicates I CT The pseudo CT image generated by the first generation network, I fMRI represents a pseudo MRI image, Indicates I CT The structural characteristics of Indicates I fMRI The structural characteristics of Indicates I MRI The structural characteristics of Indicates I fCT The structural characteristics of L E-CT represents the structural loss corresponding to the CT image, L E-MRI Indicates the structural features corresponding to the MRI image; The reconstruction loss based on the generated image includes: in, represents the jth CT image, express Generate a pseudo MRI image I through the first generation network fMRI , the pseudo MRI image I fMRI The reconstructed CT image generated by the second generation network, L cyc-CT represents the reconstruction loss corresponding to the CT image, L cyc-MRI represents the reconstruction loss corresponding to the MRI image; The adversarial loss based on the discriminant network's discriminant result includes: Among them, D MRI () represents the discrimination result of the second discriminant network, D CT () represents the discrimination result of the first discriminant network, Represents MRI images Generate a pseudo CT image I through the second generation network fCT , the pseudo CT image I fCT The reconstructed MRI image generated by the first generation network, Represents the second discriminant network The judgment result, L adv-fMRI represents the pseudo MRI image I fMRI The corresponding adversarial loss, Represents the second discriminant network The judgment result, L adv-rMRI Represents the reconstructed MRI image I rMRI The corresponding adversarial loss, Represents the first discriminant network pair The judgment result, L adv-fCT Represents the pseudo CT image I fCT The corresponding adversarial loss, Represents the first discriminant network pair The judgment result, L adv-rCT Represents the reconstructed CT image I rCT The corresponding adversarial loss; Then, the loss function L of the generated network is G for: L G =λ G1 (L cyc-CT +L cyc-MRI )+λ G2 (L E-CT +L E-MRI )+λ G3 (L adv-fCT +L adv-fMRI )+λ G4 (L adv-rCT +L adv-rMRI ) Among them, λ G1 , G2 , G3 and λ G4 They represent the loss term (L cyc-CT +L cyc-MRI )、(L E-CT +L E-MRI )、(L adv-fCT +L adv-fMRI ) and (L adv-rCT +L adv-rMRI ) weight parameter.

7. The cross-modality conversion method of CT images and MRI images according to claim 1, characterized in that: The discrimination loss of the CT image includes: Where j represents the image index, N is the number of images, Represents the first discriminant network pair The judgment result, L D-CT Represents CT images The corresponding discriminant loss is Represents the first discriminant network pair The judgment result, L D-fCT Represents a pseudo CT image The corresponding discriminant loss is Represents the first discriminant network pair The judgment result, L D-rCT Represents the reconstructed CT image The corresponding discriminative loss; The discrimination loss of the MRI image includes: in, Represents the second discriminant network The judgment result, L D-MRI Represents MRI images The corresponding discriminant loss is Represents the second discriminant network The judgment result, L D-fMRI Represents a pseudo MRI image The corresponding discriminant loss is Represents the second discriminant network The judgment result, L D-rMRI Represents the reconstructed MRI image The corresponding discriminative loss; Then, the loss function L of the discriminant network is D for: L D =λ D1 (L D-CT +L D-MRI )+λ D2 (L D-fCT +L D-fMRI )+λ D3 (L D-rCT +L D-rMRI ) Among them, λ D1 , D2 and λ D3 They represent the loss term (L D-CT +L D-MRI )、(L D-fCT +L D-fMRI ) and (L D-rCT +L D-rMRI ) is the weight parameter of .

8. The cross-modal conversion method of CT images and MRI images according to claim 1, 6 or 7, characterized in that: When optimizing the parameters of the learning system, first, keep the parameters of the first discriminant network and the second discriminant network unchanged, and update the parameters of the first generative network and the second generative network by optimizing the loss function of the generative network; Then, the parameters of the first generation network and the second generation network are kept unchanged, and the parameters of the first discriminant network and the second discriminant network are updated by optimizing the loss function of the discriminant network.

9. The cross-modality conversion method of CT images and MRI images according to claim 8, characterized in that: An adaptive learning rate optimization algorithm is used to optimize the loss function of the generative network and the loss function of the discriminative network.

10. A cross-modality conversion device for CT images and MRI images, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The memory stores a first generation model and a second generation model constructed by the cross-modal conversion method of CT images and MRI images according to any one of claims 1 to 9; When the processor executes the computer program, the following steps are implemented: Using the first generative model to achieve conversion from CT images to MRI images; The second generative model is used to realize the conversion of MRI images to CT images.