Method and device for training cross-modal conversion model from MR image to CT image

By using residual UNet network and two-stage residual convolutional neural network, clear CT images are generated from MR images, artifacts and blur problems in the prior art are solved, and computing resource occupation is reduced to meet the clinical inference speed requirements.

CN119048334AInactive Publication Date: 2024-11-29SHENZHITOU MEDICAL TECH DEV (SHANGHAI) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411065273.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is prone to generate artifacts when generating CT images from MR images, the overall image is blurred, and the model occupies a large amount of computing resources, resulting in the inference time being unable to meet clinical needs.

Method used

The paired images of multiple sets of MR images and CT images are preprocessed, and the residual UNet network is constructed using residual blocks to build a two-stage residual convolution neural network, and the termination conditions are judged by calculating the loss value, and the parameters are updated to train cross-mode State transformation model.

Benefits of technology

It realizes the generation of clear and accurate CT images from MR images, reduces the occurrence of artifacts, fast inference speed, small model parameters and calculation volume, and meets clinical needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048334A_ABST
    Figure CN119048334A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-modal transformation model training method and device from an MR image to a CT image, and the method comprises the steps: obtaining a plurality of groups of MR and CT images, and adjusting the window width and window level of the CT image to obtain an enhanced CT image; the method comprises the steps of preprocessing MR, CT and enhanced CT images, constructing a residual UNet network by using a residual block, constructing a two-stage residual convolutional neural network by using the residual UNet network, inputting the preprocessed MR image into the two-stage residual convolutional neural network, and calculating and outputting a loss value between the preprocessed CT image and the preprocessed enhanced CT image; judging whether a termination condition is met or not according to the loss value, if not, updating the parameters, and continuing training; if yes, training is stopped, and a cross-modal conversion model is obtained. According to the method, training is easy, the reasoning speed is high, and clear CT images without artifacts can be obtained through the trained cross-modal transformation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical image processing, and in particular to a method and device for training a cross-modal conversion model from MR images to CT images. Background Art

[0002] CT (computed tomography) images are a type of medical imaging technology that uses X-rays and computer processing technology to generate cross-sectional images of the body's internal structures. CT images contain electron density information and can clearly show bones, and are currently the main reference images for radiotherapy. However, CT images lack contrast in soft tissue imaging and require the guidance of MR (magnetic resonance) images, which fuse the image information of MR and CT to provide more comprehensive image information, which helps to better plan the irradiation plan for radiotherapy.

[0003] However, there are currently the following main problems in this field: First, the ionizing radiation brought by CT scanning can affect the health of patients; second, performing CT and MR scans simultaneously can increase the economic burden on patients; third, there is a spatial mismatch between MR and CT images acquired at different times, equipment, and patient conditions, which can affect the accuracy and effectiveness of treatment. However, the current registration methods are rather cumbersome and it is difficult to achieve a complete match.

[0004] Generating CT images from MR images is an effective way to solve the above problems and is one of the current research hotspots. Most of the existing methods use GAN (Generative Adversarial Network) to complete the cross-modal conversion between MR-CT images, such as the paper "Unpairedbrain MR-to-CT synthesis using a structure-constrained CycleGAN" and the patent document with application number: 202310341018.7, named "Cross-modal MRI-CT image synthesis method, system, device and medium". The network training of this type of method is unstable, easy to generate artifacts and the overall image is blurred; there are also methods that use three-dimensional convolutional neural networks for conversion, such as the patent with application number: 202310092838.7, named "Three-dimensional medical image modality conversion model training method and device". The model of this type of method is large and requires a lot of computing resources, resulting in the inference time cannot meet clinical needs. Summary of the invention

[0005] To this end, the present application provides a cross-modal conversion model training method and device from MR images to CT images to solve the problems in the prior art of easily generating artifacts when generating CT images from MR images, the overall image is blurred, and the model occupies a large number of resources.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] In a first aspect, a cross-modal conversion model training method from MR images to CT images includes:

