A method and system for generating DWI images based on T2 images

Through the improved adversarial network model, the corresponding relationship between T2 images and DWI images is used to train the model, which solves the problem of poor DWI image generation quality in the existing technology, and achieves high-quality DWI image generation without actual scanning, improving It improves the efficiency of feature extraction and utilization, and has better generalization ability and stability.

CN112529949BActive Publication Date: 2024-09-06BEIJING ANDE YIZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011422209.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-08
Publication Date
2024-09-06
Estimated Expiration
2040-12-08

AI Technical Summary

Technical Problem

The existing method of generating DWI images from T2 images cannot effectively simulate the nonlinear relationship between different modal images, resulting in poor quality of the generated DWI images. Especially in magnetic resonance imaging, due to the small amount of data and high risk of artifacts, traditional Generative models and adversarial networks have limited performance in feature extraction and utilization.

Method used

An improved adversarial network model is used, including a generator, a first discriminator and a second discriminator. By preprocessing and cutting the correspondence between T2 images and DWI images, the back propagation and gradient descent algorithms are used to train the model and the generator Using the UNet structure, the discriminator is copied from the generator and the weight remains unchanged during backpropagation. The second discriminator adopts the CNN structure and is trained by combining the GAN loss function, L2 loss function and gradient difference loss function.

Benefits of technology

Without actually scanning DWI, existing T2 images are used to generate high-quality DWI images, which improves the quality and generalization ability of the generated images. Compared with traditional methods, the peak signal-to-noise ratio is increased by 6%-10%. Performance is better and stable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112529949B
    Figure CN112529949B
Patent Text Reader

Abstract

The present invention relates to a method and system for generating a DWI image based on a T2 image. The method comprises: obtaining T2 images with and without lesions and paired DWI images, forming a data pair by one-to-one correspondence between the T2 images and the DWI images to form a first data set; preprocessing the first data set to obtain a second data set; cutting the images in the second data set into patches to obtain a third data set; using the third data set to train an improved adversarial network model to obtain a trained adversarial network model, obtaining a T2 image to be processed, recorded as a first image; preprocessing the first image to obtain a second image; cutting the second image into patches to obtain a third image; inputting the third image into the trained adversarial network model to obtain a patch of a DWI image; splicing and combining the patches of the DWI image to obtain a DWI image. The present invention can generate corresponding DWI image information using existing T2 image information, thereby improving the quality of the generated DWI image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a method and system for generating a DWI image based on a T2 image. Background Art

[0002] Magnetic resonance imaging (MRI) has become increasingly prominent among various medical imaging techniques due to its safety and information-richness, and is widely used in clinical diagnosis and treatment. There are different modes of MRI, each of which captures certain features of the underlying anatomy and provides a unique view of intrinsic magnetic resonance parameters.

[0003] For example, diffusion-weighted imaging (DWI) is a new MRI technology developed in the early and mid-1990s. This technology was introduced in China in the mid-1990s and promoted in clinical application. DWI is the only non-invasive method that can detect the diffusion movement of water molecules in living tissues. On the basis of suppressing tissue background signals, it is more prominent in lesion display. DWI provides important information for the diagnosis of ultra-early cerebral ischemia, cerebral infarction, brain abscess and brain tumor. However, due to logistical reasons, most existing data sets only contain T2 images, not DWI images. In many cases, T2 images cannot display lesions. Lesions can only be seen on DWI that can display the diffusion movement of water molecules. Therefore, it is necessary to use image generation technology to generate DWI images using T2 images. Therefore, the generation of corresponding DWI images from T2 images is a very worthy research problem. Its purpose is to use the existing T2 image information to obtain the corresponding DWI images without actual scanning.

[0004] The existing DWI acquisition methods are as follows:

[0005] Magnetic resonance imaging: This method uses magnetic resonance imaging to perform scanning operations to obtain DWI.

[0006] Cross-modal generation of DWI through traditional generative models (VAE, PixelCNN, Glow, etc.): This method generates images by modeling the nonlinear relationship between different modalities.

[0007] Cross-modal generation of DWI through a traditional GAN ​​model: This method uses T2 images and paired DWI images for training, and the trained model is used to generate DWI.

