Retinal fundus image artery and vein classification method and system and electronic equipment

By introducing an explicit edge guidance mechanism and long-distance spatial dependence modeling into retinal fundus image classification, the problems of edge distortion and lack of contextual information in the existing technology are solved, and fine segmentation and accurate classification of retinal fundus images are achieved.

CN118644887APending Publication Date: 2024-09-13BEIJING ZHIZHEN MINGDA MEDICAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410813645.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing technologies have problems with edge distortion and lack of long-distance context information in the classification of arteriovenous vessels in retinal fundus images, resulting in low classification accuracy. It is especially difficult to achieve accurate results for complex scenes and fine blood vessel segmentation.

Method used

An arteriovenous blood vessel classification model based on an explicit edge guidance mechanism is adopted, including a feature extraction backbone network, a multi-level edge guidance mechanism module, a long-distance spatial dependence modeling module and a boundary-guided spatial dependence aggregation module, with manually annotated vessel edges as supervision signal, enhance the model's perception of vessel edges, and aggregate long-distance contextual information to improve classification accuracy.

Benefits of technology

It achieves fine segmentation and accurate classification of retinal fundus images, enhances the semantic consistency and inter-class distinction of blood vessel segments, reduces misclassification, and improves the accuracy of segmentation results of arteriovenous blood vessels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644887A
    Figure CN118644887A
Patent Text Reader

Abstract

The invention discloses a retina fundus image arteriovenous classification method and system and electronic equipment, and relates to the field of image processing, and the method comprises the steps: constructing an arteriovenous blood vessel classification model based on an explicit edge guiding mechanism on the basis of an arteriovenous blood vessel classification network structure; the arteriovenous blood vessel classification model comprises a feature extraction backbone network, a multi-stage edge guidance mechanism module, a feature extraction module, a long-distance spatial dependence modeling module, a channel connection module and a boundary guidance spatial dependence aggregation module. Acquiring a sample data set; the sample data set comprises fundus retina images and corresponding arteriovenous pixel-level labels; training an arteriovenous blood vessel classification model by using the sample data set to obtain a trained arteriovenous blood vessel classification model; and performing arteriovenous classification on a to-be-classified retina fundus image by using the trained arteriovenous blood vessel classification model. Fine segmentation and accurate classification of fundus blood vessels can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a method, system and electronic equipment for classifying arteries and veins in retinal fundus images. Background Art

[0002] For the problem of arteriovenous classification in fundus images, traditional methods rely on artificially designed features such as grayscale and gradient to classify arteries / veins. Vessels are extracted manually by experts or using semi-automatic software, and then vessel segments are manually selected to calculate the diameter and diameter ratio. The above methods rely on fundus image arteriovenous classification methods with artificially designed features, which are difficult to handle complex and changeable application scenarios in actual applications. In addition, this type of workflow is inefficient and depends on the experience level of practitioners.

[0003] In addition, in the process of retinal artery and vein segmentation, it is necessary to consider both the main vessels with larger diameter and the capillaries with smaller diameter. However, there are significant differences in the characteristics of the main vessels and capillaries, which will increase the intra-class difference but reduce the inter-class difference, thereby greatly reducing the accuracy of arteriovenous segmentation. Retinal blood vessels are generally thin. For existing deep learning-based methods, the pixels inside the blood vessels can be well segmented, but the pixels at the edges of the blood vessels are easily misclassified. Therefore, it is not difficult to produce segmentation results with critical boundary distortion, which seriously hinders the application of downstream tasks. For example, the calculation of the arteriovenous diameter ratio is highly dependent on the accurate measurement of the blood vessel diameter. The retinal blood vessels in the fundus image are usually composed of several blood vessel segments. At the same time, there are often intersections between arteries and veins. Since the existing deep learning model is designed in a local receptive field manner, it is easy to cause misclassification when multiple blood vessel segments are classified into arteries and veins, which brings great challenges to maintaining the semantic consistency of classification of a single arterial or venous blood vessel segment.

[0004] Moreover, the existing arteriovenous classification methods based on the "encoder-decoder" deep neural network represented by U-Net lack a special processing mechanism for the edge areas of the blood vessels, resulting in rough edge areas of the arteriovenous segmentation results; and due to the lack of long-distance contextual information modeling, the same long blood vessel is easily misclassified as an artery or vein.

