A lung CT image parameter reconstruction method, system, terminal and storage medium based on deep learning
Through deep learning technology, combined with progressive upsampling skeleton network and 3D convolutional neural network, the conversion from thick-slice CT to thin-slice CT is realized, which solves the problems of poor reconstruction effect and difficult parameter conversion in the existing technology, and improves CT images. resolution and diagnostic accuracy.
Patent Information
- Application Number
- CN202010783409.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-08-06
AI Technical Summary
It is difficult to effectively reconstruct thick-slice CT images with existing technology, and CT images with different parameters cannot be converted into each other, which limits doctors' clinical diagnostic capabilities and the versatility of data.
A lung CT image parameter reconstruction method based on deep learning is used to perform feature learning and image combination through progressive upsampling skeleton network and 3D convolutional neural network, combined with intrapulmonary branches, extrapulmonary branches and lung mask branches, to achieve thick Convert layer CT to thin-slice CT, and use difference perception and feature matching loss functions to improve image details and clarity.
It improves the resolution and diagnostic accuracy of CT images, saves generation time and storage space, enhances the ability to display detailed parts of the lungs, and improves doctors’ diagnostic efficiency during image reading.
Smart Images

Figure CN112017136B
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical imaging and computer-aided technology, and in particular to a method, system, terminal and storage medium for lung CT image parameter reconstruction based on deep learning. Background Art
[0002] Lung CT is currently the most important means of detecting lung diseases. In actual clinical applications, doctors will set the scanning CT parameters according to different situations. Different parameters will directly affect the final CT imaging quality and imaging time, such as CT layer thickness and layer spacing, different reconstruction algorithms and scanning doses, etc.
[0003] Generally, CT with a layer thickness of less than or equal to 2mm is called thin-layer CT, and that with a layer thickness of more than 2mm is called thick-layer CT. The advantage of thin-layer CT is that it has higher image resolution, which can clearly observe lesions in the coronal and sagittal planes, improve the doctor's diagnosis rate, and reduce the number of false positives, so it is recommended for use. However, thick-layer CT is still used in actual clinical practice. On the one hand, its data occupies less space, and thick-layer CT is often stored in the hospital's storage system. On the other hand, in some emergency situations, thick-layer CT takes less time to generate and is more suitable for rapid diagnosis.
[0004] Different reconstruction algorithms will affect the sharpness of the generated image and the image clarity of different tissues and organs. A sharper convolution kernel (such as Siemens' B70, I70, etc.) generates sharper images, which are suitable for observing lung tissues and organs, but also introduces more noise. A relatively smooth convolution kernel (such as Siemens' I30, B30, etc.) generates smoother images, which are more suitable for observing the mediastinum.
[0005] At present, most of the work is on the CT reconstruction problem of a single parameter. Among them, the thick-layer CT reconstruction problem involves the improvement of the D-dimensional resolution in 3D images, so there is less related work. Thick-layer CT reconstruction generally solves the problem from the perspective of image super-resolution. The existing methods can be divided into traditional direct interpolation methods and deep learning algorithms. Traditional interpolation methods, such as bicubic interpolation and bilinear interpolation, have no requirements on the amount of data and fast calculation speed, but the interpolation effect is far from the real thin-layer image and the image is blurred, which basically cannot be applied in actual scenes. Deep learning algorithms can be very close to the real target image when there is a large amount of training data, but the current methods are all direct transfer super-resolution algorithms suitable for natural images, and the context information of the 3D image itself is not fully utilized in the process of upsampling to improve the resolution, which makes the detail generation effect of the lung CT image poor, such as the interlobar fissures and small blood vessels are basically invisible in the generated thin-layer images, which seriously affects the doctor's reading experience.
[0006] There are two types of deep learning algorithms. One is a method based on a 2D model. It feeds the original 3D CT image from the coronal or sagittal perspective into the convolutional neural network as a 2D image, and directly transfers the super-resolution reconstruction method applicable to natural images to improve the image resolution. This method does not fully utilize the contextual information of the 3D image itself in the process of upsampling to improve the resolution, resulting in poor detail generation of lung CT images. For example, the interlobar fissures and small blood vessels are basically invisible in the generated thin-layer images, which seriously affects the doctor's reading experience. In addition, for the convolution kernel reconstruction problem of CT images, current work is limited to 2D network models. Generally, the network structure applicable to natural images is directly transferred to 3D medical images, and the convolution kernel is transformed for each layer of CT images. This method ignores the 3D contextual connection of the data itself, and does not make further optimization for the different data distribution inside and outside the lungs in lung CT. The other type is a 3D model-based method, which first uses an interpolation method to obtain a 3D image of the same size as a thin-layer CT scan, and then sends it to a convolutional neural network for further learning, or directly sends a thick-layer CT scan to the network to obtain a 3D image of the same size as the input, and then applies sub-pixel convolution or transposed convolution to upsample to obtain a thin-layer CT scan of the same size as the target output. However, traditional interpolation methods, such as bicubic interpolation and bilinear interpolation, have no requirements on the amount of data and have fast calculation speeds, but the interpolation effect is far from the actual thin-layer image and the image is blurred, and is basically inapplicable in actual scenarios.
[0007] Due to the limitations of storage space and generation time, doctors in actual clinical scenarios will only select a set of parameters suitable for the needs at the time to generate CT images. However, CT images with fixed parameters may not meet various subsequent needs and may also hinder the implementation of some retrospective studies.
[0008] Based on the above background, there is an urgent need for a lung CT image parameter reconstruction method, system, terminal and storage medium based on deep learning, which can realize the conversion of different parameters of CT images according to needs, such as converting thick-layer CT into thin-layer CT, converting CT reconstructed by one convolution kernel into CT reconstructed by another convolution kernel. While saving CT generation time and storage space, it can adapt to the different needs of doctors, improve the diagnosis rate of corresponding lesions, and avoid missed diagnosis and misdiagnosis. Summary of the invention
[0009] In response to the shortcomings of the existing technology, the present application provides a lung CT image parameter reconstruction method, system, terminal and storage medium based on deep learning, which solves the problems in the existing technology that single parameter CT image reconstruction cannot meet the needs and different parameter CT images cannot be converted into each other.
[0010] To solve the above technical problems, in a first aspect, the present application provides a method for reconstructing lung CT image parameters based on deep learning, comprising:
[0011] Input the acquired lung CT image into a preset progressive upsampling skeleton network model and output a feature image;
[0012] Inputting the feature image into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model composed of an intrapulmonary branch, an extrapulmonary branch, and a lung mask branch;
[0013] Classifying each pixel of the feature image through the lung mask branch, determining the part inside the lung and the part outside the lung and performing classification marking;
[0014] Inputting the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning to generate an intrapulmonary image and an extrapulmonary image;
[0015] The generated images of the intrapulmonary branches and the extrapulmonary branches are combined to form a complete CT generated image.
[0016] Optionally, the step of inputting the lung CT image into a preset progressive upsampling skeleton network model and outputting a feature image comprises:
[0017] The lung CT image is input into the encoding module for feature extraction to obtain a feature image, and the feature image is subjected to multiple convolutions and pooling to achieve downsampling to obtain feature maps with different resolutions;
[0018] Input feature maps of different resolutions into the decoding module for upsampling to obtain the position information of image pixels;
[0019] Adding or connecting in parallel the feature maps of the same scale corresponding to the encoding module and the decoding module to obtain a feature image integrating features of different levels;
[0020] Among them, the progressive upsampling skeleton network model includes an encoding module, a decoding module, and a skip connection module.
[0021] Optionally, the feature image is input into a 3D convolutional neural network model, where the 3D convolutional neural network model is a convolutional neural network model consisting of an intrapulmonary branch, an extrapulmonary branch, and a lung mask branch, including:
[0022] The lung mask branch completes the lung segmentation task, and the intra-lung branch, the extra-lung branch and the lung mask branch are all composed of 3D convolutional layers with the same structure.
[0023] Optionally, classifying each pixel of the feature image through the lung mask branch, determining the intra-pulmonary part and the extra-pulmonary part and performing classification marking, includes:
[0024] Inputting the feature image into the lung mask branch of the convolutional neural network model, outputting the segmentation results of the lung part and the lung part outside the lung of the feature image, and performing classification and marking;
[0025] A cross entropy loss function is used to calculate a loss value between the segmentation result of the feature image and a true lung segmentation gold standard;
[0026] Updating the model parameters of the lung mask branches of the progressive upsampling skeleton network and the convolutional neural network model according to the loss values obtained above;
[0027] The lung mask branch of the progressive upsampling skeleton network and the convolutional neural network model are iteratively trained.
[0028] Optionally, the step of inputting the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning to generate an intrapulmonary image and an extrapulmonary image includes:
[0029] Inputting the extrapulmonary part of the feature image into the extrapulmonary branch of the convolutional neural network model to generate an extrapulmonary image;
[0030] Calculating the loss value between the extrapulmonary image and the true target image using an L1 loss function;
[0031] According to the loss values obtained above, gradient backpropagation and updating are performed on the model parameters of the extrapulmonary branches of the progressive upsampling skeleton network and the convolutional neural network model;
[0032] Performing an inversion operation on each pixel of the extra-pulmonary image to generate an intra-pulmonary image;
[0033] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0034] The model parameters of the lung branches of the progressive upsampling skeleton network and the convolutional neural network model are updated according to the loss values obtained above.
[0035] Optionally, the calculating the loss value between the intra-lung image and the true target image by using a difference perception loss function includes:
[0036] Based on the original L1 loss function, a weight W is added to each pixel of the lung image. i,j,k ;
[0037] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0038] The weight calculation formula is as follows:
[0039]
[0040] in, represents the generated image, X represents the real target image, i, j, k are the pixel subscript positions, and α, β and γ are three hyperparameters.
[0041] Optionally, the method further comprises:
[0042] Inputting the CT generated image into a preset CNN model pre-trained on natural image ImageNet;
[0043] Extract feature maps of the real target image and the generated image of the last three layers of the CNN model;
[0044] The loss value between the feature map of the real target image and the generated image is calculated using the feature matching loss function;
[0045] According to the above loss values, the model parameters of the progressive upsampling skeleton network model and the convolutional neural network model are gradient-backwarded and updated.
[0046] In a second aspect, the present application also provides a lung CT image parameter reconstruction system based on deep learning, comprising:
[0047] A sampling processing unit configured to input the acquired lung CT image into a preset progressive upsampling skeleton network model and output a feature image;
[0048] A model input unit, configured to input the feature image into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model composed of an intrapulmonary branch, an extrapulmonary branch, and a lung mask branch;
[0049] An image segmentation unit, configured to classify each pixel of the feature image through the lung mask branch, determine the intra-pulmonary part and the extra-pulmonary part, and perform classification marking;
[0050] A branch learning unit, configured to input the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning, so as to generate an intrapulmonary image and an extrapulmonary image;
[0051] The image combination unit is used to combine the generated images of the intrapulmonary branches and the extrapulmonary branches to form a complete CT generated image.
[0052] Optionally, the sampling processing unit is specifically used for:
[0053] The lung CT image is input into the encoding module for feature extraction to obtain a feature image, and the feature image is subjected to multiple convolutions and pooling to achieve downsampling to obtain feature maps with different resolutions;
[0054] Input feature maps of different resolutions into the decoding module for upsampling to obtain the position information of image pixels;
[0055] Adding or connecting in parallel the feature maps of the same scale corresponding to the encoding module and the decoding module to obtain a feature image integrating features of different levels;
[0056] Among them, the progressive upsampling skeleton network model includes an encoding module, a decoding module, and a skip connection module.
[0057] Optionally, the model input unit is specifically used for:
[0058] The lung mask branch completes the lung segmentation task, and the intra-lung branch, the extra-lung branch and the lung mask branch are all composed of 3D convolutional layers with the same structure.
[0059] Optionally, the image segmentation unit is specifically used for:
[0060] Inputting the feature image into the lung mask branch of the convolutional neural network model, outputting the segmentation results of the lung part and the lung part outside the lung of the feature image, and performing classification and marking;
[0061] A cross entropy loss function is used to calculate a loss value between the segmentation result of the feature image and a true lung segmentation gold standard;
[0062] Updating the model parameters of the lung mask branches of the progressive upsampling skeleton network and the convolutional neural network model according to the loss values obtained above;
[0063] The lung mask branch of the progressive upsampling skeleton network and the convolutional neural network model are iteratively trained.
[0064] Optionally, the branch learning unit is specifically used for:
[0065] Inputting the extrapulmonary part of the feature image into the extrapulmonary branch of the convolutional neural network model to generate an extrapulmonary image;
[0066] Calculating the loss value between the extrapulmonary image and the true target image using an L1 loss function;
[0067] According to the loss values obtained above, gradient backpropagation and updating are performed on the model parameters of the extrapulmonary branches of the progressive upsampling skeleton network and the convolutional neural network model;
[0068] Performing an inversion operation on each pixel of the extra-pulmonary image to generate an intra-pulmonary image;
[0069] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0070] The model parameters of the lung branches of the progressive upsampling skeleton network and the convolutional neural network model are updated according to the loss values obtained above.
[0071] Optionally, the branch learning unit is further specifically used for:
[0072] Based on the original L1 loss function, a weight W is added to each pixel of the lung image. i,j,k ;
[0073] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0074] The weight calculation formula is as follows:
[0075]
[0076] in, represents the generated image, X represents the real target image, i, j, k are the pixel subscript positions, and α, β and γ are three hyperparameters.
[0077] Optionally, the system further includes a model parameter updating unit, which is specifically used to:
[0078] Inputting the CT generated image into a preset CNN model pre-trained on natural image ImageNet;
[0079] Extract feature maps of the real target image and the generated image of the last three layers of the CNN model;
[0080] The loss value between the feature map of the real target image and the generated image is calculated using the feature matching loss function;
[0081] According to the above loss values, the model parameters of the progressive upsampling skeleton network model and the convolutional neural network model are gradient-backwarded and updated.
[0082] In a third aspect, the present application provides a terminal, including:
[0083] processor, memory, wherein:
[0084] The memory is used to store computer programs.
[0085] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0086] In a fourth aspect, the present application provides a computer storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the methods described in the above aspects.
[0087] Compared with the prior art, this application has the following beneficial effects:
[0088] 1. The deep learning-based lung CT image parameter reconstruction method, system, terminal and storage medium proposed in this application can be applied to thick-layer CT reconstruction problems, CT reconstruction problems with different convolution kernels, and CT reconstruction problems with different doses. It is not limited to the applications given in this article. When implementing reconstruction tasks with different parameters, only corresponding training data is needed for model training.
[0089] 2. Based on the original 2DU-Net network, this application designs a 3D skeleton network that supports progressive upsampling. For the convolution kernel reconstruction task, the skeleton network uses the encoding and decoding process to fully utilize the 3D context information of the input data and features of different scales through the jump connection structure to perform feature extraction and feature fusion at different levels. For the problem of thick-layer CT reconstruction, a different pre- or post-upsampling method from the past is adopted, and the upsampling process is integrated into the overall skeleton network. It not only effectively solves the problem of different D-dimensional resolutions of the input and output images in the thick-layer CT reconstruction task, and improves the resolution of the generated image, but also saves GPU memory consumption and computing time, and improves the efficiency of the network model in actual clinical scenarios.
[0090] 3. This application proposes a multi-branch framework structure based on the skeleton network, introduces the lung segmentation task, learns the inner and outer parts of the lung respectively, and finally combines the generated images of the two branches to form a complete CT image, further reducing the difficulty of network learning and making it easier for the network to fit the real image according to the respective distribution characteristics of the inner and outer parts of the lung; at the same time, due to the introduction of the lung mask branch, not only the problem of lung CT image parameter reconstruction is solved, but also the lung segmentation problem of the corresponding generated CT image is solved.
[0091] 4. In terms of generation effect, existing methods rarely pay attention to the generation effect of detailed parts of the lungs, such as interlobar fissures and small blood vessels. These parts are basically unable to be displayed by the models trained by existing methods. In order to solve this problem, a difference perception loss function and a feature matching loss function are proposed. In the training process of the multi-branch framework structure, this application utilizes the difference in HU values of different parts, and by applying the difference perception loss function, the weight of the part with a smaller HU value is increased, which effectively improves the generation effect of the image details of the lung texture; by applying the feature matching loss function, the generated image and the real image are brought closer at the feature level, which reduces the interference of a large amount of noise in the CT image itself on the network learning, visually improves the quality of the generated image, and makes it possible for doctors to use the generated CT images for film reading and diagnosis. Compared with previous methods, the network framework training model proposed in this application has been significantly improved in both visual and quantitative indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0092] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0093] Figure 1 A flowchart of a lung CT image parameter reconstruction method based on deep learning provided in an embodiment of the present application;
[0094] Figure 2 A schematic diagram of a network model structure for lung CT image parameter reconstruction based on deep learning provided in an embodiment of the present application;
[0095] Figure 3 A schematic diagram of the structure of a lung CT image parameter reconstruction system based on deep learning provided in another embodiment of the present application;
[0096] Figure 4 A schematic diagram of the structure of a terminal system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0097] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0098] Please refer to Figure 1 , Figure 1 A flowchart of a lung CT image parameter reconstruction method based on deep learning provided in an embodiment of the present application, the method 100 includes:
[0099] S101: inputting the acquired lung CT image into a preset progressive upsampling skeleton network model, and outputting a feature image;
[0100] S102: inputting the feature image into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model consisting of an intra-pulmonary branch, an extra-pulmonary branch, and a lung mask branch;
[0101] S103: classifying each pixel of the feature image through the lung mask branch, determining the part inside the lung and the part outside the lung, and marking the parts according to the classification;
[0102] S104: inputting the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning to generate an intrapulmonary image and an extrapulmonary image;
[0103] S105: Combining the generated images of the intrapulmonary branches and the extrapulmonary branches to form a complete CT generated image.
[0104] Specifically, Figure 2 As shown, the present application is a multi-branch lung CT parameter reconstruction algorithm with a progressive upsampling skeleton network. The progressive upsampling skeleton network is used as the shared weight network in the front, and is divided into three different branches, corresponding to the intrapulmonary branch, the extrapulmonary branch, and the lung mask branch, respectively. Each branch is composed of 3D convolutional layers of the same structure, and the final CT image generated by the model is a combination of the results of these three branches. Different branches learn different areas inside and outside the lungs to reduce the learning difficulty of the network. Before entering the branch, it can be understood as learning some common features inside and outside the lungs, and after entering the branch, it learns their respective detailed features.
[0105] Since the applicant discovered that the HU value distribution inside and outside the human lungs is significantly different, and in previous methods, neither the thick-layer CT reconstruction task nor the convolution kernel reconstruction task has utilized this feature, and not distinguishing between the inside and outside of the lungs and learning together will affect the fitting effects of each, this application introduces a lung segmentation task through a multi-branch framework design, and learns the inside and outside of the lungs separately, and finally combines the generated images of the two branches to form a complete CT image. In terms of generation effect, previous methods rarely pay attention to the generation effect of detailed parts of the lungs, such as interlobar fissures and small blood vessels. These parts are basically unable to be displayed by the models trained using existing methods. In order to solve this problem, a difference perception loss function and a feature matching loss function are proposed to reduce the interference of noise in the image, and pay more attention to the details of the parts with smaller HU values themselves during the learning process. Through the above design, compared with previous methods, the model proposed in this application has been significantly improved in both visual and quantitative indicators.
[0106] Therefore, this application uses deep learning technology to achieve the transformation of different parameters of CT images. In the thick-layer CT reconstruction task, for D·W·H 3D images, the network model can achieve an increase in the number of layers in the D dimension. In the convolution kernel reconstruction task of the reconstruction algorithm, the network model can transform the sharpness of the image while maintaining the same resolution.
[0107] Based on the above embodiment, as an optional embodiment, the S101 inputs the lung CT image into a preset progressive upsampling skeleton network model and outputs a feature image, including:
[0108] The lung CT image is input into the encoding module for feature extraction to obtain a feature image, and the feature image is subjected to multiple convolutions and pooling to achieve downsampling to obtain feature maps with different resolutions;
[0109] Input feature maps of different resolutions into the decoding module for upsampling to obtain the position information of image pixels;
[0110] Adding or connecting in parallel the feature maps of the same scale corresponding to the encoding module and the decoding module to obtain a feature image integrating features of different levels;
[0111] Among them, the progressive upsampling skeleton network model includes an encoding module, a decoding module, and a skip connection module.
[0112] Specifically, the three dimensions of the input and output images of the 3D skeleton network that supports progressive upsampling are denoted as D, W, and H respectively. The entire structure is symmetrically U-shaped and is divided into an encoding part and a decoding part. The encoding part performs downsampling and the decoding part performs upsampling. The decoding module includes a plurality of upsampling units connected in sequence, each of which includes a convolutional layer and a non-linear activation layer connected in sequence, and the convolutional layer is used to adjust the feature dimension of the input image; the encoding module includes a plurality of downsampling units, each of which includes a plurality of convolutional layers and a non-linear activation layer connected in sequence. In the encoding part, the input image is downsampled a total of 5 times to fully obtain features at different levels and 3D contextual information. According to the number of downsampling times, we denote it as arrive In the decoding part, upsampling is still performed 5 times, which is symmetrical with downsampling and is recorded as f1 to f5. The 3D skeleton network supporting progressive upsampling proposed in this application is based on the original 2DU-Net structure. The improved network better integrates features of different levels and 3D context information, and can also meet the requirements of increasing image resolution in thick-layer CT reconstruction tasks. In addition, compared with the jump connection of the original U-Net, this application will perform a corresponding jump connection before each layer. The layer performs a transposed convolution operation and then combines it with f i+1 Layer stitching, because the stitching operation requires the image sizes to be exactly the same, ensure that the image sizes of different layers are the same.
[0113] It should be noted that for thick-layer CT reconstruction tasks, when downsampling, the downsampling rates of the three dimensions D, W, and H are not the same. W and H are downsampled 32 times, while the D dimension is only downsampled 2 times. This is to retain as much spatial information as possible, because 2x downsampling can guarantee a sufficient receptive field. When upsampling, the upsampling rate of the D dimension will be larger than the downsampling rate. This design can ultimately achieve different sizes of input and output D dimensions. For convolution kernel reconstruction tasks, the network will keep the upsampling rate and downsampling rate the same to ensure that the input and output image resolution sizes remain unchanged. The skeleton network obtains different output sizes by modifying the size of the convolution kernel or step size in the network, which can be applied to reconstruction tasks with different requirements.
[0114] The progressive upsampling skeleton network proposed in this application can have different downsampling and upsampling times, as well as different upsampling rates and downsampling rates. For thick-layer CT reconstruction tasks, this structure mainly wants to protect the strategy of integrating resolution improvement into the original U-Net network, that is, gradually increasing the size of the D dimension of the 3D image through jump connections in the U-shaped structure of the network. For convolution kernel reconstruction tasks, this structure can effectively utilize 3D contextual information and improve model effects.
[0115] Based on the above embodiment, as an optional embodiment, the S102 inputs the feature image into a 3D convolutional neural network model, and the 3D convolutional neural network model is a convolutional neural network model composed of an intra-pulmonary branch, an extra-pulmonary branch, and a lung mask branch, including:
[0116] The lung mask branch completes the lung segmentation task, and the intra-lung branch, the extra-lung branch and the lung mask branch are all composed of 3D convolutional layers with the same structure.
[0117] Specifically, the lung mask branch completes the lung segmentation task and classifies each pixel, with the part inside the lung classified as 1 and the part outside the lung classified as 0, denoted as M. The lung mask branch only learns the part inside the lung, denoted as X i ; Extrapulmonary branch only learns the extrapulmonary part, denoted as X o The final CT image generated by the model is the combination of the three branch results, which can be expressed as M⊙X i +(1-M)⊙X o , where ⊙ represents the multiplication of the corresponding pixels. In addition, in terms of loss function, different loss functions are designed for the three branches.
[0118] Based on the above embodiment, as an optional embodiment, the step S103 classifies each pixel of the feature image through the lung mask branch, determines the part inside the lung and the part outside the lung, and performs classification and labeling, including:
[0119] Inputting the feature image into the lung mask branch of the convolutional neural network model, outputting the segmentation results of the lung part and the lung part outside the lung of the feature image, and performing classification and marking;
[0120] A cross entropy loss function is used to calculate a loss value between the segmentation result of the feature image and a true lung segmentation gold standard;
[0121] Updating the model parameters of the lung mask branches of the progressive upsampling skeleton network and the convolutional neural network model according to the loss values obtained above;
[0122] The lung mask branch of the progressive upsampling skeleton network and the convolutional neural network model are iteratively trained.
[0123] Specifically, for the lung mask branch, since it can be regarded as a segmentation task, the cross entropy loss function commonly used in segmentation tasks is directly adopted. A softmax operation is performed on the two channels output by this branch, and then the loss value is calculated with the real lung segmentation gold standard.
[0124] Based on the above embodiment, as an optional embodiment, the S104 inputs the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning to generate an intrapulmonary image and an extrapulmonary image, including:
[0125] Inputting the extrapulmonary part of the feature image into the extrapulmonary branch of the convolutional neural network model to generate an extrapulmonary image;
[0126] Calculating the loss value between the extrapulmonary image and the true target image using an L1 loss function;
[0127] According to the loss values obtained above, gradient backpropagation and updating are performed on the model parameters of the extrapulmonary branches of the progressive upsampling skeleton network and the convolutional neural network model;
[0128] Performing an inversion operation on each pixel of the extra-pulmonary image to generate an intra-pulmonary image;
[0129] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0130] The model parameters of the lung branches of the progressive upsampling skeleton network and the convolutional neural network model are updated according to the loss values obtained above.
[0131] It should be noted that the real target image here is the CT image under the target parameter setting of the CT device.
[0132] Based on the above embodiment, as an optional embodiment, the step of calculating the loss value between the intra-lung image and the true target image using the difference perception loss function in S104 includes:
[0133] Based on the original L1 loss function, a weight W is added to each pixel of the lung image. i,j,k ;
[0134] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0135] The weight calculation formula is as follows:
[0136]
[0137] in, represents the generated image, X represents the real target image, i, j, k are the pixel subscript positions, and α, β and γ are three hyperparameters.
[0138] Specifically, the present application found that the HU value distribution inside and outside the lungs is not the same, so the loss value is calculated for the lung branches and the lung branches separately:
[0139] For the extrapulmonary branch, the lung mask information is used to ignore the part inside the lung, calculate the L1 loss value in the extrapulmonary part, and then perform gradient backpropagation.
[0140] For the branches in the lungs, since the generation effect of some details in the lungs, such as interlobar fissures and small blood vessels, is poor, it is found through statistics that these parts have the characteristics of small HU values and a small proportion of the overall pixels in the lungs. Therefore, a difference perception loss function is proposed for the parts in the lungs, which adds a weight to each pixel based on the original L1 loss value. The purpose of this weight is to increase the attention of the position with a smaller HU value in the lungs under the same L1 error, and increase the proportion of the loss value of this part. The weight of each pixel is calculated as follows:
[0141]
[0142] in, represents the generated image, X represents the real target image, i, j, k are the pixel subscript positions, α, β and γ are three hyperparameters, which control the degree of influence of HU value difference on the weight. In this application, the values of α, β and γ are set to 0.5, 5 and 0.5 respectively.
[0143] Based on the above embodiment, as an optional embodiment, the method 100 further includes:
[0144] Inputting the CT generated image into a preset CNN model pre-trained on natural image ImageNet;
[0145] Extract feature maps of the real target image and the generated image of the last three layers of the CNN model;
[0146] The loss value between the feature map of the real target image and the generated image is calculated using the feature matching loss function;
[0147] According to the above loss values, the model parameters of the progressive upsampling skeleton network model and the convolutional neural network model are gradient-backwarded and updated.
[0148] Specifically, in addition to the loss function of each branch mentioned above, a feature matching loss function is additionally added to the generated image obtained by the final merger to reduce the impact of noise on network learning. This is because the real target image generally has a lot of noise, and these useless noises should not be overly concerned during the network learning process. The implementation of the feature matching loss function uses a CNN model pre-trained on the natural image ImageNet, extracts the feature maps of the real target image and the generated image of the last three layers of the CNN model, and uses the sum of the square errors of these three sets of feature maps as the loss value for gradient backpropagation. This loss function brings the generated image and the real image closer at the feature level, ignores the impact of the noise in the image itself, and allows the network to focus more on learning the image content.
[0149] Please refer to Figure 3 , Figure 3 A schematic diagram of a deep learning-based lung CT image parameter reconstruction system provided in an embodiment of the present application is provided. The system 300 includes:
[0150] The sampling processing unit 301 is configured to input the acquired lung CT image into a preset progressive upsampling skeleton network model and output a feature image;
[0151] A model input unit 302 is configured to input the feature image into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model composed of an intra-pulmonary branch, an extra-pulmonary branch, and a lung mask branch;
[0152] An image segmentation unit 303 is configured to classify each pixel of the feature image through the lung mask branch, determine the intra-pulmonary part and the extra-pulmonary part, and perform classification marking;
[0153] A branch learning unit 304 is configured to input the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning to generate an intrapulmonary image and an extrapulmonary image;
[0154] The image combining unit 305 is used to combine the generated images of the intrapulmonary branches and the extrapulmonary branches to form a complete CT generated image.
[0155] Based on the above embodiment, as an optional embodiment, the sampling processing unit 301 is specifically used for:
[0156] The lung CT image is input into the encoding module for feature extraction to obtain a feature image, and the feature image is subjected to multiple convolutions and pooling to achieve downsampling to obtain feature maps with different resolutions;
[0157] Input feature maps of different resolutions into the decoding module for upsampling to obtain the position information of image pixels;
[0158] Adding or connecting in parallel the feature maps of the same scale corresponding to the encoding module and the decoding module to obtain a feature image integrating features of different levels;
[0159] Among them, the progressive upsampling skeleton network model includes an encoding module, a decoding module, and a skip connection module.
[0160] Based on the above embodiment, as an optional embodiment, the model input unit 302 is specifically used for:
[0161] The lung mask branch completes the lung segmentation task, and the intra-lung branch, the extra-lung branch and the lung mask branch are all composed of 3D convolutional layers with the same structure.
[0162] Based on the above embodiment, as an optional embodiment, the image segmentation unit 303 is specifically used for:
[0163] Inputting the feature image into the lung mask branch of the convolutional neural network model, outputting the segmentation results of the lung part and the lung part outside the lung of the feature image, and performing classification and marking;
[0164] A cross entropy loss function is used to calculate a loss value between the segmentation result of the feature image and a true lung segmentation gold standard;
[0165] Updating the model parameters of the lung mask branches of the progressive upsampling skeleton network and the convolutional neural network model according to the loss values obtained above;
[0166] The lung mask branch of the progressive upsampling skeleton network and the convolutional neural network model are iteratively trained.
[0167] Based on the above embodiment, as an optional embodiment, the branch learning unit 304 is specifically used for:
[0168] Inputting the extrapulmonary part of the feature image into the extrapulmonary branch of the convolutional neural network model to generate an extrapulmonary image;
[0169] Calculating the loss value between the extrapulmonary image and the true target image using an L1 loss function;
[0170] According to the loss values obtained above, gradient backpropagation and updating are performed on the model parameters of the extrapulmonary branches of the progressive upsampling skeleton network and the convolutional neural network model;
[0171] Performing an inversion operation on each pixel of the extra-pulmonary image to generate an intra-pulmonary image;
[0172] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0173] The model parameters of the lung branches of the progressive upsampling skeleton network and the convolutional neural network model are updated according to the loss values obtained above.
[0174] Based on the above embodiment, as an optional embodiment, the branch learning unit 304 is further specifically used for:
[0175] Based on the original L1 loss function, a weight W is added to each pixel of the lung image. i,j,k ;
[0176] Calculating a loss value between the lung image and a true target image using a difference perception loss function;
[0177] The weight calculation formula is as follows:
[0178]
[0179] in, represents the generated image, X represents the real target image, i, j, k are the pixel subscript positions, and α, β and γ are three hyperparameters.
[0180] Based on the above embodiment, as an optional embodiment, the system 300 further includes a model parameter updating unit, which is specifically used to:
[0181] Inputting the CT generated image into a preset CNN model pre-trained on natural image ImageNet;
[0182] Extract feature maps of the real target image and the generated image of the last three layers of the CNN model;
[0183] The loss value between the feature map of the real target image and the generated image is calculated using the feature matching loss function;
[0184] According to the above loss values, the model parameters of the progressive upsampling skeleton network model and the convolutional neural network model are gradient-backwarded and updated.
[0185] It should be noted that the progressive upsampling skeleton network and convolutional neural network are the front and back parts of the model, and the entire model is trained end-to-end through the feature matching loss function.
[0186] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of a terminal system 400 provided in an embodiment of the present application. The terminal system 400 can be used to execute the deep learning-based lung CT image parameter reconstruction method provided in an embodiment of the present invention.
[0187] The terminal system 400 may include: a processor 401, a memory 402 and a communication unit 403. These components communicate via one or more buses. Those skilled in the art may understand that the server structure shown in the figure does not limit the present invention. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0188] The memory 402 can be used to store the execution instructions of the processor 401. The memory 402 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 402 are executed by the processor 401, the terminal system 400 can perform some or all of the steps in the following method embodiments.
[0189] The processor 401 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory, the various functions of the electronic terminal and / or processing data are executed. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 401 can include only a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0190] The communication unit 403 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0191] The present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0192] 1. The deep learning-based lung CT image parameter reconstruction method, system, terminal and storage medium proposed in this application can be applied to thick-layer CT reconstruction problems, CT reconstruction problems with different convolution kernels, and CT reconstruction problems with different doses. It is not limited to the applications given in this article. When implementing reconstruction tasks with different parameters, only corresponding training data is needed for model training.
[0193] 2. Based on the original 2D U-Net network, this application designs a 3D skeleton network that supports progressive upsampling. For the convolution kernel reconstruction task, the skeleton network uses the encoding and decoding process to fully utilize the 3D context information of the input data and features of different scales through the jump connection structure to perform feature extraction and feature fusion at different levels. For the problem of thick-layer CT reconstruction, a pre- or post-upsampling method different from the previous one is adopted, and the upsampling process is integrated into the overall skeleton network. It not only effectively solves the problem of different D-dimensional resolutions of input and output images in thick-layer CT reconstruction tasks, and improves the resolution of generated images, but also saves GPU memory consumption and computing time, and improves the efficiency of network model application in actual clinical scenarios.
[0194] 3. This application proposes a multi-branch framework structure based on the skeleton network, introduces the lung segmentation task, learns the inner and outer parts of the lung respectively, and finally combines the generated images of the two branches to form a complete CT image, further reducing the difficulty of network learning and making it easier for the network to fit the real image according to the respective distribution characteristics of the inner and outer parts of the lung; at the same time, due to the introduction of the lung mask branch, not only the problem of lung CT image parameter reconstruction is solved, but also the lung segmentation problem of the corresponding generated target CT image is solved.
[0195] 4. In terms of generation effect, existing methods rarely pay attention to the generation effect of detailed parts of the lungs, such as interlobar fissures and small blood vessels. These parts are basically unable to be displayed by the models trained by existing methods. In order to solve this problem, a difference perception loss function and a feature matching loss function are proposed. In the training process of the multi-branch framework structure, this application utilizes the difference in HU values of different parts, and by applying the difference perception loss function, the weight of the part with a smaller HU value is increased, which effectively improves the generation effect of the image details of the lung texture; by applying the feature matching loss function, the generated image and the real image are brought closer at the feature level, which reduces the interference of a large amount of noise in the CT image itself on the network learning, visually improves the quality of the generated image, and makes it possible for doctors to use the generated CT images for film reading and diagnosis. Compared with previous methods, the network framework training model proposed in this application has been significantly improved in both visual and quantitative indicators.
[0196] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0197] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0198] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for lung CT image parameter reconstruction based on deep learning, characterized in that: include: Input the acquired lung CT image into a preset progressive upsampling skeleton network model and output a feature image; Inputting the feature image into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model composed of an intrapulmonary branch, an extrapulmonary branch, and a lung mask branch; Classifying each pixel of the feature image through the lung mask branch, determining the part inside the lung and the part outside the lung and performing classification marking; Inputting the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning to generate an intrapulmonary image and an extrapulmonary image; Combining the generated images of the intrapulmonary branches and the extrapulmonary branches to form a complete CT generated image; Wherein: the acquired lung CT image is input into a preset progressive upsampling skeleton network model to output a feature image, including: The lung CT image is input into the encoding module for feature extraction to obtain a feature image, and the feature image is subjected to multiple convolutions and pooling to achieve downsampling to obtain feature maps with different resolutions; Input feature maps of different resolutions into the decoding module for upsampling to obtain the position information of image pixels; Adding or connecting in parallel the feature maps of the same scale corresponding to the encoding module and the decoding module to obtain a feature image integrating features of different levels; Among them, the progressive upsampling skeleton network model includes an encoding module, a decoding module, and a skip connection module.
2. The method for lung CT image parameter reconstruction based on deep learning according to claim 1, characterized in that: The feature image is input into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model composed of an intrapulmonary branch, an extrapulmonary branch, and a lung mask branch, including: The lung mask branch completes the lung segmentation task, and the intra-lung branch, the extra-lung branch and the lung mask branch are all composed of 3D convolutional layers with the same structure.
3. The method for lung CT image parameter reconstruction based on deep learning according to claim 1, characterized in that: The step of classifying each pixel of the feature image through the lung mask branch, determining the part inside the lung and the part outside the lung and performing classification marking includes: Inputting the feature image into the lung mask branch of the convolutional neural network model, outputting the segmentation results of the lung part and the lung part outside the lung of the feature image, and performing classification and marking; A cross entropy loss function is used to calculate a loss value between the segmentation result of the feature image and a true lung segmentation gold standard; Updating the model parameters of the lung mask branches of the progressive upsampling skeleton network and the convolutional neural network model according to the loss values obtained above; The lung mask branch of the progressive upsampling skeleton network and the convolutional neural network model are iteratively trained.
4. The method for lung CT image parameter reconstruction based on deep learning according to claim 1, characterized in that: The step of inputting the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch for feature learning to generate an intrapulmonary image and an extrapulmonary image comprises: Inputting the extrapulmonary part of the feature image into the extrapulmonary branch of the convolutional neural network model to generate an extrapulmonary image; Calculating the loss value between the extrapulmonary image and the true target image using an L1 loss function; According to the loss values obtained above, gradient backpropagation and updating are performed on the model parameters of the extrapulmonary branches of the progressive upsampling skeleton network and the convolutional neural network model; Performing an inversion operation on each pixel of the extra-pulmonary image to generate an intra-pulmonary image; Calculating a loss value between the lung image and a true target image using a difference perception loss function; The model parameters of the lung branches of the progressive upsampling skeleton network and the convolutional neural network model are updated according to the loss values obtained above.
5. The method for lung CT image parameter reconstruction based on deep learning according to claim 4, characterized in that: The calculating the loss value between the intra-lung image and the real target image by using the difference perception loss function includes: Based on the original L1 loss function, a weight W is added to each pixel of the lung image. i,j,k ; Calculating a loss value between the lung image and a true target image using a difference perception loss function; The weight calculation formula is as follows: in, represents the generated image, X represents the real target image, i, j, k are the pixel subscript positions, and α, β and γ are three hyperparameters.
6. The method for lung CT image parameter reconstruction based on deep learning according to claim 1, characterized in that: The method further comprises: Inputting the CT generated image into a preset CNN model pre-trained on natural image ImageNet; Extract feature maps of the real target image and the generated image of the last three layers of the CNN model; The loss value between the feature map of the real target image and the generated image is calculated using the feature matching loss function; According to the above loss values, the model parameters of the progressive upsampling skeleton network model and the convolutional neural network model are gradient-backwarded and updated.
7. A lung CT image parameter reconstruction system based on deep learning, characterized in that: include: A sampling processing unit configured to input the acquired lung CT image into a preset progressive upsampling skeleton network model and output a feature image; A model input unit, configured to input the feature image into a 3D convolutional neural network model, wherein the 3D convolutional neural network model is a convolutional neural network model composed of an intrapulmonary branch, an extrapulmonary branch, and a lung mask branch; An image segmentation unit, configured to classify each pixel of the feature image through the lung mask branch, determine the intra-pulmonary part and the extra-pulmonary part, and perform classification marking; A branch learning unit, configured to input the intrapulmonary part and the extrapulmonary part of the feature image into the intrapulmonary branch and the extrapulmonary branch respectively for feature learning, so as to generate an intrapulmonary image and an extrapulmonary image; An image combining unit, used to combine the generated images of the intrapulmonary branches and the extrapulmonary branches to form a complete CT generated image; Wherein: the sampling processing unit is specifically used for: The lung CT image is input into the encoding module for feature extraction to obtain a feature image, and the feature image is subjected to multiple convolutions and pooling to achieve downsampling to obtain feature maps with different resolutions; Input feature maps of different resolutions into the decoding module for upsampling to obtain the position information of image pixels; Adding or connecting in parallel the feature maps of the same scale corresponding to the encoding module and the decoding module to obtain a feature image integrating features of different levels; Among them, the progressive upsampling skeleton network model includes an encoding module, a decoding module, and a skip connection module.
8. A terminal, characterized in that: include: processor; A memory for storing execution instructions of the processor; The processor is configured to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