[0008] Existing methods for brain segmentation of tumor images:

[0009] 1) Magnetic resonance imaging: Magnetic resonance scanning is expensive and easily affected by physiological movements such as cerebrospinal fluid, heartbeat, and breathing, and has a high risk of artifacts.

[0010] 2) Cross-modal generation of DWI through traditional generative models (VAE, PixelCNN, Glow, etc.): Due to the large differences in image features across modalities, the relationship between any two MRI modalities is highly nonlinear. The existing traditional generative model methods cannot well simulate the nonlinear relationship between images of different modalities, and the generated images are blurred, so they perform poorly in image generation tasks.

[0011] 3) Generate DWI cross-modally through the traditional adversarial network model (GAN): The idea of ​​GAN is to use the game to continuously optimize the generator and discriminator so that the generated image is closer and closer to the real image in distribution. Magnetic resonance images are three-dimensional images, and the number of training samples is much smaller than that of natural images. Therefore, it poses a higher challenge to the structure of the generative adversarial network, requiring the convolutional neural network to fully extract and utilize the information contained in the magnetic resonance images. The generative adversarial network currently used for the cross-modal generation task of magnetic resonance images is relatively traditional, and the efficiency of feature extraction and utilization is relatively limited. Summary of the invention

[0012] The purpose of the present invention is to provide a method and system for generating a DWI image based on a T2 image, which can improve the quality of the generated DWI image.

[0013] To achieve the above object, the present invention provides the following solutions:

[0014] A method for generating a DWI image based on a T2 image, comprising:

[0015] Acquire T2 images with and without lesions and DWI images paired with the T2 images, and form data pairs by making the T2 images and the DWI images correspond one to one to form a first data set;

[0016] Preprocessing the first data set to obtain a second data set;

[0017] Cut the images in the second data set into patches to obtain a third data set;

[0018] Using the third data set to train an improved adversarial network model to obtain a trained adversarial network model, wherein the improved adversarial network model includes a generator, a first discriminator, and a second discriminator;

[0019] Obtain a T2 image to be processed, recorded as the first image;

[0020] Preprocessing the first image to obtain a second image;

[0021] Cut the second image into patches to obtain a third image;

[0022] Inputting the third image into the trained adversarial network model to obtain a patch of the DWI image;

[0023] The patches of the DWI image are spliced ​​and combined to obtain a DWI image.

[0024] Optionally, the preprocessing includes image registration, skull stripping, image data normalization and image resizing.

[0025] Optionally, cutting the image in the second data set into patches includes cutting the image in the second data set into multiple patches, where pixels at the junction of two adjacent patches in the multiple patches overlap.

[0026] Optionally, the patch size is 64×64×5.

[0027] Optionally, the training of the improved adversarial network model using the third data set includes: training the improved adversarial network model through back propagation and gradient descent algorithms.

[0028] Optionally, the generator adopts a UNet structure.

[0029] Optionally, the first discriminator is copied after the generator updates parameters, and during the back-propagation weight update process, the weight of the first discriminator remains unchanged.

[0030] Optionally, the second discriminator adopts a CNN structure.

[0031] A system for generating a DWI image based on a T2 image, comprising:

[0032] A first data set construction module is used to obtain T2 images with and without lesions and DWI images paired with the T2 images, and form data pairs by one-to-one correspondence between the T2 images and the DWI images to form a first data set;

[0033] A first preprocessing module, used for preprocessing the first data set to obtain a second data set;

[0034] A first image cutting module, used for cutting the images in the second data set into patches to obtain a third data set;

[0035] A first training module, used to train an improved adversarial network model using the third data set to obtain a trained adversarial network model, wherein the improved adversarial network model includes a generator, a first discriminator, and a second discriminator;

[0036] An image acquisition module, used for acquiring a T2 image to be processed, recorded as a first image;

[0037] A second preprocessing module, used for preprocessing the first image to obtain a second image;

[0038] A second image cutting module, used for cutting the second image into patches to obtain a third image;

[0039] An adversarial network module, used for inputting the third image into the trained adversarial network model to obtain a patch of the DWI image;

