An algorithm for detecting differential expression of tumor driver genes based on pathological image features

Through the pathological image feature detection algorithm based on contrastive learning, the differential expression features of tumor driver genes are extracted, which solves the problem of high cost and labor and material consumption in the differential expression analysis of tumor driver genes, achieves high-accuracy analysis and feature extraction, and saves experiments cost.

CN114882008BActive Publication Date: 2024-09-10NANJING TECH UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210643105.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-09
Publication Date
2024-09-10
Estimated Expiration
2042-06-09

AI Technical Summary

Technical Problem

The existing technology has problems of high cost and consumption of manpower and material resources in the differential expression analysis of tumor driver genes, and the application of deep learning models in this field has not yet been perfected.

Method used

A pathological image feature detection algorithm based on contrastive learning is adopted. By cutting and pre-training tissue slices in the TCGA data set, the ResNet50 network and attention pooling technology are used to extract slide-level features, and a fully connected layer is used to perform differential expression of tumor driver genes. Predictions, reducing the cost of experimental verification.

Benefits of technology

It achieves high-accuracy differential expression analysis of tumor driver genes, with an ACC index of 0.96 and an AUC of 0.97, which significantly improves image block-level feature extraction capabilities, saves manpower and material resources, and reduces experimental costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114882008B
    Figure CN114882008B
Patent Text Reader

Abstract

An algorithm for detecting differential expression of tumor driver genes based on pathological image features, comprising the following steps: 1) segmentation and filtering of pathological images: selecting tissue slices from the Cancer Genome Atlas TCGA dataset; using the Ostu algorithm to detect whether tissue cells exist in the selected area to distinguish the background area; then segmenting the tissue slice slide into a number of patches that can be calculated by the model; 2) pre-training based on contrastive learning: using ResNet50 as a patch encoder, pre-training is performed under the contrastive learning framework, and after calculation, patch-level features are aggregated to obtain slide-level features; 3) prediction: the prediction task uses a fully connected layer for prediction, and the differential expression level of tumor driver genes is predicted through the mean square error loss function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, which is an application of deep learning technology in computational pathology, and in particular to an algorithm for detecting differential expression of tumor driver genes based on pathological image features based on contrast learning. Background Art

[0002] Digital pathology analysis can effectively help patients diagnose diseases in clinical medicine. In recent years, many studies have focused on using deep learning models to extract pathology image features for genomic variation and expression spectrum analysis, but few studies have focused on differential gene expression. Gene mutation detection is an important means of tumor diagnosis and targeted drug use. Due to technical and cost reasons, genetic testing has become a bottleneck in cancer prediction, diagnosis, and treatment. With the development of deep learning technology, digital pathology image analysis has also achieved rapid development, providing a new solution for diseases in the field of clinical medicine, especially tumor diagnosis and marker detection.

[0003] However, experimental verification requires a lot of manpower and resources. In the existing technology, deep learning models have performed well in solving corresponding problems, but there is no relevant technology that has been fully applied to the differential expression of tumor driver genes. Summary of the invention

[0004] The purpose of the present invention is to solve the shortcomings of the prior art and reduce the cost of experimental verification. The present invention proposes an algorithm for detecting differential expression of tumor driver genes based on pathological image features based on contrastive learning. The algorithm provides a new idea for predicting differential gene expression for pathological image-related research. With the help of the algorithm, a tool for spatial visualization of differential gene expression can be used.

[0005] The idea of ​​the present invention is 1) to cut tissue slices (breast cancer tissue slice data and bronchial lung tissue slice data) in the TCGA dataset into patches, and use the Ostu algorithm to detect whether tissue cells exist in the selected area; 2) use restnet50 as an encoder, pre-train under the contrastive learning framework, and aggregate the patch-level features after calculation, and use attention pooling to obtain slide-level features. 3) The prediction task uses a fully connected layer for prediction, and the differential expression analysis of tumor driver genes can be achieved through the MSE loss function. Verified by the following examples, the ACC index of the model of this method reached 0.96, which is 4% higher than the feature set trained using SimCLR, and the AUC reached 0.97, which is also higher than all other methods. It is proved that this method can better extract patch-level features at the image block level.

