Training method of axillary lymph node prediction model and prediction method of axillary lymph node

By integrating the feature fusion technology of contrast-enhanced ultrasound and grayscale ultrasound images, the accuracy of the axillary lymph node prediction model is improved, the problem of low accuracy of the existing model is solved, and a more accurate judgment of axillary lymph node metastasis is achieved.

CN118587491AInactive Publication Date: 2024-09-03脉得智能科技(无锡)有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410707219.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The accuracy of existing axillary lymph node prediction models is low, especially because the characteristics of micrometastatic lymph nodes are difficult to display in grayscale ultrasound images, resulting in low sensitivity.

Method used

By integrating ultrasound contrast sample images and grayscale ultrasound sample images to train the model, feature extraction and fusion technology is used to extract ultrasound contrast features and grayscale ultrasound features, and fuse the spatial and channel dimensions to improve the prediction accuracy of the model.

Benefits of technology

The accuracy of the axillary lymph node prediction model is improved, and the high sensitivity of contrast-enhanced ultrasound sample images and the high specificity of grayscale ultrasound sample images are combined to achieve a more accurate judgment of axillary lymph node metastasis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587491A
    Figure CN118587491A
Patent Text Reader

Abstract

The invention provides a training method of an axillary lymph node prediction model and a prediction method of an axillary lymph node. A specific embodiment of the training method of the axillary lymph node prediction model comprises the steps of obtaining a sample image pair and a real label corresponding to the sample image pair; the sample image pair comprises an ultrasonic contrast sample image and a gray level ultrasonic sample image of the same axillary lymph node; the real label represents that the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; and training an axillary lymph node prediction model by taking the sample image pair as input and taking the real label as expected output to obtain a trained axillary lymph node prediction model. The method can improve the prediction accuracy of the axillary lymph node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and specifically, to a training method for an axillary lymph node prediction model and a method for predicting axillary lymph nodes. Background Art

[0002] Axillary lymph nodes refer to a series of lymph nodes located in the axillary region of the human body. By determining whether the axillary lymph nodes have metastasized, it can provide a reference for medical staff to judge whether the patient has breast cancer, skin cancer and other diseases and the corresponding pathological stage. In addition, it can also provide a reference for medical staff to predict the recurrence and survival of patients. Therefore, it is more important to accurately determine whether the axillary lymph nodes have metastasized.

[0003] In the related art, a computer can use grayscale ultrasound images to train a model so that the trained model can determine whether the axillary lymph nodes are metastatic, but the accuracy of this type of axillary lymph node prediction model is low. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a training method for an axillary lymph node prediction model and a method for predicting axillary lymph nodes, so as to improve the prediction accuracy of axillary lymph nodes.

[0005] In the first aspect, an embodiment of the present application provides a method for training an axillary lymph node prediction model, the method comprising: obtaining a sample image pair and a true label corresponding to the sample image pair; the sample image pair comprises an ultrasound contrast sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; the sample image pair is used as input, and the true label is used as the expected output to train an initial axillary lymph node prediction model to obtain a trained axillary lymph node prediction model. In this way, the axillary lymph node prediction model obtained by integrating the ultrasound contrast sample image and the grayscale ultrasound sample image training not only has the high specificity brought by the grayscale ultrasound sample image, but also has the high sensitivity brought by the ultrasound contrast sample image, so that its prediction accuracy is relatively high.

[0006] Optionally, the method of using the sample image pair as input and the true label as the expected output to train the initial axillary lymph node prediction model includes: using the first feature extraction unit of the initial axillary lymph node prediction model to extract the ultrasound contrast features of the ultrasound contrast sample image to obtain an ultrasound contrast feature map; using the second feature extraction unit of the initial axillary lymph node prediction model to extract the grayscale ultrasound features of the grayscale ultrasound sample image to obtain a grayscale ultrasound feature map; using the feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map; using the classification unit of the initial axillary lymph node prediction model to classify the fused feature map to obtain a classification result; the classification result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; if the loss value between the classification result and the true label meets the loss requirement, it is determined that the training of the initial axillary lymph node prediction model is completed. Here, a training method based on feature-level fusion is provided to improve the prediction accuracy of the axillary lymph node prediction model.

[0007] Optionally, the feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and the feature fusion unit using the initial axillary lymph node prediction model fuses the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map, including: using the first feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a first fused feature map; using the spatial feature extraction unit of the initial axillary lymph node prediction model to extract the spatial features of the first fused feature map to obtain a spatial feature map; using the channel feature extraction unit of the initial axillary lymph node prediction model to extract the channel features of the first fused feature map to obtain a channel feature map; using the second feature fusion unit of the initial axillary lymph node prediction model to fuse the spatial feature map and the channel feature map to obtain a space-channel fusion feature map; and the classification unit using the initial axillary lymph node prediction model classifies the fused feature map to obtain a classification result, including: using the classification unit of the initial axillary lymph node prediction model to classify the space-channel fusion feature map to obtain a classification result. In this way, the feature information in the first fusion feature map can be extracted more comprehensively based on the channel dimension and the spatial dimension, so that when the initial axillary lymph node prediction model is trained based on the feature information, the accuracy of the axillary lymph node prediction model can be improved.

[0008] Optionally, the feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and the feature fusion unit using the initial axillary lymph node prediction model fuses the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map, including: using the first feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a first fused feature map; using the spatial feature extraction unit of the initial axillary lymph node prediction model to extract the spatial features of the first fused feature map to obtain a spatial feature map; using the convolution unit of the initial axillary lymph node prediction model to extract the global features of the first fused feature map to obtain a convolution feature map; using the second feature fusion unit of the initial axillary lymph node prediction model to fuse the spatial feature map and the convolution feature map to obtain a spatial-convolution fused feature map; and the classification unit using the initial axillary lymph node prediction model classifies the fused feature map to obtain a classification result, including: using the classification unit of the initial axillary lymph node prediction model to classify the spatial-convolution fused feature map to obtain a classification result. In this way, when using the spatial-convolutional fusion feature map to train the initial axillary lymph node prediction model, since the spatial-convolutional fusion feature map contains feature information in the spatial dimension and does not lose other feature information, it can improve the accuracy of the axillary lymph node prediction model to a certain extent.

[0009] Optionally, the feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and the feature fusion unit using the initial axillary lymph node prediction model fuses the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map, including: using the first feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a first fused feature map; using the channel feature extraction unit of the initial axillary lymph node prediction model to extract the channel features of the first fused feature map to obtain a channel feature map; using the convolution unit of the initial axillary lymph node prediction model to extract the global features of the first fused feature map to obtain a convolution feature map; using the second feature fusion unit of the initial axillary lymph node prediction model to fuse the channel feature map and the convolution feature map to obtain a channel-convolution fusion feature map; and the classification unit using the initial axillary lymph node prediction model classifies the fused feature map to obtain a classification result, including: using the classification unit of the initial axillary lymph node prediction model to classify the channel-convolution fusion feature map to obtain a classification result. In this way, when using the channel-convolution fusion feature map to train the initial axillary lymph node prediction model, since the channel-convolution fusion feature map contains the feature information in the channel dimension and does not lose other feature information, it can improve the accuracy of the axillary lymph node prediction model to a certain extent.

