Paravascular abnormality segmentation method based on dual decoder and local feature enhancement network

Through dual decoders and local feature enhancement network structure, it solves the problem of easy loss of deep semantic information and insufficient attention to boundary features in small target segmentation in medical images, achieves efficient segmentation of paravascular abnormalities, and improves segmentation performance.

CN118172369BActive Publication Date: 2024-09-03SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410588025.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-03
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

Existing medical image segmentation algorithms have problems such as easy loss of deep semantic information and insufficient attention to boundary features when dealing with multiple types of small target segmentation tasks. Especially in the segmentation task of paravascular abnormalities, small targets with complex shapes and fuzzy boundaries are difficult to detect. Effective segmentation.

Method used

A paravascular abnormality segmentation method based on dual decoders and local feature enhancement network is designed. The dual decoder structure introduces boundary information and uses the local feature enhancement module (LFE) to enhance the dependence between pixels, reduce the impact of noise, and improve Attention to target boundary information.

Benefits of technology

It significantly improves the performance of small target segmentation in medical images, especially the segmentation effect of paravascular abnormalities in retinal OCT images, and enhances the retention of deep semantic features and the segmentation accuracy of boundary details.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118172369B
    Figure CN118172369B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network. The method comprises a feature encoding module, a local feature enhancement module and a dual decoder structure. The feature encoding module is used to extract deep semantic features of an input retinal optical coherence tomography image. The local feature enhancement module is used to divide the deep semantic features into a plurality of patch blocks, and the pixel representation and interactive attention representation of each patch block are calculated to generate deep semantic features with local feature enhancement. The dual decoder structure is used to extract edge features from the deep semantic features with local feature enhancement in an edge segmentation decoder branch, and up-sample to obtain a paravascular abnormality edge segmentation prediction image. The edge features are fused and up-sampled with the deep semantic features with local feature enhancement in a main segmentation decoder branch to obtain a paravascular abnormality segmentation prediction image. The segmentation network is optimized during training using a joint segmentation loss function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network. Background Art

[0002] Image segmentation is to decompose an image into several sub-regions with the same or similar properties, and is an important part of image semantic understanding. Traditional image segmentation algorithms include threshold-based segmentation methods, region-based segmentation methods such as seed region growing method and watershed method, graph-based segmentation methods such as GraphCut, GrabCut and Random Walk, image segmentation algorithms based on wavelet analysis and wavelet transform, etc. With the rise of deep learning technology and the successful application of convolutional neural networks, the field of image segmentation has ushered in a revolutionary change. The Fully Convolutional Networks (FCN) proposed in 2014 is the first end-to-end fully convolutional network for pixel-level prediction. Since the network was proposed, it has become the basic framework for semantic segmentation, and subsequent algorithms are basically improved on this network framework. In 2015, one of the most representative algorithms, UNet, was introduced and has been widely used in tasks such as medical image segmentation and natural image segmentation. Its characteristics are the use of encoder and decoder structures, and the use of jump connections to connect certain layers of the encoder with the corresponding layers in the decoder. The high-resolution network HRNet maintains high-resolution representation by connecting convolutions from high resolution to low resolution in parallel, and has achieved advantages in a wide range of applications such as human pose estimation, semantic segmentation, and target detection, indicating that HRNet is a powerful pillar for solving computer vision problems.

[0003] Medical image segmentation can assist doctors in disease diagnosis and even locate lesions and give diagnostic results by segmenting different medical images, such as segmenting colon polyps in colonoscopy images, segmenting retinal schisis in retinal optical coherence tomography (OCT) images, and segmenting organs in CT images. It is an important step in medical image analysis. However, medical images generally have the characteristics of low contrast and high background noise, and there are many types of lesions and uneven numbers. Medical image segmentation is still very challenging.

[0004] The fully convolutional neural network FCN adopts end-to-end pixel-level prediction and becomes the basic framework for semantic segmentation. UNet uses an encoder-decoder structure and jump connections and is widely used in medical image segmentation. HRNet maintains high-resolution representation by connecting convolutions from high resolution to low resolution in parallel, and has achieved advantages in multiple fields. U-HRNet removes the high-resolution branches of the last two stages of HRNet, adds more stages after the feature map with the strongest semantic representation, relaxes the constraints in HRNet, and allows the network to allocate more computing resources in the low-resolution stage, greatly improving the overall semantic representation. AGPCNet proposes a context pyramid module, which fuses multi-scale attention-guided context features with the original feature map, and has achieved good results in the field of small object segmentation. The non-local attention mechanism can realize long-distance dependencies between pixel positions and obtain a global receptive field. DNANet adopts a densely nested interaction module to form a densely nested structure to obtain high-level information and a larger receptive field; wNet adds an extension path to achieve more accurate segmentation performance through dual supervision.

[0005] In the medical image segmentation task, the preservation and application of deep semantic information is crucial for the encoder-decoder structure network represented by UNet. Although UNet and its improved segmentation network have achieved good segmentation results in many medical image segmentation tasks, it still has the following shortcomings for the joint segmentation task of multiple small objects:

[0006] (1) A single encoder-decoder structure is difficult to effectively segment small targets with complex morphological features and fuzzy boundaries. For example, in the retinal OCT images of high myopia, the paravascular cysts in the paravascular abnormalities are small targets with variable morphology and fuzzy boundaries, and they are similar to the pathological features of some smaller paravascular inner layer splitting, which adds interference to the learning of the convolutional neural network, making it difficult to jointly segment them. The main improvements in the segmentation of small targets are: attention mechanism and auxiliary supervision. DNANet proposes a densely nested interaction module, which stacks multiple U-shaped networks together to form a densely nested structure. Multiple nodes are added to the path between the encoder and decoder subnetworks. The nodes are closely connected to each other to form a nested network. At the same time, the network proposes a plug-and-play channel and spatial attention module (CSAM) that combines the channel attention mechanism and the spatial attention mechanism. However, the stacked network structure has extremely high computational cost, and the deeper network is prone to the loss of small target information. The CSAM module treats all pixels equally and is not robust for multi-class joint segmentation tasks. wNet adds an extension path to achieve more accurate segmentation performance through dual supervision. The segmentation process of the extension path can be regarded as a rough segmentation, and the rough segmentation result is sent to the original segmentation path for further refinement. However, this method only adds one branch, and the two branches are not very different in structure, which is not applicable to multi-class joint segmentation tasks.

