A multi-modal ultrasound image prostate cancer classification method, device and related components

By employing a multimodal ultrasound image classification method, which utilizes a hybrid attention module and a segmentation module to extract and segment features from ultrasound elastography and B-mode ultrasound images, the problem of low recognition accuracy in existing technologies is solved, and more efficient prostate cancer classification is achieved.

CN118570529BActive Publication Date: 2026-11-27SHENZHEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410647361.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2026-11-27
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

Existing image classification methods have low accuracy in identifying clinically significant prostate cancer, and there is a lack of research on multimodal ultrasound image classification based on deep learning, leading to over-testing and waste of medical resources.

Method used

A multimodal ultrasound image classification method is adopted. By acquiring ultrasound elastography images and B-mode ultrasound images, feature extraction is performed using two encoders, and feature weight correction is performed using a hybrid attention module. Combined with average pooling and fully connected layer processing, a segmentation module is used for segmentation, and finally, the classification and segmentation results are supervised.

Benefits of technology

It improved the accuracy of prostate cancer identification, ensured the accuracy of classification results and the reliability of segmentation results, and reduced the occurrence of over-detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570529B_ABST
    Figure CN118570529B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of multi-modal ultrasound image prostate cancer classification method, device and related components, the classification method is extracted to feature by two encoders to gray scale elasticity image and B-mode image respectively, the feature extracted is input into mixed attention module to carry out feature weight correction, to classify and segment the output feature, to obtain classification result and segmentation result, then the classification result and segmentation result are supervised.The classification method of this embodiment uses mixed attention module to carry out feature weight correction to two images, and uses segmentation module to segment the output feature, to supervise the classification result and segmentation result, so that the final classification result is more accurate, to improve the identification accuracy of prostate cancer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of prostate cancer image classification technology, and in particular to a multimodal ultrasound image prostate cancer classification method, device and related components. Background Technology

[0002] Prostate cancer (PCa) is a common cancer. Based on pathological features, prostate cancer is classified into clinically significant PCa (csPCa) and clinically insignificant PCa (cisPCa). Because csPCa has a poor prognosis, timely intervention and treatment are necessary. Currently, prostate cancer is usually diagnosed through prostate biopsy. While prostate biopsy can detect csPCa, healthcare professionals cannot accurately determine which patients are at high risk. Relying solely on increasing the biopsy rate to ensure csPCa detection inevitably leads to many unnecessary biopsies, resulting in over-testing for benign prostatic hyperplasia (BPH) or cisPCa, increasing patient suffering and burden, and causing a significant waste of medical resources.

[0003] Therefore, any patient suspected of having prostate cancer (PCa) should undergo multiparametric magnetic resonance imaging (mp-MRI) or transrectal ultrasound before biopsy to identify csPCa patients. However, mp-MRI and transrectal ultrasound are complex and expensive. Technicians have therefore used image classification methods to categorize csPCa images to identify patients, but existing image classification methods have low accuracy, and there are currently no studies using deep learning technology and multimodal ultrasound images for the classification of clinically significant prostate cancer. Summary of the Invention

[0004] This invention provides a method, apparatus, and related components for classifying prostate cancer using multimodal ultrasound images, aiming to solve the problem of low recognition accuracy in existing image classification methods.

[0005] In a first aspect, embodiments of the present invention provide a method for classifying prostate cancer using multimodal ultrasound images, including:

[0006] A dataset containing ultrasound elastography images and B-mode ultrasound images is obtained, and the ultrasound elastography images are preprocessed to obtain grayscale elastography images.

[0007] Two encoders are used to extract features from the grayscale elastic image and the ultrasound image respectively, and a hybrid attention module is used to correct the feature weights of the extracted features to obtain the output features;

[0008] The output features are subjected to average pooling and fully connected layer processing to obtain the classification result;

[0009] The output features are segmented using a segmentation module to obtain the segmentation result;

[0010] The classification and segmentation results are supervised.

[0011] Secondly, embodiments of the present invention provide a multimodal ultrasound image prostate cancer classification device for implementing the multimodal ultrasound image prostate cancer classification method as described above, including:

[0012] The acquisition unit is used to acquire a dataset containing ultrasound elastography images and B-mode ultrasound images, and to preprocess the ultrasound elastography images to obtain grayscale elastography images.

[0013] The extraction unit is used to extract features from the grayscale elastic image and the B-ultrasound image using two encoders respectively, and to perform feature weight correction on the extracted features using a hybrid attention module to obtain output features;

[0014] A classification unit is used to perform average pooling and fully connected layer processing on the output features to obtain the classification result;

[0015] A segmentation unit is used to segment the output features using the segmentation module to obtain a segmentation result;

[0016] The correction unit is used to perform prototype correction and activation on the output features using the prototype correction module to obtain pseudo-labels;

[0017] The supervision unit is used to supervise the classification and segmentation results.

[0018] Thirdly, embodiments of the present invention provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the multimodal ultrasound image prostate cancer classification method as described above.

[0019] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the multimodal ultrasound image prostate cancer classification method as described above.

[0020] This invention provides a multimodal ultrasound image classification method, apparatus, and related components for prostate cancer. The classification method uses two encoders to extract features from a grayscale elastography image and a B-mode ultrasound image, respectively. The extracted features are then input into a hybrid attention module for feature weight correction, thereby classifying and segmenting the output features to obtain classification and segmentation results. The classification and segmentation results are then supervised. This embodiment's classification method uses a hybrid attention module to correct feature weights for the two images and a segmentation module to segment the output features, thus supervising the classification and segmentation results. This makes the final classification result more accurate, thereby improving the accuracy of prostate cancer identification. Attached Figure Description