[0010] Optionally, the spatial feature extraction unit of the initial axillary lymph node prediction model is used to extract the spatial features of the first fused feature map to obtain the spatial feature map, including: using the spatial feature extraction unit to perform a global average pooling operation on the first fused feature map in the channel dimension to obtain a two-dimensional feature vector; downsampling the two-dimensional feature vector to obtain a downsampled feature map; upsampling the downsampled feature map to obtain a two-dimensional weight distribution map; the two-dimensional weight distribution map includes the weight value of the feature at each spatial position of the first fused feature map being a metastatic feature; extracting the spatial features from the first fused feature map according to the two-dimensional weight distribution map to obtain the spatial feature map. In this way, since the spatial feature map is obtained based on the two-dimensional weight distribution map including the weight value of the feature at each spatial position of the first fused feature map being a metastatic feature, the spatial feature map can help the axillary lymph node prediction model to more accurately locate the metastatic feature area in the first fused feature map, thereby improving the accuracy of the axillary lymph node prediction model.

[0011] Optionally, the channel feature extraction unit of the initial axillary lymph node prediction model is used to extract the channel features of the first fused feature map to obtain a channel feature map, including: using the channel feature extraction unit to perform a global average pooling operation on the first fused feature map in the spatial dimension to obtain a one-dimensional feature vector; downsampling the one-dimensional feature vector to obtain a downsampled feature map; upsampling the downsampled feature map to obtain a one-dimensional weight distribution map; the one-dimensional weight distribution map includes the weight value of the feature on each channel of the first fused feature map being a metastatic feature; extracting the channel feature from the first fused feature map according to the one-dimensional weight distribution map to obtain the channel feature map. In this way, since the channel feature map is obtained based on the one-dimensional weight distribution map including the weight value of the feature on each channel of the first fused feature map being a metastatic feature, the channel feature map can help the axillary lymph node prediction model focus on the features that are more relevant to the prediction task of predicting metastatic features, thereby suppressing features that are useless or have interfering information, and improving the accuracy of the axillary lymph node prediction model to a certain extent.

[0012] Optionally, the first feature fusion unit of the initial axillary lymph node prediction model is used to fuse the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a first fused feature map, including: using the first feature fusion unit to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to the weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fused feature map. In this way, the ultrasound contrast feature and the grayscale ultrasound feature can be weightedly fused to obtain the first fused feature map. In this way, the complementary information of different sample images can be combined earlier, thereby obtaining more context information and detail information, which improves the accuracy of the axillary lymph node prediction model to a certain extent.

[0013] Optionally, using the first feature fusion unit to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fusion feature map, including using the first feature fusion unit to perform weighted fusion according to the following calculation formula: Among them, M′ is the feature in the first fusion feature map; M i is the ultrasound contrast feature or the grayscale ultrasound feature; i is the weight parameter of the ultrasound contrast imaging feature; ω j is the weight parameter of the grayscale ultrasound feature, i is the index coordinate of the ultrasound contrast feature, and j is the index coordinate of the grayscale ultrasound feature. In this way, the computer can gradually adjust ω as the model is continuously updated. i and ω j , in order to assign appropriate weights to ultrasound contrast features and grayscale ultrasound features. Furthermore, this implementation method realizes feature-level fusion, which can combine complementary information of different sample images at an early stage, thereby obtaining more contextual information and detail information, and improving the accuracy of the axillary lymph node prediction model to a certain extent.

[0014] In the second aspect, an embodiment of the present application provides a method for predicting axillary lymph nodes, the method comprising: obtaining a pair of images to be predicted; the pair of images to be predicted includes an ultrasound contrast image and a grayscale ultrasound image of the same axillary lymph node; inputting the pair of images to be predicted into an axillary lymph node prediction model to obtain a prediction result; the axillary lymph node prediction model is obtained by training the method provided in the first aspect above; the prediction result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node. In this way, since the axillary lymph node prediction model is a model obtained by integrating ultrasound contrast sample images and grayscale ultrasound sample images, it not only has the high specificity brought by the grayscale ultrasound sample images, but also has the high sensitivity brought by the ultrasound contrast sample images, so its prediction accuracy is relatively high. Subsequently, when the axillary lymph node prediction model is used for prediction, a relatively accurate prediction result can be obtained.

[0015] In a third aspect, an embodiment of the present application provides a training device for an axillary lymph node prediction model, the device comprising: a sample acquisition module, used to acquire a sample image pair and a true label corresponding to the sample image pair; the sample image pair comprises an ultrasound contrast imaging sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label represents whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; a training module, used to use the sample image pair as input and the true label as the expected output to train an initial axillary lymph node prediction model, and obtain a trained axillary lymph node prediction model. In this way, the accuracy of the axillary lymph node prediction model can be improved.

[0016] In a fourth aspect, an embodiment of the present application provides a prediction device for an axillary lymph node, comprising: an acquisition module, used to acquire a pair of images to be predicted; the pair of images to be predicted includes an ultrasound contrast image of the same axillary lymph node and a grayscale ultrasound image; a prediction module, used to input the pair of images to be predicted into an axillary lymph node prediction model to obtain a prediction result; the axillary lymph node prediction model is trained by the method provided in the first aspect above; the prediction result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node. In this way, a relatively accurate prediction result can be obtained.

[0017] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect or the second aspect are executed.

[0018] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method provided in the first aspect or the second aspect are performed.

[0019] In a seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the method described in the first aspect or the second aspect is executed.

[0020] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A flowchart of a method for training an axillary lymph node prediction model provided in an embodiment of the present application;

[0023] Figure 2 A structural block diagram of an initial axillary lymph node prediction model provided in an embodiment of the present application;

[0024] Figure 3 A structural block diagram of an initial axillary lymph node prediction model provided in an embodiment of the present application;

[0025] Figure 4 A structural block diagram of an initial axillary lymph node prediction model provided in an embodiment of the present application;

[0026] Figure 5 A structural block diagram of an initial axillary lymph node prediction model provided in an embodiment of the present application;

[0027] Figure 6 A structural block diagram of an initial axillary lymph node prediction model provided in an embodiment of the present application;

[0028] Figure 7 A flowchart of a method for predicting axillary lymph nodes provided in an embodiment of the present application;

[0029] Figure 8 A structural block diagram of a training device for an axillary lymph node prediction model provided in an embodiment of the present application;

[0030] Fig. 9A structural block diagram of an axillary lymph node prediction device provided in an embodiment of the present application;

[0031] Fig.10 A schematic diagram of the structure of an electronic device for executing an axillary lymph node prediction model training method or an axillary lymph node prediction method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0034] It should be noted that the embodiments in this application or the technical features in the embodiments may be combined if there is no conflict.

