Non-small cell lung cancer KRAS gene mutation image prediction system based on semi-supervised learning

By using semi-supervised learning and an intelligent prediction system combined with Transformer and CNN networks in the detection of KRAS gene mutations in non-small cell lung cancer, the problems of cumbersome detection and misdiagnosis and missed diagnosis in the existing technology have been solved, and high-accuracy and low-cost predictions have been achieved. Improved clinical application value.

CN118629039APending Publication Date: 2024-09-10TAIYUAN UNIVERSITY OF TECHNOLOGY

Patent Information

Application Number
CN202410800985.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing technology relies on cumbersome laboratory operations in the detection of KRAS gene mutations in non-small cell lung cancer, and there is a risk of misdiagnosis and missed diagnosis. Moreover, the commonly used CNN network is difficult to effectively capture global context information under limited labeled data, resulting in insufficient model performance.

Method used

An intelligent prediction system based on semi-supervised learning is adopted, combined with Transformer and CNN networks, through a three-branch attention-guided feature aggregation module and a dual-fusion attention module, and AutoAugment is used for data preprocessing to achieve automatic image enhancement and feature extraction, reducing network depth to alleviate the overfitting problem.

Benefits of technology

It improves the accuracy and robustness of the prediction model, reduces the reliance on a large amount of labeled data, reduces the cost of data annotation, and can quickly and accurately predict KRAS gene mutations in non-small cell lung cancer, providing support for clinical diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629039A
    Figure CN118629039A
Patent Text Reader

Abstract

The invention discloses a non-small cell lung cancer KRAS gene mutation image prediction system based on semi-supervised learning. The non-small cell lung cancer KRAS gene mutation image prediction system comprises a data preprocessing module, a three-branch attention guide feature aggregation module (TAFA), a double-fusion attention module (BiFM) and a classifier module. The invention relates to an attention-based network model suitable for the field of computer vision, which can well execute an image classification task and aims to improve the accuracy and robustness of a prediction model by utilizing limited marked data and a large amount of unmarked data; the model utilizes an attention mechanism, and the attention mechanism is a technology for enhancing attention and utilization of important information in a deep learning model and can be regarded as a mode for simulating a human attention mechanism, so that the model can focus on specific parts or features in a concentrated manner when processing input data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of target detection in medical vision, and in particular to an intelligent prediction system for small cell lung cancer KRAS gene mutation images based on semi-supervised learning. Background Art

[0002] Non-small cell lung cancer (NSCLC) is one of the main types of lung cancer, and its diagnosis and treatment have always been an important topic in the medical community. KRAS gene mutation is a common type of gene mutation in non-small cell lung cancer, which has an important impact on the progression and prognosis of the disease. Traditional KRAS gene mutation detection methods rely on cumbersome laboratory operations and are at risk of misdiagnosis and missed diagnosis. Therefore, the development of an intelligent system that can accurately and quickly predict KRAS gene mutations in non-small cell lung cancer has important clinical application value.

[0003] At present, machine learning technology has been widely used in the field of medical image analysis, but most methods rely on a large amount of labeled data. However, in practical applications, it is often difficult and costly to obtain labeled data. Therefore, how to improve the performance of the prediction model with limited labeled data has become a hot topic in current research. The commonly used CNN network has certain defects in capturing global context information. The usual solution is to stack multiple convolutional layers and downsampling layers, but this also brings many problems, such as feature loss caused by too deep network layers, and small-scale medical data will cause network instability and easy overfitting. Summary of the invention

[0004] The present invention proposes an intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning.

[0005] In order to achieve the above purpose, the following technical solutions are adopted:

[0006] An intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning, including a data preprocessing module, a semi-supervised network main body, a three-branch attention-guided feature aggregation module (TAFA), and a dual fusion attention module (BiFM):

[0007] Data preprocessing module: used to process lung cancer CT images, using the simple process of AutoAugment to automatically search for improved data augmentation strategies. By designing a search space, a strategy consists of many sub-strategies, and each image in each mini-batch randomly selects a sub-strategy. The sub-strategy contains two operations, each of which is an image processing function, such as the probability and amplitude of shearing or applying the function;