[0008] Step 1: Acquire multiple groups of paired images of MR images and CT images, and adjust the window width and window position of the CT image to obtain an enhanced CT image in which the bone region is enhanced;

[0009] Step 2: preprocessing the MR image, the CT image and the enhanced CT image;

[0010] Step 3: Use the residual block to build a residual UNet network, and use the residual UNet network to build a two-stage residual convolutional neural network;

[0011] Step 4: inputting the preprocessed MR image into the two-stage residual convolutional neural network to obtain an output result;

[0012] Step 5: Calculate the loss value between the output result and the preprocessed CT image and the enhanced CT image;

[0013] Step 6: Determine whether the termination condition is met according to the loss value. If not, update the parameters of the two-stage residual convolutional neural network and continue to train the two-stage residual convolutional neural network. If met, stop training to obtain a cross-modal conversion model.

[0014] Preferably, in step 1, the adjustment range of the window width is 1000-1500; the adjustment range of the window position is 250-350.

[0015] Preferably, in step 2, preprocessing the MR image, the CT image and the enhanced CT image includes: adjusting the image sizes of the MR image, the CT image and the enhanced CT image, and performing normalization processing.

[0016] Preferably, the normalization processing formula of the MR image is:

[0017]

[0018] Among them, I' MR is the normalized MR image, I MR is the MR image, min and max are the minimum and maximum functions of a single MR image;

[0019] The normalization processing formula of the CT image and the enhanced CT image is:

[0020] I'CT =f(I CT ), I' enCT =f(I enCT )

[0021]

[0022] Among them, I CT is the CT image, I' CT is the normalized CT image, I enCT To enhance CT images, I' enCT is the normalized enhanced CT image, V min (x) and V max (x) is the minimum and maximum pixel value function of all x images in the statistical data set.

[0023] Preferably, in step 3, the residual block is composed of a 3×3 convolutional layer, an instance normalization layer and a linear rectification function.

[0024] Preferably, in step 3, the residual UNet network consists of 7 residual blocks, a maximum pooling layer, an upsampling layer and a 1×1 convolutional layer.

[0025] Preferably, in the residual UNet network, the feature map before each maximum pooling layer is fused to the feature map after the upsampling layer of the corresponding scale in a channel splicing manner.

[0026] Preferably, in step 3, the two-stage residual convolutional neural network is composed of three residual UNet networks.

[0027] Preferably, in step 5, the calculation formula of the loss value is:

[0028]

[0029] Among them, L is the loss value, f loss is the loss function, and are the outputs of the three residual UNet networks, I enCT To enhance CT images, I CT It is a CT image.

[0030] In a second aspect, a cross-modal conversion model training device for MR images to CT images includes:

[0031] A data set acquisition module, used to acquire a plurality of paired images of MR images and CT images, and adjust the window width and window position of the CT image to obtain an enhanced CT image in which the bone region is enhanced;

[0032] A data preprocessing module, used for preprocessing the MR image, the CT image and the enhanced CT image;

[0033] A two-stage residual convolutional neural network construction module, used to construct a residual UNet network using a residual block, and to construct a two-stage residual convolutional neural network using the residual UNet network;

[0034] A training module, used for inputting the preprocessed MR image into the two-stage residual convolutional neural network to obtain an output result;

[0035] A loss value calculation module, used for calculating the loss value between the output result and the preprocessed CT image and the enhanced CT image;

[0036] The termination condition judgment module is used to judge whether the termination condition is met according to the loss value. If not, the parameters of the two-stage residual convolutional neural network are updated and the two-stage residual convolutional neural network continues to be trained; if satisfied, the training is stopped to obtain a cross-modal conversion model.

[0037] Compared with the prior art, this application has at least the following beneficial effects:

[0038] The present application provides a method and device for training a cross-modal conversion model from MR images to CT images, by obtaining multiple groups of paired images of MR images and CT images, and adjusting the window width and window position of the CT image to obtain an enhanced CT image with enhanced bone area; preprocessing the MR image, CT image and enhanced CT image, using the residual block to construct a residual UNet network, and using the residual UNet network to construct a two-stage residual convolutional neural network, the preprocessed MR image is input into the two-stage residual convolutional neural network, and the loss value between the output and the preprocessed CT image and the enhanced CT image is calculated; judging whether the termination condition is met according to the loss value, if not, updating the parameters of the two-stage residual convolutional neural network, and continuing to train the two-stage residual convolutional neural network; if satisfied, stopping training to obtain a cross-modal conversion model. The cross-modal conversion model training method from MR images to CT images provided in the present application is not only easy to train, but also has a fast inference speed, and the trained cross-modal conversion model can obtain a clear CT image without artifacts. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more intuitively illustrate the prior art and the present application, exemplary drawings are given below. It should be understood that the specific shapes and structures shown in the drawings should not generally be regarded as limiting conditions for implementing the present application; for example, those skilled in the art are capable of easily making conventional adjustments or further optimizations to the addition / reduction / attribution division, specific shapes, positional relationships, connection methods, dimensional ratios, etc. of certain units (components) based on the technical concepts and exemplary drawings disclosed in the present application.

[0040] Figure 1 A flow chart of a cross-modal conversion model training method from MR images to CT images provided in Example 1 of the present application;

[0041] Figure 2 A schematic diagram of the structure of a cross-modal conversion model training method from MR images to CT images provided in Example 1 of the present application;

[0042] Figure 3 A schematic diagram of the data preprocessing process provided in Example 1 of the present application;

[0043] Figure 4 A schematic diagram of the structure of RB in RUNet provided in Example 1 of the present application;

[0044] Figure 5 A schematic diagram of the structure of a two-stage residual convolutional neural network provided in Example 1 of the present application;

[0045] Figure 6 A schematic diagram of the two-stage residual convolutional neural network training structure provided in Example 1 of the present application. DETAILED DESCRIPTION

[0046] The present application is further described below in detail through specific embodiments in conjunction with the accompanying drawings.

[0047] In the description of this application: unless otherwise specified, the meaning of "plurality" is two or more. The terms "first", "second", "third", etc. in this application are intended to distinguish the objects referred to, and do not have special meanings in terms of technical connotations (for example, they should not be understood as emphasizing the importance or order, etc.). Expressions such as "including", "comprising", "having", etc. also mean "not limited to" (certain units, components, materials, steps, etc.).

[0048] The terms such as "upper", "lower", "left", "right", "middle", etc. cited in this application are usually used to indicate the general relative position relationship for the convenience of intuitive understanding by referring to the drawings, and are not absolute limitations on the position relationship in the actual product.

[0049] Embodiment 1

[0050] See also Figure 1 and Figure 2 , this embodiment provides a cross-modal conversion model training method from MR images to CT images, including:

[0051] S1: acquiring a plurality of paired images of MR images and CT images, and adjusting the window width and window position of the CT image to obtain an enhanced CT image in which the bone region is enhanced;

[0052] In this step, the MR image and CT image in each set of paired images are obtained by scanning the same part twice. MR and I CT , adjust I CT The enhanced CT image with enhanced bone area is obtained by adjusting the window width and window position, which is denoted as I enCT At this time, each set of paired images contains I MR ,I CT and I enCT One for each, and multiple sets of paired images constitute the dataset.

[0053] Specifically, when adjusting I CT When the window width and window level are set, the window width or window level value can be adjusted within a small range. For example, the window width value can be adjusted within the range of 1000 to 1500, and the window level value can be adjusted within the range of 250 to 350. In this step, the window width and window level are 1000 and 350 respectively.

[0054] S2: preprocessing the MR image, CT image and enhanced CT image;

[0055] See also Figure 3 In this step, preprocessing the MR image, CT image and enhanced CT image includes: adjusting the image size of the MR image, CT image and enhanced CT image, and performing normalization processing.

[0056] Specifically, when adjusting the image sizes of the MR images, CT images, and enhanced CT images, the sizes of all images in the data set are adjusted to 512×512.

[0057] During normalization processing, the normalization processing formula of MR images is:

[0058]