[0035] In the related art, when using grayscale ultrasound images to train models, although it can bring high specificity, its sensitivity is not high. Specifically, due to the small difference in acoustic impedance between non-metastatic lymph nodes and other surrounding tissues, the features are difficult to display on grayscale ultrasound images, especially the features of micro-metastatic lymph nodes are sometimes only manifested as cortical thickening. Therefore, the accuracy of the axillary lymph node prediction model obtained by grayscale ultrasound image training is low. In order to improve the accuracy of the axillary lymph node prediction model, the present application provides a training method for an axillary lymph node prediction model; specifically, the present application trains the model by combining ultrasound contrast sample images and grayscale ultrasound sample images of the same axillary lymph node. In this way, since the ultrasound contrast sample image is more sensitive to the visibility of tiny blood vessels and low-speed blood flow in the axillary lymph nodes, the blood perfusion characteristics of axillary lymph nodes of different properties can be displayed, thereby improving the accuracy of judging whether the axillary lymph nodes are metastatic. Therefore, the axillary lymph node prediction model obtained by integrating ultrasound contrast-enhanced sample images and grayscale ultrasound sample images has not only the high specificity brought by grayscale ultrasound sample images, but also the high sensitivity brought by ultrasound contrast-enhanced sample images, thereby improving its prediction accuracy.

[0036] It should be noted that the training method of the axillary lymph node prediction model can be implemented by a computer. That is, the computer can train the model through ultrasound contrast imaging sample images and grayscale ultrasound sample images, thereby improving the accuracy of the model in predicting whether the axillary lymph nodes in the image are metastatic. In this way, it can help medical staff to more accurately determine the patient's condition.

[0037] The defects existing in the solutions in the above-mentioned related technologies are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above-mentioned problems and the solutions proposed in the embodiments of the present application below for the above-mentioned problems should all be the contributions made by the inventor to the present application during the process of the invention.

[0038] In some application scenarios, the training method of the axillary lymph node prediction model of the present application can adopt supervised learning in machine learning. Figure 1 , which shows a flow chart of a training method for an axillary lymph node prediction model provided in an embodiment of the present application. Figure 1 As shown, the training method of the axillary lymph node prediction model includes the following steps 101 to 102.

[0039] Step 101, obtaining a sample image pair and a true label corresponding to the sample image pair; the sample image pair includes an ultrasound contrast-enhanced sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label indicates whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node;

[0040] In some application scenarios, for the same axillary lymph node, the ultrasound contrast device can obtain the ultrasound contrast image of the axillary lymph node, and then send the ultrasound contrast image to the computer. In addition, the grayscale ultrasound device can obtain the grayscale ultrasound image of the axillary lymph node, and then send the grayscale ultrasound image to the computer. In this way, the computer also obtains the image pair corresponding to the same axillary lymph node.

[0041] Furthermore, the computer may obtain multiple sets of image pairs corresponding to multiple axillary lymph nodes to train the initial axillary lymph node prediction model. Each set of image pairs here is also the sample image pair mentioned above.

[0042] In these application scenarios, the computer can also obtain the true label corresponding to each group of sample image pairs. The true label is set according to the pathological diagnosis results. That is, for a group of sample image pairs, it is possible to judge whether the axillary lymph nodes in the group of sample image pairs are metastatic lymph nodes or non-metastatic lymph nodes based on the pathological diagnosis results, and then input the judgment results into the computer. In these application scenarios, the computer can, for example, use the label "1" to indicate that the axillary lymph nodes in the sample image pairs are metastatic lymph nodes; and use the label "0" to indicate that the axillary lymph nodes in the sample image pairs are non-metastatic lymph nodes.

[0043] Step 102: Using the sample image pair as input and the true label as expected output to train an initial axillary lymph node prediction model to obtain a trained axillary lymph node prediction model.

[0044] The above-mentioned initial axillary lymph node prediction model may include, for example, a deep convolutional neural network, a recurrent neural network, etc.

[0045] In some application scenarios, such as Figure 2 As shown, the initial axillary lymph node prediction model may include a first feature extraction unit 201, a second feature extraction unit 202, and a classification unit 203. Thus, the step 102 may include, for example, the following sub-steps:

[0046] Sub-step 1, using the first feature extraction unit 201 of the initial axillary lymph node prediction model to extract the ultrasound contrast features of the ultrasound contrast sample image to obtain an ultrasound contrast feature map;

[0047] The first feature extraction unit 201 may be composed of a series of convolutional layers, for example. Each convolutional layer may perform a convolution operation, a batch normalization operation, and an activation operation.

[0048] The convolution kernel size of the convolution operation may be, for example, 3×3, and the step size of the convolution operation may be, for example, set to 1 or 2. Furthermore, the convolution layer with a step size of 2 may be mainly used to implement a downsampling operation so that the size of the ultrasound contrast feature map gradually decreases.

[0049] The specific formula of the above batch normalization operation can be, for example: Among them, y i represents the input of the batch normalization operation, y′ i represents the output after batch normalization operation; μ represents the mean of batch data (here refers to ultrasound contrast features), σ represents the standard deviation of batch data; γ and β represent the scaling parameter and translation parameter that can be learned by the initial axillary lymph node prediction model during training, with initial values ​​of 1 and 0, respectively; ε is a small positive number set to avoid division by zero.

[0050] The above activation operation can use the Leaky Relu activation function, for example, and the specific formula can be: Among them, x′ i represents the output of the activation function, x i Represents the input of the activation function.

[0051] In this way, after the ultrasound contrast imaging sample image is processed by multiple convolution layers in the first feature extraction unit 201, ultrasound contrast imaging features can be obtained, thereby obtaining the above-mentioned ultrasound contrast imaging feature map. The above-mentioned ultrasound contrast imaging features may include perfusion features, microvascular distribution features, etc.

[0052] Sub-step 2, using the second feature extraction unit 202 of the initial axillary lymph node prediction model to extract the grayscale ultrasound features of the grayscale ultrasound sample image to obtain a grayscale ultrasound feature map;

[0053] The second feature extraction unit 202 may be the same as or similar to the first feature extraction unit 201 , and will not be described in detail herein.

[0054] Further, after the grayscale ultrasound sample image is processed by multiple convolutional layers in the second feature extraction unit 202, the grayscale ultrasound feature can be obtained, thereby obtaining the above-mentioned grayscale ultrasound feature map. The above-mentioned grayscale ultrasound feature may include, for example, the morphology (e.g., circular, elliptical, irregular shape), size, internal structure (e.g., cortex, medulla, lymph node hilum boundary) and other features of the axillary lymph node.

[0055] Sub-step 3: using the classification unit 203 of the initial axillary lymph node prediction model to process the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain the classification result of the axillary lymph nodes.

[0056] In some application scenarios, the computer can use the classification unit 203 of the initial axillary lymph node prediction model to fuse the ultrasound contrast features and the grayscale ultrasound features. Specifically, for example, the ultrasound contrast feature vector and the grayscale ultrasound feature vector can be spliced ​​to form a new comprehensive feature vector. The comprehensive feature vector is then input into the fully connected layer (i.e., the classification unit 203) so that the fully connected layer outputs the classification result.

[0057] Sub-step 4: If the loss value between the classification result and the true label meets the loss requirement, it is determined that the training of the initial axillary lymph node prediction model is completed.

[0058] In some application scenarios, the above loss value can be calculated by, for example, a cross entropy loss function. The above loss requirement can, for example, include that the change in the loss value meets the preset requirements. In this way, if the change in the loss value meets the preset requirements, a converged axillary lymph node prediction model is obtained. If the change in the loss value does not meet the preset requirements, the above sub-steps 1 to 4 can be repeated until the model converges. The above preset requirements can, for example, be that the loss value remains unchanged within a certain range.

