# Efficient BFCN for Automatic Retinal Vessel Segmentation

Authors: Yun Jiang; Falin Wang; Jing Gao; Wenhuan Liu
Journal: Journal of Ophthalmology
 (2020)

---

## Abstract

Retinal vessel segmentation has high value for the research on the diagnosis of diabetic retinopathy, hypertension, and cardiovascular and cerebrovascular diseases. Most methods based on deep convolutional neural networks (DCNN) do not have large receptive fields or rich spatial information and cannot capture global context information of the larger areas. Therefore, it is difficult to identify the lesion area, and the segmentation efficiency is poor. This paper presents a butterfly fully convolutional neural network (BFCN). First, in view of the low contrast between blood vessels and the background in retinal blood vessel images, this paper uses automatic color enhancement (ACE) technology to increase the contrast between blood vessels and the background. Second, using the multiscale information extraction (MSIE) module in the backbone network can capture the global contextual information in a larger area to reduce the loss of feature information. At the same time, using the transfer layer (T_Layer) can not only alleviate gradient vanishing problem and repair the information loss in the downsampling process but also obtain rich spatial information. Finally, for the first time in the paper, the segmentation image is postprocessed, and the Laplacian sharpening method is used to improve the accuracy of vessel segmentation. The method mentioned in this paper has been verified by the DRIVE, STARE, and CHASE datasets, with the accuracy of 0.9627, 0.9735, and 0.9688, respectively.


---

## Body

## 1. Introduction

Ophthalmology is an important research area of contemporary medicine. Eye health is closely related to people’s lives. There is a wide variety of ophthalmic diseases, such as cataract, glaucoma, and diabetic retinopathy that have a high incidence, and diabetic retinopathy is one of the main causes of blindness [1]. Because retinal blood vessels provide the only noninvasive view of the cardiovascular system, they are the key feature that can be referenced for the diagnosis of ophthalmic diseases [2]. The main structure of a normal retinal fundus image is the optic disc, macular, and blood vessels. Hard exudation, soft exudation, microaneurysm, and other structures may be observed in the fundus image of the diseased retina. The morphology of blood vessels is a key indicator for early detection of retinal disease and understanding of the severity of the disease. Ophthalmologists usually perform blood vessel segmentation manually through retinal images to extract lesion information. However, even for an experienced doctor, this work is cumbersome, error-prone, and time-consuming [3].In recent years, with the development of computer vision technology, many fundus blood vessel analysis methods have been proposed [4–21]. The computer can quickly, automatically, and accurately segment retinal blood vessels, which will greatly improve the diagnosis rate and work efficiency of doctors. There are two major types of the analysis methods: supervised learning method and unsupervised learning method [22]. The unsupervised learning method is designed based on the inherent properties of blood vessels and does not need to refer to manually labeled tags. However, compared with the supervised learning method, there are some problems with the unsupervised learning method. Due to noise and pathological patterns, the performance and generality of the unsupervised method are poor. Morphological processing can segment the vascular structure, but it must be combined with other methods to obtain accurate results [4]. Hoover et al. proposed a threshold detection technique of a matched filter response image. This method can complement the local blood vessel attributes with the region-based network attributes to achieve the purpose of segmenting blood vessels [5]. Several studies used matched Franci and Gabor wavelet filters, both individually and together, to enhance blood vessels and improve segmentation [6–8]. Saffarzadeh et al. used multiscale methods to segment blood vessels, but small blood vessels with low contrast cannot be detected [9, 10]. Roychowdhury et al. [11] proposed a region growing method for segmenting blood vessels, but specialized knowledge was required in the setting of blood vessel seed points and the formulation of termination rules. By combining a trainable B-COSFIRE filter with an adaptive threshold method, Ali et al. [12] proposed the improvement over the current method of retinal blood vessel segmentation. The proposed method can automatically configure selectivity in a prototype mode check. Chen [13] proposed a novel hybrid active contour model for automatic segmentation of fundus images.The supervised learning method for retinal blood vessel segmentation using label data includes two steps: (1) blood vessel feature extraction and (2) pixel classification. Wang [14] proposed a method for segmenting retinal blood vessels in color fundus images based on supervised learning, using a nonlinear support vector machine (SVM) classifier to classify image pixels into vascular and nonvascular. K-nearest neighbor (KNN) classifier is used for soft segmentation of retinal blood vessels, classifying each image pixel as blood vessel or nonvascular to generate the final segmented image [15]. Compared with the traditional neural network, U-Net [16] with the fully convolutional neural network (FCN) structure has attracted more attention due to its ability to obtain from coarse to fine representation. Fu [17] proposed a method of the convolutional neural network (CNN) combined with the fully connected conditional random field (CRF) to perform retinal blood vessel segmentation. Li [18] proposed a wide and deep neural network with strong induction ability to segment retinal images. Liskowski and Krawiec trained CNNs with fundus image patches, which were preprocessed by zero-phase whitening, global contrast normalization, and gamma correction [19]. Lin et al. [20] proposed a deep learning method combining global nested edge detection and the conditional random field. In the study by Samuel and Veeramalai [21], a multilayer/multiscale deep supervised layer technique was proposed to better segment retinal blood vessels.Low-quality and artefact-ridden images can affect the performance of segmentation methods. Therefore, the proposed models usually have the following problems [23]: (1) the downsampling factor of the model is too large, which leads to the feature information of a large number of small blood vessels that is lost in the retinal image, and the information eventually cannot be recovered; (2) the receptive field of the model is too small, which leads to insufficient understanding of local context information, and it is impossible to accurately distinguish pathological regions and blood vessels in the retinal image, causing the incorrect segmentation; (3) the feature extraction capacity of the network structure is insufficient, it is difficult to restore low-level detailed feature information, and a lot of noise is generated in the segmented blood vessel image; and (4) the inability to obtain the accurate information of blood vessels of different sizes results in the inability to accurately detect blood vessel edges and small blood vessels.In view of the above issues, this paper proposes a retinal blood vessel segmentation model based on the deep FCN. The main work is as follows:(1)
An image preprocessing method based on automatic color enhancement (ACE) technology is proposed to improve the image quality, make the vascular area more obvious, and achieve better segmentation results.(2)
An improved deep FCN called the butterfly full convolutional neural network (BFCN) for automatic segmentation of retinal blood vessels. Compared with basic the FCN, the BFCN has the following advantages: (i) multiscale input can effectively improve the quality of segmentation; (ii) using dilated convolution with different expansion rates to obtain larger receptive fields and rich spatial information is helpful in fully understanding local context information; and (iii) the transfer layer performs the global average pool on the output of the encoding path and calculates the attention vector to guide the feature map learning. It can improve the network’s sensitivity to information features. In the absence of any supervisory information, the feature information is of great significance to the decoder, and effective encoder information can make better predictions.(3)
A sharpening method is brought forth to postprocess the predicted segmented image to improve the accuracy of retinal vessel segmentation.The paper proceeds as follows. Section2 of the paper mainly expounds the aforementioned method. Section 3 outlines the results and validates the proposed BFCN model. Section 4 summarizes the proposed methods.


## 2. Method

### 2.1. Datasets