[0059] Among them, I' MR is the normalized MR image, I MR is the MR image, min and max are the minimum and maximum functions of a single MR image;

[0060] The normalization processing formula for CT images and enhanced CT images is:

[0061] I' CT =f(I CT ), I' enCT =f(I enCT )

[0062]

[0063] Among them, I CT is the CT image, I' CT is the normalized CT image, I enCT To enhance CT images, I' enCT is the normalized enhanced CT image, V min (x) and V max (x) is the minimum and maximum pixel value function of all x images in the statistical data set.

[0064] In this step, for the enhanced CT image V min (I enCT ) and V max (I enCT ) are fixed at -150 and 850 respectively; for CT images, V mi n(I CT ) and V max (I CT ) are -1024 and 3000 respectively.

[0065] S3: constructing a residual UNet network using the residual block, and constructing a two-stage residual convolutional neural network using the residual UNet network;

[0066] See also Figure 4 In this step, the residual block (RB) consists of a 3×3 convolutional layer, an instance normalization layer (IN), and a linear rectifier function (ReLU). Specifically, the number of convolutional layers in the residual block can be set to 1 to 3, the instance normalization layer can be replaced by a normalization layer, and the number of convolutional layers is 2.

[0067] The residual UNet network consists of 7 residual blocks, a maximum pooling layer, an upsampling layer, and a 1×1 convolution layer. The first 4 residual blocks are used for feature extraction, and the maximum pooling layer gradually reduces the feature map size; the last 3 residual blocks and the upsampling layer gradually restore the feature map resolution and output the result through the 1×1 convolution layer. At the same time, the feature map before each maximum pooling layer is fused to the feature map after the upsampling layer of the corresponding scale in a channel splicing manner, so that the network can focus on both low-level and high-level features, which helps to retain more details in the output image.

[0068] In this step, the residual UNet network can increase or decrease the number of residual blocks; the number of convolutional layers in the residual block can be increased or decreased; the position of feature map fusion can be modified, for example, the feature map after the maximum pooling layer is fused to the feature map before the deconvolution layer of the corresponding scale in the form of channel splicing; the method of feature map fusion can be modified, for example, channel splicing is replaced by element-level addition.

[0069] See also Figure 5 In this step, the two-stage residual convolutional neural network is composed of three residual UNet networks, and the three residual UNet networks are respectively and Then the two-stage residual convolutional neural network can be expressed as f MR-CT ,Right now:

[0070]

[0071] in, and They are the first-stage and second-stage networks, It is a residual branch network.

[0072] S4: Input the preprocessed MR image into the two-stage residual convolutional neural network to obtain the output result;

[0073] S5: Calculate the loss value between the output result and the preprocessed CT image and the enhanced CT image;

[0074] For details, please refer to Figure 6 , the known label image is I CT and I enCT , the two-stage residual convolutional neural network is f MR-CT , and The output is The calculation formula of the loss value L is:

[0075]

[0076] Among them, L is the loss value, f loss is the loss function, and are the outputs of the three residual UNet networks, I enCT To enhance CT images, I CT It is a CT image.

[0077] In this step, f loss The structural similarity index (SSIM) loss f ssim and L1 loss f l1 Composition, namely:

[0078] f loss =λ1*f ssim +λ2*f l1

[0079]

[0080] Among them, λ1 and λ2 are the balance coefficients of the loss function, satisfying λ1+λ2=1,λ1,λ2≥0; a and b represent the network output image and label image respectively; μ x , σ x are the mean and standard deviation of image x, σ xy represents the covariance of images x and y; N represents the number of pixels in images a and b, x i Represents the value of the i-th pixel in the image; C1 and C2 are constants to avoid instability when the denominator is close to 0.

[0081] S6: Determine whether the termination condition is met based on the loss value. If not, update the parameters of the two-stage residual convolutional neural network and continue to train the two-stage residual convolutional neural network. If it is met, stop training and obtain a cross-modal conversion model.