[0007] (2) The background of shallow semantic features is complex and noisy. Simply fusing deep semantic features with shallow semantic features cannot fully utilize the semantic information of deep semantic features. U-HRNet allocates more computing resources to the low-resolution stage of the network, which can improve the overall semantic representation, but does not suppress the influence of irrelevant noise in low-level feature maps. Therefore, it cannot be directly and effectively applied to small object segmentation tasks. Summary of the invention

[0008] In view of the above problems existing in the prior art, the present invention is proposed.

[0009] Therefore, the present invention provides a method for segmenting paravascular abnormalities based on a dual-decoder and local feature enhancement network, the purpose of which is to overcome the problem of easy loss of deep semantic information in existing high-resolution networks, while enhancing the focus of convolutional neural networks on target boundary information. For the first time, a dual-decoder network structure and a local feature enhancement (Local Feature Enhancement, LFE) module are designed and applied to a high-resolution network, aiming to realize a deep convolutional neural network suitable for small target segmentation in medical images. The network designed by the present invention is a dual-decoder structure and a local feature enhancement network (Dual-Decoders and Local Feature Enhancement Network, D 2 LFENet).

[0010] The dual decoding structure proposed in the present invention introduces boundary information by extracting boundary features, guiding the network to pay more attention to the boundaries of tiny lesions. Under the guidance of the information of the boundary segmentation decoder branch, the main segmentation decoder branch continuously improves the boundary details and optimizes the performance. The local feature enhancement LFE module limits the network's receptive field to a local range by dividing the deep features into patches of the same size; and calculates the pixel representation and interactive attention representation of each patch block, enhances the dependency between pixels, and significantly enhances the target information, thereby eliminating the influence of the internal structural noise and background noise of the patch block on the target.

[0011] In order to solve the above technical problems, the present invention provides the following technical solutions, a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network, comprising: inputting a retinal optical coherence tomography (OCT) image to be detected into a pre-trained dual decoder and a local feature enhancement network; using a feature encoding module to extract features of the OCT image to be detected to obtain deep semantic features; using a local feature enhancement (LFE) module to divide the deep semantic features into multiple patch blocks, respectively calculating the pixel representation and interactive attention representation of the patch blocks, and merging to generate deep semantic features with local feature enhancement; using a dual decoder structure to extract edge features from the deep semantic features with local feature enhancement in an edge segmentation decoder branch, and upsampling layer by layer to obtain a paravascular abnormality target edge segmentation prediction image, and fusing and upsampling the edge features with the deep semantic features with local feature enhancement in the main segmentation decoder branch to obtain a paravascular abnormality target segmentation prediction image.

[0012] As a preferred solution of the paravascular abnormality segmentation method based on dual decoder and local feature enhancement network described in the present invention, wherein: the feature encoding module adopts HRNet pre-trained based on ImageNet as the backbone network, removes the second convolution layer in the stem layer, HRNet starts from a high-resolution feature, and fuses the low-resolution feature with the high-resolution feature. The feature encoding module consists of 4 stages, and the nth stage contains n convolution streams n=1, 2, 3, 4 for n different resolutions. Feature fusion of different resolutions is achieved by exchanging information multiple times between parallel convolution streams.

[0013] As a preferred solution of the method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network of the present invention, the feature encoding module is composed of 4 stages, including: stage 1 is the input image , where H and W represent the height and width of the retinal OCT image, respectively. After a convolutional layer, the resolution of the input feature is downsampled to 1 / 2 of the original, and the feature , for The preset number of channels is 64; the convolution layer contains a convolution with a kernel size of 3×3 and a stride of 2, batch normalization BN and activation function ReLU, which converts the downsampled features As the input of stage 1, the output features of stage 1 are obtained through a stacking layer , for The preset number of channels is 256; the stacked layer contains four cascaded Bottlenecks with a residual structure, each of which contains three convolutions and an activation function ReLU to adjust the number of channels;

[0014] In stage 2, the output features of stage 1 are Through a convolution layer with a convolution kernel size of 3×3 and a stride of 1, the feature ,Will Through a convolution layer with a convolution kernel size of 3×3 and a stride of 2, the resolution is downsampled to 1 / 4 of the original feature. , and They are and The preset number of channels is 18 and 36 respectively. and Four cascaded BasicBlocks with residual structures are used to fuse multi-scale features. Each BasicBlock contains two convolutions with a kernel size of 3×3 and an activation function ReLU. The output of each scale branch is obtained by fusion of the outputs of all branches: for the branch downsampled to 1 / 2, the feature Output and features after BasicBlock upsampling by 2 times After adding the output of BasicBlock, we get the output features of the branch downsampled to 1 / 2 in stage 2 ; Downsample to 1 / 4 of the branch, and convert the feature Output and features after BasicBlock The output of the branch downsampled to 1 / 2 after BasicBlock is added to obtain the output features of the branch downsampled to 1 / 4 in stage 2 ;

[0015] In stages 3 and 4, the branch output features of stage 2 are The features obtained by convolutional layer are downsampled to 1 / 8 resolution. and , As the input of stage 3, after cascading BasicBlock and multi-scale feature fusion, the output of stage 3 is obtained , , , the branch output features of stage 3 Then the convolutional layer is used to obtain the features with the resolution downsampled to 1 / 16. and , , , as the input of stage 4, after cascaded BasicBlock and multi-scale feature fusion, the final output feature of the feature encoding module is , , and .

[0016] As a preferred solution of the method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network described in the present invention, the local feature enhancement LFE module includes: at the end of the feature encoder, each branch is designed and embedded with a local feature enhancement LFE module, the local feature enhancement LFE module divides the deep semantic features into k×k patch blocks of the same size, performs pixel representation and interactive attention representation on each patch block, and then merges them into the final enhanced features;

[0017] The pixel representation includes, for a given feature , where c, h and w represent the features respectively. The number of channels, height and width are obtained after a 3×3 convolution, normalization, and ReLU activation operation to obtain pixel features. ,in, for The preset number of channels is 512, which is the characteristic With pixel features Reshape into two dimensions , , Each column in represents the value of all channels at each pixel position. Each row in represents the value of all channels at each pixel position. Each row of Each column of , expressed as:

[0018] ;