[0059] In this application scenario, ultrasound contrast features and grayscale ultrasound features can be extracted separately, and then the features are fused in the fully connected layer. In this way, since the fully connected layer is usually at a deeper position in the neural network, it means that it receives higher-level semantic features, so it is helpful to capture more complex image information to a certain extent, thereby helping to improve the accuracy of the axillary lymph node prediction model.

[0060] In this implementation, the axillary lymph node prediction model obtained by training the ultrasound contrast imaging sample images and the grayscale ultrasound sample images is integrated. It not only has the high specificity brought by the grayscale ultrasound sample images, but also has the high sensitivity brought by the ultrasound contrast imaging sample images, so its prediction accuracy is relatively high.

[0061] See also Figure 3 The initial axillary lymph node prediction model may include a first feature extraction unit 201, a second feature extraction unit 202, a feature fusion unit 204, and a classification unit 203. Thus, the initial axillary lymph node prediction model is trained by taking the sample image pair as input and the real label as the expected output in the above step 102, including:

[0062] Sub-step 1021, using the first feature extraction unit 201 of the initial axillary lymph node prediction model to extract the ultrasound contrast features of the ultrasound contrast sample image to obtain an ultrasound contrast feature map;

[0063] Sub-step 1022, using the second feature extraction unit 202 of the initial axillary lymph node prediction model to extract the grayscale ultrasound features of the grayscale ultrasound sample image to obtain a grayscale ultrasound feature map;

[0064] It should be noted that the implementation process of the above sub-steps 1021 and 1022 and the technical effects obtained may be the same as or similar to the implementation process of the above sub-steps 1 and 2 and the technical effects obtained, and are not repeated here.

[0065] In some application scenarios, the computer can also pre-process the sample image pair. Specifically, for example, the axillary lymph node can be cropped from the ultrasound contrast imaging sample image or the grayscale ultrasound sample image according to the minimum bounding rectangle of the pre-drawn axillary lymph node contour, and the cropping size can be adjusted to a fixed size (e.g., 224×224). The adjusted sample image can then be normalized to scale the pixel values ​​between [0,1].

[0066] In these application scenarios, for example, To achieve standardization, X represents the original pixel value, μ represents the average value of all pixel values, σ represents the standard deviation of the pixel value, and X′ represents the pixel value after standardization.

[0067] Then, the ultrasound contrast imaging sample image after the standardization process may be input into the first feature extraction unit 201 , and the grayscale ultrasound sample image after the standardization process may be input into the second feature extraction unit 202 .

[0068] Sub-step 1023, using the feature fusion unit 204 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a fused feature map;

[0069] In some application scenarios, the computer may, for example, utilize the feature fusion unit 204 to perform weighted fusion on the ultrasound contrast features and the grayscale ultrasound features; or, the computer may also perform multi-scale fusion, wavelet domain fusion, etc. on the two to obtain a fused feature map.

[0070] Sub-step 1024, using the classification unit 203 of the initial axillary lymph node prediction model to classify the fused feature map to obtain a classification result; the classification result indicates whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node;

[0071] In some application scenarios, the classification unit 203 can perform pooling processing on the fused feature map through a global average pooling layer, and then perform linear transformation calculations through multiple fully connected layers. Among them, the output of the last fully connected layer can be set to two values, and after these two values ​​are processed by the Softmax activation function, the probability value of the axillary lymph node being a metastatic lymph node and the probability value of the axillary lymph node being a non-metastatic lymph node can be obtained. Then, the classification unit 203 can compare the sizes of the two probability values, and can determine the larger probability value as the output of the axillary lymph node prediction model, thereby obtaining a classification result.

[0072] Sub-step 1025, if the loss value between the classification result and the true label meets the loss requirement, it is determined that the training of the initial axillary lymph node prediction model is completed.

[0073] In some application scenarios, the above loss value can be calculated by, for example, a cross entropy loss function. The above loss requirement can, for example, include that the change in the loss value meets the preset requirement. In this way, if the change in the loss value meets the preset requirement, a converged axillary lymph node prediction model is obtained. If the change in the loss value does not meet the preset requirement, the above sub-steps 1021 to 1025 can be repeatedly executed until the model converges. The above preset requirement can, for example, be that the loss value remains unchanged within a certain range.

[0074] In this implementation, a training method based on feature-level fusion is provided to improve the prediction accuracy of the axillary lymph node prediction model.

[0075] See also Figure 4 The initial axillary lymph node prediction model may include a first feature extraction unit 201, a second feature extraction unit 202, a first feature fusion unit 2041, a second feature fusion unit 2042, a spatial feature extraction unit 205, a channel feature extraction unit 206, and a classification unit 203. Thus, the feature fusion unit of the initial axillary lymph node prediction model described in the above sub-step 1023 fuses the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a fused feature map, including:

[0076] Sub-step A1, using the first feature fusion unit 2041 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map;

[0077] In some optional implementations, the above-mentioned sub-step A1 may include: using the first feature fusion unit 2041 to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to the weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fusion feature map.

[0078] That is to say, both ultrasound contrast features and grayscale ultrasound features can affect the classification results, and the two can be regarded as complementary, so different weights can be assigned to the two according to the degree of influence on the classification results. Thus, weighted fusion can be performed according to the assigned weights to obtain the first fusion feature map.

[0079] In some application scenarios, the weights of the two can change with the continuous iteration of the initial axillary lymph node prediction model. For example, if the error between the classification result and the true label can be reduced by adjusting the weight, the weight can be adjusted multiple times to obtain the optimal weight. Here, during the initial training, the computer can, for example, use random numbers as the weights of the two. In addition, the computer can also set the weights of the two based on empirical values, and the weights can be kept constant during the training process.

[0080] In this implementation, the ultrasound contrast features and the grayscale ultrasound features can be weighted fused to obtain a first fused feature map. In this way, the complementary information of different sample images can be combined earlier to obtain more context information and detail information, which improves the accuracy of the axillary lymph node prediction model to a certain extent.

[0081] It should be noted that, in addition to weighted fusion of ultrasound contrast features and grayscale ultrasound features, the first feature fusion unit 2041 may also use other implementation methods for fusion, such as multi-scale fusion, wavelet domain fusion, etc.

[0082] In some optional implementations, the above-mentioned use of the first feature fusion unit 2041 to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to the weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fusion feature map, includes using the first feature fusion unit 2041 to perform weighted fusion according to the following calculation formula: Among them, M′ is the feature in the first fusion feature map; M i is the ultrasound contrast feature or the grayscale ultrasound feature; ω i is the weight parameter of the ultrasound contrast imaging feature; ω j is the weight parameter of the grayscale ultrasound feature, i is the index coordinate of the ultrasound contrast feature, and j is the index coordinate of the grayscale ultrasound feature.

[0083] In this implementation, the computer can gradually adjust ω as the model is continuously updated. i and ω j, in order to assign appropriate weights to ultrasound contrast features and grayscale ultrasound features. Furthermore, this implementation method realizes feature-level fusion, which can combine complementary information of different sample images at an early stage, thereby obtaining more contextual information and detail information, and improving the accuracy of the axillary lymph node prediction model to a certain extent.

[0084] Sub-step A2, using the spatial feature extraction unit 205 of the initial axillary lymph node prediction model to extract the spatial features of the first fusion feature map to obtain a spatial feature map;

