A method, system and device for generating medical images from lung cancer CT to PET

Through the UE-GAN network model, combined with the generator, discriminator and segmentation network, and using local-global interactive Cswin-Transformer module and other technologies, it solves the problem in the existing technology that the lung cancer CT to PET image generation cannot accurately generate the lesion area. , achieving high-quality PET image generation, improving the diagnostic accuracy and clinical application potential of the diseased area.

CN118351211BActive Publication Date: 2024-08-30SHANDONG ZHONGJIA YINGRUI MEDICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410780635.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-30
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Existing lung cancer CT to PET image generation methods cannot precisely generate the lesion area, making diagnosis difficult.

Method used

Using the UE-GAN network model, combined with the generator, discriminator and segmentation network, through the local-global interactive Cswin-Transformer module, residual hole space convolution pyramid pooling module and residual-dense convolution module, the image is extracted Local and global features to improve the precision and location accuracy of the lesion area.

Benefits of technology

It achieves high-quality PET image generation, significantly improves the location and scope of the lesion area, improves the similarity between the image and the real PET image, reduces the risk of radioactive components to the population, and has good clinical application potential.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118351211B
    Figure CN118351211B
Patent Text Reader

Abstract

The present invention discloses a method, system and device for generating a medical image from lung cancer CT to PET, which relates to the technical field of cross-modal medical image generation, and comprises the following steps: data preprocessing, model design, model training and image generation. The method of the present application adds a convolutional neural network, a local-global interactive Transformer, a residual void space convolution pyramid pooling module and a residual-dense convolution module hybrid structure technology to the bottleneck layer of the generator, which can extract local information and global context information of the image during the training process, well learn the mapping relationship between CT and PET domain images, and then accurately and quickly complete the generation of lung cancer CT images to PET images. The method can be trained by paired CT and PET images without PET scanning, so as to realize artificial intelligence generation of PET images, obtain high-quality PET images containing lesion information, and thus improve the refinement of image quality in lesion areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cross-modality medical image generation, and in particular relates to a method, system and device for generating medical images from lung cancer CT to PET. Background Art

[0002] The application publication number is CN116152235A, and the patent name is a cross-modal synthesis method for medical images from lung cancer CT to PET. It discloses that the Reg-gan network combines the generator with the registration network. The deformation field formed by the correction loss function and the smoothing loss function used by the registration network is used in the generated image, and then it is compared with the real image for loss confrontation to improve the overall quality of the generated image. However, its shortcomings are also obvious: doctors need to make a diagnosis based on the size and location of the lesion area, while the Reg-gan network improves the quality of the overall image and cannot generate the lesion area in a refined manner. Summary of the invention

[0003] The purpose of the present invention is to provide a method, system and device for generating medical images from lung cancer CT to PET, so as to solve the problems raised by the above-mentioned background technology.

[0004] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0005] The present invention is a method for generating a medical image from lung cancer CT to PET, comprising the following steps:

[0006] Step 1: Data preprocessing: convert CT and PET data into two-dimensional slices in png format to create paired CT and PET data sets;

[0007] Step 2: Model design. The UE-GAN network model framework includes three parts: generator, discriminator and segmentation network. The generator adopts a hybrid CNN-CswinTrans structure to learn the mapping relationship from the source domain image to the target domain image, and refers to the real image distribution to make the generated image more realistic. The real PET image is subjected to feature extraction by the discriminator, and the image generated by the generator is optimized by the adversarial loss function. The discriminator adopts a convolutional neural network structure to determine whether the input image is a PET image generated by the generator or a real PET image. The generator and the discriminator confront each other and optimize together. The segmentation network adopts the UNet structure. The obtained lesion area is feature-fused with the generated image to make the generated lesion area more accurate, and then the fused image is interactively compared with the real image to adjust the position of the lesion area; the generator adopts an encoder-bottleneck layer-decoder structure, and convolution blocks are used in the encoder and decoder to extract local feature information of the image; the bottleneck layer structure is composed of a local-global interactive Cswin-transformer module, a residual void space convolution pyramid pooling module and a residual-dense convolution module hybrid structure, and the intermediate information bottleneck layer can highly capture the context feature information in the PET image, thereby improving the accuracy of the synthesized PET image;