[0005] Therefore, there is an urgent need to provide a new method or system for classifying arteries and veins in retinal fundus images to obtain accurate arteriovenous classification results in retinal fundus images. Summary of the invention

[0006] The purpose of the present invention is to provide a method, system and electronic equipment for classifying arteries and veins in retinal fundus images, which can achieve fine segmentation and accurate classification of fundus blood vessels.

[0007] To achieve the above object, the present invention provides the following solutions:

[0008] A method for classifying arteries and veins of retinal fundus images, comprising:

[0009] Based on the arteriovenous classification network structure, an arteriovenous classification model is constructed based on an explicit edge-guided mechanism; the arteriovenous classification model includes: a feature extraction backbone network, a multi-level edge-guided mechanism module, a feature extraction module, a long-distance spatial dependency modeling module, a channel connection module, and a boundary-guided spatial dependency aggregation module; the feature extraction backbone network is used to extract multidimensional features of different scales; the multi-level edge-guided mechanism module is used to use the extracted vascular edges as additional supervisory signals in the artery / venous segmentation learning process based on manually annotated retinal vascular segmentation masks; the feature extraction module is used to determine feature weights and multi-dimensional features of different scales in the multi-level edge-guided loss function in the multi-level edge-guided mechanism module to determine features with vascular boundary retention capabilities; the channel connection module is used to perform channel fusion on features with vascular boundary retention capabilities to obtain boundary-aware features; the long-distance spatial dependency modeling module is used to aggregate long-distance contextual information along channel and spatial dimensions to form long-distance spatial semantic dependency relationships in fundus images; the boundary-guided spatial dependency aggregation module is used to re-aggregate vascular features and boundary features with features output by the channel connection module and features output by the long-distance spatial dependency modeling module;

[0010] Acquire a sample data set; the sample data set includes: fundus retinal images and corresponding arteriovenous pixel-level labels;

[0011] Using the sample data set to train the arteriovenous classification model, a trained arteriovenous classification model is obtained;

[0012] The trained arteriovenous classification model is used to classify the arteries and veins of the retinal fundus images to be classified.

[0013] Optionally, the multi-level edge guidance mechanism module specifically includes:

[0014] The blood vessel boundary is determined using the formula Label[Label>0]=255 and the formula Edge_Label=Edge(Label);

[0015] Among them, Label is the pixel-level label of artery and vein, Label∈R H×W , H, W, C represent the height, width and number of channels of the image respectively, Edge_Label is the blood vessel boundary, Edge_Label∈R H×W, Label[Label>0]=255 means that the pixel values ​​in Label that are greater than 0 are uniformly set to 255, the pixel values ​​of blood vessel arteries and veins are set to 255, and Edge() represents the edge extraction function.

[0016] Optionally, the extraction process of the feature extraction backbone network is:

[0017] The input retinal image I is sequentially passed through the stacked convolutional layer, Relu function activation layer, pooling layer, and batch normalization layer in the feature extraction backbone network to extract multi-dimensional features F1, feature F2, feature F3, and feature F4 of different scales;

[0018] In the process of generating features F1, F2, F3 and F4, the downsampling rate is maintained at 2 times.

[0019] Optionally, the extraction process of the long-distance spatial dependency modeling module is:

[0020] Feature F4 is convolved through two convolutional layers to obtain the key features K∈R after convolution. H×W×C And index features The width W, height H, and number of channels C of the key feature K remain unchanged, the width W and height H of the index feature Q remain unchanged, but the number of channels becomes s 2 ;

[0021] Transform the key feature K into (H×W)×C and the index feature Q into (H×W)×s 2 , respectively obtain the features K' and Q'; then, perform matrix multiplication to obtain the feature S';

[0022] Transform S' into a matrix of size s×s×C, and perform a depth-separable convolution operation with feature F4 to obtain a weight factor matrix M with global context information H×W×C ;

[0023] Combine feature F4 with the matrix weight factor matrix M H×W×C Add the elements at the corresponding coordinates to obtain the feature output M'∈R of the long-distance spatial dependency modeling module H×W×C .

[0024] Optionally, the process of the feature extraction module is:

[0025] The features F1, F2, F3 and F4 are respectively subjected to convolution, Relu activation function, pooling and batch normalization operations in the feature extraction module to obtain the features E1, E2, E3 and E4 with the ability to retain blood vessel boundaries; the sizes of the features E1, E2, E3 and E4 are 2 times down-sampled; the size of the feature E1 is 2 times that of the feature E2, the size of the feature E1 is 4 times that of the feature E3, and the size of the feature E1 is 8 times that of the feature E4.

[0026] A retinal fundus image artery and vein classification system, comprising:

[0027] An arteriovenous classification model construction unit is used to construct an arteriovenous classification model based on an explicit edge-guided mechanism on the basis of an arteriovenous classification network structure; the arteriovenous classification model includes: a feature extraction backbone network, a multi-level edge-guided mechanism module, a feature extraction module, a long-distance spatial dependency modeling module, a channel connection module, and a boundary-guided spatial dependency aggregation module; the feature extraction backbone network is used to extract multidimensional features of different scales; the multi-level edge-guided mechanism module is used to use the extracted blood vessel edges as additional supervisory signals in the artery / vein segmentation learning process based on manually annotated retinal blood vessel segmentation masks; the feature extraction module is used to determine feature weights and multi-dimensional features of different scales in the multi-level edge-guided mechanism module to determine features with blood vessel boundary retention capabilities; the channel connection module is used to perform channel fusion on features with blood vessel boundary retention capabilities to obtain boundary-aware features; the long-distance spatial dependency modeling module is used to aggregate long-distance contextual information along channel and spatial dimensions to form long-distance spatial semantic dependency relationships in fundus images; the boundary-guided spatial dependency aggregation module is used to re-aggregate blood vessel features and boundary features with features output by the channel connection module and features output by the long-distance spatial dependency modeling module;

[0028] A sample data set acquisition unit is used to acquire a sample data set; the sample data set includes: fundus retinal images and corresponding arteriovenous pixel-level labels;

[0029] A model training unit is used to train an arteriovenous classification model using a sample data set to obtain a trained arteriovenous classification model;

[0030] The arteriovenous classification unit is used to classify the arteries and veins of the retinal fundus image to be classified using the trained arteriovenous classification model.

[0031] An electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute a method for classifying arteries and veins of retinal fundus images.

[0032] Optionally, the memory is a computer-readable storage medium.

[0033] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0034] The present invention provides a method, system and electronic device for classifying arteries and veins in retinal fundus images. Based on the network structure of arteriovenous vessel classification, an arteriovenous vessel classification model is constructed based on an explicit edge guidance mechanism; wherein, the multi-level edge guidance mechanism module explicitly uses the extracted vessel edge as an additional supervisory signal in the process of artery / vein segmentation learning based on the manually annotated retinal vessel segmentation mask. During the training of the segmentation model, the retinal vessel edge supervision information is introduced into the multi-level feature learning process, so that the model can more accurately distinguish the pixels near the edge while focusing on the internal pixels of the vessel. Through this explicit supervision method, the perception ability of the model to learn multi-level edge features can be effectively enhanced. The long-distance spatial dependency modeling module aggregates long-distance context information along the channel and spatial dimensions to form a long-distance spatial semantic dependency relationship in the fundus image. The inter-class distinguishability and intra-class aggregation of arteries and veins can be enhanced, and the misclassified vessel segments can be effectively corrected through the aggregated long-distance dependency relationship to generate a semantically consistent vessel segmentation result. Based on the existing network structure of arteriovenous vessel classification, this patent uses an explicit edge guidance mechanism to achieve fine segmentation and accurate classification of fundus vessels. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 A schematic diagram of a flow chart of a method for classifying arteries and veins in retinal fundus images provided by the present invention;

[0037] Figure 2 This is a schematic diagram of the structure of the arteriovenous classification model;

[0038] Figure 3 Schematic diagram of the module structure for modeling long-range spatial dependencies;

[0039] Figure 4 Schematic diagram of the boundary-guided spatial dependency aggregation module structure;

[0040] Figure 5 Schematic diagram for comparison of arteriovenous classification. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The purpose of the present invention is to provide a method, system and electronic equipment for classifying arteries and veins in retinal fundus images, which can achieve fine segmentation and accurate classification of fundus blood vessels.

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] like Figure 1 As shown, the present invention provides a method for classifying arteries and veins in retinal fundus images, comprising:

[0045] S101, based on the arteriovenous classification network structure, an arteriovenous classification model is constructed based on an explicit edge-guided mechanism, and Figure 2 As shown; the arteriovenous classification model includes: a feature extraction backbone network, a multi-level edge guidance mechanism module, a feature extraction module, a long-distance spatial dependency modeling module, a channel connection module and a boundary-guided spatial dependency aggregation module; the feature extraction backbone network is used to extract multi-dimensional features of different scales; the multi-level edge guidance mechanism module is used to extract the extracted blood vessel edges as additional supervisory signals in the artery / vein segmentation learning process based on the manually labeled retinal blood vessel segmentation mask; the feature extraction module is used to determine the feature weights and the multi-dimensional features of different scales according to the multi-level boundary guidance loss function in the multi-level edge guidance mechanism module to determine the features with blood vessel boundary retention capabilities; the channel connection module is used to perform channel fusion on the features with blood vessel boundary retention capabilities to obtain boundary perception features; the long-distance spatial dependency modeling module is used to aggregate long-distance contextual information along the channel and spatial dimensions to form long-distance spatial semantic dependency relationships in the fundus image; the boundary-guided spatial dependency aggregation module is used to re-aggregate the features output by the channel connection module and the features output by the long-distance spatial dependency modeling module to perform blood vessel features and boundary features;

[0046] The multi-level edge guidance mechanism module specifically includes:

[0047] The blood vessel boundary is determined using the formula Label[Label>0]=255 and the formula Edge_Label=Edge(Label);

[0048] Among them, Label is the pixel-level label of artery and vein, Label∈R H×W , H, W, C represent the height, width and number of channels of the image respectively, Edge_Label is the blood vessel boundary, Edge_Label∈R H×W , Label[Label>0]=255 means that the pixel values ​​in Label that are greater than 0 are uniformly set to 255, and the pixel values ​​of blood vessel arteries and veins are set to 255. Edge() represents the edge extraction function. The edge extraction function includes but is not limited to ResNet50 and ResNet101.

[0049] The extraction process of the feature extraction backbone network is as follows:

[0050] The input retinal image I is sequentially passed through the stacked convolutional layer, Relu function activation layer, pooling layer, and batch normalization layer in the feature extraction backbone network to extract multi-dimensional features F1, feature F2, feature F3, and feature F4 of different scales;

[0051] In the process of generating features F1, F2, F3 and F4, the downsampling rate is maintained at 2 times.

[0052] In multi-level feature extraction, since the image is processed by multiple consecutive convolutional layers and pooling layers, the deeper features F3 and F4 encode richer semantic features, and the lower-level features F1 and F2 encode rich spatial details due to fewer downsampling operations. Therefore, the combined use of the feature information of F1, F2, F3 and F4 can better segment and classify blood vessels and veins.

[0053] like Figure 3 As shown in FIG. 1 , the long-distance spatial dependency modeling module can effectively aggregate contextual information in channel and spatial dimensions, thereby helping to distinguish arteries / veins from noise interference of complex backgrounds; the extraction process of the long-distance spatial dependency modeling module is:

[0054] Feature F4 is Figure 3 The deep features X∈R in H×W×C , H, W, C represent the height, width and number of channels of the extracted features respectively; the deep feature X is convolved through two convolutional layers to obtain the key features K∈R after convolution. H×W×C And index features The width W, height H, and number of channels C of the key feature K remain unchanged, the width W and height H of the index feature Q remain unchanged, but the number of channels becomes s 2 ;

[0055] Transform the key feature K into (H×W)×C and the index feature Q into (H×W)×s 2, respectively obtain the features K' and Q'; then, use the formula Perform matrix multiplication to obtain feature S'; i = 1, 2, ..., s 2 ,j=1,2,...,C; more generally expressed in matrix form as S′=Q′ T ×K′, where Q' T represents the transpose of the matrix Q'.

[0056] Transform S' into a matrix of size s×s×C, and perform a depth-separable convolution operation with feature F4 to obtain a weight factor matrix M with global context information H×W×C ;

[0057] Use the formula M'=matrix_add(X+M) to add the feature F4 to the matrix weight factor matrix M H×W×C Add the elements at the corresponding coordinates to obtain the feature output M'∈R of the long-distance spatial dependency modeling module H×W×C ; Among them, matrix_add represents the matrix addition operation.