[0040] The image stitching module is used to stitch and combine the patches of the DWI image to obtain a DWI image.

[0041] Optionally, the first preprocessing module and the second preprocessing module include an image registration unit, a skull stripping unit, an image data standardization unit and an image size adjustment unit.

[0042] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0043] The present invention pre-constructs the correspondence between T2 images and DWI images, and uses the correspondence to train an improved adversarial network model. After the training is completed, the existing T2 images can be used to generate corresponding DWI images without actually scanning DWI, and the quality of the generated DWI images can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] 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 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 paying creative labor.

[0045] Figure 1 This is a flow chart of a method for generating a DWI image based on a T2 image according to the present invention;

[0046] Figure 2 This is a flow chart of the present invention for generating DWI images based on T2 images;

[0047] Figure 3 This is a framework diagram of the improved adversarial network model T22DWI-GAN of the present invention;

[0048] Figure 4 This is a diagram of the generator network structure in the improved adversarial network model of the present invention;

[0049] Figure 5 This is a structural diagram of the generator 3x3 convolution module in the improved adversarial network model of the present invention;

[0050] Figure 6 This is a structural diagram of the generator downsampling module in the improved adversarial network model of the present invention;

[0051] Figure 7 This is a structural diagram of the generator upsampling module in the improved adversarial network model of the present invention;

[0052] Figure 8 This is a structural diagram of the second discriminator in the improved adversarial network model of the present invention;

[0053] Fig. 9 This is a system module diagram for generating DWI images based on T2 images in the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] The purpose of the present invention is to provide a method and system for generating a DWI image based on a T2 image, which can improve the quality of the generated DWI image.

[0056] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0057] Figure 1 FIG. 4 is a flow chart of a method for generating a DWI image based on a T2 image according to the present invention. Figure 1 As shown, a method for generating a DWI image based on a T2 image includes:

[0058] Step 101: Acquire T2 images with and without lesions and DWI images paired with the T2 images, and form data pairs with the T2 images and DWI images in one-to-one correspondence to form a first data set.

[0059] Step 102: preprocess the first data set to obtain a second data set.

[0060] Step 103: Cut the images in the second data set into patches to obtain a third data set.

[0061] Step 104: Use the third data set to train the improved adversarial network model to obtain a trained adversarial network model, where the improved adversarial network model includes a generator, a first discriminator, and a second discriminator.

[0062] Step 105: Obtain a T2 image to be processed, recorded as the first image.

[0063] Step 106: pre-process the first image to obtain a second image.

[0064] Step 107: Cut the second image into patches to obtain a third image.

[0065] Step 108: Input the third image into the trained adversarial network model to obtain a patch of the DWI image.

[0066] Step 109: splicing and combining the patches of the DWI image to obtain a DWI image.

[0067] For ease of understanding, corresponding to the above steps, the present invention also discloses a framework diagram, such as Figure 2 As shown;

[0068] Specifically, in step 101, the present invention uses T2 magnetic resonance images with and without lesions (or with and without tumors) and their paired DWI magnetic resonance images collected from multiple centers as raw data and as the first data set.

[0069] In step 102, the first data set is preprocessed, including image registration, skull stripping, image data standardization, and image size adjustment.

[0070] The image registration includes performing a nonlinear registration operation on the original T2 image and the DWI image;

[0071] The skull stripping includes obtaining a skull stripping image of the registered magnetic resonance image by using a preset threshold;

[0072] Image data normalization includes calculating the mean and standard deviation of voxels within the brain contour after skull stripping, and Gaussian normalizing the voxels within the brain contour;

[0073] Image resizing includes scaling the inconsistently sized T2 and DWI images to 320 × 320 (only the long size is processed, the height is not processed) using the nearest neighbor interpolation method, and then cropping 80% of the area in the center of the image. After cropping, the image size is 256 × 256 (only the long size is processed, the height is not processed).

[0074] Step 103 is to cut the T2 magnetic resonance image and the paired DWI magnetic resonance image after data preprocessing into 64×64×5 patches with pixel overlap. The paired patches are saved in the order of the images before cutting and a training set is constructed, which is the third data set.