[0008] Step 3: Model training: input paired CT and PET datasets into the basic framework for training. The generator and discriminator evolve together in the alternating iterative game process, and the generator learns the data distribution of real samples.

[0009] Step 4: Generate images, save the trained model, and input the two-dimensional slices in png format into the trained model to obtain the corresponding PET images.

[0010] Furthermore, the data preprocessing step includes:

[0011] S1. Convert the original DICOM format CT data and PET data into NIFIT format using SimpleITK library;

[0012] S2. Linearly register the PET image to the CT image using the FSL tool to obtain paired CT and PET data;

[0013] S3, adjust the window width of the CT image to 4000, the window level to 1000, and normalize the CT image and PET image to between [-1,1];

[0014] S4. Convert the three-dimensional CT images and PET images in NIFIT format into two-dimensional slices in png format to produce paired CT and PET two-dimensional slice datasets for training and testing of model design.

[0015] Furthermore, the quality of the PET images generated by the generator is evaluated by three evaluation indicators, including mean absolute error, peak signal-to-noise ratio and structural similarity index. The mean absolute error is based on pixel measurement differences, and the lower its value, the higher the quality of the synthesized image. The peak signal-to-noise ratio is the human perception of the quality of the reconstructed image, and the higher its value, the better. The structural similarity index shows the overall similarity between the source image and the synthesized image. The higher the value, the more similar the source image is to the synthesized image, and the generated PET image has high quality and is more similar to the real PET image. At the same time, the quantitative results show that the proposed model has excellent performance and high accuracy.

[0016] Furthermore, the mean absolute error is represented by MAE, the peak signal-to-noise ratio is represented by PSNR, and the structural similarity index is represented by SSIM, as shown in formulas (1)-(3),

[0017] (1)

[0018] (2)

[0019] (3)

[0020] in, represents the real synthetic image value, represents the pixel value of the synthetic image, represents the total number of pixels, represents the peak signal-to-noise ratio, represents the mean square error, Represents structural similarity performance, represents the average value of x and y. represents a constant, represents the covariance of x and y, represents a constant, represents the variance of x, Represents the variance of y.

[0021] Furthermore, the local-global interactive Cswin-transformer module is a combination of Cswin-transformer and local-global attention mechanism. Cswin-Transformer divides the image into cross windows, which contain information of local areas and extend in horizontal and vertical directions, so that the model can capture pixel information in a wider range at the same time; the design of this cross window enables Cswin-Transformer to obtain global semantic information in a wider range without losing local details; the local-global attention mechanism can assign a unique code to the input vector dimension or sequence, so that the model can understand the different positional relationships of the image.

[0022] Furthermore, the residual atrous spatial convolution pyramid pooling module adopts atrous convolution operations with different sampling rates, which can effectively capture the context information of the image at different scales. By means of this multi-scale information fusion method, the image is analyzed within different receptive fields, thereby improving the model's recognition ability for objects of different scales. In traditional convolutional neural networks, due to multiple downsampling operations, the spatial information of the image is lost. A 1×1 convolution module and an ECA efficient channel attention mechanism module are added to the original atrous convolutions with three different sampling rates, thereby filtering out redundant information through the attention mechanism and reducing the loss of feature information through the fusion of feature information. The process can be expressed by formulas (4)-(6):

[0023] (4)

[0024] (5)

[0025] (6)

[0026] In the formula, Represents input, represents the output of the first branch, Represents the image after convolution and ECA module, Represents the output of the second, third, and fourth branches, represents the output of the fifth branch, represents the void ratio, Represents splicing, represents upsampling, represents 3×3 convolution, represents 1×1 convolution, represents pooling, represents the stitched image, Represents the output image.

