Method for obtaining CTMRI fusion data from limited low-dimensional X-ray image

Generating CT&MRI fusion images from X-ray images through 3DSP-GAN and SC-CycleGan networks solves the problem that X-ray devices cannot provide stereoscopic anatomical information and improves the diagnostic efficiency and accuracy of primary medical units.

CN118657670APending Publication Date: 2024-09-17NANCHANG HANGKONG UNIVERSITY +1

Patent Information

Application Number
CN202410840975.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the prior art, the two-dimensional planar images provided by X-ray equipment cannot provide three-dimensional anatomical information and it is difficult to locate the lesion location. Especially when primary medical units fail to introduce CT and MRI equipment, the clinical diagnosis efficiency is low.

Method used

CT images are generated from X-ray images through 3DSP-GAN network, and CT&MRI fusion images are obtained from CT images using SC-CycleGan network, providing more stereoscopic detailed anatomical information, combining mathematical simulation algorithms and deep learning technology, training generators and discriminators To achieve image conversion and fusion.

Benefits of technology

It provides grassroots medical units with lower cost and higher efficiency to obtain human stereoscopic anatomical information, improving the diagnostic efficiency of difficult and complicated diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657670A
    Figure CN118657670A
Patent Text Reader

Abstract

The invention discloses a method for obtaining a CTamp from a limited quantity of low-dimensional X-ray images; the MRI data fusion method comprises the following steps that a corresponding simulated X-ray image is obtained from a CT image through a mathematical simulation algorithm; defining a 3DGAN network framework of the biplane X-ray reconstruction lung CT; the simulated X-ray image data is used as model input, the corresponding CT image data is used as a model label, and 3DSP-GAN is trained; the method comprises the following steps: defining a framework of a selective conversion network SC-CyclGan based on the CyclGan; the preprocessed data is input into an SC-CyclGan network for training; a corresponding CT is obtained from the simulated X-ray image through the trained 3DSP-GAN, and a corresponding CTamp is obtained from the CT through the trained SC-CyclGan; performing MRI fusion on the images; according to the method, CTamp is obtained from limited low-dimensional X-ray images; the MRI fusion data can provide more three-dimensional anatomical information for basic medical units with incomplete medical equipment through the obtained X-ray image, and an implementation mode with lower cost and higher efficiency is provided for the basic medical units to obtain the human body three-dimensional anatomical information for clinical diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision and relates to a method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images. Background Art

[0002] In clinical diagnosis, X-ray equipment is widely used due to its fast imaging and low cost. However, X-rays provide two-dimensional images and cannot provide three-dimensional anatomical information. It is difficult to locate the lesion and needs to be combined with other medical imaging in clinical diagnosis.

[0003] At present, due to various factors, primary medical units in some areas have not been able to introduce imaging equipment such as CT and MRI that can provide more three-dimensional and detailed information on human anatomical structure and tissue, and clinical medical diagnosis relies more on the clinical experience of doctors; if the corresponding CT&MRI images can be obtained from X-ray images for joint diagnosis, the diagnostic efficiency of certain difficult and complicated diseases can be greatly improved. The present invention can obtain a CT image corresponding to an X-ray image through a 3DSP-GAN network, and can obtain a CT&MRI fusion image from a CT image through an SC-CycleGan network. It can provide more three-dimensional and detailed anatomical information to primary medical units with incomplete medical equipment through the obtained X-ray images, and provide a lower cost and more efficient implementation method for primary medical units to obtain three-dimensional anatomical information of the human body for clinical diagnosis. Summary of the invention

[0004] The object of the present invention is to provide a method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images, the method comprising the following steps:

[0006] (1) Obtain the corresponding simulated X-ray image (DDR image) from the CT image through a mathematical simulation algorithm;

[0007] (2) Define the generator, discriminator and loss function of 3DSP-GAN respectively;

[0008] (3) Using the preprocessed simulated X-ray image data as the input of the 3DSP-GAN model and the corresponding CT image data as the 3DSP-GAN model label, the 3DSP-GAN is trained;

[0009] Among them, the training details of 3DSP-GAN are as follows: the loss functions of 3DSP-GAN include adversarial loss and reconstruction loss;

[0010] The adversarial loss is shown in formula (1):

[0011]