[0075] Step 104 is to use the T2 magnetic resonance image patch and the paired DWI magnetic resonance image patch as training sets to feed into the improved adversarial network model (T22DWI-GAN network), train and learn the T22DWI-GAN network through back propagation and gradient descent algorithms, verify the improved adversarial network model T22DWI-GAN using a cross-validation method, adjust the hyperparameters in the model training, select model parameters with high prediction accuracy and strong generalization performance for saving, and obtain a trained model.

[0076] Steps 105-109 are to perform the data preprocessing operation as described above on the T2 image to be processed, and cut it into 64×64×5 patches with pixel overlap, which are sequentially input into the generator of the generative adversarial network model T22DWI-GAN that has been trained and saved in the early stage, and output the patch corresponding to the DWI image. Finally, all the patches of the generated DWI image are spliced ​​and combined in the order of the image to obtain the final complete generated DWI image.

[0077] The improved adversarial network model T22DWI-GAN network in the present invention is described below:

[0078] The adversarial network model T22DWI-GAN consists of two models: the generator and the discriminator. Figure 3 As shown;

[0079] The generator model adopts the Unet structure, such as Figure 4 As shown. Unet performs 4 downsampling and 4 upsampling. The downsampling layer restores the high-level semantic feature map obtained by upsampling to the resolution of the original image. In addition, Unet also uses skip connections to ensure that the feature map finally restored incorporates more low-level features, making the segmentation map restore edge and other information more refined. The input of the generator is the preprocessed T2 image patch, and the output corresponds to the generated DWI image patch. Compared with the general convolutional network, the UNet structure of the present invention does not use a pooling layer because the pooling layer will cause a certain amount of blur.

[0080] The encoder part of the generator model based on the UNet structure consists of the following modules in order: first, a 3x3 convolution module, followed by four downsampling modules. The 3x3 convolution module of the encoder part of the generator model is as follows: Figure 5, including two repeated convolution blocks, each of which includes a stride=1, padding=1, kernel_size=3x3 convolution layer, a batch normalization layer, and a relu activation layer. The downsampling module, such as Figure 6 , including a convolutional unit with a convolutional layer of stride=2, padding=1, kernel_size=4x4 plus a dropout layer, and two repeated convolutional blocks, each of which includes a convolutional layer of stride=1, padding=1, kernel_size=3x3, a batch normalization layer, and a relu activation layer.

[0081] The decode part of the generator model based on the UNet structure includes the following modules in order: four upsampling modules, followed by a 1x1 convolutional layer with stride=1, padding=0, and kernel_size=1x1. The upsampling module of the decode part of the generator model is as follows: Figure 7 , the input of this module consists of two parts, which come from the feature maps of the downsampling module and the upsampling module at the same stage of the generator model. In addition, the upsampling module includes two structures in sequence: a deconvolution block and a residual connection unit module of the encoder part of the generator model. First, the output of the upsampling module of the generator model passes through the deconvolution block, which includes a deconvolution layer with stride=2, padding=0, kernel_size=2, a batch normalization layer and a relu activation layer. The feature map output by the deconvolution block and the feature map of the downsampling block of the generator model at the same stage are spliced ​​and merged. If the sizes are inconsistent, the feature map of the downsampling module is cropped, and the merged feature maps are fed into the subsequent upsampling residual connection unit module.

[0082] The discriminator model mainly consists of two parts, such as Figure 3 The first part of the model is the first discriminator (discriminator 1), which is copied after the parameters are updated by the generator model in each round of training, and the weight of this part of the model remains unchanged when the weight is back-propagated throughout the discriminator. Its structure is consistent with the generator model; the second part of the model is the second discriminator (discriminator 2), as shown in Figure 8, is a typical CNN structure. The weight of this part of the model is updated during the back propagation of the entire discriminator. The second discriminator (discriminator 2) includes the following modules in sequence: six repeated convolution blocks, a resize operation block, and three fully connected layers; each convolution block includes a convolution layer and a leaky_relu activation layer. The convolution kernel parameters of the convolution layers of the six convolution blocks are: 9 2 , 4 2 , 5 2 , 4 2 , 5 2 , 4 2 .