This paper used three public datasets: Digital Retinal Images for Vessel Extraction (DRIVE) [24], Structured Analysis of the Retina (STARE) [5], and CHASE_DB1 Retinal Image Database (CHASE) [25] for blood vessel extraction and to verify the performance of the BFCN model. Figure 1 shows an original picture and corresponding ground truth in these three datasets.Figure 1
The dataset used. The first row is the original image, and the second row is the ground truth. (a) DRIVE, (b) STARE, and (c) CHASE.
(a)(b)(c)The DRIVE dataset consists of 40 retinal fundus blood vessel images, corresponding ground truth images, and corresponding masks images from the diabetic retinopathy screening program in the Netherlands. The size of each image is 565 × 584 (http://www.isi.uu.nl/Research/Databases/DRIVE/).The STARE dataset consists of 20 retinal fundus blood vessel images, corresponding real labeled images, and corresponding masks images. Each image is digitized to 700 × 605 pixels (http://www.ces.clemson.edu/ahoover/stare/).The CHASE dataset consists of left and right eye fundus images, corresponding real labeled images, and corresponding masks images of 14 students. There are 28 images in total, each with a resolution of 1280 × 960 (https://blogs.kingston.ac.uk/retinal/chasedb1/).


### 2.2. Image Preprocessing

As a means of image processing, ACE technology can effectively improve the visual effect of the image, enhance the recognition rate of information, and highlight differences or characteristics of the target object to extract the target object from the background information more accurately. In deep learning, preprocessing usually makes the input more suitable for a specific application, narrows the range of pixel value intensities, and highlights interesting areas. The reduction of the pixel value intensity range will reduce the amount of training calculations. This paper proposes an image preprocessing method based on ACE technology. Compared with the red or blue channel image in the retinal fundus image, the green channel image shows the best contrast between the retinal vessels and the retinal background. The preprocessing has five steps: (1) extract the green channel in the original image as the first channel; (2) apply contrast-limited adaptive histogram equalization (CLAHE) [26] to the green channel as the second channel; (3) after removing the gamma correction operation on the green channel, it is used as the third channel; (4) combine these three channels to reconstruct a three-channel image; and (5) single-channel grayscale images show better blood vessel background contrast than RGB images [27]. Therefore, the combined three-channel image is converted into a grayscale image. Figure 2 shows the effect of this preprocessing method.Figure 2
Preprocessing effect diagram. The first row is the DRIVE dataset, the second row is the STARE dataset, and the third row is the CHASE dataset. (a) The original image of each dataset, (b) the corresponding real ground truth, (c) the red (R) channel image of the original image, (d) the green (G) channel image of the original image, (e) the original image for the blue (B) channel image, (f) a preprocessed three-channel image, and (g) a process for converting the preprocessed three-channel image into a grayscale image.
(a)(b)(c)(d)(e)(f)(g)


### 2.3. BFCN

Retinal vascular segmentation is mainly the tension between semantics and location. While global information eases semantic problems, local information can alleviate location problems, and the combination of fine layers and coarse filter layers enables the model to make local predictions without violating global results and minimizes the tension between semantics and location. The BFCN proposed in this paper has a similar overall structure to that of the standard FCN [28], including the encoding process and decoding process, which are symmetrically up and down. The encoding path is capable of encoding low-dimensional input images using richer filters to capture semantic or context information. The decoding path performs upsampling and fusion of low-dimensional features to realize the inverse operation of coding and the restoration of spatial information, so as to achieve precise positioning. The differences between the BFCN and standard FCN are as follows: (1) add side input, which is used to build the input of the image pyramid to realize the fusion of the hierarchical perception field; (2) the encoding process uses a multiscale information extraction (MSIE) module (Figure 3) and multiple convolution layers with different expansion rates instead of a convolution layer to expand the receptive field range without increasing the amount of calculation; and (3) the use of the T_Layer can provide the necessary details and combine the features of the lower layer with that of the higher layer to accurately reconstruct the shape of the segmentation boundary. The network structure is shown in Figure 4.Figure 3
MSIE module structure.Figure 4
BFCN network structure.


#### 2.3.1. Receptive Field and Dilated Convolution

The receptive field is the size of the area on the input image where the pixels on the feature map output by the CNN are mapped. The larger the size of the receptive field is, the larger the size of the receiving field, and the larger the original image range that can be accessed, which also means it may contain more global features with higher semantic hierarchy. On the contrary, the smaller the size is, the more local and detailed the features it contains tend to be. Therefore, the size of the receptive field can be used to roughly judge the abstraction level of each layer, as shown in Figure5(a).Figure 5
The changing process of the receptive field, (a) the changing process of the ordinary convolution receptive field with a two-layer convolution kernel of 3 × 3, stride of 1, and padding of 0, and (b) the changing process of the dilated convolution receptive field with the convolution kernel of 3 × 3, stride of 1, padding of 0, and expansion rate of 2.
(a)(b)The traditional FCN is to convolute the image before pooling, reducing the size of the image, and increasing the size of the receptive field. Reducing the image size continuously will cause the loss of information. The advantage of dilated convolution [29] is that under the situation of no loss of information caused by pooling operation, the receptive field size can be increased, and multiscale context information can be captured to make each convolution output contain a larger range of information. The formula for calculating the actual convolution kernel size of dilated convolution (1) is(1)K=k+k−1×r−1.In the formula,k is the size of the standard convolution kernel, and r is the parameter expansion rate of the dilated convolution. When the dilation rate equals to 1, the dilation convolution is the same as the standard convolution. The changing process of the dilated convolution receptive field is shown in Figure 5(b) [30]. Our Figure 4(b) is mainly borrowed from the article [31]. The receptive field of a dilated convolution with a convolution kernel of 3 × 3 and an expansion rate of 2 is equivalent to a normal convolution with a convolution kernel of 5 × 5, without increasing the number of convolution kernel parameters while maintaining the same feature resolution.


#### 2.3.2. MSIE Module

Because the blood vessels in retinal images have different sizes and low contrast with the background, in order to better segment retinal blood vessels of different sizes, the encoding path in this paper uses a richer filter to encode low-dimensional input images to capture semantic and context information. In this paper, the MSIE module uses dilated convolution with different expansion rates for multiscale feature capture to segment blood vessel edges and tiny blood vessels accurately [32]. The MSIE module (Figure 4) contains 4 parallel dilated convolutions with different expansion rates, a common 1 × 1 convolution layer and a feature reweighting layer. Four dilated convolutions reduce cost of computation and the number of parameters while maintaining the good performance. Multiscale context feature information can be captured through dilated convolution with four different expansion rates, while the 1 × 1 convolutional layer retains feature information of the current scale. The feature recalibration layer aims at explicitly establishing the interdependence between the features and the channels, automatically knowing the importance of each channel through learning, and obtaining the global context information of image. The feature reweighting layer first pool the global average of the feature map X to transfer each two-dimensional feature channel into a real number rϵR. This real number has a global receptive field to some extent, and the number of output channels and the number of channels in the original feature map are the same. Next, change the identification of R into R′ by the two layers of 1 × 1 convolution, then R′′ is output by R′ through the sigmoid activation function, and finally X multiplied by R′′ is output:(2)R=GX=∪c=0C′∑w=0W∑h=0Hxw,h,cW×H,x∈X,X∈ℜW′×H′×C′,(3)R′=FR,R∈ℜ1×1×C′,(4)R″=SR′=⋃c=0C′11+e−r1,1,c′,r′∈′,R′∈ℜ1×1×C′,(5)U=HX,R″=⋃c=0C′∪w=0W′∪h=0H′xw,h,c×r1,1,c″,x∈X,r″∈R″,R″∈ℜ1×1×C′,U∈ℜW′×H′×C′,where X represents the input feature map, G⋅ is the global average pooling operation, F⋅ is the two-layer convolution operation, S⋅ is the sigmoid activation function, and H⋅ is the dot product operation. The U indicates element-wise value.


#### 2.3.3. Transfer Layer Module

The skip connection in U-Net has the advantages of alleviating the problem of gradient vanishing and repairing the information loss during downsampling [33]. In this paper, the skip connection is added to the transfer layer in the BFCN model, and certain changes are made (Figure 6). Similar to U-Net, except that the transfer layer is embedded in the skip connection, and the output of the coding layer is input to the corresponding decoding layer through the transfer layer. Use the transport layer to improve the sensitivity of the network to information, and at the same time, the effective information of the feature is selected in the encoder to obtain more detailed target information that needs attention and suppress useless information. It is very important for the decoder that has no regulatory information. The proposed transfer layer is shown in Figure 6. It consists of five 1 × 1 convolutional layers, two sigmoid activation functions, two pooling layers, and two channel processing layers. First, perform max-pooling and mean-pooling operations on feature maps, respectively, to output X′ and X″, and then perform 1 × 1 convolution before their adding results are activated by sigmoid to obtain the gate control coefficient a. Next, perform the maximized processing and mean processing of channel on α × X, respectively, and then perform 1 × 1 convolution before performing sigmoid activation to obtain the gating coefficient β. Finally, multiply X and β to obtain the output Y of the transfer layer. Experiments prove that it achieves higher accuracy.Figure 6
Structure of the transfer layer.


#### 2.3.4. Decoder

The decoder uses deconvolution to upsample the feature map layer by layer, with the upsampling factor of 2, and finally restores to the same resolution as that of the input image. The feature information of the feature map output by MSIE is concatenated with the feature information obtained by deconvolution of the same layer in the decoding path; thereby, the situation where some thin-walled blood vessels and vessel edge information are difficult to recover during upsampling is eliminated. The quality of cascaded feature information is improved by two 3 × 3 convolutional layers. Finally, the eventual segmentation result is output.


#### 2.3.5. Image Postprocessing

Image preprocessing is widely used in deep learning. It is a necessary means to improve model performance. Based on this, the postprocessing of the segmented images is proposed in this paper, aiming at improving the accuracy of retinal blood vessel segmentation. The function of sharpening is to enhance the grayscale contrast, the image edge sharpening process can enhance the grayscale contrast, and the edges and contours in the image are located in the place where the grayscale changes, so the sharpening can enhance the contour edges and details in the image, and a complete object boundary is formed to separate the object from the image. The root cause of the smooth image becoming blurred is that the image has been subjected to averaging or integration operations, so the blurred image can be inversely calculated to make the image clear. In order to make the edges and contour lines that extend in any direction in the middle of the image clearly visible, this article hopes that certain operations on the image are isotropic, and gradient algorithm can meet this requirement, and the gradient algorithm can make the image uniform. The direction of the gradient is the direction of the image change rate. The amplitude ratio of the gradient is equivalent to the difference in grayscale of adjacent pixels. For the imageF (x, y), the gradient at the point (x, y) is defined as(6)∇Fx,y=∂F/∂x∂F/∂y.Its magnitude is(7)∇Fx,y=∂F∂x2+∂F∂y2.For discrete images, the differential method of adjacent phase difference is substituted for differentiation; so, formula (6) can be defined as(8)∇Fx,y≈Fx,y−Fx+1,y+Fx,y−Fx,y+12.With the gradientFx,y, the sharpening result can be obtained according to the gradient. This paper uses the Laplacian algorithm [34]. The Laplacian algorithm is a linear quadratic differential operator. Like the gradient operator, it has rotational invariance. Thereby, the edge sharpening requirements of images in different directions can be met. Including more detailed information, the obtained borders are thinner. Laplacian operator can be defined as(9)∇2Fx,y=∂2Fx,y∂x2+∂2Fx,y∂y2.Its discrete form is(10)∇2Fx,y=Fx+1,y+Fx−1,y+Fx,y+1+Fx,y−1−4Fx,y.Laplacian operator is used to perform sharpening, and the sharpening outputGx,y is(11)Gx,y=Fx,y−∇2Fx,y.Transform formula (10) into a coefficient form, Laplacian operator,(12)L=0−10−14−10−10⟶Extension template1111−81111⟶abs/100.10.10.10.10.80.10.10.10.1.This paper will sharpen the predicted probability map. The value of each pixel (x, y) is related to its neighborhood pixel value. The pixel value of (x, y) is reset by the Laplacian operator that is transformed by the formula (12). The reset pixel value shows a strong relationship with its neighborhood pixel values. It has a certain enhancement effect on the continuity of the end of small blood vessels.


## 2.1. Datasets

This paper used three public datasets: Digital Retinal Images for Vessel Extraction (DRIVE) [24], Structured Analysis of the Retina (STARE) [5], and CHASE_DB1 Retinal Image Database (CHASE) [25] for blood vessel extraction and to verify the performance of the BFCN model. Figure 1 shows an original picture and corresponding ground truth in these three datasets.Figure 1
The dataset used. The first row is the original image, and the second row is the ground truth. (a) DRIVE, (b) STARE, and (c) CHASE.
(a)(b)(c)The DRIVE dataset consists of 40 retinal fundus blood vessel images, corresponding ground truth images, and corresponding masks images from the diabetic retinopathy screening program in the Netherlands. The size of each image is 565 × 584 (http://www.isi.uu.nl/Research/Databases/DRIVE/).The STARE dataset consists of 20 retinal fundus blood vessel images, corresponding real labeled images, and corresponding masks images. Each image is digitized to 700 × 605 pixels (http://www.ces.clemson.edu/ahoover/stare/).The CHASE dataset consists of left and right eye fundus images, corresponding real labeled images, and corresponding masks images of 14 students. There are 28 images in total, each with a resolution of 1280 × 960 (https://blogs.kingston.ac.uk/retinal/chasedb1/).


## 2.2. Image Preprocessing

As a means of image processing, ACE technology can effectively improve the visual effect of the image, enhance the recognition rate of information, and highlight differences or characteristics of the target object to extract the target object from the background information more accurately. In deep learning, preprocessing usually makes the input more suitable for a specific application, narrows the range of pixel value intensities, and highlights interesting areas. The reduction of the pixel value intensity range will reduce the amount of training calculations. This paper proposes an image preprocessing method based on ACE technology. Compared with the red or blue channel image in the retinal fundus image, the green channel image shows the best contrast between the retinal vessels and the retinal background. The preprocessing has five steps: (1) extract the green channel in the original image as the first channel; (2) apply contrast-limited adaptive histogram equalization (CLAHE) [26] to the green channel as the second channel; (3) after removing the gamma correction operation on the green channel, it is used as the third channel; (4) combine these three channels to reconstruct a three-channel image; and (5) single-channel grayscale images show better blood vessel background contrast than RGB images [27]. Therefore, the combined three-channel image is converted into a grayscale image. Figure 2 shows the effect of this preprocessing method.Figure 2
Preprocessing effect diagram. The first row is the DRIVE dataset, the second row is the STARE dataset, and the third row is the CHASE dataset. (a) The original image of each dataset, (b) the corresponding real ground truth, (c) the red (R) channel image of the original image, (d) the green (G) channel image of the original image, (e) the original image for the blue (B) channel image, (f) a preprocessed three-channel image, and (g) a process for converting the preprocessed three-channel image into a grayscale image.
(a)(b)(c)(d)(e)(f)(g)


## 2.3. BFCN

Retinal vascular segmentation is mainly the tension between semantics and location. While global information eases semantic problems, local information can alleviate location problems, and the combination of fine layers and coarse filter layers enables the model to make local predictions without violating global results and minimizes the tension between semantics and location. The BFCN proposed in this paper has a similar overall structure to that of the standard FCN [28], including the encoding process and decoding process, which are symmetrically up and down. The encoding path is capable of encoding low-dimensional input images using richer filters to capture semantic or context information. The decoding path performs upsampling and fusion of low-dimensional features to realize the inverse operation of coding and the restoration of spatial information, so as to achieve precise positioning. The differences between the BFCN and standard FCN are as follows: (1) add side input, which is used to build the input of the image pyramid to realize the fusion of the hierarchical perception field; (2) the encoding process uses a multiscale information extraction (MSIE) module (Figure 3) and multiple convolution layers with different expansion rates instead of a convolution layer to expand the receptive field range without increasing the amount of calculation; and (3) the use of the T_Layer can provide the necessary details and combine the features of the lower layer with that of the higher layer to accurately reconstruct the shape of the segmentation boundary. The network structure is shown in Figure 4.Figure 3
MSIE module structure.Figure 4
BFCN network structure.


### 2.3.1. Receptive Field and Dilated Convolution

The receptive field is the size of the area on the input image where the pixels on the feature map output by the CNN are mapped. The larger the size of the receptive field is, the larger the size of the receiving field, and the larger the original image range that can be accessed, which also means it may contain more global features with higher semantic hierarchy. On the contrary, the smaller the size is, the more local and detailed the features it contains tend to be. Therefore, the size of the receptive field can be used to roughly judge the abstraction level of each layer, as shown in Figure5(a).Figure 5
The changing process of the receptive field, (a) the changing process of the ordinary convolution receptive field with a two-layer convolution kernel of 3 × 3, stride of 1, and padding of 0, and (b) the changing process of the dilated convolution receptive field with the convolution kernel of 3 × 3, stride of 1, padding of 0, and expansion rate of 2.
(a)(b)The traditional FCN is to convolute the image before pooling, reducing the size of the image, and increasing the size of the receptive field. Reducing the image size continuously will cause the loss of information. The advantage of dilated convolution [29] is that under the situation of no loss of information caused by pooling operation, the receptive field size can be increased, and multiscale context information can be captured to make each convolution output contain a larger range of information. The formula for calculating the actual convolution kernel size of dilated convolution (1) is(1)K=k+k−1×r−1.In the formula,k is the size of the standard convolution kernel, and r is the parameter expansion rate of the dilated convolution. When the dilation rate equals to 1, the dilation convolution is the same as the standard convolution. The changing process of the dilated convolution receptive field is shown in Figure 5(b) [30]. Our Figure 4(b) is mainly borrowed from the article [31]. The receptive field of a dilated convolution with a convolution kernel of 3 × 3 and an expansion rate of 2 is equivalent to a normal convolution with a convolution kernel of 5 × 5, without increasing the number of convolution kernel parameters while maintaining the same feature resolution.


### 2.3.2. MSIE Module

Because the blood vessels in retinal images have different sizes and low contrast with the background, in order to better segment retinal blood vessels of different sizes, the encoding path in this paper uses a richer filter to encode low-dimensional input images to capture semantic and context information. In this paper, the MSIE module uses dilated convolution with different expansion rates for multiscale feature capture to segment blood vessel edges and tiny blood vessels accurately [32]. The MSIE module (Figure 4) contains 4 parallel dilated convolutions with different expansion rates, a common 1 × 1 convolution layer and a feature reweighting layer. Four dilated convolutions reduce cost of computation and the number of parameters while maintaining the good performance. Multiscale context feature information can be captured through dilated convolution with four different expansion rates, while the 1 × 1 convolutional layer retains feature information of the current scale. The feature recalibration layer aims at explicitly establishing the interdependence between the features and the channels, automatically knowing the importance of each channel through learning, and obtaining the global context information of image. The feature reweighting layer first pool the global average of the feature map X to transfer each two-dimensional feature channel into a real number rϵR. This real number has a global receptive field to some extent, and the number of output channels and the number of channels in the original feature map are the same. Next, change the identification of R into R′ by the two layers of 1 × 1 convolution, then R′′ is output by R′ through the sigmoid activation function, and finally X multiplied by R′′ is output:(2)R=GX=∪c=0C′∑w=0W∑h=0Hxw,h,cW×H,x∈X,X∈ℜW′×H′×C′,(3)R′=FR,R∈ℜ1×1×C′,(4)R″=SR′=⋃c=0C′11+e−r1,1,c′,r′∈′,R′∈ℜ1×1×C′,(5)U=HX,R″=⋃c=0C′∪w=0W′∪h=0H′xw,h,c×r1,1,c″,x∈X,r″∈R″,R″∈ℜ1×1×C′,U∈ℜW′×H′×C′,where X represents the input feature map, G⋅ is the global average pooling operation, F⋅ is the two-layer convolution operation, S⋅ is the sigmoid activation function, and H⋅ is the dot product operation. The U indicates element-wise value.


### 2.3.3. Transfer Layer Module

The skip connection in U-Net has the advantages of alleviating the problem of gradient vanishing and repairing the information loss during downsampling [33]. In this paper, the skip connection is added to the transfer layer in the BFCN model, and certain changes are made (Figure 6). Similar to U-Net, except that the transfer layer is embedded in the skip connection, and the output of the coding layer is input to the corresponding decoding layer through the transfer layer. Use the transport layer to improve the sensitivity of the network to information, and at the same time, the effective information of the feature is selected in the encoder to obtain more detailed target information that needs attention and suppress useless information. It is very important for the decoder that has no regulatory information. The proposed transfer layer is shown in Figure 6. It consists of five 1 × 1 convolutional layers, two sigmoid activation functions, two pooling layers, and two channel processing layers. First, perform max-pooling and mean-pooling operations on feature maps, respectively, to output X′ and X″, and then perform 1 × 1 convolution before their adding results are activated by sigmoid to obtain the gate control coefficient a. Next, perform the maximized processing and mean processing of channel on α × X, respectively, and then perform 1 × 1 convolution before performing sigmoid activation to obtain the gating coefficient β. Finally, multiply X and β to obtain the output Y of the transfer layer. Experiments prove that it achieves higher accuracy.Figure 6
Structure of the transfer layer.


### 2.3.4. Decoder

The decoder uses deconvolution to upsample the feature map layer by layer, with the upsampling factor of 2, and finally restores to the same resolution as that of the input image. The feature information of the feature map output by MSIE is concatenated with the feature information obtained by deconvolution of the same layer in the decoding path; thereby, the situation where some thin-walled blood vessels and vessel edge information are difficult to recover during upsampling is eliminated. The quality of cascaded feature information is improved by two 3 × 3 convolutional layers. Finally, the eventual segmentation result is output.


### 2.3.5. Image Postprocessing

Image preprocessing is widely used in deep learning. It is a necessary means to improve model performance. Based on this, the postprocessing of the segmented images is proposed in this paper, aiming at improving the accuracy of retinal blood vessel segmentation. The function of sharpening is to enhance the grayscale contrast, the image edge sharpening process can enhance the grayscale contrast, and the edges and contours in the image are located in the place where the grayscale changes, so the sharpening can enhance the contour edges and details in the image, and a complete object boundary is formed to separate the object from the image. The root cause of the smooth image becoming blurred is that the image has been subjected to averaging or integration operations, so the blurred image can be inversely calculated to make the image clear. In order to make the edges and contour lines that extend in any direction in the middle of the image clearly visible, this article hopes that certain operations on the image are isotropic, and gradient algorithm can meet this requirement, and the gradient algorithm can make the image uniform. The direction of the gradient is the direction of the image change rate. The amplitude ratio of the gradient is equivalent to the difference in grayscale of adjacent pixels. For the imageF (x, y), the gradient at the point (x, y) is defined as(6)∇Fx,y=∂F/∂x∂F/∂y.Its magnitude is(7)∇Fx,y=∂F∂x2+∂F∂y2.For discrete images, the differential method of adjacent phase difference is substituted for differentiation; so, formula (6) can be defined as(8)∇Fx,y≈Fx,y−Fx+1,y+Fx,y−Fx,y+12.With the gradientFx,y, the sharpening result can be obtained according to the gradient. This paper uses the Laplacian algorithm [34]. The Laplacian algorithm is a linear quadratic differential operator. Like the gradient operator, it has rotational invariance. Thereby, the edge sharpening requirements of images in different directions can be met. Including more detailed information, the obtained borders are thinner. Laplacian operator can be defined as(9)∇2Fx,y=∂2Fx,y∂x2+∂2Fx,y∂y2.Its discrete form is(10)∇2Fx,y=Fx+1,y+Fx−1,y+Fx,y+1+Fx,y−1−4Fx,y.Laplacian operator is used to perform sharpening, and the sharpening outputGx,y is(11)Gx,y=Fx,y−∇2Fx,y.Transform formula (10) into a coefficient form, Laplacian operator,(12)L=0−10−14−10−10⟶Extension template1111−81111⟶abs/100.10.10.10.10.80.10.10.10.1.This paper will sharpen the predicted probability map. The value of each pixel (x, y) is related to its neighborhood pixel value. The pixel value of (x, y) is reset by the Laplacian operator that is transformed by the formula (12). The reset pixel value shows a strong relationship with its neighborhood pixel values. It has a certain enhancement effect on the continuity of the end of small blood vessels.


## 2.3.1. Receptive Field and Dilated Convolution

The receptive field is the size of the area on the input image where the pixels on the feature map output by the CNN are mapped. The larger the size of the receptive field is, the larger the size of the receiving field, and the larger the original image range that can be accessed, which also means it may contain more global features with higher semantic hierarchy. On the contrary, the smaller the size is, the more local and detailed the features it contains tend to be. Therefore, the size of the receptive field can be used to roughly judge the abstraction level of each layer, as shown in Figure5(a).Figure 5
The changing process of the receptive field, (a) the changing process of the ordinary convolution receptive field with a two-layer convolution kernel of 3 × 3, stride of 1, and padding of 0, and (b) the changing process of the dilated convolution receptive field with the convolution kernel of 3 × 3, stride of 1, padding of 0, and expansion rate of 2.
(a)(b)The traditional FCN is to convolute the image before pooling, reducing the size of the image, and increasing the size of the receptive field. Reducing the image size continuously will cause the loss of information. The advantage of dilated convolution [29] is that under the situation of no loss of information caused by pooling operation, the receptive field size can be increased, and multiscale context information can be captured to make each convolution output contain a larger range of information. The formula for calculating the actual convolution kernel size of dilated convolution (1) is(1)K=k+k−1×r−1.In the formula,k is the size of the standard convolution kernel, and r is the parameter expansion rate of the dilated convolution. When the dilation rate equals to 1, the dilation convolution is the same as the standard convolution. The changing process of the dilated convolution receptive field is shown in Figure 5(b) [30]. Our Figure 4(b) is mainly borrowed from the article [31]. The receptive field of a dilated convolution with a convolution kernel of 3 × 3 and an expansion rate of 2 is equivalent to a normal convolution with a convolution kernel of 5 × 5, without increasing the number of convolution kernel parameters while maintaining the same feature resolution.


## 2.3.2. MSIE Module

Because the blood vessels in retinal images have different sizes and low contrast with the background, in order to better segment retinal blood vessels of different sizes, the encoding path in this paper uses a richer filter to encode low-dimensional input images to capture semantic and context information. In this paper, the MSIE module uses dilated convolution with different expansion rates for multiscale feature capture to segment blood vessel edges and tiny blood vessels accurately [32]. The MSIE module (Figure 4) contains 4 parallel dilated convolutions with different expansion rates, a common 1 × 1 convolution layer and a feature reweighting layer. Four dilated convolutions reduce cost of computation and the number of parameters while maintaining the good performance. Multiscale context feature information can be captured through dilated convolution with four different expansion rates, while the 1 × 1 convolutional layer retains feature information of the current scale. The feature recalibration layer aims at explicitly establishing the interdependence between the features and the channels, automatically knowing the importance of each channel through learning, and obtaining the global context information of image. The feature reweighting layer first pool the global average of the feature map X to transfer each two-dimensional feature channel into a real number rϵR. This real number has a global receptive field to some extent, and the number of output channels and the number of channels in the original feature map are the same. Next, change the identification of R into R′ by the two layers of 1 × 1 convolution, then R′′ is output by R′ through the sigmoid activation function, and finally X multiplied by R′′ is output:(2)R=GX=∪c=0C′∑w=0W∑h=0Hxw,h,cW×H,x∈X,X∈ℜW′×H′×C′,(3)R′=FR,R∈ℜ1×1×C′,(4)R″=SR′=⋃c=0C′11+e−r1,1,c′,r′∈′,R′∈ℜ1×1×C′,(5)U=HX,R″=⋃c=0C′∪w=0W′∪h=0H′xw,h,c×r1,1,c″,x∈X,r″∈R″,R″∈ℜ1×1×C′,U∈ℜW′×H′×C′,where X represents the input feature map, G⋅ is the global average pooling operation, F⋅ is the two-layer convolution operation, S⋅ is the sigmoid activation function, and H⋅ is the dot product operation. The U indicates element-wise value.


## 2.3.3. Transfer Layer Module

The skip connection in U-Net has the advantages of alleviating the problem of gradient vanishing and repairing the information loss during downsampling [33]. In this paper, the skip connection is added to the transfer layer in the BFCN model, and certain changes are made (Figure 6). Similar to U-Net, except that the transfer layer is embedded in the skip connection, and the output of the coding layer is input to the corresponding decoding layer through the transfer layer. Use the transport layer to improve the sensitivity of the network to information, and at the same time, the effective information of the feature is selected in the encoder to obtain more detailed target information that needs attention and suppress useless information. It is very important for the decoder that has no regulatory information. The proposed transfer layer is shown in Figure 6. It consists of five 1 × 1 convolutional layers, two sigmoid activation functions, two pooling layers, and two channel processing layers. First, perform max-pooling and mean-pooling operations on feature maps, respectively, to output X′ and X″, and then perform 1 × 1 convolution before their adding results are activated by sigmoid to obtain the gate control coefficient a. Next, perform the maximized processing and mean processing of channel on α × X, respectively, and then perform 1 × 1 convolution before performing sigmoid activation to obtain the gating coefficient β. Finally, multiply X and β to obtain the output Y of the transfer layer. Experiments prove that it achieves higher accuracy.Figure 6
Structure of the transfer layer.


## 2.3.4. Decoder

The decoder uses deconvolution to upsample the feature map layer by layer, with the upsampling factor of 2, and finally restores to the same resolution as that of the input image. The feature information of the feature map output by MSIE is concatenated with the feature information obtained by deconvolution of the same layer in the decoding path; thereby, the situation where some thin-walled blood vessels and vessel edge information are difficult to recover during upsampling is eliminated. The quality of cascaded feature information is improved by two 3 × 3 convolutional layers. Finally, the eventual segmentation result is output.


## 2.3.5. Image Postprocessing

Image preprocessing is widely used in deep learning. It is a necessary means to improve model performance. Based on this, the postprocessing of the segmented images is proposed in this paper, aiming at improving the accuracy of retinal blood vessel segmentation. The function of sharpening is to enhance the grayscale contrast, the image edge sharpening process can enhance the grayscale contrast, and the edges and contours in the image are located in the place where the grayscale changes, so the sharpening can enhance the contour edges and details in the image, and a complete object boundary is formed to separate the object from the image. The root cause of the smooth image becoming blurred is that the image has been subjected to averaging or integration operations, so the blurred image can be inversely calculated to make the image clear. In order to make the edges and contour lines that extend in any direction in the middle of the image clearly visible, this article hopes that certain operations on the image are isotropic, and gradient algorithm can meet this requirement, and the gradient algorithm can make the image uniform. The direction of the gradient is the direction of the image change rate. The amplitude ratio of the gradient is equivalent to the difference in grayscale of adjacent pixels. For the imageF (x, y), the gradient at the point (x, y) is defined as(6)∇Fx,y=∂F/∂x∂F/∂y.Its magnitude is(7)∇Fx,y=∂F∂x2+∂F∂y2.For discrete images, the differential method of adjacent phase difference is substituted for differentiation; so, formula (6) can be defined as(8)∇Fx,y≈Fx,y−Fx+1,y+Fx,y−Fx,y+12.With the gradientFx,y, the sharpening result can be obtained according to the gradient. This paper uses the Laplacian algorithm [34]. The Laplacian algorithm is a linear quadratic differential operator. Like the gradient operator, it has rotational invariance. Thereby, the edge sharpening requirements of images in different directions can be met. Including more detailed information, the obtained borders are thinner. Laplacian operator can be defined as(9)∇2Fx,y=∂2Fx,y∂x2+∂2Fx,y∂y2.Its discrete form is(10)∇2Fx,y=Fx+1,y+Fx−1,y+Fx,y+1+Fx,y−1−4Fx,y.Laplacian operator is used to perform sharpening, and the sharpening outputGx,y is(11)Gx,y=Fx,y−∇2Fx,y.Transform formula (10) into a coefficient form, Laplacian operator,(12)L=0−10−14−10−10⟶Extension template1111−81111⟶abs/100.10.10.10.10.80.10.10.10.1.This paper will sharpen the predicted probability map. The value of each pixel (x, y) is related to its neighborhood pixel value. The pixel value of (x, y) is reset by the Laplacian operator that is transformed by the formula (12). The reset pixel value shows a strong relationship with its neighborhood pixel values. It has a certain enhancement effect on the continuity of the end of small blood vessels.


## 3. Experiments

### 3.1. Training and Test Patches

During the training process, 10480 image patches with a size of 128 × 128 were randomly extracted from the training set of each dataset. At the same time, 10480 real label patches with a size of 128 × 128 are extracted from the corresponding real labels at the same location to calculate the loss and train the network. There are 16 images input into the network each time. In testing stage, the image patches are extracted from each tested picture of each dataset, in the sequence of the way of sliding window. The size of the sliding window was 128 × 128, and the sliding stride is 5 pixels. The part of sliding window that exceeds the picture was filled with 0. Similarly, there were 16 images input to the network each time.


### 3.2. Implementation Details

The method in this paper is based on the deep learning open source framework PyTorch [35] and is implemented on a server of an operating system configured with Intel (R) Xeon (R) E5-2620 V3 2.40 GHz CPU, Tesla K80 GPU, and Ubuntu64. In the training stage, the Adam optimizer [36] (the parameters were set as: β1 = 0.9, β2 = 0.999 and ε = 10−8, and the learning rate lr was initialized as 0.001) was used to make the learning rate attenuated by the Plateau [37] method. The training circle was 200, the training batch was 16, and the loss function uses a cross-entropy loss function. It is defined as follows:(13)Losscey,y^=−∑yilogy^i+1−yilog1−y^i,where yi represents the real label, and y^i represents the predicted image. Thresholds were set as 0.6, 0.43, and 0.65 when the performance of the DRIVE, STARE, and CHASE datasets is evaluated.


### 3.3. Evaluation Metrics

In order to evaluate the effectiveness of this method for retinal vascular segmentation, the analysis on the performance of sensitivity, specificity, accuracy, andF-measure evaluation indicators is performed by making confusion matrix:(14)accuracy=TP+TNTP+FN+TN+FP,(15)sensitivity=TPTP+FN,(16)specificity=TNTN+FP,(17)precision=TPTP+FP,(18)F=2×Prec.Sens.Prec.+Sens.,here, TP is the correctly identified blood vessel pixel, and TN is the correctly identified background pixel. FP is the background pixel that is incorrectly segmented into blood vessel pixels, and FN is a blood vessel that is incorrectly marked as a background pixel.


### 3.4. Comparison of Model Improvement Results

The data preprocessing techniques, basic network, and postprocessing of segmented images are combined to verify their effectiveness through using the DRIVE, STARE, and CHASE datasets. In the table, ACE represents an image preprocessing technology of the color enhancement, MSIE is a multiscale information extraction module, T_Layer indicates a conversion layer module, and Sharp indicates a sharpening method of postprocessing the segmented image. The experimental results are shown in Tables1–3.Table 1
Comparison among the results of DRIVE dataset model changes.
ACEMSIET_LayerSharpSensitivitySpecificityAccuracyF-measure1√0.74530.98450.95400.80512√√0.76810.98200.95500.81293√√√0.77490.97250.95860.81644√√√0.82520.97320.95710.82175√√√√0.81240.98220.96270.8294Table 2
Comparison among the results of STARE dataset model changes.
ACEMSIET_LayerSharpSensitivitySpecificityAccuracyF-measure1√0.71630.99110.96250.79922√√0.78060.98060.96590.82343√√√0.77220.98070.96660.82354√√√0.82740.98820.96980.83345√√√√0.82880.98960.97350.8442Table 3
Comparison among the results of CHASE dataset model changes.
ACEMSIET_LayerSharpSensitivitySpecificityAccuracyF-measure1√0.76260.98450.96400.79412√√0.79000.97620.96450.80703√√√0.77440.97820.96630.80364√√√0.84400.98360.96640.80915√√√√0.83230.98510.96880.8102Tables1–3 is the combined verification results of each part on the DRIVE, SATRE, and CHASE datasets, respectively. In Tables 1–3, the experimental results in the first row show that the MSIE module proposed in this paper can effectively segment the retinal blood vessels and achieve good effects. Through the comparison between the first row and the second row, the experimental results show that T_Layer can select the effective feature information in the encoder to obtain more detailed information of the target that needs attention. And with the comparison between the second row and the third row, the experimental results show that the ACE data preprocessing proposed in this paper can have a positive impact on the segmentation of blood vessels, which can make an improvement in accuracy of these three standard datasets. With the comparison between the second row and the forth row, the experimental results show that the sharpening postprocessing of the segmented image proposed in this paper can further process the segmented image to alleviate the fracture problem of small blood vessels in the segmented image and improve the accuracy. The segmentation accuracy is increased by 0.21%, 0.39%, and 0.19% in DRIVE, STARE, and CHASE datasets, respectively. With the comparison between the fifth row and other rows, it shows that the network architecture proposed in this paper can segment the retinal fundus vessels well. Experiment data show that the efficiency of segmentation is the highest after combining all the modules. And the accuracy and F-measure on the DRIVE, STARE, and CHASE datasets reached 0.9627/0.8294, 0.9735/0.8442, and 0.9688/0.8102, respectively.Figure7 shows the ROCAUC curve analysis after combining the various parts on the DRIVE, STARE, and CHASE datasets. AUC represents the area under the ROC curve. The larger the AUC value is, the more likely the current classification algorithm will rank positive samples before negative samples, to better classify. In Figure 7, the ACE + MSIE + T_Layer + sharp combination has higher ROCAUC value than other combinations. The ROCAUC value on the DRIVE, STARE, and CHASE datasets is 0.9790, 0.9827, and 0.9851, respectively.Figure 7
Comparison among ROC curves of the MSIE, T_Layer, ACE, and Sharp modules on the DRIVE, STARE, and CHASE datasets. (a) DRIVE, (b) STARE, and (c) CHASE.
(a)(b)(c)In order to further prove the advantages of the data preprocessing technology, basic network, and postprocessing of segmented images proposed in this paper, this paper compares the experimental segmented images combined by each part. In Figure8, through locally enlarging the corresponding combined segmented images and comparing the locally enlarged images of different combinations, it is obvious that the ACE data preprocessing technology and basic network proposed in this paper are effective for retinal vessel segmentation. Compared with the combination without segmentation image sharpening and postprocessing operation, the combination with these operations has a certain repair effect on the fracture of small blood vessels.Figure 8
Comparison between model changes and segmentation images. Row (a) is the images of the DRIVE dataset, and row (b) is a local enlargement of the images in row a; row (c) is the images of the STARE dataset, and row (d) is a local enlargement of the images in row (c); row (e) is the images of the CHASE dataset, and row (f) is a local enlargement of the images in row (e). The dark blue in Figure8 is the background. The yellow in the figure is blood vessels, and the light blue that appears in yellow blood vessels is also blood vessels, but the pixel value of this part of the blood vessel is low, which is easier to segment and break.
(a)(b)(c)(d)(e)(f)


### 3.5. Comparison among Results of Different Segmentation Algorithms

In order to further prove the effectiveness of this method for retinal vessel segmentation, this paper compared the STARE, DRIVE, and CHASE datasets with the methods in some references, respectively, and judged the performance of the vascular segmentation by sensitivity, specificity, accuracy, andF-measure. Table 4 compares the performance of different methods for retinal vessel segmentation on the DRIVE dataset. Compared with references [21, 40, 42–44], the sensitivity index is low, since many background pixels are still classified as vascular pixels by this method in this paper, but the specificity, accuracy, and F-measure indicators are all optimal. Compared with the method in the study by Samuel and Veeramalai [21], the specificity of this paper’s method was improved by 0.84%.Table 4
Comparison between the results of the BFCN and other methods on the DRIVE dataset.
MethodYearSensitivitySpecificityAccuracyF-measureSingh and Srivastava [8]20160.75940.97230.947—Zhang et al. [10]20150.78120.96680.9504—Lázár and Hajdu [38]20150.76460.97230.9458—Zhao et al. [39]20170.7820.9790.957—Zhang et al. [40]20170.78610.97120.95270.7953Yan et al. [41]20180.82820.97380.9609—Alom [42]20180.77920.98130.95560.8171Zhuang [43]20180.78560.98100.95600.8202Wang et al. [44]20190.79400.98160.95670.8270Samuel and Veeramalai [21]20190.82820.97380.9609—Ours20190.81240.98220.96270.8294On the STARE dataset, specificity of the BFCN method has increased by 1.58% compared with that of the method in the study by Samuel and Veeramalai [21] (Table 5). Although the method in this paper does not achieve its highest value in the aspect of F-measure and sensitivity, the accuracy rate of the BFCN method is 0.9735, which is 1.26% higher than that of the method in the study by Samuel and Veeramalai [21].Table 5
Comparison between the results of the BFCN and other methods on the STARE dataset.
MethodYearSensitivitySpecificityAccuracyF-measureSingh and Srivastava [8]20160.779390.93760.9270—Lázár and Hajdu [38]20150.72480.97510.9492—Zhao et al. [39]20170.7890.9780.956—Zhang et al. [40]20170.78820.97290.95470.7815Yan et al. [41]20180.89790.97010.9646—Lu [45]20180.80900.97700.9628—Jin et al. [27]20190.75950.98780.96410.8143Li et al. [46]20190.8465-0.96730.8435Samuel and Veeramalai [21]20190.82820.97380.9609—Ours20190.82870.98960.97350.8442Table6 compares the performance of different methods for retinal vessel segmentation on the CHASE dataset. Compared with other studies [27, 41–45], the method in this paper reaches the highest value of sensitivity, specificity, accuracy, and F-measure. Through the analysis of Tables 4–6, some indicators of the method in this paper have been improved compared with that of the listed references. And especially on the CHASE dataset, the BFCN has reached the highest values of all indicators, which also verifies the effectiveness of the method for retinal vascular segmentation in this paper.Table 6
Comparison between the results of the BFCN and other methods on the CHASE dataset.
MethodYearSensitivitySpecificityAccuracyF-measureZhang et al. [40]20170.76440.97160.95020.7581Yan et al. [41]20180.76410.98060.9607—Alom [42]20180.77560.98020.96340.7928Zhuang [43]20180.79780.98180.96560.8031Wang et al. [44]20190.80740.98210.96610.8037Lu [45]20180.75710.98230.9664—Jin et al. [27]20190.81550.97520.96100.7883Ours20190.83230.98510.96880.8102Figure9 is a comparison among the images of segmentation results of the method in this paper and some references. The first row of images is from the DRIVE dataset, and the second row of images is from the STARE dataset. Both have compared the segmentation results of the BFCN method and that of the methods in the studies by Yan et al. [41] and Samuel and Veeramalai [21]. In the studies by Yan et al. [41] and Samuel and Veeramalai [21], the width of blood vessel extracted by algorithm is so small that many small blood vessels are not reflected and the completion degree of the blood vessel extraction is not high. In medical diagnosis, small blood vessels are of great significance to the retinal image. The loss of small blood vessels will cause much adversity in diagnosis. There is a more complete extraction of retinal blood vessels and a fuller extraction of small blood vessels in this method. The third row of images is from the CHASE dataset. The segmentation results of the BFCN method are compared with the images of the segmentation results of the methods in the studies by Zhuang [43] and Wang et al. [44]. The method in the studies by Zhuang [43] and Wang et al. [44] will generate lots of artifacts, which will cause serious interference to the clinical diagnosis, while the method in this paper generates fewer artifacts. In summary, the method in this paper can effectively and accurately segment retinal blood vessel images.Figure 9
Comparison between the segmented image of the BFCN and other methods on the DRIVE, STARE, and CHASE datasets. (a) Original image, (b) ground truth, (c) method in the study by Yan et al. [41], (d) method in the study by Samuel and Veeramalai [21], (e) ours, (f) original image, (g) ground truth, (h) method in the study by Yan et al. [41], (i) method in the study by Samuel and Veeramalai [21], (j) ours, (k) original image, (l) ground truth, (m) method in the study by Zhuang [43], and (n) method in the study by Wang et al. [44], and (o) ours.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)


## 3.1. Training and Test Patches

During the training process, 10480 image patches with a size of 128 × 128 were randomly extracted from the training set of each dataset. At the same time, 10480 real label patches with a size of 128 × 128 are extracted from the corresponding real labels at the same location to calculate the loss and train the network. There are 16 images input into the network each time. In testing stage, the image patches are extracted from each tested picture of each dataset, in the sequence of the way of sliding window. The size of the sliding window was 128 × 128, and the sliding stride is 5 pixels. The part of sliding window that exceeds the picture was filled with 0. Similarly, there were 16 images input to the network each time.


## 3.2. Implementation Details

The method in this paper is based on the deep learning open source framework PyTorch [35] and is implemented on a server of an operating system configured with Intel (R) Xeon (R) E5-2620 V3 2.40 GHz CPU, Tesla K80 GPU, and Ubuntu64. In the training stage, the Adam optimizer [36] (the parameters were set as: β1 = 0.9, β2 = 0.999 and ε = 10−8, and the learning rate lr was initialized as 0.001) was used to make the learning rate attenuated by the Plateau [37] method. The training circle was 200, the training batch was 16, and the loss function uses a cross-entropy loss function. It is defined as follows:(13)Losscey,y^=−∑yilogy^i+1−yilog1−y^i,where yi represents the real label, and y^i represents the predicted image. Thresholds were set as 0.6, 0.43, and 0.65 when the performance of the DRIVE, STARE, and CHASE datasets is evaluated.


## 3.3. Evaluation Metrics

In order to evaluate the effectiveness of this method for retinal vascular segmentation, the analysis on the performance of sensitivity, specificity, accuracy, andF-measure evaluation indicators is performed by making confusion matrix:(14)accuracy=TP+TNTP+FN+TN+FP,(15)sensitivity=TPTP+FN,(16)specificity=TNTN+FP,(17)precision=TPTP+FP,(18)F=2×Prec.Sens.Prec.+Sens.,here, TP is the correctly identified blood vessel pixel, and TN is the correctly identified background pixel. FP is the background pixel that is incorrectly segmented into blood vessel pixels, and FN is a blood vessel that is incorrectly marked as a background pixel.


## 3.4. Comparison of Model Improvement Results

The data preprocessing techniques, basic network, and postprocessing of segmented images are combined to verify their effectiveness through using the DRIVE, STARE, and CHASE datasets. In the table, ACE represents an image preprocessing technology of the color enhancement, MSIE is a multiscale information extraction module, T_Layer indicates a conversion layer module, and Sharp indicates a sharpening method of postprocessing the segmented image. The experimental results are shown in Tables1–3.Table 1
Comparison among the results of DRIVE dataset model changes.
ACEMSIET_LayerSharpSensitivitySpecificityAccuracyF-measure1√0.74530.98450.95400.80512√√0.76810.98200.95500.81293√√√0.77490.97250.95860.81644√√√0.82520.97320.95710.82175√√√√0.81240.98220.96270.8294Table 2
Comparison among the results of STARE dataset model changes.
ACEMSIET_LayerSharpSensitivitySpecificityAccuracyF-measure1√0.71630.99110.96250.79922√√0.78060.98060.96590.82343√√√0.77220.98070.96660.82354√√√0.82740.98820.96980.83345√√√√0.82880.98960.97350.8442Table 3
Comparison among the results of CHASE dataset model changes.
ACEMSIET_LayerSharpSensitivitySpecificityAccuracyF-measure1√0.76260.98450.96400.79412√√0.79000.97620.96450.80703√√√0.77440.97820.96630.80364√√√0.84400.98360.96640.80915√√√√0.83230.98510.96880.8102Tables1–3 is the combined verification results of each part on the DRIVE, SATRE, and CHASE datasets, respectively. In Tables 1–3, the experimental results in the first row show that the MSIE module proposed in this paper can effectively segment the retinal blood vessels and achieve good effects. Through the comparison between the first row and the second row, the experimental results show that T_Layer can select the effective feature information in the encoder to obtain more detailed information of the target that needs attention. And with the comparison between the second row and the third row, the experimental results show that the ACE data preprocessing proposed in this paper can have a positive impact on the segmentation of blood vessels, which can make an improvement in accuracy of these three standard datasets. With the comparison between the second row and the forth row, the experimental results show that the sharpening postprocessing of the segmented image proposed in this paper can further process the segmented image to alleviate the fracture problem of small blood vessels in the segmented image and improve the accuracy. The segmentation accuracy is increased by 0.21%, 0.39%, and 0.19% in DRIVE, STARE, and CHASE datasets, respectively. With the comparison between the fifth row and other rows, it shows that the network architecture proposed in this paper can segment the retinal fundus vessels well. Experiment data show that the efficiency of segmentation is the highest after combining all the modules. And the accuracy and F-measure on the DRIVE, STARE, and CHASE datasets reached 0.9627/0.8294, 0.9735/0.8442, and 0.9688/0.8102, respectively.Figure7 shows the ROCAUC curve analysis after combining the various parts on the DRIVE, STARE, and CHASE datasets. AUC represents the area under the ROC curve. The larger the AUC value is, the more likely the current classification algorithm will rank positive samples before negative samples, to better classify. In Figure 7, the ACE + MSIE + T_Layer + sharp combination has higher ROCAUC value than other combinations. The ROCAUC value on the DRIVE, STARE, and CHASE datasets is 0.9790, 0.9827, and 0.9851, respectively.Figure 7
Comparison among ROC curves of the MSIE, T_Layer, ACE, and Sharp modules on the DRIVE, STARE, and CHASE datasets. (a) DRIVE, (b) STARE, and (c) CHASE.
(a)(b)(c)In order to further prove the advantages of the data preprocessing technology, basic network, and postprocessing of segmented images proposed in this paper, this paper compares the experimental segmented images combined by each part. In Figure8, through locally enlarging the corresponding combined segmented images and comparing the locally enlarged images of different combinations, it is obvious that the ACE data preprocessing technology and basic network proposed in this paper are effective for retinal vessel segmentation. Compared with the combination without segmentation image sharpening and postprocessing operation, the combination with these operations has a certain repair effect on the fracture of small blood vessels.Figure 8
Comparison between model changes and segmentation images. Row (a) is the images of the DRIVE dataset, and row (b) is a local enlargement of the images in row a; row (c) is the images of the STARE dataset, and row (d) is a local enlargement of the images in row (c); row (e) is the images of the CHASE dataset, and row (f) is a local enlargement of the images in row (e). The dark blue in Figure8 is the background. The yellow in the figure is blood vessels, and the light blue that appears in yellow blood vessels is also blood vessels, but the pixel value of this part of the blood vessel is low, which is easier to segment and break.
(a)(b)(c)(d)(e)(f)


## 3.5. Comparison among Results of Different Segmentation Algorithms

In order to further prove the effectiveness of this method for retinal vessel segmentation, this paper compared the STARE, DRIVE, and CHASE datasets with the methods in some references, respectively, and judged the performance of the vascular segmentation by sensitivity, specificity, accuracy, andF-measure. Table 4 compares the performance of different methods for retinal vessel segmentation on the DRIVE dataset. Compared with references [21, 40, 42–44], the sensitivity index is low, since many background pixels are still classified as vascular pixels by this method in this paper, but the specificity, accuracy, and F-measure indicators are all optimal. Compared with the method in the study by Samuel and Veeramalai [21], the specificity of this paper’s method was improved by 0.84%.Table 4
Comparison between the results of the BFCN and other methods on the DRIVE dataset.
MethodYearSensitivitySpecificityAccuracyF-measureSingh and Srivastava [8]20160.75940.97230.947—Zhang et al. [10]20150.78120.96680.9504—Lázár and Hajdu [38]20150.76460.97230.9458—Zhao et al. [39]20170.7820.9790.957—Zhang et al. [40]20170.78610.97120.95270.7953Yan et al. [41]20180.82820.97380.9609—Alom [42]20180.77920.98130.95560.8171Zhuang [43]20180.78560.98100.95600.8202Wang et al. [44]20190.79400.98160.95670.8270Samuel and Veeramalai [21]20190.82820.97380.9609—Ours20190.81240.98220.96270.8294On the STARE dataset, specificity of the BFCN method has increased by 1.58% compared with that of the method in the study by Samuel and Veeramalai [21] (Table 5). Although the method in this paper does not achieve its highest value in the aspect of F-measure and sensitivity, the accuracy rate of the BFCN method is 0.9735, which is 1.26% higher than that of the method in the study by Samuel and Veeramalai [21].Table 5
Comparison between the results of the BFCN and other methods on the STARE dataset.
MethodYearSensitivitySpecificityAccuracyF-measureSingh and Srivastava [8]20160.779390.93760.9270—Lázár and Hajdu [38]20150.72480.97510.9492—Zhao et al. [39]20170.7890.9780.956—Zhang et al. [40]20170.78820.97290.95470.7815Yan et al. [41]20180.89790.97010.9646—Lu [45]20180.80900.97700.9628—Jin et al. [27]20190.75950.98780.96410.8143Li et al. [46]20190.8465-0.96730.8435Samuel and Veeramalai [21]20190.82820.97380.9609—Ours20190.82870.98960.97350.8442Table6 compares the performance of different methods for retinal vessel segmentation on the CHASE dataset. Compared with other studies [27, 41–45], the method in this paper reaches the highest value of sensitivity, specificity, accuracy, and F-measure. Through the analysis of Tables 4–6, some indicators of the method in this paper have been improved compared with that of the listed references. And especially on the CHASE dataset, the BFCN has reached the highest values of all indicators, which also verifies the effectiveness of the method for retinal vascular segmentation in this paper.Table 6
Comparison between the results of the BFCN and other methods on the CHASE dataset.
MethodYearSensitivitySpecificityAccuracyF-measureZhang et al. [40]20170.76440.97160.95020.7581Yan et al. [41]20180.76410.98060.9607—Alom [42]20180.77560.98020.96340.7928Zhuang [43]20180.79780.98180.96560.8031Wang et al. [44]20190.80740.98210.96610.8037Lu [45]20180.75710.98230.9664—Jin et al. [27]20190.81550.97520.96100.7883Ours20190.83230.98510.96880.8102Figure9 is a comparison among the images of segmentation results of the method in this paper and some references. The first row of images is from the DRIVE dataset, and the second row of images is from the STARE dataset. Both have compared the segmentation results of the BFCN method and that of the methods in the studies by Yan et al. [41] and Samuel and Veeramalai [21]. In the studies by Yan et al. [41] and Samuel and Veeramalai [21], the width of blood vessel extracted by algorithm is so small that many small blood vessels are not reflected and the completion degree of the blood vessel extraction is not high. In medical diagnosis, small blood vessels are of great significance to the retinal image. The loss of small blood vessels will cause much adversity in diagnosis. There is a more complete extraction of retinal blood vessels and a fuller extraction of small blood vessels in this method. The third row of images is from the CHASE dataset. The segmentation results of the BFCN method are compared with the images of the segmentation results of the methods in the studies by Zhuang [43] and Wang et al. [44]. The method in the studies by Zhuang [43] and Wang et al. [44] will generate lots of artifacts, which will cause serious interference to the clinical diagnosis, while the method in this paper generates fewer artifacts. In summary, the method in this paper can effectively and accurately segment retinal blood vessel images.Figure 9
Comparison between the segmented image of the BFCN and other methods on the DRIVE, STARE, and CHASE datasets. (a) Original image, (b) ground truth, (c) method in the study by Yan et al. [41], (d) method in the study by Samuel and Veeramalai [21], (e) ours, (f) original image, (g) ground truth, (h) method in the study by Yan et al. [41], (i) method in the study by Samuel and Veeramalai [21], (j) ours, (k) original image, (l) ground truth, (m) method in the study by Zhuang [43], and (n) method in the study by Wang et al. [44], and (o) ours.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)


## 4. Conclusions

This paper proposes a novel end-to-end DCNN architecture called the BFCN for automatic segmentation of retinal blood vessels. In network architecture, ACE data preprocessing technology enhances the contrast between blood vessels and background to improve network performance. The MSIE module uses dilated convolution with different expansion rates and feature recalibration layers to capture the information of retinal blood vessel with different sizes and global context information and reduces the number of parameters to improve model speed. The conversion layer combines shallow information and deep information to recover the lost shallow information and obtain spatial information at the same time. Segmented image postprocessing technology is to further process the segmented probabilistic image to achieve the purpose of repairing the rupture of small blood vessel. Finally, the proposed method is verified by the DRIVE, STARE, and CHASE datasets. Experimental results show that the algorithm proposed in this paper has better performance in retinal vessel segmentation than the multilevel/multiscale DNN method.



---

*Source: 6439407-2020-09-17.xml*