[0019] in, Reshapes the feature map into two dimensions.

[0020] As a preferred solution of the method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network described in the present invention, wherein: the interactive attention representation is obtained by calculating pixel features Represented with pixels The similarity matrix between them is weighted and summed according to the similarity matrix to obtain the final interactive attention representation, pixel feature After 3×3 convolution, normalization, and ReLU activation, it is reshaped into a size of Two-dimensional features ; for pixels After 3×3 convolution, normalization, ReLU activation, and reshaping, the size is Two-dimensional features ,right After 3×3 convolution, normalization, and ReLU activation, the size is Features , the attention representation is calculated by calculating the two-dimensional features according to the following calculation process :

[0021] ;

[0022] in, for The preset number of channels is 256; is a commonly used classification function, T represents Matrix transpose operation of ;

[0023] After convolution operation and pixel features After concatenation and random inactivation dropout operations, we get the interactive attention representation , interactive attention representation After 1×1 convolution, the final enhanced patch block is obtained , the enhanced patch blocks are merged into the original feature size to obtain the deep semantic features enhanced by local features.

[0024] As a preferred solution of the method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network of the present invention, the dual decoder structure includes: the input of the main segmentation decoder branch and the edge segmentation decoder branch are both derived from the deep semantic features of the encoder features after the local feature enhancement LFE module, wherein the input features of the edge segmentation decoder are first subjected to edge feature extraction operation to obtain , , the edge feature extraction operation is expressed as, let the deep semantic features obtained by the encoder and local feature enhancement LFE module be , Subtract the pair The result of average pooling , get the input edge features :

[0025] ;

[0026] in, represents 1×1 convolution, is the average pooling operation, Represents edge features extracted from branches with different resolutions;

[0027] In the feature fusion of the main segmentation decoder, pixel-level addition and multiplication are introduced to transform edge features , , edge segmentation decoder level features obtained by level upsampling , With deep semantic features , Fusion, get fusion features , , the formula is:

[0028] ;

[0029] in, represents pixel-level multiplication, represents pixel-level addition;

[0030] All decoder modules use transposed convolution instead of bilinear interpolation in the original HRNet for upsampling. and , the specific operations of the level are expressed as:

[0031] ;

[0032] in, represents transposed convolution, Represents a splicing operation, represents a 3×3 convolutional layer, and They represent the main partitioning decoder branch and the edge partitioning decoder branch respectively.

[0033] As a preferred solution of the method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network of the present invention, the dual decoder structure includes: the input of the main segmentation decoder branch and the edge segmentation decoder branch are both derived from the deep semantic features of the encoder features after the local feature enhancement LFE module, wherein the input features of the edge segmentation decoder are first subjected to edge feature extraction operation to obtain , , the edge feature extraction operation is expressed as, let the deep semantic features obtained by the encoder and local feature enhancement LFE module be , Subtract the pair The result of average pooling , get the input edge features :

[0034] ;

[0035] in, represents 1×1 convolution, is the average pooling operation, Represents edge features extracted from branches with different resolutions;

[0036] In the feature fusion of the main segmentation decoder, pixel-level addition and multiplication are introduced to transform edge features , , edge segmentation decoder level features obtained by level upsampling , With deep semantic features , Fusion, get fusion features , , the formula is:

[0037] ;

[0038] in, represents pixel-level multiplication, represents pixel-level addition;

[0039] All decoder modules use transposed convolution instead of bilinear interpolation in the original HRNet for upsampling. and , the specific operations of the level are expressed as:

[0040] ;

[0041] in, represents transposed convolution, Represents a splicing operation, represents a 3×3 convolutional layer, and They represent the main partitioning decoder branch and the edge partitioning decoder branch respectively.

[0042] As a preferred solution of the method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network described in the present invention, the Dice loss function Calculate the overlap between each category target and the gold standard respectively, and find the category average. The calculation method is expressed as:

[0043] ;

[0044] in, is a smoothing factor to prevent the numerator or denominator from being zero, and its value is 1e-6;

[0045] For the boundary loss , it is necessary to extract the boundary of the lesion and segment the gold standard And the network prediction results The maximum pooling operation of each pixel is used to extract the lesion boundary and obtain the gold standard boundary and the boundary of the network prediction results , respectively expressed as:

[0046] ;

[0047] in, Indicates that the prediction and the gold standard are The maximum pooling operation of the sliding window, The value is 3;

[0048] In order to calculate the Euclidean distance from the pixel to the boundary, the maximum pooling operation is performed pixel by pixel on the boundaries of the gold standard and the network prediction results, and the boundaries of the two are expanded, which are expressed as:

[0049] ;

[0050] in, is the minimum distance between adjacent segments that is not greater than the gold standard, represents the result after the gold standard boundary is expanded, Represents the result after the network prediction boundary is expanded;

[0051] Then calculate the accuracy and recall respectively, the formula is expressed as:

[0052] ;

[0053] in, represents pixel-by-pixel summation; It indicates the ratio of the number of pixels predicted correctly on the network prediction boundary to the number of pixels on all prediction boundaries, i.e., the accuracy rate. It indicates the ratio of the number of pixels correctly predicted by the network to the number of pixels in the gold standard boundary, that is, the recall rate;

[0054] Finally, the boundary loss function is constructed using the formula :

[0055] ;

[0056] in, represents the harmonic mean of precision and recall, Indicates the accuracy, Represents the recall rate.

[0057] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein when the processor executes the computer program, the processor implements the steps of any one of the methods for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network.

[0058] 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 any one of the methods for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network are implemented.

[0059] Beneficial effects of the invention: The present invention proposes for the first time a codec structure segmentation network based on a dual decoder and a local feature enhancement LFE module, which is suitable for the segmentation of small targets in medical images such as paravascular abnormalities in retinal optical coherence tomography (OCT) images, and has good segmentation performance, laying the foundation for subsequent quantitative analysis of lesions.

[0060] The present invention discloses for the first time a method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network. The key technical points of the present invention include: (1) a codec structure segmentation network D based on a dual decoder and a local feature enhancement LFE module; 2 LFENet; (2) For the first time, a dual decoder network structure was designed to enhance the network's attention to the boundary information of the segmented target; (3) For the first time, a local feature enhancement LFE module was designed to overcome the problem of semantic information loss of deep features and enhance the dependency between any two elements in the local context of deep features. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0062] Figure 1 A dual decoding structure and a local feature enhancement network D designed for a method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network provided in an embodiment of the present invention 2 The overall structure of LFENet.