[0083] The input of the discriminator model is the paired T2 image patch and the generated DWI image patch or the real DWI image patch. After the T2 image patch enters the first discriminator (discriminator 1), it is subtracted from the generated DWI image patch / real DWI image patch. The subtraction result is divided into two branches, one of which keeps the subtraction result, and the other branch takes the absolute value of the subtraction result and passes through three layers of fully connected layers. The parameters of the three layers of fully connected layers are N×64, 64×5, and 5×1, respectively, where N=64×64×5. It should be noted that the weights of the fully connected layer need to be updated during the back propagation process. The results of the two branches are multiplied, and the multiplication result is further input into the second discriminator (discriminator 2). For the real pairing (T2 image patch and the real DWI image patch), the second discriminator (discriminator 2) outputs 1, and for the false pairing (T2 image patch and the generated DWI image patch), the second discriminator (discriminator 2) outputs 0.

[0084] The following is a detailed introduction to the loss function of the improved adversarial network model T22DWI-GAN:

[0085] The loss function uses three loss functions: GAN loss function, L2 loss function and gradient difference loss function.

[0086] 1. About GAN loss function

[0087] GANs are different from many other models. GANs need to run two optimization algorithms simultaneously during training. Therefore, it is necessary to define an optimizer for the discriminator and the generator respectively, one to minimize the loss of the discriminator and the other to minimize the loss of the generator, that is,

[0088] Loss D_GAN +Loss G_GAN (1)

[0089] a) Discriminator GAN loss function

[0090] During the training process, half of the discriminator input data comes from real training data, and the other half comes from fake images generated by the generator. During the training process, for real data, the discriminator tries to assign it a probability close to 1; and for images generated by the generator, the discriminator assigns it a probability close to 0.

[0091] The discriminator GAN loss function is as follows:

[0092] Loss D_GAN (X, Y) = L BCE (D(Y),1)+L BCE (D(G(X)),0) (2)

[0093] Where X is the source input image, Y is the corresponding target image, G(X) is the image generated by the generator, and D(·) calculates the probability that the discriminator input is "true". BCE It is the binary cross entropy, which is defined as follows:

[0094]

[0095] Where Y represents the label of the input data, and its value is {0, 1} (that is, 0 represents the generated image, and 1 represents the real image). It indicates the probability that the discriminator determines that its input follows the distribution of the real image, and its value range is [0, 1]. The binary cross entropy describes the distance between two probability distributions. The smaller the binary cross entropy, the closer the two are.

[0096] b) Generator GAN loss function

[0097] The generator does the opposite of the discriminator. The generator outputs samples that can make the discriminator's judgment result close to probability 1.

[0098] The generator GAN loss function is as follows:

[0099] Loss G_GAN (X) = L BCE (D(G(X)), 1) (4)

[0100] As the above training progresses, the discriminator continues to enhance its ability to distinguish, while the generator continues to generate more and more realistic outputs to confuse the discriminator. In theory, the generator and the discriminator will eventually reach a balance "Nash equilibrium".

[0101] 2) L2 loss function

[0102] The specific definition of the L2 loss function is shown in the following formula:

[0103]

[0104] Where Y represents the real target image, and G(X) is the target image generated by the source image X through the generator G.

[0105] 3) Gradient difference loss function

[0106] Since the L2 loss function may produce blurred images, this scheme uses the gradient difference loss function as an additional term, and the specific definition is shown in the following formula:

[0107]

[0108] Where Y is the real target image, The target image generated by the generator. The gradient difference loss function minimizes the difference in gradient magnitude between the ground truth target image and the target image generated by the generator, while making the target image generated by the generator keep the area with strong gradient (i.e. edge) as much as possible, so as to effectively compensate for the blurring caused by the L2 loss function.

[0109] Combining the above GAN loss function, L2 loss function and gradient difference loss function, the final generator and discriminator loss functions are:

[0110]

[0111] Loss D (X, Y) = Loss D_GAN (X, Y) (8)

[0112] Among them, λ1, λ2, λ3 are coefficients, Loss G_GAN , Loss D_GAN The definitions of (X, Y) are shown in formulas (2) to (6) respectively.

[0113] A system for generating DWI images based on T2 images, such as Fig. 9 As shown, including:

[0114] A first data set construction module 901 is used to obtain T2 images with and without lesions and DWI images paired with the T2 images, and form data pairs by corresponding the T2 images and the DWI images one by one to form a first data set;

[0115] A first preprocessing module 902, configured to preprocess the first data set to obtain a second data set;

[0116] A first image cutting module 903, used for cutting the images in the second data set into patches to obtain a third data set;

[0117] A first training module 904 is used to train the improved adversarial network model using the third data set to obtain a trained adversarial network model, wherein the improved adversarial network model includes a generator, a first discriminator, and a second discriminator;

[0118] An image acquisition module 905 is used to acquire a T2 image to be processed, which is recorded as a first image;

[0119] A second preprocessing module 906, configured to preprocess the first image to obtain a second image;

[0120] A second image cutting module 907, used for cutting the second image into patches to obtain a third image;

[0121] An adversarial network module 908, configured to input the third image into the trained adversarial network model to obtain a patch of a DWI image;

[0122] The image stitching module 909 is used to stitch and combine the patches of the DWI image to obtain a DWI image.

[0123] The present invention also discloses the following technical effects:

[0124] The present invention adopts a convolutional neural network structure based on the GAN concept, namely T22DWI-GAN. Compared with the general generative adversarial network, the discriminator of the present invention mainly includes two parts. The first part is discriminator 1, which is copied from the generator. During back propagation, the weight of this part of the model is fixed and not updated; the second part is discriminator 2, which is a simple typical CNN structure. The weight of this part of the model is normally updated during back propagation. This design can more effectively improve the efficiency of feature extraction and utilization, and keep the actual training cost unchanged. This solution has fast analysis speed and strong generalization ability. Compared with the traditional GAN, it improves the peak signal-to-noise ratio by 6%-10%, has better and more stable effects, and is practical and easy to use.

[0125] The present invention cuts the complete image into overlapping patches for training in the data preprocessing stage, which can reduce the requirement for video memory on the one hand, and achieve data enhancement on the other hand, thereby improving the training effect.

[0126] The present invention adopts multi-center training samples when training the model. The differences between multi-center samples are large, the trained model has good generalization, and is applicable to a wider range of data. It can use the existing T2 image information to generate its corresponding DWI image information without actually scanning DWI, thereby improving the image quality of DWI.

[0127] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0128] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for generating a DWI image based on a T2 image, characterized in that: include: Acquire T2 images with and without lesions and DWI images paired with the T2 images, and form data pairs by making the T2 images and the DWI images correspond one to one to form a first data set; The first data set is preprocessed to obtain a second data set, wherein the preprocessing includes image registration, skull stripping, image data standardization and image resizing; wherein the image registration includes performing a nonlinear registration operation on the original T2 image and the DWI image; the skull stripping includes obtaining a skull stripping image of the registered magnetic resonance image through a preset threshold; the image data standardization includes calculating the mean and standard deviation of the voxels in the brain contour after skull stripping, and performing Gaussian standardization on the voxels in the brain contour; the image resizing includes scaling the T2 image and the DWI image of inconsistent sizes to 320×320 by the nearest neighbor interpolation method, and then cutting 80% of the area in the center of the image, so that the image size after cutting is 256×256, and the image resizing only processes the length and width, and does not process the height; Cutting the image in the second data set into patches to obtain a third data set, wherein cutting the image in the second data set into patches includes cutting the image in the second data set into multiple patches, wherein pixels at the junction of two adjacent patches in the multiple patches overlap; and the patch size is 64×64×5; The improved adversarial network model is trained using the third data set to obtain a trained adversarial network model, wherein the improved adversarial network model includes a generator, a first discriminator, and a second discriminator; the generator adopts a UNet structure without a pooling layer; the input of the generator is a preprocessed T2 image patch, and the output is a corresponding generated DWI image patch; the input of the discriminator is a paired T2 image patch and a generated DWI image patch or a real DWI image patch, and the T2 image patch enters the first discriminator and is matched with the generated DWI image patch / real DWI image patch I image patch is subtracted, and the result of the subtraction is divided into two branches, one of which keeps the result of the subtraction, and the other branch takes the absolute value of the result of the subtraction and passes it through three fully connected layers. The parameters of the three fully connected layers are N×64, 64×5, and 5×1, respectively, where N=64×64×5; the results of the two branches are multiplied, and the result of the multiplication is further input into the second discriminator. For a true pairing, that is, the pairing of the T2 image patch and the true DWI image patch, the second discriminator outputs 1, and for a false pairing, that is, the pairing of the T2 image patch and the generated DWI image patch, the second discriminator outputs 0; Obtain a T2 image to be processed, recorded as the first image; Preprocessing the first image to obtain a second image; Cut the second image into patches to obtain a third image; Inputting the third image into the trained adversarial network model to obtain a patch of the DWI image; The patches of the DWI image are spliced ​​and combined to obtain a DWI image.