[0082] Specifically, the termination condition includes that the loss value is less than a preset threshold value; or the number of training times is greater than or equal to a preset number of times. In this embodiment, the preset threshold value can be 0.01, and the preset number of times can be 200 times. The above preset threshold value and preset number of times are only examples and do not limit the protection scope of this application.

[0083] When the MR image is converted using the cross-modal conversion model trained in this embodiment, the MR image to be converted is preprocessed and then input into the trained two-stage residual convolutional neural network (cross-modal conversion model). The network output is denormalized to obtain the final CT image.

[0084] The cross-modal conversion model trained in this embodiment is used to convert the MR image as follows:

[0085] First, the size of the input MR image is adjusted to 512×512, and the MR image is normalized to obtain I in , and then input it into the trained two-stage residual convolutional neural network to obtain the network output I out , and finally in Perform denormalization to obtain the final CT image I' out ,Right now:

[0086] I' out =I out *(v2-v1)+v1

[0087] Among them, v1 and v2 are the minimum and maximum values ​​of all CT images in step S2, that is, V min (I CT ) and V max (I CT ), V min (I enCT ) and V max (I enCT ) are -1024 and 3000 respectively.

[0088] This embodiment provides a cross-modal conversion model training method from MR images to CT images. By constructing a two-stage residual convolutional neural network, the direct mapping process of learning MR images to CT images is decomposed into two steps, namely, learning the mapping of MR images to enhanced CT images and the mapping of enhanced CT images to CT images; in addition, a residual branch is used to correct the error between the network output and the label, thereby improving the clarity of the converted image and reducing artifacts. At the same time, the two-stage residual convolutional neural network constructed in this embodiment has a small number of parameters and calculations, so it is easy to train and has a fast inference speed, which can meet clinical needs.

[0089] The cross-modal conversion model trained by the cross-modal conversion model training method from MR images to CT images provided in this embodiment can generate clear and accurate CT images from MR images. On the one hand, it eliminates the damage to the human body caused by ionizing radiation from CT scans, and on the other hand, it reduces the economic burden on patients, which is very beneficial to the radiotherapy process.

[0090] Embodiment 2

[0091] This embodiment provides a cross-modal conversion model training device from MR images to CT images, including:

[0092] A data set acquisition module, used to acquire a plurality of paired images of MR images and CT images, and adjust the window width and window position of the CT image to obtain an enhanced CT image in which the bone region is enhanced;

[0093] A data preprocessing module, used for preprocessing the MR image, the CT image and the enhanced CT image;

[0094] A two-stage residual convolutional neural network construction module, used to construct a residual UNet network using a residual block, and to construct a two-stage residual convolutional neural network using the residual UNet network;

[0095] A training module, used for inputting the preprocessed MR image into the two-stage residual convolutional neural network to obtain an output result;

[0096] A loss value calculation module, used for calculating the loss value between the output result and the preprocessed CT image and the enhanced CT image;

[0097] The termination condition judgment module is used to judge whether the termination condition is met according to the loss value. If not, the parameters of the two-stage residual convolutional neural network are updated and the two-stage residual convolutional neural network continues to be trained; if satisfied, the training is stopped to obtain a cross-modal conversion model.

[0098] For the specific implementation content of each module in a cross-modal conversion model training device for MR images to CT images, please refer to the above definition of a cross-modal conversion model training method for MR images to CT images, which will not be repeated here.

[0099] The technical features of the above embodiments may be arbitrarily combined (as long as there is no contradiction in the combination of these technical features). To make the description concise, not all possible combinations of the technical features in the above embodiments are described; these embodiments that are not explicitly written should also be considered to be within the scope of this specification.

Claims

1. A cross-modal conversion model training method from MR images to CT images, characterized in that: include: Step 1: Acquire multiple groups of paired images of MR images and CT images, and adjust the window width and window position of the CT image to obtain an enhanced CT image in which the bone region is enhanced; Step 2: preprocessing the MR image, the CT image and the enhanced CT image; Step 3: Use the residual block to build a residual UNet network, and use the residual UNet network to build a two-stage residual convolutional neural network; Step 4: inputting the preprocessed MR image into the two-stage residual convolutional neural network to obtain an output result; Step 5: Calculate the loss value between the output result and the preprocessed CT image and the enhanced CT image; Step 6: Determine whether the termination condition is met according to the loss value. If not, update the parameters of the two-stage residual convolutional neural network and continue to train the two-stage residual convolutional neural network. If met, stop training to obtain a cross-modal conversion model.