[0063] Figure 2 A feature encoding module designed for a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided in one embodiment of the present invention.

[0064] Figure 3 A local feature enhancement LFE module is designed for a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided in an embodiment of the present invention.

[0065] Figure 4 Pixel Representation in the LFE module designed for a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided in an embodiment of the present invention.

[0066] Figure 5Cross Attention Representation in the LFE module designed for a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided in an embodiment of the present invention.

[0067] Figure 6 A dual decoder structure designed for a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network is provided in one embodiment of the present invention.

[0068] Figure 7 A schematic flow chart of a method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network provided in accordance with an embodiment of the present invention.

[0069] Figure 8 A schematic diagram of the Poisson fusion data enhancement effect of a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided in one embodiment of the present invention (paravascular cyst).

[0070] Fig. 9 A schematic diagram of the Poisson fusion data enhancement effect (paravascular inner layer splitting) of a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided in one embodiment of the present invention.

[0071] Fig.10 A comparison of segmentation visualization results of different segmentation methods for a paravascular abnormality segmentation method based on a dual decoder and a local feature enhancement network provided for an embodiment of the present invention (grayscale values ​​from low to high represent background, vascular micro-bulges, paravascular cysts, paravascular lamellar tears, paravascular inner layer splitting, and paravascular outer layer splitting). DETAILED DESCRIPTION

[0072] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0073] Example 1

[0074] Reference Figure 1-Figure 10 , which is the first embodiment of the present invention, provides a method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network, comprising:

[0075] The present invention proposes a method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network, which improves the network structure and deep semantic enhancement respectively, enhances the network's attention to boundary information, solves the problem of easy loss of deep feature semantic information, and makes the improved dual decoder convolutional neural network more suitable for the segmentation of medical images with small target characteristics such as paravascular abnormalities. 2 The network structure of LFENet is shown in the attached figure. Figure 1 As shown in the figure, it mainly includes three parts: feature encoding module, dual decoder structure, and local feature enhancement LFE module.

[0076] (1) Feature encoding module: The encoder part uses HRNet pre-trained on ImageNet as the backbone network, removing the second convolutional layer in the stem layer to maintain a higher resolution. HRNet starts with a high-resolution feature and fuses the low-resolution feature with the high-resolution feature. The structure of the feature encoding module is shown in the attached figure. Figure 2 As shown in the figure, it mainly consists of 4 stages. The nth stage contains n convolution flows (n=1, 2, 3, 4) with n different resolutions. Feature fusion of different resolutions is achieved by exchanging information multiple times between parallel convolution flows.

[0077] Specifically, first input the retinal OCT image (H and W represent the height and width of image F, respectively) After a convolutional layer, the resolution of the input feature is downsampled to 1 / 2 of the original, and the feature , for The preset number of channels is 64; the structure of the convolutional layer is shown in the attached figure. Figure 2 As shown in the "convolutional layer" in the figure, it contains a convolution with a kernel size of 3×3 and a stride of 2, batch normalization BN and activation function ReLU. Then, the downsampled features are As the input of stage 1, the output features of stage 1 are obtained through a stacking layer , for The preset number of channels is 256; the stacking layer contains 4 cascaded Bottlenecks with residual structure, each of which contains three convolutions (the convolution kernel sizes are 1×1, 3×3, and 1×1) and the activation function ReLU to adjust the number of channels. The structure of Bottleneck is shown in the attached figure. Figure 2 As shown in "Bottleneck".

[0078] In stage 2, the output features of stage 1 are Through a convolution layer with a convolution kernel size of 3×3 and a stride of 1, the feature ,Will Through a convolution layer with a convolution kernel size of 3×3 and a stride of 2, the resolution is downsampled to 1 / 4 of the original feature. , and They are and The preset number of channels is 18 and 36 respectively. and Through 4 cascaded BasicBlocks with residual structure, each BasicBlock contains two convolutions with a kernel size of 3×3 and an activation function ReLU. The structure of BasicBlock is shown in the attached figure. Figure 2 Next, the multi-scale features are fused, and the output of each scale branch is obtained by fusion of the outputs of all branches: for the branch downsampled to 1 / 2, the feature Output and features after BasicBlock upsampling by 2 times After adding the output of BasicBlock, the output feature of this branch in stage 2 is obtained ; Similarly, for the branch downsampled to 1 / 4, the feature Output and features after BasicBlock The output of BasicBlock is downsampled to 1 / 2 and then added to obtain the output feature of this branch in stage 2 .

[0079] Similarly, similar operations are performed in stages 3 and 4, and the branch output features of stage 2 are The features obtained by convolutional layer are downsampled to 1 / 8 resolution. and , As the input of stage 3, after cascading BasicBlock and multi-scale feature fusion, the output of stage 3 is obtained , , . Output features of the branch in stage 3 Then the convolutional layer is used to obtain the features with the resolution downsampled to 1 / 16. and , , , which is used as the input of stage 4. After cascaded BasicBlock and multi-scale feature fusion, the final output feature of the feature encoding module is , , and .

[0080] (2) Local feature enhancement LFE module: At the end of the feature encoder, each branch is designed and embedded with a local feature enhancement LFE module. The structure of the LFE module is shown in the attached figure. Figure 3 As shown in the figure, the local feature enhancement LFE module first divides the deep semantic features into k×k patches of the same size, and then passes through the pixel-level interactive attention representation PCAR module to perform pixel representation and interactive attention representation on each patch block, and then merge them into the final enhanced features to reduce the impact of internal structural noise and background noise of the patch block on the target.

[0081] (a) Pixel Representation (PR): The structure of pixel representation PR is shown in the following figure. Figure 4 As shown. For a given feature (c, h and w represent the characteristics The number of channels, height and width), after a 3×3 convolution, normalization, and ReLU activation operation, the pixel features are obtained. ( for The preset number of channels is 512). With pixel features Reshape into two dimensions , , Each column in represents the value of all channels at each pixel position. Each row in represents the value of all channels at each pixel position. Multiply each row of the pixel feature Each column of , as shown in formula (1):

[0082] (1);

[0083] in, Reshape the feature map into two dimensions.