[0085] In some optional implementations, the above sub-step A2 may include:

[0086] Sub-step A21, using the spatial feature extraction unit 205 to perform a global average pooling operation on the first fused feature map in the channel dimension to obtain a two-dimensional feature vector;

[0087] Sub-step A22, downsampling the two-dimensional feature vector to obtain a down-sampled feature map;

[0088] Sub-step A23, performing upsampling processing on the downsampled feature map to obtain a two-dimensional weight distribution map; the two-dimensional weight distribution map includes the weight value of the feature at each spatial position of the first fused feature map being a transfer feature;

[0089] Sub-step A24, extracting the spatial features from the first fused feature map according to the two-dimensional weight distribution map to obtain the spatial feature map.

[0090] For example, if the size of the first fused feature map is C×W×H, after performing a global average pooling operation on the channel dimension, a two-dimensional feature vector V with a dimension of W×H can be obtained. S , then the two-dimensional feature vector V S The information of each spatial position in each channel in the first fusion feature map is aggregated, so that the local information contained in each sample image can be integrated at each spatial position.

[0091] Then, for the above two-dimensional feature vector V S In some application scenarios, for example, a convolutional layer with a step size of 2 can be used to perform downsampling processing, so as to aggregate the global information of the ultrasound contrast sample image and the grayscale ultrasound sample image, and enable the initial axillary lymph node prediction model to learn the nonlinear relationship between different spatial positions, and obtain the downsampled feature map V S-d .

[0092] Then, the above downsampled feature map V S-dUpsampling is performed to restore the size C×W×H before downsampling. In some application scenarios, for example, bilinear interpolation and sigmoid activation function can be used to achieve this. In this way, V S-d The learned nonlinear relationship in the spatial dimension is converted into a set of two-dimensional weight distribution graphs L s , its size is W×H.

[0093] In some application scenarios, the two-dimensional weight distribution map L s Multiply it with the first fusion feature map. Specifically, the two-dimensional weight distribution map L s Each weight parameter in is multiplied by the parameter value at the corresponding channel position in the first fusion feature map to obtain spatial summary information. Then a convolution layer can be used to extract the spatial summary information to obtain a spatial feature map.

[0094] In this implementation, since the spatial feature map is obtained based on a two-dimensional weight distribution map of the weight values ​​of the metastatic features at each spatial position of the first fusion feature map, the spatial feature map can help the axillary lymph node prediction model to more accurately locate the metastatic feature area in the first fusion feature map, thereby improving the accuracy of the axillary lymph node prediction model.

[0095] In some application scenarios, for example, multiple cascaded convolutional layers may be used to form the spatial feature extraction unit 205, so as to extract the above-mentioned spatial feature map.

[0096] Sub-step A3, using the channel feature extraction unit 206 of the initial axillary lymph node prediction model to extract the channel features of the first fusion feature map to obtain a channel feature map;

[0097] In some optional implementations, the above sub-step A3 may include:

[0098] Sub-step A31, using the channel feature extraction unit 206 to perform a global average pooling operation on the first fused feature map in the spatial dimension to obtain a one-dimensional feature vector;

[0099] Sub-step A32, downsampling the one-dimensional feature vector to obtain a downsampled feature map;

[0100] Sub-step A33, performing upsampling processing on the downsampled feature map to obtain a one-dimensional weight distribution map; the one-dimensional weight distribution map includes the weight value of the feature on each channel of the first fused feature map being a transfer feature;

[0101] Sub-step A34, extracting the channel feature from the first fusion feature map according to the one-dimensional weight distribution map to obtain the channel feature map.

[0102] For example, if the size of the first fused feature map is C×W×H, a global average pooling operation is performed on the spatial dimension to obtain a one-dimensional feature vector V with a dimension of C×1×1 g , then the one-dimensional feature vector V g The spatial global information on each channel layer in the first fused feature map is aggregated.

[0103] Then, for the first eigenvector V g In some application scenarios, for example, downsampling can be achieved through a fully connected layer and a relu activation function, so that a downsampled feature map V with a length of C / 2 can be obtained. g-d .

[0104] Then, the above downsampled feature map V g-d In some application scenarios, for example, upsampling can be achieved through a fully connected layer and a sigmoid activation function, so that a one-dimensional weight distribution graph L can be obtained. g , whose length is C.

[0105] Furthermore, after the above-mentioned downsampling and upsampling processes, the feature information in the first fused feature map can be fully fused and a dependency relationship can be established.

[0106] Then, the one-dimensional weight distribution map L g Multiply it with the first fusion feature map. Specifically, the one-dimensional weight distribution map L g Each weight parameter in is multiplied by the parameter value at the corresponding spatial position in the first fusion feature map to obtain channel summary information. Then a convolution layer can be used to extract the channel summary information to obtain a channel feature map.

[0107] In this implementation, since the channel feature map is obtained based on a one-dimensional weight distribution map of the weight values ​​of the metastatic features including the features on each channel of the first fusion feature map, the channel feature map can help the axillary lymph node prediction model focus on features that are more relevant to the prediction task of predicting metastatic features, thereby suppressing features that are useless or have interfering information, and to a certain extent improving the accuracy of the axillary lymph node prediction model.

[0108] In some other application scenarios, for example, multiple cascaded convolutional layers may be used to form a channel feature extraction unit 206, thereby extracting the above-mentioned channel feature map.

[0109] Sub-step A4, using the second feature fusion unit 2042 of the initial axillary lymph node prediction model to fuse the spatial feature map and the channel feature map to obtain a spatial-channel fusion feature map;

[0110] In some application scenarios, for example, the spatial feature map and the channel feature map may be spliced ​​according to channels to obtain the above-mentioned spatial-channel fusion feature map.

[0111] In this way, the classification unit 203 of the initial axillary lymph node prediction model described in the above sub-step 1024 classifies the fused feature map to obtain a classification result, including: classifying the space-channel fusion feature map using the classification unit 203 of the initial axillary lymph node prediction model to obtain a classification result.

[0112] Here, the process of classification of the space-channel fusion feature map by the classification unit 203 and the technical effect obtained may be similar to the classification process and the technical effect obtained in the previous sub-step 1024, and will not be repeated here.

[0113] In this implementation, the feature information in the first fusion feature map can be extracted more comprehensively based on the channel dimension and the spatial dimension, so that when the initial axillary lymph node prediction model is trained based on the feature information, the accuracy of the axillary lymph node prediction model can be improved.

[0114] See also Figure 5 The initial axillary lymph node prediction model may include a first feature extraction unit 201, a second feature extraction unit 202, a first feature fusion unit 2041, a second feature fusion unit 2042, a spatial feature extraction unit 205, a convolution unit 207, and a classification unit 203. Thus, the feature fusion unit of the initial axillary lymph node prediction model described in the above sub-step 1023 fuses the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map, including:

[0115] Sub-step B1, using the first feature fusion unit 2041 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map;

[0116] Sub-step B2, using the spatial feature extraction unit 205 of the initial axillary lymph node prediction model to extract the spatial features of the first fusion feature map to obtain a spatial feature map;

[0117] Sub-step B3, using the convolution unit 207 of the initial axillary lymph node prediction model to extract the global features of the first fusion feature map to obtain a convolution feature map;

