Multi-modal ultrasonic image prostate cancer classification method and device and related components
Through the multi-modal ultrasound image classification method, the hybrid attention module and segmentation module are used to improve the recognition accuracy of prostate cancer, solve the problem of low recognition accuracy in the existing technology, and achieve accurate judgment of patients with clinically significant prostate cancer. , reducing unnecessary biopsies and waste of medical resources.
Patent Information
- Application Number
- CN202410647361.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-23
AI Technical Summary
Existing image classification methods have low recognition accuracy in prostate cancer identification and cannot accurately judge patients with clinically significant prostate cancer, resulting in unnecessary biopsies and waste of medical resources.
A multi-modal ultrasound image classification method is used to obtain ultrasound elasticity images and B-ultrasound images, use two encoders to extract features respectively, and perform feature weight correction through a hybrid attention module, combined with average pooling and fully connected layer processing, and finally Utilize segmentation modules and supervision units to improve the accuracy of classification results.
It improves the identification accuracy of prostate cancer, reduces unnecessary biopsies and waste of medical resources, and enhances the ability to accurately judge patients with clinically significant prostate cancer.
Smart Images

Figure CN118570529A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of prostate cancer image classification, and in particular to a multi-modal ultrasound image prostate cancer classification method, device and related components. Background Art
[0002] Prostate cancer (PCa) is a common cancer. According to pathological manifestations, prostate cancer is divided into clinically significant PCa (csPCa) and clinically insignificant PCa (cisPCa). Since csPCa has a poor prognosis and requires timely intervention and treatment, in the existing technology, prostate cancer is usually diagnosed by prostate biopsy, which can detect csPCa. However, medical staff cannot accurately determine which patients are at high risk of csPCa. Relying solely on increasing the biopsy rate to ensure the detection of csPCa will inevitably lead to many unnecessary biopsies, resulting in excessive detection of benign prostatic hypertrophy or cisPCa, increasing the pain and burden of patients, and causing a huge waste of medical resources.
[0003] Therefore, any patient suspected of PCa should undergo multi-parameter magnetic resonance imaging (mp-MRI) or transrectal ultrasound to identify csPCa patients before biopsy, but mp-MRI and transrectal ultrasound are complex and expensive. Therefore, technicians use image classification methods to classify csPCa images to identify csPCa patients, but the existing image classification methods have low recognition accuracy, and there is currently no research based on deep learning technology to classify clinically significant prostate cancer using multimodal ultrasound images. Summary of the invention
[0004] The embodiments of the present invention provide a multimodal ultrasound image prostate cancer classification method, device and related components, aiming to solve the problem of low recognition accuracy of existing image classification methods.
[0005] In a first aspect, an embodiment of the present invention provides a method for classifying prostate cancer in a multimodal ultrasound image, comprising:
[0006] Acquiring a data set including an ultrasonic elasticity image and a B-ultrasound image, and preprocessing the ultrasonic elasticity image to obtain a grayscale elasticity image;
[0007] Using two encoders to extract features from the grayscale elasticity image and the B-ultrasound image respectively, and using a hybrid attention module to perform feature weight correction on the extracted features to obtain output features;
[0008] Performing average pooling processing and full connection layer processing on the output features to obtain a classification result;
[0009] Using a segmentation module to segment the output features to obtain a segmentation result;
[0010] The classification result and the segmentation result are supervised.
[0011] In a second aspect, an embodiment of the present invention provides a multi-modal ultrasound image prostate cancer classification device, which is used to implement the multi-modal ultrasound image prostate cancer classification method as described above, comprising:
[0012] An acquisition unit, used for acquiring a data set including an ultrasonic elasticity image and a B-ultrasound image, and preprocessing the ultrasonic elasticity image to obtain a grayscale elasticity image;
[0013] An extraction unit, used for respectively extracting features from the grayscale elasticity image and the B-ultrasound image using two encoders, and performing feature weight correction on the extracted features using a hybrid attention module to obtain output features;
[0014] A classification unit, used for performing average pooling processing and full connection layer processing on the output features to obtain a classification result;
[0015] A segmentation unit, used to segment the output feature using a segmentation module to obtain a segmentation result;
[0016] A correction unit, used for performing prototype correction and activation on the output feature by using a prototype correction module to obtain a pseudo label;
[0017] The supervision unit is used to supervise the classification result and the segmentation result.
[0018] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the multimodal ultrasound image prostate cancer classification method as described above is implemented.
[0019] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the multimodal ultrasound image prostate cancer classification method as described above is implemented.
[0020] The embodiment of the present invention provides a multimodal ultrasound image prostate cancer classification method, device and related components. The classification method uses two encoders to extract features from gray elasticity images and B-ultrasound images respectively, and inputs the extracted features into a hybrid attention module for feature weight correction, thereby classifying and segmenting the output features to obtain classification results and segmentation results, and then supervises the classification results and segmentation results. The classification method of this embodiment uses a hybrid attention module to correct the feature weights of two images, and uses a segmentation module to segment the output features, thereby supervising the classification results and segmentation results, making the final classification result more accurate, thereby improving the recognition accuracy of prostate cancer. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0022] Figure 1 A schematic diagram of a flow chart of a method for classifying prostate cancer using multimodal ultrasound images provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a sub-process of a multi-modal ultrasound image prostate cancer classification method provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of another sub-process of a multi-modal ultrasound image prostate cancer classification method provided by an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of a hybrid attention module provided by an embodiment of the present invention;
[0026] Figure 5 A schematic flow chart of a method for classifying prostate cancer using multimodal ultrasound images provided by another embodiment of the present invention;
[0027] Figure 6 A schematic diagram of a sub-process of a multi-modal ultrasound image prostate cancer classification method provided by another embodiment of the present invention;
[0028] Figure 7 A schematic diagram of a prototype correction module provided by an embodiment of the present invention;
[0029] Figure 8 A logical schematic diagram of a multimodal ultrasound image prostate cancer classification method provided by an embodiment of the present invention;
[0030] Fig. 9A schematic block diagram of a multimodal ultrasound image prostate cancer classification device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0033] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0034] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0035] See also Figure 1 The embodiment of the present invention provides a multi-modal ultrasound image prostate cancer classification method, comprising steps S10-S50:
[0036] S10, acquiring a data set including an ultrasonic elasticity image and a B-ultrasound image, and preprocessing the ultrasonic elasticity image to obtain a grayscale elasticity image;
[0037] In this step, the multimodal ultrasound image includes an ultrasound elasticity image and a B-ultrasound image, wherein the ultrasound elasticity image is an image containing information of a pure elasticity image and information of a B-ultrasound image, and the ultrasound elasticity image is obtained by shear wave elasticity imaging, which is a technology used to evaluate the elasticity or hardness of tissues. By applying external shear waves to the tissues, and then observing the propagation speed and morphological changes of the shear waves, an ultrasound elasticity image is obtained, thereby inferring the elastic properties of the tissues. In order to make the classification results more accurate, it is necessary to use the pure elasticity image for subsequent implementation processing, that is, by preprocessing the ultrasound elasticity image to obtain the information of the pure elasticity image therein, so as to reconstruct the pure elasticity image through grayscale to obtain a grayscale elasticity image.
[0038] In one embodiment, if Figure 2 As shown, step S10 includes S11-S13:
[0039] S11, selecting an ultrasonic elasticity image and a B-ultrasound image of a predetermined size and normalizing them;
[0040] S12, subtracting the B-ultrasound image from the ultrasonic elasticity image to obtain a pure elasticity image;
[0041] S13, using a color bar to perform chromaticity matching with the pure elastic image, and converting the pure elastic image into a grayscale image to obtain a grayscale elastic image.
[0042] In this step, an ultrasonic elastic image and a B-ultrasound image of a predetermined size are selected according to the data set for scaling, and the data distribution of the two images is normalized, and then the ultrasonic elastic image is preprocessed. The specific processing process is: subtract the corresponding B-ultrasound image from the ultrasonic elastic image to obtain a pure elastic image, and then the pure elastic image is chromatically matched with the color bar to make the color of the pure elastic image consistent, and then the pure elastic image after chromatically matching is converted into a grayscale image to generate a reconstructed grayscale elastic image, and the obtained grayscale elastic image and B-ultrasound image are used in the subsequent implementation process.
[0043] S20, using two encoders to extract features from the grayscale elasticity image and the B-ultrasound image respectively, and using a hybrid attention module to perform feature weight correction on the extracted features to obtain output features;
[0044] In this step, two encoders are provided, one is a grayscale encoder for processing the grayscale elasticity image and the other is an ultrasound encoder for processing the ultrasound image, and each of the encoders includes a corresponding plurality of Blocks. Specifically, both the grayscale encoder and the ultrasound encoder use a ResNet50 network. To obtain better classification results, two 3D ResNet50 networks that do not share weights are preferably used to extract features from the grayscale elasticity image and the ultrasound image, respectively. The two 3DResNet50 networks each include four Blocks, which correspond one to one, and each Block includes a convolution operation, an activation operation, a normalization operation, and a pooling operation.
[0045] In the specific implementation process, one of the 3D ResNet50 networks is used to extract features from the grayscale elasticity image. The features extracted by each Block of the 3D ResNet50 network are elasticity extraction features. Another 3D ResNet50 network is used to extract features from the B-ultrasound image. The features extracted by each Block in the 3D ResNet50 network are B-ultrasound extraction features. The features extracted by each Block (i.e., elasticity extraction features and B-ultrasound extraction features) will enter the attention module for feature weight correction, and then add the features before inputting the hybrid attention module for fusion, and then enter the next Block to obtain the output features of the corresponding Block. When the first Block is processed and output by the hybrid attention module, the number of channels of the output features is 64 and the size of the image (grayscale elasticity image and B-ultrasound image) becomes 1 / 4 of the original image. After each Block, the number of channels increases to twice the original and the image size is reduced to 1 / 2 of the original image.
[0046] In one embodiment, if Figure 3 As shown, step S20 includes S21-S24:
[0047] S21, inputting the elasticity extraction features of each block in the grayscale encoder and the B-ultrasound extraction features corresponding to each block in the B-ultrasound encoder into the adaptive spatial attention module to obtain elasticity output features;
[0048] S22, fusing the elastic output feature with the elastic extraction feature of the corresponding Block in the grayscale encoder through pixel addition, and inputting the result into the next Block of the grayscale encoder;
[0049] S23, inputting the B-ultrasound extraction features of each Block in the B-ultrasound encoder into the dimensional attention module for weighted fusion, and splicing them with the elastic output features, and performing convolution and activation to obtain B-ultrasound output features;
[0050] S24: Fuse the B-ultrasound output features with the B-ultrasound extracted features of the corresponding block in the B-ultrasound encoder, and input them into the next block of the B-ultrasound encoder.
[0051] In this step, the hybrid attention module includes an adaptive spatial attention module and a dimensional attention module, wherein the adaptive spatial attention module includes 3 convolution blocks, each convolution block includes a convolution operation, an activation operation and a normalization operation, and the dimensional attention module includes a fully connected layer and an activation operation.
[0052] In step S21, Figure 4 As shown ( Figure 4 middle, represents pixel multiplication, Indicates splicing, Represents pixel addition), an adaptive spatial attention module is introduced, and the element-by-element product of the elasticity extraction feature FE and the B-ultrasound extraction feature FX of the corresponding Block is calculated by pixel multiplication, and the element-by-element product is spliced with the corresponding elasticity extraction feature FE and B-ultrasound extraction feature FX respectively to obtain the elastic splicing result and the B-ultrasound splicing result, and the elastic splicing result and the B-ultrasound splicing result are output after passing through the convolution block and activation, and the two outputs are spliced and activated again to generate an attention weight map (including the elasticity weight map and the B-ultrasound weight map), the attention weight of the elasticity weight map is fused with the elasticity extraction feature FE through pixel multiplication and output, and the attention weight of the B-ultrasound weight map is fused with the B-ultrasound extraction feature FX through pixel multiplication and output, and the two outputs are fused through pixel addition to obtain the elastic output feature.
[0053] In step S22, the elastic output feature of the current block of the grayscale encoder obtained in step S21 is fused with the elastic extraction feature of the current block through pixel addition, and the fused result is input into the next block, and step S21 is executed again until the elastic extraction features of all blocks are corrected and output.
[0054] In step S23, if Figure 4 As shown in Figure 1, a dimensional attention module is introduced to enhance the use of the ultrasound feature FX extracted by the 3D ResNet50 network. The ultrasound feature FX extracted by the dimensional attention is reweighted and output, and the reweighted output is fused with the ultrasound feature FX extracted by pixel multiplication to obtain the ultrasound fusion feature. Specifically, FX∈R H ×W×T×C It can be regarded as C cubes of B-ultrasound feature extraction. For each cube, average pooling is performed along three different dimensions to obtain three vectors F H ∈R H , F W ∈RW and F T ∈R T , using the squeeze-motivation method to calculate the attention score s D :
[0055] s D =σ(FC(F D )),D∈{H,W,T}
[0056] Among them, FC is the fully connected layer, σ is the activation operation, H, W, T are three different dimensions, D belongs to one of the three dimensions, F D are vectors of three different dimensions;
[0057] According to the attention score s D The B-ultrasound extraction feature FX is reweighted and output, and the reweighted output is fused with the B-ultrasound extraction feature FX through pixel multiplication to obtain the B-ultrasound fusion feature, and the B-ultrasound fusion feature is spliced with the elastic output feature, and then the B-ultrasound output feature is obtained through convolution blocks and activation operations.
[0058] In step S24, the B-ultrasound output features of the current Block of the B-ultrasound encoder obtained after step S23 are fused with the B-ultrasound extraction features of the current Block, and the fused result is input into the next Block, and step S23 is executed again until the B-ultrasound extraction features of all Blocks are corrected and output.
[0059] In summary, if Figure 4 and Figure 8 As shown, both 3D ResNet50 networks include 4 Blocks, one of which includes Block1, Block2, Block3, and Block4 (Block4 is the last one) connected in sequence, which is used to process B-ultrasound images, and the other 3D ResNet50 network includes Block5, Block6, Block7, and Block8 (Block8 is the last one) connected in sequence, which is used to process grayscale elastic images, wherein Block1 corresponds to Block5, Block2 corresponds to Block6, Block3 corresponds to Block7, and Block4 corresponds to Block8.
[0060] First, the elasticity extraction feature FX extracted by Block1 and the B-ultrasound extraction feature FE extracted by Block5 are input into the hybrid attention module to obtain the first elasticity output feature and the first B-ultrasound output feature, then the elasticity extraction feature extracted by Block1 is added to the first elasticity output feature and input into Block2, and the B-ultrasound extraction feature extracted by Block5 is added to the first B-ultrasound output feature and input into Block6; the elasticity extraction feature extracted by Block2 and the B-ultrasound extraction feature extracted by Block6 are input into the hybrid attention module to obtain the second elasticity output feature and the second B-ultrasound output feature, then the elasticity extraction feature extracted by Block2 is added to the second elasticity output feature and input into Block3, and the B-ultrasound extraction feature extracted by Block6 is added to the second B-ultrasound output feature and input into block7, and so on.
[0061] S30, performing average pooling processing and full connection layer processing on the output features to obtain a classification result;
[0062] The output features obtained in the above steps include the elastic output features and B-ultrasound output features output by the last Block. In this step, only the B-ultrasound output features output by the last Block need to be used for average pooling and full connection layer processing to accurately classify them and generate classification results. The classification results can be used to improve the recognition accuracy of prostate cancer.
[0063] In one embodiment, step S30 includes:
[0064] The B-ultrasound output features of the last Block are processed by average pooling and fully connected layers to obtain the classification results.
[0065] In this step, average pooling and fully connected layer processing are mainly performed on the output features of the last Block of the B-ultrasound encoder (that is, the fourth B-ultrasound output features). By performing average pooling processing on the B-ultrasound output features of the last Block, the spatial information in the two output features can be compressed and summarized to obtain a higher-level feature representation. Through fully connected layer processing, these features are mapped to the category space to obtain more accurate classification results.
[0066] S40, using a segmentation module to segment the output features to obtain a segmentation result;
[0067] In order to help the two encoders extract more recognizable features, a segmentation task is added in this step. The B-ultrasound output features are segmented through the segmentation module to obtain the segmentation results.
[0068] In one embodiment, step S40 includes:
[0069] Use the decoder to decode the B-ultrasound output features of the last Block to obtain the segmentation result;
[0070] In this step, a 3D U-Net decoder with skip connection is used as a segmentation module to perform the segmentation task to help the 3D ResNet50 network extract more features to obtain more accurate classification results. Among them, the 3D U-Net decoder includes 4 decoding modules, each decoding module contains two convolution blocks, and each convolution block contains convolution operation, activation operation and normalization operation. The B-ultrasound output features of the last Block are decoded after passing through each decoding module, and before the B-ultrasound output features of the last Block are input into the decoding module, they need to be upsampled to twice the original image size through transposed convolution, and the decoded features are spliced with the image of the corresponding size using skip connection. After passing through 4 decoding modules, the image is restored to its original size and the segmentation result is obtained, wherein the segmentation result includes the segmentation result of the labeled data and the segmentation result of the unlabeled data.
[0071] S50: Supervise the classification result and the segmentation result.
[0072] In this step, the segmentation result is a further optimization of the classification result. In order to make the classification result more accurate, it is preferred to supervise the two results to obtain the final classification result.
[0073] In one embodiment, if Figure 5 As shown, step S50 includes S51-S55:
[0074] S51, using the prototype correction module to perform prototype correction and activation on the B-ultrasound output features of the last Block to generate a pseudo label;
[0075] S52, for the data containing clinically significant prostate cancer in the data set, determining whether the data contains labeled data and unlabeled data;
[0076] S53: for unlabeled data, using the pseudo label to supervise the segmentation result of the unlabeled data;
[0077] S54, for the labeled data, using the mask to supervise the segmentation result of the labeled data;
[0078] S55. For the data in the data set that does not contain clinically significant prostate cancer, use zero for supervision.
[0079] This step is the supervision process of the segmentation results. Masks and pseudo labels are used for supervision of the segmentation results. In the specific implementation process, the samples are divided into positive samples and negative samples. The samples are grayscale elastic images and B-ultrasound images. Then, masks are marked on the images. The marked masks are segmentation labels. However, due to the small number of masks, the feature prototypes (i.e., support prototypes) of the obtained csPCa data are not comprehensive enough. Therefore, a prototype correction module is introduced to correct the feature prototypes. Specifically, the data containing csPCa is taken as the positive sample. For the data containing csPCa, the masked data set (i.e., labeled data) is called the support set (X support , Y support ), where Y support represents the corresponding mask, X support represents grayscale elastic images and B-ultrasound images, and the dataset without mask (i.e., unlabeled data) is called the query set (M query ). For labeled data, the mask is used to supervise the segmentation results of the labeled data. For unlabeled data, since it has no mask (i.e., without a mask), the segmentation results of the unlabeled data can be supervised by pseudo labels. The acquisition of pseudo labels will be described in detail in the subsequent steps. The data that does not contain clinically significant prostate cancer is taken as a negative sample and is represented as (X neg ), and 0 is used for supervision so that these data can be correctly classified as negative examples during the training process, thereby improving the accuracy and reliability of the segmentation results.
[0080] In one embodiment, if Figure 6 As shown, step S51 includes steps S511-S515:
[0081] S511, obtaining a supporting prototype through average pooling based on the B-ultrasound output features of the last Block of the labeled data;
[0082] S512, obtaining query features based on the B-ultrasound output features of the last Block of the unlabeled data;
[0083] S513, calculating the similarity between the supporting prototype and the query feature, and activating them to obtain a similarity graph;
[0084] S514, fusing the similarity graph with the query feature, and fusing the fusion result with the supporting prototype to obtain a fusion prototype;
[0085] S515, after iterating the fusion prototype for multiple times, calculate the similarity between the fusion prototype and the query feature to obtain a pseudo label.
[0086] This step is the pseudo-label generation process. For unlabeled data, the decoder also needs a supervisory signal for supervision, so the pseudo-label is used as a supervisory signal for supervision. In the implementation process, the prototype matching method can be used to generate pseudo-labels, but due to the limitations of supporting prototypes, a prototype correction module is introduced to correct and activate the B-ultrasound output features of the last Block to obtain a better quality pseudo-label. Specifically, Figure 7 As shown, using the mask (Y support ) Perform an average pooling operation (MAP) on the B-ultrasound output features of the last Block:
[0087]
[0088]
[0089] Where K represents X support The number of θ represents the encoder, is the B-ultrasound output feature, P S The support prototype representing the obtained support set;
[0090] The B-ultrasound output features of the unlabeled data after the last Block are the query features. The query feature F is calculated as follows: query With support prototype P S The cosine similarity between them is calculated and activated to obtain the similarity graph M query :
[0091] M query =σ(sim(f θ (F query ),P S ))
[0092] Among them, σ is the activation operation, sim() is the cosine similarity function;
[0093] Since the number of support sets is very small, the support prototype P S The features represented are not comprehensive, so a prototype correction module is introduced. The prototype correction module does not contain parameters that need to be trained, but only contains cosine similarity calculation, pixel multiplication, pixel addition and softmax operation. Therefore, the prototype correction module can fully support the prototype P without introducing additional training parameters. S , the similarity graph M query and query feature F query Perform mask average pooling (MAP) and fuse to generate the query prototype P q , and query the prototype P q By pixel addition and supporting prototype P S Fusion, get the fusion prototype P f, fusion prototype P f The process is expressed as follows:
[0094]
[0095] This process can be repeated multiple times, resulting in multiple iterative integrations of the supporting prototypes;
[0096] Finally, the similarity between the fused prototype and the query feature after multiple iterative fusions is calculated, and then activated to obtain a pseudo label, through which the unlabeled data is supervised.
[0097] In a specific embodiment, whether it is a classification task or a segmentation task, there is a loss in the task process. For the classification task, the loss function L cls Defined as:
[0098]
[0099] in, is the classification prediction of the encoder, Y cls is the classification label of the data;
[0100] For the support set in the segmentation task, minimize the cross entropy loss function L seg_support Defined as:
[0101]
[0102] in, For X support The predicted probability plot of ;
[0103] For data that does not contain csPCa in the segmentation task, since it does not contain the csPCa area, zero is used for supervision, and the loss function L seg_neg Defined as:
[0104]
[0105] For the query set in the segmentation task, all similarity graphs are sorted and the first 100 points in the similarity graph are selected as pseudo labels, where half of the pseudo labels are selected from the previous similarity graph and the other half are selected from the subsequent similarity graph, minimizing the pixel-level cross entropy loss function L seg_query Defined as:
[0106]
[0107] Among them, P represents the set of pseudo labels in the previous similarity graph, j P is the pseudo label of the current similarity graph in the previous similarity graph, N represents the set of pseudo labels selected in the subsequent similarity graph, j Nis the pseudo label of the current similarity graph in the subsequent similarity graph;
[0108] Use classification loss L cls and segmentation loss L setg The sum is used to train the network:
[0109] L=L cls +L setg_support +α·L seg_query +β·L seg_neg
[0110] Among them, α and β are weight coefficients.
[0111] The supervising the classification result and the segmentation result also includes:
[0112] The classification results are supervised using classification labels.
[0113] In this step, for the classification task, all data are labeled data, and the classification results are supervised by classification labels, which are obtained through biopsy.
[0114] The logical diagram of the entire classification method is as follows Figure 8 shown.
[0115] In the specific implementation process, the training is implemented on PyTorch and uses an NVIDIA RTX8000 GPU with 48G memory. The encoder is optimized 200 times using a stochastic gradient descent optimizer with an initial learning rate of 0.0001 and a learning strategy of (1-epoch / 200) 0.9 Optimization is performed, where epoch is the number of iterations. In order to solve the class imbalance problem, the batch size is set to 2, each batch contains one positive sample and one negative sample, α and β are set to 0.001 and 0.1 respectively, and the trained model is used to classify prostate cancer in multimodal ultrasound images.
[0116] The embodiment of the present invention also provides a multi-modal ultrasound image prostate cancer classification device, which is used to perform any embodiment of the multi-modal ultrasound image prostate cancer classification method. Fig. 9 , Fig. 9 600 is a schematic block diagram of a multi-modal ultrasound image prostate cancer classification device provided by an embodiment of the present invention. The multi-modal ultrasound image prostate cancer classification device 600 comprises:
[0117] An acquisition unit 610 is used to acquire a data set including an ultrasonic elasticity image and a B-ultrasound image, and preprocess the ultrasonic elasticity image to obtain a grayscale elasticity image;
[0118] In one embodiment, the acquisition unit 610 includes:
[0119] A selection unit, used for selecting an ultrasonic elasticity image and a B-ultrasound image of a predetermined size and normalizing them;
[0120] a subtraction unit, configured to subtract the B-ultrasound image from the ultrasonic elasticity image to obtain a pure elasticity image;
[0121] The matching unit is used to perform chromaticity matching with the pure elastic image using a color bar and convert the pure elastic image into a grayscale image to obtain a grayscale elastic image.
[0122] An extraction unit 620 is used to use two encoders to extract features from the grayscale elasticity image and the B-ultrasound image respectively, and use a hybrid attention module to perform feature weight correction on the extracted features to obtain output features;
[0123] In one embodiment, the extraction unit 620 includes:
[0124] A first input unit, used for inputting the elasticity extraction feature of each block in the grayscale encoder and the B-ultrasound extraction feature corresponding to each block in the B-ultrasound encoder into the adaptive spatial attention module to obtain the elasticity output feature;
[0125] A first fusion unit, used for fusing the elastic output feature with the elastic extraction feature of the corresponding Block in the grayscale encoder through pixel addition, and inputting the result into the next Block of the grayscale encoder;
[0126] The second input unit is used to input the B-ultrasound extraction features of each block in the B-ultrasound encoder into the dimensional attention module for weighted fusion, and splice them with the elastic output features, and perform convolution and activation to obtain B-ultrasound output features;
[0127] The second fusion unit is used to fuse the B-ultrasound output feature with the B-ultrasound extraction feature of the corresponding block in the B-ultrasound encoder, and input the result into the next block of the B-ultrasound encoder.
[0128] The classification unit 630 is used to perform average pooling processing and full connection layer processing on the output features to obtain a classification result.
[0129] In one embodiment, the classification unit 630 includes:
[0130] The processing unit is used to perform average pooling and fully connected layer processing on the B-ultrasound output features of the last Block to obtain the classification result.
[0131] A segmentation unit 640 is used to segment the output feature using a segmentation module to obtain a segmentation result;
[0132] In one embodiment, the segmentation unit 640 includes:
[0133] The decoding unit is used to decode the B-ultrasound output features of the last Block using a decoder to obtain a segmentation result.
[0134] In one embodiment, the supervisory unit 650 includes:
[0135] The correction activation unit is used to use the prototype correction module to perform prototype correction and activation on the B-ultrasound output features of the last Block to generate pseudo labels;
[0136] a data determination unit, for determining, for the data containing clinically significant prostate cancer in the data set, whether the data contains labeled data or unlabeled data;
[0137] A first supervision unit is used to supervise the segmentation result of the unlabeled data using the pseudo label;
[0138] The second supervision unit is used to supervise the segmentation result of the labeled data using the mask;
[0139] The third supervision unit is used to use zero to supervise the data that does not contain clinically significant prostate cancer in the data set.
[0140] In one embodiment, the modification activation unit comprises:
[0141] An average pooling unit, used for obtaining a supporting prototype through mask average pooling based on the B-ultrasound output features of the last Block based on the labeled data;
[0142] A query feature acquisition unit, used to obtain query features based on the B-ultrasound output features of the last Block of the unlabeled data;
[0143] A first calculation unit, used for calculating the similarity between the supporting prototype and the query feature, and activating it to obtain a similarity graph;
[0144] A fusion unit, used for fusing the similarity graph with the query feature, and fusing the fusion result with the supporting prototype to obtain a fusion prototype;
[0145] The second calculation unit is used to iterate the fusion prototype multiple times and then calculate the similarity between the fusion prototype and the query feature to obtain a pseudo label.
[0146] The supervision unit 650 also includes:
[0147] The fourth supervision unit supervises the classification result using the classification label.
[0148] An embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the multimodal ultrasound image prostate cancer classification method as described in the above embodiment is implemented.
[0149] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the multimodal ultrasound image prostate cancer classification method as described in the above embodiment is implemented.
[0150] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for classifying prostate cancer using multimodal ultrasound images, characterized in that: include: Acquiring a data set including an ultrasonic elasticity image and a B-ultrasound image, and preprocessing the ultrasonic elasticity image to obtain a grayscale elasticity image; Using two encoders to extract features from the grayscale elasticity image and the B-ultrasound image respectively, and using a hybrid attention module to perform feature weight correction on the extracted features to obtain output features; Performing average pooling processing and full connection layer processing on the output features to obtain a classification result; Using a segmentation module to segment the output features to obtain a segmentation result; The classification result and the segmentation result are supervised.
2. The multimodal ultrasound image prostate cancer classification method according to claim 1, characterized in that: The step of acquiring an ultrasonic elasticity image and a B-ultrasound image, and preprocessing the ultrasonic elasticity image to obtain a grayscale elasticity image comprises: Selecting an ultrasound elasticity image and a B-ultrasound image of a predetermined size and normalizing them; Subtracting the B-ultrasound image from the ultrasonic elasticity image to obtain a pure elasticity image; The color bar is used to perform chromaticity matching with the pure elastic image, and the pure elastic image is converted into a grayscale image to obtain a grayscale elastic image.
3. The multimodal ultrasound image prostate cancer classification method according to claim 1, characterized in that: The hybrid attention module includes an adaptive spatial attention module and a dimensional attention module, the two encoders are respectively a grayscale encoder for processing the grayscale elasticity image and a B-ultrasound encoder for processing the B-ultrasound image, and each of the encoders includes a corresponding plurality of Blocks, the two encoders are used to extract features from the grayscale elasticity image and the B-ultrasound image respectively, and the hybrid attention module is used to perform feature weight correction on the extracted features to obtain output features, including: Inputting the elasticity extraction features of each block in the grayscale encoder and the B-ultrasound extraction features corresponding to each block in the B-ultrasound encoder into the adaptive spatial attention module to obtain elasticity output features; The elastic output feature is merged with the elastic extraction feature of the corresponding block in the grayscale encoder through pixel addition, and input into the next block of the grayscale encoder; Inputting the B-ultrasound extracted features of each Block in the B-ultrasound encoder into the dimensional attention module for weighted fusion, and concatenating them with the elastic output features, and performing convolution and activation to obtain B-ultrasound output features; The B-ultrasound output features are fused with the B-ultrasound extracted features of the corresponding Block in the B-ultrasound encoder, and are input into the next Block of the B-ultrasound encoder.
4. The multimodal ultrasound image prostate cancer classification method according to claim 3, characterized in that: The two encoders are ResNet50, and the ResNet50 includes 4 sequentially connected blocks, wherein the output features are subjected to average pooling processing and full connection layer processing to obtain classification results, and the output features are segmented using a segmentation module to obtain segmentation results, including: The B-ultrasound output features of the last Block are processed by average pooling and full connection layer to obtain the classification result; The decoder is used to decode the B-ultrasound output features of the last Block to obtain the segmentation result.
5. The device for identifying a classification model of prostate cancer according to claim 4, characterized in that: The supervising the classification result and the segmentation result includes: The prototype correction module is used to perform prototype correction and activation on the B-ultrasound output features of the last Block to generate pseudo labels; For data in the data set containing clinically significant prostate cancer, determining labeled data and unlabeled data in the data; For unlabeled data, the pseudo labels are used to supervise the segmentation results of the unlabeled data; For labeled data, use masks to supervise the segmentation results of the labeled data; For the data sets that do not contain clinically significant prostate cancer, zero supervision is used.
6. The multimodal ultrasound image prostate cancer classification method according to claim 1, characterized in that: The supervising the classification result and the segmentation result also includes: The classification results are supervised using classification labels.
7. The multimodal ultrasound image prostate cancer classification method according to claim 5, characterized in that: The method of using the prototype correction module to perform prototype correction and activation on the B-ultrasound output features of the last Block to generate a pseudo label includes: Based on the B-ultrasound output features of the last Block of the labeled data, a supporting prototype is obtained by mask average pooling; Obtain query features based on the B-ultrasound output features of the last Block based on the unlabeled data; Calculating the similarity between the supporting prototype and the query feature, and activating them to obtain a similarity graph; fusing the similarity graph with the query feature, and fusing the fusion result with the supporting prototype to obtain a fusion prototype; After iterating the fusion prototype for multiple times, the similarity between the fusion prototype and the query feature is calculated to obtain a pseudo label.
8. A multimodal ultrasound image prostate cancer classification device, used to implement the multimodal ultrasound image prostate cancer classification method according to any one of claims 1 to 7, characterized in that: include: An acquisition unit, used for acquiring a data set including an ultrasonic elasticity image and a B-ultrasound image, and preprocessing the ultrasonic elasticity image to obtain a grayscale elasticity image; An extraction unit, used for respectively extracting features from the grayscale elasticity image and the B-ultrasound image using two encoders, and performing feature weight correction on the extracted features using a hybrid attention module to obtain output features; A classification unit, used for performing average pooling processing and full connection layer processing on the output features to obtain a classification result; A segmentation unit, used to segment the output feature using a segmentation module to obtain a segmentation result; The supervision unit is used to supervise the classification result and the segmentation result.
9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the multimodal ultrasound image prostate cancer classification method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the multimodal ultrasound image prostate cancer classification method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
RGB-D image semantic segmentation method based on multi-modal feature fusion
CN114549439A
Prostate cancer image classification system based on iconography
CN114549903A
Multi-modal image classification model training method and device and electronic equipment
CN114758360A
Semantic segmentation method for RGB-T bimodal feature fusion
CN115620010A
Method for processing prostate cancer in multi-parameter magnetic resonance image and related equipment
CN116758039A