[0058] The process of the feature extraction module is:

[0059] The features F1, F2, F3 and F4 are respectively subjected to convolution, Relu activation function, pooling and batch normalization operations in the feature extraction module to obtain the features E1, E2, E3 and E4 with the ability to retain blood vessel boundaries; the sizes of features E1, E2, E3 and E4 are 2 times down-sampled; the size of feature E1 is 2 times that of feature E2, the size of feature E1 is 4 times that of feature E3, and the size of feature E1 is 8 times that of feature E4. The weight of the feature extraction module is mainly adjusted by the multi-level boundary guided loss function, and the loss function adopts the cross entropy loss function.

[0060] The features E1, E2, E3 and E4 are input into the channel connection module for channel fusion to obtain the boundary perception features. The channel connection module realizes the splicing of the input features in the channel direction. Before channel fusion, the features E2, E3 and E4 are upsampled by 2 times, 4 times and 8 times respectively to ensure that the features E2, E3 and E4 have the same size as the feature E1.

[0061] The feature output of the channel connection module and the feature output of the long-distance spatial dependency modeling module are input into the boundary-guided spatial dependency aggregation module to re-aggregate the vascular features and boundary features, with the goal of better retaining the boundary information of the extracted blood vessels. Figure 4 shown.

[0062] The specific process is as follows:

[0063] (1) For the extracted high-order feature G, G∈R C1×H×W , respectively obtain the feature output through two convolutional layer operations, the number of convolution kernel channels is set to C, and the obtained output features are transformed into G'∈R C×N and G”∈R C×N , N=H×W.

[0064] (2) For the boundary-aware feature E∈R C×N , N = H × W, after a convolution layer to obtain features, the number of convolution kernel channels is set to C, and the feature is transformed into E'∈R C×N , N=H×W.

[0065] (3) Perform matrix multiplication on features G' and E' to obtain feature H∈R N×N , and perform Softmax transformation on feature H. The whole process is as follows:

[0066]

[0067] Among them, exp represents the exponential with e as the base, G' i Indicates the i-th row of G', E' j It represents the j-th row of E', i=1,2,...C, j=1,2,...C.

[0068] (4) Perform matrix multiplication on the output feature G' and the matrix H after Softmax transformation, and perform matrix addition on the feature G to obtain the output feature D. The whole process is as follows:

[0069]

[0070] Figure 2 D4 in the image is fused with the downsampled feature F4 of the backbone network through channels, and an upsampled deconvolution operation is performed to obtain D3. At the same time, D3 is fused with the downsampled feature F3 of the backbone network through channels, and an upsampled deconvolution operation is performed to obtain D2. Similar operations are performed to obtain D1, and a Softmax operation is performed on D1 to obtain a predicted arteriovenous segmentation map.

[0071] S102, obtaining a sample data set; the sample data set includes: fundus retinal images and corresponding arteriovenous pixel-level labels;

[0072] S103, training an arteriovenous classification model using the sample data set to obtain a trained arteriovenous classification model;

[0073] S104, performing artery and vein classification on the retinal fundus image to be classified using the trained arteriovenous classification model.

[0074] As a specific example, based on 40 fundus images with manually annotated arteriovenous classification results on the DRIVE dataset, 20 images are selected as the training set and the remaining 20 images are selected as the test set. The model proposed in this patent is trained on the training set, and then the trained model is evaluated on the test set. The test results are as follows: Figure 5 shown.

[0075] Due to the weak discriminative features of fundus arteries and veins, it is difficult for existing fundus image arteriovenous classification methods to obtain vascular segmentation results with good edge preservation characteristics and accurate arteriovenous classification results. To this end, an explicit edge guidance mechanism is introduced, and the edges of arteriovenous vessels are used as additional supervision information to constrain the feature learning process of the arteriovenous classification network, thereby obtaining edge-aware arteriovenous classification features.

[0076] In order to obtain accurate artery and vein classification results, it is necessary to effectively fuse the high-level features and shallow-level features extracted by the backbone network. To this end, shallow features that can perceive edge information and high-level features are more comprehensively fused through matrix multiplication: the original three-dimensional features are deformed into two-dimensional form, and then through matrix multiplication, the interaction of high-level and shallow-level features is realized, so as to obtain better multi-level feature fusion results, which is conducive to obtaining more accurate artery and vein classification results.