[0008] Semi-supervised network body: The classic Mean-Teacher semi-supervised network model is adopted. The encoder and decoder of the student model and the teacher model are a two-stream encoding network composed of Transformer and CNN. The Transformer branch starts with global self-attention and restores local features at the end, which can effectively capture global dependencies and low-level spatial details in a shallower way. The ResNet network structure is adopted in the CNN branch. Through the jump connection method, it can effectively alleviate deep network problems such as overfitting. The network gradually increases the receptive field and encodes features from local to global.

[0009] Three-branch attention-guided feature aggregation module (TAFA): Transfer features from shallower convolutional layers to deeper convolutional layers within the CNN branch, and execute shallow features in deeper convolutional layers to prevent shallow features from being forgotten. This makes the obtained features more representative. By gradually guiding the fusion between high and low features, the network can be guided to adaptively combine high-dimensional and low-dimensional semantic information to redistribute feature weights, better capture key domain invariant information, and thus separate lung nodules from noise;

[0010] Bi-Fusion Attention Module (BiFM): The attention mechanism is used to re-weight the global features extracted by Transformer and the detailed feature information extracted by CNN, so that key features can be emphasized. Features are aggregated along two spatial directions, one for capturing long-range dependencies and the other for retaining precise location information, thus obtaining a pair of feature maps with direction awareness;

[0011] The data preprocessing module input is a single-branch input, which uses the simple process of AutoAugment to automatically search for improved data enhancement strategies.

[0012] The semi-supervised network body: In order to preserve the global relationship of the image and the precise location information, the Transformer is combined with the CNN; in the Transformer branch, the data flow is as follows: the first step is to input the image They are evenly divided into N = H / S × W / S according to their size. In this study, S is usually set to 16. These segmented patch blocks are then sent to the linear embedding layer to obtain the original embedding sequence e. The embedding of the learnable position of the same dimension is then calculated and combined with the original embedding sequence to obtain the input of the encoder. The encoder is composed of L layers of multi-head self-attention layers and multi-layer perceptrons. The self-attention mechanism is the core mechanism, which uses the global aggregate information of each layer to refresh the state of each embedding block, expressed as:

[0013]

[0014] Where SA is the self-attention mechanism, z i ,q i They represent the embedding input and query of the i-th layer respectively. q, k, v are the projection matrices.

[0015] The structure of MSA is composed of multiple SAs. MLP is a stack of dense layers, which is used to normalize the last layer of the Transformer input layer and generate the encoding sequence. After entering the decoder, the network adopts a progressive upsampling method. Specifically, the output of the encoder is reshaped into We get a channel number D 0 Similarly, the network will then perform two standard upsampling convolutional layers to reshape the spatial resolution and generate and The result images of these three different scales will be combined with the CNN features of the corresponding scales in the dual fusion attention module.

[0016] The main body of the semi-supervised network: In order to retain the global relationship of the image and the precise location information, the Transformer is combined with the CNN. In the CNN branch, the model deletes the original 1 / 32 deep network layer and retains it to the 1 / 16 stage. This not only obtains a shallower network model, but also has sufficient local information without wasting computing resources. Corresponding to the proposed model, since the backbone network in the CNN network is ResNet, and ResNet has a five-layer structure, the last layer of the structure is removed, and only the first four layers of the network model are retained. Each layer will perform a double downsampling operation on the feature map. Finally, three feature maps are obtained. and These three features are fused with the feature map of Transformer to obtain multi-scale image features.

[0017] The three-branch attention-guided feature aggregation module in the CNN branch guides different layers to extract key feature information, retain the domain-invariant key information, and then fuse them. Upsampling is performed to match the low-dimensional features Have the same size, and then concatenate high and low dimensional features based on the channel to obtain

[0018]

[0019] Next, in order to better mine the most useful feature channels between different levels, the model introduces a scale channel attention perception mechanism to automatically select the appropriate receptive field for the feature map and suppress the interference of irrelevant background noise. The global average pooling module is used to stimulate the feature channel information, and the global maximum pooling layer is used to retain the maximum semantic information. Then, a multi-layer perceptron sharing the same parameters is used to obtain the corresponding feature map. and Feature Map and After the addition operation, the sigmoid function is used to generate the global guide feature W global Weight mask.