[0006] The specific technical solution of the present invention is: an algorithm for detecting differential expression of tumor driver genes based on pathological image features based on contrast learning, comprising the following steps:

[0007] The operator used the slides (organism slice images) of breast cancer tissue slice data and bronchial lung tissue slice data in the TCGA database as training sets and put them into the self-supervised model. The slides were cut into patches from the original sequence using OpenSlide.

[0008] This method uses the resnet50 network model as the base model for training. The base model f(θ) transforms each patch and enhanced view into a vector h and h', which are projected into vectors q and q' respectively through a multi-layer perceptron projector.

[0009] After that, the other loaded samples are used as negative samples for contrastive learning, which can be regarded as free parameters similar to the weights of the neural network. The data of each batch in the training process is used as a positive sample for contrastive training. During the training process, the base model parameters θ and the adversarial negative sample matrix M are iteratively updated, so that the negative samples can also closely track the changes of the network. During the gradient update process, the parameter θ is updated in the direction of gradient descent, while M is updated in the direction of gradient ascent, which leads to a minimax solution problem, and the ultimate goal of the solution is to obtain the saddle point.

[0010] Positive samples are generated by random image enhancement.

[0011] The negative sample mask adopts a random masking method. For the L patch representation matrices generated by each slide, the representations of some patches are randomly discarded, and the remaining patches are added to the negative sample pool to obtain an adversarial negative sample matrix M. The ratio of each slide mask is randomly selected from {0.5, 0.75, 0.85, 0.9};

[0012] Use the attention mechanism pooling to aggregate patch-level features to obtain slide-level features. The weights are determined by a neural network, and the sum of the weights is 1. All patch features in a slide are input into the attention pooling layer, the attention weight of each patch is calculated, and the slide-level features of the slide are obtained by weighted average calculation;

[0013] In downstream tasks, after obtaining the slice-level feature vector, the operator can perform the corresponding downstream tasks.

[0014] The prediction network uses a fully connected layer with 1024 input dimensions and 2 output dimensions and a softmax layer. The number of network layers can be adjusted according to the results of model training, and the loss function uses the mean square error MSE function.

[0015] In the model network, the data processing module includes the slide cutting module and the patch vector calculation module. The training module includes the negative sample random mask module and the contrast training encoder module. The prediction module includes the encoding feature integration and the deep learning network prediction module.

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

[0017] 1. This algorithm for detecting differential expression of tumor driver genes based on contrastive learning of pathological image features cuts the data set within a reasonable range to ensure that the GPU can save the features through calculation, making it possible to extract features of tumor tissue images using contrastive learning models. This solves the bottleneck that the GPU cannot fully calculate the large slide data set, and is tested on manually annotated data sets to prove its accuracy.

[0018] 2. This algorithm for detecting differential expression of tumor driver genes based on pathological image features based on contrastive learning has extremely high accuracy in predicting whether a slide is tumor tissue on multiple data sets. It can be used in related applications and provide a certain reference for experimenters to save manpower and material resources and reduce experimental costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a schematic diagram of the steps of the data processing module and the training module of the present invention.

[0020] Figure 2 Schematic diagram of performance comparison of different pooling methods used in the prediction module of the present invention.

[0021] Figure 3 Schematic diagram of the Pearson correlation coefficient between the predicted results and the actual results of the present invention. DETAILED DESCRIPTION

[0022] An algorithm for detecting differential expression of tumor driver genes based on pathological image features, comprising the steps of:

[0023] 1) Data segmentation:

[0024] Tissue sections from The Cancer Genome Atlas TCGA dataset were selected;

[0025] The Ostu algorithm is used to detect whether tissue cells exist in the selected area to distinguish the background area;

[0026] Cut the tissue slice slide into patches and use them as the input slide of the detection model;

[0027] 2) Pre-training based on contrastive learning: Use the neural network ResNet50 as the tile encoder (backbone model), perform pre-training under the contrastive learning framework, and aggregate the patch-level features after calculation to obtain slide-level features;

[0028] Positive samples are generated by random image enhancement, and negative samples are generated by adversarial learning algorithm AdCo;