[0084] (b) Cross Attention Representation (CAR): The structure of the cross attention representation is shown in the attached figure. Figure 5 As shown, the core idea is an attention mechanism that calculates pixel features Represented with pixels The similarity matrix between them is used to perform weighted summation of pixel representations according to the similarity matrix to obtain the final interactive attention representation. Specifically, the pixel feature After 3×3 convolution, normalization, and ReLU activation, it is reshaped into a size of Two-dimensional features ; for pixels Perform 3×3 convolution, normalization, ReLU activation and reshape operations to get a size of Two-dimensional features ,right After 3×3 convolution, normalization, and ReLU activation, the size is Features According to formula (2), the above two-dimensional features are calculated to obtain the attention representation :

[0085] (2);

[0086] in, for The preset number of channels is 256; It is a commonly used classification function.

[0087] After convolution operation and pixel features After concatenation and random inactivation dropout operations, we get the interactive attention representation Interactive Attention Representation After 1×1 convolution, the final enhanced patch block is obtained The enhanced patch blocks are merged into the original feature size to obtain the deep semantic features enhanced by local features.

[0088] (3) Dual decoder structure: as shown in the attached Figure 6 As shown in Figure 2, the inputs of the main segmentation decoder branch and the boundary segmentation decoder branch are derived from the deep semantic features of the encoder features after the local feature enhancement LFE module. Among them, the input features of the boundary segmentation decoder are first subjected to the boundary feature extraction operation to obtain , the boundary feature extraction operation can be expressed by formula (3), assuming that the deep semantic features obtained by the encoder and the local feature enhancement LFE module are , Subtract the result of average pooling , get the edge features of the input :

[0089] (3);

[0090] in, represents 1×1 convolution, is the average pooling operation, Represents the edge features extracted from branches with different resolutions. The structure is shown in the attached figure. Figure 6 As shown in “Edge Feature Extraction”.

[0091] In the “feature fusion” of the main segmentation decoder, its structure is as shown in the attached figure. Figure 6 As shown in the “Feature Fusion” in the figure, pixel-level addition and multiplication are introduced to transform the boundary features Boundary segmentation decoder level features obtained by "level" upsampling With deep semantic features Fusion, get fusion features , as shown in formula (4):

[0092] (4);

[0093] in, represents pixel-level multiplication, Represents pixel-level addition.

[0094] All decoder modules use transposed convolution instead of bilinear interpolation in the original HRNet for upsampling. Specifically, for features of different resolutions input to the layer and The specific operation of “level” is shown in formula (5):

[0095] (5);

[0096] in, represents transposed convolution, Represents a splicing operation, represents a 3×3 convolutional layer (including convolution with a kernel size of 3×3, batch normalization, and activation function ReLU), and They represent the main segmentation decoder branch and the boundary segmentation decoder branch respectively. The specific structure of the hierarchy is shown in the attached figure. Figure 6 as shown in the "Level" in .

[0097] Through this fusion method, each layer of features in the main segmentation decoder contains the boundary weight information of abnormal lesions around blood vessels from the edge segmentation decoder. During the training process, the two decoder branches exchange information. The main segmentation decoder used to segment abnormalities around blood vessels can gradually improve the boundary information and optimize the prediction results under the guidance of the boundary information of the edge segmentation decoder. Under the coordination of the joint segmentation loss function, the two branches work efficiently with each other and greatly improve the accuracy.

[0098] (4) Loss function: During network training, the cross entropy loss is used for the main segmentation decoder branch. and Dice loss For supervision, for the edge segmentation decoder branch, a boundary loss is used Therefore, the joint segmentation loss of the entire network is shown in formula (6):

[0099] (6);

[0100] in, Represents boundary loss With Dice loss , cross entropy loss The trade-off coefficient is 0.5.

[0101] Cross Entropy Loss It is one of the most widely used loss functions in convolutional neural networks and is defined as shown in formula (7):

[0102] (7);

[0103] in, Represents the total number of pixels in the feature map, Indicates pixels, and K represents the number of categories of the segmented target. Indicates The pixel in The labels of the categories, usually each pixel has only A category in . Represents the model for pixels The prediction probability belonging to category k, the present invention uses the softmax function to process the final output of the network so that the sum of the prediction probabilities of all categories is 1.

[0104] Dice loss function The overlap between each category target and the gold standard is calculated respectively, and then the category average is calculated. The calculation method is shown in formula (8):

[0105] (8);

[0106] in, It is a smoothing factor to prevent the numerator or denominator from being zero, and its value is 1e-6.

[0107] For the boundary loss First, we need to extract the boundary of the lesion and segment the gold standard And the network prediction results The maximum pooling operation of each pixel is used to extract the lesion boundary and obtain the gold standard boundary and the boundary of the network prediction results , the process can be expressed by formula (9) and formula (10) respectively:

[0108] (9);

[0109] (10) ;

[0110] in, Indicates that the prediction and the gold standard are The maximum pooling operation of the sliding window of The value is 3.

[0111] In order to calculate the Euclidean distance from the pixel to the boundary, the maximum pooling operation is performed pixel by pixel on the boundary of the gold standard and the network prediction result, and the boundaries of the two are expanded, as shown in formula (11) and formula (12):

[0112] (11);

[0113] (12);

[0114] in, is the minimum distance between adjacent segments that is not greater than the gold standard.

[0115] Then the precision and recall are calculated respectively, as shown in formula (13) and formula (14):

[0116] (13);

[0117] (14);

[0118] in, Represents pixel-by-pixel summation.

[0119] Finally, the boundary loss function is constructed using formula (15) and formula (16): :

[0120] (15);

[0121] (16);

[0122] In order to verify the effectiveness of the method of the present invention, the task of segmenting paravascular abnormalities in retinal optical coherence tomography (OCT) images was used to verify the method.

[0123] (1) Summary

[0124] High myopia is a common ophthalmic disease that can lead to decreased or even loss of vision. Paravascular abnormalities are one of the early manifestations of high myopia, which refers to microscopic lesions around the blood vessels of the epiretinal membrane, including paravascular cysts, vascular micro-bulges, paravascular lamellar holes, and paravascular splitting. Automatic segmentation of paravascular abnormalities is very important for the prevention and treatment of high myopia. Due to the problems of small lesion area and uneven types, the automatic segmentation of paravascular abnormalities is very challenging.