[0020]

[0021] In addition, high-level and low-level semantic information is combined and As a guide, the feature map is also combined with high-dimensional features and low-dimensional features to perform dual-channel attention operations to obtain low-level guided semantic features. and high-level guided semantic features

[0022]

[0023]

[0024] Finally, the weighted features are concatenated and the concatenated feature map is combined with the global guided weight mask W global Multiply them together and reduce the dimension through a 1×1 convolutional layer while capturing domain-invariant information to obtain the final fusion module F i .

[0025]

[0026] Concat represents the concatenation operation, f up represents the upsampling operation, f σ Represents the sigmoid function operation, f mlp represents a multi-layer perceptron, f gmp represents the global maximum pooling, f gap represents global average pooling, Conv represents a 1x1 convolution operation, represents the element-wise addition operation, Represents element-wise multiplication operation.

[0027] The dual fusion attention module (BiFM) fuses the Transformer and CNN feature maps at different stages to achieve the purpose of combining local and global context information and improve the model's ability to extract key image information. The feature maps of different branches will pass through an attention module to improve the feature capture ability. At this time, the Transformer block deeply extracts global information, while the CNN block emphasizes the characteristics of local information, and obtains new features X and X respectively. T and X C , and they have the same size At the same time, the feature matrix generated in the attention process is multiplied to obtain a new correlation matrix. This operation helps to initially combine the key information of the two modal data. T and X C Perform global average pooling operations in the height direction and width direction respectively. The specific calculation process is as follows:

[0028]

[0029]

[0030] By transforming the above formula, X T and X C A pair of direction-aware feature maps are generated along the X-axis and Z-axis directions respectively. The advantage of this is that spatial information can be obtained and the precise location information of the lesion can be captured in the spatial dimension. Then, the network performs a splicing operation, connecting the feature information in the same direction according to the channel direction, and generates the corresponding feature map X' containing the direction information h and X' w , the specific calculation process is shown in the following formula:

[0031]

[0032]

[0033] in The obtained feature graphs are then sent to the 1×1 convolutional network for separate encoding calculations to obtain new feature information X' h 'and X' w ', the specific calculation process is shown as follows:

[0034] X' h ' = ReLu(X' h )

[0035] X' w ' = ReLu(X' w )

[0036] in r is the attenuation rate of the channel dimension.

[0037] Finally, the obtained coded information X' h 'and X' w 'The results are passed through a 1×1 convolutional network and then through a Sigmoid activation function to obtain the final encoded fusion information X' h ” and X' w ", the specific calculation process is shown in the following formula:

[0038] X' h =Sigmoid(X' h ')

[0039] X' w =Sigmoid(X' w ')

[0040] in

[0041] Finally, the previously obtained correlation matrix is ​​multiplied with the initial input features of the Transformer to obtain a guided feature map, which is consistent with X' h ” and X' w "Continue to multiply, and get the global information and local information including height information and width information, and the weighted information f of multiple key information fusion i ,i∈(0,1,2).

[0042] At this time, the fusion features f at different stages are obtained 0 , f 1 and f 2 These features effectively capture the global and local context of the current spatial resolution by modeling the fine-grained interactions between the features of the two branches. For the final output features, the attention gating mechanism is used to 1 and f 2 Reshaping and feature extraction are performed with f 0 The connections are made, and finally the output features of the two-stream branch network are obtained.

[0043] The overall optimization goal of the overall model is:

[0044]

[0045] Where L S represents the loss used to evaluate the output of a supervised learning network on labeled input data, L UIt means that different disturbances are applied to the same input data, and the model is based on the consistency loss function. f(·) represents the classification network. θ and θ' are the different parameter weights of the student model and the teacher model. η and η' represent different input disturbances performed on the student model and the teacher model, such as Gaussian noise. Finally, λ is represented as an increasing weighting factor, which is used to control the balance between the loss of supervised learning and the loss of unsupervised learning. After a complete training process, a more ideal prediction and classification effect will be obtained.

[0046] The beneficial effects of the present invention are:

[0047] The method of the present invention improves the accuracy and robustness of the prediction model: by combining supervised learning and unsupervised learning methods, it makes full use of limited labeled data and a large amount of unlabeled data, thereby improving the generalization ability of the model. It reduces the cost of data annotation: it reduces the dependence on a large amount of labeled data, and reduces the cost and time cost of data annotation. It improves the clinical application value: it can quickly and accurately predict the KRAS gene mutation of non-small cell lung cancer, providing strong support for clinical diagnosis and treatment. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 The figure is a schematic diagram of the overall process of the intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning of the present invention.

[0049] Figure 2 This is a schematic diagram of the operation of the TAFA module of the intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning of the present invention.

[0050] Figure 3 This is a specific flow chart of the module encoder and decoder of the CNN network flow of the intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning of the present invention.

[0051] Figure 4 This is a schematic diagram of the operation of the dual-stream network and BiFM module of the intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning in the present invention.

[0052] Figure 5 It is a ROC curve diagram of the non-small cell lung cancer KRAS gene mutation image intelligent prediction system based on semi-supervised learning of the present invention and three other methods.

[0053] Figure 6 This is a visualization of the classification results of the intelligent prediction system for non-small cell lung cancer KRAS gene mutation images based on semi-supervised learning in the present invention. DETAILED DESCRIPTION

[0054] The present invention is described in detail below in conjunction with specific embodiments.

[0055] The intelligent prediction system of KRAS gene mutation images in non-small cell lung cancer based on semi-supervised learning is as follows: Figure 1 As shown:

[0056] A1 For non-small cell lung cancer CT images, the simple process of AutoAugment is used to automatically search for improved data augmentation strategies. By designing a search space, one strategy consists of many sub-strategies, and each image in each mini-batch randomly selects a sub-strategy. The sub-strategy contains two image processing functions, which are to randomly cut the image and restore it to the original image size, and to rotate the image, and 6696 images with a fixed size of 512×512 are obtained;

[0057] A2 inputs the processed CT image and label data into the semi-supervised network. The present invention adopts the classic Mean-Teacher semi-supervised network model. The encoder and decoder of the student model and the teacher model are the same, both of which are dual-stream encoding networks composed of Transformer and CNN. The CT image data are input into Figure 1 In the Transformer and CNN networks shown in the figure, the Transformer branch starts with global self-attention and restores local features at the end, which can effectively capture global dependencies and low-level spatial details in a shallower way. The ResNet network structure is used in the CNN branch. Through the jump connection method, it can effectively alleviate deep network problems such as overfitting. The network gradually increases the receptive field and encodes features from local to global.

[0058] A21. Transformer branch processing flow:

[0059] In the Transformer branch, the data flow is as follows: In the first step, the input image They are evenly divided into N = H / S × W / S according to their size. In this study, S is usually set to 16. These segmented patch blocks are then sent to the linear embedding layer to obtain the original embedding sequence e. The embedding of the learnable position of the same dimension is then calculated and combined with the original embedding sequence to obtain the input of the encoder. The encoder is composed of L layers of multi-head self-attention layers and multi-layer perceptrons. The self-attention mechanism is the core mechanism, which uses the global aggregate information of each layer to refresh the state of each embedding block, expressed as:

[0060]

[0061] Where SA is the self-attention mechanism, z i ,qi They represent the embedding input and query of the i-th layer respectively. q, k, v are the projection matrices.

[0062] The structure of MSA is composed of multiple SAs. MLP is a stack of dense layers, which is used to normalize the last layer of the Transformer input layer and generate the encoding sequence. After entering the decoder, the network adopts a progressive upsampling method. Specifically, the output of the encoder is reshaped into We get a channel number D 0 Similarly, the network will then perform two standard upsampling convolutional layers to reshape the spatial resolution and generate and

[0063] A22.CNN branch data flow

[0064] In the CNN branch, the model deleted the original 1 / 32 deep network layer and retained it to the 1 / 16 stage. This not only can obtain a shallower network model, but also has enough local information and does not waste computing resources. Corresponding to the proposed model, since the backbone network in the CNN network is ResNet, and ResNet has a five-layer structure, the last layer of the structure is removed and only the first four layers of the network model are retained. Each layer will perform a double downsampling operation on the feature map. Finally, three feature maps are obtained. and These three features are fused with the feature map of Transformer to obtain multi-scale image features.

[0065] In order to transfer features from shallow convolutional layers to deeper convolutional layers in the CNN branch, A3 implements shallow features in deeper convolutional layers to prevent shallow features from being forgotten. The feature maps of each stage of the encoder are input to Figure 2 The three-branch attention-guided feature aggregation module shown makes the obtained features more powerful in representation. By gradually guiding the fusion between high- and low-dimensional features, the network can be guided to adaptively combine high-dimensional and low-dimensional semantic information to reallocate feature weights, better capture key domain invariant information, and thus separate lung nodules from noise;

[0066] The specific steps of step A3 are as follows:

[0067] A31. Upsampling high-dimensional features and concatenating low-dimensional features

[0068] like Figure 2 As shown, firstly, the high-dimensional features Upsampling is performed to match the low-dimensional features Have the same size, and then concatenate high and low dimensional features based on the channel to obtain

[0069]

[0070] A32. Scale channel attention-aware mechanism to automatically select appropriate receptive fields for feature maps

[0071] The concatenated high and low dimensional features The global average pooling module is used to stimulate the feature channel information, and the global maximum pooling layer is used to retain the maximum semantic information. Then, a multi-layer perceptron sharing the same parameters is used to obtain the corresponding feature map. and Feature Map and After the addition operation, the sigmoid function is used to generate the global guide feature W global Weight mask.

[0072]

[0073] In addition, high-level and low-level semantic information is combined and As a guide, the feature map is also combined with high-dimensional features and low-dimensional features to perform dual-channel attention operations to obtain low-level guided semantic features. and high-level guided semantic features

[0074]

[0075]

[0076] A33. Fusion of weighted features

[0077] The concatenated feature map and the global guided weight mask W global Multiply them together and reduce the dimension through a 1×1 convolutional layer while capturing domain-invariant information to obtain the final fusion module F i .

[0078]

[0079] Concat represents the concatenation operation, f up represents the upsampling operation, f σ Represents the sigmoid function operation, f mlp represents a multi-layer perceptron, f gmp represents the global maximum pooling, f gap represents global average pooling, Conv represents a 1x1 convolution operation, represents the element-wise addition operation, Represents the element-wise multiplication operation. The entire CNN branch process is as follows Figure 3 shown.

[0080] After the A4 image passes through the two-stream network, in the decoder stage of the network, the Transformer and CNN feature maps at different stages are processed as follows: Figure 4 The fusion is shown in Figure 1. The purpose of combining local and global context information is achieved, and the model's ability to extract key image information is improved. The feature maps of different branches will pass through an attention module to improve the feature capture ability. At this time, the Transformer block deeply extracts global information, while the CNN block emphasizes the characteristics of local information, and obtains new features X and X respectively. T and X C , and they have the same size

[0081] A4 The steps are as follows.

[0082] A41. Generate a pair of direction-aware feature maps along the X-axis and Z-axis directions

[0083] The feature matrix generated in the attention process is multiplied to obtain a new correlation matrix. This operation helps to initially combine the key information of the two modal data. T and X C Perform global average pooling operations in the height direction and width direction respectively. The specific calculation process is as follows:

[0084]

[0085]

[0086] By transforming the above formula, X T and X C A pair of direction-aware feature maps are generated along the X-axis and Z-axis directions respectively. The advantage of this is that spatial information can be obtained, and the precise location information of the lesion can be captured in the spatial dimension.

[0087] A42. Generate feature maps containing directional information

[0088] The network performs a splicing operation, connects the feature information in the same direction according to the channel direction, and generates the corresponding feature map X' containing the direction information h and X' w , the specific calculation process is shown in the following formula:

[0089]

[0090]

[0091] in The obtained feature graphs are then sent to the 1×1 convolutional network for separate encoding calculations to obtain new feature information X' h 'and X' w ', the specific calculation process is shown as follows:

[0092] X' h ' = ReLu(X' h )

[0093] X' w ' = ReLu(X' w )

[0094] in r is the attenuation rate of the channel dimension.

[0095] A43. Get the fusion result

[0096] Finally, the obtained coded information X' h 'and X' w 'The results are passed through a 1×1 convolutional network and then through a Sigmoid activation function to obtain the final encoded fusion information X' h ” and X' w ", the specific calculation process is shown in the following formula:

[0097] X' h =Sigmoid(X' h ')

[0098] X' w =Sigmoid(X' w ')

[0099] in

[0100] Finally, the previously obtained correlation matrix is ​​multiplied with the initial input features of the Transformer to obtain a guided feature map, which is consistent with X' h ” and X' w "Continue to multiply, and get the global information and local information including height information and width information, and the weighted information f of multiple key information fusion i ,i∈(0,1,2).

[0101] At this time, the fusion features f at different stages are obtained 0 , f 1 and f 2These features effectively capture the global and local context of the current spatial resolution by modeling the fine-grained interactions between the features of the two branches. For the final output features, the attention gating mechanism is used to 1 and f 2 Reshaping and feature extraction are performed with f 0 The connections are made, and finally the output features of the dual-stream branch network are obtained. Finally, after passing through the classification network, the processed features are passed through two full connections and then classified through the SoftMax activation function.

[0102] The overall optimization goals of the A5 model are as follows:

[0103]

[0104] Where L S represents the loss used to evaluate the output of a supervised learning network on labeled input data, L U It means that different disturbances are applied to the same input data, and the model is based on the consistency loss function. f(·) represents the classification network. θ and θ' are the different parameter weights of the student model and the teacher model. η and η' represent different input disturbances performed on the student model and the teacher model, such as Gaussian noise. Finally, λ is represented as an increasing weighting factor, which is used to control the balance between the loss of supervised learning and the loss of unsupervised learning. After a complete training process, a more ideal prediction and classification effect will be obtained.

[0105] Figure 5 This is a comparison chart of the ROC curves of the semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images, two other classic semi-supervised methods, and two latest semi-supervised methods. Method 1 uses the traditional Mean-Teacher model for detection, and the main network uses a single CNN without adding the Transformer branch, TAFA module, and BiFM module. Method 2 uses DVAS for classification detection, Method 3 uses the latest NT model, and Method 4 is the model proposed by the present invention. Figure 5 This is the final ROC comparison chart. The larger the area between the curve and the X-axis, the better the classification effect. Figure 5 It can be seen that the DSASSM of the present invention has the largest area and an accuracy rate of 87.28%, the Mean-Teacher accuracy rate is 74.16%, the NT model accuracy rate is 77.53%, and the DVAS model accuracy rate is 78.62%. This proves that the present model not only has the ability to extract features, but also has the ability to distinguish key information. It can be seen that the AUC value of the present invention reaches 0.8728, and compared with the other three methods, the overall accuracy, sensitivity and specificity of the system are all higher.

[0106] Figure 6 This is a comparison chart of lesion segmentation between the non-small cell lung cancer KRAS gene mutation image intelligent prediction system based on semi-supervised learning of the present invention and the common method that only uses convolutional networks. Figure 6 (a)-(d) belong to a CT image of four different patients. It can be seen that the segmentation map of this method visualizes the ability of the network to locate the lesion area, can better locate the lesion, shield most of the background noise, and make the model's feature extraction ability better.

[0107] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. An intelligent prediction system for KRAS gene mutation images of non-small cell lung cancer based on semi-supervised learning, characterized in that: It includes data preprocessing module, semi-supervised network main body, three-branch attention-guided feature aggregation module (TAFA), and bi-fusion attention module (BiFM); Data preprocessing module: used to preprocess lung cancer CT images and automatically search for improved data enhancement strategies using the simple process of AutoAugment; By designing a search space where a policy consists of many sub-policies, a sub-policy is randomly selected for each image in each mini-batch; The sub-strategy includes two image processing functions, namely, randomly shearing the image and restoring it to the original image size, and rotating the image; the processed CT image and label data are input into the semi-supervised network body; Semi-supervised network body: The classic Mean-Teacher semi-supervised network model is adopted. The encoder and decoder of the student model and the teacher model are the same, both of which are dual-stream networks composed of Transformer and CNN. The Transformer branch starts with global self-attention and restores local features at the end, which can effectively capture global dependencies and low-level spatial details in a shallower way. The ResNet network structure is adopted in the CNN branch. Through the jump connection method, it can effectively alleviate deep network problems such as overfitting. The network gradually increases the receptive field and encodes features from local to global. Three-branch attention-guided feature aggregation module (TAFA): Transfer features from shallower convolutional layers to deeper convolutional layers within the CNN branch, and execute shallow features in deeper convolutional layers to prevent shallow features from being forgotten; This makes the obtained features have stronger representation capabilities; By gradually guiding the fusion of high and low features, the network can be guided to adaptively combine high-dimensional and low-dimensional semantic information to reallocate feature weights, better capture key domain invariant information, and thus separate lung nodules from noise; Bi-Fusion Attention Module (BiFM): The attention mechanism is used to re-weight the global features extracted by Transformer and the detail feature information extracted by CNN, so that the key features can be emphasized; features are aggregated along two spatial directions, one for capturing long-range dependencies and the other for retaining precise location information, thus obtaining a pair of direction-aware feature maps.

2. The semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images according to claim 1 is characterized in that: The data preprocessing module input is a single-branch input, which uses the simple process of AutoAugment to automatically search for improved data enhancement strategies.

3. The semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images according to claim 1 is characterized in that: The semi-supervised network body: In order to preserve the global relationship of the image and the precise location information, the Transformer is combined with the CNN; in the Transformer branch, the data flow is: the first step is to input the image The size is evenly divided into N = H / S × W / S. In this study, S is usually set to 16. Then, these divided patch blocks are sent to the linear embedding layer to obtain the original embedding sequence e. Then, the embedding of the learnable position of the same dimension is calculated and combined with the original embedding sequence to obtain the input of the encoder. The encoder is composed of L layers of multi-head self-attention layers and multi-layer perceptrons. The self-attention mechanism is the core mechanism, which uses the global aggregate information of each layer to refresh the state of each embedding block, which is expressed as: Where SA is the self-attention mechanism, z i ,q i Represent the embedded input and query of the i-th layer respectively; q, k, v are the projection matrices; The structure of MSA is composed of multiple SAs; MLP is a stack of dense layers, which is used to normalize the last layer of the Transformer input layer and generate a coded sequence; then entering the decoder, the network adopts a progressive upsampling method; specifically, the output of the encoder is reshaped into A two-dimensional feature map with a channel number of D0 is obtained; similarly, the network will then perform two standard upsampling convolutional layers to reshape the spatial resolution and generate and The result images of these three different scales will be combined with the CNN features of the corresponding scales in the dual fusion attention module.

4. The semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images according to claim 1, characterized in that: The semi-supervised network body described above: In order to retain the global relationship of the image and the precise location information at the same time, the Transformer is combined with the CNN; in the CNN branch, the model deletes the original 1 / 32 deep network layer and retains it to the 1 / 16 stage, so that not only a shallower network model can be obtained, but also sufficient local information is obtained without wasting computing resources; corresponding to the proposed model, since the backbone network in the CNN network is ResNet, and ResNet has a five-layer structure, the last layer of the structure is removed, and only the first four layers of the network model are retained, and each layer will perform a double downsampling operation on the feature map; finally, three feature maps are obtained and These three features are fused with the feature map of Transformer to obtain multi-scale image features.

5. The semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images according to claim 1 is characterized in that The three-branch attention-guided feature aggregation module in the CNN branch guides different layers to extract key feature information, retain the domain-invariant key information, and then fuse them; the specific process is: first, high-dimensional features Upsampling is performed to match the low-dimensional features Have the same size, and then concatenate high and low dimensional features based on the channel to obtain Next, in order to better mine the most useful feature channels between different levels, the model introduces a scale channel attention perception mechanism to automatically select the appropriate receptive field for the feature map, suppress the interference of irrelevant background noise, and combine the spliced ​​high and low dimensional features. Send to global average pooling and global maximum pooling respectively; The global average pooling module is used to stimulate the feature channel information, and the global maximum pooling layer is used to retain the maximum semantic information; then a multi-layer perceptron sharing the same parameters is used to obtain the corresponding feature map and Feature Map and After the addition operation, the sigmoid function is used to generate the global guide feature W global Weight mask; In addition, high-level and low-level semantic information is combined and As a guide, the feature map is also combined with high-dimensional features and low-dimensional features to perform dual-channel attention operations to obtain low-level guided semantic features. and high-level guided semantic features Finally, the weighted features are concatenated and the concatenated feature map is combined with the global guided weight mask W global Multiply them together and reduce the dimension through a 1×1 convolutional layer while capturing domain-invariant information to obtain the final fusion module F i ; Concat represents the concatenation operation, f up represents the upsampling operation, f σ Represents the sigmoid function operation, f mlp represents a multi-layer perceptron, f gmp represents the global maximum pooling, f gap represents global average pooling, Conv represents a 1x1 convolution operation, represents the element-wise addition operation, Represents element-wise multiplication operation.

6. The semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images according to claim 1 is characterized in that The dual fusion attention module (BiFM) fuses the Transformer and CNN feature maps at different stages to achieve the purpose of combining local and global context information and improve the model's ability to extract key image information. The feature maps of different branches will pass through an attention module to improve the feature capture ability. At this time, the Transformer block deeply extracts global information, while the CNN block emphasizes the characteristics of local information, and obtains new features X and X respectively. T and X C , and they have the same size At the same time, the feature matrix generated in the attention process is multiplied to obtain a new correlation matrix. This operation helps to initially combine the key information of the two modal data. T and X C Perform global average pooling operations in the height direction and width direction respectively. The specific calculation process is as follows: By transforming the above formula, X T and X C A pair of direction-aware feature maps are generated along the X-axis and Z-axis directions respectively. The advantage of this is that spatial information can be obtained and the precise location information of the lesion can be captured in the spatial dimension. Then, the network performs a splicing operation, connects the feature information in the same direction according to the channel direction, and generates the corresponding feature map X' containing the direction information. h and X' w , the specific calculation process is shown in the following formula: in The obtained feature graphs are sent to the 1×1 convolutional network for separate encoding calculations to obtain new feature information X' h 'and X' w ', the specific calculation process is shown as follows: X' h '=ReLu(X' h ) X' w '=ReLu(X' w ) in r is the attenuation rate of the channel dimension; Finally, the obtained coded information X' h 'and X' w 'The results are passed through a 1×1 convolutional network and then through a Sigmoid activation function to obtain the final encoded fusion information X' h ” and X' w ", the specific calculation process is shown in the following formula: X' h ”=Sigmoid(X' h ') X' w ”=Sigmoid(X' w 'w) in Finally, the previously obtained correlation matrix is ​​multiplied with the initial input features of the Transformer to obtain a guided feature map, which is consistent with X' h ” and X' w "Continue to multiply, and get the global information and local information including height information and width information, and the weighted information f of multiple key information fusion i ,i∈(0,1,2); At this time, the fused features f0, f1 and f2 of different stages are obtained; these features effectively capture the global and local context of the current spatial resolution by modeling the fine-grained interaction between the characteristics of the two branches; for the final output features, the attention gating mechanism is used to reshape and extract features of f1 and f2, and then connected with f0, and finally the output features of the two-stream branch network are obtained.

7. The semi-supervised learning-based intelligent prediction system for non-small cell lung cancer KRAS gene mutation images according to claim 1, characterized in that: The overall optimization goal of the overall model is: Where L S represents the loss used to evaluate the output of a supervised learning network on labeled input data, L U It is used to evaluate the same input data with different perturbations. The model is based on the consistency loss function. f(·) represents the classification network. θ and θ' are the different parameter weights of the student model and the teacher model. η and η' represent different input perturbations performed on the student model and the teacher model; finally, λ represents an increasing weighting factor used to control the balance between the supervised learning loss and the unsupervised loss; After a complete training process, a relatively ideal prediction and classification effect is obtained.

Citation Information

Patent Citations

  • Transform and CNN interaction-based semi-supervised medical image segmentation method

    CN116258695A

Cited By

  • Single gene mutation state prediction method, system and product based on CT image

    CN118866094A

  • Method for predicting spatial gene expression from histological image based on deep learning

    CN118899036A

  • Complex neural network miniaturized high-voltage transmission line monitoring method and system

    CN119598342A