WSI classification method and system based on key information extraction and feature fusion
By adopting a dual-branch network structure and feature fusion method in full-field pathological tissue image classification, the multi-scale features of WSI are extracted and fused, which solves the problem of low WSI classification accuracy in the existing technology and significantly improves the classification accuracy.
Patent Information
- Application Number
- CN202410925653.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Due to the large size and scarcity of WSI, existing full-field pathological tissue image classification methods are difficult to focus on key information, resulting in high false negative/positive rates, insufficient mining of location information, difficulty in representing inter-channel hierarchical context information, and ineffective multi-scale features. Use, resulting in reduced accuracy of classification results.
Using a method based on key information extraction and feature fusion, a low-magnification branch network is constructed through the first Transformer coding layer, a dual-channel position encoder and the second Transformer coding layer to extract global image features and low-resolution lesion area features, combined with the ResNet50 network and a cross-attention square pooling layer to build a high-magnification branch network to obtain finer-grained local key image features, conduct interactive fusion, and output multi-scale features for classification.
Effectively capture the position dependencies in WSI, realize encoding of key information from coarse to fine, improve classification accuracy, improve the utilization of multi-scale feature information, and significantly improve the classification accuracy of WSI.
Smart Images

Figure CN118470445B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer image processing, and in particular to a WSI classification method and system based on key information extraction and feature fusion. Background Art
[0002] Whole-field pathological tissue image (WSI) sections contain rich phenotypic information and pathological patterns, and are the gold standard for disease classification, which is crucial for predicting patient prognosis and treatment effects. In clinical practice, experienced pathologists usually need to conduct detailed inspections and interpretations of hematoxylin-eosin-stained tissue sections under high-power microscopes, including distinguishing tumor areas from large areas of normal tissue, finely grading tumors, and detailed evaluation of tumor progression and invasion, which is also considered the gold standard for cancer diagnosis.
[0003] Specifically, the general process of full-view pathological tissue image classification is: convert the tissue on the biopsy slide into a gigapixel full-view pathological tissue image (WSI), fully retaining the original tissue structure; then design a computer-aided diagnosis (CAD) model to complete the full-view pathological tissue image classification. Considering the huge size of tissue pathology images and the difficulty in obtaining pixel-level annotations, the multi-instance method is an effective solution when only image-level semantic labels are available. At present, the traditional multi-instance full-view pathological tissue image classification method has the following main problems: 1. Due to the large size and scarce number of WSI, the existing convolutional neural network (CNN) model is difficult to focus on the key information in the full-view pathological tissue image, resulting in a high false negative / positive rate in the results. 2. Existing research does not fully mine the location information in WSI, and only uses a single channel for location information encoding, making it difficult to represent the hierarchical contextual information between channels. 3. Existing research does not pay enough attention to the intrinsic semantic gap between images of different resolutions, but is limited to simple splicing or direct message passing, so that multi-scale features are not effectively used. These factors lead to a decrease in the accuracy of model classification results. Based on this, it is necessary to propose a new full-field pathological tissue image classification method to solve the above technical problems. Summary of the invention
[0004] In view of the above situation, the main purpose of the present invention is to propose a WSI classification method based on key information extraction and feature fusion to solve the above technical problems.
[0005] The present invention provides a WSI classification method based on key information extraction and feature fusion, the method comprising the following steps:
[0006] Step 1, obtaining a data set of full-field pathological tissue images, and preprocessing the images in the obtained data set of full-field pathological tissue images to obtain a package example;
[0007] Step 2: construct a low-magnification branch network through the first Transformer encoding layer, the dual-channel position encoder and the second Transformer encoding layer, input the package example into the low-magnification branch network, and obtain global image features and key lesion area images in the low-resolution full-field pathological tissue image; construct a high-magnification branch network through the ResNet50 network, the two-dimensional convolution layer and the cross-attention square pooling layer, and input the key lesion area images in the low-resolution full-field pathological tissue image into the high-magnification branch network to obtain finer-grained local key image features;
[0008] Step 3: interactively fuse the global image features obtained by the low-rate branch network output and the finer-grained local key image features obtained by the high-rate branch network output to obtain fused multi-scale features;
[0009] Step 4: Input the fused multi-scale features into the fully connected layer and Softmax classifier, output the classification results, and complete the classification.
[0010] The present invention also proposes a WSI classification system based on key information extraction and feature fusion, the system comprising:
[0011] An image preprocessing module is used to obtain a data set of full-field pathological tissue images, and preprocess the images in the acquired data set of full-field pathological tissue images to obtain a package example;
[0012] A dual-branch network module is used to construct a low-magnification branch network through a first Transformer encoding layer, a dual-channel position encoder, and a second Transformer encoding layer, input the package example into the low-magnification branch network, and obtain global image features and key lesion area images in low-resolution full-field pathological tissue images; a high-magnification branch network is constructed through a ResNet50 network, a two-dimensional convolutional layer, and a cross-attention square pooling layer, and the key lesion area images in the low-resolution full-field pathological tissue images are input into the high-magnification branch network to obtain more fine-grained local key image features;
[0013] The fusion module interactively fuses the global image features obtained by the low-rate branch network output and the finer-grained local key image features obtained by the high-rate branch network output to obtain fused multi-scale features;
[0014] The classification module is used to input the fused multi-scale features into the fully connected layer and the Softmax classifier, output the classification results, and complete the classification.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] 1. The dual-channel position encoder in the present invention can effectively capture the position dependency in the WSI, thereby obtaining the position information between packet instances.
[0017] 2. The present invention extracts coarse-grained key lesion area features in WSI through a low-magnification branch network, and then obtains finer-grained local key image features through high-magnification branch network encoding, that is, it realizes the coarse-to-fine encoding of key information in WSI, thereby improving the classification accuracy of WSI.
[0018] 3. The present invention automatically interacts and fuses the global features of the low-magnification image output by the dual-branch network structure with the local key features of the high-magnification image, thereby obtaining multi-scale feature information of WSI and further improving the classification accuracy of WSI.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a flow chart of the WSI classification method based on key information extraction and feature fusion proposed by the present invention;
[0021] Figure 2 This is a schematic diagram of the network structure of the WSI classification method based on key information extraction and feature fusion proposed in the present invention;
[0022] Figure 3 It is a structural schematic diagram of a dual-channel position encoder of a WSI classification method based on key information extraction and feature fusion proposed in the present invention;
[0023] Figure 4 This is a framework diagram of the WSI classification system based on key information extraction and feature fusion proposed in the present invention. DETAILED DESCRIPTION
[0024] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0025] These and other aspects of the embodiments of the present invention will be apparent with reference to the following description and accompanying drawings. In these descriptions and accompanying drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto.
[0026] See also Figure 1 and Figure 2 The embodiment of the present invention provides a WSI classification method based on key information extraction and feature fusion, and the method comprises the following steps:
[0027] Step 1, obtaining a data set of full-field pathological tissue images, and preprocessing the images in the obtained data set of full-field pathological tissue images to obtain a package example;
[0028] In step 1, the full-view pathological tissue image dataset includes a TCGA dataset, a CAMONLY16 dataset, etc. The steps of preprocessing the images in the acquired full-view pathological tissue image dataset to obtain a package example are as follows:
[0029] The CLAHE algorithm is used to perform equalization processing on the images in the whole-view pathological tissue image (WSI) dataset to obtain the whole-view pathological tissue image after data enhancement.
[0030] The full-field pathological tissue image after data enhancement is enlarged 5 times, and the threshold segmentation algorithm is used to segment it into multiple block areas of 512×512 size to obtain the packet sample sequence. The expression in the corresponding process is:
[0031] ;
[0032] in, Indicates Full-field pathological tissue images, This is an example of a package representing a full-view pathological tissue image after segmentation. Indicates the serial number of the full-field pathological tissue image, Indicates the number of examples in the bag.
[0033] Step 2: construct a low-magnification branch network through the first Transformer encoding layer, the dual-channel position encoder and the second Transformer encoding layer, input the package example into the low-magnification branch network, and obtain global image features and key lesion area images in the low-resolution full-field pathological tissue image; construct a high-magnification branch network through the ResNet50 network, the two-dimensional convolution layer and the cross-attention square pooling layer, and input the key lesion area images in the low-resolution full-field pathological tissue image into the high-magnification branch network to obtain finer-grained local key image features;
[0034] In step 2, the package example is input into the low-magnification branch network, and the sub-steps of obtaining global image features and key lesion area images in low-resolution full-field pathological tissue images are as follows:
[0035] The first Transformer encoding layer consists of a normalization layer and a multi-head self-attention module. The packet example sequence is input into the first Transformer encoding layer to obtain a feature sequence that aggregates the morphological information of different packet examples. The specific steps are as follows:
[0036] The class label is embedded into the packet example sequence to obtain the packet example sequence of the low-rate branching network. The expression in the corresponding process is:
[0037] ;
[0038] in, represents a sequence of packet examples, Indicates The feature sequence of the bag examples, represents the vector space of feature sequences, represents the dimensions of the package examples, Indicates class tag;
[0039] For each packet example in the packet example sequence of the low-rate branch network, the full inspection position embedding vector is obtained, and the packet example feature sequence with position encoding is obtained. The expression in the corresponding process is;
[0040] ;
[0041] in, represents the generation position embedding encoding operation, represents the feature sequence concatenation operation, represents a sequence of bag examples with positional encoding, represents the dimensions of the bag examples with positional encoding, represents the position embedding vector, represents a sequence of features of a bag example with positional encoding, Indicates the package example A feature sequence with positional encoding;
[0042] The package example feature sequence with position encoding is transformed through the normalization layer to obtain the normalized package example sequence. The expression in the corresponding process is:
[0043] ;
[0044] in, represents a normalized sequence of bag examples, Representation layer normalization operation;
[0045] The normalized package example sequence is subjected to a multi-head attention operation to obtain a feature sequence that aggregates the morphological information of different package examples. The corresponding expression in the process is:
[0046] ;
[0047] in, A feature sequence that represents the aggregation of morphological information of different packet examples, Represents the multi-head attention mechanism operation.
[0048] See also Figure 3 In step 2, the package example is input into the low-magnification branch network, and the sub-steps of obtaining global image features and key lesion area images in low-resolution full-field pathological tissue images are as follows:
[0049] The dual-channel position encoder consists of serial and parallel convolution kernel channels. Based on the feature sequence of aggregating the morphological information of different packet examples, the dual-channel encoder is used to obtain the feature sequence with spatial position information. The specific steps are as follows:
[0050] The feature sequence of the aggregated morphological information of different package examples is reconstructed to obtain the two-dimensional image feature sequence. The process has the following relationship:
[0051] ;
[0052] in, represents a two-dimensional image feature sequence, represents the feature reconstruction function;
[0053] The two-dimensional image feature sequence is input into the serial convolution kernel channel to obtain a feature sequence with the local position information of the full-field pathological tissue image. The process has the following relationship:
[0054] ;
[0055] in, Represents a feature sequence with local position information of full-field pathological tissue images, represents a convolution kernel with a size of 3×3. represents a convolution kernel with a size of 5×5. Represents a convolution kernel with a size of 7×7;
[0056] The two-dimensional image feature sequence is input into the parallel convolution kernel channel to obtain a feature sequence with the global position information of the full-field pathological tissue image. The process has the following relationship:
[0057] ;
[0058] in, represents a feature sequence with global position information of the full-view pathological tissue image, represents feature addition;
[0059] The feature sequence with the local position information of the full-view pathological tissue image, the feature sequence with the global position information of the full-view pathological tissue image and the feature sequence of the two-dimensional image are fused to obtain the feature sequence with spatial position information. The process has the following relationship:
[0060] ;
[0061] in, represents a feature sequence with spatial location information, Represents an operation that converts a multidimensional data structure to one-dimensional.
[0062] In step 2, the second Transformer encoding layer is composed of a normalization layer and a kernel attention module. Based on the feature sequence with spatial position information, the second Transformer encoding layer is used to obtain the key lesion area image features, global image features and the key lesion area image in the low-resolution full-field pathological tissue image. The specific steps are as follows:
[0063] The feature sequence with spatial position information is linearly transformed through the normalization layer and then input into the kernel attention module to obtain the global image features;
[0064] Calculate the attention score of each bag example in the feature sequence with spatial position information, select the key area according to the attention score and output the low-resolution key lesion area image features;
[0065] According to the position coding of the low-resolution key lesion area image features, the corresponding full-view pathological tissue image block is found and output, so as to obtain the key lesion area image in the low-resolution full-view pathological tissue image.
[0066] In step 2, the specific steps of inputting the key lesion area image in the low-resolution full-field pathological tissue image into the high-magnification branch network to obtain finer-grained local key image features are as follows:
[0067] The key lesion area image in the low-resolution full-field pathological tissue image is enlarged by 4 times and divided into image blocks of 512×512 to obtain a high-resolution package sample image;
[0068] The high-resolution package sample image is input into the ResNet50 network to extract the coarse-grained key lesion area features;
[0069] Inputting the coarse-grained key lesion region features into a two-dimensional convolutional layer for processing to maintain the translation invariance of the coarse-grained key lesion region features, thereby obtaining processed coarse-grained key lesion region features;
[0070] The processed coarse-grained key lesion area features are input into the cross-attention square pooling layer to extract and obtain finer-grained local key image features. The corresponding process has the following relationship:
[0071] ;
[0072] in, are the projection matrices for query, key, and value, respectively, Represents the low-resolution image features of the key lesion area, represents the projected vector space, represents the vector transpose operation, Represents more fine-grained local key image features, represents the coarse-grained key lesion region features, represents the normalized exponential function.
[0073] In step 2, the Focal loss function is used in the low-rate branch network, and the loss function expression is:
[0074] ;
[0075] in, represents the Focal loss function, represents the true label of the package, represents the predicted probability of a low-fold branching network, represents a hyperparameter;
[0076] The cross entropy loss function is used in the high-rate branch network, and the loss function expression is:
[0077] ;
[0078] in, represents the cross entropy loss function, represents the predicted probability of a high-fold branching network;
[0079] The total loss function expression is:
[0080] ;
[0081] in, Represents the total loss function.
[0082] Step 3: interactively fuse the global image features obtained by the low-rate branch network output and the finer-grained local key image features obtained by the high-rate branch network output to obtain fused multi-scale features;
[0083] In step 3, the global image features obtained by the output of the low-rate branch network and the finer-grained local key image features obtained by the output of the high-rate branch network are input into the multi-scale feature fusion module for interactive fusion. The relationship in the process of obtaining the fused multi-scale features is:
[0084] ;
[0085] in, represents the fused multi-scale features, represents the average pooling operation, represents the maximum pooling operation, Represents the global image features.
[0086] Step 4: Input the fused multi-scale features into the fully connected layer and Softmax classifier, output the classification results, and complete the classification.
[0087] See also Figure 4 The embodiment of the present invention further provides a WSI classification system based on key information extraction and feature fusion, the system comprising:
[0088] An image preprocessing module is used to obtain a data set of full-field pathological tissue images, and preprocess the images in the acquired data set of full-field pathological tissue images to obtain a package example;
[0089] A dual-branch network module is used to construct a low-magnification branch network through a first Transformer encoding layer, a dual-channel position encoder, and a second Transformer encoding layer, input the package example into the low-magnification branch network, and obtain global image features and key lesion area images in low-resolution full-field pathological tissue images; a high-magnification branch network is constructed through a ResNet50 network, a two-dimensional convolutional layer, and a cross-attention square pooling layer, and the key lesion area images in the low-resolution full-field pathological tissue images are input into the high-magnification branch network to obtain more fine-grained local key image features;
[0090] The fusion module interactively fuses the global image features obtained by the low-rate branch network output and the finer-grained local key image features obtained by the high-rate branch network output to obtain fused multi-scale features;
[0091] The classification module is used to input the fused multi-scale features into the fully connected layer and the Softmax classifier, output the classification results, and complete the classification.
[0092] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0093] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0094] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A WSI classification method based on key information extraction and feature fusion, characterized in that: The method comprises the following steps: Step 1, obtaining a data set of full-field pathological tissue images, and preprocessing the images in the obtained data set of full-field pathological tissue images to obtain a package example; Step 2: constructing a low-magnification branch network through a first Transformer coding layer, a dual-channel position encoder, and a second Transformer coding layer, inputting the package example into the low-magnification branch network, and obtaining global image features and key lesion area images in low-resolution full-field pathological tissue images; A high-magnification branch network is constructed through the ResNet50 network, two-dimensional convolutional layer, and cross-attention square pooling layer. The key lesion area image in the low-resolution full-field pathological tissue image is input into the high-magnification branch network to obtain more fine-grained local key image features. Step 3: interactively fuse the global image features obtained by the low-rate branch network output and the finer-grained local key image features obtained by the high-rate branch network output to obtain fused multi-scale features; Step 4: Input the fused multi-scale features into the fully connected layer and the Softmax classifier, output the classification results, and complete the classification; In step 2, the package example is input into the low-magnification branch network, and the sub-steps of obtaining global image features and key lesion area images in low-resolution full-field pathological tissue images are as follows: The first Transformer encoding layer consists of a normalization layer and a multi-head self-attention module. The packet example sequence is input into the first Transformer encoding layer to obtain a feature sequence that aggregates the morphological information of different packet examples. The specific steps are as follows: The class label is embedded into the packet example sequence to obtain the packet example sequence of the low-rate branching network. The expression in the corresponding process is: ; in, represents a sequence of packet examples, Indicates The feature sequence of the bag examples, represents the vector space of feature sequences, represents the dimensions of the package examples, Indicates class tag; For each packet example in the packet example sequence of the low-rate branch network, the full inspection position embedding vector is obtained, and the packet example feature sequence with position encoding is obtained. The expression in the corresponding process is; ; in, represents the generation position embedding encoding operation, represents the feature sequence concatenation operation, represents a sequence of bag examples with positional encoding, represents the dimensions of the bag examples with positional encoding, represents the position embedding vector, represents a sequence of features of a bag example with positional encoding, Indicates the package example A feature sequence with positional encoding; The package example feature sequence with position encoding is transformed through the normalization layer to obtain the normalized package example sequence. The expression in the corresponding process is: ; in, represents a normalized sequence of bag examples, Representation layer normalization operation; The normalized package example sequence is subjected to a multi-head attention operation to obtain a feature sequence that aggregates the morphological information of different package examples. The corresponding expression in the process is: ; in, A feature sequence that represents the aggregation of morphological information of different packet examples, Represents the operation of the multi-head attention mechanism; The sub-steps of inputting the package example into the low-magnification branch network to obtain global image features and key lesion area images in low-resolution full-field pathological tissue images are as follows: The dual-channel position encoder consists of serial and parallel convolution kernel channels. Based on the feature sequence of aggregating the morphological information of different packet examples, the dual-channel encoder is used to obtain the feature sequence with spatial position information. The specific steps are as follows: The feature sequence of the aggregated morphological information of different package examples is reconstructed to obtain the two-dimensional image feature sequence. The process has the following relationship: ; in, represents a two-dimensional image feature sequence, represents the feature reconstruction function; The two-dimensional image feature sequence is input into the serial convolution kernel channel to obtain a feature sequence with the local position information of the full-field pathological tissue image. The process has the following relationship: ; in, Represents a feature sequence with local position information of full-field pathological tissue images, represents a convolution kernel with a size of 3×3. represents a convolution kernel with a size of 5×5. Represents a convolution kernel with a size of 7×7; The two-dimensional image feature sequence is input into the parallel convolution kernel channel to obtain a feature sequence with the global position information of the full-field pathological tissue image. The process has the following relationship: ; in, represents a feature sequence with global position information of the full-view pathological tissue image, represents feature addition; The feature sequence with the local position information of the full-view pathological tissue image, the feature sequence with the global position information of the full-view pathological tissue image and the feature sequence of the two-dimensional image are fused to obtain the feature sequence with spatial position information. The process has the following relationship: ; in, represents a feature sequence with spatial location information, Represents an operation that converts a multidimensional data structure into one dimension; The second Transformer encoding layer consists of a normalization layer and a kernel attention module. Based on the feature sequence with spatial position information, the second Transformer encoding layer is used to obtain the key lesion area image features, global image features and key lesion area images in the low-resolution full-field pathological tissue image. The specific steps are as follows: The feature sequence with spatial position information is linearly transformed through the normalization layer and then input into the kernel attention module to obtain the global image features; Calculate the attention score of each bag example in the feature sequence with spatial position information, select the key area according to the attention score and output the low-resolution key lesion area image features; According to the position coding of the low-resolution key lesion area image features, the corresponding full-field pathological tissue image block is found and output, so as to obtain the key lesion area image in the low-resolution full-field pathological tissue image; The specific steps of inputting the key lesion area image in the low-resolution full-field pathological tissue image into the high-magnification branch network to obtain finer-grained local key image features are as follows: The key lesion area image in the low-resolution full-field pathological tissue image is enlarged by 4 times and divided into image blocks of 512×512 to obtain a high-resolution package sample image; The high-resolution package sample image is input into the ResNet50 network to extract the coarse-grained key lesion area features; Inputting the coarse-grained key lesion region features into a two-dimensional convolutional layer for processing to maintain the translation invariance of the coarse-grained key lesion region features, thereby obtaining processed coarse-grained key lesion region features; The processed coarse-grained key lesion area features are input into the cross-attention square pooling layer to extract and obtain finer-grained local key image features. The corresponding process has the following relationship: ; in, are the projection matrices for query, key, and value, respectively, Represents the low-resolution image features of the key lesion area, represents the projected vector space, represents the vector transpose operation, Represents more fine-grained local key image features, represents the coarse-grained key lesion region features, represents the normalized exponential function; In step 3, the global image features obtained by the output of the low-rate branch network and the finer-grained local key image features obtained by the output of the high-rate branch network are input into the multi-scale feature fusion module for interactive fusion to obtain the fused multi-scale features. The relationship in the process is: ; in, represents the fused multi-scale features, represents the average pooling operation, represents the maximum pooling operation, Represents the global image features.
2. The WSI classification method based on key information extraction and feature fusion according to claim 1 is characterized in that: In step 1, the steps of preprocessing the images in the dataset of the acquired full-view pathological tissue images to obtain a package example are as follows: The CLAHE algorithm is used to perform equalization processing on the images in the full-field pathological tissue image dataset to obtain the full-field pathological tissue image after data enhancement. The full-field pathological tissue image after data enhancement is enlarged 5 times, and the threshold segmentation algorithm is used to segment it into multiple block areas of 512×512 size to obtain the packet sample sequence. The expression in the corresponding process is: ; in, Indicates Full-field pathological tissue images, This is an example of a package representing a full-view pathological tissue image after segmentation. Indicates the serial number of the full-field pathological tissue image, Indicates the number of package examples.
3. The WSI classification method based on key information extraction and feature fusion according to claim 1 is characterized in that: The Focal loss function is used in the low-rate branch network, and the loss function expression is: ; in, represents the Focal loss function, represents the true label of the package, represents the predicted probability of a low-fold branching network, represents a hyperparameter; The cross entropy loss function is used in the high-rate branch network, and the loss function expression is: ; in, represents the cross entropy loss function, represents the predicted probability of a high-fold branching network; The total loss function expression is: ; in, Represents the total loss function.
4. The WSI classification system based on key information extraction and feature fusion is characterized by: The system applies the WSI classification method based on key information extraction and feature fusion as described in any one of claims 1 to 3, and the system includes: An image preprocessing module is used to obtain a data set of full-field pathological tissue images, and preprocess the images in the acquired data set of full-field pathological tissue images to obtain a package example; A dual-branch network module is used to construct a low-magnification branch network through a first Transformer encoding layer, a dual-channel position encoder, and a second Transformer encoding layer, input the package example into the low-magnification branch network, and obtain global image features and key lesion area images in low-resolution full-field pathological tissue images; a high-magnification branch network is constructed through a ResNet50 network, a two-dimensional convolutional layer, and a cross-attention square pooling layer, and the key lesion area images in the low-resolution full-field pathological tissue images are input into the high-magnification branch network to obtain more fine-grained local key image features; The fusion module interactively fuses the global image features obtained by the low-rate branch network output and the finer-grained local key image features obtained by the high-rate branch network output to obtain fused multi-scale features; The classification module is used to input the fused multi-scale features into the fully connected layer and the Softmax classifier, output the classification results, and complete the classification.