[0125] (2) Dataset

[0126] The data set contains data from 78 patients. The OCT scanning modes are divided into 33 lines, 64 lines and 96 lines. The resolution includes 2048×1382 and 1981×1112. There are 3075 data with paravascular abnormalities. Due to the small amount of data, a three-fold cross-validation strategy was used for performance evaluation. Due to the small size of the lesion segmentation target, the serious imbalance of the foreground-background ratio, and the extremely unbalanced number of different lesions, the present invention first adopted two data preprocessing methods:

[0127] (a) Poisson fusion data enhancement

[0128] The core idea of ​​Poisson fusion is to let the target image "grow" a new image in the fusion part according to the guidance field of the original image, that is, to generate the fusion part according to the gradient field corresponding to the source image, so the fusion result is more natural than direct superposition. Its core mathematical idea is the Poisson partial differential equation that satisfies the Dirichlet boundary condition, which specifies the Laplace operator of the unknown function in the region of interest and gives the value of the position function on the boundary of the region.

[0129] Suppose there is a closed subregion on the two-dimensional image plane S , the boundary is , V is defined in The gradient vector field on is a scalar function defined on S, and it is known that exist The value on ,but Pick The interpolation function guided by V is the problem of finding the extreme value, as shown in formula (17):

[0130] (17);

[0131] in for The solution to the problem is constructed as Poisson's equation (18):

[0132] (18);

[0133] in is the Laplace operator, div is the divergence operator, is the Dirichlet boundary condition.

[0134] For images, the discretized form of the above formula can be expressed as formula (19):

[0135] (19);

[0136] in, is a pair of 4 adjacent pixels connected, They are The values ​​at p and q, is the vector from p to q in the vector field V, and the boundary condition becomes , ( yes value at pixel q).

[0137] Before Poisson fusion, a lesion library is established for five types of paravascular abnormal lesions in the original retinal OCT image training set, including vascular micro-bulges, paravascular cysts, paravascular lamellar holes, paravascular inner layer splitting, and paravascular outer layer splitting. By finding the bounding box of the annotated lesions, the final image patch block in the lesion library needs to be slightly larger than the external bounding box. The lesions are cropped from the original training set in the form of image patches, and the lesion patches are enhanced by flipping, scaling, etc. to enrich the diversity of the synthetic data. Background OCT images and lesion patches are randomly selected from the original training set and the lesion library. According to the different location characteristics of different lesions beside the retinal blood vessels, the coordinates of the center point of the placement area are selected, and the lesion patch blocks are cloned into the background OCT image through the Poisson fusion algorithm. This method can effectively solve the problem of extremely unbalanced numbers of different lesions in the data set, so that the number of lesions in the same image can be balanced as much as possible. The data enhancement effect is shown in the attached figure. Figure 8 and attached Fig. 9 shown.

[0138] (b) Data trimming

[0139] Paravascular abnormalities usually occur around the blood vessels of the epiretinal membrane, and the blood vessels appear as blood vessel shadows in the OCT image. Taking advantage of this feature, the OCT image is cropped into a 512×512 image patch centered on the blood vessel to reduce the impact of the background on the network segmentation performance.

[0140] When reading data, online random contrast transformation, brightness transformation and left-right flipping are used for data enhancement. Dice coefficient and sensitivity (Sensitivity, Sen) are used as segmentation evaluation indicators.

[0141] (3) Results

[0142] (a) Comparative experiment

[0143] In the comparative experiment, the method of the present invention was compared with other excellent segmentation networks based on convolutional neural networks (CNN), including UNet, ResNet, CPFNet, HRNet, MultiResUnet, and GLFRNet. As shown in Table 1, the Dice index and sensitivity of D2LFENet of the present invention are comprehensively improved compared with these networks. The Dice coefficients and average Dice coefficients of the five lesions reached 61.03%, 45.67%, 34.31%, 56.37%, 68.17% and 53.11%, respectively, while the sensitivity Sen reached 67.19%, 48.31%, 38.42%, 61.07%, 72.53% and 57.50%, respectively. Sensitivity is generally used to measure the proportion of the number of samples correctly classified as positive to all positive samples, and the Dice coefficient is also an important indicator for evaluating model performance. As can be seen from Appendix 1, the indicators of paravascular cysts and paravascular lamellar holes are lower than those of the other three categories. The reason is that the pathological characteristics of paravascular cysts and some smaller paravascular inner layer splitting are similar, and paravascular cysts are easily misclassified as paravascular inner layer splitting. Although the paravascular lamellar holes have been enhanced by Poisson fusion data, the data volume is still small after enhancement, which affects the network segmentation accuracy. Compared with other segmentation networks, traditional convolutional neural networks such as UNet and ResNet are difficult to deal with tiny lesions with complex morphological features and blurred boundaries; CPFNet proposes scale-aware pyramid fusion, using dilated convolutions with different dilation rates to fuse different scale features in pairs, and GLFRNet adds global feature reconstruction and local feature reconstruction based on the U-type network structure, but their segmentation performance on the paravascular abnormality segmentation data set is lower than that of the present invention D2LFENet. MultiResUnet uses a multi-resolution approach to replace the traditional convolution layer and uses res path to replace the traditional jump connection, but it is still a single U-type network structure and cannot cope with the joint segmentation of small targets with complex backgrounds and uneven lesions. At the same time, it can be seen from the attached table that the two offline data enhancement methods adopted by the present invention have significantly improved the automatic segmentation of paravascular abnormalities.

[0144] Appendix 1. Comparative experimental results of paravascular abnormality segmentation (the upper half of the table samples the unenhanced data set, and the lower half is the data set after using two data enhancement methods. PVM is vascular micro-bulge, PVC is paravascular cyst, PVLH is paravascular lamellar hole, IPVRS is paravascular inner layer splitting, and OPVRS is paravascular outer layer splitting).

[0145]

[0146] Attached Fig.10 The comparison of segmentation visualization results of different segmentation methods is shown. It can be seen from the figure that the D 2 LFENet is more sensitive to small objects and boundaries, can correctly identify small objects, and optimize the boundaries of prediction results.

[0147] (b) Ablation experiment

