OCTA image blood vessel segmentation method, device and medium based on deep convolutional neural network
Through the cascade structure and feature blocks of the deep convolutional neural network, the problem of poor blood vessel segmentation in OCTA images is solved, and efficient blood vessel information extraction on the OCTA-SS and OCTA-500 data sets is achieved, especially in microvessels. Excellent performance in segmentation.
Patent Information
- Application Number
- CN202210488808.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-05-07
AI Technical Summary
The existing technology does not perform well in retinal blood vessel segmentation in OCTA images, especially the microvessel segmentation that is broken, missing, and blurred, and the existing methods lack verification on public data sets.
A deep convolutional neural network composed of a cascade of coarse segmentation network and subdivision network is used to extract and Refine blood vessel information and achieve blood vessel segmentation.
It achieves good blood vessel segmentation results on the OCTA-SS and OCTA-500 data sets, especially in microvessel segmentation, and can extract blood vessel information completely and accurately.
Smart Images

Figure CN114881968B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical image processing, and relates to an OCTA image blood vessel segmentation method, device and medium based on a deep convolutional neural network. Background Art
[0002] In clinical practice, retinal fundus analysis can provide key information for the diagnosis of ophthalmic diseases, among which retinal blood vessel segmentation plays an important role. Accurate blood vessel segmentation can not only save ophthalmologists’ time in clinical diagnosis, but also improve the accuracy of the disease.
[0003] OCTA is an advanced ophthalmic imaging technology that detects blood cell movement in the vascular lumen by measuring the amplitude changes of OCT signals in continuous cross-sectional scans. OCTA can present a view of the vascular structure of any layer of the retina and choroid, and display vascular details at the capillary level. OCTA overcomes the shortcoming of OCT in not being able to provide good blood flow information, and has gradually become a commonly used observation tool in ophthalmic clinics. Compared with traditional fundus angiography, OCTA does not require the injection of contrast agents, is convenient and quick, and can avoid adverse reactions in patients. Therefore, OCTA has been widely used in ophthalmic clinics.
[0004] Through the investigation of retinal vascular segmentation related work, it was found that retinal vascular segmentation based on color fundus images has been studied for more than 20 years. Researchers have proposed a series of methods for vascular segmentation of color fundus images, among which deep learning-based methods such as U-Net, R2U-Net, AttU-Net, CS2-Net and Octave U-Net have achieved excellent performance. Although the field of view of color fundus images is larger than OCTA, it cannot provide detailed capillary information and is easily affected by the optic disc, macular area, light and lesions, resulting in poor vascular segmentation results.
[0005] Since OCTA imaging is a relatively new technology, there is little practice in retinal vessel segmentation in OCTA images. Currently, there are only a few methods for retinal vessel segmentation in OCTA, and most of these methods are designed for specific datasets and lack verification on other public datasets. Secondly, the topological structure of fundus vessels is multi-scale, complex and changeable. The vessels segmented by existing methods generally have different degrees of breakage, missing and blur, especially microvascular pixels. Summary of the invention
[0006] The technical problem to be solved by the present invention is to propose a vascular segmentation method for OCTA images based on a deep convolutional network in view of the shortcomings of the existing technology, which can completely and accurately extract vascular information.
[0007] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0008] A vascular segmentation method for OCTA images based on a deep convolutional neural network is disclosed. The method uses a trained vascular segmentation model to perform vascular segmentation on an en face image in an OCTA image to be segmented. The vascular segmentation model adopts a deep convolutional neural network structure, which is formed by a cascade of a coarse segmentation network and a fine segmentation network. The coarse segmentation network accepts the en face image as input to generate a preliminary vascular segmentation map. The fine segmentation network splices the original en face image and the preliminary vascular segmentation map as new input, and finally outputs a refined vascular segmentation map.
[0009] Furthermore, both the coarse-separation network and the fine-separation network are U-shaped networks composed of an encoder and a decoder; except for the first layer of the encoder, the coarse-separation network and the fine-separation network have the same structure and share weights; except for the output layer which is an octave convolution block, each layer of the network is set to an octave residual convolution block; average pooling is used between the layers of the encoder to downsample the input image step by step, and transposed octave convolution is used between the layers of the decoder for upsampling; an attention block that fuses contextual information is added between the encoder and the decoder, and a multi-scale feature block is introduced between the two-stage network.
[0010] Furthermore, the octave convolution block consists of an octave convolution of size 3×3, a BN layer, a ReLU layer and a Dropout layer; the octave residual convolution block consists of two octave convolution blocks and a skip connection for forming the residual; the skip connection uses an octave convolution of size 1×1 with a BN layer, and the skip connection is inserted after the BN layer of the second octave convolution block and before the ReLU activation.
[0011] Furthermore, the attention block between the encoder and the decoder first models the dependency between any two pixel positions in the feature map through the self-attention mechanism, and extracts contextual features including rich vascular structure information; then the extracted contextual features are fused into the channel, and the feature response in the channel direction is adaptively recalibrated by modeling the mutual dependency between channels.
[0012] Furthermore, the dependency relationship between any two pixel positions in the feature map is modeled by the self-attention mechanism, specifically including:
[0013] Step A1: The feature map F∈R output by the encoder C×H×W As the input of the attention block, it is input into the 1×3 octave convolution and 3×1 octave convolution respectively, and the output is obtained after the BN layer, ReLU layer and reshape operation in sequence. y ∈R C×N and F x ∈RC×N ; where C represents the number of channels, H and W represent the height and width of the feature map respectively, N = H × W represents the number of features, and F y 、F x Respectively represent the captured blood vessel contour features in the vertical and horizontal directions;
[0014] Step A2: F y Transpose to get exist and F x The Softmax function is used to calculate the relationship weight between any two points (x, y) in the space, that is, the attention weight, on the matrix product of
[0015]
[0016] Step A3: Transform the feature map F∈R C×H×W Input 1×1 octave convolution, and then go through BN layer, ReLU layer and reshape operation to get feature map F v ∈R C×N ; F v And the attention weight matrix σ calculated in step A2 s ∈R N×N Multiply to obtain the enhanced feature F′∈R C×N , and reshape to get the feature map F′∈R C×H×W ; Perform element-by-element addition operation on F and F′ to obtain feature map F s ∈R C×H×W , F s The global contextual information is aggregated, including rich vascular structure information.
[0017] Furthermore, the interdependence between modeling channels specifically includes:
[0018] Step B1: Extract feature map F through global average pooling and global maximum pooling operations respectively s ∈R C×H×W The spatial information F ap ∈R C×1×1 and F mp ∈R C×1×1 ; F s is a feature map of context features including rich vascular structure information;
[0019] Step B2: F ap and F mp The input is fed into a weight-shared 1×1 octave convolution block, and the output of the convolution block is added element by element in the channel dimension to fuse the features of each channel. Finally, the weighted response σ of each channel is calculated by the Softmax function. c ∈RC×1×1 :
[0020] σ c =σ{OctConv1(F ap )+OctConv1(F mp )}
[0021] Where OctConv1(·) represents a convolutional block consisting of an octave convolution of size 1×1, a BN layer, and a ReLU layer; σ represents the Softmax activation function;
[0022] Step B3: The feature map F∈R of the original input of the attention block C×H×W , and the weight matrix σ calculated in step B2 c Multiply to obtain the enhanced feature F″∈R C×H×W , add F and F″ element by element to get the final output feature map F of the attention block c ∈R C×H×W .
[0023] Furthermore, the steps of constructing the multi-scale feature block are as follows:
[0024] Step C1: For the x-th multi-scale feature block, first obtain the rich low-level semantic features of different scales extracted by the coarse network encoder
[0025]
[0026] where x∈[1, 4], y∈[x+1, 5], represents the feature map of the yth layer output of the coarse-grained network encoder, Upsample(·) represents the upsampling operation, and OctConv1(·) represents the octave convolution of size 1×1;
[0027] Step C2: Feature maps corresponding to the layers of the segmentation network encoder Perform element-wise multiplication and add the result to Add together to get the feature F that integrates information of different scales out , which is the output of the x-th multi-scale feature block:
[0028]
[0029] in represents the feature map output by the x-th layer of the segmentation network encoder, + and * represent element-by-element addition and multiplication operations, respectively, and σ is the Softmax activation function;
[0030] Step C3: Output the feature map F of the x-th multi-scale feature block out, through skip connections, it splices the input feature map of the segmentation network decoder to promote the deep fusion of semantic features of different scales.
[0031] Furthermore, the loss function of the blood vessel segmentation model obtained by training the deep convolutional neural network is:
[0032]
[0033] Among them, λ is a hyperparameter responsible for balancing the weight proportion of the loss function terms of the coarse-scale network and the fine-scale network; L c and L r They represent the loss function terms of the coarse-scale network and the fine-scale network, respectively, both of which are based on the mean square error loss function L mse and Dice loss function L dice The joint loss function of L c and L r Unified as L, then:
[0034] L=L mse +L dice
[0035]
[0036]
[0037] Among them, M represents the number of pixels in the en face image, g i ∈[0, 1], p i ∈{0, 1} represents the label value and predicted value of the i-th pixel respectively; ε is the Laplace smoothing factor.
[0038] An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the OCTA image blood vessel segmentation method based on a deep convolutional neural network as described in any of the above technical solutions.
[0039] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the OCTA image blood vessel segmentation method based on a deep convolutional neural network described in any of the above technical solutions is implemented.
[0040] Beneficial Effects
[0041] The present invention is used to perform vascular segmentation on the en face image in the OCTA image to be segmented using a trained vascular segmentation model, wherein the vascular segmentation model adopts a deep convolutional neural network structure, which is composed of a coarse-segmentation network and a fine-segmentation network cascaded, the former generates a preliminary vascular segmentation map, and the latter further refines and outputs a fine vascular segmentation result, and the two-level network structure is the same and the weights are shared. The skeleton network adopts a U-shaped structure and is designed based on an octave residual convolution block to extract multi-frequency information of the image. Secondly, in order to better describe the microvascular features, an attention block that fuses contextual information is designed and introduced between the encoder and decoder of the network. Finally, a multi-scale feature block is introduced between the two-level network to promote the deep fusion of semantic features of different scales. The experimental results on two public data sets, OCTA-SS and OCTA-500, show that the present invention has a good vascular segmentation effect, can completely and accurately extract vascular information, and is particularly excellent in the segmentation of fine blood vessels. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a structural diagram of the deep convolutional neural network OVS-Net of the present invention.
[0043] Figure 2 It is a structural diagram of the octave convolution block and the octave residual convolution block of the present invention.
[0044] Figure 3 Schematic diagram of the attention block for integrating contextual information of the present invention.
[0045] Figure 4 It is a schematic diagram of the multi-scale feature block of the present invention.
[0046] Figure 5 It is a schematic diagram of the OVS-Net network training process of the present invention.
[0047] Figure 6 This is a comparison diagram of the vascular segmentation visualization results of the OCTA-SS dataset of the present invention.
[0048] Figure 7 This is a comparison chart of the OCTA-500 data set blood vessel segmentation visualization results of the present invention. DETAILED DESCRIPTION
[0049] The following is a detailed description of an embodiment of the present invention. This embodiment is based on the technical solution of the present invention, and provides a detailed implementation method and a specific operation process to further explain the technical solution of the present invention.
[0050] The model for vascular segmentation in this embodiment is constructed by a deep neural network composed of a cascade of a coarse-division network and a fine-division network and trained using training samples. The deep neural network constructed in this embodiment is recorded as an OVS-Net network structure. Among them, the coarse-division network generates a preliminary vascular segmentation map, and the fine-division network further refines and outputs a fine vascular segmentation result. The two-level network structure is the same and the weights are shared. Both the coarse-division network and the fine-division network adopt a U-shaped structure, which is designed based on the octave residual convolution block to extract multi-frequency information of the image. Secondly, in order to better describe the microvascular features, an attention block that integrates contextual information is designed and introduced between the encoder and decoder of the network. Finally, a multi-scale feature block is introduced between the two-level network to promote the deep fusion of semantic features of different scales. The experimental results on two public data sets, OCTA-SS and OCTA-500, show that the present invention achieves highly competitive vascular segmentation results, especially in microvascular segmentation.
[0051] The OCTA image blood vessel segmentation method based on a deep convolutional neural network provided in this embodiment includes the following steps:
[0052] Step 1: Select the public datasets OCTA-SS and OCTA-500 and divide them into training set, validation set and test set. For the dataset OCTA-SS, it is divided into training set (NO.1-NO.35), validation set (NO.46-NO.55), and test set (NO.36-NO.45). The dataset OCTA-500 contains two sub-datasets, namely OCTA_6M and OCTA_3M. The maximum projection image between the inner limiting membrane and the outer plexiform layer given in the OCTA-500 dataset is selected, which can clearly show the vascular morphology of the inner retina. OCTA_6M is divided into training set (NO.10001-NO.10180), validation set (NO.10181-NO.10200), and test set (NO.10201-NO.10300); OCTA_3M is divided into training set (NO.10301-NO.10440), validation set (NO.10441-NO.10450), and test set (NO.10451-NO.10500).
[0053] Step 2: Construct a deep convolutional neural network model OVS-Net for OCTA vessel segmentation (such as Figure 1 shown):
[0054] (1) A five-layer U-shaped skeleton network is constructed based on octave convolution blocks and octave residual convolution blocks.
[0055] like Figure 2As shown in the figure, the octave convolution block consists of an octave convolution (OctConv) of size 3×3, a BN layer, a ReLU layer, and a Dropout layer. The octave residual convolution block consists of two octave convolution blocks and a skip connection for forming the residual. The skip connection uses an octave convolution of size 1×1 with a BN layer to ensure that the channel dimensions of the input features and output features are consistent. The skip connection is inserted after the BN layer of the second octave convolution block and before the ReLU activation.
[0056] (2) Design an attention block that integrates contextual information and introduces it between the encoder and decoder of the U-shaped network to weaken the influence of noise and encourage the network to pay more attention to the vascular structure in the image. Figure 3 shown.
[0057] The attention module first models the dependency between any two pixel positions in the feature map through the self-attention mechanism, and extracts contextual features including rich vascular structure information:
[0058] refer to Figure 3 As shown in the lower left area, first the feature map F∈R C×H×W The input is respectively into the 1×3 octave convolution and the 3×1 octave convolution, and the output is obtained after the BN layer, ReLU layer and reshape operation. y ∈R C×N and F x ∈R C×N Where C represents the number of channels, H and W represent the height and width of the feature map respectively, N = H × W represents the number of features, and F y 、F x Represent the captured blood vessel contour features in the vertical and horizontal directions respectively.
[0059] F y Transpose to get exist and F x The Softmax function is used to calculate the relationship weight between any two points (x, y) in space on the matrix product of:
[0060]
[0061] The feature map F∈R C×H×W Input 1×1 octave convolution, and then go through BN layer, ReLU layer and reshape operation to get feature map F v ∈R C×N . v and the attention weight matrix σ s ∈R N×N Multiply to obtain the enhanced feature F′∈R C×N, and reshape to get F′∈R C×H×W Perform element-by-element addition on F and F′ to obtain the feature map F s ∈R C×H×W , F s The global contextual information is aggregated, including rich vascular structure information.
[0062] The extracted contextual features are then fused into channels to adaptively recalibrate the feature responses in the channel direction by modeling the inter-channel dependencies:
[0063] refer to Figure 3 As shown in the lower right area, the feature map F is extracted through global average pooling and global maximum pooling operations. s ∈R C×H×W The spatial information F ap ∈R C×1×1 and F mp ∈R C×1×1 The global average pooling and global maximum pooling operation formulas are:
[0064]
[0065] Among them, 0<c<C, 0<h<H, 0<w<W; and Represents F ap and F mp Eigenvalue at channel c.
[0066] F ap and F mp The input is fed into a weight-shared 1×1 octave convolution block, and the output of the convolution block is added element by element in the channel dimension to fuse the features of each channel. Finally, the weighted response σ of each channel is calculated by the Softmax function. c ∈R C×1×1 .
[0067] σ c =σ{OctConv1(F ap )+OctConv1(F mp )}
[0068] Where OctConv1(·) represents a convolutional block consisting of an octave convolution of size 1×1, a BN layer, and a ReLU layer. σ represents the Softmax activation function.
[0069] The original input feature F∈R C×H×W and the weight matrix σ calculated in step 5 c Multiply to obtain the enhanced feature F″∈R C×H×W . Add F and F″ element by element to get the final output Fc ∈R C×H×W . F c It not only aggregates rich global contextual information, but also highlights vascular pixels, suppresses the influence of irrelevant background pixels and noise, and enables the network to better extract vascular structures.
[0070] (3) According to step (1), two five-layer U-shaped networks are constructed in cascade. The resulting two networks are named coarse segmentation network and fine segmentation network. Except for the first layer of the encoder, the two networks have the same structure and share weights. The coarse segmentation network accepts the en face image as input and generates a preliminary vascular segmentation map. The fine segmentation network splices the original en face image and the preliminary vascular segmentation map as new input and finally outputs the refined vascular segmentation map.
[0071] In the coarse-separation network and the fine-separation network, except for the output layer which is an octave convolution block, each layer of the network is set as an octave residual convolution block. Average pooling is used between encoders to downsample the input image step by step, and transposed octave convolution is used between decoders for upsampling.
[0072] (4) Design multi-scale feature blocks, such as Figure 4 As shown in the figure, it is introduced between the two-level networks to promote the deep fusion of semantic features of different scales, further enhancing the network's blood vessel extraction ability while also promoting the gradient backpropagation, making the network easier to train.
[0073] For the x-th multi-scale feature block, first obtain the rich low-level semantic features of different scales extracted by the coarse network encoder
[0074]
[0075] where x∈[1, 4], y∈[x+1, 5], represents the feature map of the yth layer output of the coarse-grained network encoder, Upsample(·) represents the upsampling operation, and OctConv1(·) represents the octave convolution of size 1×1;
[0076] Then Feature maps corresponding to the layers of the segmentation network encoder Perform element-wise multiplication and add the result to Add the feature F that integrates information of different scales out , which is the output of the x-th multi-scale feature block:
[0077]
[0078] in represents the feature map output by the x-th layer of the segmentation network encoder, + and * represent element-by-element addition and multiplication operations, respectively, and σ is the Softmax activation function;
[0079] Finally, the feature map F output by the x-th multi-scale feature block out , through skip connections, it splices the input feature map of the segmentation network decoder to promote the deep fusion of semantic features of different scales.
[0080] Step 3: Construct model loss function
[0081]
[0082] Among them, λ is a hyperparameter responsible for balancing the weight ratio of the loss function terms of the coarse-scale network and the fine-scale network. The experiment is set to L c and L r They represent the loss function terms of the coarse-scale network and the fine-scale network, respectively, both of which are based on the mean square error loss function L mse and Dice loss function L dice The joint loss function is:
[0083] L=L mse +L dice
[0084]
[0085]
[0086] Among them, M represents the number of pixels in the en face image, g i ∈[0, 1], p i ∈{0, 1} represents the label value and predicted value of the i-th pixel respectively. In order to avoid numerical instability and accelerate the convergence of loss, a Laplace smoothing factor ε is added to the Dice loss function and ε is set to 1.0.
[0087] Step 4: The training set obtained in step 1 is input into OVS-Net in batches for training to obtain a blood vessel segmentation model. The training process is as follows: Figure 5 shown.
[0088] The experiment is based on the Pytorch deep learning framework, and the training is carried out in parallel using two NVIDIA Titan XP graphics cards for GPU acceleration. The Adam optimizer with weight_decay of 0.0005 is used, the initial learning rate is set to 0.0001, and the Poly learning rate decay strategy with power of 0.9 is adopted. The number of epochs for OCTA-SS training is 300, and the number of epochs for OCTA_500 training is 1000. The batch size of both datasets is set to 8. During the experiment, each epoch is verified on the validation set, and the loss function value on the validation set is saved. The smallest model.
[0089] Step 5: Use the test set image as the en face image in the OCTA image to be segmented, and input it into the above-trained vascular segmentation model to obtain the vascular segmentation result.
[0090] The Dice coefficient, Jaccard similarity coefficient, balanced accuracy, and recall rate obtained by evaluating the model on the OCTA-SS test set were 90.50%, 82.67%, 92.08%, and 93.88%, respectively. The Dice coefficient, Jaccard similarity coefficient, balanced accuracy, and recall rate obtained by evaluating the model on the OCTA_6M test set were 85.93%, 75.46%, 95.58%, and 93.62%, respectively. The Dice coefficient, Jaccard similarity coefficient, balanced accuracy, and recall rate obtained by evaluating the model on the OCTA_3M test set were 87.66%, 78.11%, 97.62%, and 96.97%, respectively.
[0091] Figure 6 The following is a comparison of the visualization results of the blood vessel segmentation performed by the present invention and the comparative method on the OCTA-SS dataset. It can be seen that the blood vessels segmented by the comparative method all have pixel omissions, blurring and breakage. Compared with these methods, the present invention successfully extracts microvessels and the segmented blood vessels have good continuity and integrity.
[0092] Figure 7 This is a comparison chart of the visualization results of the blood vessel segmentation performed on the OCTA-500 dataset by the present invention and the comparative method. It can be seen that the comparative method has incomplete blood vessel extraction, while the blood vessels segmented by the present invention have clear blood vessel contours, good blood vessel connectivity, and better blood vessel extraction capabilities, achieving results that are basically consistent with the gold standard.
[0093] In summary, the OCTA vessel segmentation method based on deep convolutional neural network proposed in the present invention has good vessel segmentation effect and can extract vessel information completely and accurately, especially in the segmentation of fine blood vessels.
[0094] The above embodiments are preferred embodiments of the present application. Ordinary technicians in this field can also make various changes or improvements on this basis. Without departing from the overall concept of the present application, these changes or improvements should fall within the scope of protection required by the present application.
Claims
1. A vascular segmentation method for OCTA images based on deep convolutional neural network, characterized in that: For the enface image in the OCTA image to be segmented, the trained vascular segmentation model is used to perform vascular segmentation; wherein the vascular segmentation model adopts a deep convolutional neural network structure, which is composed of a coarse segmentation network and a fine segmentation network cascaded; the coarse segmentation network accepts the enface image as input and generates a preliminary vascular segmentation map; the fine segmentation network splices the original enface image and the preliminary vascular segmentation map as new input, and finally outputs a refined vascular segmentation map; The coarse-division network and the fine-division network are both U-shaped networks composed of an encoder and a decoder; except for the first layer of the encoder, the coarse-division network and the fine-division network have the same structure and share weights; except for the output layer which is an octave convolution block, each layer of the network is set to an octave residual convolution block; average pooling is used between the layers of the encoder to downsample the input image step by step, and transposed octave convolution is used between the layers of the decoder to upsample; an attention block that fuses contextual information is added between the encoder and the decoder, and a multi-scale feature block is introduced between the two-level networks; The loss function of the blood vessel segmentation model obtained by training the deep convolutional neural network is: Among them, λ is a hyperparameter responsible for balancing the weight proportion of the loss function terms of the coarse-scale network and the fine-scale network; L c and L r They represent the loss function terms of the coarse-scale network and the fine-scale network, respectively, both of which are based on the mean square error loss function L mse and Dice loss function L dice The joint loss function of L c and L r Unified as L, then: L=L mse +L dice Among them, M represents the number of pixels in the en face image, g i ∈[0,1], p i ∈{0,1} represents the label value and predicted value of the i-th pixel respectively; ε is the Laplace smoothing factor.
2. The OCTA image blood vessel segmentation method based on deep convolutional neural network according to claim 1, characterized in that: The octave convolution block consists of an octave convolution of size 3×3, a BN layer, a ReLU layer, and a Dropout layer; the octave residual convolution block consists of two octave convolution blocks and a skip connection for forming the residual; the skip connection uses an octave convolution of size 1×1 with a BN layer, and the skip connection is inserted after the BN layer of the second octave convolution block and before the ReLU activation.
3. The OCTA image blood vessel segmentation method based on deep convolutional neural network according to claim 1, characterized in that: The attention block between the encoder and decoder first models the dependency between any two pixel positions in the feature map through the self-attention mechanism, extracting contextual features including rich vascular structure information; The extracted contextual features are then fused into channels to adaptively recalibrate the feature responses in the channel direction by modeling the inter-channel dependencies.
4. The OCTA image blood vessel segmentation method based on deep convolutional neural network according to claim 3, characterized in that: The method of modeling the dependency relationship between any two pixel positions in the feature map by the self-attention mechanism specifically includes: Step A1: The feature map F∈R output by the encoder C×H×W As the input of the attention block, it is input into the 1×3 octave convolution and 3×1 octave convolution respectively, and the output is obtained after the BN layer, ReLU layer and reshape operation in sequence. y ∈R C×N and F x ∈R C×N ; where C represents the number of channels, H and W represent the height and width of the feature map respectively, N = H × W represents the number of features, and F y 、F x Respectively represent the captured blood vessel contour features in the vertical and horizontal directions; Step A2: F y Transpose to get exist and F x The Softmax function is used to calculate the relationship weight between any two points (x, y) in the space, that is, the attention weight, on the matrix product of: Step A3: Transform the feature map F∈R C×H×W Input 1×1 octave convolution, and then go through BN layer, ReLU layer and reshape operation to get feature map F v ∈R C×N ; F v And the attention weight matrix σ calculated in step A2 s ∈R N×N Multiply to obtain the enhanced feature F'∈R C×N , and reshape to get the feature map F'∈R C×H×W ; Perform element-by-element addition operation on F and F' to obtain feature map F s ∈R C×H×W , F s The global contextual information is aggregated, including rich vascular structure information.
5. The OCTA image blood vessel segmentation method based on deep convolutional neural network according to claim 3, characterized in that: The interdependence between modeling channels specifically includes: Step B1: Extract feature map F through global average pooling and global maximum pooling operations respectively s ∈R C×H×W The spatial information F ap ∈R C×1×1 and F mp ∈R C×1×1 ; F S is a feature map of context features including rich vascular structure information; Step B2: F ap and F mp The input is fed into a weight-shared 1×1 octave convolution block, and the output of the convolution block is added element by element in the channel dimension to fuse the features of each channel. Finally, the weighted response σ of each channel is calculated by the Softmax function. c ∈R C×1×1 : σ c =σ{OctConv1(F ap )+OctConv1(F mp )} Where OctConv1(·) represents a convolutional block consisting of an octave convolution of size 1×1, a BN layer, and a ReLU layer; σ represents the Softmax activation function; Step B3: The feature map F∈R of the original input of the attention block C×H×W , and the weight matrix σ calculated in step B2 c Multiply to obtain the enhanced feature F”∈R C×H×W , add F and F' element by element to get the final output feature map F of the attention block c ∈R C ×H×W .
6. The OCTA image blood vessel segmentation method based on deep convolutional neural network according to claim 1, characterized in that: The steps for constructing a multi-scale feature block are as follows: Step C1: For the x-th multi-scale feature block, first obtain the rich low-level semantic features of different scales extracted by the coarse network encoder where x∈[1,4], y∈[x+1,5], represents the feature map of the yth layer output of the coarse-grained network encoder, Upsample(·) represents the upsampling operation, and OctConv1(·) represents the octave convolution of size 1×1; Step C2: Feature maps of the layers corresponding to the segmentation network encoder Perform element-by-element multiplication and add the result to Add together to get the feature F that integrates information of different scales out , which is the output of the x-th multi-scale feature block: in represents the feature map output by the x-th layer of the segmentation network encoder, + and * represent element-by-element addition and multiplication operations, respectively, and σ is the Softmax activation function; Step C3: Output the feature map F of the x-th multi-scale feature block out , through skip connections, it splices the input feature map of the segmentation network decoder to promote the deep fusion of semantic features of different scales.
7. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to implement the method according to any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