[0027] Furthermore, the residual-dense convolution module adopts a densely connected structure, and superimposes the information of each dimension through an efficient attention mechanism module, which can reduce the generation of redundant information while obtaining multi-dimensional information; the EAC efficient channel attention mechanism module is used to aggregate different feature information to improve the interaction of cross-layer information; the convolution blocks with different information are used to adjust the coverage and capture the interaction between local information, dynamically adjust the weights between channels of the feature map, and enhance the correlation and expressiveness; for a given feature map F of size , firstly perform global average pooling on it, and obtain global smooth features by crossing spatial dimensions; as shown in formula (7), a global average feature vector with dimension C is obtained;

[0028] (7)

[0029] in Represents global average pooling, calculates the average value of each channel, and obtains feature map; F(i,j) represents the pixel value at position (i,j) in the input feature map F, where i represents the row index and j represents the column index; It represents the normalization factor, which normalizes the result of global average pooling to ensure that the output feature map falls within the range value; the tensor obtained by pooling is linearly transformed using 1×3 convolution, as shown in formula (8);

[0030] (8)

[0031] in Indicates that the pooled tensor is linearly transformed using a 1×3 convolution. Conv represents a 1×3 convolution operation, and W represents the weight matrix of the convolution kernel, which combines and transforms each channel of the input feature map. represents the bias term;

[0032] The convolution interactively learns the average value of each channel to obtain a new 1×1×C feature map. In this process, a one-dimensional convolution is performed on each channel to calculate the importance weight of each channel. These weights represent the importance of each channel in the local context. Then, a Sigmoid operation is performed on the transformed result element by element to obtain the attention weight tensor S, as shown in formula (9):

[0033] (9)

[0034] Among them, the attention weight tensor S represents the importance of each channel; in this process, a one-dimensional convolution operation is performed on each channel to calculate the importance weight of each channel; these weights represent the importance of each channel in the local context; in this case, exp refers to the abbreviation of the function, which means natural exponential; the Sigmoid function has the property of mapping the input to the range (0, 1); finally, by multiplication, the formula is as follows, where "×" represents the element-by-element multiplication between the attention weight of each channel in the attention weight tensor S and the corresponding feature channel in the input feature map F, as shown in formula (10),

[0035] (10)

[0036] The feature map O that highlights important information is obtained, and its size is , which allows adaptive learning of the relationship between channels and enhances the representation power of features;

[0037] The segmentation network as a segmentation label model can improve the accuracy of the lesion area of ​​the image G(x). Specifically, the Dice loss function is defined as:

[0038] (11)

[0039] in represents the intersection of the X and Y sets, and Indicates the number of its elements;

[0040] The position of the lesion area can be further adjusted by the loss function of the intersection-over-union ratio, which is defined as:

[0041] (12)

[0042] The adversarial loss function between the generator G and the discriminator D is defined as,

[0043] (13)

[0044] Among them, x is the input CT image of the source domain, is the PET image of the target domain;

[0045] Experimental setting,The experimental development environment is pytorch2.0.1. On the NVIDIA RTX 3090 graphics processor, the Adam optimizer is used, the learning rate is 0.0002, the number of model training rounds is 200; the batch size is set to 1.

[0046] A lung cancer CT to PET medical image generation system, a system using the lung cancer CT to PET medical image generation method.

[0047] A lung cancer CT to PET medical image generation device, and a device using the lung cancer CT to PET medical image generation method.

[0048] The present invention has the following beneficial effects:

[0049] The method of this application adds a convolutional neural network, a local-global interactive Transformer, a residual void space convolution pyramid pooling module, and a residual-dense convolution module hybrid structure technology to the bottleneck layer of the generator, which can extract local information and global context information of the image during the training process, and well learn the mapping relationship between CT and PET domain images, thereby accurately and quickly completing the generation of lung cancer CT images to PET images. This method can train the method through paired CT and PET images without PET scanning, realize artificial intelligence generation of PET images, and obtain high-quality PET images containing lesion information, thereby improving the refinement of the image quality of the lesion area. It will greatly reduce the risks caused by radioactive components to specific populations and reduce the economic burden of users. At the same time, this method shows good clinical application potential and solves the shortcomings in the prior art.