[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating a multimodal ultrasound image classification method for prostate cancer provided in an embodiment of the present invention;

[0023] Figure 2 This is a schematic diagram of a sub-process of a multimodal ultrasound image prostate cancer classification method provided in an embodiment of the present invention;

[0024] Figure 3 This is a schematic diagram of another sub-process of a multimodal ultrasound image prostate cancer classification method provided in an embodiment of the present invention;

[0025] Figure 4 A schematic diagram of the hybrid attention module provided in an embodiment of the present invention;

[0026] Figure 5 A flowchart illustrating a multimodal ultrasound image classification method for prostate cancer, provided in another embodiment of the present invention;

[0027] Figure 6 This is a schematic diagram of a sub-process of a multimodal ultrasound image prostate cancer classification method provided in another embodiment of the present invention;

[0028] Figure 7 A schematic diagram of the prototype correction module provided in an embodiment of the present invention;

[0029] Figure 8 A logical schematic diagram of a multimodal ultrasound image prostate cancer classification method provided in an embodiment of the present invention;

[0030] Figure 9This is a schematic block diagram of a multimodal ultrasound image prostate cancer classification device provided in an embodiment of the present invention. Detailed Implementation

[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort 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 "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0033] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0034] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0035] Please see Figure 1 This invention provides a method for classifying prostate cancer using multimodal ultrasound images, including steps S10-S50:

[0036] S10. Obtain a dataset containing ultrasound elastography images and B-mode ultrasound images, and preprocess the ultrasound elastography images to obtain grayscale elastography images.

[0037] In this step, the multimodal ultrasound images include ultrasound elastography and B-mode ultrasound images. Ultrasound elastography is an image that incorporates information from both pure elasticity and B-mode ultrasound. It is obtained through shear wave elastography, a technique used to assess tissue elasticity or stiffness. Shear wave elastography involves applying an external shear wave to the tissue and then observing changes in the propagation speed and morphology of the shear wave to obtain the ultrasound elastography image, thereby inferring the tissue's elastic properties. To improve the accuracy of the classification results, pure elasticity images are used for subsequent processing. This involves preprocessing the ultrasound elastography images to obtain their pure elasticity information, and then reconstructing the pure elasticity images using grayscale to obtain grayscale elastography images.

[0038] In one embodiment, such as Figure 2 As shown, step S10 includes S11-S13:

[0039] S11. Select the ultrasound elastography image and B-mode ultrasound image of the predetermined size and normalize them;

[0040] S12. Subtract the B-ultrasound image from the ultrasound elasticity image to obtain a pure elasticity image;

[0041] S13. Use a color bar to perform color matching with the pure elastic image, and convert the pure elastic image into a grayscale image to obtain a grayscale elastic image.

[0042] In this step, ultrasound elastography images and B-mode ultrasound images of predetermined sizes are selected and scaled according to the dataset, and the data distribution of the two types of images is normalized. Then, the ultrasound elastography image is preprocessed. Specifically, the ultrasound elastography image is subtracted from the corresponding B-mode ultrasound image to obtain a pure elastography image. Then, the pure elastography image is chromaticity matched with a color bar to ensure that the colors of the pure elastography image are consistent. Then, the chromaticity matched pure elastography image is converted into a grayscale image to generate a reconstructed grayscale elastography image. The obtained grayscale elastography image and B-mode ultrasound image are used in subsequent implementation processes.

[0043] S20. Use two encoders to extract features from the grayscale elastic image and the B-ultrasound image respectively, and use a hybrid attention module to correct the feature weights of the extracted features to obtain the output features;

[0044] In this step, two encoders are set up: a grayscale encoder for processing the grayscale elastic image and an ultrasound encoder for processing the ultrasound image. Each encoder includes multiple corresponding blocks. Specifically, both the grayscale encoder and the ultrasound encoder use ResNet50 networks. To improve the classification results, it is preferable to use two 3D ResNet50 networks with non-shared weights to extract features from the grayscale elastic image and the ultrasound image, respectively. Each of these two 3D ResNet50 networks includes four blocks, which correspond one-to-one. Each block includes convolution, activation, normalization, and pooling operations.

[0045] In the specific implementation process, one 3D ResNet50 network extracts features from the grayscale elastic image. The features extracted by each block of this 3D ResNet50 network are elasticity extraction features. Another 3D ResNet50 network extracts features from the ultrasound image. The features extracted by each block of this 3D ResNet50 network are ultrasound extraction features. The features extracted by each Block (i.e., elasticity extraction features and ultrasound extraction features) enter the attention module for feature weight correction. Then, the features before entering the hybrid attention module are fused together before entering the next block, thus obtaining 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 elastic image and ultrasound image) becomes 1 / 4 of the original image. In each subsequent 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, such as Figure 3 As shown, step S20 includes S21-S24:

[0047] S21. Input the elastic extraction features of each block in the grayscale encoder and the ultrasound extraction features of each block in the ultrasound encoder into the adaptive spatial attention module to obtain elastic output features.

[0048] S22. The elastic output feature and the elastic extraction feature of the corresponding block in the grayscale encoder are fused by pixel addition and input into the next block of the grayscale encoder.

[0049] S23. Input the ultrasound extracted features of each block in the ultrasound encoder into the dimensional attention module for weighted fusion, and concatenate them with the elastic output features, and perform convolution and activation to obtain the ultrasound output features.

[0050] S24. The ultrasound output features are fused with the ultrasound extracted features of the corresponding block in the ultrasound encoder and input into the next block of the ultrasound encoder.

[0051] In this step, the hybrid attention module includes an adaptive spatial attention module and a dimensional attention module. The adaptive spatial attention module includes three convolutional blocks, each of which includes a convolution operation, an activation operation, and a normalization operation. The dimensional attention module includes a fully connected layer and an activation operation.

[0052] In step S21, as Figure 4 As shown ( Figure 4 middle, Indicates pixel multiplication. Indicates splicing, This approach (representing pixel addition) introduces an adaptive spatial attention module. It calculates the element-wise product of the elastic extraction feature FE and the ultrasound extraction feature FX of the corresponding block through pixel multiplication. This element-wise product is then concatenated with the corresponding elastic extraction feature FE and ultrasound extraction feature FX to obtain the elastic concatenation result and the ultrasound concatenation result. Both the elastic concatenation result and the ultrasound concatenation result are then passed through a convolutional block and activated before being output. The two outputs are concatenated and activated again to generate attention weight maps (including the elastic weight map and the ultrasound weight map). The attention weights of the elastic weight map are fused with the elastic extraction feature FE through pixel multiplication and output, and the attention weights of the ultrasound weight map are fused with the ultrasound extraction feature FX through pixel multiplication and output. The two outputs are then fused together through pixel addition to obtain the elastic output feature.

[0053] In step S22, the elastic output features of the current block of the grayscale encoder obtained in step S21 are fused with the elastic extraction features of the current block by pixel addition. 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, as Figure 4 As shown, a dimensional attention module is introduced to enhance the utilization of ultrasound-extracted features FX by the 3D ResNet50 network. The dimensional attention module reweights and outputs the ultrasound-extracted features FX, and then fuses the reweighted output with the ultrasound-extracted features FX through pixel multiplication to obtain the ultrasound fused features. Specifically, FX∈R H ×W×T×C This can be viewed as C cubes for extracting features from ultrasound scans. 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 Attention scores s were calculated using a squeeze-excitation method. D :

[0055] s D =σ(FC(F) D D∈{H,W,T}

[0056] In this context, FC stands for fully connected layer, σ represents the activation operation, H, W, and T are three different dimensions, and D belongs to one of the three dimensions. D It is a vector with three different dimensions;

[0057] According to attention score D The ultrasound-extracted feature FX is reweighted and output. The reweighted output is then fused with the ultrasound-extracted feature FX through pixel multiplication to obtain the ultrasound fused feature. The ultrasound fused feature is then concatenated with the elastic output feature, and finally, through convolutional blocks and activation operations, the ultrasound output feature is obtained.

[0058] In step S24, the ultrasound output features obtained by the current block of the ultrasound encoder after step S23 are fused with the ultrasound extraction features of the current block. The fused result is input into the next block, and step S23 is executed again until the ultrasound extraction features of all blocks are corrected and output.

[0059] In summary, such as Figure 4 and Figure 8 As shown, both 3D ResNet50 networks include four blocks. One 3D ResNet50 network includes Block1, Block2, Block3, and Block4 (Block4 being the last) connected in sequence, used to process ultrasound images. The other 3D ResNet50 network includes Block5, Block6, Block7, and Block8 (Block8 being the last) connected in sequence, used to process grayscale elastic images. Block1 corresponds to Block5, Block2 corresponds to Block6, Block3 corresponds to Block7, and Block4 corresponds to Block8.

[0060] First, the elastic extraction feature FX extracted by Block 1 and the ultrasound extraction feature FE extracted by Block 5 are input into the hybrid attention module to obtain the first elastic output feature and the first ultrasound output feature. Then, the elastic extraction feature extracted by Block 1 is added to the first elastic output feature and input into Block 2, and the ultrasound extraction feature extracted by Block 5 is added to the first ultrasound output feature and input into Block 6. The elastic extraction feature extracted by Block 2 and the ultrasound extraction feature extracted by Block 6 are input into the hybrid attention module to obtain the second elastic output feature and the second ultrasound output feature. Then, the elastic extraction feature extracted by Block 2 is added to the second elastic output feature and input into Block 3, and the ultrasound extraction feature extracted by Block 6 is added to the second ultrasound output feature and input into Block 7, and so on.

[0061] S30. Perform average pooling and fully connected layer processing on the output features to obtain the classification result;

[0062] The output features obtained from the aforementioned steps include the elastic output features and ultrasound output features of the last block. In this step, only the ultrasound output features of the last block need to be used for average pooling and fully connected layer processing to accurately classify the prostate cancer and generate classification results. The classification results improve the accuracy of prostate cancer identification.

[0063] In one embodiment, step S30 includes:

[0064] The 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 ultrasound encoder (i.e., the fourth ultrasound output feature). By performing average pooling on the 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 a more accurate classification result.

[0066] S40. The output features are segmented using the segmentation module to obtain the segmentation result;

[0067] This step adds a segmentation task to help the two encoders extract more distinctive features. The segmentation module segments the ultrasound output features to obtain the segmentation results.

[0068] In one embodiment, step S40 includes:

[0069] The ultrasound output features of the last block are decoded using a decoder to obtain the segmentation result;

[0070] In this step, a 3D U-Net decoder with skip connections is used as the segmentation module to perform the segmentation task, helping the 3D ResNet50 network extract more features for more accurate classification results. The 3D U-Net decoder consists of four decoding modules, each containing two convolutional blocks. Each convolutional block includes convolution, activation, and normalization operations. The ultrasound output features of the last block are processed by each decoding module to obtain decoded features. Before being input into the decoding modules, the ultrasound output features of the last block undergo transposed convolution to be upsampled to twice the original image size. Skip connections are then used to concatenate the decoded features with the corresponding image size. After passing through four decoding modules, the image is restored to its original size, and the segmentation results are obtained. These results include segmentation with labeled data and segmentation with unlabeled data.

[0071] S50. Supervise the classification and segmentation results.

[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 preferable to supervise both results to obtain the final classification result.

[0073] In one embodiment, such as Figure 5 As shown, step S50 includes S51-S55:

[0074] S51. Use the prototype correction module to perform prototype correction and activation on the ultrasound output features of the last block to generate pseudo-labels.

[0075] S52. For the dataset containing clinically significant prostate cancer, determine whether the data contains labeled data or unlabeled data;

[0076] S53. For unlabeled data, the pseudo-labels are used to supervise the segmentation results of the unlabeled data;

[0077] S54. For labeled data, use a mask to supervise the segmentation results of the labeled data;

[0078] S55. For the dataset that does not contain clinically significant prostate cancer, zero supervision is used.

[0079] This step is a supervision process for the segmentation results, using masks and pseudo-labels. In the specific implementation, samples are divided into positive and negative samples, namely grayscale elastography images and ultrasound images. Masks are then marked on the images, serving as segmentation labels. However, due to the limited 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, data containing csPCa is used as positive samples. For data containing csPCa, the masked dataset (i.e., labeled data) is called the support set (X). support Y support ), where Y support X represents the corresponding mask. support Representing grayscale elastic images and ultrasound images, the dataset without masks (i.e., unlabeled data) is called the query set (M). query For labeled data, a mask is used to supervise the segmentation results. For unlabeled data, since it has no mask (i.e., no sub-mask), pseudo-labels can be used to supervise the segmentation results. The acquisition of pseudo-labels will be explained in detail in subsequent steps. Data that does not contain clinically significant prostate cancer is treated as negative samples and represented as (X... neg The training process uses zero-based supervision to ensure that the data are correctly classified as negative examples during training, thereby improving the accuracy and reliability of the segmentation results.

[0080] In one embodiment, such as Figure 6 As shown, step S51 includes steps S511-S515:

[0081] S511. For the ultrasound output features based on the labeled data through the last block, a support prototype is obtained by average pooling.

[0082] S512. Based on the ultrasound output features of the last block of the unlabeled data, obtain the query features;

[0083] S513. Calculate the similarity between the supporting prototype and the query feature, and activate them to obtain a similarity map;

[0084] S514. The similarity map is fused with the query feature, and the fusion result is fused with the supporting prototype to obtain the fused prototype;

[0085] S515. After iterating the fusion prototype multiple times, calculate the similarity between it and the query feature to obtain the pseudo-label.

[0086] This step involves generating pseudo-labels. Even with unlabeled data, the decoder still requires a supervisory signal, so pseudo-labels are used as this signal. While prototype matching could be used to generate pseudo-labels, limitations in prototype support necessitate a prototype correction module to modify and activate the ultrasound output features of the last block, resulting in higher-quality pseudo-labels. Specifically, as follows... Figure 7 As shown, a mask (Y) is used. support Perform average pooling (MAP) on the ultrasound output features of the last block:

[0087]

[0088]

[0089] Where K represents X support The number of f θ Indicates encoder, It is a characteristic of ultrasound output, P S This represents the supporting prototype of the obtained support set;

[0090] The ultrasound output features of unlabeled data after passing through the last block are used as query features. The query feature F is calculated using the following formula. query With support for prototype P S The cosine similarity between them is calculated and activated to obtain the similarity map M. query :

[0091] M query =σ(sim(f) θ (F query ),P S ))

[0092] Where σ is the activation operation and sim() is the cosine similarity function;

[0093] Because the number of supported sets is very small, prototype P is supported. S The represented features are not comprehensive, so a prototype correction module is introduced. This module does not contain the parameters that need to be trained; it only includes cosine similarity calculation, pixel multiplication, pixel addition, and softmax operations. Therefore, without introducing additional training parameters, the prototype correction module can fully support prototype P. S , similarity graph M query and query feature F query Perform masked average pooling (MAP) and fuse the results to generate the query prototype P. q And will query prototype P q Through pixel addition and supporting prototype P S Fusion yields the fusion prototype P. f, integration prototype P f The process is represented by the following formula:

[0094]

[0095] This process can be repeated multiple times, allowing for multiple iterative fusions of the supporting prototype;

[0096] Finally, the similarity between the fused prototype and the query features after multiple iterations of fusion is calculated, and then activation is performed to obtain pseudo-labels. These pseudo-labels are then used to supervise the unlabeled data.

[0097] In specific embodiments, whether performing classification or segmentation tasks, there is a loss during the task process. For classification tasks, the loss function L... cls Defined as:

[0098]

[0099] in, For the encoder's classification prediction, Y cls Category labels for 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;

[0103] For data in the segmentation task that does not contain csPCa regions, zero supervision is used since it does not contain csPCa regions, and the loss function L... seg_neg Defined as:

[0104]

[0105] For the query set in the segmentation task, all similarity maps are sorted, and the top 100 points in each map are selected as pseudo-labels. Half of the pseudo-labels are selected from the preceding similarity map, and the other half are selected from the following similarity map. The pixel-level cross-entropy loss function L is minimized. seg_query Defined as:

[0106]

[0107] Where P represents the set of pseudo-labels selected from the preceding similarity graph, and j P Let j be the pseudo-label of the current similarity graph in the preceding similarity graph, and N represent the set of pseudo-labels selected in the following similarity graph. NThese are pseudo-labels for the current similarity graph in the subsequent similarity graph;

[0108] Using classification loss L cls And segmentation loss L setg The sum of these terms is used to train the network:

[0109] L = L cls +L setg_support +α·L seg_query +β·L seg_neg

[0110] Where α and β are weighting coefficients.

[0111] The supervision of the classification and segmentation results also includes:

[0112] The classification results are monitored using classification labels.

[0113] In this step, for the classification task, all data are labeled data. The classification results are supervised using classification labels, which are obtained through liveness detection.

[0114] The logical diagram of the entire classification method is as follows: Figure 8 As shown.

[0115] In the specific implementation, training was carried out on PyTorch using an NVIDIA RTX 8000 GPU with 48GB of memory. The encoder was 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 was performed, where epoch represents the number of iterations. To address the class imbalance problem, the batch size was set to 2, with each batch containing one positive and one negative sample. α and β were set to 0.001 and 0.1, respectively. The trained model was then used to classify prostate cancer in multimodal ultrasound images.

[0116] This invention also provides a multimodal ultrasound image prostate cancer classification device, which is used to perform any of the aforementioned multimodal ultrasound image prostate cancer classification methods. Specifically, please refer to... Figure 9 , Figure 9 This is a schematic block diagram of a multimodal ultrasound image prostate cancer classification device provided in an embodiment of the present invention. The multimodal ultrasound image prostate cancer classification device 600 includes:

[0117] The acquisition unit 610 is used to acquire a dataset containing ultrasound elastography images and B-mode ultrasound images, and to preprocess the ultrasound elastography images to obtain grayscale elastography images.

[0118] In one embodiment, the acquisition unit 610 includes:

[0119] The selection unit is used to select and normalize ultrasound elastography images and B-mode ultrasound images of predetermined sizes.

[0120] The subtraction unit is used to subtract the B-ultrasound image from the ultrasound elasticity image to obtain a pure elasticity image;

[0121] The matching unit is used to perform chromaticity matching between the pure elastic image and the color bar, and to convert the pure elastic image into a grayscale image to obtain a grayscale elastic image.

[0122] The extraction unit 620 is used to extract features from the grayscale elastic image and the B-ultrasound image using two encoders respectively, and to perform feature weight correction on the extracted features using a hybrid attention module to obtain output features;

[0123] In one embodiment, the extraction unit 620 includes:

[0124] The first input unit is used to input the elastic extraction features of each block in the grayscale encoder and the ultrasound extraction features of each block in the ultrasound encoder to the adaptive spatial attention module to obtain elastic output features.

[0125] The first fusion unit is used to fuse the elastic output feature with the elastic extraction feature of the corresponding block in the grayscale encoder through pixel addition, and input it into the next block of the grayscale encoder.

[0126] The second input unit is used to input the ultrasound extracted features of each block in the ultrasound encoder into the dimensional attention module for weighted fusion, and then concatenate them with the elastic output features, and perform convolution and activation to obtain the ultrasound output features.

[0127] The second fusion unit is used to fuse the ultrasound output features with the ultrasound extracted features of the corresponding block in the ultrasound encoder, and input them into the next block of the ultrasound encoder.

[0128] The classification unit 630 is used to perform average pooling and fully connected layer processing on the output features to obtain the 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 ultrasound output features of the last block to obtain the classification result.

[0131] The segmentation unit 640 is used to segment the output features using the 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 ultrasound output features of the last block using the decoder to obtain the segmentation result.

[0134] In one embodiment, the monitoring unit 650 includes:

[0135] The modified activation unit is used to modify and activate the ultrasound output features of the last block using the prototype modification module to generate pseudo-labels.

[0136] A data determination unit is used to determine whether the dataset contains labeled data and unlabeled data for clinically significant prostate cancer.

[0137] The first supervision unit is used to supervise the segmentation results of unlabeled data using the pseudo-labels;

[0138] The second supervision unit is used to supervise the segmentation results of labeled data using a mask;

[0139] The third supervisory unit is used to supervise the dataset with zero data for data that does not contain clinically significant prostate cancer.

[0140] In one embodiment, the modified activation unit includes:

[0141] The average pooling unit is used to obtain the supporting prototype by masking average pooling for the ultrasound output features based on the labeled data after the last block.

[0142] The query feature acquisition unit is used to obtain query features based on the ultrasound output features of the last block of the unlabeled data;

[0143] The first calculation unit is used to calculate the similarity between the supporting prototype and the query feature, and to activate it to obtain a similarity map;

[0144] The fusion unit is used to fuse the similarity map with the query features, and fuse the fusion result with the supporting prototype to obtain the fused prototype;

[0145] The second calculation unit is used to iterate the fusion prototype multiple times and then calculate the similarity between it and the query feature to obtain pseudo-labels.

[0146] The monitoring unit 650 also includes:

[0147] The fourth supervisory unit uses classification labels to supervise the classification results.

[0148] This 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, it implements the multimodal ultrasound image prostate cancer classification method as described in the foregoing embodiments.

[0149] This invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the multimodal ultrasound image prostate cancer classification method as described in the foregoing embodiments.

[0150] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A multimodal ultrasound image method for classifying prostate cancer, characterized in that, include: A dataset containing ultrasound elastography images and B-mode ultrasound images is obtained, and the ultrasound elastography images are preprocessed to obtain grayscale elastography images. Two encoders are used to extract features from the grayscale elastic image and the ultrasound image respectively, and a hybrid attention module is used to correct the feature weights of the extracted features to obtain the output features; The output features are subjected to average pooling and fully connected layer processing to obtain the classification result; The output features are segmented using a segmentation module to obtain the segmentation result; The classification and segmentation results are supervised; The hybrid attention module includes an adaptive spatial attention module and a dimensional attention module. The two encoders are a grayscale encoder for processing the grayscale elastic image and an ultrasound encoder for processing the ultrasound image, respectively. Each encoder includes multiple corresponding blocks. The two encoders are used to extract features from the grayscale elastic image and the ultrasound image, respectively. The hybrid attention module is then used to correct the feature weights of the extracted features to obtain output features, including: The elastic extraction features of each block in the grayscale encoder and the ultrasound extraction features of each block in the ultrasound encoder are input into the adaptive spatial attention module to obtain the elastic output features. The elastic output feature is fused with the elastic extraction feature of the corresponding block in the grayscale encoder by pixel addition, and then input into the next block of the grayscale encoder. The ultrasound-extracted features of each block in the ultrasound encoder are input into the dimensional attention module for weighted fusion, and then concatenated with the elastic output features, followed by convolution and activation to obtain the ultrasound output features. The ultrasound output features are fused with the ultrasound extracted features of the corresponding block in the ultrasound encoder and then input into the next block of the ultrasound encoder.

2. The multimodal ultrasound image method for classifying prostate cancer according to claim 1, characterized in that, The process of acquiring ultrasound elastography images and B-mode ultrasound images, and preprocessing the ultrasound elastography images to obtain grayscale elastography images, includes: Select ultrasound elastography images and B-mode ultrasound images of predetermined sizes and normalize them; Subtract the B-mode ultrasound image from the ultrasound elasticity image to obtain a pure elasticity image; The pure elastic image is chromaticity matched with a color bar and then converted into a grayscale image to obtain a grayscale elastic image.

3. The multimodal ultrasound image method for classifying prostate cancer according to claim 1, characterized in that, The two encoders are ResNet50, each consisting of four sequentially connected blocks. The process involves performing average pooling and fully connected layer processing on the output features to obtain a classification result, and then using a segmentation module to segment the output features to obtain a segmentation result, including: The ultrasound output features of the last block are processed by average pooling and fully connected layers to obtain the classification results; The ultrasound output features of the last block are decoded using a decoder to obtain the segmentation result.

4. The multimodal ultrasound image method for classifying prostate cancer according to claim 3, characterized in that, The supervision of the classification and segmentation results includes: The prototype correction module is used to perform prototype correction and activation on the ultrasound output features of the last block to generate pseudo-labels; For the dataset containing clinically significant prostate cancer, identify the labeled and unlabeled data within the dataset; For unlabeled data, the pseudo-labels are used to supervise the segmentation results of the unlabeled data; For labeled data, a mask is used to supervise the segmentation results of the labeled data; For data in the dataset that does not contain clinically significant prostate cancer, zero supervision is used.

5. The multimodal ultrasound image method for classifying prostate cancer according to claim 1, characterized in that, The supervision of the classification and segmentation results also includes: The classification results are monitored using classification labels.

6. The multimodal ultrasound image method for classifying prostate cancer according to claim 4, characterized in that, The process of using the prototype correction module to perform prototype correction and activation of the ultrasound output features of the last block to generate pseudo-labels includes: For the ultrasound output features based on the labeled data through the last block, a support prototype is obtained by masked average pooling. The query features are obtained based on the ultrasound output features of the last block of the unlabeled data; Calculate the similarity between the supporting prototype and the query feature, and activate them to obtain a similarity map; The similarity map is fused with the query features, and the fusion result is fused with the supporting prototype to obtain the fused prototype; After iterating the fusion prototype multiple times, the similarity between it and the query feature is calculated to obtain pseudo-labels.

7. A multimodal ultrasound image prostate cancer classification device, used to implement the multimodal ultrasound image prostate cancer classification method as described in any one of claims 1-6, characterized in that, include: The acquisition unit is used to acquire a dataset containing ultrasound elastography images and B-mode ultrasound images, and to preprocess the ultrasound elastography images to obtain grayscale elastography images. The extraction unit is used to extract features from the grayscale elastic image and the B-ultrasound image using two encoders respectively, and to perform feature weight correction on the extracted features using a hybrid attention module to obtain output features; A classification unit is used to perform average pooling and fully connected layer processing on the output features to obtain the classification result; A segmentation unit is used to segment the output features using the segmentation module to obtain a segmentation result; The supervision unit is used to supervise the classification and segmentation results.

8. A computer device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the multimodal ultrasound image prostate cancer classification method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the multimodal ultrasound image prostate cancer classification method as described in any one of claims 1 to 6.