[0012] Among them, G is the generator, is the discriminator, X represents the simulated X-ray image space, Y represents the corresponding CT image space, x represents the sample taken from the simulated X-ray image space, y represents the sample taken from the CT image space, It refers to randomly sampling a data sample from the CT image space. It refers to randomly sampling a data sample from the simulated X-ray image space. represents the Y space image generated by the generator G, Representation Discriminator The probability of judging whether y is a sample taken from the CT image space Y, and is the discriminator Determine the probability of whether the image generated by the generator G is a sample taken from the CT image space Y, It means gradually improving the capabilities of the generator and the discriminator by minimizing the probability that the fake data generated by the generator is recognized as fake by the discriminator and maximizing the probability that the discriminator correctly distinguishes between real data and fake data;

[0013] The reconstruction loss (2) is shown as:

[0014]

[0015] in, Represents a computationally synthesized CT image The 1-norm of the real image CT image y is used to measure the difference between the synthetic image and the real image;

[0016] The total loss of 3DSP-GAN is shown in formula (3):

[0017]

[0018] in is 5;

[0019] (4) Define the generator, discriminator, loss function and image selective fusion module of SC-CycleGan respectively;

[0020] (5) Input the preprocessed data into the SC-CycleGan network for training;

[0021] The training details of SC-CycleGan are as follows: The loss function of SC-CycleGan includes modal conversion loss and image selective fusion loss. The modal conversion loss is composed of adversarial loss and cycle consistency loss. The image selective fusion loss is composed of structural consistency loss, texture loss and intensity loss. The adversarial loss is shown in formula (4) (5):

[0022]

[0023]

[0024] Among them, G is the first generator, F is the second generator, represents the second discriminator for discriminating Y-space samples, represents the first discriminator for identifying X space samples, X represents the CT image space, Y represents the MRI image space, x represents the sample taken by the first generator G from the CT image space X, y represents the sample taken from the MRI image space Y, It refers to randomly sampling a data sample from the CT image space. It refers to randomly sampling a data sample in the MRI image space. represents the Y space image generated by the first generator G, and F(y) represents the X space image generated by the second generator F. Represents the second discriminator Determine whether y is the probability of obtaining a sample in the MRI image space Y, Denotes the first discriminator Determine whether x is the probability of obtaining a sample in the CT image space X, and is the second discriminator Determine the probability of whether the image generated by the first generator G is a sample obtained in the MRI image space Y, is the first discriminator Determine the probability of whether the image generated by the second generator F is a sample obtained in the CT image space X;

[0025] The cycle consistency loss is shown in formula (6):

[0026]

[0027] Among them, F is the second generator, refers to the samples in the CT image space, It means that the second generator F synthesizes the MRI image from the first generator G through the CT image x Reconstructed CT images, It means that the first generator G synthesizes the CT image from the second generator F through the MRI image y Reconstructed MRI images;

[0028] In addition, focal frequency loss and auxiliary classification loss are introduced in the traditional cycle consistency loss. The focal frequency loss function guides the model to pay more attention to the high-frequency part of the synthetic image by calculating the weighted average of the frequency domain distance between the real image and the reconstructed image; the auxiliary classification loss ensures that the generated image is semantically consistent with the target domain and improves the model's category distinction ability. The introduction of focal frequency loss and auxiliary classification loss can effectively improve the model's training efficiency and the quality of synthetic images through additional constraints.

[0029] The focal frequency loss is specifically shown in formula (7):

[0030]

[0031] Among them, M and N represent the length and width of a given image. is the spectrum coordinate of the real image x The spatial frequency value at is the spectral coordinate of the reconstructed image x The spatial frequency value at can be expressed as formula (8):

[0032]

[0033] in Represents the spatial coordinates of image pixels; is the pixel value; and are Euler number and imaginary unit respectively;

[0034] Indicated in The weight of the spatial frequency at can be expressed as formula (9):

[0035]

[0036] in is the scaling factor of the spectral weight matrix used for flexibility, which is set to 1 by default;

[0037] The auxiliary classification loss is specifically shown in formula (10):

[0038]

[0039] in, Representation Discriminator Determine whether y is a sample taken in the Y space, represents the label of y, By predicting the probability With the true label By comparing, the difference between the prediction and the true label can be calculated. =1, it means that the sample belongs to the positive class, and the calculation formula is: ,when =0, it means that the sample belongs to the negative class, and the calculation formula is: ; The total loss of modal conversion of SC-CycleGan is specifically shown in formula (11):

[0040]

[0041] In formula (11), λ, Respectively, the cycle consistency loss weight and the perceptual loss weight are 10 and 5;

[0042] The image selective fusion loss consists of structural consistency loss, texture loss and intensity loss; the structural consistency loss is shown in formula (12):

[0043]

[0044] in, , and They represent CT images, MRI images, and CT&MRI fusion images respectively; Indicates the structural similarity operation between the CT image and the fused image. Indicates the structural similarity operation between the CT image and the fused image. , is 0.5;