[0077] Corresponding to the above method, the present invention also provides a retinal fundus image artery and vein classification system, comprising:

[0078] An arteriovenous classification model construction unit is used to construct an arteriovenous classification model based on an explicit edge-guided mechanism on the basis of an arteriovenous classification network structure; the arteriovenous classification model includes: a feature extraction backbone network, a multi-level edge-guided mechanism module, a feature extraction module, a long-distance spatial dependency modeling module, a channel connection module, and a boundary-guided spatial dependency aggregation module; the feature extraction backbone network is used to extract multidimensional features of different scales; the multi-level edge-guided mechanism module is used to use the extracted blood vessel edges as additional supervisory signals in the artery / vein segmentation learning process based on manually annotated retinal blood vessel segmentation masks; the feature extraction module is used to determine feature weights and multi-dimensional features of different scales in the multi-level edge-guided mechanism module to determine features with blood vessel boundary retention capabilities; the channel connection module is used to perform channel fusion on features with blood vessel boundary retention capabilities to obtain boundary-aware features; the long-distance spatial dependency modeling module is used to aggregate long-distance contextual information along channel and spatial dimensions to form long-distance spatial semantic dependency relationships in fundus images; the boundary-guided spatial dependency aggregation module is used to re-aggregate blood vessel features and boundary features with features output by the channel connection module and features output by the long-distance spatial dependency modeling module;

[0079] A sample data set acquisition unit is used to acquire a sample data set; the sample data set includes: fundus retinal images and corresponding arteriovenous pixel-level labels;

[0080] A model training unit is used to train an arteriovenous classification model using a sample data set to obtain a trained arteriovenous classification model;

[0081] The arteriovenous classification unit is used to classify the arteries and veins of the retinal fundus image to be classified using the trained arteriovenous classification model.

[0082] In order to execute the methods corresponding to the above embodiments to achieve the corresponding functions and technical effects, the present invention also provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the method for classifying arteries and veins in retinal fundus images.

[0083] The memory is a computer-readable storage medium.

[0084] Based on the above description, 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, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned computer storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.

[0085] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0086] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for classifying arteries and veins in retinal fundus images, characterized in that: include: Based on the arteriovenous classification network structure, an arteriovenous classification model is constructed based on an explicit edge-guided mechanism. The arteriovenous classification model includes: a feature extraction backbone network, a multi-level edge guidance mechanism module, a feature extraction module, a long-distance spatial dependency modeling module, a channel connection module and a boundary-guided spatial dependency aggregation module; the feature extraction backbone network is used to extract multi-dimensional features of different scales; the multi-level edge guidance mechanism module is used to use the extracted blood vessel edges as additional supervisory signals in the artery / vein segmentation learning process based on the manually labeled retinal blood vessel segmentation mask; the feature extraction module is used to determine the feature weights and the multi-dimensional features of different scales in the multi-level edge guidance mechanism module to determine the features with blood vessel boundary retention capabilities; the channel connection module is used to perform channel fusion on the features with blood vessel boundary retention capabilities to obtain boundary perception features; the long-distance spatial dependency modeling module is used to aggregate long-distance contextual information along the channel and spatial dimensions to form long-distance spatial semantic dependency relationships in the fundus image; the boundary-guided spatial dependency aggregation module is used to re-aggregate the features output by the channel connection module and the features output by the long-distance spatial dependency modeling module to perform blood vessel features and boundary features; Acquire a sample data set; the sample data set includes: fundus retinal images and corresponding arteriovenous pixel-level labels; Using the sample data set to train the arteriovenous classification model, a trained arteriovenous classification model is obtained; The trained arteriovenous classification model is used to classify the arteries and veins of the retinal fundus images to be classified.

2. The method for classifying arteries and veins of retinal fundus images according to claim 1, characterized in that: The multi-level edge guidance mechanism module specifically includes: The blood vessel boundary is determined using the formula Label[Label>0]=255 and the formula Edge_Label=Edge(Label); Among them, Label is the pixel-level label of artery and vein, Label∈R H×W , H, W, C represent the height, width and number of channels of the image respectively, Edge_Label is the blood vessel boundary, Edge_Label∈R H×W , Label[Label>0]=255 means that the pixel values ​​in Label that are greater than 0 are uniformly set to 255, the pixel values ​​of blood vessel arteries and veins are set to 255, and Edge() represents the edge extraction function.