[0050] This application replaces the registration network with a segmentation network, places the real image into the segmentation network to segment out the part of the lesion area, and then superimposes the segmented lesion area onto the image generated for the first time, so that the lesion area obtains greater weight feature information; secondly, the position of the lesion area is adjusted by using the IOU intersection-over-union loss function with the real image, and then the trimmed image is subjected to adversarial loss generation with the real image. The lesion area of ​​the generated image is significantly improved compared to the Reg-gan lesion area in the prior art, both in terms of the position and range of the lesion area.

[0051] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0053] Figure 1 A model diagram for cross-modality generation from CT to PET proposed in the present invention;

[0054] Figure 2is the bottleneck layer model diagram in the generator of the present invention, where Figure 2-1 Schematic diagram of the local-global interactive Cswin-transformer module, where Figure 2-2 Schematic diagram of the residual void spatial convolution pyramid pooling module, where Figure 2-3 Schematic diagram of residual-dense convolution module;

[0055] Figure 3 This is a diagram of the experimental results of the present invention. DETAILED DESCRIPTION

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

[0057] See also Figure 1-Figure 3 As shown, the present invention is a method for generating a medical image from lung cancer CT to PET, comprising the following steps:

[0058] Step 1: Data preprocessing: convert CT and PET data into two-dimensional slices in png format to create paired CT and PET data sets;