2. The cross-modal conversion model training method from MR images to CT images according to claim 1, characterized in that: In step 1, the adjustment range of the window width is 1000-1500; the adjustment range of the window position is 250-350.

3. The cross-modal conversion model training method from MR images to CT images according to claim 1, characterized in that: In the step 2, preprocessing the MR image, the CT image and the enhanced CT image includes: adjusting the image sizes of the MR image, the CT image and the enhanced CT image, and performing normalization processing.

4. The cross-modal conversion model training method from MR images to CT images according to claim 3, characterized in that: The normalization processing formula of the MR image is: Among them, I' MR is the normalized MR image, I MR is the MR image, min and max are the minimum and maximum functions of a single MR image; The normalization processing formula of the CT image and the enhanced CT image is: I CT =f(I CT ),I enCT =f(I enCT ) Among them, I CT is the CT image, I' CT is the normalized CT image, I enCT To enhance CT images, I' enCT is the normalized enhanced CT image, V min (x) and V max (x) is the minimum and maximum pixel value function of all x images in the statistical data set.

5. The cross-modal conversion model training method from MR images to CT images according to claim 1, characterized in that: In step 3, the residual block is composed of a 3×3 convolutional layer, an instance normalization layer and a linear rectification function.

6. The cross-modal conversion model training method from MR images to CT images according to claim 1, characterized in that: In step 3, the residual UNet network consists of 7 residual blocks, a maximum pooling layer, an upsampling layer and a 1×1 convolutional layer.

7. The cross-modal conversion model training method from MR images to CT images according to claim 6, characterized in that: In the residual UNet network, the feature map before each maximum pooling layer is fused to the feature map after the upsampling layer of the corresponding scale in a channel splicing manner.

8. The cross-modal conversion model training method from MR images to CT images according to claim 1, characterized in that: In step 3, the two-stage residual convolutional neural network is composed of three residual UNet networks.

9. The cross-modal conversion model training method from MR images to CT images according to claim 8, characterized in that: In step 5, the calculation formula of the loss value is: Among them, L is the loss value, f loss is the loss function, and are the outputs of the three residual UNet networks, I enCT To enhance CT images, I CT It is a CT image.

10. A cross-modal conversion model training device from MR images to CT images, characterized in that: include: A data set acquisition module, used to acquire a plurality of paired images of MR images and CT images, and adjust the window width and window position of the CT image to obtain an enhanced CT image in which the bone region is enhanced; A data preprocessing module, used for preprocessing the MR image, the CT image and the enhanced CT image; A two-stage residual convolutional neural network construction module, used to construct a residual UNet network using a residual block, and to construct a two-stage residual convolutional neural network using the residual UNet network; A training module, used for inputting the preprocessed MR image into the two-stage residual convolutional neural network to obtain an output result; A loss value calculation module, used for calculating the loss value between the output result and the preprocessed CT image and the enhanced CT image; The termination condition judgment module is used to judge whether the termination condition is met according to the loss value. If not, the parameters of the two-stage residual convolutional neural network are updated and the two-stage residual convolutional neural network continues to be trained; if satisfied, the training is stopped to obtain a cross-modal conversion model.

Citation Information

Patent Citations

  • Three-dimensional ultrasonic simulation method and device using generative adversarial network

    CN111260741A

  • Weld joint radiographic inspection negative film image enhancement method, storage medium and equipment

    CN112435198A

  • Multimodal image registration method and device using diffusion model, and medium

    CN116402865A

  • Cross-modal MRI-CT image synthesis method, system, device and medium

    CN116563402A

  • Magnetic resonance image contrast synthesis method and system

    CN116596825A