A method and device for segmenting microvessels in a tumor region
By introducing densely connected blocks and sigmoid activation modules into the segmentation network, without performing downsampling operations, multi-scale features are extracted, which solves the problem of inaccurate microvessel segmentation in the tumor area of breast CD34 images in the existing technology, and improves segmentation precision and accuracy. , suitable for clinical diagnosis.
Patent Information
- Application Number
- CN202111030762.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-09-03
AI Technical Summary
The existing microvessel segmentation method in the tumor area of breast CD34 images is not accurate enough when segmenting small targets, causing the microvessels outside the tumor area to be segmented, affecting the final morphological information statistics and cancer grading diagnosis.
A method of segmenting microvessels in tumor areas is adopted. By introducing two preset scale convolutional layers, multiple dense connection blocks and sigmoid activation modules into the segmentation network, no downsampling operation is performed. Drawing on the idea of FullNet, through feature splicing and expansion Convolution extracts multi-scale features to ensure segmentation accuracy of small targets.
It improves the precision and accuracy of microvessel segmentation, ensures accurate segmentation of microvessels in the tumor area, enhances feature reuse and feature propagation, improves the accuracy of prediction probability maps, and is suitable for clinical-level diagnosis.
Smart Images

Figure CN113850834B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method and device for segmenting microvessels in a tumor region. Background Art
[0002] With the development of image processing technology, automatic identification and segmentation of target objects through image processing has been applied to all walks of life. In medical clinical diagnosis, pathologists need to manually segment the microvessels in the tumor area of breast CD34-stained digital pathology sections, and then conduct case-by-case quantitative analysis of the morphological characteristics of each microvessel, and finally make a graded diagnosis of the patient based on the quantitative analysis results.
[0003] Existing methods for segmenting microvessels in tumor regions of breast CD34 images can often roughly segment the microvessels in the slices. However, since the microvessel segmentation in the tumor region has smaller surface features than the tissue region, and the tumor region is not easy to observe, these methods are often not accurate enough for the segmentation of microvessels in the tumor region. Incorrect tumor region positioning can easily lead to the segmentation of microvessels outside the tumor region, coupled with inaccurate microvessel boundary segmentation, which in turn affects the final morphological information statistics and cancer grading diagnosis. Therefore, how to effectively locate the tumor region and segment the microvessels in the tumor region is crucial for the clinical diagnosis of breast cancer. Summary of the invention
[0004] Based on this, it is necessary to provide a method and device for tumor region microvessel segmentation that can improve the accuracy of microvessel segmentation in order to address the above technical problems.
[0005] A method for segmenting microvessels in a tumor region, the method comprising:
[0006] Acquire an image patch containing the tumor area and microvessels;
[0007] Input the image block into the tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvascular; wherein the prediction probability map includes the microvascular region, the tumor region and the background region;
[0008] Among them, the tumor area microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor area microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain deep features; the deep features are input into a convolutional layer of preset scale for convolution processing to obtain feature maps of tumor area channels and microvascular channels; based on the feature maps of the tumor area channels and microvascular channels, a sigmoid activation module is input, and the feature values are mapped to preset probability intervals through sigmoid activation to obtain predicted probability maps of tumor areas and microvessels.
[0009] In one embodiment, the dense connection block includes five encoding layers, each encoding layer is composed of an expanded convolution layer, an activation layer and a batch normalization layer; the input feature map is input into multiple dense connection blocks, the dense connection block includes multiple encoding layers, the features output by the current encoding layer in each dense connection block are spliced with the features output by the previous encoding layer and then input into the next encoding layer, and the input feature map is subjected to multi-layer encoding processing to obtain a deep feature, including: inputting the input feature map into the first encoding layer of the first dense connection block, extracting the first scale feature through encoding processing; inputting the first scale feature into the second encoding layer of the first dense connection block, extracting the second scale feature through encoding processing; splicing the first scale feature and the second scale feature into the first dense The third coding layer of the connection block extracts the third scale feature through coding processing; the first scale feature, the second scale feature, and the third scale feature are spliced and input into the fourth coding layer of the first dense connection block, and the fourth scale feature is extracted through coding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are spliced and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through coding processing; the fifth scale feature is input into the next dense connection block, and the next dense connection block repeats the coding processing of the five coding layers of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the coding processing of the five coding layers of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0010] In one of the embodiments, the densely connected block includes five coding layers and one 1*1 convolutional layer, each coding layer is composed of an expanded convolutional layer, an activation layer and a batch normalization layer; the input feature map is input into multiple densely connected blocks, the densely connected block includes multiple coding layers, the features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and then input into the next coding layer, and the input feature map is subjected to multi-layer encoding processing to obtain a deep feature, including: inputting the input feature map into the first coding layer of the first densely connected block, and extracting the first scale feature through encoding processing; inputting the first scale feature into the second coding layer of the first densely connected block, and extracting the second scale feature through encoding processing; splicing the first scale feature and the second scale feature into the third coding layer of the first densely connected block, and extracting the third scale feature through encoding processing; The first scale feature, the second scale feature, and the third scale feature are spliced and input into the fourth coding layer of the first dense connection block, and the fourth scale feature is extracted through encoding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are spliced and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through encoding processing; the fifth scale feature is input into the 1*1 convolutional layer, and the convolutional processing reduces the feature channel by half to obtain the output feature of the first dense connection block; the output feature of the first dense connection block is input into the next dense connection block, and the next dense connection block repeats the processing of five coding layers and one convolutional layer of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the processing of five coding layers and one convolutional layer of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0011] In one of the embodiments, obtaining an image block containing a tumor area and microvessels includes: obtaining a full-field image of a pathological section, wherein the full-field image of the pathological section is a picture taken at a 10× field of view magnification; based on the full-field image of the pathological section, selecting a step size of 256 pixels and an image block size of 512 pixels×512 pixels, and performing cutting to obtain multiple image blocks containing tumor areas and microvessels.
[0012] In one of the embodiments, the image block is input into a convolution layer of a preset scale for convolution processing to obtain an input feature map, including: inputting the image block into a 3*3 convolution layer, ablating image-level features in the image block, and extracting features to obtain an input feature map.
[0013] In one of the embodiments, the depth feature is input into a convolution layer of a preset scale for convolution processing to obtain a feature map of the tumor area channel and the microvascular channel, including: inputting the depth feature into a 3*3 convolution layer, and the convolution processing reduces the feature channels to a preset number of categories to obtain a feature map of the tumor area channel and the microvascular channel.
[0014] In one embodiment, the loss function calculation formula of the tumor region microvascular segmentation model is as follows:
[0015]
[0016] Among them, r represents the tumor area, b represents the microvessel, Represents the cross entropy loss used for tumor region prediction, Represents the average loss of L1 loss and L2 loss used for microvascular prediction, that is, L1+L2 loss
[0017] A device for segmenting microvessels in a tumor region, comprising:
[0018] An image block acquisition module, used for acquiring an image block containing a tumor area and microvessels;
[0019] A segmentation module, used to input the image block into a tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvessels; wherein the prediction probability map includes a microvascular region, a tumor region, and a background region;
[0020] Among them, the tumor area microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor area microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain deep features; the deep features are input into a convolutional layer of preset scale for convolution processing to obtain feature maps of tumor area channels and microvascular channels; based on the feature maps of the tumor area channels and microvascular channels, a sigmoid activation module is input, and the feature values are mapped to preset probability intervals through sigmoid activation to obtain predicted probability maps of tumor areas and microvessels.
[0021] In one embodiment, the dense connection block includes five encoding layers, each encoding layer is composed of an expanded convolution layer, an activation layer and a batch normalization layer; the input feature map is input into multiple dense connection blocks, the dense connection block includes multiple encoding layers, the features output by the current encoding layer in each dense connection block are spliced with the features output by the previous encoding layer and then input into the next encoding layer, and the input feature map is subjected to multi-layer encoding processing to obtain a deep feature, including: inputting the input feature map into the first encoding layer of the first dense connection block, extracting the first scale feature through encoding processing; inputting the first scale feature into the second encoding layer of the first dense connection block, extracting the second scale feature through encoding processing; splicing the first scale feature and the second scale feature into the first dense The third coding layer of the connection block extracts the third scale feature through coding processing; the first scale feature, the second scale feature, and the third scale feature are spliced and input into the fourth coding layer of the first dense connection block, and the fourth scale feature is extracted through coding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are spliced and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through coding processing; the fifth scale feature is input into the next dense connection block, and the next dense connection block repeats the coding processing of the five coding layers of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the coding processing of the five coding layers of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0022] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0023] Acquire an image patch containing the tumor area and microvessels;
[0024] Input the image block into the tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvascular; wherein the prediction probability map includes the microvascular region, the tumor region and the background region;
[0025] Among them, the tumor area microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor area microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain deep features; the deep features are input into a convolutional layer of preset scale for convolution processing to obtain feature maps of tumor area channels and microvascular channels; based on the feature maps of the tumor area channels and microvascular channels, a sigmoid activation module is input, and the feature values are mapped to preset probability intervals through sigmoid activation to obtain predicted probability maps of tumor areas and microvessels.
[0026] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0027] Acquire an image patch containing the tumor area and microvessels;
[0028] Input the image block into the tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvascular; wherein the prediction probability map includes the microvascular region, the tumor region and the background region;
[0029] Among them, the tumor area microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor area microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain deep features; the deep features are input into a convolutional layer of preset scale for convolution processing to obtain feature maps of tumor area channels and microvascular channels; based on the feature maps of the tumor area channels and microvascular channels, a sigmoid activation module is input, and the feature values are mapped to preset probability intervals through sigmoid activation to obtain predicted probability maps of tumor areas and microvessels.
[0030] The above-mentioned tumor area microvascular segmentation method and device, through the design of densely connected blocks in the tumor area microvascular segmentation model, is different from the commonly used segmentation network based on U-type encoding and decoding. By drawing on the idea of FullNet, in the microvascular segmentation network, no downsampling operation is performed to ensure that the size of all feature maps is the same as the size of the original input image. The purpose is to ensure the segmentation accuracy of small targets. At the same time, feature splicing operations can enhance feature reuse and feature propagation. The dilated convolution effectively ensures that the extracted features have multi-scale information by continuously expanding the receptive field, thereby improving the accuracy of the final prediction probability map. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a schematic flow chart of a method for segmenting microvessels in a tumor region in one embodiment;
[0032] Figure 2 is a schematic diagram of the structure of a tumor region microvessel segmentation model in one embodiment;
[0033] Figure 3 is a schematic diagram of a coding layer structure in one embodiment;
[0034] Figure 4 This is a diagram showing the microvessel segmentation result of a tumor region of a breast CD34 image in an embodiment;
[0035] Figure 5 is a structural block diagram of a device for segmenting microvessels in a tumor region in one embodiment;
[0036] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] As one of the typical semantic segmentation networks, the fully convolutional neural network (FCN) has been improved and optimized by many researchers in recent years and has made good progress in the field of image segmentation. However, the bottom-up decoding method adopted by these methods and the segmentation results obtained by linear interpolation are often rough and inaccurate. On the other hand, in order to obtain more contextual information, many researchers have added atrous spatial convolutional pooling pyramid (ASPP) to the network, which captures the contextual information in the feature map through convolution operations with different expansion rates. This method can effectively enhance the network's perception of boundaries, but its effect is minimal and cannot reach clinical level application.
[0039] Auxiliary segmentation networks are mainly divided into multi-task auxiliary segmentation networks and multi-stage optimization networks. Compared with the multi-task auxiliary segmentation network, the multi-stage optimization network mainly optimizes the segmentation results by using secondary prediction based on the existing segmentation results. However, since the features of the multi-stage optimization network are not shared or transmitted, it is easy to cause false negative phenomena. At the same time, the multi-stage optimization network has more parameters and cannot meet the clinical requirements for timeliness. Compared with the multi-stage optimization network, the multi-task auxiliary segmentation network enhances the foreground segmentation performance by adding auxiliary task branches such as boundary segmentation and background segmentation to the network. The boundary auxiliary segmentation branch can effectively strengthen the network's prediction constraints on the boundary and further enhance the perception of the foreground area.
[0040] This application conducts in-depth research and exploration based on the advantages and disadvantages of fully convolutional neural networks (FCNs) and auxiliary segmentation networks, and proposes a method for microvascular segmentation in tumor areas to solve the problem that microvascular targets in pathological slice images are of different sizes and mostly small targets, which are not easy to accurately segment.
[0041] In one embodiment, Figure 1 As shown, a method for segmenting microvessels in a tumor region is provided, comprising the following steps:
[0042] S110, acquiring an image block including a tumor region and microvessels.
[0043] The image blocks are image blocks obtained by segmenting the pathological slice images, which may be breast CD34-stained digital pathological slice full-field images or liver hematoxylin-eosin-stained digital pathological slice full-field images.
[0044] S120, inputting the image block into a tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvascular; wherein the prediction probability map includes a microvascular region, a tumor region, and a background region.
[0045] Among them, Figure 2As shown, the tumor region microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor region microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, the densely connected blocks include multiple coding layers, the features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and then input into the next coding layer, and the input feature map is processed by multiple layers of coding to obtain a deep feature; the deep feature is input into a convolutional layer of preset scale for convolution processing to obtain a feature map of the tumor region channel and the microvascular channel; based on the feature map of the tumor region channel and the microvascular channel, a sigmoid activation module is input, and the feature value is mapped to a preset probability interval through sigmoid activation to obtain a predicted probability map of the tumor region and the microvascular.
[0046] Among them, the convolution layer of the preset scale is a 3*3 convolution layer, and two 3*3 convolution layers are distributed before and after multiple densely connected blocks. Two 3*3 convolution layers are introduced in the network's initial part and the final decoding part of the tumor area microvascular segmentation model. The purpose is to effectively ablate the initial features of the image and the deep features extracted by the network through convolution. It is worth noting that the first 3*3 convolution ablates the image-level features in order to eliminate most of the noise in the image and then extract features. The next 3*3 convolution layer comprehensively considers the multi-scale features extracted by the network so that they can be effectively predicted.
[0047] Wherein, the dense connection block may include M coding layers, each coding layer is composed of an expansion convolution layer, a LeakyReLU activation layer, and a batch normalization layer. Wherein, the scale of the feature of the nth scale extracted by the mth coding layer is greater than the scale of the feature of the m-1th scale extracted by the m-1th coding layer, the Mth scale is the maximum scale of the multiple scales, M is a positive integer greater than or equal to 2, m is less than or equal to M and greater than or equal to 2. As an example, M can be 4. Wherein, the number of dense connection blocks can be set as needed, for example, the dense connection blocks are 7. Microvascular segmentation requires the integrity of boundary and other details. However, the common U-type encoding and decoding segmentation network uses pooling operation for downsampling. Although it can compensate for the multi-scale features of the image, multiple downsampling operations lose the detailed features of the image, especially the boundary features, and thus cannot reconstruct the features during the decoding process. The tumor area microvascular segmentation model is composed of multiple densely connected blocks. The entire network does not use pooling operation for downsampling, but uses hole (expansion) convolution in the densely connected block for multi-scale feature extraction, so the detailed features of the image are not lost.
[0048] In the above-mentioned tumor area microvascular segmentation method, through the design of densely connected blocks in the tumor area microvascular segmentation model, different from the commonly used segmentation network based on U-type encoding and decoding, by drawing on the idea of FullNet, in the microvascular segmentation network, no downsampling operation is performed to ensure that the size of all feature maps is the same as the size of the original input image. The purpose is to ensure the segmentation accuracy of small targets. At the same time, feature splicing operations can enhance feature reuse and feature propagation. The dilated convolution effectively ensures that the extracted features have multi-scale information by continuously expanding the receptive field, thereby improving the accuracy of the final prediction probability map.
[0049] In one embodiment, the dense connection block includes five coding layers, each of which is composed of an expanded convolution layer, an activation layer, and a batch normalization layer. The input feature map is input into multiple dense connection blocks, the dense connection block includes multiple coding layers, the features output by the current coding layer in each dense connection block are spliced with the features output by the previous coding layer and then input into the next coding layer, and the input feature map is subjected to multi-layer coding processing to obtain a deep feature, including: inputting the input feature map into the first coding layer of the first dense connection block, extracting the first scale feature through coding processing; inputting the first scale feature into the second coding layer of the first dense connection block, extracting the second scale feature through coding processing; splicing the first scale feature and the second scale feature into the third coding layer of the first dense connection block, extracting the third scale feature through coding processing; The first scale feature, the second scale feature, and the third scale feature are concatenated and input into the fourth coding layer of the first dense connection block, and the fourth scale feature is extracted through encoding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are concatenated and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through encoding processing; the fifth scale feature is input into the next dense connection block, and the next dense connection block repeats the encoding processing of the five coding layers of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the encoding processing of the five coding layers of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0050] Among them, the structures and processing methods of other densely connected blocks are the same as those of the first densely connected block, and the scale features of different coding layers are spliced and then coded to obtain the output features of the densely connected block. For example, the fifth scale feature is input into the first coding layer of the second densely connected block, and the sixth scale feature is extracted through coding; the sixth scale feature is input into the second coding layer of the second densely connected block, and the seventh scale feature is extracted through coding; the sixth scale feature and the seventh scale feature are spliced and input into the third coding layer of the second densely connected block, and the eighth scale feature is extracted through coding; the sixth scale feature, the seventh scale feature, and the eighth scale feature are spliced and input into the fourth coding layer of the second densely connected block, and the ninth scale feature is extracted through coding; the sixth scale feature, the seventh scale feature, the eighth scale feature, and the ninth scale feature are spliced and input into the fifth coding layer of the first densely connected block, and the tenth scale feature is extracted through coding. By analogy, the operations of the subsequent densely connected blocks such as the third densely connected block and the fourth densely connected block can be derived.
[0051] Specifically, Figure 3 As shown, the dense connection block includes five encoding layers, each encoding layer consists of an expanded convolution layer, an activation layer and a batch normalization layer. The input feature map 512*512*(N-24) is input into the first encoding layer 1 of the first dense connection block, and the first scale feature 512*512*N is extracted, where 512*512 is the size of the feature map in pixels, N-24 is the number of channels, and N is a positive integer greater than 24; the first scale feature 512*512*N is input into the second encoding layer 2 of the first dense connection block, and the first scale feature 512*512*(N+24) is extracted; the first scale feature 512*512*N and the second scale feature 512*512*(N+24) are spliced and input into the third encoding layer of the first dense connection block. Layer 3, extract the third scale feature 512*512*(N+48); splice the first scale feature 512*512*N, the second scale feature 512*512*(N+24), and the third scale feature 512*512*(N+48) and input them into the fourth coding layer 4 of the first dense connection block to extract the fourth scale feature 512*512*(N+72); splice the first scale feature 512*512*N, the second scale feature 512*512*(N+24), the third scale feature 512*512*(N+48), and the fourth scale feature 512*512*(N+72) and input them into the fifth coding layer of the first dense connection block to extract the fifth scale feature 512*512*(N+96). It is worth noting that the difference between the number of channels of each subsequent scale feature and the number of channels of the previous scale feature is 24.
[0052] Among them, the expansion rate of the dilated convolution layer is set as a hyperparameter to a U-shaped structure, which is selected according to the depth of the coding feature. As an example, in the five coding layers, the expansion rate of each layer is {1, 2, 4, 8, 16} from shallow to deep, similar to the U-shaped structure. In this embodiment, although there is no pooling layer in the microvascular segmentation network with hyperparameter setting, multi-scale features can still be obtained by using the U-shaped dilated convolution to ensure accurate segmentation of the tumor area and the microvessels.
[0053] In one embodiment, the dense connection block includes five coding layers and one 1*1 convolution layer, and each coding layer is composed of an expanded convolution layer, an activation layer, and a batch normalization layer. The input feature map is input into multiple dense connection blocks, and the dense connection block includes multiple coding layers. The features output by the current coding layer in each dense connection block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of encoding to obtain a deep feature, including: inputting the input feature map into the first coding layer of the first dense connection block, and extracting the first scale feature through encoding; inputting the first scale feature into the second coding layer of the first dense connection block, and extracting the second scale feature through encoding; splicing the first scale feature and the second scale feature into the third coding layer of the first dense connection block, and extracting the third scale feature through encoding; splicing the first scale feature, the second scale feature, and the third scale feature into the first dense The fourth coding layer of the connection block extracts the fourth scale feature through coding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are spliced and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through coding processing; the fifth scale feature is input into the 1*1 convolutional layer, and the convolutional processing reduces the feature channel by half to obtain the output feature of the first dense connection block; the output feature of the first dense connection block is input into the next dense connection block, and the next dense connection block repeats the processing of five coding layers and one convolutional layer of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the processing of five coding layers and one convolutional layer of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0054] In this embodiment, the definition of the coding layer and scale features refers to the previous embodiment. Compared with the previous embodiment, in this embodiment, the dense connection block adds a 1*1 convolution layer, the purpose of which is to compress the features without damaging the scale information of the original features. Since the size of each feature map of the microvascular segmentation network is consistent with the size of the original input image, the requirements for video memory are high during the training process. In order to reasonably utilize resources, the input feature map channel is reduced to half of the original through a 1*1 convolution layer, which can effectively reduce parameters.
[0055] In one of the embodiments, obtaining an image block containing a tumor area and microvessels includes: obtaining a full-field image of a pathological section, wherein the full-field image of the pathological section is a picture taken at a 10× field of view magnification; based on the full-field image of the pathological section, selecting a step size of 256 pixels and an image block size of 512 pixels×512 pixels, and performing cutting to obtain multiple image blocks containing tumor areas and microvessels.
[0056] The full-field image of the pathological section can be a full-field image of a digital pathological section stained with breast CD34. Since the full-field image of the digital pathological section stained with breast CD34 has huge pixels, if it is directly input into the processor, it will cause memory overflow. Therefore, it is necessary to automatically capture the image block with a fixed step size at a 10× field of view magnification of the full-field image of the pathological section. Here, the step size is 256, which is smaller than the size of the image block size of 512, in order to prevent the tissue area from being cut and broken, resulting in changes in context information, thereby affecting the prediction accuracy. The size of the image block is consistent with the size of the input image of the tumor area microvascular segmentation model used for area recognition.
[0057] In one embodiment, the image block is input into a convolution layer of a preset scale for convolution processing to obtain an input feature map, including: inputting the image block into a 3*3 convolution layer, ablating image-level features in the image block, and extracting features to obtain an input feature map. In this embodiment, the 3*3 convolution layer can eliminate most of the noise in the image, and then perform feature extraction.
[0058] In one embodiment, the depth feature is input into a convolution layer of a preset scale for convolution processing to obtain a feature map of the tumor region channel and the microvascular channel, including: the depth feature is input into a 3*3 convolution layer, and the convolution processing reduces the feature channel to a preset number of categories to obtain a feature map of the tumor region channel and the microvascular channel. In this embodiment, the 3*3 convolution layer can comprehensively consider the multi-scale features extracted by the network so that it can be effectively predicted. For example, in order to reduce to a preset number of categories, that is, the number of channels is 2, the size of the feature map obtained is 512*512*2, where 512×512 is the length and width of the feature map, and 2 is the number of predicted categories.
[0059] In this embodiment, in view of the requirement of the microvascular segmentation task that the segmented microvessels must be within the tumor region, the segmentation of microvessels outside the tumor region seriously affects the final morphological information statistics and cancer grading diagnosis. However, since the tumor region has smaller surface features than the tissue region and is not easy to observe, it is impossible to distinguish whether the microvessels are inside or outside the tumor region by only using the microvascular segmentation task for segmentation. Therefore, the microvascular segmentation network adds a tumor region segmentation task branch, and simultaneously segments the tumor region and the microvessels in the network prediction part, and further adopts the regional suppression method to retain the microvessels in the tumor region and remove the microvessels outside the tumor region. In this embodiment, the feature maps of the tumor region channel and the microvascular channel are extracted by a 3*3 convolutional layer, and the feature maps of the two channels are simultaneously extracted by densely connected block features, which ensures that the microvascular segmentation and tumor region segmentation are performed simultaneously, and the parameters of the segmentation network are shared, which can achieve the retention of the microvessels in the tumor region and the removal of the microvessels outside the tumor region.
[0060] In the tumor region microvascular segmentation model of the present application, when training the tumor region segmentation, only the morphological features in the tumor region are statistically analyzed in the clinic to train the tumor region auxiliary segmentation network. Figure 4 The following is the result of microvascular segmentation in the tumor area of breast CD34 image. Figure 4 The first four images in the middle are the microvascular segmentation results of the non-tumor area. When the existing microvascular segmentation network is used for segmentation, the second image can collect the microvascular segmentation results (black part). Later, the tumor area microvascular segmentation model of the present application is used for segmentation. Since there is no tumor area, the predicted probability map of microvessels in the tumor area does not include the microvascular markers. Figure 4 The four images in the second row are the microvascular segmentation results in the tumor area. From the original image, we can see that there are many microvessels distributed. Figure 4 The second picture in the second row in the figure captures the segmentation result of the existing microvascular segmentation network (black part), the third picture performs multi-task segmentation to obtain the tumor area (shaded part), and the fourth picture finally obtains the labeling of the microvessels in the tumor area. Experiments have proved that the tumor area microvascular segmentation method of the present application can accurately achieve the segmentation of the microvessels in the tumor area.
[0061] In one embodiment, the loss function calculation formula of the tumor region microvascular segmentation model is as follows:
[0062]
[0063] Among them, r represents the tumor area, b represents the microvessel, Represents the cross entropy loss used for tumor region prediction, It represents the average loss of L1 loss and L2 loss used in microvessel prediction, that is, L1+L2 loss.
[0064] Different loss functions are suitable for predictions at different granularity levels. Because the prediction output of the tumor region mainly focuses on global predictions and ignores local details, the cross entropy loss considers global predictions and ignores local predictions, so it is more suitable. Microvascular segmentation aims to achieve pixel-level accuracy by relying on local features. Therefore, in order to obtain better boundary refinement results, the average loss of L1 loss and L2 loss is used in the fine-grained prediction output part.
[0065] Among them, the specific calculation method of cross entropy loss is as follows:
[0066]
[0067] Among them, N means that there are N image samples in the current training batch, C means the total number of predicted categories, H and W respectively represent the high dimension and wide dimension of the current image, and p n,i,j,c represents the predicted probability value of the current nth image with horizontal coordinate i, vertical coordinate j, and category c, q n,i,j,c The label value of the current n-th image with horizontal coordinate i, vertical coordinate j and category c.
[0068] Among them, the specific calculation formulas of L1 loss and L2 loss are as follows:
[0069]
[0070]
[0071] Among them, N means that there are N image samples in the current training batch, C means the total number of predicted categories, H and W respectively represent the height and width dimensions of the current image, and p n,i,j,c represents the predicted probability value of the current nth image with horizontal coordinate i, vertical coordinate j, and category c, q n,i,j,c The label value of the current n-th image with horizontal coordinate i, vertical coordinate j and category c.
[0072] In one of the embodiments, in the process of training the tumor region microvascular segmentation model, image samples with annotations of the tumor region and the microvascular region are used for training, the sample images are input into the initial tumor region microvascular segmentation model, and the predicted probability map of the tumor region and the microvascular is obtained. The loss function is calculated according to the predicted probability map and the annotation value, and the parameters of the initial tumor region microvascular segmentation model are continuously optimized through the loss function to obtain the final tumor region microvascular segmentation model, which is used to segment the tumor region microvascular. In order to prevent the overfitting of the deep neural network and ensure the robustness of the model, the microvascular segmentation training data set is online expanded by using online image expansion methods such as random rotation and random miscutting, and the image is online enhanced by adding random noise. The momentum optimizer is used to optimize the tumor cell region segmentation network, the batch size is 15, the initial learning rate is 0.007, the maximum step size is 30000, the weight decay is 0.0002, the momentum is 0.9, and a three-fold cross validation is performed; at the same time, 20% of the training set samples of the data set are reserved for monitoring the performance of the network.
[0073] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0074] In one embodiment, Figure 5 As shown, a tumor region microvascular segmentation device is provided, comprising: an image block acquisition module 210 and a segmentation module 220, wherein:
[0075] The image block acquisition module 210 is used to acquire an image block including a tumor region and microvessels.
[0076] The segmentation module 220 is used to input the image block into the tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and the microvascular; wherein the prediction probability map includes the microvascular region, the tumor region and the background region; wherein the tumor region microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor region microvascular segmentation model, the image block is input into the convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, the densely connected blocks include multiple coding layers, the features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and then input into the next coding layer, and the input feature map is processed by multiple layers of coding to obtain a deep feature; the deep feature is input into the convolutional layer of preset scale for convolution processing to obtain a feature map of the tumor region channel and the microvascular channel; based on the feature map of the tumor region channel and the microvascular channel, the sigmoid activation module is input, and the feature value is mapped to a preset probability interval through sigmoid activation to obtain a prediction probability map of the tumor region and the microvascular.
[0077] The densely connected block includes five coding layers, each of which is composed of an expanded convolution layer, an activation layer, and a batch normalization layer. The input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and then input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain a deep feature, including: in one embodiment, the input feature map is input into the first coding layer of the first densely connected block, and the first scale feature is extracted through coding processing; the first scale feature is input into the second coding layer of the first densely connected block, and the second scale feature is extracted through coding processing; the first scale feature and the second scale feature are spliced and input into the third coding layer of the first densely connected block, and the third scale feature is extracted through coding processing. scale feature; the first scale feature, the second scale feature, and the third scale feature are concatenated and input into the fourth coding layer of the first dense connection block, and the fourth scale feature is extracted through encoding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are concatenated and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through encoding processing; the fifth scale feature is input into the next dense connection block, and the next dense connection block repeats the encoding processing of the five coding layers of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the encoding processing of the five coding layers of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0078] In one embodiment, the dense connection block includes five coding layers and one 1*1 convolution layer, and each coding layer is composed of an expanded convolution layer, an activation layer, and a batch normalization layer. The input feature map is input into multiple dense connection blocks, and the dense connection block includes multiple coding layers. The features output by the current coding layer in each dense connection block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of encoding to obtain a deep feature, including: inputting the input feature map into the first coding layer of the first dense connection block, and extracting the first scale feature through encoding; inputting the first scale feature into the second coding layer of the first dense connection block, and extracting the second scale feature through encoding; splicing the first scale feature and the second scale feature into the third coding layer of the first dense connection block, and extracting the third scale feature through encoding; splicing the first scale feature, the second scale feature, and the third scale feature into the first dense The fourth coding layer of the connection block extracts the fourth scale feature through coding processing; the first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are spliced and input into the fifth coding layer of the first dense connection block, and the fifth scale feature is extracted through coding processing; the fifth scale feature is input into the 1*1 convolutional layer, and the convolutional processing reduces the feature channel by half to obtain the output feature of the first dense connection block; the output feature of the first dense connection block is input into the next dense connection block, and the next dense connection block repeats the processing of five coding layers and one convolutional layer of the first dense connection block to obtain the output feature of the dense connection block, and each dense connection block repeats the processing of five coding layers and one convolutional layer of the first dense connection block, and the depth feature is obtained after processing by the last dense connection block.
[0079] In one embodiment, the image block acquisition module 210 includes: a full-field image acquisition unit, used to acquire a full-field image of a pathological section, wherein the full-field image of the pathological section is a picture taken at a field of view magnification of 10×; a cutting unit, used to select a step size of 256 pixels and an image block size of 512 pixels×512 pixels according to the full-field image of the pathological section, and perform cutting to obtain multiple image blocks containing tumor areas and microvessels.
[0080] In one of the embodiments, the image block is input into a convolution layer of a preset scale for convolution processing to obtain an input feature map, including: inputting the image block into a 3*3 convolution layer, ablating image-level features in the image block, and extracting features to obtain an input feature map.
[0081] In one of the embodiments, the depth feature is input into a convolution layer of a preset scale for convolution processing to obtain a feature map of the tumor area channel and the microvascular channel, including: inputting the depth feature into a 3*3 convolution layer, and the convolution processing reduces the feature channels to a preset number of categories to obtain a feature map of the tumor area channel and the microvascular channel.
[0082] In one embodiment, the loss function calculation formula of the tumor region microvascular segmentation model is as follows:
[0083]
[0084] Among them, r represents the tumor area, b represents the microvessel, Represents the cross entropy loss used for tumor region prediction, It represents the average loss of L1 loss and L2 loss used in microvessel prediction, that is, L1+L2 loss.
[0085] For the specific definition of the tumor region microvascular segmentation device, please refer to the definition of the tumor region microvascular segmentation method above, which will not be repeated here. Each module in the above-mentioned tumor region microvascular segmentation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0086] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image block data containing tumor areas and microvessels. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for segmenting microvessels in a tumor area is implemented.
[0087] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0089] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0090] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0091] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for segmenting microvessels in a tumor region, characterized in that: The method comprises: Acquire an image patch containing the tumor area and microvessels; Input the image block into the tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvascular; wherein the prediction probability map includes the microvascular region, the tumor region and the background region; Among them, the tumor area microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor area microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain deep features; the deep features are input into a convolutional layer of preset scale for convolution processing to obtain feature maps of tumor area channels and microvascular channels; based on the feature maps of the tumor area channels and microvascular channels, a sigmoid activation module is input, and the feature values are mapped to preset probability intervals through sigmoid activation to obtain predicted probability maps of tumor areas and microvessels.
2. The method for segmenting microvessels in a tumor region according to claim 1, characterized in that: The densely connected block includes five encoding layers, each of which consists of a dilated convolutional layer, an activation layer, and a batch normalization layer; The input feature map is input into a plurality of densely connected blocks, wherein the densely connected blocks include a plurality of coding layers, and the features output by the current coding layer in each densely connected block are concatenated with the features output by the previous coding layer and then input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain a deep feature, including: Inputting the input feature map into a first encoding layer of a first densely connected block, and extracting a first scale feature through encoding processing; Inputting the first scale feature into the second encoding layer of the first densely connected block, and extracting the second scale feature through encoding processing; The first scale feature and the second scale feature are concatenated and input into the third coding layer of the first densely connected block, and the third scale feature is extracted through coding processing; The first scale feature, the second scale feature, and the third scale feature are concatenated and input into a fourth coding layer of the first densely connected block, and a fourth scale feature is extracted through coding processing; The first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are concatenated and input into the fifth coding layer of the first densely connected block, and the fifth scale feature is extracted through coding processing; The fifth scale feature is input into the next densely connected block, and the next densely connected block repeats the encoding process of the five encoding layers of the first densely connected block to obtain the output feature of the densely connected block. Each densely connected block repeats the encoding process of the five encoding layers of the first densely connected block, and the depth feature is obtained after processing by the last densely connected block.
3. The method for segmenting microvessels in a tumor region according to claim 1, characterized in that: The densely connected block includes five encoding layers and one 1*1 convolutional layer, each encoding layer consists of an expanded convolutional layer, an activation layer, and a batch normalization layer; The input feature map is input into a plurality of densely connected blocks, wherein the densely connected blocks include a plurality of coding layers, and the features output by the current coding layer in each densely connected block are concatenated with the features output by the previous coding layer and then input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain a deep feature, including: Inputting the input feature map into a first encoding layer of a first densely connected block, and extracting a first scale feature through encoding processing; Inputting the first scale feature into the second encoding layer of the first densely connected block, and extracting the second scale feature through encoding processing; The first scale feature and the second scale feature are concatenated and input into the third coding layer of the first densely connected block, and the third scale feature is extracted through coding processing; The first scale feature, the second scale feature, and the third scale feature are concatenated and input into a fourth coding layer of the first densely connected block, and a fourth scale feature is extracted through coding processing; The first scale feature, the second scale feature, the third scale feature, and the fourth scale feature are concatenated and input into the fifth coding layer of the first densely connected block, and the fifth scale feature is extracted through coding processing; Input the fifth scale feature into the 1*1 convolution layer, and the convolution process reduces the feature channel by half to obtain the output feature of the first densely connected block; The output features of the first densely connected block are input into the next densely connected block. The next densely connected block repeats the process of five coding layers and one convolution layer of the first densely connected block to obtain the output features of the densely connected block. Each densely connected block repeats the process of five coding layers and one convolution layer of the first densely connected block, and the deep features are obtained after processing by the last densely connected block.
4. The method for segmenting microvessels in a tumor region according to claim 1, characterized in that: Obtain image patches containing tumor areas and microvessels, including: Acquire a full-field image of a pathological section, wherein the full-field image of a pathological section is a picture taken at a 10× field of view magnification; According to the full-field image of the pathological slice, a step size of 256 pixels and an image block size of 512 pixels×512 pixels are selected for cutting to obtain a plurality of image blocks containing tumor areas and microvessels.
5. The method for segmenting microvessels in a tumor region according to claim 1, characterized in that: The image block is input into a convolution layer of a preset scale for convolution processing to obtain an input feature map, including: The image block is input into a 3*3 convolutional layer, the image-level features in the image block are ablated, and the features are extracted to obtain an input feature map.
6. The method for segmenting microvessels in a tumor region according to claim 1, characterized in that: The depth feature is input into a convolution layer of a preset scale for convolution processing to obtain a feature map of the tumor region channel and the microvascular channel, including: The deep features are input into a 3*3 convolution layer, and the convolution process reduces the feature channels to a preset number of categories to obtain feature maps of tumor area channels and microvascular channels.
7. The method for segmenting microvessels in a tumor region according to claim 1, characterized in that: The loss function calculation formula of the tumor region microvascular segmentation model is as follows: Among them, r represents the tumor area, b represents the microvessel, Represents the cross entropy loss used for tumor region prediction, It represents the average loss of L1 loss and L2 loss used in microvessel prediction, that is, L1+L2 loss.
8. A device for segmenting microvessels in a tumor region, characterized in that: The device comprises: An image block acquisition module, used for acquiring an image block containing a tumor area and microvessels; A segmentation module, used to input the image block into a tumor region microvascular segmentation model to obtain a prediction probability map of the tumor region and microvessels; wherein the prediction probability map includes a microvascular region, a tumor region, and a background region; Among them, the tumor area microvascular segmentation model includes two convolutional layers of preset scales, multiple densely connected blocks and a sigmoid activation module. In the tumor area microvascular segmentation model, the image block is input into a convolutional layer of preset scale for convolution processing to obtain an input feature map; the input feature map is input into multiple densely connected blocks, and the densely connected blocks include multiple coding layers. The features output by the current coding layer in each densely connected block are spliced with the features output by the previous coding layer and input into the next coding layer. The input feature map is processed by multiple layers of coding to obtain deep features; the deep features are input into a convolutional layer of preset scale for convolution processing to obtain feature maps of tumor area channels and microvascular channels; based on the feature maps of the tumor area channels and microvascular channels, a sigmoid activation module is input, and the feature values are mapped to preset probability intervals through sigmoid activation to obtain predicted probability maps of tumor areas and microvessels.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the tumor region microvessel segmentation method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the tumor region microvessel segmentation method according to any one of claims 1 to 7 are implemented.