[0029] 3) Prediction: The prediction task uses a fully connected layer to predict the differential expression of tumor driver genes by using the mean square error loss function;

[0030] In the step 1), the differentially expressed gene data in the TCGA database are used to download the transcriptome sequencing RNA-seq data of normal tissues and corresponding tumor tissues, obtain the gene expression map of the transcriptome, calculate the fold change (denoted as fc), and use it as the sample regression label;

[0031] The WSI is cut at the slide level to obtain the foreground area with tissue cells: the Python library openslide is used to read the slide data, and the Ostu algorithm is used to detect whether there are tissue cells in the selected area to distinguish the background area; the foreground contour obtained by segmentation is divided into small enough square patches;

[0032] In step 2), suppose the i-th slide in step 1) has z i patches;

[0033] The base model f(θ) transforms each patch and the enhanced image into a vector h and h', which are projected into vectors q and q' respectively through a multi-layer perceptron projector;

[0034] The positive samples for contrastive learning are generated by random image enhancement;

[0035] Negative samples are generated using the adversarial learning algorithm AdCo. Some are randomly discarded from the L representation vectors, and the remaining ones are added to the negative sample pool to obtain the adversarial negative sample matrix M.

[0036] During the training process, the base model parameters θ and the adversarial negative sample matrix M are updated simultaneously; during the gradient update process, the base model θ is updated in the direction of gradient descent, and M is updated in the direction of gradient ascent;

[0037] Aggregate the patch-level features and use the attention mechanism pooling to obtain the slide-level features. Attention pooling is an instance-level weighted averaging method. The weights are determined by a neural network and the sum of the weights is 1.

[0038] In the network model, all patch features of a slide are input into the attention pooling layer, and the attention weight a of each patch is calculated. i , and then weighted average to get the slide-level feature S:

[0039] In the step 3), after obtaining the slide-level feature vector, the corresponding downstream task is performed;

[0040] For regression analysis of differential expression values ​​of tumor driver genes: using a fully connected layer, the prediction output is a continuous variable log 10 (fc+1); In this task, the mean squared error is used as the loss function.

[0041] The technical solutions in the embodiments of the present invention will be described clearly and completely 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.

[0042] In this embodiment, the steps are: 1) segmentation and filtering of pathological images: tissue slices in the cancer genome atlas TCGA data set are selected; the Ostu algorithm is used to detect whether tissue cells exist in the selected area to distinguish the background area; then the tissue slice slide is segmented into a number of patches that can be calculated by the model; 2) pre-training based on contrastive learning: ResNet50 is used as a patch encoder, pre-training is performed under the contrastive learning framework, and patch-level features are aggregated after calculation to obtain slide-level features; 3) prediction: the prediction task uses a fully connected layer for prediction, and the differential expression level of tumor driver genes is predicted by the mean square error loss function.

[0043] Specific reference Figure 1 , an algorithm for detecting differential expression of tumor driver genes based on pathological image features, comprising the following steps:

[0044] S1: The operator used breast cancer tissue slice data and bronchial lung tissue slice data from the TCGA database as input for the model (slide) to test the model's predictive ability;

[0045] S2: The operator uses the differentially expressed gene data from the TCGA database to download RNA-seq data from normal breast cancer tissue and tumor tissue, obtains the gene expression profile of the transcriptome, and calculates the fold change as the sample regression label:

[0046]

[0047] In the formula, is the RNA-seq data of tumor tissue, It is the RNA-seq data of normal tissue;

[0048] S3: The WSI (Whole Slide Image) dataset has the problem of large single data. The WSI is cut at the slide level to obtain the foreground area with tissue cells. This process uses the Python library openslide to read the slide data and uses the Ostu algorithm (built-in opencv) to detect whether there are tissue cells in the selected area to distinguish the background area.

[0049] The segmented foreground contour is divided into small square patches of 128×128μm (256×256 pixels). Because the patch data obtained by segmenting the slide data is large and occupies a large space, only the coordinate values ​​of the segmented patches are saved;

[0050] S4: The model uses an unsupervised contrastive learning model as a feature extractor and uses the idea of ​​adversarial contrastive learning to train the model. N slides are sampled from the TCGA-lung dataset (the positive-to-negative ratio is about 2:1);