[0118] Sub-step B4, using the second feature fusion unit 2042 of the initial axillary lymph node prediction model to fuse the spatial feature map and the convolution feature map to obtain a spatial-convolution fusion feature map;

[0119] In this way, the classification unit 203 of the initial axillary lymph node prediction model described in the above sub-step 1024 classifies the fused feature map to obtain a classification result, including: classifying the spatial-convolutional fusion feature map using the classification unit 203 of the initial axillary lymph node prediction model to obtain a classification result.

[0120] In some application scenarios, the spatial feature extraction unit 205 may lose some feature information when extracting spatial features, so the spatial feature map can be fused with the convolution feature map. In this way, since the convolution feature map contains the global feature information in the first fused feature map, the lost information can be supplemented after fusion.

[0121] It should be noted that the relevant operation processes and technical effects obtained by the spatial feature extraction unit 205, convolution unit 207, first feature fusion unit 2041, second feature fusion unit 2042 and classification unit 203 of the initial axillary lymph node prediction model on the corresponding feature graph can be found in the corresponding parts of the previous text and will not be repeated here.

[0122] In this implementation, when using the spatial-convolutional fusion feature map to train the initial axillary lymph node prediction model, since the spatial-convolutional fusion feature map contains feature information in the spatial dimension and does not lose other feature information, it can improve the accuracy of the axillary lymph node prediction model to a certain extent.

[0123] See also Figure 6 , the initial axillary lymph node prediction model may include a first feature extraction unit 201, a second feature extraction unit 202, a first feature fusion unit 2041, a second feature fusion unit 2042, a channel feature extraction unit 206, a convolution unit 207, and a classification unit 203. Thus, the feature fusion unit using the initial axillary lymph node prediction model in the above sub-step 1023 fuses the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map, including:

[0124] Sub-step C1, using the first feature fusion unit 2041 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map;

[0125] Sub-step C2, using the channel feature extraction unit 206 of the initial axillary lymph node prediction model to extract the channel features of the first fusion feature map to obtain a channel feature map;

[0126] Sub-step C3, using the convolution unit 207 of the initial axillary lymph node prediction model to extract the global features of the first fusion feature map to obtain a convolution feature map;

[0127] Sub-step C4, using the second feature fusion unit 2042 of the initial axillary lymph node prediction model to fuse the channel feature map and the convolution feature map to obtain a channel-convolution fusion feature map;

[0128] In this way, the classification unit 203 of the initial axillary lymph node prediction model described in the above sub-step 1024 classifies the fused feature map to obtain a classification result, including: classifying the channel-convolution fusion feature map using the classification unit 203 of the initial axillary lymph node prediction model to obtain a classification result.

[0129] In some application scenarios, the channel feature extraction unit 206 may lose some feature information when extracting channel features, so the channel feature map can be fused with the convolution feature map. In this way, since the convolution feature map contains the global feature information in the first fused feature map, the lost information can be supplemented after fusion.

[0130] It should be noted that the relevant operation processes and technical effects obtained by the channel feature extraction unit 206, convolution unit 207, first feature fusion unit 2041, second feature fusion unit 2042 and classification unit 203 of the initial axillary lymph node prediction model on the corresponding feature graphs can be found in the corresponding parts of the previous text and will not be repeated here.

[0131] In this implementation, when the channel-convolution fusion feature map is used to train the initial axillary lymph node prediction model, since the channel-convolution fusion feature map contains the feature information in the channel dimension and does not lose other feature information, it can improve the accuracy of the axillary lymph node prediction model to a certain extent.

[0132] In some application scenarios, the computer may also divide multiple groups of sample image pairs into a training set and a test set. The sample image pairs in the training set are used to train the initial axillary lymph node prediction model according to the training method of the axillary lymph node prediction model in any of the above implementations, and the sample image pairs in the test set are used to test the converged axillary lymph node prediction model. In these application scenarios, when testing the axillary lymph node prediction model, if the test results meet the preset requirements, the axillary lymph node prediction model can be put into use. For example, when using 10 groups of sample image pairs to test the axillary lymph node prediction model, the axillary lymph node prediction model can output 10 prediction results correspondingly. If 9 of the 10 prediction results are the same as the corresponding true labels, it can be considered that the test results meet the preset requirement of more than 80% accuracy, so that the axillary lymph node prediction model can be put into use. In addition, if the test results do not meet the preset requirements, the axillary lymph node prediction model can continue to be trained until it meets the preset requirements.

[0133] Please refer to Figure 7 , which shows a flow chart of a method for predicting axillary lymph nodes provided in an embodiment of the present application. Figure 7 As shown, the method for predicting axillary lymph nodes includes the following steps 701 to 702.

[0134] Step 701, obtaining a pair of images to be predicted; the pair of images to be predicted includes an ultrasound contrast-enhanced image and a grayscale ultrasound image of the same axillary lymph node;

[0135] In some application scenarios, the above-mentioned image pair to be predicted can be an image pair pre-stored by the computer. That is, after the ultrasound contrast imaging device acquires the ultrasound contrast imaging image, it can transmit the ultrasound contrast imaging image to the computer; after the grayscale ultrasound device acquires the grayscale ultrasound image, it can transmit the grayscale ultrasound image to the computer. Then, the computer can associate and store the ultrasound contrast imaging image and the grayscale ultrasound image of the same axillary lymph node. Thus, when the computer needs to make a prediction, it can obtain the above-mentioned image pair to be predicted.

[0136] Step 702, input the image pair to be predicted into an axillary lymph node prediction model to obtain a prediction result; the axillary lymph node prediction model is trained by any axillary lymph node prediction model training method as described above; the prediction result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node.

[0137] In this implementation, since the axillary lymph node prediction model is a model obtained by integrating ultrasound contrast imaging sample images and grayscale ultrasound sample images, it not only has the high specificity brought by grayscale ultrasound sample images, but also has the high sensitivity brought by ultrasound contrast imaging sample images, so its prediction accuracy is relatively high. Subsequently, when the axillary lymph node prediction model is used for prediction, a relatively accurate prediction result can be obtained.

[0138] Those skilled in the art will appreciate that, in the above method of a specific embodiment, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0139] Please refer to Figure 8 , which shows a structural block diagram of a training device for an axillary lymph node prediction model provided in an embodiment of the present application. The training device for an axillary lymph node prediction model may be a module, program segment or code on an electronic device. It should be understood that the device is similar to the above Figure 1 The method embodiment corresponds to and can be executed Figure 1 The method embodiment involves various steps.

[0140] Optionally, the training device for the axillary lymph node prediction model includes a sample acquisition module 801 and a training module 802. The sample acquisition module 801 is used to acquire a sample image pair and a true label corresponding to the sample image pair; the sample image pair includes an ultrasound contrast imaging sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label represents whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; the training module 802 is used to train an initial axillary lymph node prediction model using the sample image pair as input and the true label as expected output to obtain a trained axillary lymph node prediction model.