[0045] The texture loss is shown in formula (13):

[0046]

[0047] in, represents the Sobel gradient operator, , and Respectively represent the texture information of CT images, MRI images, and CT&MRI fusion images;

[0048] The strength loss is shown in formula (14):

[0049]

[0050] in, It is an element aggregation operation, which is specifically manifested in using the K-means clustering algorithm to extract the bone information of the CT image, and then integrating the extracted bone information with the MRI image;

[0051] The image selective fusion loss of SC-CycleGan is specifically shown in formula (15):

[0052]

[0053] in , , They are 50, 100, and 20 respectively;

[0054] (6) Obtain CT & MRI fusion data from simulated X-ray images by training the network;

[0055] Preferably, the specific process of obtaining the simulated X-ray image in step (1) is as follows: a virtual X-ray source is defined, and X-rays are simulated to pass through the CT volume data from the ray source. For each ray, the CT values ​​obtained by accumulating all CT slices on the path through which the ray passes are accumulated, and the accumulated values ​​are mapped to pixel grayscale values, thereby determining the brightness of the corresponding point on the DRR image to obtain the simulated X-ray image.

[0056] Preferably, the specific structures of the generator and discriminator of 3DSP-GAN in step (2) are:

[0057] The generator consists of three parts: encoder, decoder and skip connection. Encoder: extracts high-level features of X-rays through a series of Res-SP downsampling modules. The core structure of the Res-SP module is a 3D soft pooling operation, which can not only effectively reduce the computational memory overhead, but also improve the feature utilization rate;

[0058] Decoder: Use stacked upsample interpolation operations to restore the structural details of the CT image. The network structure of the decoder is symmetrical with that of the encoder and is also composed of five upsampling modules.

[0059] Skip connection: Skip connection uses the concat operation to combine the shallow semantic information of the encoder with the deep semantic information sampled by the decoder, and then passes through the convolution layer to enhance the nonlinear fitting ability of the model.

[0060] The discriminator consists of three "Conv3D-BN-ReLU" modules, which are used to distinguish true and false CTs, so as to further optimize the generator to generate more realistic CTs. The CT generated by the generator and the real CT are used as input data of the discriminator, which determines the authenticity of the input data and feeds it back to the generator.

[0061] Preferably, the 3DSP-GAN training details in step (3) are: the model training cycle is 100, and the batch size is 1. During training, the Adam optimizer is used to train the network, and the initial learning rate is , the weight decays to , momentum parameter After 20 epochs, a linear learning rate decay strategy is used with a linear decay coefficient of 0.1.

[0062] The specific structures of the generator, discriminator, loss function and fusion module of SC-CycleGan in the preferred step (4) are:

[0063] The generator consists of an encoder, a converter, and a decoder. Encoder: The input layer has a convolution kernel size of 7, followed by two downsampling layers with a convolution kernel size of 3 and a stride of 2; Converter: After recombining the feature map of the input image, the features of the input image in the source domain are converted into feature vectors in the target domain. The converter uses a 6-layer Resnet structure, each of which is composed of a neural network layer consisting of two convolutional layers. Spatial attention is introduced in each Resnet layer to improve the model's receptive field and sensitivity to image detail features;

[0064] Decoder: The decoder uses two deconvolution layers to restore features from the feature vector and finally converts these features to obtain the target image.

[0065] The discriminator consists of three "Conv2D-BN-ReLU" modules, which are used to distinguish between real and fake images to further optimize the generator to generate more realistic images. The images generated by the generator and the real images are used as input data for the discriminator, which determines the authenticity of the input data and feeds it back to the generator.

[0066] The fusion module consists of a decoder. The decoder uses two "Upsample-Conv2D-ReLU" structures to restore features from feature vectors, and finally converts these features into an image, CT & MRI fusion image.

[0067] Preferably, the SC-CycleGan training details in step (5) are as follows: the model training cycle is 200 and the batch size is 1. During training, the Adam optimizer is used to train the network, and the initial learning rate is , momentum parameter After 150 epochs, the image selective fusion module is added to the training.

[0068] Preferably, the step (6) of obtaining CT&MRI fusion data is as follows: the simulated X-ray image method is input into the trained 3DSP-GAN module to obtain the corresponding CT image, and then the obtained CT image is input into the SC-CycleGan module to obtain the CT&MRI fusion data image.

[0069] Beneficial effects of the present invention:

[0070] The present invention can obtain a CT image corresponding to an X-ray image through a 3DSP-GAN network, and can obtain a CT&MRI fusion image from a CT image through an SC-CycleGan network. It can provide more three-dimensional and detailed anatomical information through the acquired X-ray images to primary medical units with incomplete medical equipment, thereby providing a lower-cost and more efficient implementation method for primary medical units to obtain three-dimensional anatomical information of the human body for clinical diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is a network structure diagram of 3DSP-GAN of the present invention;

[0072] Figure 2 is a network structure diagram shared by the first generator and the second generator of SC-CycleGan of the present invention;

[0073] Figure 3 is a discriminator network structure diagram of SC-CycleGan of the present invention;

[0074] Figure 4 is a structural diagram of the selective fusion module of SC-CycleGan of the present invention;

[0075] Figure 5 It is a schematic diagram of the implementation method of the present invention. DETAILED DESCRIPTION

[0076] The following will be combined with 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 making creative work are within the scope of protection of the present invention.

[0077] Reference Figure 1-Figure 5 , a method for obtaining CT&MRI fusion data from a limited number of low-dimensional X-ray images, comprising the following steps:

[0078] Acquire simulated X-ray images: Given that paired X-CT data are difficult to obtain, it is planned to use the digital simulation algorithm to obtain the corresponding simulated X-ray image data from the CT image data for training; the specific details are as follows: define a virtual X-ray source and simulate the X-ray passing through the CT volume data from the ray source. For each ray, the CT values ​​obtained from all CT slices on the path are accumulated, and the accumulated values ​​are mapped to pixel grayscale values, thereby determining the brightness of the corresponding point on the DRR image to obtain a simulated X-ray image.

[0079] Preprocess X-ray, CT, and MRI images: unify the size of the read-in image data, remove noise through smoothing filtering, and then normalize the image so that the normalized image is in the range of [-1, 1], and use the preprocessed image data as input.

[0080] Build and train the network: Build and train the network specifically for the 3DSP-GAN network and the SC-CycleGan network;

[0081] Construction of the 3DSP-GAN network generator and discriminator: The generator of the 3DSP-GAN network consists of three parts: encoder, decoder and jump connection. Encoder: extracts high-level features of X-rays through a series of Res-SP downsampling modules. The core structure of the Res-SP module is a 3D soft pooling operation, which can not only effectively reduce the computational memory overhead, but also improve the feature utilization rate;

[0082] Decoder: Use stacked upsample interpolation operations to restore the structural details of the CT image. The network structure of the decoder is symmetrical with that of the encoder and is also composed of five upsampling modules.

[0083] Skip connection: Skip connection uses the Concat operation to combine the shallow semantic information of the encoder with the deep semantic information sampled by the decoder, and then passes through the convolution layer to enhance the nonlinear fitting ability of the model.

[0084] The discriminator consists of three "Conv3D-BN-ReLU" modules, which are used to distinguish true and false CTs to further optimize the generator to generate more realistic CTs. The CT generated by the generator and the real CT are used as input data of the discriminator, which determines the authenticity of the input data and feeds it back to the generator.

[0085] The training details of the 3DSP-GAN network are as follows: Among them, the 3DSP-GAN loss function includes adversarial loss and reconstruction loss, which are specifically defined as follows;

[0086] The adversarial loss is shown in formula (1):

[0087]

[0088] Among them, G is the generator, is the discriminator, X represents the simulated X-ray image space, Y represents the corresponding CT image space, x represents the sample taken from the simulated X-ray image space, y represents the sample taken from the CT image space, It refers to randomly sampling a data sample from the CT image space. It refers to randomly sampling a data sample from the simulated X-ray image space. represents the Y space image generated by the generator G, Representation Discriminator The probability of judging whether y is a sample taken from the CT image space Y, and is the discriminator Determine the probability of whether the image generated by the generator G is a sample taken from the CT image space Y, It means gradually improving the capabilities of the generator and the discriminator by minimizing the probability that the fake data generated by the generator is recognized as fake by the discriminator and maximizing the probability that the discriminator correctly distinguishes between real data and fake data;

[0089] The reconstruction loss (2) is shown as:

[0090]

[0091] in, Represents a computationally synthesized CT image The 1-norm of the real image CT image y is used to measure the difference between the synthetic image and the real image;

[0092] The total loss of 3DSP-GAN is shown in formula (3):

[0093]

[0094] in is 5;

[0095] The training details of 3DSP-GAN are as follows: the model training cycle is 100 and the batch size is 1. During training, the Adam optimizer is used to train the network, and the initial learning rate is , the weight decays to , momentum parameter After 20 epochs, a linear learning rate decay strategy is used with a linear decay coefficient of 0.1.