[0148] In order to verify the effectiveness of the dual decoder structure and local feature enhancement LFE module proposed in the present invention, corresponding ablation experiments were performed. As can be seen from Appendix 2, after removing the second convolution layer in the stem layer of the benchmark network HRNet, the Dice coefficient is increased by 0.21%, and the overall resolution is improved, which can effectively reduce the loss of target information. On this basis, the decoder part in HRNet is replaced with layer-by-layer upsampling in the U-shaped network structure, and the Dice coefficient is increased by 0.20%. Deconvolution is used instead of interpolation upsampling, and semantic information of different resolutions is fully utilized, and this is used as the backbone network. After adding the dual decoder structure to the backbone network, the Dice coefficient is increased by 1.25%, thanks to the network's continuous improvement of prediction details under the guidance of boundary information. At the same time, the dual decoding structure also enables the network to cope with the joint segmentation of multiple lesions. The local feature enhancement LFE module reduces the impact of deep feature internal structural noise and background noise on the target. Adding the LFE module ("backbone network + dual decoder + LFE module") to the network increases the Dice coefficient by 0.27% and the sensitivity Sen by 2.34%, which can further improve the segmentation performance.

[0149] Appendix 2. Ablation test results of each module of the method of the present invention (the backbone network is the Stem layer minus one, and HRNet using a deconvolution decoder).

[0150]

[0151] At the same time, the present invention conducts an ablation experiment on the number of patches into which the deep features are divided in the local feature enhancement LFE module. As can be seen from Appendix 3, the values ​​of k correspond to different resolution branches. For different resolutions, the deep features should be divided into different numbers of patches. In addition, the last branch of the HRNet feature encoder has a downsampling multiple of 8, and the feature size is only 16×32, so it cannot be divided too much. Therefore, for different resolutions, it is most appropriate to set k to 4, 6, 8, and 10.

[0152] Appendix 3: Ablation experiment results on the number of deep semantic feature split patch blocks in the local feature enhancement LFE module.

[0153]

[0154] Thus, a novel deep learning network D for segmentation of paravascular abnormalities in high myopia OCT images has been developed. 2 LFENet has been implemented and verified. Based on the dual decoder and local feature enhancement LFE module proposed in this invention, D 2 The LFENet network overcomes the shortcomings of the U-type network, such as the inability to jointly segment multiple types of lesions and the easy loss of deep features. 2 LFENet was comprehensively verified on a dataset of paravascular abnormalities in retinal OCT images, and the segmentation performance was good, indicating that the proposed method has good applicability in the segmentation of small objects in medical images.

[0155] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0156] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0157] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0158] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

Claims

1. A method for segmenting paravascular abnormalities based on a dual decoder and a local feature enhancement network, characterized by: include, Input the retinal optical coherence tomography (OCT) image to be detected into the pre-trained dual decoder and local feature enhancement network; The feature encoding module is used to extract features from the OCT image to be detected to obtain deep semantic features; The local feature enhancement (LFE) module is used to divide the deep semantic features into multiple patches, and the pixel representation and interactive attention representation of the patch blocks are calculated respectively, and then the deep semantic features with local feature enhancement are generated by merging. The dual decoder structure is used to extract edge features in the edge segmentation decoder branch with deep semantic features enhanced by local features, and upsample layer by layer to obtain the edge segmentation prediction image of abnormal targets beside blood vessels. The edge features are fused and upsampled with the deep semantic features enhanced by local features in the main segmentation decoder branch to obtain the segmentation prediction image of abnormal targets beside blood vessels. During the training process of the dual decoder and the local feature enhancement network, the joint segmentation loss function is used to optimize the segmentation network during the network training process to accelerate the network convergence speed; The dual decoder structure includes a main segmentation decoder branch and an edge segmentation decoder branch, both of which are input from the encoder features after the local feature enhancement LFE module. The input features of the edge segmentation decoder are first subjected to edge feature extraction to obtain F edge,i , i = 1, 2, 3, 4, the edge feature extraction operation is represented by the deep semantic feature obtained by the encoder and the local feature enhancement LFE module is f i ∈{f1,f2,f3,f4},f i Subtract f i The result of average pooling avg(f i ), and get the input edge features: in, represents 1×1 convolution, avg is the average pooling operation, F edge,i Represents edge features extracted from branches with different resolutions; In the feature fusion of the main segmentation decoder, pixel-level addition and multiplication are introduced to transform the edge feature F edge,i , edge segmentation decoder level features F obtained by level upsampling layer2,m , m = 1, 2, 3 and deep semantic features f m , m=1,2,3 fusion, get the fusion feature F fuse,m , m=1,2,3, the formula is: in, represents pixel-level multiplication, represents pixel-level addition; All decoder modules use transposed convolution instead of bilinear interpolation in the original HRNet for upsampling. For features x1 and x2 of different resolutions input to the layer, the specific operation of the layer is expressed as: F layerl,m =conv(conv(cat(conT(x1),x2))) l=1,2;m=1,2,3 where conT(·) denotes transposed convolution, cat(·) denotes concatenation operation, conv(·) denotes 3×3 convolutional layer, l=1 and l=2 denote main partition decoder branch and edge partition decoder branch, respectively.

2. The method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network according to claim 1, characterized in that: The feature encoding module uses HRNet pre-trained based on ImageNet as the backbone network, removing the second convolution layer in the stem layer. HRNet starts from a high-resolution feature and fuses the low-resolution feature with the high-resolution feature. The feature encoding module consists of 4 stages. The nth stage contains n convolution streams n=1, 2, 3, 4 for n different resolutions. Feature fusion of different resolutions is achieved by exchanging information multiple times between parallel convolution streams.