[0059] Step 2: Model design. The UE-GAN network model framework includes three parts: generator, discriminator and segmentation network. The generator adopts a hybrid CNN-CswinTrans structure to learn the mapping relationship from the source domain image to the target domain image, and refers to the real image distribution to make the generated image more realistic. The real PET image is subjected to feature extraction by the discriminator, and the image generated by the generator is optimized by the adversarial loss function. The discriminator adopts a convolutional neural network structure to determine whether the input image is a PET image generated by the generator or a real PET image. The generator and the discriminator confront each other and optimize together. The segmentation network adopts the UNet structure to obtain the lesion area and the generated image to perform feature fusion, so that the generated lesion area is more accurate, and then the fused image is interactively compared with the real image to adjust the position of the lesion area. The generator adopts an encoder-bottleneck layer-decoder structure, and convolution blocks are used in the encoder and decoder to extract local feature information of the image respectively. The bottleneck layer structure (such as Figure 2 ), by the local-global interactive Cswin-transformer module (as Figure 2-1 As shown in the figure), the residual void spatial convolution pyramid pooling module is as follows Figure 2-2 As shown and residual-dense convolution module (as Figure 2-3Through this design, the intermediate information bottleneck layer can highly capture the context feature information in the PET image, thereby improving the accuracy of the synthesized PET image;

[0060] Step 3: Model training: input paired CT and PET datasets into the basic framework for training. The generator and discriminator evolve together in the alternating iterative game process, and the generator learns the data distribution of real samples.

[0061] Step 4: Generate images, save the trained model, and input the two-dimensional slices in png format into the trained model to obtain the corresponding PET images.

[0062] The data preprocessing step includes:

[0063] S1. Convert the original DICOM format CT data and PET data into NIFIT format using SimpleITK library;

[0064] S2. Linearly register the PET image to the CT image using the FSL tool to obtain paired CT and PET data;

[0065] S3, adjust the window width of the CT image to 4000, the window level to 1000, and normalize the CT image and PET image to between [-1,1];

[0066] S4. Convert the three-dimensional CT images and PET images in NIFIT format into two-dimensional slices in png format to produce paired CT and PET two-dimensional slice datasets for training and testing of model design.

[0067] The quality of the PET images generated by the generator is evaluated by three evaluation indicators as shown in Table 1. The three evaluation indicators include mean absolute error, peak signal-to-noise ratio and structural similarity index. The mean absolute error is based on pixel measurement differences. The lower its value, the higher the quality of the synthesized image. The peak signal-to-noise ratio is the human perception of the quality of the reconstructed image. The higher its value, the better. The structural similarity index shows the overall similarity between the source image and the synthesized image. The higher the value, the more similar the source image and the synthesized image are. According to the evaluation indicators given in Table 1, it can be seen that when the mean absolute error between the synthesized image and the reference image is low, the peak signal-to-noise ratio is high, and the structural similarity is close to 1, it indicates that the generated PET image is of high quality and is similar to the real PET image. At the same time, the quantitative results show that the proposed model has excellent performance and high accuracy.

[0068] Table 1 Evaluation indexes of the present invention

[0069]

[0070] The mean absolute error is represented by MAE, the peak signal-to-noise ratio is represented by PSNR, and the structural similarity index is represented by SSIM, as shown in formulas (1)-(3),

[0071] (1)

[0072] (2)

[0073] (3)

[0074] in, represents the real synthetic image value, represents the pixel value of the synthetic image, represents the total number of pixels, represents the peak signal-to-noise ratio, represents the mean square error, Represents structural similarity performance, represents the average value of x and y. represents a constant, represents the covariance of x and y, represents a constant, represents the variance of x, Represents the variance of y.

[0075] The local-global interactive Cswin-transformer module is a combination of Cswin-transformer and local-global attention mechanism, such as Figure 2-1 As shown in the figure, Cswin-Transformer divides the image into cross windows, which contain information of local areas and extend in the horizontal and vertical directions, so that the model can capture pixel information in a wider range at the same time; the design of this cross-shaped window enables Cswin-Transformer to obtain global semantic information in a wider range without losing local details; the local-global attention mechanism can assign a unique code to the input vector dimension or sequence, so that the model can understand the different positional relationships of the image.

[0076] The residual atrous spatial convolution pyramid pooling module adopts atrous convolution operations with different sampling rates, which can effectively capture the contextual information of the image at different scales. By means of this multi-scale information fusion method, the image is analyzed within different receptive fields, thereby improving the model's recognition ability for objects of different scales. In traditional convolutional neural networks, due to multiple downsampling operations, the spatial information of the image is lost. Therefore, a 1×1 convolution module and an ECA efficient channel attention mechanism module are added to the original three atrous convolutions with different sampling rates, so that redundant information can be filtered out through the attention mechanism, and the loss of feature information can be reduced through the fusion of feature information. Figure 2-2 This process can be expressed by formulas (4)-(6):

[0077] (4)

[0078] (5)

[0079] (6)

[0080] In the formula, Represents input, represents the output of the first branch, Represents the image after convolution and ECA module, Represents the output of the second, third, and fourth branches, represents the output of the fifth branch, represents the void ratio, Represents splicing, represents upsampling, represents 3×3 convolution, represents 1×1 convolution, represents pooling, represents the stitched image, Represents the output image.

[0081] The residual-dense convolution module adopts a densely connected structure, and superimposes the information of each dimension through an efficient attention mechanism module, which can reduce the generation of redundant information while obtaining multi-dimensional information; the ECA efficient channel attention mechanism module is used to aggregate different feature information to improve the interaction of cross-layer information; the convolution blocks with different information are used to adjust the coverage and capture the interaction between local information, and the weights between channels of the feature map are dynamically adjusted to enhance the correlation and expressiveness; for a given feature map F, the size is , first perform global average pooling on it to obtain global smooth features across spatial dimensions; as shown in formula (7), a global average feature vector with dimension C is obtained;

[0082] (7)

[0083] in Represents global average pooling, calculates the average value of each channel, and obtains feature map; F(i,j) represents the pixel value at position (i,j) in the input feature map F, where i represents the row index and j represents the column index; It represents the normalization factor, which normalizes the result of global average pooling to ensure that the output feature map falls within a certain range of values; the pooled tensor is linearly transformed using a 1×3 convolution, as shown in formula (8);

[0084] (8)

[0085] in Indicates that the pooled tensor is linearly transformed using a 1×3 convolution. Conv represents a 1×3 convolution operation, and W represents the weight matrix of the convolution kernel, which combines and transforms each channel of the input feature map. represents the bias term;

[0086] The convolution interactively learns the average value of each channel to obtain a new 1×1×C feature map. In this process, a one-dimensional convolution is performed on each channel to calculate the importance weight of each channel. These weights represent the importance of each channel in the local context. Then, a Sigmoid operation is performed on the transformed result element by element to obtain the attention weight tensor S, as shown in formula (9):

[0087] (9)

[0088] Among them, the attention weight tensor S represents the importance of each channel; in this process, a one-dimensional convolution operation is performed on each channel to calculate the importance weight of each channel; these weights represent the importance of each channel in the local context; in this case, exp refers to the abbreviation of the function, which means natural exponential; the Sigmoid function has the property of mapping the input to the range (0, 1); finally, by multiplication, the formula is as follows, where "×" represents the element-by-element multiplication between the attention weight of each channel in the attention weight tensor S and the corresponding feature channel in the input feature map F, as shown in formula (10),

[0089] (10)

[0090] The feature map O that highlights important information is obtained, and its size is , which allows adaptive learning of the relationship between channels and enhances the representation power of features;

[0091] The segmentation network as a segmentation label model can improve the accuracy of the lesion area of ​​the image G(x). Specifically, the Dice loss function is defined as:

[0092] (11)

[0093] in represents the intersection of the X and Y sets, and Indicates the number of its elements;

[0094] The position of the lesion area can be further adjusted by the loss function of the intersection-over-union ratio, which is defined as:

[0095] (12)

[0096] The adversarial loss function between the generator G and the discriminator D is defined as,

[0097] (13)

[0098] Among them, x is the input CT image of the source domain, is the PET image of the target domain;

[0099] Experimental setting,The dataset was randomly divided into training and test sets in a ratio of 9:1. The CT and PET paired data of each lung cancer patient contained multiple two-dimensional slices, which were resampled to a size of 512×512. The experimental development environment used was pytorch2.0.1. On the NVIDIA RTX 3090 graphics processor, the Adam optimizer was used, the learning rate was 0.0002, and the number of model training rounds was 200; the batch size was set to 1, and the proposed model was trained on the NVIDIA RTX 3090 graphics processor for about 48 hours. The experimental environment and specific settings are shown in Table 2.

[0100] Table 2 Experimental environment and parameter settings of the present invention

[0101]

[0102] A lung cancer CT to PET medical image generation system, a system using the lung cancer CT to PET medical image generation method.

[0103] A lung cancer CT to PET medical image generation device, and a device using the lung cancer CT to PET medical image generation method.

[0104] This application replaces the registration network with a segmentation network, puts the real image into the segmentation network to segment the part of the lesion area, and then superimposes the segmented lesion area part on the first generated image, so that the lesion area obtains greater weight feature information; secondly, the IOU intersection loss function is used to adjust the position of the lesion area with the real image, and then the trimmed image and the real image are generated by adversarial loss. The generated image lesion area is significantly better than the Reg-gan lesion area in the prior art, both in terms of the position and range of the lesion area. Performance experiments have been conducted in many medical imaging application scenarios to achieve artificial intelligence generation of PET images and obtain high-quality PET images containing lesion information.

[0105] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0106] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A method for generating medical images from lung cancer CT to PET, characterized in that: The following steps are involved: Step 1: Data preprocessing: convert CT and PET data into two-dimensional slices in png format to create paired CT and PET data sets; Step 2: Model design. The UE-GAN network model framework includes three parts: generator, discriminator and segmentation network. The generator uses a hybrid CNN-CswinTrans structure to learn the mapping relationship from source domain images to target domain images, and refers to the real image distribution to make the generated images more realistic. The real PET image is subjected to feature extraction by a discriminator, and the image generated by the generator is optimized by an adversarial loss function. The discriminator uses a convolutional neural network structure to determine whether the input image is a PET image generated by the generator or a real PET image; The generator and the discriminator compete with each other and optimize together; the segmentation network uses the UNet structure to obtain the lesion area and the generated image to perform feature fusion, so that the generated lesion area is more accurate, and then the fused image is interactively compared with the real image to adjust the position of the lesion area; the generator adopts the encoder-bottleneck layer-decoder structure, and convolution blocks are used in the encoder and decoder to extract local feature information of the image; the bottleneck layer structure is composed of a local-global interactive Cswin-transformer module, a residual void space convolution pyramid pooling module and a residual-dense convolution module hybrid structure, and the intermediate information bottleneck layer can highly capture the context feature information in the PET image, thereby improving the accuracy of the synthetic PET image; Step 3: Model training: input paired CT and PET datasets into the basic framework for training. The generator and discriminator evolve together in the alternating iterative game process, and the generator learns the data distribution of real samples. Step 4: Generate images, save the trained model, and input the two-dimensional slices in png format into the trained model to obtain the corresponding PET images; The local-global interactive Cswin-transformer module is a combination of Cswin-transformer and local-global attention mechanism. Cswin-Transformer divides the image into cross windows, which contain information of local areas and extend in horizontal and vertical directions, so that the model can capture pixel information in a wider range at the same time; the design of this cross window enables Cswin-Transformer to obtain global semantic information in a wider range without losing local details; the local-global attention mechanism can assign a unique code to the input vector dimension or sequence, so that the model can understand different positional relationships of the image; The residual atrous spatial convolution pyramid pooling module adopts atrous convolution operations with different sampling rates, which can effectively capture the context information of the image at different scales. By means of this multi-scale information fusion method, the image is analyzed within different receptive fields, thereby improving the model's recognition ability for objects of different scales. In traditional convolutional neural networks, due to multiple downsampling operations, the spatial information of the image is lost. A 1×1 convolution module and an ECA efficient channel attention mechanism module are added to the original atrous convolutions with three different sampling rates, thereby filtering out redundant information through the attention mechanism and reducing the loss of feature information through the fusion of feature information. The process can be expressed by formulas (4)-(6): (4); (5); (6) ; In the formula, Represents input, represents the output of the first branch, Represents the image after convolution and ECA module, Represents the output of the second, third, and fourth branches, represents the output of the fifth branch, represents the void ratio, Represents splicing, represents upsampling, represents a 3×3 convolution, represents 1×1 convolution, represents pooling, represents the stitched image, Represents the output image; The residual-dense convolution module adopts a densely connected structure, and superimposes the information of each dimension through an efficient attention mechanism module, which can reduce the generation of redundant information while obtaining multi-dimensional information; the EAC efficient channel attention mechanism module is used to aggregate different feature information to improve the interaction of cross-layer information; the convolution blocks with different information are used to adjust the coverage and capture the interaction between local information, and the weights between channels of the feature map are dynamically adjusted to enhance the correlation and expressiveness; for a given feature map F, the size is ,First, perform global average pooling on it to obtain global smooth features across spatial dimensions; The global smooth feature is shown in formula (7), and a global average feature vector with a dimension of C is obtained; (7); in Represents global average pooling, calculates the average value of each channel, and obtains feature map; F(i,j) represents the pixel value at position (i,j) in the input feature map F, where i represents the row index and j represents the column index; It represents the normalization factor, which normalizes the result of global average pooling to ensure that the output feature map falls within the range value; the tensor obtained by pooling is linearly transformed using 1×3 convolution, as shown in formula (8); (8); in Indicates that the pooled tensor is linearly transformed using a 1×3 convolution. Conv represents a 1×3 convolution operation, and W represents the weight matrix of the convolution kernel, which combines and transforms each channel of the input feature map. represents the bias term; This convolution interactively learns the average value of each channel to obtain a new 1×1×C feature map. In this process, a one-dimensional convolution calculation is performed on each channel to calculate the importance weight of each channel. These weights represent the importance of each channel in the local context; the transformed results are then subjected to element-by-element Sigmoid operation to obtain the attention weight tensor S, as shown in formula (9): (9); Among them, the attention weight tensor S represents the importance of each channel; in this process, a one-dimensional convolution operation is performed on each channel to calculate the importance weight of each channel; these weights represent the importance of each channel in the local context; in this case, exp refers to the abbreviation of the function, which means natural exponential; the Sigmoid function has the property of mapping the input to the range (0, 1); finally, by multiplication, the formula is as follows, where "×" represents the element-by-element multiplication between the attention weight of each channel in the attention weight tensor S and the corresponding feature channel in the input feature map F, as shown in formula (10), (10); The feature map O that highlights important information is obtained, and its size is , which allows adaptive learning of the relationship between channels and enhances the representation ability of features; The segmentation network as a segmentation label model can improve the accuracy of the lesion area of ​​the image G(x). Specifically, the Dice loss function is defined as: (11); in represents the intersection of the X and Y sets, and Indicates the number of its elements; The position of the lesion area can be further adjusted by the loss function of the intersection-over-union ratio, which is defined as: (12); The adversarial loss function between the generator G and the discriminator D is defined as, (13); Among them, x is the input CT image of the source domain, is the PET image of the target domain; Experimental setting,The experimental development environment is pytorch2.0.