3. The method for classifying arteries and veins in retinal fundus images according to claim 1, characterized in that: The extraction process of the feature extraction backbone network is as follows: The input retinal image I is sequentially passed through the stacked convolutional layer, Relu function activation layer, pooling layer, and batch normalization layer in the feature extraction backbone network to extract multi-dimensional features F1, feature F2, feature F3, and feature F4 of different scales; In the process of generating features F1, F2, F3 and F4, the downsampling rate is maintained at 2 times.

4. The method for classifying arteries and veins of retinal fundus images according to claim 3, characterized in that: The extraction process of the long-distance spatial dependency modeling module is as follows: Feature F4 is convolved through two convolutional layers to obtain the key features K∈R after convolution. H×W×C And the index feature Q∈R H×W×s2 ; The width W, height H, and number of channels C of the key feature K remain unchanged, the width W and height H of the index feature Q remain unchanged, but the number of channels becomes s 2 ; Transform the key feature K into (H×W)×C and the index feature Q into (H×W)×s 2 , respectively obtain the features K' and Q'; then, perform matrix multiplication operation to obtain the feature S'; Transform S' into a matrix of size s×s×C, and perform a depth-separable convolution operation with feature F4 to obtain a weight factor matrix M with global context information H×W×C ; Combine feature F4 with the matrix weight factor matrix M H×W×C Add the elements at the corresponding coordinates to obtain the feature output M'∈R of the long-distance spatial dependency modeling module H×W×C .

5. The method for classifying arteries and veins of retinal fundus images according to claim 4, characterized in that: The process of the feature extraction module is: The features F1, F2, F3 and F4 are subjected to convolution, Relu activation function, pooling and batch normalization operations in the feature extraction module respectively to obtain the features E1, E2, E3 and E4 with the ability to preserve blood vessel boundaries; Among them, the sizes of features E1, E2, E3 and E4 are downsampled by 2 times; the size of feature E1 is 2 times that of feature E2, the size of feature E1 is 4 times that of feature E3, and the size of feature E1 is 8 times that of feature E4.

6. A retinal fundus image artery and vein classification system, characterized in that: include: An arteriovenous classification model building unit is used to build an arteriovenous classification model based on an arteriovenous classification network structure and an explicit edge guidance mechanism; The arteriovenous classification model includes: a feature extraction backbone network, a multi-level edge guidance mechanism module, a feature extraction module, a long-distance spatial dependency modeling module, a channel connection module and a boundary-guided spatial dependency aggregation module; the feature extraction backbone network is used to extract multi-dimensional features of different scales; the multi-level edge guidance mechanism module is used to use the extracted blood vessel edges as additional supervisory signals in the artery / vein segmentation learning process based on the manually labeled retinal blood vessel segmentation mask; the feature extraction module is used to determine the feature weights and the multi-dimensional features of different scales in the multi-level edge guidance mechanism module to determine the features with blood vessel boundary retention capabilities; the channel connection module is used to perform channel fusion on the features with blood vessel boundary retention capabilities to obtain boundary perception features; the long-distance spatial dependency modeling module is used to aggregate long-distance contextual information along the channel and spatial dimensions to form long-distance spatial semantic dependency relationships in the fundus image; the boundary-guided spatial dependency aggregation module is used to re-aggregate the features output by the channel connection module and the features output by the long-distance spatial dependency modeling module to perform blood vessel features and boundary features; A sample data set acquisition unit is used to acquire a sample data set; the sample data set includes: fundus retinal images and corresponding arteriovenous pixel-level labels; A model training unit is used to train an arteriovenous classification model using a sample data set to obtain a trained arteriovenous classification model; The arteriovenous classification unit is used to classify the arteries and veins of the retinal fundus image to be classified using the trained arteriovenous classification model.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute a method for classifying arteries and veins in retinal fundus images according to any one of claims 1 to 5.

8. An electronic device according to claim 7, characterized in that: The memory is a computer-readable storage medium.

Citation Information

Cited By

  • Eye detecting system and detecting method

    TWI906180B