2. The method for generating a DWI image based on a T2 image according to claim 1, characterized in that: The using the third data set to train the improved adversarial network model includes: training the improved adversarial network model through back propagation and gradient descent algorithms.

3. The method for generating a DWI image based on a T2 image according to claim 1, characterized in that: The first discriminator is copied after the generator updates parameters, and the weight of the first discriminator remains unchanged during the back-propagation weight update process.

4. The method for generating a DWI image based on a T2 image according to claim 1, characterized in that: The second discriminator adopts a CNN structure.

5. A system for generating DWI images based on T2 images, characterized in that: include: A first data set construction module is used to obtain T2 images with and without lesions and DWI images paired with the T2 images, and form data pairs by one-to-one correspondence between the T2 images and the DWI images to form a first data set; A first preprocessing module, used for preprocessing the first data set to obtain a second data set; A first image cutting module, used for cutting the images in the second data set into patches to obtain a third data set; The first training module is used to train the improved adversarial network model using the third data set to obtain the trained adversarial network model, wherein the improved adversarial network model includes a generator, a first discriminator and a second discriminator; the generator adopts a UNet structure without a pooling layer; the input of the generator is a preprocessed T2 image patch, and the output is a corresponding generated DWI image patch; the input of the discriminator is a paired T2 image patch and a generated DWI image patch or a real DWI image patch, and the T2 image patch enters the first discriminator and is matched with the generated DWI image patch / real DWI image patch The real DWI image patch is subtracted, and the result of the subtraction is divided into two branches, one of which keeps the subtraction result, and the other branch takes the absolute value of the subtraction result and passes it through three fully connected layers. The parameters of the three fully connected layers are N×64, 64×5, and 5×1, respectively, where N=64×64×5; the results of the two branches are multiplied, and the multiplication result is further input into the second discriminator. For a real pairing, that is, the pairing of the T2 image patch and the real DWI image patch, the second discriminator outputs 1, and for a false pairing, that is, the pairing of the T2 image patch and the generated DWI image patch, the second discriminator outputs 0; An image acquisition module, used for acquiring a T2 image to be processed, recorded as a first image; A second preprocessing module, used for preprocessing the first image to obtain a second image; a second image cutting module, configured to cut the second image into patches to obtain a third image, wherein cutting the second image into patches includes cutting the image in the second data set into a plurality of patches, wherein pixels at the junction of two adjacent patches in the plurality of patches overlap; and the patch size is 64×64×5; An adversarial network module, used for inputting the third image into the trained adversarial network model to obtain a patch of the DWI image; An image stitching module, used for stitching and combining the patches of the DWI image to obtain a DWI image; The first preprocessing module and the second preprocessing module include an image registration unit, a skull stripping unit, an image data standardization unit and an image resizing unit; wherein the image registration unit includes performing a nonlinear registration operation on the original T2 image and the DWI image; the skull stripping unit includes obtaining a skull stripping image of the registered magnetic resonance image through a preset threshold; the image data standardization unit includes calculating the mean and standard deviation of the voxels in the brain contour after skull stripping, and performing Gaussian standardization on the voxels in the brain contour; the image resizing unit includes scaling the inconsistent-sized T2 image and DWI image to 320×320 by the nearest neighbor interpolation method, and then cutting 80% of the area in the center of the image, so that the image size after cutting is 256×256, and the image resizing only processes the length and width dimensions, and does not process the height.