[0051] S5: Use the method described above to divide the slide into patches. The present invention uses resnet50 as the training base model. The base model f(θ) converts each patch and the enhanced image into a vector h and h', which are projected to vectors q and q' respectively through a multi-layer perceptron projector;

[0052] S6: The samples loaded in the entire memory are used as negative samples for contrastive learning, which can be regarded as free parameters similar to the weights of the neural network. The data of each batch in the training process is used as a positive sample for contrastive training. The loss function L(θ,M) of contrastive learning is defined as follows:

[0053]

[0054] Negative samples are randomly masked. For each slide, the L patch representation matrices are randomly discarded and the remaining ones are added to the negative sample pool to obtain an adversarial negative sample matrix M.

[0055] During the training process, the base model parameter θ is updated by formula (2), and M is updated by formula (3). The two are performed synchronously, which allows negative samples to closely track changes in the network. During the gradient update process, the network parameter θ is updated in the direction of gradient descent, while M is updated in the direction of gradient ascent, resulting in a minimax solution problem. The ultimate goal of the solution is to obtain a saddle point. The iterative formulas for θ and M are as follows:

[0056]

[0057]

[0058] Where L(θ,M) is the target loss function, η θ With η M are the learning rates of θ and M respectively, and t and (t+1) represent the number of iterations.

[0059] S7: The ratio of each slide mask is randomly selected from 0.5, 0.75, 0.85, and 0.9;

[0060] S8: Aggregate the patch-level features and use the attention mechanism to pool to obtain the slide-level features. Attention pooling is an instance-level weighted averaging method. The weights are determined by a neural network and the sum of the weights is 1. Assuming that a slide contains L patches, all the patch features of a slide are input into the attention pooling layer, and the attention weight a of each patch is calculated using formula (4): i , and then use formula (5) to weighted average to get the slide-level feature S i :

[0061]

[0062]

[0063] The vector w T and matrices V and U are all learnable parameters. is the multiplication of the corresponding elements of the matrix, and σ is the sigmoid nonlinear transformation function.

[0064] S9: For the regression analysis of differential expression levels, the model uses a fully connected layer with 1024 input dimensions and 1 output dimension. The output of this layer is log 10(fc+1). In this task, the mean square error MSE is used as the loss, as shown in formula (6):

[0065]

[0066] where y i and are the true and predicted differential expression levels of the ith gene, respectively.

[0067] In the network model:

[0068] The data processing module includes a slide cutting module and a patch vector calculation module.

[0069] The training module includes a negative sample random mask module and a contrastive training encoder module.

[0070] The prediction module includes encoding feature integration and deep learning network prediction module.

[0071] In this embodiment, the model is first trained on the TCGA-LUNG dataset. After filtering, the dataset has a total of 1983 slides.

[0072] First, we train the contrast learning model, using ResNet-50 as the base model, but only using its first 4 layers (the output of the last pooling layer is 1024), then load the pre-trained weights on ImageNet (only the first 4 layers), and then add two fully connected layers to the model, one with 1024 units and one with 128 units. The training process uses SGD as the optimizer, using a learning rate of 0.03 to update the feature extraction network, a learning rate of 3 to update the negative opponent, weight decay set to 0.0001, and momentum set to 0.9.

[0073] Then, we use the model trained by contrastive learning as the feature extractor, use attention pooling to aggregate patch features, and use the aggregated slide features for classification. The experiment uses 5-fold cross validation, where we use 80% of the data for training, 10% for validation, and 10% for testing in each fold, and train for a total of 50 epochs.

[0074] In this example, in order to further explore the impact of different patch feature aggregation methods, attention pooling is also compared with average pooling and maximum pooling. The ROC curves of the three methods are as follows: Figure 2 shown.