[0096] The construction of the SC-CycleGan network generator, discriminator, and fusion module: The generator consists of an encoder, a converter, and a decoder. Encoder: The input layer has a convolution kernel size of 7, followed by two downsampling layers with a convolution kernel size of 3 and a step size of 2; Converter: After recombining the feature map of the input image, the features of the input image in the source domain are converted into feature vectors in the target domain. The converter uses a 6-layer Resnet structure, each of which is composed of a neural network layer consisting of two convolutional layers. Spatial attention is introduced in each Resnet layer to improve the model's receptive field and sensitivity to image detail features;

[0097] Decoder: The decoder uses two deconvolution layers to restore features from the feature vector and finally converts these features to obtain the target image.

[0098] The discriminator consists of three "Conv2D-BN-ReLU" modules, which are used to distinguish between real and fake images to further optimize the generator to generate more realistic images. The images generated by the generator and the real images are used as input data for the discriminator, which determines the authenticity of the input data and feeds it back to the generator.

[0099] The fusion module consists of a decoder. The decoder uses two "Upsample-Conv2D-ReLU" structures to restore features from feature vectors, and finally converts these features into an image, CT & MRI fusion image.

[0100] Training of SC-CycleGan network: The loss function of SC-CycleGan includes modal conversion loss and image selective fusion loss. The modal conversion loss is composed of adversarial loss and cycle consistency loss. The image selective fusion loss is composed of structural consistency loss, texture loss and intensity loss. The adversarial loss is shown in formula (4) (5):

[0101]

[0102]

[0103] Among them, G is the first generator, F is the second generator, represents the second discriminator for discriminating Y-space samples, represents the first discriminator for identifying X space samples, X represents the CT image space, Y represents the MRI image space, x represents the sample taken by the first generator G from the CT image space X, y represents the sample taken from the MRI image space Y, It refers to randomly sampling a data sample from the CT image space. It refers to randomly sampling a data sample in the MRI image space. represents the Y space image generated by the first generator G, and F(y) represents the X space image generated by the second generator F. Represents the second discriminator Determine whether y is the probability of obtaining a sample in the MRI image space Y, Denotes the first discriminator Determine whether x is the probability of obtaining a sample in the CT image space X, and is the second discriminator Determine the probability of whether the image generated by the first generator G is a sample obtained in the MRI image space Y, is the first discriminator Determine the probability of whether the image generated by the second generator F is a sample obtained in the CT image space X;

[0104] The cycle consistency loss is shown in formula (6):

[0105]

[0106] Among them, F is the second generator, refers to the samples in the CT image space, It means that the second generator F synthesizes the MRI image from the first generator G through the CT image x Reconstructed CT images, It means that the first generator G synthesizes the CT image from the second generator F through the MRI image y Reconstructed MRI images;

[0107] In addition, focal frequency loss and auxiliary classification loss are introduced in the traditional cycle consistency loss. The focal frequency loss function guides the model to pay more attention to the high-frequency part of the synthetic image by calculating the weighted average of the frequency domain distance between the real image and the reconstructed image; the auxiliary classification loss ensures that the generated image is semantically consistent with the target domain and improves the model's category distinction ability. The introduction of focal frequency loss and auxiliary classification loss can effectively improve the model's training efficiency and the quality of synthetic images through additional constraints.

[0108] The focal frequency loss is specifically shown in formula (7):

[0109]

[0110] Among them, M and N represent the length and width of a given image. is the spectrum coordinate of the real image x The spatial frequency value at is the spectral coordinate of the reconstructed image x The spatial frequency value at can be expressed as formula (8):

[0111]

[0112] in Represents the spatial coordinates of image pixels; is the pixel value; and are Euler number and imaginary unit respectively;

[0113] Indicated in The weight of the spatial frequency at can be expressed as formula (9):

[0114]

[0115] in is the scaling factor of the spectral weight matrix used for flexibility, which is set to 1 by default;

[0116] The auxiliary classification loss is specifically shown in formula (10):

[0117]

[0118] in, Representation Discriminator Determine whether y is a sample taken in the Y space, represents the label of y, By predicting the probability With the true label By comparing, the difference between the prediction and the true label can be calculated. =1, it means that the sample belongs to the positive class, and the calculation formula is: ,when =0, it means that the sample belongs to the negative class, and the calculation formula is: ; The total loss of modal conversion of SC-CycleGan is specifically shown in formula (11):

[0119]

[0120] In formula (11), λ, Respectively, the cycle consistency loss weight and the perceptual loss weight are 10 and 5;