[0141] Optionally, the training module 802 is further used to: use the first feature extraction unit 201 of the initial axillary lymph node prediction model to extract the ultrasound contrast features of the ultrasound contrast sample image to obtain an ultrasound contrast feature map; use the second feature extraction unit 202 of the initial axillary lymph node prediction model to extract the grayscale ultrasound features of the grayscale ultrasound sample image to obtain a grayscale ultrasound feature map; use the feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast feature map and the grayscale ultrasound feature map to obtain a fused feature map; use the classification unit 203 of the initial axillary lymph node prediction model to classify the fused feature map to obtain a classification result; the classification result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; if the loss value between the classification result and the true label meets the loss requirement, it is determined that the training of the initial axillary lymph node prediction model is completed.

[0142] Optionally, the feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and the training module 802 is further used to: use the first feature fusion unit 2041 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map; use the spatial feature extraction unit 205 of the initial axillary lymph node prediction model to extract the spatial features of the first fused feature map to obtain a spatial feature map; use the channel feature extraction unit 206 of the initial axillary lymph node prediction model to extract the channel features of the first fused feature map to obtain a channel feature map; use the second feature fusion unit 2042 of the initial axillary lymph node prediction model to fuse the spatial feature map and the channel feature map to obtain a space-channel fusion feature map; use the classification unit 203 of the initial axillary lymph node prediction model to classify the space-channel fusion feature map to obtain a classification result.

[0143] Optionally, the feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and the training module 802 is further used to: use the first feature fusion unit 2041 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map; use the spatial feature extraction unit 205 of the initial axillary lymph node prediction model to extract the spatial features of the first fused feature map to obtain a spatial feature map; use the convolution unit 207 of the initial axillary lymph node prediction model to extract the features of the first fused feature map to obtain a convolution feature map; use the second feature fusion unit 2042 of the initial axillary lymph node prediction model to fuse the spatial feature map and the convolution feature map to obtain a spatial-convolution fusion feature map; use the classification unit 203 of the initial axillary lymph node prediction model to classify the spatial-convolution fusion feature map to obtain a classification result.

[0144] Optionally, the feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and the training module 802 is further used to: use the first feature fusion unit 2041 of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map; use the channel feature extraction unit 206 of the initial axillary lymph node prediction model to extract the channel features of the first fused feature map to obtain a channel feature map; use the convolution unit 207 of the initial axillary lymph node prediction model to extract the features of the first fused feature map to obtain a convolution feature map; use the second feature fusion unit 2042 of the initial axillary lymph node prediction model to fuse the channel feature map and the convolution feature map to obtain a channel-convolution fusion feature map; use the classification unit 203 of the initial axillary lymph node prediction model to classify the channel-convolution fusion feature map to obtain a classification result.

[0145] Optionally, the training module 802 is further used to: use the spatial feature extraction unit 205 to perform a global average pooling operation on the first fused feature map in the channel dimension to obtain a two-dimensional feature vector; downsample the two-dimensional feature vector to obtain a downsampled feature map; upsample the downsampled feature map to obtain a two-dimensional weight distribution map; the two-dimensional weight distribution map includes the weight value of the feature at each spatial position of the first fused feature map is a transfer feature; extract the spatial feature from the first fused feature map according to the two-dimensional weight distribution map to obtain the spatial feature map.

[0146] Optionally, the training module 802 is further used to: use the channel feature extraction unit 206 to perform a global average pooling operation on the first fused feature map in the spatial dimension to obtain a one-dimensional feature vector; downsample the one-dimensional feature vector to obtain a downsampled feature map; upsample the downsampled feature map to obtain a one-dimensional weight distribution map; the one-dimensional weight distribution map includes the weight value of the feature on each channel of the first fused feature map is a transfer feature; extract the channel feature from the first fused feature map according to the one-dimensional weight distribution map to obtain the channel feature map.

[0147] Optionally, the training module 802 is further used to: use the first feature fusion unit 2041 to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fusion feature map.

[0148] Optionally, the training module 802 is further used to: utilize the first feature fusion unit 2041 to perform weighted fusion according to the following calculation formula: Among them, M′ is the feature in the first fusion feature map; M i is the ultrasound contrast feature or the grayscale ultrasound feature; ω i is the weight parameter of the ultrasound contrast imaging feature; ω j is the weight parameter of the grayscale ultrasound feature, i is the index coordinate of the ultrasound contrast feature, and j is the index coordinate of the grayscale ultrasound feature.

[0149] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0150] Please refer to Fig. 9 , which shows a structural block diagram of an axillary lymph node prediction device provided in an embodiment of the present application. The axillary lymph node prediction device can be a module, program segment or code on an electronic device. It should be understood that the device is similar to the above Figure 7 The method embodiment corresponds to and can be executed Figure 7 The method embodiment involves various steps.

[0151] Optionally, the above-mentioned prediction device for axillary lymph nodes includes an acquisition module 901 and a prediction module 902. The acquisition module 901 is used to acquire a pair of images to be predicted; the pair of images to be predicted includes an ultrasound contrast image of the same axillary lymph node and a grayscale ultrasound image; the prediction module 902 is used to input the pair of images to be predicted into an axillary lymph node prediction model to obtain a prediction result; the axillary lymph node prediction model is trained by any axillary lymph node prediction model training method as described above; the prediction result indicates whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node.

[0152] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0153] Please refer to Fig.10 , Fig.10 A schematic diagram of the structure of an electronic device for executing a training method for an axillary lymph node prediction model or a prediction method for an axillary lymph node provided in an embodiment of the present application, the electronic device may include: at least one processor 1001, such as a CPU, at least one communication interface 1002, at least one memory 1003 and at least one communication bus 1004. Among them, the communication bus 1004 is used to realize direct connection and communication between these components. Among them, the communication interface 1002 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The memory 1003 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1003 can optionally also be at least one storage device located away from the aforementioned processor. Computer-readable instructions are stored in the memory 1003. When the computer-readable instructions are executed by the processor 1001, the electronic device can execute the above Figure 1 or Figure 7 The method process is shown.

[0154] Understandably, Fig.10 The structure shown is for illustration only, and the electronic device may also include Fig.10 More or fewer components as shown, or with Fig.10 Different configurations shown. Fig.10 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0155] The present application embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the following can be performed: Figure 1 or Figure 7The method process in the method embodiment shown is executed by the electronic device.

[0156] An embodiment of the present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments. For example, the method may include: obtaining a sample image pair and a true label corresponding to the sample image pair; the sample image pair includes an ultrasound contrast sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; using the sample image pair as input and the true label as the expected output to train an initial axillary lymph node prediction model to obtain a trained axillary lymph node prediction model.

[0157] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0158] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0159] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0160] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0161] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A training method for an axillary lymph node prediction model, characterized in that: include: Acquire a sample image pair and a true label corresponding to the sample image pair; the sample image pair includes an ultrasound contrast imaging sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label indicates whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; The sample image pair is used as input, and the true label is used as the expected output to train an initial axillary lymph node prediction model to obtain a trained axillary lymph node prediction model.

2. The method according to claim 1, characterized in that: The method of taking the sample image pair as input and the true label as expected output to train an initial axillary lymph node prediction model includes: Extracting the ultrasound contrast features of the ultrasound contrast sample image using the first feature extraction unit of the initial axillary lymph node prediction model to obtain an ultrasound contrast feature map; Extracting the grayscale ultrasound features of the grayscale ultrasound sample image using the second feature extraction unit of the initial axillary lymph node prediction model to obtain a grayscale ultrasound feature map; Using the feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a fused feature map; Using the classification unit of the initial axillary lymph node prediction model to classify the fused feature map to obtain a classification result; the classification result indicates whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; If the loss value between the classification result and the true label meets the loss requirement, it is determined that the training of the initial axillary lymph node prediction model is completed.

