Adaptive expansion method of PET-CT lung cancer image database based on artificial intelligence
By using a network model based on feedback mechanism and dual-gate attention in PET-CT lung cancer image processing for deblurring processing and a dual-branch modified residual network for quality assessment, the low quality of PET-CT lung cancer image repair in the existing technology is solved. and the problem of slow evaluation efficiency, improving the adaptability of the image database.
Patent Information
- Application Number
- CN202410352253.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-26
AI Technical Summary
The existing PET-CT lung cancer image repair methods have poor repair quality and low efficiency, and lack unified quality assessment standards, resulting in poor adaptability of the image database.
A network model based on a feedback mechanism and double-gate attention is used for deblurring and image restoration, and a dual-branch correction residual network is used for quality assessment to ensure the consistency and efficiency of image quality.
It improves the quality of reconstructed images, reduces computational costs, enables rapid and accurate quality assessment of PET-CT lung cancer images, and expands the adaptability of the image database.
Smart Images

Figure CN118134893B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing, and in particular relates to an adaptive expansion method of a PET-CT lung cancer image database based on artificial intelligence. Background Art
[0002] PET-CT lung cancer imaging is an imaging technology that combines positron emission tomography. It can provide detailed information about the structure and function of the lungs, as well as detect the location, size and metabolic activity of lung tumors. PET-CT lung cancer imaging can help doctors determine the location and distribution of lung cancer, evaluate the biological characteristics of tumors, and observe the progression of tumors. However, due to the aging of image acquisition equipment, PET-CT lung cancer images are blurred, defective, and have low resolution, which makes it difficult for imaging doctors to accurately assess lesions. Existing image restoration methods have poor restoration quality and low efficiency when repairing PET-CT lung cancer images. The quality assessment method for restored images is mainly manual assessment, which is inefficient and has no unified standard. The image quality varies, resulting in poor adaptability of the PET-CT lung cancer imaging database. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an adaptive expansion method of a PET-CT lung cancer image database based on artificial intelligence. In view of the problem that the existing image restoration method has poor restoration quality and low efficiency when repairing PET-CT lung cancer images, the present invention uses a network model based on a feedback mechanism and a dual-gate attention to deblur the PET-CT lung cancer images, uses a decoder network based on an adaptive feedback mechanism to improve the quality of reconstructed images, uses a dual-gated attention module to avoid convolution redundancy and channel redundancy, reduces computational costs, and improves reconstruction efficiency; in view of the problem that the existing quality assessment method for restored images has low efficiency, no unified standards, and uneven image quality, resulting in poor adaptability of the PET-CT lung cancer image database, the present invention uses a dual-branch corrected residual network model to perform a unified standard quality assessment on the PET-CT lung cancer images, thereby achieving a fast and accurate assessment of image quality, unifying the image quality standard, and expanding the adaptability of the PET-CT lung cancer image database.
[0004] The technical solution adopted by the present invention is as follows: an adaptive expansion method of a PET-CT lung cancer image database based on artificial intelligence, specifically comprising the following steps:
[0005] Step S1: image acquisition, acquiring PET-CT lung cancer images taken by the old CT imaging device and defining them as images to be repaired, and acquiring clear PET-CT lung cancer images taken by the new CT imaging device and defining them as clear images;
[0006] Step S2: Image deblurring: using a network model based on feedback mechanism and dual-gate attention to deblur the image to be repaired, and obtain a deblurred image;
[0007] Step S3: Image restoration, using a convolutional neural network to supplement the missing values of the deblurred image to obtain a restored image;
[0008] Step S4: image enhancement, performing detail enhancement processing on the repaired image to obtain an enhanced image;
[0009] Step S5: Image quality assessment: a dual-branch residual network is used to assess the quality of the enhanced image to obtain a quality score, and the network model based on the feedback mechanism and dual-gate attention and the convolutional neural network model are optimized and iterated according to the quality score. The optimized network model based on the feedback mechanism and dual-gate attention and the convolutional neural network model are used to process all the images to be repaired to obtain an enhanced image set.
[0010] Step S6: Data is stored in the database, a new image storage database is created, and the enhanced image set is stored in the new image storage database to obtain a reconstructed PET-CT lung cancer image database.
[0011] Further, step S2 specifically includes the following steps:
[0012] Step S21: data preprocessing, preprocessing all clear images to obtain preprocessed clear images;
[0013] Step S22: artificially adding noise, randomly adding noise to the pre-processed clear image to obtain a noisy image;
[0014] Step S23: Denoising training, using the pre-processed clear image and the noisy image to perform denoising training on the network model based on the feedback mechanism and the dual-gate attention;
[0015] Further, step S23 specifically includes the following steps:
[0016] Step S231: Initialize image parameters and models, initialize the dimensions of the preprocessed clear image and noisy image to (C, H, W), where C is the number of channels, H is the image height, and W is the image width, and define them as primary features with dimensions (C, H, W), initialize the encoder, dual-gated attention module, feedback-based decoder and loss function of the network model based on feedback mechanism and dual-gate attention, and set the loss function threshold;
[0017] Step S232: Encoder feature extraction, use an encoder with a convolution kernel size of 3*3 to extract features from the noisy image, and obtain a primary feature with a dimension of (2C, H / 2, W / 2). Use an encoder with a convolution kernel size of 2*2 and a step size of 2 to downsample and extract features from the primary feature, and obtain a secondary feature with a dimension of (4C, H / 4, W / 4). Divide the secondary feature by channel to obtain 4 tertiary features with dimensions of (C, H / 4, W / 4).
[0018] Step S233: feature enhancement, using a dual-gated attention module to capture long-range dependencies on the three-level features to obtain enhanced features;
[0019] Further, step S233 specifically includes the following steps:
[0020] Step S2331: feature normalization, normalizing the three-level features to obtain normalized features with dimensions of (C, H / 4, W / 4);
[0021] Step S2332: Channel transformation, using 1*1 convolution to perform channel transformation convolution on the normalized features, expanding the number of channels of the normalized features from C to (2m+n)C, and obtaining a channel expansion feature with a dimension of ((2m+n)C, H / 4, W / 4), where m and n are hyperparameters for controlling the reduction factor used to remove the channel, where 0 <m≤1,0<n≤1;
[0022] Step S2333: feature splitting, splitting the channel extension features according to the channels, obtaining two split features with mC channels and one split feature with nC channels, and constructing a H×W×C learning matrix ω;
[0023] Step S2334: feature mapping, performing Fourier transform on a shunt feature with mC channels and a shunt feature with nC channels, respectively, to obtain frequency domain feature m and frequency domain feature n;
[0024] Step S2335: Dependency acquisition, multiply the frequency domain feature m and the frequency domain feature n by the learning matrix ω respectively to obtain the frequency domain dependency feature F m and the frequency domain dependent feature F n ;
[0025] Step S2336: Feature reorganization, frequency domain dependent feature F m and the frequency domain dependent feature F n Perform inverse Fourier transform on each of them to get the dependent feature Y m With dependent feature Y n , using 1*1 convolution to rely on feature Y m The number of channels of the shunt feature with the number of channels mC is converted to nC and combined with the dependent feature Y nReorganize to obtain the final dependent feature, where the number of channels of the final dependent feature is nC;
[0026] Step S2337: feature output, using 1*1 convolution to convert the number of channels of the final dependent feature into C, and perform weighted summation with the normalized feature to obtain an enhanced feature, where the dimension of the enhanced feature is (C, H / 4, W / 4);
[0027] Step S234: image reconstruction, using a decoder based on a feedback mechanism to reconstruct the image to obtain a denoised image;
[0028] Further, step S234 specifically includes the following steps:
[0029] Step S2341: feature level upsampling, upsampling the enhanced feature with dimension (C, H / 4, W / 4) to obtain an enhanced feature with dimension (2C, H / 2, W / 2), and weighted fusion of the enhanced feature with dimension (2C, H / 2, W / 2) and the level-one feature with dimension (2C, H / 2, W / 2) to obtain a level-one enhanced feature with dimension (2C, H / 2, W / 2);
[0030] Step S2342: feature secondary upsampling, after using the residual block to process the primary enhanced feature of dimension (2C, H / 2, W / 2), upsample the primary enhanced feature of dimension (2C, H / 2, W / 2) to obtain the primary enhanced feature of dimension (C, H, W), perform weighted summation on the primary enhanced feature of dimension (C, H, W) and the primary feature of dimension (C, H, W), and obtain the secondary enhanced feature of dimension (C, H, W);
[0031] Step S2343: converting features into images, using deconvolution and activation functions to convert the secondary enhanced features of dimension (C, H, W) into denoised images, where the image has dimension (C, H, W);
[0032] Step S235: adversarial training, using the denoised image and the clear image for adversarial training, and using the loss function to calculate the loss λ;
[0033] Step S236: Feedback transmission, extracting features of the denoised image and defining them as feedback features, wherein the dimension of the feedback features is (C, H, W), using 3*3 convolution to convolve the feedback features into feedback features of dimension (C, H / 4, W / 4), and multiplying the feedback features of dimension (C, H / 4, W / 4) by the loss λ and performing weighted summation with the enhanced features of dimension (C, H / 4, W / 4) to obtain a new enhanced image of dimension (C, H / 4, W / 4);
[0034] Step S237: multi-level transmission, repeating steps S234 to S236 until the loss function reaches the loss function threshold, and obtaining the final denoised image and the trained network model based on feedback mechanism and dual-gate attention;
[0035] Step S24: Deblurring the image to be repaired, using the trained network model based on feedback mechanism and dual-gate attention to deblur the image to be repaired, to obtain a deblurred image.
[0036] Further, step S5 specifically includes the following steps:
[0037] Step S51: image conversion, converting the enhanced image into a grayscale image and a color filtered image;
[0038] Step S52: dual-branch corrected residual feature extraction, using a dual-branch corrected residual feature extraction network to extract features of the grayscale image and the color filtered image, to obtain features of the grayscale image and features of the color filtered image, wherein the feature dimension is (C, H, W);
[0039] Further, step S52 specifically includes the following steps:
[0040] Step S521: primary feature extraction, using 3*3 convolution to extract primary features of the grayscale image and the color filter image, to obtain primary grayscale features and primary color filter features;
[0041] Step S522: primary residual processing, performing 3*3 convolution processing on the primary grayscale features and the primary color filter features and then normalizing them, and using three layers of 3*3 convolution for feature extraction to obtain primary grayscale convolution features and primary color filter convolution features, superimposing and activating the two primary grayscale convolution features and the primary color filter convolution features with the primary grayscale convolution features and the primary color filter convolution features respectively, to obtain primary grayscale residual features and primary color filter grayscale features;
[0042] Step S523: multi-layer secondary residual processing, performing four layers of 3*3 convolution-pooling-normalization-3*3 convolution-3*3 convolution-3*3 convolution-superposition-activation processing on the primary grayscale residual features and the primary color filtering grayscale features, to obtain the features of the grayscale image and the features of the color filtering image, where the feature dimensions are (C, H, W);
[0043] Step S53: global attention processing, calculating global grayscale features and global color filter features according to the dimensions;
[0044] Further, step S53 specifically includes the following steps:
[0045] Step S531: feature splitting, splitting the features of the grayscale image and the features of the color filter image according to the height H and the width W, to obtain grayscale features with dimensions (C, H), grayscale features with dimensions (C, W), color filter features with dimensions (C, H), and color filter features with dimensions (C, W);
[0046] Step S532: Matrix transposition, and matrix transposition of the four split features to obtain a grayscale matrix (C, H), a grayscale matrix (C, W), a color filter matrix (C, H), and a color filter matrix (C, W);
[0047] Step S533: Autocorrelation feature calculation, multiplying the grayscale matrix (C, H) with the grayscale matrix (C, W) to obtain a grayscale autocorrelation matrix, and multiplying the color filter matrix (C, H) with the color filter matrix (C, W) to obtain a color filter autocorrelation matrix;
[0048] Step S534: feature fusion, normalizing and inverse transposing the grayscale autocorrelation matrix and the color filter autocorrelation matrix, and performing weighted summation of the inverse transposed matrix with the grayscale image feature and the color filter image feature to obtain the global grayscale feature and the global color filter feature;
[0049] Step S54: feature combination, combining the global grayscale feature with the global color filter feature to obtain a combined feature F;
[0050] Step S55: quality score calculation, using the fully connected layer to calculate the weight of the combined feature F and the corresponding score, defining the score as the final quality score, and setting a unique quality score threshold;
[0051] Step S56: Model iteration, optimizing and iterating the network model based on feedback mechanism and two-gate attention, and the convolutional neural network model until the quality scores of all enhanced images reach the quality score threshold, and obtaining the optimized network model based on feedback mechanism and two-gate attention, the convolutional neural network model, and the enhanced images corresponding to all the images to be repaired, and all the enhanced images are defined as an enhanced image set.
[0052] The beneficial results achieved by the present invention using the above scheme are as follows:
[0053] (1) In view of the problem that the existing image restoration methods have poor restoration quality and low efficiency when restoring PET-CT lung cancer images, the present invention adopts a network model based on feedback mechanism and dual-gate attention to deblur the PET-CT lung cancer images, uses a decoder network based on adaptive feedback mechanism to improve the quality of reconstructed images, and uses a dual-gate attention module to avoid convolution redundancy and channel redundancy, reduce computational costs, and improve reconstruction efficiency;
[0054] (2) In view of the problem that the existing quality assessment methods for restored images are inefficient, have no unified standards, and have uneven image quality, resulting in poor adaptability of the PET-CT lung cancer image database, the present invention adopts a dual-branch modified residual network model to perform a unified standard quality assessment on PET-CT lung cancer images, thereby achieving rapid and accurate assessment of image quality, unifying image quality standards, and expanding the adaptability of the PET-CT lung cancer image database. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A flowchart of the adaptive expansion method of the PET-CT lung cancer image database based on artificial intelligence provided by the present invention;
[0056] Figure 2 is a schematic flow chart of step S2;
[0057] Figure 3 Schematic diagram of the dual-gated attention module;
[0058] Figure 4 Schematic diagram of feedback mechanism;
[0059] Figure 5 It is a flowchart diagram of step S5.
[0060] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0062] Example 1: See Figure 1 The adaptive expansion method of the PET-CT lung cancer image database based on artificial intelligence provided by the present invention specifically comprises the following steps:
[0063] Step S1: image acquisition, acquiring PET-CT lung cancer images taken by the old CT imaging device and defining them as images to be repaired, and acquiring clear PET-CT lung cancer images taken by the new CT imaging device and defining them as clear images;
[0064] Step S2: Image deblurring: using a network model based on feedback mechanism and dual-gate attention to deblur the image to be repaired, and obtain a deblurred image;
[0065] Step S3: Image restoration, using a convolutional neural network to supplement the missing values of the deblurred image to obtain a restored image;
[0066] Step S4: image enhancement, performing detail enhancement processing on the repaired image to obtain an enhanced image;
[0067] Step S5: Image quality assessment: a dual-branch residual network is used to assess the quality of the enhanced image to obtain a quality score, and the network model based on the feedback mechanism and dual-gate attention and the convolutional neural network model are optimized and iterated according to the quality score. The optimized network model based on the feedback mechanism and dual-gate attention and the convolutional neural network model are used to process all the images to be repaired to obtain an enhanced image set.
[0068] Step S6: Data is stored in the database, a new image storage database is created, and the enhanced image set is stored in the new image storage database to obtain a reconstructed PET-CT lung cancer image database.
[0069] Example 2, see Figure 2 , Figure 3 , Figure 4 This embodiment is based on the above embodiment, and step S2 specifically includes the following steps:
[0070] Step S21: data preprocessing, preprocessing all clear images to obtain preprocessed clear images;
[0071] Step S22: artificially adding noise, randomly adding noise to the pre-processed clear image to obtain a noisy image;
[0072] Step S23: Denoising training, using the pre-processed clear image and the noisy image, to perform denoising training on the network model based on the feedback mechanism and the dual-gate attention, specifically including the following steps:
[0073] Step S231: Initialize image parameters and models, initialize the dimensions of the preprocessed clear image and noisy image to (C, H, W), where C is the number of channels, H is the image height, and W is the image width, and define them as primary features with dimensions (C, H, W), initialize the encoder, dual-gated attention module, feedback-based decoder and loss function of the network model based on feedback mechanism and dual-gate attention, and set the loss function threshold;
[0074] Step S232: Encoder feature extraction, use an encoder with a convolution kernel size of 3*3 to extract features from the noisy image, and obtain a primary feature with a dimension of (2C, H / 2, W / 2). Use an encoder with a convolution kernel size of 2*2 and a step size of 2 to downsample and extract features from the primary feature, and obtain a secondary feature with a dimension of (4C, H / 4, W / 4). Divide the secondary feature by channel to obtain 4 tertiary features with dimensions of (C, H / 4, W / 4).
[0075] Step S233: feature enhancement, using a dual-gated attention module to capture long-range dependencies on the three-level features to obtain enhanced features, specifically including the following steps:
[0076] Step S2331: feature normalization, normalizing the three-level features to obtain normalized features with dimensions of (C, H / 4, W / 4);
[0077] Step S2332: Channel transformation, using 1*1 convolution to perform channel transformation convolution on the normalized features, expanding the number of channels of the normalized features from C to (2m+n)C, and obtaining a channel expansion feature with a dimension of ((2m+n)C, H / 4, W / 4), where m and n are hyperparameters for controlling the reduction factor used to remove the channel, where 0 <m≤1,0<n≤1;
[0078] Step S2333: feature splitting, splitting the channel extension features according to the channels, obtaining two split features with mC channels and one split feature with nC channels, and constructing a H×W×C learning matrix ω;
[0079] Step S2334: feature mapping, performing Fourier transform on a shunt feature with mC channels and a shunt feature with nC channels, respectively, to obtain frequency domain feature m and frequency domain feature n;
[0080] Step S2335: Dependency acquisition, multiply the frequency domain feature m and the frequency domain feature n by the learning matrix ω respectively to obtain the frequency domain dependency feature F m and the frequency domain dependent feature F n ;
[0081] Step S2336: Feature reorganization, frequency domain dependent feature F m and the frequency domain dependent feature F n Perform inverse Fourier transform on each of them to get the dependent feature Y m With dependent feature Y n , using 1*1 convolution to rely on feature Y m The number of channels of the shunt feature with the number of channels mC is converted to nC and combined with the dependent feature Y n Reorganize to obtain the final dependent feature, where the number of channels of the final dependent feature is nC;
[0082] Step S2337: feature output, using 1*1 convolution to convert the number of channels of the final dependent feature into C, and perform weighted summation with the normalized feature to obtain an enhanced feature, where the dimension of the enhanced feature is (C, H / 4, W / 4);
[0083] Step S234: image reconstruction, using a decoder based on a feedback mechanism to reconstruct the image to obtain a denoised image, specifically including the following steps:
[0084] Step S2341: feature level upsampling, upsampling the enhanced feature with dimension (C, H / 4, W / 4) to obtain an enhanced feature with dimension (2C, H / 2, W / 2), and weighted fusion of the enhanced feature with dimension (2C, H / 2, W / 2) and the level-one feature with dimension (2C, H / 2, W / 2) to obtain a level-one enhanced feature with dimension (2C, H / 2, W / 2);
[0085] Step S2342: feature secondary upsampling, after using the residual block to process the primary enhanced feature of dimension (2C, H / 2, W / 2), upsample the primary enhanced feature of dimension (2C, H / 2, W / 2) to obtain the primary enhanced feature of dimension (C, H, W), perform weighted summation on the primary enhanced feature of dimension (C, H, W) and the primary feature of dimension (C, H, W), and obtain the secondary enhanced feature of dimension (C, H, W);
[0086] Step S2343: converting features into images, using deconvolution and activation functions to convert the secondary enhanced features of dimension (C, H, W) into denoised images, where the image has dimension (C, H, W);
[0087] Step S235: adversarial training, using the denoised image and the clear image for adversarial training, and using the loss function to calculate the loss λ;
[0088] Step S236: Feedback transmission, extracting features of the denoised image and defining them as feedback features, wherein the dimension of the feedback features is (C, H, W), using 3*3 convolution to convolve the feedback features into feedback features of dimension (C, H / 4, W / 4), and multiplying the feedback features of dimension (C, H / 4, W / 4) by the loss λ and performing weighted summation with the enhanced features of dimension (C, H / 4, W / 4) to obtain a new enhanced image of dimension (C, H / 4, W / 4);
[0089] Step S237: multi-level transmission, repeating steps S234 to S236 until the loss function reaches the loss function threshold, and obtaining the final denoised image and the trained network model based on feedback mechanism and dual-gate attention;
[0090] Step S24: Deblurring the image to be repaired, using the trained network model based on feedback mechanism and dual-gate attention to deblur the image to be repaired, to obtain a deblurred image.
[0091] By performing the above operations, in order to solve the problem that the existing image restoration methods have poor restoration quality and low efficiency when repairing PET-CT lung cancer images, the present invention adopts a network model based on feedback mechanism and dual-gate attention to deblur the PET-CT lung cancer images, uses a decoder network based on an adaptive feedback mechanism to improve the quality of reconstructed images, uses a dual-gate attention module to avoid convolution redundancy and channel redundancy, reduces computational costs, and improves reconstruction efficiency.
[0092] Embodiment 3: This embodiment is based on the above embodiment, and step S3 specifically includes the following steps:
[0093] Step S31: data preparation, dividing the deblurred image into a training set and a test set, and ensuring that each deblurred image has a corresponding mask for identifying the missing pixel position;
[0094] Step S32: Network architecture design, designing an encoder-decoder network model, including the following steps:
[0095] Step S321: The encoder is designed to use 10 convolutional layers and 10 pooling layers stacked to extract abstract features of the deblurred image. Finally, the abstract features are passed to the decoder as feature representations.
[0096] Step S322: Decoder design, using deconvolution layers and convolution layers to map the feature representation back to the size and number of channels of the original deblurred image, and gradually increase the size and number of channels through deconvolution operations, and finally generate a supplementary image of the same size as the original deblurred image;
[0097] Step S323: selecting a loss function, using mean square error as the loss function;
[0098] Step S33: Model training, using the test set to evaluate the trained model, comparing the supplemented image with the original deblurred image, and using the loss function to calculate the loss, evaluating the performance and supplementation effect of the model, and optimizing the encoder-decoder network model according to the evaluation results;
[0099] Step S34: missing value supplementation, using the trained encoder-decoder network model to supplement the missing values of all deblurred images to obtain repaired images.
[0100] Embodiment 4: This embodiment is based on the above embodiment, and step S4 specifically includes the following steps:
[0101] Step S41: Use the Laplace filter to enhance the edges and details of the repaired image. The code used is as follows:
[0102] import cv2;
[0103] import numpy as np;
[0104] #Read image;
[0105] image=cv2.imread('input_image.jpg',cv2.IMREAD_GRAYSCALE);
[0106] # Apply Laplace filter;
[0107] laplacian=cv2.Laplacian(image,cv2.CV_64F);
[0108] # Adjust the image range (0-255);
[0109] laplacian=np.uint8(np.absolute(laplacian));
[0110] #Splice the original image and the enhanced image;
[0111] enhanced_image=np.hstack((image,laplacian));
[0112] #Show image;
[0113] cv2.imshow('Enhanced Image', nhanced_image);
[0114] cv2.waitKey(0);
[0115] cv2.destroyAllWindows();
[0116] Step S42: enhancing the image contrast by histogram equalization;
[0117] Step S43: According to the actual enhancement effect, the filter and the histogram equalization method are optimized, and the restored image is enhanced using the optimized Laplace filter and the histogram equalization method to obtain an enhanced image.
[0118] Example 5, see Figure 5 This embodiment is based on the above embodiment, and step S5 specifically includes the following steps:
[0119] Step S51: image conversion, converting the enhanced image into a grayscale image and a color filtered image;
[0120] Step S52: dual-branch corrected residual feature extraction, using a dual-branch corrected residual feature extraction network to extract features from the grayscale image and the color filtered image, to obtain features of the grayscale image and features of the color filtered image, wherein the feature dimension is (C, H, W), specifically comprising the following steps:
[0121] Step S521: primary feature extraction, using 3*3 convolution to extract primary features of the grayscale image and the color filter image, to obtain primary grayscale features and primary color filter features;
[0122] Step S522: primary residual processing, performing 3*3 convolution processing on the primary grayscale features and the primary color filter features and then normalizing them, and using three layers of 3*3 convolution for feature extraction to obtain primary grayscale convolution features and primary color filter convolution features, superimposing and activating the two primary grayscale convolution features and the primary color filter convolution features with the primary grayscale convolution features and the primary color filter convolution features respectively, to obtain primary grayscale residual features and primary color filter grayscale features;
[0123] Step S523: multi-layer secondary residual processing, performing four layers of 3*3 convolution-pooling-normalization-3*3 convolution-3*3 convolution-3*3 convolution-superposition-activation processing on the primary grayscale residual features and the primary color filtering grayscale features, to obtain the features of the grayscale image and the features of the color filtering image, where the feature dimensions are (C, H, W);
[0124] Step S53: global attention processing, calculating the global grayscale features and the global color filter features according to the dimensions, specifically including the following steps:
[0125] Step S531: feature splitting, splitting the features of the grayscale image and the features of the color filter image according to the height H and the width W, to obtain grayscale features with dimensions (C, H), grayscale features with dimensions (C, W), color filter features with dimensions (C, H), and color filter features with dimensions (C, W);
[0126] Step S532: Matrix transposition, and matrix transposition of the four split features to obtain a grayscale matrix (C, H), a grayscale matrix (C, W), a color filter matrix (C, H), and a color filter matrix (C, W);
[0127] Step S533: Autocorrelation feature calculation, multiplying the grayscale matrix (C, H) with the grayscale matrix (C, W) to obtain a grayscale autocorrelation matrix, and multiplying the color filter matrix (C, H) with the color filter matrix (C, W) to obtain a color filter autocorrelation matrix;
[0128] Step S534: feature fusion, normalizing and inverse transposing the grayscale autocorrelation matrix and the color filter autocorrelation matrix, and performing weighted summation of the inverse transposed matrix with the grayscale image feature and the color filter image feature to obtain the global grayscale feature and the global color filter feature;
[0129] Step S54: feature combination, combining the global grayscale feature with the global color filter feature to obtain a combined feature F;
[0130] Step S55: quality score calculation, using the fully connected layer to calculate the weight of the combined feature F and the corresponding score, defining the score as the final quality score, and setting a unique quality score threshold;
[0131] Step S56: Model iteration, optimizing and iterating the network model based on feedback mechanism and two-gate attention, and the convolutional neural network model until the quality scores of all enhanced images reach the quality score threshold, and obtaining the optimized network model based on feedback mechanism and two-gate attention, the convolutional neural network model, and the enhanced images corresponding to all the images to be repaired, and all the enhanced images are defined as an enhanced image set.
[0132] By performing the above operations, the existing quality assessment method for repaired images is inefficient, has no unified standard, and has uneven image quality, resulting in poor adaptability of the PET-CT lung cancer image database. The present invention adopts a dual-branch corrected residual network model to perform a unified standard quality assessment on the PET-CT lung cancer images, thereby achieving rapid and accurate assessment of image quality, unifying the image quality standard, and expanding the adaptability of the PET-CT lung cancer image database.
[0133] It should be noted that, in this article, 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 "include", "comprise" 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.
[0134] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0135] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. An adaptive expansion method of PET-CT lung cancer image database based on artificial intelligence, characterized by: The following steps are involved: Step S1: image acquisition, acquiring PET-CT lung cancer images taken by the old CT imaging device and defining them as images to be repaired, and acquiring clear PET-CT lung cancer images taken by the new CT imaging device and defining them as clear images; Step S2: Image deblurring, using a network model based on feedback mechanism and dual-gate attention to deblur the image to be repaired to obtain a deblurred image, specifically including the following steps: Step S21: data preprocessing, preprocessing all clear images to obtain preprocessed clear images; Step S22: artificially adding noise, randomly adding noise to the pre-processed clear image to obtain a noisy image; Step S23: Denoising training, using the pre-processed clear image and the noisy image, to perform denoising training on the network model based on the feedback mechanism and the dual-gate attention, specifically including the following steps: Step S231: Initialize image parameters and models, initialize the dimensions of the preprocessed clear image and noisy image to (C, H, W), where C is the number of channels, H is the image height, and W is the image width, and define them as primary features with dimensions (C, H, W), initialize the encoder, dual-gated attention module, feedback-based decoder and loss function of the network model based on feedback mechanism and dual-gate attention, and set the loss function threshold; Step S232: Encoder feature extraction, use an encoder with a convolution kernel size of 3*3 to extract features from the noisy image, and obtain a primary feature with a dimension of (2C, H / 2, W / 2). Use an encoder with a convolution kernel size of 2*2 and a step size of 2 to downsample and extract features from the primary feature, and obtain a secondary feature with a dimension of (4C, H / 4, W / 4). Divide the secondary feature by channel to obtain 4 tertiary features with dimensions of (C, H / 4, W / 4). Step S233: feature enhancement, using a dual-gated attention module to capture long-range dependencies on the three-level features to obtain enhanced features, specifically including the following steps: Step S2331: feature normalization, normalizing the three-level features to obtain normalized features with dimensions of (C, H / 4, W / 4); Step S2332: Channel transformation, using 1*1 convolution to perform channel transformation convolution on the normalized features, expanding the number of channels of the normalized features from C to (2m+n)C, and obtaining a channel expansion feature with a dimension of ((2m+n)C, H / 4, W / 4), where m and n are hyperparameters for controlling the reduction factor used to remove the channel, where 0 <m≤1,0<n≤1; Step S2333: feature splitting, splitting the channel extension features according to the channels, obtaining two split features with mC channels and one split feature with nC channels, and constructing a H×W×C learning matrix ω; Step S2334: feature mapping, performing Fourier transform on a shunt feature with mC channels and a shunt feature with nC channels, respectively, to obtain frequency domain feature m and frequency domain feature n; Step S2335: Dependency acquisition, multiply the frequency domain feature m and the frequency domain feature n by the learning matrix ω respectively to obtain the frequency domain dependency feature F m and the frequency domain dependent feature F n ; Step S2336: Feature reorganization, frequency domain dependent feature F m and the frequency domain dependent feature F n Perform inverse Fourier transform on and respectively to get the dependent feature Y m With dependent feature Y n , using 1*1 convolution to rely on feature Y m The number of channels of the shunt feature with the number of channels mC is converted to nC and combined with the dependent feature Y n Reorganize to obtain the final dependent feature, where the number of channels of the final dependent feature is nC; Step S2337: feature output, using 1*1 convolution to convert the number of channels of the final dependent feature into C, and perform weighted summation with the normalized feature to obtain an enhanced feature, where the dimension of the enhanced feature is (C, H / 4, W / 4); Step S234: image reconstruction, reconstructing the image using a decoder based on a feedback mechanism according to the enhanced features to obtain a denoised image, specifically comprising the following steps: Step S2341: feature level upsampling, upsampling the enhanced feature with dimension (C, H / 4, W / 4) to obtain an enhanced feature with dimension (2C, H / 2, W / 2), and weighted fusion of the enhanced feature with dimension (2C, H / 2, W / 2) and the level-one feature with dimension (2C, H / 2, W / 2) to obtain a level-one enhanced feature with dimension (2C, H / 2, W / 2); Step S2342: feature secondary upsampling, after using the residual block to process the primary enhanced feature of dimension (2C, H / 2, W / 2), upsample the primary enhanced feature of dimension (2C, H / 2, W / 2) to obtain the primary enhanced feature of dimension (C, H, W), perform weighted summation on the primary enhanced feature of dimension (C, H, W) and the primary feature of dimension (C, H, W), and obtain the secondary enhanced feature of dimension (C, H, W); Step S2343: converting features into images, using deconvolution and activation functions to convert the secondary enhanced features of dimension (C, H, W) into denoised images, where the image dimensions are (C, H, W); Step S235: adversarial training, using the denoised image and the clear image for adversarial training, and using the loss function to calculate the loss λ; Step S236: Feedback transmission, extracting features of the denoised image and defining them as feedback features, wherein the dimension of the feedback features is (C, H, W), using 3*3 convolution to convolve the feedback features into feedback features of dimension (C, H / 4, W / 4), and multiplying the feedback features of dimension (C, H / 4, W / 4) by the loss λ and performing weighted summation with the enhanced features of dimension (C, H / 4, W / 4) to obtain a new enhanced image of dimension (C, H / 4, W / 4); Step S237: multi-level transmission, repeating steps S234 to S236 until the loss function reaches the loss function threshold, and obtaining the final denoised image and the trained network model based on feedback mechanism and dual-gate attention; Step S24: Deblurring the image to be repaired, using the trained network model based on feedback mechanism and dual-gate attention to deblur the image to be repaired, to obtain a deblurred image; Step S3: Image restoration, using a convolutional neural network to supplement the missing values of the deblurred image to obtain a restored image; Step S4: image enhancement, performing detail enhancement processing on the repaired image to obtain an enhanced image; Step S5: Image quality assessment, using a dual-branch residual network to assess the quality of the enhanced image to obtain a quality score, and optimizing and iterating the network model based on the feedback mechanism and dual-gate attention and the convolutional neural network model according to the quality score, and using the optimized network model based on the feedback mechanism and dual-gate attention and the convolutional neural network model to process all the images to be repaired to obtain an enhanced image set, specifically including the following steps: Step S51: image conversion, converting the enhanced image into a grayscale image and a color filtered image; Step S52: dual-branch corrected residual feature extraction, using a dual-branch corrected residual feature extraction network to extract features from the grayscale image and the color filtered image, to obtain features of the grayscale image and features of the color filtered image, wherein the feature dimension is (C, H, W), specifically comprising the following steps: Step S521: primary feature extraction, using 3*3 convolution to extract primary features of the grayscale image and the color filter image, to obtain primary grayscale features and primary color filter features; Step S522: primary residual processing, performing 3*3 convolution processing on the primary grayscale features and the primary color filter features and then normalizing them, and using three layers of 3*3 convolution for feature extraction to obtain primary grayscale convolution features and primary color filter convolution features, superimposing and activating the two primary grayscale convolution features and the primary color filter convolution features with the primary grayscale convolution features and the primary color filter convolution features respectively, to obtain primary grayscale residual features and primary color filter grayscale features; Step S523: multi-layer secondary residual processing, performing four layers of 3*3 convolution-pooling-normalization-3*3 convolution-3*3 convolution-3*3 convolution-superposition-activation processing on the primary grayscale residual features and the primary color filtering grayscale features, to obtain the features of the grayscale image and the features of the color filtering image, where the feature dimensions are (C, H, W); Step S53: global attention processing, calculating the global grayscale features and the global color filter features according to the dimensions, specifically including the following steps: Step S531: feature splitting, splitting the features of the grayscale image and the features of the color filter image according to the height H and the width W, to obtain grayscale features with dimensions (C, H), grayscale features with dimensions (C, W), color filter features with dimensions (C, H), and color filter features with dimensions (C, W); Step S532: Matrix transposition, and matrix transposition of the four split features to obtain a grayscale matrix (C, H), a grayscale matrix (C, W), a color filter matrix (C, H), and a color filter matrix (C, W); Step S533: Autocorrelation feature calculation, multiplying the grayscale matrix (C, H) with the grayscale matrix (C, W) to obtain a grayscale autocorrelation matrix, and multiplying the color filter matrix (C, H) with the color filter matrix (C, W) to obtain a color filter autocorrelation matrix; Step S534: feature fusion, normalizing and inverse transposing the grayscale autocorrelation matrix and the color filter autocorrelation matrix, and performing weighted summation of the inverse transposed matrix with the grayscale image feature and the color filter image feature to obtain the global grayscale feature and the global color filter feature; Step S54: feature combination, combining the global grayscale feature with the global color filter feature to obtain a combined feature F; Step S55: quality score calculation, using the fully connected layer to calculate the weight of the combined feature F and the corresponding score, defining the score as the final quality score, and setting a unique quality score threshold; Step S56: Model iteration, optimizing and iterating the network model based on the feedback mechanism and the two-gate attention, and the convolutional neural network model, until the quality scores of all enhanced images reach the quality score threshold, obtaining the optimized network model based on the feedback mechanism and the two-gate attention, the convolutional neural network model, and the enhanced images corresponding to all the images to be repaired, and defining all the enhanced images as an enhanced image set; Step S6: Data is stored in the database, a new image storage database is created, and the enhanced image set is stored in the new image storage database to obtain a reconstructed PET-CT lung cancer image database.
