Medical image generation method, device, computer equipment and storage medium
The T1-enhanced image is generated through a three-dimensional loop generation adversarial network, which solves the problems of long time and contrast agent use in traditional carotid artery imaging, and achieves efficient and safe carotid artery imaging.
Patent Information
- Application Number
- CN202410237366.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-01
AI Technical Summary
Traditional carotid artery imaging methods have the problem of long imaging time and the need to inject contrast media, which increases adverse effects and radiation exposure.
A medical image generation method based on a three-dimensional recurrent generative adversarial network is adopted. T1 images are input to the preset image generation network to generate T1 enhanced images, which reduces the magnetic resonance imaging process and contrast agent usage, shortens imaging time, and improves imaging efficiency and safety.
It achieves rapid acquisition of different modal medical images of the carotid artery without injecting contrast media, reduces radiation exposure, and improves the efficiency and safety of magnetic resonance scanning.
Smart Images

Figure CN118396922B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a medical image generation method, apparatus, computer equipment and storage medium. Background Art
[0002] Magnetic resonance imaging (MRI), as a non-invasive imaging method, has been widely used in various medical imaging, such as carotid artery imaging, to evaluate the structure and function of tissues.
[0003] Traditionally, when performing carotid artery imaging, it is usually necessary to collect medical images of the carotid artery in different modalities to achieve a comprehensive analysis of the carotid artery, such as: T1 images of the carotid artery and T1 enhanced images of the carotid artery, among which the T1 enhanced image of the carotid artery requires a certain amount of contrast agent to be injected into the body of the imaging subject before MRI imaging.
[0004] However, the traditional carotid artery imaging method has the problem of long imaging time. Summary of the invention
[0005] Based on this, it is necessary to provide a medical image generation method, device, computer equipment, computer-readable storage medium and computer program product that can obtain medical images of different modalities of the carotid artery in a shorter time and improve the efficiency of medical image acquisition in order to address the above technical problems.
[0006] In a first aspect, the present application provides a medical image generation method, comprising:
[0007] Acquire a T1 image obtained by imaging the target object with a magnetic resonance device;
[0008] The T1 image is input into a preset image generation network to obtain a T1 enhanced image of the target object; wherein the preset image generation network is trained based on an initial cycle generative adversarial network, and the initial cycle generative adversarial network is a three-dimensional network.
[0009] In one embodiment, the training method of the preset image generation network includes:
[0010] Acquire a sample T1 image and a sample T1 enhanced image;
[0011] The sample T1 image and the sample T1 enhanced image are input into the initial cyclic generative adversarial network for training to obtain a trained cyclic generative adversarial network; wherein the trained cyclic generative adversarial network includes a trained preset image generation network.
[0012] In one embodiment, the initial cyclic generative adversarial network includes a first initial generative network, a second initial generative network, a first initial discriminant network, and a second initial discriminant network; the sample T1 image and the sample T1 enhanced image are input into the initial cyclic generative adversarial network for training to obtain a trained cyclic generative adversarial network, including:
[0013] Inputting the sample T1 image into the first initial generation network, and outputting a first pseudo T1 enhanced image corresponding to the sample T1 image; and inputting the first pseudo T1 enhanced image into the second initial generation network, and outputting a first pseudo T1 image corresponding to the first pseudo T1 enhanced image;
[0014] Inputting the sample T1 enhanced image into the second initial generation network, and outputting a second pseudo T1 image corresponding to the sample T1 enhanced image; and inputting the second pseudo T1 image into the first initial generation network, and outputting a second pseudo T1 enhanced image corresponding to the second pseudo T1 image;
[0015] Determine a first adversarial loss between the sample T1 image and the second pseudo T1 image, determine a second adversarial loss between the sample T1-enhanced image and the first pseudo T1-enhanced image, and determine a cycle consistency loss between the sample T1 image, the first pseudo T1 image, the sample T1-enhanced image, and the second pseudo T1-enhanced image;
[0016] Based on the first adversarial loss, the second adversarial loss and the cycle consistency loss, the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network are trained to obtain a trained cycle generative adversarial network.
[0017] In one embodiment, based on the first adversarial loss, the second adversarial loss and the cycle consistency loss, the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network are trained to obtain a trained cycle generative adversarial network, including:
[0018] Extracting structural features from the sample T1 image based on the self-similar context to obtain a first structural feature image; and extracting structural features from the first pseudo T1 enhanced image based on the self-similar context to obtain a second structural feature image;
[0019] Extracting structural features from the sample T1 enhanced image based on the self-similar context to obtain a third structural feature image; and extracting structural features from the second pseudo T1 image based on the self-similar context to obtain a fourth structural feature image;
[0020] Determining a structural consistency loss among the first structural feature image, the second structural feature image, the third structural feature image, and the fourth structural feature image;
[0021] Based on the first adversarial loss, the second adversarial loss, the cycle consistency loss and the structural consistency loss, the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network are trained to obtain a trained cycle generative adversarial network.
[0022] In one of the embodiments, the network structure of the first initial discriminant network and / or the second initial discriminant network includes: a plurality of three-dimensional hole convolution modules, a plurality of fully connected layer modules and an activation function.
[0023] In one embodiment, the preset image generation network includes a plurality of cascade-connected three-dimensional hole convolution modules, a plurality of cascade-connected residual modules, and a plurality of cascade-connected transposed convolution modules and output modules, and the T1 image is input into the preset image generation network to obtain a T1 enhanced image of the target object, including:
[0024] The T1 image is input into multiple cascade-connected three-dimensional hole convolution modules for convolution processing to obtain a convolution TI image;
[0025] The convolution TI image is input into multiple cascade-connected residual modules for residual convolution processing to obtain a residual TI image;
[0026] The residual TI image is input into multiple cascade-connected transposed convolution modules for transposed convolution processing to obtain a transposed T1 image;
[0027] The transposed T1 image is input into the output module to obtain a T1 enhanced image.
[0028] In one embodiment, the method further comprises:
[0029] Preprocessing the T1 image to obtain a preprocessed T1 image; wherein the preprocessing includes at least one of format conversion, bias field correction, resampling, size adjustment, normalization, and data enhancement;
[0030] Accordingly, the T1 image is input into the preset image generation network to obtain a T1 enhanced image of the target object, including:
[0031] The preprocessed T1 image is input into the preset image generation network to obtain the T1 enhanced image of the target object.
[0032] In a second aspect, the present application also provides a medical image generating device, comprising:
[0033] An acquisition module, used to acquire a T1 image obtained by imaging the target object with a magnetic resonance device;
[0034] A generation module is used to input the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object; wherein the preset image generation network is trained based on an initial cycle generation adversarial network, and the initial cycle generation adversarial network is a three-dimensional network.
[0035] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the medical image generation method in the first aspect when executing the computer program.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the medical image generation method in the first aspect are implemented.
[0037] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the medical image generation method in the first aspect.
[0038] The above-mentioned medical image generation method, device, computer equipment, storage medium and computer program product, the computer equipment obtains the T1 image obtained by the magnetic resonance device imaging the target object, and then inputs the T1 image into the preset image generation network to obtain the T1 enhanced image of the target object; wherein the preset image generation network is obtained based on the training of the initial cycle generative adversarial network, and the initial cycle generative adversarial network is a three-dimensional network. That is to say, when the method in the embodiment of the present application is adopted, when the magnetic resonance scanning is actually performed, it is only necessary to perform a T1 sequence magnetic resonance scanning on the target object to obtain the T1 image of the target object, and there is no need to inject a contrast agent into the target object and then perform a T1 enhanced sequence magnetic resonance scanning; it can not only reduce one magnetic resonance imaging process and shorten the magnetic resonance imaging time; it can also avoid injecting a contrast agent into the target object, thereby avoiding the adverse effects of the contrast agent on the target object; in addition, while shortening the magnetic resonance imaging time, it can also reduce the radiation effects on the target object; comprehensively improve the efficiency and safety of magnetic resonance scanning. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] FIG1 is a diagram of an application environment of a medical image generation method according to an embodiment;
[0041] FIG2 is a schematic diagram of a flow chart of a medical image generation method in one embodiment;
[0042] FIG3 is a schematic diagram of a flow chart of a method for generating a medical image in one embodiment;
[0043] FIG4 is a schematic diagram of a workflow of 3D CycleGAN in one embodiment;
[0044] FIG5 is a schematic diagram of the structure of an SSC in one embodiment;
[0045] FIG6 is a schematic diagram of a network structure of a generated network in one embodiment;
[0046] FIG7 is a schematic diagram of a network structure of a discriminant network in one embodiment;
[0047] FIG8 is a schematic diagram of a preprocessing process in one embodiment;
[0048] FIG9 is a schematic flow chart of a medical image generating method in another embodiment;
[0049] FIG10 is a block diagram of a medical image generating device according to an embodiment;
[0050] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] The carotid artery is an important blood vessel connecting the heart and brain, and its status is crucial to human health. Carotid artery diseases, such as atherosclerosis, plaque formation, and stenosis, can lead to serious cardiovascular complications, such as ischemic stroke. Rapidly and accurately obtaining information about the carotid artery is essential for early diagnosis and treatment decisions.
[0053] As a non-invasive imaging method, magnetic resonance imaging (MRI) technology has been widely used in carotid artery imaging to evaluate its structure and function. Different MRI modalities can provide different information, including arterial structure, plaque distribution, and degree of stenosis. For example, T1 imaging (T1-weighted imaging) is an imaging modality based on T1 relaxation time, which is used to show the difference in signal intensity of tissues. In carotid artery imaging, T1 imaging can clearly show different types of tissues, including blood vessels, muscles, soft tissues, etc. Through T1 imaging, doctors can observe the anatomical structure of the carotid artery, understand the distribution and size of blood vessels, and possible lesions such as plaques and stenosis. T1-weighted contrast-enhanced imaging is T1 imaging performed after contrast agents are injected into the patient's body. The contrast agents will be concentrated in the vascular system, thereby highlighting the blood vessels and lesion areas. In carotid artery imaging, T1-enhanced imaging provides greater contrast, allowing doctors to more clearly identify the distribution of blood vessels and possible abnormal lesions, such as the location of plaques.
[0054] In order to obtain comprehensive information about the carotid artery, it is usually necessary to obtain multiple different modality images of the carotid artery, such as T1 images and T1 enhanced images. However, this process not only increases the time and complexity of imaging, but the use of contrast agents may also cause some potential risks and discomfort. For example, some patients may have contraindications and cannot use contrast agents, which makes it difficult for doctors to obtain the corresponding T1 enhanced images.
[0055] In order to solve the above problems, it is crucial to explore the cross-modal image generation method from T1 images to T1 enhanced images, so that the information of T1 enhanced images can be obtained from existing T1 images without using contrast agents. Existing cross-modal image generation methods usually try to synthesize missing modality images from existing modality images. Traditional methods include image registration and feature matching, which usually rely on models with manually defined rules and are easily affected by image deformation, distortion and noise. In addition, feature extraction and matching require manual and gradual adjustment of optimization parameters to achieve optimal performance, making it difficult to quickly establish an accurate mapping relationship.
[0056] With the rise of deep learning, many researchers have designed different neural network frameworks for cross-modal image generation. Generative Adversarial Networks (GAN) consists of a generator and a discriminator, and achieves the generation of realistic images through adversarial training. In cross-modal image generation, the generator attempts to generate images of another modality to deceive the discriminator. However, GAN requires a large amount of paired training data, and it is usually difficult to obtain paired data of different modalities of the same patient in medical scenarios.
[0057] In order to solve the problem of data shortage, researchers proposed Cycle Generative Adversarial Networks (CycleGAN), which introduced cycle consistency loss based on the generative adversarial network to ensure the consistency of bidirectional conversion, and does not specifically require paired data in network training. However, existing research usually uses CycleGAN for cross-modal generation of two-dimensional images, but applications in the field of medical imaging usually involve three-dimensional volume data, which is more complex in representation and processing, and is of great significance in medical diagnosis and treatment.
[0058] However, the traditional CycleGAN design mainly focuses on two-dimensional images, and the application research on three-dimensional images is not mature. Some researchers simulate the spatial continuity of three-dimensional images by synthesizing three 2D slices into a 2.5D slice, but real clinical medical images are all three-dimensional images, and 2.5D images cannot be applied to clinical demand scenarios. Some researchers have expanded the 2D CycleGAN into a three-dimensional network, but because the calculation of three-dimensional image features is more complicated, and the objective function needs to be specifically modified to adapt to 3D data, the training of the three-dimensional model is not stable. In addition, the existing CycleGAN research lacks direct constraints between the generated image and the input image, and cannot guarantee the structural consistency between the generated image and the input image.
[0059] Based on this, this application proposes a cross-modal image generation method based on Three-DimensionalCylcle Generative Adversarial Networks (3D CycleGAN) to achieve mutual conversion between T1 and T1 enhanced modality images. Doctors can obtain more information through the complementarity of the two imaging modalities, thereby more accurately evaluating the status and potential diseases of the carotid artery and improving the accuracy of diagnosis and treatment decisions.
[0060] The medical image generation method provided in the embodiment of the present application can be applied in the application environment shown in FIG1. The computer device 102 can be a magnetic resonance imaging device, or a computing device connected to the magnetic resonance imaging device in communication, etc.; illustratively, the computing device connected to the magnetic resonance imaging device in communication can include but is not limited to various terminals and servers, and the terminals can include various personal computers, laptops, smart phones, tablet computers, etc.; the server can be implemented by an independent server or a server cluster composed of multiple servers, and the server can be a local server or a cloud server, etc.
[0061] In an exemplary embodiment, as shown in FIG2 , a medical image generation method is provided, which is described by taking the method applied to the computer device in FIG1 as an example, and includes the following steps 202 to 204. Among them:
[0062] Step 202: Acquire a T1 image obtained by imaging the target object using a magnetic resonance device.
[0063] The T1 image of the target object may be a three-dimensional medical image.
[0064] Exemplarily, the computer device may be a computing device that is communicatively connected to a magnetic resonance device; when performing magnetic resonance imaging on a target object, the target object may be magnetically scanned by the magnetic resonance device to obtain a magnetic resonance image of the target object; for example, when performing magnetic resonance scanning on the target object using a T1 scanning protocol, a T1 image of the target object may be obtained.
[0065] Exemplarily, when the magnetic resonance device images the target object and obtains the T1 image of the target object, the T1 image of the target object can be sent to a computer device; the T1 image of the target object can also be sent to a preset storage device so that the computer device can obtain the T1 image of the target object from the preset storage device; exemplarily, the preset storage device can include but is not limited to a Digital Imaging and Communications in Medicine (DICOM) server, etc.
[0066] Exemplarily, when a trigger instruction for the target object is detected, the computer device may also obtain a T1 image of the target object from a magnetic resonance device or a preset storage device, so as to subsequently generate medical images of other modalities of the target object based on the T1 image of the target object, or perform medical analysis based on the T1 image of the target object.
[0067] Step 204, input the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object; wherein the preset image generation network is trained based on an initial recurrent generative adversarial network, and the initial recurrent generative adversarial network is a three-dimensional network.
[0068] That is to say, in the embodiment of the present application, a three-dimensional recurrent generative adversarial network is used to convert between medical images of different modalities; wherein, the three-dimensional recurrent generative adversarial network generates a three-dimensional medical image of another modality based on a three-dimensional medical image of one modality by processing three-dimensional volume data.
[0069] For example, before actual use, the three-dimensional initial recurrent generative adversarial network can be trained based on the three-dimensional sample T1 image and the three-dimensional sample T1 enhanced image until the preset training conditions are met to obtain a trained recurrent generative adversarial network. The preset training conditions may include a combination of one or more of the following: the number of training iterations is greater than or equal to a preset iteration number threshold, the network loss value is less than or equal to a preset loss threshold, etc.
[0070] Exemplarily, when training a three-dimensional cycle-generated adversarial network, the loss function used in the training may include adversarial loss and cycle consistency loss, and may also include a combination of multiple losses such as structural consistency loss. For example, a combination of adversarial loss, cycle consistency loss, and structural consistency loss may be used as the loss function of the three-dimensional cycle-generated adversarial network.
[0071] Exemplarily, the training process and the use process can be performed in the same computer device or in different computer devices; for example: the three-dimensional initial recurrent generative adversarial network is trained in computer device A to obtain a trained recurrent generative adversarial network; the trained recurrent generative adversarial network is used in computer device B to process the acquired T1 image of the target object, thereby generating a T1 enhanced image of the target object.
[0072] Among them, since the cyclic generative adversarial network includes two generator networks and two discriminator networks, one of the generator networks (hereinafter referred to as the first generator network) can generate a T1 enhanced image based on the T1 image, and the other generator network (hereinafter referred to as the second generator network) can generate a T1 image based on the T1 enhanced image; that is to say, the trained cyclic generative adversarial network includes the trained first generator network and the trained second generator network.
[0073] Based on this, in this example, a trained first generator network can be used to generate a corresponding T1 enhanced image based on the acquired T1 image; the trained first generator network here is the above-mentioned preset image generation network.
[0074] Of course, in other implementation scenarios, a trained second generator network can also be used to generate a corresponding T1 image based on the acquired T1 enhanced image of the target object, so as to provide doctors with magnetic resonance images of the target object in two different modalities, so as to facilitate doctors to perform medical analysis on the target object.
[0075] In the above-mentioned medical image generation method, the computer device obtains the T1 image obtained by imaging the target object with the magnetic resonance device, and then inputs the T1 image into the preset image generation network to obtain the T1 enhanced image of the target object; wherein the preset image generation network is obtained based on the training of the initial cyclic generative adversarial network, and the initial cyclic generative adversarial network is a three-dimensional network. That is to say, when the method in the embodiment of the present application is adopted, when the magnetic resonance scanning is actually performed, it is only necessary to perform a T1 sequence magnetic resonance scanning on the target object to obtain the T1 image of the target object, and there is no need to inject a contrast agent into the target object and then perform a T1 enhanced sequence magnetic resonance scanning; it can not only reduce one magnetic resonance imaging process and shorten the magnetic resonance imaging time; it can also avoid injecting a contrast agent into the target object, thereby avoiding the adverse effects of the contrast agent on the target object; in addition, while shortening the magnetic resonance imaging time, it can also reduce the radiation effects on the target object; comprehensively improve the efficiency and safety of magnetic resonance scanning.
[0076] In an exemplary embodiment, when the training process and the use process of the above-mentioned three-dimensional recurrent generative adversarial network are performed in the same computer device, the computer device can also perform the training process of the above-mentioned preset image generation network; as shown in FIG3 , the training method of the above-mentioned preset image generation network may include steps 302 to 304. Among them:
[0077] Step 302: Acquire a sample T1 image and a sample T1 enhanced image.
[0078] Among them, when using a cyclic generative adversarial network, the sample T1 image and the sample T1 enhanced image can be paired training data or unpaired training data; for example: the T1 image of tissue a of object A can be obtained as the sample T1 image, and the T1 enhanced image of tissue a of object A can be obtained as the sample T1 enhanced image; the T1 image of tissue a of object A can be obtained as the sample T1 image, and the T1 enhanced image of tissue b of object A can be obtained as the sample T1 enhanced image; the T1 image of tissue a of object A can be obtained as the sample T1 image, and the T1 enhanced image of tissue a of object B can be obtained as the sample T1 enhanced image; and the T1 image of tissue a of object A can be obtained as the sample T1 image, and the T1 enhanced image of tissue b of object B can be obtained as the sample T1 enhanced image, etc.; the present application does not make specific limitations on this.
[0079] Exemplarily, the computer device may obtain multiple T1 images from a preset database as sample T1 images, and obtain multiple T1 enhanced images from a preset database as sample T1 enhanced images, thereby using the sample T1 images and the sample T1 enhanced images as training data for the initial cyclic generative adversarial network. It should be noted that the preset database corresponding to the T1 image and the preset database corresponding to the T1 enhanced image may be the same database or different databases; this is not specifically limited in the embodiments of the present application.
[0080] In addition, it should be noted that both the sample T1 image and the sample T1 enhanced image are three-dimensional medical images.
[0081] Step 304: input the sample T1 image and the sample T1 enhanced image into the initial recurrent generative adversarial network for training to obtain a trained recurrent generative adversarial network; wherein the trained recurrent generative adversarial network includes a trained preset image generation network.
[0082] In this example, a recurrent generative adversarial network can be used to perform unsupervised conversion between medical images of different modalities to achieve image modality conversion and generation. Referring to FIG4 , a schematic diagram of the network framework of the recurrent generative adversarial network is shown; it includes two generators G A and G B , and two discriminators D A and D B .
[0083] The main task of the generator is to convert the input image from one modality to another so as to perform image conversion between different modalities. The generator learns the feature representation of the input image through a series of convolutions to generate realistic target modality images that retain important anatomical structures to meet the requirements of modality conversion. For example, in this example, the generator G is defined as A For the conversion from T1 mode to T1 enhanced mode, the generator G B Used for conversion from T1 enhancement mode to T1 mode.
[0084] The main function of the discriminator is to evaluate the image generated by the generator and determine whether it is an image generated by the generator or a real image. The discriminator extracts the features of the input image through a series of convolutional layers and downsampling layers, and then maps these features to a scalar value, indicating the degree of authenticity of the input image. The training goal of the discriminator is to maximize the ability to distinguish between real images and generated images. For example, in this example, the discriminator D is defined A Used to identify the real T1 enhanced image, that is, to determine the input discriminator D A Is the image of the generator GA Generated image; discriminator D B Used to identify the real T1 image, that is, to determine the input discriminator D B Is the image of the generator G B The resulting image.
[0085] For ease of understanding, in the subsequent description, the T1 mode is defined as the source mode, that is, I A Represented as T1 image; T1 enhancement mode is defined as the target mode, that is, I B Represented as T1 enhanced image. Based on this, the workflow of 3D CycleGAN is as follows:
[0086] First, the generator G A The input T1 image I A Convert from source modality to target modality, i.e. generate pseudo T1 enhanced image G A (I A ); Then, the discriminator D A For pseudo T1 enhanced image G A (I A ) and the real T1 enhanced image I B The generator then performs a discrimination and calculates the difference between it and the real image. Through this feedback, the generator gradually optimizes its data generation ability to generate more realistic and accurate images. A The generated image is closer to the real image, which will prompt the discriminator D A Improve your ability to distinguish, otherwise you will not be able to accurately distinguish pseudo-generated images from real images.
[0087] The same principle applies to the generator G B The input T1 enhanced image I B Convert from the target modality to the source modality, that is, generate a pseudo T1 image G B (I B ); Then, the discriminator D B For the pseudo T1 image G B (I B ) and the real T1 image I A The generator and the discriminator are designed to continuously compete with each other during the training process to improve performance.
[0088] The one-way modal conversion consists of a single generator and a discriminator, which makes it difficult to capture the complex mapping relationship between modalities, and the generated image quality is poor. CycleGAN introduces a cycle consistency design based on the initial generative adversarial network, requiring the generated image to remain consistent after reverse conversion, thereby balancing the instability of the one-way conversion and improving the quality of the generated image. In other words, the generator G AThe pseudo T1 enhanced image G generated A (I A ) is input to the generator G B In the output, the pseudo T1 image G B (G A (I A )), thus generating a pseudo source modality image from the input pseudo target modality image, ensuring that the generator G A The generated image is reversely transformed and is the same as the original I A The image is as close as possible, that is, G B (G A (I A )) and I A The images are consistent, thus achieving high-quality conversion of cross-modal images and enhancing the mapping capabilities between different modalities.
[0089] Similarly, the generator G B The pseudo T1 image G generated B (I B ) is input to the generator G A In the output, the pseudo T1 enhanced image G A (G B (I B )), so that the pseudo target modality image is generated by the input pseudo source modality image, ensuring that the generator G B The generated image is reversely transformed and is the same as the original I B The image is as close as possible, that is, G A (G B (I B )) and I B Through the above overall process, in the CycleGAN training process of this application, the two generators and the two discriminators compete and game with each other to make the generated images more realistic and close to the target modality.
[0090] Based on this, when the above 3D CycleGAN workflow is applied to the application scenario of this application, the initial cycle generative adversarial network may include a first initial generative network G A , the second initial generation network G B , the first initial discriminant network D A and the second initial discriminant network D B ; Among them, the first initial generation network G A For generating a pseudo T1 enhanced image based on the sample T1 image, or for generating a pseudo T1 enhanced image based on the pseudo T1 image; a second initial generation network G B Used to generate a pseudo T1 image based on a sample T1 enhanced image, or used to generate a pseudo T1 image based on a pseudo T1 enhanced image; a first initial discriminant network D AUsed to determine the first initial generation network G A The authenticity of the generated image, the second initial discriminant network D B Used to determine the second initial generation network G B The authenticity of the generated image.
[0091] That is, when training a 3D recurrent generative adversarial network, the computer device can take the sample T1 image I A Input to the first initial generation network G A In the output sample T1 image I A The corresponding first pseudo T1 enhanced image G A (I A ); and the first pseudo T1 enhanced image G A (I A ) is input to the second initial generation network G B The first pseudo T1 enhanced image G is output A (I A ) corresponds to the first pseudo T1 image G B (G A (I A )); and enhance the sample T1 image I B Input to the second initial generation network G B In the output, the sample T1 enhanced image I B The corresponding second pseudo T1 image G B (I B ); and the second pseudo T1 image G B (I B ) is input to the first initial generation network G A The second pseudo T1 image G is output B (I B ) corresponds to the second pseudo T1 enhanced image G A (G B (I B )).
[0092] Next, the computer device can use the second initial discriminant network D B Determine the sample T1 image I A With the second pseudo T1 image G B (I B ), using the first initial discriminant network D A Determine the sample T1 enhanced image I B With the first pseudo T1 enhanced image G A (I A ) to determine the sample T1 image I A , the first pseudo T1 image G B (G A (IA )) Sample T1 enhanced image I B And the second pseudo T1 enhanced image G A (G B (I B )) between the cycle consistency loss; and based on the first adversarial loss, the second adversarial loss and the cycle consistency loss, the first initial generation network G A , the second initial generation network G B , the first initial discriminant network D A and the second initial discriminant network D B Perform training to obtain a trained cyclic generative adversarial network.
[0093] Among them, the first adversarial loss can be expressed as:
[0094] L adv (G B , D B ) = D B (G B (I B )) 2 + (1-D B (I A )) 2
[0095] The second adversarial loss can be expressed as:
[0096] L adv (G A , D A ) = D A (G A (I A )) 2 + (1-D A (I B )) 2
[0097] The cycle consistency loss can be expressed as:
[0098] L cycle (G A , G B ) = ||G B (G A (I A ))-I A ||1+ ||G A (G B (I B ))-I B ||1
[0099] Then, the overall loss of the 3D cycle generative adversarial network can be expressed as:
[0100] L(G A , D A , G B , D B ) = L adv (G A , D A ) + L adv (G B , D B ) + L cycle (G A , G B )
[0101] During the network training process, if it is in the training generation network stage, the first initial generation network G A The first pseudo T1 enhanced image G is generated A (I A ), the discriminator D should be as A It is misclassified as a real image; therefore, L should be maximized adv (G A , D A ); Similarly, the second initial generation network G B The second pseudo T1 image G is generated B (I B ), the discriminator D should also be made as much as possible B It is misclassified as a real image; therefore, L should be maximized adv (G B , D B ).
[0102] If in the stage of training the discriminant network, the first initial discriminant network D A It should be possible to accurately distinguish whether the input image is real or generated by the second initial generation network G B The pseudo image produced by this method should be minimized. adv (G A ,D A ); Similarly, the second initial discriminant network D B It should be possible to accurately distinguish whether the input image is real or generated by the first initial generation network G A The pseudo image produced by this method should be minimized. adv (G B , D B ).
[0103] Through this training method, the generator network and the discriminator network continuously compete with each other, which promotes the continuous improvement of the performance of both. It should be noted that the adversarial loss can adopt any one of the binary cross entropy loss function (Binary Cross-Entropy, BCE), mean square error function (Mean-Square Error, MSE), etc., and the type of adversarial loss function is not specifically limited in this embodiment.
[0104] In this embodiment, the computer device can also perform a training operation of a three-dimensional recurrent generative adversarial network, by acquiring a sample T1 image and a sample T1 enhanced image, and then inputting the sample T1 image and the sample T1 enhanced image into the initial recurrent generative adversarial network for training, thereby obtaining a trained recurrent generative adversarial network; wherein the trained recurrent generative adversarial network includes a trained preset image generation network. That is, in this embodiment, by acquiring a three-dimensional sample T1 image and a three-dimensional sample T1 enhanced image, and then training the three-dimensional initial recurrent generative adversarial network based on the three-dimensional sample T1 image and the three-dimensional sample T1 enhanced image, thereby obtaining a trained three-dimensional recurrent generative adversarial network; that is, obtaining a trained three-dimensional preset image generation network; using the method in this example, network training can be performed directly based on clinical three-dimensional images, and then image generation and modal conversion can be performed directly using the three-dimensional images collected clinically, thereby improving the learning ability of the three-dimensional geometric features of tissues in three-dimensional space, providing more accurate structural information for generating images, and improving the accuracy of generating images.
[0105] In an exemplary embodiment, the overall loss involved in training the above-mentioned 3D cycle-generated adversarial network may also include a structural consistency loss. Due to the lack of direct constraints between the input image and the synthesized image, CycleGAN cannot guarantee the structural consistency between the synthesized image and the input image. B (G A (I A )) and the input sample T1 image I A Basically the same, satisfying the cycle consistency, but the first pseudo T1 enhanced image G synthesized in the middle A (I A ) shows certain structural differences. Alternatively, the second pseudo T1 enhanced image G generated after the cycle B (G A (I A )) and the input sample T1 enhanced image I B Basically the same, satisfying the cycle consistency, but the second pseudo T1 image G synthesized in the middle B (I B )There are certain structural differences.
[0106] This application introduces a structural consistency constraint based on self-similarity context (SSC) on the basis of CycleGAN. By extracting discriminative descriptors from the input image and the synthesized image respectively and calculating the point-by-point distance between the descriptors, the structural consistency between images of different modalities is measured to ensure that the generated image maintains a good anatomical structure as much as possible.
[0107] Based on this, the first initial generation network G is generated based on the first adversarial loss, the second adversarial loss and the cycle consistency loss. A , the second initial generation network G B , the first initial discriminant network D A and the second initial discriminant network D B Training to obtain a trained cyclic generative adversarial network may include:
[0108] Based on the self-similar context, the sample T1 image I A Extract structural features to obtain a first structural feature image; and extract the first pseudo T1 enhanced image G based on the self-similar context. A (I A ) to extract structural features to obtain a second structural feature image; and based on the self-similar context, enhance the sample T1 image I B Extract structural features to obtain a third structural feature image; and extract the second pseudo T1 image G based on the self-similar context. B (I B ) to extract structural features to obtain a fourth structural feature image; then, determine the structural consistency loss between the first structural feature image, the second structural feature image, the third structural feature image and the fourth structural feature image; and based on the first adversarial loss, the second adversarial loss, the cycle consistency loss and the structural consistency loss, the first initial generation network G A , the second initial generation network G B , the first initial discriminant network D A and the second initial discriminant network D B Perform training to obtain a trained cyclic generative adversarial network.
[0109] Among them, the self-similarity context (SSC) method is used to extract the structure descriptors of the synthetic image and the input image respectively, and the extraction operation of the descriptor is defined as F SSC (), then the structural consistency loss function is defined as follows:
[0110] L struct (G A , G B ) = ||FSSC (G A (I A ))-F SSC (I A )||1+ ||F SSC (G B (I B ))-F SSC (I B )||1
[0111] Based on this, the overall loss of the 3D cycle generation adversarial network can also be expressed as:
[0112] L(G A , D A , G B , D B ) = L adv (G A , D A )+L adv (G B , D B ) +λ1L cycle (G A , G B ) +λ2L struct (G A , G B )
[0113] Among them, λ1 and λ2 are used as hyperparameters to control the weights of each loss function. For example, λ1 can be set to 10 and λ2 can be set to 5. The setting of this hyperparameter is not unique and can be adjusted according to actual needs. The Adam optimizer can also be used in the training process, and the learning rate can be set to 0.0002.
[0114] In addition, SSC is calculated based on the self-similarity of the patch in a manner similar to the Modality Independent Neighborhood Descriptor (MIND), but SSC redefines the neighborhood layout to improve the robustness of image matching. In other words, the purpose of SSC is not to extract the representation of local shapes or geometric bodies, but to find the context around the voxel of interest. Refer to Figure 5, which shows how SSC calculates the image descriptor for each voxel, namely F SSC The definition of () is as follows:
[0115]
[0116] Where I represents the image from which the image structure descriptor is extracted, represents a local or global noise estimate, N represents the neighborhood layout for self-similarity calculation, x represents the central patch, and y represents other patches within the N-neighborhood layout. The Sum of Squared Differences (SSD) is used to calculate the distance between two patches.
[0117] For example, referring to FIG5 , six neighborhood blocks are used in this example, and the SSD between two blocks is calculated. Therefore, the self-similar context descriptor of each block is composed of the SSD between 12 pairs of neighborhood blocks. This method can be used to extract the SSC of the entire image as the image structure descriptor. In addition, the structural consistency loss function L struct () can use the L1 norm to calculate the structural consistency between the feature map of the synthetic image extracted by SSC and the feature map of the input image. Of course, the structural consistency loss function L struct () can also be expressed by other types of loss functions, which is not specifically limited in the embodiments of the present application.
[0118] In an exemplary embodiment, referring to FIG6, a schematic diagram of a network structure of an optional generation network is shown; the network structure of the generation network shown in FIG6 can be applied to the first initial generation network or the second initial generation network. In the generation network, a plurality of cascade-connected three-dimensional hole convolution modules, a plurality of cascade-connected residual modules, and a plurality of cascade-connected transposed convolution modules and output modules can be included.
[0119] As shown in reference figure 6, multiple cascade-connected three-dimensional dilated convolution modules may include a first three-dimensional dilated convolution module and two second three-dimensional dilated convolution modules; wherein, the first three-dimensional dilated convolution module may include a three-dimensional dilated convolution (Dilated Conv), instance regularization (IN) and an activation function (such as ReLU); the second three-dimensional dilated convolution module may include a three-dimensional dilated convolution with stride 2, instance regularization (IN) and an activation function (such as ReLU).
[0120] As shown in Figure 6, multiple cascade-connected residual modules may include six residual modules (Resnet block); multiple cascade-connected transposed convolution modules may include two transposed convolution modules, each of which includes a transposed convolution (TransConv with stride 2), instance regularization (IN) and an activation function (ReLU); the output module may include a three-dimensional dilated convolution (Dilated Conv) and an activation function (such as Tanh).
[0121] In this example, a three-dimensional dilated convolution is used to replace the traditional three-dimensional convolution. Dilated convolution is a convolution operation in a convolutional neural network. It introduces the concept of dilation or expansion rate based on ordinary convolution, and expands the receptive field of the convolution kernel by inserting holes between the convolution kernel elements. Compared with ordinary convolution, dilated convolution can capture a wider range of contextual information without increasing parameters, which helps to handle tasks with long-distance dependencies.
[0122] Medical images typically have complex three-dimensional structures, and by using 3D hole convolutions, CycleGAN's generator is better able to capture long-range dependencies in three-dimensional space because it allows the convolution kernel to expand in all three dimensions, effectively increasing the receptive field. In addition, the features of medical images may be distributed in three-dimensional space, not just on a single slice or plane. 3D hole convolutions help learn more global and three-dimensional feature representations, improving the model's ability to understand complex structures in medical images. By introducing holes in three-dimensional convolutions, the receptive field can be expanded without adding too many parameters, which is an advantage for limited data and computing resources in medical image processing, and models can be trained and deployed more efficiently. Exemplarily, in this example, the expansion rate of the 3D hole convolution can be set to 2 to accommodate 3D medical image data.
[0123] Based on the generated network structure shown in FIG. 6 , the step 204 may include:
[0124] The T1 image is input into multiple cascade-connected three-dimensional hole convolution modules for convolution processing to obtain a convolution TI image; then, the convolution TI image is input into multiple cascade-connected residual modules for residual convolution processing to obtain a residual TI image; then, the residual TI image is input into multiple cascade-connected transposed convolution modules for transposed convolution processing to obtain a transposed T1 image; finally, the transposed T1 image is input into the output module to obtain a T1 enhanced image.
[0125] By adopting the three-dimensional generation network structure, the input three-dimensional T1 image is processed to obtain a three-dimensional T1 enhanced image after modality conversion, thereby achieving the technical effect of generating a corresponding T1 enhanced image based on the T1 image obtained by actual scanning, and improving the efficiency of magnetic resonance imaging.
[0126] In addition, it should be noted that the generated network structure shown in FIG. 6 above adopts a structure based on an encoder and a decoder, and 6 residual modules are used in the middle. In practical applications, the 6 residual modules are not fixed. When the input image is relatively large, the number of residual modules can also be increased, such as replacing it with 9 residual modules, to achieve better performance. In addition, the network framework of the above-mentioned generated network can also be replaced with the network framework of Unet, and the depth of Unet, that is, the number of downsampling-upsampling times, can also be adjusted according to actual needs. In this embodiment, the network structure of the generated network and the number of each type of modules used therein are not specifically limited.
[0127] In an exemplary embodiment, referring to FIG7, a schematic diagram of a network structure of an optional discriminant network is shown; the network structure of the discriminant network shown in FIG7 can be applied to the first initial discriminant network or the second initial discriminant network. In the discriminant network, multiple three-dimensional hole convolution modules, multiple fully connected layer modules and activation functions can be included.
[0128] As shown in reference figure 7, in this example, the multiple three-dimensional dilated convolution modules may include a third three-dimensional dilated convolution module and two fourth three-dimensional dilated convolution modules; wherein, the third three-dimensional dilated convolution module may include a three-dimensional dilated convolution with a convolution step size of 2 (Dilated Conv with stride 2) and an activation function (such as LeakyReLU); the fourth three-dimensional dilated convolution module may include a three-dimensional dilated convolution with a convolution step size of 2 (Dilated Conv with stride 2), instance regularization (IN) and an activation function (such as LeakyReLU).
[0129] As shown in reference Figure 7, the multiple fully connected layer modules may include two fully connected layer modules, one of which includes a three-dimensional dilated convolution (Dilated Conv), instance regularization (IN) and an activation function (such as LeakyReLU); and the other fully connected layer module includes a three-dimensional dilated convolution (Dilated Conv) and a final activation function (such as Sigmoid).
[0130] The generating network structure shown in FIG6 and the discriminating network structure shown in FIG7 are used to form the network structure of the three-dimensional cyclic generative adversarial network in this application, and the adversarial loss, the cycle consistency loss and the structural consistency loss are used as the overall loss function. According to the change of the overall loss function, the generating network and the discriminating network are alternately trained until the overall loss function converges or reaches the preset number of iterations, and the training is terminated. From then on, the optimal three-dimensional CycleGAN model can be obtained, the optimal three-dimensional CycleGAN model is saved, and the result of the optimal stage is used as the output to obtain the final generated T1 enhanced image.
[0131] During the use stage, the T1 image of the target object collected by the magnetic resonance equipment can be obtained, and the T1 image can be input into the pre-trained three-dimensional CycleGAN model to obtain the corresponding T1 enhanced image while maintaining good anatomical features, helping doctors make more accurate diagnoses.
[0132] In an exemplary embodiment, for the above-mentioned training process and usage process, the acquired T1 images, as well as the sample T1 images and the sample T1 enhanced images, can be preprocessed before being input into the network; then, the preprocessed images are input into the network for processing.
[0133] Taking the training process as an example, at least one preprocessing operation can be performed on the acquired sample T1 image and sample T1 enhanced image to simplify the data to the greatest extent, which is conducive to improving the performance and stability of the network. Referring to FIG8 , a schematic diagram of a preprocessing process is shown.
[0134] Usually, the magnetic resonance MRI images collected by hospitals are in DICOM data format. Therefore, for MRI images in DICOM data format, format conversion is first required to convert the DICOM format image data into a more commonly used image format, such as NIfTI, for subsequent processing and analysis. Then, bias field correction can eliminate the non-uniformity of MRI images caused by factors such as magnetic resonance equipment and scanning parameters, ensuring the accuracy and consistency of subsequent steps.
[0135] Next, if the obtained sample T1 image and sample T1 enhanced image have different resolutions, the resolutions of different modal data can be adjusted to a unified standard by resampling, and then the image can be cropped to a consistent size. It should be noted that cropping should retain the main structure of the region of interest and remove unnecessary background and external structures, thereby reducing the computational burden of processing. Furthermore, the image pixel values of the resized sample T1 image and sample T1 enhanced image are normalized so that they fall within a specific range, usually [0, 1] or [-1, 1]. Finally, it is possible to consider introducing data augmentation techniques such as random rotation, translation, and flipping during the training process to increase the diversity of sample data, that is, to increase the amount of training data, thereby improving the generalization ability of the network.
[0136] Exemplarily, in an embodiment of the present application, the preprocessed sample T1 image and the sample T1 enhanced image can be isotropic with a resolution of 1 millimeter (mm) and a size of 128×128×32 for subsequent network training. It should be noted that the size of the preprocessed image is not fixed and can be adjusted according to actual data requirements. After completing the data preprocessing, the preprocessed sample T1 image and the sample T1 enhanced image can be used as a training data set and input into the initial cyclic adversarial generation network, i.e., the three-dimensional CycleGAN, to train the cyclic adversarial generation network.
[0137] Exemplarily, the above preprocessing operation may also be applied to an actual image generation scenario. As shown in FIG9 , the above method may further include:
[0138] Step 202: Acquire a T1 image obtained by imaging the target object using a magnetic resonance device.
[0139] Step 203: preprocess the T1 image to obtain a preprocessed T1 image.
[0140] The preprocessing may include at least one of format conversion, bias field correction, resampling, resizing, normalization, and data enhancement.
[0141] Accordingly, the above step 204 may include:
[0142] Step 204 ′: input the preprocessed T1 image into a preset image generation network to obtain a T1 enhanced image of the target object.
[0143] That is to say, in this example, by performing relevant preprocessing operations on the T1 image of the target object acquired by the magnetic resonance device, the preprocessed T1 image meets the input image requirements of the preset image generation network, and then the preprocessed T1 image is input into the preset image generation network, so that the preset image generation network can process the input preprocessed T1 image and finally output the T1 enhanced image of the target object. By adopting this method, the effect of image modality conversion can be improved, thereby improving the generation effect of the target modality image after modality conversion.
[0144] In an exemplary embodiment, a complete implementation step of a medical image generation method is provided, including:
[0145] Step 1: Acquire a sample T1 image and a sample T1 enhanced image, and preprocess the sample T1 image and the sample T1 enhanced image to obtain a preprocessed sample T1 image and a preprocessed sample T1 enhanced image.
[0146] Step 2: The preprocessed sample T1 image and the preprocessed sample T1 enhanced image are used as training data and input into the initial cyclic generative adversarial network for training to obtain a trained cyclic generative adversarial network.
[0147] The initial recurrent generative adversarial network is a three-dimensional network, and the trained recurrent generative adversarial network includes a trained preset image generation network, which is used to convert the three-dimensional T1 image into a three-dimensional T1 enhanced image.
[0148] Step 3: Acquire a T1 image obtained by imaging the target object with a magnetic resonance device, and preprocess the T1 image to obtain a preprocessed T1 image.
[0149] Step 4: Input the preprocessed T1 image into a preset image generation network to obtain a T1 enhanced image of the target object.
[0150] The method proposed in this application is of great significance to the field of medical imaging. The improvements and corresponding advantages involved in this method include:
[0151] 1. 3D data processing: The anatomical structure of medical tissues presents complex stereoscopic geometric features in three-dimensional space, and traditional two-dimensional images cannot fully capture this information. This application introduces specialized processing for three-dimensional volume data, which enables the network to model and understand the morphology and changes of medical tissues in three-dimensional space. Compared with simple two-dimensional processing, this technical feature can provide more accurate structural information, thereby more accurately assisting diagnosis in clinical medicine.
[0152] 2. 3D CycleGAN architecture: Using a 3D CycleGAN network for cross-modal image generation helps solve the problem of modal conversion between T1 images and T1 enhanced images of medical tissues. CycleGAN's cycle consistency loss can ensure that the generated images can maintain consistency during the bidirectional conversion process, which is crucial for the application of medical imaging. The CycleGAN architecture maintains good anatomical features while generating images, thereby improving the quality and interpretability of image generation. In order to adapt to 3D medical image data, this application proposes a three-dimensional network framework and modifies the corresponding loss function, and introduces 3D hole convolution to adapt to larger and more computationally complex 3D images.
[0153] 3. No paired training data required: In the field of medical imaging, it is challenging to obtain a large amount of paired data from the same patient. This application uses the CycleGAN method to allow the network to automatically learn the correspondence between T1 images and T1 enhanced images without the specific need for paired data. This is very beneficial for data acquisition and cost savings in practical applications.
[0154] 4. Structural consistency constraint based on self-similarity context (SSC): Due to the lack of direct constraints between the input image and the synthesized image, CycleGAN cannot guarantee the structural consistency between the synthesized image and the input image. It is possible that the T1 image generated after the cycle is basically consistent with the input T1 image, satisfying the cycle consistency, but there are certain structural differences in the intermediate synthesized T1 enhanced image. This application introduces structural consistency constraints based on CycleGAN, and measures structural consistency by calculating the modality-independent structural features between the input image and the synthesized image to ensure that the generated image maintains a good anatomical structure as much as possible.
[0155] 5. Processing complex modality conversion of medical tissue MRI: The modality conversion of T1 images and T1 enhanced images of medical tissue involves rich structural information and the influence of contrast agents. The CycleGAN method designed in this application can handle this complex modality conversion, thereby achieving high-quality image generation between different modalities. The generated T1 enhanced images can provide complementary information, allowing doctors to more clearly identify the distribution of tissues and possible abnormal lesions, and make more accurate diagnoses and clinical decisions.
[0156] When the above method is applied to carotid artery imaging, a cross-modal CycleGAN generative network of 3D carotid T1 images and T1 enhanced images is used. Through technical features such as 3D data processing, CycleGAN architecture, and structural consistency constraints, the cross-modal image generation problem in carotid MR is effectively solved, providing high-quality images with interpretability and medical usability, which is expected to provide assistance to the field of medical imaging diagnosis and research.
[0157] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0158] Based on the same inventive concept, the embodiment of the present application also provides a medical image generation device for implementing the medical image generation method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more medical image generation device embodiments provided below can refer to the limitations of the medical image generation method above, and will not be repeated here.
[0159] In an exemplary embodiment, as shown in FIG10 , a medical image generation device is provided, including: an acquisition module 1002 and a generation module 1004, wherein:
[0160] The acquisition module 1002 is used to acquire a T1 image obtained by imaging the target object using a magnetic resonance device.
[0161] The generation module 1004 is used to input the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object; wherein the preset image generation network is trained based on an initial cyclic generative adversarial network, and the initial cyclic generative adversarial network is a three-dimensional network.
[0162] In one embodiment, the device further includes: a training module; the training module is used to train the initial cyclic generative adversarial network to obtain a preset image generation network; wherein the training module includes:
[0163] An acquisition submodule, used for acquiring a sample T1 image and a sample T1 enhanced image;
[0164] The training submodule is used to input the sample T1 image and the sample T1 enhanced image into the initial recurrent generative adversarial network for training to obtain a trained recurrent generative adversarial network; wherein the trained recurrent generative adversarial network includes a trained preset image generation network.
[0165] In one embodiment, the initial cyclic generative adversarial network includes a first initial generative network, a second initial generative network, a first initial discriminant network, and a second initial discriminant network; the training submodule includes:
[0166] A first generating unit is configured to input the sample T1 image into a first initial generating network, and output a first pseudo T1 enhanced image corresponding to the sample T1 image; and input the first pseudo T1 enhanced image into a second initial generating network, and output a first pseudo T1 image corresponding to the first pseudo T1 enhanced image;
[0167] A second generating unit is used to input the sample T1 enhanced image into the second initial generating network, and output a second pseudo T1 image corresponding to the sample T1 enhanced image; and input the second pseudo T1 image into the first initial generating network, and output a second pseudo T1 enhanced image corresponding to the second pseudo T1 image;
[0168] a determining unit, configured to determine a first adversarial loss between the sample T1 image and the second pseudo T1 image, determine a second adversarial loss between the sample T1 enhanced image and the first pseudo T1 enhanced image, and determine a cycle consistency loss between the sample T1 image, the first pseudo T1 image, the sample T1 enhanced image, and the second pseudo T1 enhanced image;
[0169] The training unit is used to train the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network based on the first adversarial loss, the second adversarial loss and the cycle consistency loss to obtain a trained cycle generative adversarial network.
[0170] In one embodiment, the training unit includes:
[0171] A first feature extraction subunit is used to extract structural features from the sample T1 image based on the self-similar context to obtain a first structural feature image; and to extract structural features from the first pseudo T1 enhanced image based on the self-similar context to obtain a second structural feature image;
[0172] The second feature extraction subunit is used to extract structural features from the sample T1 enhanced image based on the self-similar context to obtain a third structural feature image; and to extract structural features from the second pseudo T1 image based on the self-similar context to obtain a fourth structural feature image;
[0173] A determination subunit, used to determine the structural consistency loss between the first structural feature image, the second structural feature image, the third structural feature image, and the fourth structural feature image;
[0174] The training subunit is used to train the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network based on the first adversarial loss, the second adversarial loss, the cycle consistency loss and the structural consistency loss to obtain a trained cycle generative adversarial network.
[0175] In one of the embodiments, the network structure of the first initial discriminant network and / or the second initial discriminant network includes: a plurality of three-dimensional hole convolution modules, a plurality of fully connected layer modules and an activation function.
[0176] In one embodiment, the preset image generation network includes a plurality of cascade-connected three-dimensional hole convolution modules, a plurality of cascade-connected residual modules, and a plurality of cascade-connected transposed convolution modules and output modules, and the generation module 1004 includes:
[0177] A convolution submodule is used to input the T1 image into multiple cascade-connected three-dimensional hole convolution modules for convolution processing to obtain a convolution TI image;
[0178] A residual submodule, used for inputting the convolution TI image into a plurality of cascade-connected residual modules for residual convolution processing to obtain a residual TI image;
[0179] A transposition submodule, used for inputting the residual TI image into a plurality of cascade-connected transposition convolution modules for transposition convolution processing to obtain a transposed T1 image;
[0180] The output submodule is used to input the transposed T1 image into the output module to obtain a T1 enhanced image.
[0181] In one embodiment, the device further comprises:
[0182] A preprocessing module, used to preprocess the T1 image to obtain a preprocessed T1 image; wherein the preprocessing includes at least one of format conversion, bias field correction, resampling, size adjustment, normalization, and data enhancement;
[0183] Accordingly, the generation module 1004 is used to input the preprocessed T1 image into a preset image generation network to obtain a T1 enhanced image of the target object.
[0184] Each module in the above-mentioned medical image generation device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0185] In an exemplary embodiment, a computer device is provided, which may be a magnetic resonance device, or a terminal or a server, and its internal structure diagram may be shown in FIG11. The computer device includes a processor, a memory, an input / output interface, and a communication interface. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a medical image generation method is implemented.
[0186] In the case where the computer device is a terminal, the computer device may further include a display unit and an input device (not shown in FIG. 11 ); wherein the display unit is used to form a visually visible picture, and may be a display screen, a projection device, or a virtual reality imaging device. The display screen may be a liquid crystal display screen or an electronic ink display screen, and the T1 enhanced image of the target object may be displayed through the display unit. In addition, the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0187] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0188] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the medical image generation method in any of the above embodiments are implemented.
[0189] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the medical image generation method in any of the above embodiments are implemented.
[0190] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the medical image generation method in any of the above embodiments when executed by a processor.
[0191] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0192] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0193] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0194] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A medical image generation method, characterized in that: The method comprises: Acquire a T1 image obtained by imaging the target object with a magnetic resonance device; Inputting the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object; wherein the preset image generation network is trained based on an initial recurrent generative adversarial network, and the initial recurrent generative adversarial network is a three-dimensional network; The preset image generation network includes a plurality of cascade-connected three-dimensional hole convolution modules, a plurality of cascade-connected residual modules, and a plurality of cascade-connected transposed convolution modules and output modules; wherein, The multiple cascade-connected three-dimensional atrous convolution modules include a first three-dimensional atrous convolution module and two second three-dimensional atrous convolution modules, the first three-dimensional atrous convolution module includes a three-dimensional atrous convolution, an instance regularization, and an activation function, and the second three-dimensional atrous convolution module includes a three-dimensional atrous convolution with a convolution step size of 2, an instance regularization, and an activation function; The transposed convolution module includes transposed convolution, instance regularization and activation function; The output module includes a three-dimensional hole convolution and an activation function.
2. The method according to claim 1, characterized in that The training method of the preset image generation network includes: Acquire a sample T1 image and a sample T1 enhanced image; The sample T1 image and the sample T1 enhanced image are input into the initial cyclic generative adversarial network for training to obtain a trained cyclic generative adversarial network; wherein the trained cyclic generative adversarial network includes the trained preset image generation network.
3. The method according to claim 2, characterized in that The initial cyclic generative adversarial network includes a first initial generative network, a second initial generative network, a first initial discriminant network, and a second initial discriminant network; the sample T1 image and the sample T1 enhanced image are input into the initial cyclic generative adversarial network for training to obtain a trained cyclic generative adversarial network, including: Inputting the sample T1 image into the first initial generation network, and outputting a first pseudo T1 enhanced image corresponding to the sample T1 image; and inputting the first pseudo T1 enhanced image into the second initial generation network, and outputting a first pseudo T1 image corresponding to the first pseudo T1 enhanced image; Inputting the sample T1 enhanced image into the second initial generation network, and outputting a second pseudo T1 image corresponding to the sample T1 enhanced image; and inputting the second pseudo T1 image into the first initial generation network, and outputting a second pseudo T1 enhanced image corresponding to the second pseudo T1 image; Determine a first adversarial loss between the sample T1 image and the second pseudo T1 image, determine a second adversarial loss between the sample T1 enhanced image and the first pseudo T1 enhanced image, and determine a cycle consistency loss between the sample T1 image, the first pseudo T1 image, the sample T1 enhanced image, and the second pseudo T1 enhanced image; Based on the first adversarial loss, the second adversarial loss and the cycle consistency loss, the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network are trained to obtain the trained cycle generative adversarial network.
4. The method according to claim 3, characterized in that The first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network are trained based on the first adversarial loss, the second adversarial loss and the cycle consistency loss to obtain the trained cycle generative adversarial network, including: Extracting structural features from the sample T1 image based on a self-similar context to obtain a first structural feature image; and extracting structural features from the first pseudo T1 enhanced image based on a self-similar context to obtain a second structural feature image; Extracting structural features from the sample T1 enhanced image based on the self-similar context to obtain a third structural feature image; and extracting structural features from the second pseudo T1 image based on the self-similar context to obtain a fourth structural feature image; Determining a structural consistency loss among the first structural feature image, the second structural feature image, the third structural feature image, and the fourth structural feature image; Based on the first adversarial loss, the second adversarial loss, the cycle consistency loss and the structural consistency loss, the first initial generative network, the second initial generative network, the first initial discriminant network and the second initial discriminant network are trained to obtain the trained cycle generative adversarial network.
5. The method according to claim 3 or 4, characterized in that: The network structure of the first initial discriminant network and / or the second initial discriminant network includes: a plurality of three-dimensional hole convolution modules, a plurality of fully connected layer modules and an activation function.
6. The method according to claim 1, characterized in that The step of inputting the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object includes: Inputting the T1 image into the multiple cascade-connected three-dimensional hole convolution modules for convolution processing to obtain a convolution TI image; Inputting the convolved TI image into the plurality of cascade-connected residual modules for residual convolution processing to obtain a residual TI image; Inputting the residual TI image into the plurality of cascade-connected transposed convolution modules for transposed convolution processing to obtain a transposed T1 image; The transposed T1 image is input into the output module to obtain the T1 enhanced image.
7. The method according to claim 1, characterized in that The method further comprises: Preprocessing the T1 image to obtain a preprocessed T1 image; wherein the preprocessing includes at least one of format conversion, bias field correction, resampling, size adjustment, normalization, and data enhancement; Accordingly, the step of inputting the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object includes: The preprocessed T1 image is input into a preset image generation network to obtain a T1 enhanced image of the target object.
8. A medical image generating device, characterized in that: The device comprises: An acquisition module, used to acquire a T1 image obtained by imaging the target object with a magnetic resonance device; A generation module, used for inputting the T1 image into a preset image generation network to obtain a T1 enhanced image of the target object; wherein the preset image generation network is obtained by training based on an initial recurrent generative adversarial network, and the initial recurrent generative adversarial network is a three-dimensional network; The preset image generation network includes a plurality of cascade-connected three-dimensional hole convolution modules, a plurality of cascade-connected residual modules, and a plurality of cascade-connected transposed convolution modules and output modules; wherein, The multiple cascade-connected three-dimensional atrous convolution modules include a first three-dimensional atrous convolution module and two second three-dimensional atrous convolution modules, the first three-dimensional atrous convolution module includes a three-dimensional atrous convolution, an instance regularization, and an activation function, and the second three-dimensional atrous convolution module includes a three-dimensional atrous convolution with a convolution step size of 2, an instance regularization, and an activation function; The transposed convolution module includes transposed convolution, instance regularization and activation function; The output module includes a three-dimensional hole convolution and an activation function.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