3. The method according to claim 2, characterized in that The feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and The feature fusion unit using the initial axillary lymph node prediction model fuses the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a fused feature map, including: Using the first feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map; Extracting spatial features of the first fusion feature map using the spatial feature extraction unit of the initial axillary lymph node prediction model to obtain a spatial feature map; Using the channel feature extraction unit of the initial axillary lymph node prediction model to extract the channel features of the first fusion feature map to obtain a channel feature map; fusing the spatial feature map and the channel feature map using the second feature fusion unit of the initial axillary lymph node prediction model to obtain a spatial-channel fusion feature map; and The method of classifying the fused feature map using the classification unit of the initial axillary lymph node prediction model to obtain a classification result includes: The space-channel fusion feature map is classified using the classification unit of the initial axillary lymph node prediction model to obtain a classification result.

4. The method according to claim 2, characterized in that: The feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and The feature fusion unit using the initial axillary lymph node prediction model fuses the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a fused feature map, including: Using the first feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map; Extracting spatial features of the first fusion feature map using the spatial feature extraction unit of the initial axillary lymph node prediction model to obtain a spatial feature map; Extracting global features of the first fused feature map using a convolution unit of the initial axillary lymph node prediction model to obtain a convolution feature map; fusing the spatial feature map and the convolutional feature map using the second feature fusion unit of the initial axillary lymph node prediction model to obtain a spatial-convolutional fusion feature map; and The method of classifying the fused feature map using the classification unit of the initial axillary lymph node prediction model to obtain a classification result includes: The spatial-convolutional fusion feature map is classified using the classification unit of the initial axillary lymph node prediction model to obtain a classification result.

5. The method according to claim 2, characterized in that: The feature fusion unit includes a first feature fusion unit and a second feature fusion unit, and The feature fusion unit using the initial axillary lymph node prediction model fuses the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a fused feature map, including: Using the first feature fusion unit of the initial axillary lymph node prediction model to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map; Using the channel feature extraction unit of the initial axillary lymph node prediction model to extract the channel features of the first fusion feature map to obtain a channel feature map; Extracting global features of the first fused feature map using a convolution unit of the initial axillary lymph node prediction model to obtain a convolution feature map; Using the second feature fusion unit of the initial axillary lymph node prediction model to fuse the channel feature map and the convolution feature map to obtain a channel-convolution fusion feature map; and The method of classifying the fused feature map using the classification unit of the initial axillary lymph node prediction model to obtain a classification result includes: The channel-convolution fusion feature map is classified using the classification unit of the initial axillary lymph node prediction model to obtain a classification result.

6. The method according to claim 3 or 4, characterized in that: The spatial feature extraction unit of the initial axillary lymph node prediction model is used to extract the spatial features of the first fusion feature map to obtain a spatial feature map, including: Using the spatial feature extraction unit to perform a global average pooling operation on the first fused feature map in the channel dimension to obtain a two-dimensional feature vector; Downsampling the two-dimensional feature vector to obtain a downsampled feature map; Performing upsampling processing on the downsampled feature map to obtain a two-dimensional weight distribution map; the two-dimensional weight distribution map includes a weight value of a feature at each spatial position of the first fused feature map that is a transfer feature; The spatial feature is extracted from the first fused feature map according to the two-dimensional weight distribution map to obtain the spatial feature map.

7. The method according to any one of claims 3 or 5, characterized in that: The channel feature extraction unit of the initial axillary lymph node prediction model is used to extract the channel features of the first fusion feature map to obtain a channel feature map, including: Using the channel feature extraction unit to perform a global average pooling operation on the first fused feature map in a spatial dimension to obtain a one-dimensional feature vector; Downsampling the one-dimensional feature vector to obtain a downsampling feature map; Performing upsampling processing on the downsampled feature map to obtain a one-dimensional weight distribution map; the one-dimensional weight distribution map includes a weight value of a feature on each channel of the first fused feature map that is a transfer feature; The channel feature is extracted from the first fusion feature map according to the one-dimensional weight distribution map to obtain the channel feature map.

8. The method according to any one of claims 3 to 5, characterized in that: The first feature fusion unit of the initial axillary lymph node prediction model is used to fuse the ultrasound contrast imaging feature map and the grayscale ultrasound feature map to obtain a first fused feature map, including: The first feature fusion unit is used to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fused feature map.

9. The method according to claim 8, characterized in that The first feature fusion unit is used to perform weighted fusion on the ultrasound contrast feature and the grayscale ultrasound feature according to the weight parameters corresponding to the ultrasound contrast feature and the grayscale ultrasound feature, respectively, to obtain the first fusion feature map, including using the first feature fusion unit to perform weighted fusion according to the following calculation formula: Among them, M′ is the feature in the first fusion feature map; M i is the ultrasound contrast feature or the grayscale ultrasound feature; ω i is the weight parameter of the ultrasound contrast imaging feature; ω j is the weight parameter of the grayscale ultrasound feature, i is the index coordinate of the ultrasound contrast feature, and j is the index coordinate of the grayscale ultrasound feature.

10. A method for predicting axillary lymph nodes, characterized in that: include: Acquire a pair of images to be predicted; the pair of images to be predicted includes an ultrasound contrast-enhanced image and a grayscale ultrasound image of the same axillary lymph node; The image pair to be predicted is input into an axillary lymph node prediction model to obtain a prediction result; the axillary lymph node prediction model is trained by the method described in any one of claims 1-9; the prediction result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node.

11. A training device for an axillary lymph node prediction model, characterized in that: include: A sample acquisition module, used to acquire sample image pairs and true labels corresponding to the sample image pairs; The sample image pair includes an ultrasound contrast-enhanced sample image and a grayscale ultrasound sample image of the same axillary lymph node; the true label represents whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node; The training module is used to take the sample image pair as input and the true label as expected output to train the initial axillary lymph node prediction model to obtain a trained axillary lymph node prediction model.

12. A device for predicting axillary lymph nodes, characterized in that: include: An acquisition module, used for acquiring a pair of images to be predicted; the pair of images to be predicted includes an ultrasound contrast image of the same axillary lymph node and a grayscale ultrasound image; A prediction module is used to input the image pair to be predicted into an axillary lymph node prediction model to obtain a prediction result; the axillary lymph node prediction model is trained by the method described in any one of claims 1-9; and the prediction result characterizes whether the axillary lymph node is a metastatic lymph node or a non-metastatic lymph node.

13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 9 or 10 is executed.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 or 10 is performed.

15. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the method according to any one of claims 1 to 9 or 10 is performed.

Citation Information

Patent Citations

  • Method and device for eliminating invoice seal, storage medium and computer equipment

    CN110517186A

  • Image processing method and device, computer equipment and medium

    CN112037237A

  • Target image identification method and device

    CN116524206A

  • Multi-view semi-supervised lymph node classification method and system, and device

    WO2022127227A1