1. On the NVIDIA RTX 3090 graphics processor, the Adam optimizer is used, the learning rate is 0.0002, the number of model training rounds is 200; the batch size is set to 1.

2. The method for generating a lung cancer CT to PET medical image according to claim 1, characterized in that: The data preprocessing step includes: S1. Convert the original DICOM format CT data and PET data into NIFIT format using SimpleITK library; S2. Linearly register the PET image to the CT image using the FSL tool to obtain paired CT and PET data; S3, adjust the window width of the CT image to 4000, the window level to 1000, and normalize the CT image and PET image to between [-1,1]; S4. Convert the three-dimensional CT images and PET images in NIFIT format into two-dimensional slices in png format to produce paired CT and PET two-dimensional slice datasets for training and testing of model design.

3. The method for generating a medical image from lung cancer CT to PET according to claim 1, characterized in that: The quality of the PET images generated by the generator is evaluated by three evaluation indicators, including mean absolute error, peak signal-to-noise ratio and structural similarity index. The mean absolute error is based on pixel measurement differences, and the lower its value, the higher the quality of the synthesized image. The peak signal-to-noise ratio is human perception of the quality of the reconstructed image, and the higher its value, the better. The structural similarity index shows the overall similarity between the source image and the synthesized image. The higher the value, the more similar the source image is to the synthesized image, and the generated PET image has high quality and is more similar to the real PET image.

4. The method for generating a medical image from lung cancer CT to PET according to claim 3, characterized in that: The mean absolute error is represented by MAE, the peak signal-to-noise ratio is represented by PSNR, and the structural similarity index is represented by SSIM, as shown in formulas (1)-(3), (1); (2); (3); in, represents the true synthetic image value, represents the pixel value of the synthetic image, represents the total number of pixels, represents the peak signal-to-noise ratio, represents the mean square error, Represents structural similarity performance, represents the average value of x and y. represents a constant, represents the covariance of x and y, represents a constant, represents the variance of x, Represents the variance of y.

5. A medical image generation system from lung cancer CT to PET, characterized in that: A system using the method for generating medical images from lung cancer CT to PET as described in any one of claims 1 to 4.

6. A medical image generation device for lung cancer CT to PET, characterized in that: A device using the method for generating a medical image from lung cancer CT to PET as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Lung cancer CT-to-PET medical image cross-modal synthesis method

    CN116152235A

  • Esophageal cancer tumor target segmentation method based on PET / CT image cross-modal feature fusion

    CN116258732A