[0121] The image selective fusion loss consists of structural consistency loss, texture loss and intensity loss; the structural consistency loss is shown in formula (12):

[0122]

[0123] in, , and They represent CT images, MRI images, and CT&MRI fusion images respectively; Indicates the structural similarity operation between the CT image and the fused image. Indicates the structural similarity operation between the CT image and the fused image. is 0.5;

[0124] The texture loss is shown in formula (13):

[0125]

[0126] in, represents the Sobel gradient operator, , and Respectively represent the texture information of CT images, MRI images, and CT&MRI fusion images;

[0127] The strength loss is shown in formula (14):

[0128]

[0129] in, It is an element aggregation operation, which is specifically manifested in using the K-means clustering algorithm to extract the bone information of the CT image, and then integrating the extracted bone information with the MRI image;

[0130] The image selective fusion loss of SC-CycleGan is specifically shown in formula (15):

[0131]

[0132] in , , They are 50, 100, and 20 respectively;

[0133] The training details of SC-CycleGan are as follows: the model training cycle is 200 and the batch size is 1. During training, the Adam optimizer is used to train the network, and the initial learning rate is , momentum parameter After 150 epochs, the image selective fusion module is added to the training.

[0134] Obtain CT&MRI fusion images: Input the simulated X-ray image method into the trained 3DSP-GAN module to obtain the corresponding CT image, and then input the obtained CT image into the SC-CycleGan module to obtain the CT&MRI fusion data image.

[0135] The present invention can obtain a CT image corresponding to an X-ray image through a 3DSP-GAN network, and can obtain a CT&MRI fusion image from a CT image through an SC-CycleGan network. It can provide more three-dimensional and detailed anatomical information through the acquired X-ray images to primary medical units with incomplete medical equipment, thereby providing a lower-cost and more efficient implementation method for primary medical units to obtain three-dimensional anatomical information of the human body for clinical diagnosis.

[0136] Under the premise that no conflict occurs, those skilled in the art may freely combine and superimpose the above-mentioned additional technical features.

[0137] The above description is only a preferred implementation mode of the present invention. Any technical solution that achieves the purpose of the present invention by substantially the same means belongs to the protection scope of the present invention.

Claims

1. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images, Features: The method comprises the following steps: (1) Obtain the corresponding simulated X-ray image (DDR image) from the CT image through a mathematical simulation algorithm; (2) Define the generator, discriminator and loss function of 3DSP-GAN respectively; (3) The preprocessed simulated X-ray image data is used as the input of the 3DSP-GAN model, and the corresponding CT image data is used as the 3DSP-GAN model label to train the 3DSP-GAN; Among them, the training details of 3DSP-GAN are as follows: the loss functions of 3DSP-GAN include adversarial loss and reconstruction loss; The adversarial loss formula is as follows: Among them, G is the generator, D is the discriminator, X represents the simulated X-ray image space, Y represents the corresponding CT image space, x represents the sample taken from the simulated X-ray image space, and y represents the sample taken from the CT image space. It refers to randomly sampling a data sample from the CT image space. It refers to randomly sampling a data sample from the simulated X-ray image space. G(x) represents the Y space image generated by the generator G. D(y) represents the probability that the discriminator D judges whether y is a sample taken from the CT image space Y. And D(G(x)) is the probability that the discriminator D judges whether the image generated by the generator G is a sample taken from the CT image space Y. It means gradually improving the capabilities of the generator and the discriminator by minimizing the probability that the fake data generated by the generator is recognized as fake by the discriminator and maximizing the probability that the discriminator correctly distinguishes between real data and fake data; The reconstruction loss formula is as follows: Among them, ‖G(x)-y‖ 1 It means calculating the 1-norm of the synthesized CT image G(x) and the real image CT image y to measure the difference between the synthesized image and the real image; The total loss of 3DSP-GAN is as follows: Where γ is 5; (4) Define the generator, discriminator, loss function and image selective fusion module of SC-CycleGan respectively; (5) Input the preprocessed data into the SC-CycleGan network for training; Among them, the training details of SC-CycleGan are as follows: the loss function of SC-CycleGan includes modal conversion loss and image selective fusion loss. The modal conversion loss is composed of adversarial loss and cycle consistency loss. The image selective fusion loss is composed of structural consistency loss, texture loss and intensity loss. The adversarial loss is shown in the following formula: Among them, G is the first generator, F is the second generator, and D y represents the second discriminator for discriminating Y space samples, D x represents the first discriminator for identifying X space samples, X represents the CT image space, Y represents the MRI image space, x represents the sample taken by the first generator G from the CT image space X, y represents the sample taken from the MRI image space Y, It refers to randomly sampling a data sample from the CT image space. It refers to randomly sampling a data sample in the MRI image space, G(x) represents the Y space image generated by the first generator G, F(y) represents the X space image generated by the second generator F, D y (y) represents the second discriminator D y Determine whether y is the probability of obtaining a sample in the MRI image space Y, D x (x) represents the first discriminator D x Determine whether x is the probability of obtaining a sample in the CT image space X, and D y (G(x)) is the second discriminator D y Determine whether the image generated by the first generator G is the probability of obtaining a sample in the MRI image space Y, D x (F(y)) is the first discriminator D x Determine the probability of whether the image generated by the second generator F is a sample obtained in the CT image space X; The cycle consistency loss formula is as follows: Among them, F is the second generator, Refers to samples in the CT image space, F(G(x)) represents the CT image reconstructed by the second generator F from the MRI image G(x) synthesized by the first generator G through the CT image x, and G(F(y)) represents the MRI image reconstructed by the first generator G from the CT image F(y) synthesized by the second generator F through the MRI image y; In addition, focal frequency loss and auxiliary classification loss are introduced in the traditional cycle consistency loss. The focal frequency loss function guides the model to pay more attention to the high-frequency part of the synthetic image by calculating the weighted average of the frequency domain distance between the real image and the reconstructed image; the auxiliary classification loss ensures that the generated image is semantically consistent with the target domain and improves the model's category distinction ability. The introduction of focal frequency loss and auxiliary classification loss can effectively improve the model's training efficiency and the quality of synthetic images through additional constraints. The specific formula for focus frequency loss is as follows: Among them, M and N represent the length and width of a given image, and F x (u,v) is the spatial frequency value at the spectral coordinate (u,v) of the real image x, F x, (u, v) is the spatial frequency value at the spectral coordinate (u, v) of the reconstructed image x, which can be expressed as follows: Where (p,q) represents the spatial coordinates of the image pixel; f(p,q) is the pixel value; e and i are the Euler number and imaginary unit respectively; w(u,v) represents the weight of the spatial frequency at (u,v), which can be expressed as follows: w(u,v)=|F x (u,v)-F x′ (u,v)| ∝ ; where ∝ is the scaling factor of the spectral weight matrix for flexibility, which is set to 1 by default; The auxiliary classification loss is specifically shown in the following formula: ζ cls (D y ,Y)M-(label y *log(D). y (y)′)+(1-label y )*log(1-D). y (y)′)) Among them, D y (y)′ represents the discriminator D y Determine whether y is a sample taken in the Y space, label y represents the label of y, ζ cls (D y ,Y) by predicting the probability D y (y)′ and the true label label y By comparing, the difference between the prediction and the true label can be calculated. y =1, it means the sample belongs to the positive class, and the calculation formula is -(label y *log(D y (y)′), when label y = 0, indicating that the sample belongs to the negative class, the calculation formula at this time is (1-label y )*log(1-D y (y)′)); The specific formula of the total loss of modal conversion of SC-CycleGan is as follows: ζ(G,F,D x ,D y )=ζ GAN (G,D y ,X,Y)+ζ GAN (F,D x ,F,X)+λ*ζ cycle (G,F)+α*ζ ff (G,F)+ζ cls (D y ,Y); Among them, λ and α represent the cycle consistency loss weight and the perceptual loss weight, which are 10 and 5 respectively; The image selective fusion loss consists of structural consistency loss, texture loss and intensity loss; the structural consistency loss formula is as follows: ζ ssim =w 1 (1-ssim(I f ,I 1 ))+w 2 (1-ssim(I f ,I 2 )); Among them, I 1 ,I 2 with I f Respectively represent CT images, MRI images and CT&MRI fusion images; ssim(I f ,I 1 ) represents the structural similarity operation between the CT image and the fusion image, ssim(I f ,I 2 ) represents the structural similarity operation between the CT image and the fusion image, w 1 , w 2 is 0.5; The texture loss formula is as follows: in, represents the Sobel gradient operator, and Respectively represent the texture information of CT images, MRI images, and CT&MRI fusion images; The strength loss formula is as follows: Among them, M(*) is an element aggregation operation, which is specifically expressed as using the K-means clustering algorithm to extract the bone information of the CT image, and then integrating the extracted bone information with the MRI image; The specific formula of SC-CycleGan's image selective fusion loss is as follows: g fusion =λ 1 g ssim +λ 2 g text +λ 3 g int ; where λ 1 , 2 , 3 They are 50, 100, and 20 respectively; (6) Obtain CT & MRI fusion data from simulated X-ray images by training the network.

2. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images according to claim 1, Features: The simulated X-ray image is obtained in step (1) because paired X-CT data are difficult to obtain. It is intended to use the CT image data to obtain the corresponding simulated X-ray image data for training through a digital simulation algorithm. The specific process is: define a virtual X-ray source, and simulate the X-ray from the ray source passing through the CT volume data. For each ray, the CT value obtained from all CT slices on the path is accumulated, and the accumulated value is mapped to a pixel gray value, so as to determine the brightness of the corresponding point on the DRR image to obtain a simulated X-ray image.

3. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images according to claim 1, Features: The specific structures of the generator and discriminator of 3DSP-GAN in step (2) are as follows: The generator consists of three parts: encoder, decoder and skip connection; encoder: extracts high-level features of X-rays through a series of Res-SP downsampling modules. The core structure of the Res-SP module is a 3D soft pooling operation, which can not only effectively reduce the computational memory overhead, but also improve the feature utilization rate; Decoder: Uses stacked upsample interpolation operations to restore the structural details of the CT image. The decoder's network structure is symmetrical to the encoder and also consists of five upsampling modules; Skip connection: Skip connection uses the Concat operation to combine the shallow semantic information of the encoder with the deep semantic information sampled by the decoder, and then passes through the convolution layer to enhance the nonlinear fitting ability of the model; The discriminator consists of three "Conv3D-BN-ReLU" modules, which are used to distinguish true and false CTs, so as to further optimize the generator to generate more realistic CTs. The CT generated by the generator and the real CT are used as input data of the discriminator. The discriminator determines the authenticity of the input data and feeds it back to the generator.

4. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images according to claim 1, Features: The training details of 3DSP-GAN in step (3) are as follows: the model training cycle is 100, the batch size is 1, and during training, the network is trained using the Adam optimizer, the initial learning rate is 2e-4, the weight decay is 5e-5, and the momentum parameter β 1 =0.5,β 2 = 0.99, and after 20 epochs, a linear learning rate decay strategy is used with a linear decay coefficient of 0.

1.

5. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images according to claim 1, Features: The specific structures of the generator, discriminator, loss function and fusion module of SC-CycleGan in step (4) are: The generator consists of an encoder, a converter, and a decoder; the encoder: the input layer has a convolution kernel size of 7, followed by two downsampling layers with a convolution kernel size of 3 and a stride of 2; Converter: After recombining the feature map of the input image, the features of the input image in the source domain are converted into feature vectors in the target domain. The converter uses a 6-layer Resnet structure. Each Resnet structure is composed of a neural network layer consisting of two convolutional layers. Spatial attention is introduced in each Resnet layer to improve the receptive field of the model and its sensitivity to image detail features. Decoder: The decoder uses two deconvolution layers to restore features from the feature vector and finally converts these features to obtain the target image; The discriminator consists of three "Conv2D-BN-ReLU" modules, which are used to distinguish true and false images, so as to further optimize the generator to generate more realistic images. The images generated by the generator and the real images are used as the input data of the discriminator, which determines the authenticity of the input data and feeds it back to the generator. The fusion module consists of a decoder, which uses two "Upsample-Conv2D-ReLU" structures to restore features from feature vectors and finally convert these features into an image, CT&MRI fusion image.

6. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images according to claim 1, Features: Step (5) SC-CycleGan training details are: model training cycle is 200, batch size is 1; during training, the Adam optimizer is used to train the network, the initial learning rate is 2e-4, and the momentum parameter β 1 =0.5,β 2 =0.99; after 150 cycles, the image selective fusion module is added to the training.

7. A method for obtaining CT & MRI fusion data from a limited number of low-dimensional X-ray images according to claim 1, Features: The specific steps of obtaining CT&MRI fusion data in step (6) are as follows: the simulated X-ray image method is input into the trained 3DSP-GAN module to obtain the corresponding CT image, and then the obtained CT image is input into the SC-CycleGan module to obtain the CT&MRI fusion data image.

Citation Information

Patent Citations

  • CycleGan-based colposcope image modal conversion method

    CN117437514A

  • Infrared and visible light image double-domain self-attention interactive fusion method

    CN117788989A

  • Infrared and visible light image fusion method based on progressive multi-branch and improved UNet3 + deep supervision

    CN118229548A

Cited By

  • Generation method and system based on lung DR image to CT breathing motion image

    CN120976356A

  • Method and system for generating lung dr images to ct respiratory motion images

    CN120976356B