[0075] The correlation coefficient between the predicted result and the actual result (such as Figure 3Among the 200 tested genes, 84 genes had Pearson correlation coefficients above 0.20, and 39 genes had correlation coefficients above 0.40. The average Pearson correlation coefficient of all test data reached 0.185. Figure 3 In the data, CD19, CD3E, CD247, CD3G, CD3D, and PIK3CA are the names of genes respectively.

[0076] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. An algorithm for detecting differential expression of tumor driver genes based on pathological image features, characterized in that: Includes steps: 1) Data segmentation: Tissue sections from The Cancer Genome Atlas TCGA dataset were selected; The Ostu algorithm is used to detect whether tissue cells exist in the selected area to distinguish the background area; Cut tissue slices into image patches, which are used as input for the detection model. 2) Pre-training based on contrastive learning: Use the neural network ResNet50 as the base model of the tile encoder, perform pre-training under the contrastive learning framework, and aggregate the patch-level features after calculation to obtain slide-level features; Positive samples are generated by random image enhancement, and negative samples are generated by adversarial learning algorithm AdCo; 3) Prediction: The prediction task uses a fully connected layer to predict the differential expression of tumor driver genes by using the mean square error loss function; In the step 1), the differentially expressed gene data in the Cancer Genome Atlas TCGA database are used to download the transcriptome sequencing RNA-seq data of normal tissues and corresponding tumor tissues. After obtaining the gene expression map of the transcriptome, the calculated fold change is recorded as the tumor driver gene differential expression value fc, and used as the sample regression target variable; The WSI is cut at the slide level to obtain the foreground area with tissue cells: Python Openslide is used to read the slide data, and the Ostu algorithm is used to detect whether there are tissue cells in the selected area to distinguish the background area; the foreground contour obtained by segmentation is divided into small square patches; In step 2), suppose the i-th slide in step 1) has Z i patches; The block encoder base model f(θ) transforms each patch and enhanced view into vectors h and h', which are projected into vectors q and q' respectively through a multi-layer perceptron projector; Iteratively update the block encoder base model parameters during training θ And the adversarial negative sample matrix M; during the gradient update process, θ Update along the direction of gradient descent, and M is updated along the direction of gradient ascent; Aggregate the patch-level features and use the attention mechanism pooling to obtain the slide-level features. Attention pooling is an instance-level weighted averaging method. The weights are determined by a neural network and the sum of the weights is 1. In the network model, all patch features of a slide are input into the attention pooling layer, and the attention weight of each patch is calculated. a i , and then weighted average to get the slide-level features S ; In the step 3), after obtaining the slide-level feature vector, the corresponding downstream task is performed; For the regression analysis of the differential expression value fc of tumor driver genes: using the fully connected layer, the prediction output is the continuous variable log 10 (fc+1); In this task, the mean squared error is used as the loss function.

2. The algorithm for detecting differential expression of tumor driver genes based on pathological image features according to claim 1 is characterized in that: In step 2), the positive samples for contrastive learning are generated by random image enhancement; Negative samples are generated using the adversarial learning algorithm AdCo. Some are randomly discarded from the L representation vectors, and the remaining parts are added to the negative sample pool to obtain the adversarial negative sample matrix M.

3. The algorithm for detecting differential expression of tumor driver genes based on pathological image features according to claim 1 is characterized in that: In the step 1), only the coordinate values ​​of the segmented patches are saved.

4. The algorithm for detecting differential expression of tumor driver genes based on pathological image features according to claim 1 is characterized in that: N slides were sampled from the TCGA-lung dataset, with a positive-to-negative ratio of 2:

1.

5. The algorithm for detecting differential expression of tumor driver genes based on pathological image features according to claim 1 is characterized in that: In the step 1), the patch obtained by cutting is a square block of 128×128 μm, that is, 256×256 pixels.

6. The algorithm for detecting differential expression of tumor driver genes based on pathological image features according to claim 1 is characterized in that: In step 2), the ratio of each slide mask is randomly selected from 0.5, 0.75, 0.85, and 0.

9.

7. The algorithm for detecting differential expression of tumor driver genes based on pathological image features according to claim 1 is characterized in that: In step 3), for the prediction of differential expression levels of tumor driver genes, the model uses a fully connected layer with 1024 input dimensions and 1 output dimension.

Citation Information

Patent Citations

  • Colorectal cancer digital pathological image discrimination method and system based on weak supervised learning

    CN113221978A

  • Tumor microenvironment and tumor gene mutation detection system, method and equipment

    CN113409888A

  • System and method for automatic assessment of cancer

    US20190156159A1