3. The method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network according to claim 2, characterized in that: The feature encoding module consists of four stages: Stage 1 is the input retinal OCT image F∈R 3×H×W , where R represents the real number domain, H and W represent the height and width of the retinal OCT image, respectively. After a convolution layer, the resolution of the input feature is downsampled to 1 / 2 of the original, and the feature C is the preset number of channels of feature F1, which is 64. The convolution layer contains a convolution with a kernel size of 3×3 and a stride of 2, batch normalization BN and activation function ReLU. The downsampled feature F1 is used as the input of stage 1, and the output feature of stage 1 is obtained through a stacking layer. C0 is the preset number of channels of feature F2, which is 256. The stacked layer contains four cascaded Bottlenecks with residual structures. Each Bottleneck contains three convolutions and an activation function ReLU to adjust the number of channels. In stage 2, the output features of stage 1 are Through a convolution layer with a convolution kernel size of 3×3 and a stride of 1, the feature The characteristics Through a convolution layer with a convolution kernel size of 3×3 and a stride of 2, the resolution is downsampled to 1 / 4 of the original feature. C1 and C2 are the preset channel numbers of F3 and F4, with values ​​of 18 and 36 respectively. and Four cascaded BasicBlocks with residual structures are used to fuse multi-scale features. Each BasicBlock contains two convolutions with a kernel size of 3×3 and an activation function ReLU. The output of each scale branch is obtained by fusion of the outputs of all branches: for the branch downsampled to 1 / 2, the feature Output and features after BasicBlock upsampling by 2 times After adding the output of BasicBlock, we get the output features of the branch with resolution downsampled to 1 / 2 in stage 2. Downsample to 1 / 4 of the branch and convert the feature Output and features after BasicBlock After BasicBlock downsamples to 1 / 2, the output is added to obtain the output features of the branch in stage 2 In stages 3 and 4, the branch output features of stage 2 are The features obtained by convolutional layer are downsampled to 1 / 8 resolution. and As the input of stage 3, after cascading BasicBlock and multi-scale feature fusion, the output of stage 3 is obtained Output features of the branch in stage 3 Then the convolutional layer is used to obtain the features with the resolution downsampled to 1 / 16. and As the input of stage 4, after cascaded BasicBlock and multi-scale feature fusion, the final output feature of the feature encoding module is and 4. The method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network according to claim 3, characterized in that: The local feature enhancement LFE module is included at the end of the feature encoder. Each branch is designed and embedded with the local feature enhancement LFE module. The local feature enhancement LFE module divides the deep semantic features into k×k patches of the same size, performs pixel representation and interactive attention representation on each patch, and then merges them into the final enhanced features. The pixel representation includes, for a given feature X∈R c×h×w , where c, h, and w represent the number of channels, height, and width of feature X, respectively. After a 3×3 convolution, normalization, and ReLU activation operation, the pixel feature is obtained. Among them, c0 is the preset number of channels of X0, which is 512. c×h×w With pixel features Reshape into two-dimensional X'∈R c×hw , X′∈R c×hw Each column in represents the value of all channels at each pixel position. Each row in represents the value of all channels at each pixel position, and the feature X'∈R c×hw Each row of Each column of It is expressed as: Among them, reshape means reshaping the feature map into two dimensions.

5. The method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network according to claim 4, characterized in that: The interactive attention representation is calculated by computing pixel features Represented with pixels The similarity matrix between them is weighted summed up according to the similarity matrix to obtain the final interactive attention representation, pixel feature After 3×3 convolution, normalization, and ReLU activation, it is reshaped into a two-dimensional feature of size hw×c1 Representing pixels After 3×3 convolution, normalization, ReLU activation and reshaping operations, a two-dimensional feature of size c1×c is obtained. X pixl After 3×3 convolution, normalization, and ReLU activation, we get a feature of size c×c1. The attention representation is calculated by calculating the two-dimensional features according to the following calculation process Where c1 is X att The preset number of channels is 256; softmax(·) is a commonly used classification function, T represents the k Matrix transpose operation of ; After convolution operation and pixel features After concatenation and random inactivation dropout operations, we get the interactive attention representation Interactive Attention Representation After 1×1 convolution, the final enhanced patch block X is obtained pcr ∈R c×h×w , the enhanced patch blocks are merged into the original feature size to obtain the deep semantic features enhanced by local features.

6. The method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network according to claim 5, characterized in that: The loss function is expressed as: During the network training process, for the main segmentation decoder branch, the cross entropy loss L is used. CE and Dice loss L Dice For supervision, for the edge segmentation decoder branch, the boundary loss L is used Boundary For supervision, the joint segmentation loss of the entire network is expressed as: L seg =L Dice +L CE +αL Boundary Among them, α represents the boundary loss L Boundary With Dice loss L Dice , cross entropy loss L CE The trade-off coefficient is 0.5; Cross entropy loss L CE It is expressed as: Where N represents the total number of pixels in the feature map, i represents the i-th pixel, i = 1, 2, 3, ..., N, K represents the number of categories of the segmented target, and y i,k represents the label of the i-th pixel in the k-th category, k = 1, 2, ..., K. Usually each pixel belongs to only one category in K, p i,k ∈[0,1] represents the model's predicted probability that pixel i belongs to category k. The softmax function is used to process the final output of the network so that the sum of the predicted probabilities of all categories is 1.

7. The method for segmenting paravascular abnormalities based on dual decoders and local feature enhancement network according to claim 6, characterized in that: The Dice loss L Dice Calculate the overlap between each category target and the gold standard respectively, and find the category average. The calculation method is expressed as: Among them, ε is a smoothing factor to prevent the numerator or denominator from being zero, and its value is 1e-6; For the boundary loss L Boundary , it is necessary to extract the boundary of the lesion and the segmentation gold standard y gt and the network prediction result y pd The maximum pooling operation of each pixel is used to extract the lesion boundary and obtain the gold standard boundary and the boundary of the network prediction results Respectively expressed as: Where pool(·,·) represents the maximum pooling operation of a sliding window of size θ0 on the prediction and the gold standard, and θ0 is 3; In order to calculate the Euclidean distance from the pixel to the boundary, the maximum pooling operation is performed pixel by pixel on the boundaries of the gold standard and the network prediction results, and the boundaries of the two are expanded, which are expressed as: Where θ is the minimum distance between adjacent segments that is not greater than the gold standard, represents the result after the gold standard boundary is expanded, Represents the result after the network prediction boundary is expanded; Then calculate the accuracy and recall respectively, the formula is expressed as: Where sum represents the pixel-by-pixel sum; P c It indicates the ratio of the number of pixels predicted correctly on the network prediction boundary to the number of pixels on all prediction boundaries, i.e., the accuracy rate; R c It is expressed as the ratio of the number of pixels correctly predicted by the network to the number of pixels in the gold standard boundary, that is, the recall rate; The boundary loss function L is constructed using the formula Boundary : in, represents the harmonic mean of precision and recall, P c Represents accuracy, R c Represents the recall rate.

8. 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 method according to any one of claims 1 to 7 are implemented.

9. 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 method according to any one of claims 1 to 7 are implemented.