#### Abstract

Cerebrovascular rupture can cause a severe stroke. Three-dimensional time-of-flight (TOF) magnetic resonance angiography (MRA) is a common method of obtaining vascular information. This work proposes a fully automated segmentation method for extracting the vascular anatomy from TOF-MRA. The steps of the method are as follows. First, the brain is extracted on the basis of regional growth and path planning. Next, the brain’s highlighted connected area is explored to obtain seed point information, and the Hessian matrix is used to enhance the contrast of image. Finally, a random walker combined with seed points and enhanced images is used to complete vascular anatomy segmentation. The method is tested using 12 sets of data and compared with two traditional vascular segmentation methods. Results show that the described method obtains an average Dice coefficient of 90.68%, and better results were obtained in comparison with the traditional methods.

#### 1. Introduction

Vascular malformations caused by vascular stenosis and aneurysms have become the leading cause of cerebrovascular diseases [1] and pose a significant threat to human health. Time-of-flight (TOF) magnetic resonance angiography (MRA) is a clinical cerebrovascular angiography technology with noninvasive, rapid, and high-resolution characteristics and has been widely used in the diagnosis and treatment of cerebrovascular diseases. When multiple scales of blood vessels, image noise, and uneven contrast are present, obtaining anatomical structures of precise blood vessels from TOF images is critical for the diagnosis and quantitative analysis of cerebrovascular diseases. Moreover, accurate cerebrovascular segmentation is an essential prerequisite for neurosurgical planning and navigation. Therefore, designing an accurate segmentation of cerebrovascular vessels has received extensive attention from researchers in related fields.

This work proposes an automatic algorithm to obtain seed points in the TOF-MRA image and overcome the difficulties of the abovementioned methods. Given that the blood vessel branching volume is usually small and the contrast is low, blood vessels are difficult to detect in the original TOF image; thus, the Hessian matrix of the TOF-MRA image of the multiscale space is used to calculate the enhanced blood vessel image. At last, the vascular structure is segmented on the enhanced blood vessel image via the random walker method in combination with the acquired seed points. The main contributions are as follows: First, a fully automatic cerebrovascular segmentation method is proposed, and a control experiment is designed to verify the segmentation accuracy. Second, the proposed length-strained enhancement method can effectively improve the segmentation accuracy. Finally, the influence of the random walker parameter was explored, and the best plan was applied.

This work is organized as follows. Related research work is explored in Section 2. A detailed description of the proposed method is presented in Section 3. Experiments and the overall performance are introduced in Section 4. Finally, Section 5 discusses the conclusion.

#### 2. Related Work

Many methods for segmenting 3D cerebrovascular structures from TOF-MRA images have been proposed [2]. Common methods include tracking-based segmentation, statistical model-based methods, and neural network-based methods.

Tracking-based methods typically track adjacent edges sequentially from a point in the image through a specific search mechanism. All search processes are completed by following a given termination condition to ultimately capture the entire vascular structure. This approach often achieves good results when combined with connectivity information and edge detection techniques. Schneider et al. [3] proposed a new joint 3D vessel segmentation and centerline extraction framework based on multivariate Hough voting and tilted random forest (RF) by learning from noisy annotations. This method relies on steerable filters to efficiently compute the local image features of different scales and orientations. Wei et al. [4] introduced a grid centerline extraction method that combines a series of advanced techniques in branch segmentation schemes and discrete geometry processing to solve the challenging problem of vascular centerline extraction. Oliveira et al. [5] iteratively tracked a whole vascular network by using a single starting point in the basis of a sample point cloud distributed over a concentric spherical layer. A container model and a sample point matching degree with the model were proposed. Network tracking is implemented as a minimum cost flow problem, and a novel optimization scheme is proposed to iteratively track vascular structures by inherently processing the bifurcation and path. Because the tracking-based vascular structure segmentation algorithm is based on the blood vessels with continuous structural features, the high integrity of the vascular structure is required. The method must also specify the initial point as the starting point of the local operator and is highly dependent on the initial parameters.

The statistical model-based approach is a typical method of cerebrovascular segmentation based on the principles of Bayesian statistical classification. This method constructs two gray distribution functions to fit the background and blood vessels in the image. The threshold of vessel segmentation is obtained by optimizing the grayscale distribution function. Wen et al. [6] proposed a method based on automatic statistical strength to extract 3D cerebrovascular structures from TOF-MRA data. The intensity histogram of the brain image sequence is fitted using a finite mixed model in which the cerebrovascular structure is modeled by a Gaussian distribution function, while the Gaussian and Rayleigh distribution functions model other low-intensity tissues. Lu et al. [7] used a multiscale filtering algorithm to enhance the blood vessels and suppress noise, thereby enabling new statistical features for filtered data. A hybrid model formed by three probability distributions (two exponential distributions and one Gaussian distribution) is established to fit a histogram curve of the filtered data, wherein an expectation maximization (EM) algorithm is used for parameter estimation. Finally, a 3D Markov random field is used to improve the accuracy of pixel classification and posterior probability estimation. Lu et al. [8] proposed an improved variation level set method that uses nonlocal robust statistics to suppress the effects of noise in MR images. Nonlocal robust statistics representing vascular features are learned adaptively from the seeds provided by the user, and -means clustering in the seed neighborhood is used to exclude seeds that are affected by noise. The neighborhood of the appropriate seed is placed in the array to calculate nonlocal robust statistics, and a variation level set can be constructed. Deviation correction is used in the level set formulation to reduce the effect of intensity nonuniformity of the MRI. Given that the blood vessels are mainly located in the high-intensity region of the TOF-MRA data set, the high-intensity large blood vessels can be easily distinguished when a blood vessel is segmented using a statistical model-based method. However, given their low intensity, the small blood vessels are difficult to identify by using statistical models.

A deep convolutional neural network is a common method in processing cerebrovascular segmentation in TOF-MRA images. Image segmentation and vascular extraction methods based on neural networks are mainly used to simulate the learning process of biology, and many elements simulating the mechanism of biological learning constitute a network. Driven by the blood vessel calibration data set, the network parameters are gradually converged to obtain the final network structure for use in the segmentation of the blood vessels. Liskowski and Krawiec [9] proposed a supervised segmentation technique using deep neural networks to train large (up to 400,000) samples. These samples are normalized by global contrast, zero-phase whitened, and enhanced with geometric transformations and gamma correction. Several variations of this approach, including structured prediction, where the network simultaneously classifies multiple pixels, have been considered. Dasgupta and Singh [10] developed the segmentation task as a multitag reasoning task and exploited the implicit advantages of convolutional neural networks (CNN) combined with structured prediction. Fu et al. [11] developed the vascular segmentation problem as a boundary detection task and solved it by using a novel deep learning architecture. The approach is based on two key ideas: the application of multiscale and multilevel CNN with side output layers to learn rich hierarchical representations and the remote interaction between conditional random field (CRF) analog pixels. CNN and CRF layers are combined into an integrated deep network called DeepVessel. The neural network method relies on the data set to obtain convergence, which requires a large amount of labeled data. In practical applications, this technique depends on the operating speed and storage capacity of the device. However, given that numerous studies are mainly based on slide by slide, obtaining all 3D texture information effectively is impossible. Therefore, accurate and low-cost segmentation is a significant problem in neural network methods.

#### 3. Methods

As can been seen from Figure 1, the main steps of the proposed automatic blood vessel segmentation method can be divided into the following four parts. First, the brain features in the TOF-MRA image are combined, and the brain region is extracted on the basis of the region growth and the cost-optimal path. Second, a set of seed points is automatically obtained in conjunction with the high-brightness structure and connectivity of the blood vessels. Third, spatial multiscale angiographic enhancement maps are constructed and special judgments are made on the basis of noise and small structures. Finally, the segmented 3D vascular structure is obtained via the random walker method based on the detected seed point set and vascular enhanced image.

##### 3.1. Extraction of the Brain

The region of interest in the brain-filled region should be located to obtain an accurate cerebrovascular image. The present work uses regional growth to initially segment low-intensity tissues adjacent to the brain, such as the skull and cerebrospinal fluid regions. Thus, the threshold ranges and seed points for seed growth must be defined. The gray histogram of the TOF slice is calculated and divided into two regions, namely, the brain and the nonbrain regions. A mixed Gaussian model is established to simulate the distribution of the histogram, where indicating the number of samples. The gray value is the only feature. The value is 2, which corresponds to two regions: one part represents the skull (the background of which is of low intensity), and the other part corresponds to the blood vessels, brain, nose, and eye area. A previous work [12] estimated the parameters by using the expected maximum method. However, in the mixed Gaussian model, the maximum likelihood function contains a logarithm and cannot be maximized via summation. In the present work, the clustering method is chosen to determine the initial value. The classic Euclidean distance is selected as a measure of distance and expressed as follows:

The brain area is determined by dividing the skull and cerebrospinal fluid areas connected to it. Therefore, a good threshold range is required to achieve growth in this part of the region. A single threshold for each slice can be extracted from the hybrid model on the basis of a minimum error classification. The extracted threshold is used as the upper threshold for region growth and typically contains all or most of the bone. The lower threshold is defined by the lowest intensity value that appears in the middle image, which typically appears in the background area. Thus, the seed growth range of the region growth is obtained. The final analysis shows that the inflection point represents the skull and nose area. Therefore, the inflection point can be selected as the seed point of the region growth to complete the initial segmentation.

Given that the range of thresholds does not accurately cover all ranges, the initial segmentation has a broken structure that does not entirely enclose the brain. In accordance with a previous work [12], the support points are extracted on the basis of initial segmentation and connected using a graph-based approach. Given that the 3D surface drawing requires pillar points, 2D support points are extracted layer by layer and a path to form a closed curve is built. The center of gravity of the segmented skull is first calculated to extract these support points. From this coordinate, the rays are drawn at intervals of 22.5 degrees. The theoretical connection portion of each ray with the region is determined, and the shortest distance from the center of gravity is taken as the support point. Finally, up to 16 support points are extracted. If no intersecting area of a ray is noted, the support points obtained by the ray are no longer considered.

The best path to the defined target node is searched starting from the starting node . A cost map is constructed from the slice image to connect the extracted support points. Here, the pixels of the image are represented as graphic nodes, and edges are created between each pixel and its eight neighbors. The cost-optimal path is then defined as the path with the least cost, which consists of the sum of the cost of each edge accessed from the path to the target node. The included features are as follows: Laplacian zero-crossing , gradient magnitude, and gradient direction [13]. These cost terms are weighted together to form the cost of the edge between nodes and as follows:

The presence of bone marrow interference leads to incorrect segmentation. Considering that the change between the adjacent layers is negligible, the shortest distance between the pixel points of each layer and the adjacent layer is calculated, and the absolute value therein is taken as the distance between adjacent layers. The dividing line is taken as 50 subregion in succession. When the minimum distance of the subarea still satisfies , is considered as the disturbed area. The cost of is recalculated, expanding from field 9 to field 25, and a new path is regained. Figure 2 shows all the steps above.

**(a)**

**(b)**

**(c)**

**(d)**

##### 3.2. Seed Point Detection

Seed points are often needed to be selected as the end of walk of the random walker [14]. A sufficient number of seed points in the target range should be ensured to increase the accuracy of the probability calculation. The nonconnected area caused by the abnormal situation, such as the lesion area and image quality interference, should be marked separately similar to a previous study [15]; the prior probability is used to improve the segmentation accuracy of the fracture area. Given that most of the blood vessels in the image are characterized by small structures and blurred textures, traditional manual labeling is time consuming and prone to omission or mislabeling.

Inspired by [16], an automatic selection scheme for seed points is designed in the present study. The method combines the following prior knowledge: (1) The angiographic structure of the contrast-enhanced blood vessel in the image exhibits a high-gradation gray value and has a significant boundary gradient characteristic; thus, the blood vessel portion can be obtained accurately under a sufficient threshold constraint. (2) In the 3D view, voxel labeling is easily subjected to differences in image depth and the parallax error is judged. The traditional labeling usually adopts the layer-by-layer processing method until the labeling ends. (3) In the image, the blood vessels are usually presented in a tubular structure of a connected region.

Based on the above principles, the projection of maximum intensity preserves the highlighted vascular area. We project from angle to to to avoid occlusion between the blood vessels.

As can been seen in Figure 3, 2D projection map on the plane can be obtained in the -axis direction. The pixel value of each point is determined by the maximum gray value in the -axis direction. The coordinate of each projection point is saved as the hidden variable of the point to satisfy .

A highlighted blood vessel partial region is obtained in on the basis of the gray limit. The connected domain , which is defined as the connected domain part, should be detected to avoid the interference caused by local noise points. Thus, the connected domain set in can be obtained. Noise is usually only present in the interlayer image; thus, can determine the parts that are mainly blood vessels. Finally, the local maximum is extracted as the seed point to further screen and eliminate the interference, thereby satisfying the following condition: where is the image area of size.

If some blood vessels overlap in the MIP direction in the projected image, their blood vessel information and number of detected seed points will decrease. The problem of vascular information in the same direction is overcome in the present work by simultaneously projecting the - and -axes and obtaining the seed point sets and from the and projection planes, respectively. Finally, the seed point set is obtained to satisfy .

##### 3.3. Vessel Enhancement

The image detection structure is obtained by conducting feature analysis of the Hessian matrix to capture the second-order structure of the local intensity variation near each pixel, and the Hessian matrix of the 3D medical image is constructed [17] and expressed as follows: where correspond to the second-order partial differentials of , respectively.

In digital images, the second-order partial differentials in the , , and directions are represented in discrete ways:

The corresponding mixed partial differential can be expressed as follows:

Given that the blood vessels usually have different sizes, the eigenvalues of multiscale Hessian matrices are usually analyzed. The Hessian matrix precisely measures the contrast between the inner and outer regions (, ), which indicates that the scale can represent the radius of the blood vessel. The Hessian matrix is a symmetric matrix, and its eigenvalues , , and () are obtained by calculation.

As can been seen in Figure 4, the corresponding feature vectors are , , and . represents the change in intensity along the direction of the blood vessel (), and and represent changes in intensity in the direction of the vertical vessel ( and ). The blood vessels, depending on their structure, always present tall tubular structures in MRA images and are in contrast with the relatively dark background. The intensity change along the main direction of the blood vessel is considerably smaller than the intensity change along the vertical direction. A priori knowledge of this image imaging mode can be used as a consistency test to distinguish between the blood vessels and the rest of the structure. Based on this observation, the eigenvalues measure the curvature regeneration and vascular structure well. When a pixel has a large and value and a small value, it likely belongs to the blood vessel, as shown in the following equation:

**(a)**

**(b)**

**(c)**

An adjoining sphere with a radius of 1 centered on the pixel is established to quantify the differentiation criterion of the vascular structure. The Hessian matrix is mapped onto the ellipsoid structure, wherein the axial direction is given by the eigenvalue. The axial length corresponds to the eigenvalue.

Given that the ellipsoid is a second-order structure, local features can be used to reflect the image detection structure. Here, three coefficients are defined as follows: , , and . where represents the largest cross-sectional area and represents the length of the largest semimajor axis. The gray level invariance is maintained by its proportional relationship, and only the image geometric information is captured. This ratio can effectively distinguish between a spherical structure and a tubular structure. where represents the volume. This ratio can be used to effectively distinguish whether it is a sheet structure.

The volume occupied by the vascular structure is always small; thus, random noise may occur in the same structural features of the blood vessel. For a typical signal-to-noise ratio, the derivative of the background pixel is usually small, and the Hessian matrix norm can be written as follows: where is the dimension of the image, is the Hessian matrix, and is the th eigenvalue.

The multiscale linear filter is defined as , where and correspond to the scale, that is, the width of the blood vessel, and satisfies

Taylor expansion is performed on the pixel point to analyze the local features of the image as follows:

When mapping through the Hessian matrix, the eigenvalues can be decomposed and extracted into three orthogonal directions while keeping the scale factor unchanged; thus, the local second-order structure of the image is decomposable. Because our eigenvector analysis gives the direction of the minimum curvature, considering multiple directions is unnecessary when applying the filter.

Linear filters for 3D images are constructed as follows: where is the voxel point in the volume data, is the difference control parameter between the tubular structure and the disc structure, is the difference control parameter of the tubular structure and the spherical structure, and is the difference control parameter of the high- and low-contrast structures.

can enhance the effective enhancement of the vascular area but is sensitive to noise background. In order to solve this problem, nonlocal vascular path features are introduced to distinguish between the blood vessels and noise, and the details can be expressed as follows:

*(1) Adjacency and Path*. A morphological path operator was proposed in [8] for filtering curves through a specified direction. Supposing that the point set of the discrete image is , the definition indicates the presence of a path from point A to point B in the specified direction (Figure 4(a)). The adjacency is used to define a path of length , which consists of consecutively adjacent points. The point set is referred to as a path of length , and is used to represent it.

*(2) Vascular Path Exploration*. Inspired by the morphological path operator, we introduce directional information from the Hessian matrix to form the vascular path. Eigenvector analysis of the Hessian matrix indicates that the eigenvectors , , and can be obtained to represent the direction along the vessel and its vertical direction. Therefore, the points in the direction and opposite direction of each point can be merged to form a blood vessel path. Path searches for the nearest point are based on the direction of the current point and involve a point-by-point step (Figure 4(a)). The path formed by the vascular direction information of length is represented by as follows:
where is the constituent element of the path. When leaving the blood vessel is possible, a stopping criterion for the path search should be established. The most obvious indicator of whether the path crosses the boundary is the local vascular response . All vessel paths should be locally smooth, which can be enforced by limiting the change in direction between two consecutive points in the path. Thus, the condition for maintaining a vascular path search may be expressed by the following equation:
where represents the corresponding direction of the path point from the Hessian matrix. The first term in the equation forces the path to smoothen, and the second term ensures local curvature regeneration. Based on the results of vascular path analysis, the empirically chosen threshold of the smoothing constraint is .

*(3) Length Correction*. The radius of the blood vessel usually varies along the blood vessel, especially at the bifurcation. Therefore, the length of the vascular path may be long at the center and attenuated based on the direction after path search. However, the length of these points can be corrected by searching for another “path” from the boundary to the center along the vertical direction and (Figure 4(b)). The same criteria in Equation (14) are used for unification, and a radius length constraint is added as follows:

The third item in Equation (15) ensures that the search path passes through the center point of the blood vessel. The longest length in the path is selected as the final length of the point in the same cross section of the blood vessel.

We propose a length-limited vascular enhancement as follows: where manually sets a constant to mean the minimum length of the blood vessel and is the certain maximum length of the nonvascular object. The basic idea of is to choose the appropriate response for all points in the same vessel path; it can increase the response of long paths and suppress the response of short path points.

##### 3.4. Random Walker Segmentation

A random walk map is constructed following the condition (Figure 5), where is the set of vertices in the map, ; is the set of undirected edges of the vertices in the map, ; and represents the connection relationship between the vertices and . The definition of the edge weight can reflect the similarity between adjacent points, and the Gaussian weighting function [15] is selected as the edge weight as follows: where is the gray value of the vertex , and parameter is the influence of the gray value.

We can calculate the probability of the nonmarked point moving to the seed point which can be calculated by obtaining the edge weight, and the maximum probability is taken as the new mark of the point; finally, image segmentation can be realized. A previous work [18] proved that the process of solving probabilities can be transformed into the classical Dirichlet problem, which involves finding the harmonic function as a solution to a specified partial differential equation in a given region and taking a predetermined value on the boundary. The harmonic function satisfies Laplace’s equation and corresponds to the Euler–Lagrange equation of the Dirichlet integral ; thus, the solution at which the Dirichlet integral reaches the minimum value is the desired harmonic function, where .

A Laplacian matrix of the map is created as follows: where satisfies the condition and is the degree of the vertex , that is, the sum of all the edge weights of the connected vertices,. is an associative matrix of edges and vertices and satisfies Equation (21). is the constitutive matrix of , which is defined as a diagonal matrix, and the diagonal elements are the weights of the corresponding edges.

Therefore, a discrete form of Dirichlet’s integral is obtained as follows:

A discrete harmonic function that satisfies minimization is required. Given that is a semidefinite matrix, has a unique minimum value. The vertex consists of a marked point and an unmarked point , satisfying , . Further decomposition of yields where and correspond to the probability of marked and unmarked points, respectively. is solved to differentiate and the extreme point is sought through zero: . Let be the probability that vertex belongs to label . The -tag set is defined as , , where , and is the number of all seed points. For , define

The solution to the Dirichlet problem is . The sum of all probabilities in which any vertex is satisfied is 1, that is, .

#### 4. Experiments and Results

We randomly selected 12 sets of TOF-MRA data from the open head magnetic resonance data set [19] on the network to verify the reliability of the proposed method. The data were generated by an MRI scanner under 3T, the data sampling interval was was , and the corresponding image size was . Each set of data was manually segmented by a medical imaging specialist as the gold standard for evaluation. The test environment was an Intel(R) Core(TM) i7-6700 CPU @ 3.40 GHz and 3.41 GHz CPU processor with a total memory of 16 GB. Data preprocessing and segmentation were performed in Visual Studio 2017 and MATLAB 2017.

The Dice coefficient was chosen as the empirical similarity measure. Moreover, Marching Cubes [20] was chosen to fill the extracted outline of each slice to generate a binary 3D segmentation. The Dice coefficient is defined as follows: where is the result of the segmentation and is the gold standard. A value close to 1 indicates a good segmentation result, whereas a value close to 0 indicates a poor consensus.

Many blood vessels, especially veins, are located in the border area of the brain. A small difference in the boundary area between the two segments does not result in a strong change in the similarity measure described above. Therefore, even if the Dice coefficient implies a good consensus, these similarity measures cannot provide information about the blood vessels involved in the segmentation. Given that the pretreatment step as an improved vessel segmentation and visualization is one of the main tasks of the proposed method, the FPR and FNR parameters are introduced herein to quantify the inclusion rate of vascular voxels by the automatic segmentation of the blood vessels.

Before processing, a set of preprocessing experiments was designed to reduce image quality and images from background areas, such as nonbrain tissue. Each TOF image sequence was first preprocessed using the histogram-based plate boundary artifact reduction method proposed by Kholmovski et al. [21] to reduce slice-related intensity variations caused by multiplate acquisition. Next, the N3 algorithm is used to correct for in-slice intensity intensities caused by poor RF coil uniformity [22].

Figure 6 shows the results of brain extraction at different slices. The maximum value of the mixed model Gaussian distribution was used as the threshold. Following the work of Forkert et al., the parameter settings of this paper are , , and , which show good performance on MRA cerebrovascular images. The mask () obtained in this paper was first expanded to ensure that the blood vessels in the marginal region of the brain can be contained. The final mask was logically ANDed with the original image, as Equation (27). The expanded connected domain was 9 and the expansion coefficient was 3.

**(a)**

**(b)**

**(c)**

The local maximum point of in the maximum intensity projection map was selected for the target seed point; here, represents the gray value of the projected image and is the selected threshold. The selection of thresholds follows the principle of including as many targets as possible. The local maximum ensures that the seed point is valid and nonredundant. Avoid vascular information covering by projection, projecting three axes and removing duplicate points. The constraints of the connected domain can prevent the seed point set from including interference factors, such as noise. The entire set of seed points contains a set of blood vessel seed points and a set of background (nonvascular) seed points (Figure 7).

**(a)**

**(b)**

**(c)**

Length-strained enhancement was applied to show the enhanced contrast of blood vessels and improve visualization. Figure 8 shows the extracted enhanced results of the three sets of data, and details are shown by expanding the window. , , and were chosen in the present study on the basis of a previous work [17]. Here, the original image clearly has more background interference than the processed one. The contrast of the target area can be effectively improved through length-strained enhancement, and tissue interference, such as the brain, spinal cord, and fat, can be filtered. Comparison of the experimental data of Figures 8(a1)–8(a4) and Figures 8(b1)–8(b4) reveals that the method has no limitation on the blood vessels of different sizes. Therefore, if the scale threshold can be discriminated in the subsequent processing, the method can also effectively filter out arteriovenous information. Figures 8(c1)–8(c4) show that the limited length inhibition can increase the vascular recognition degree and incorrect expansion of the tissue blood vessel. However, the blood vessels in vascular enhanced images tend to be narrower than the original data set, which is attributed to several factors. At the boundary of the blood vessel, the vessel’s vesselness is not strong enough. This phenomenon may cause misjudgment of a certain background area, as shown in Figures 8(c2) and 8(c4). This defect will be resolved by random walk segmentation.

**(a)**

**(b)**

**(c)**

To evaluate the performance of the proposed method, two traditional vascular segmentation algorithms, the Chapman algorithm [23] and the Forkert algorithm [24], are introduced to compare with our method. Here, three sets of comparative experiments were set up, and the experimental results are shown in Figure 9. Among them, Figure 9(a) is the results of the Chapman algorithm, Figure 9(b) is the results of the Forkert algorithm, and Figure 9(c) is the results of the proposed algorithm. Figures 9(d) and 9(e) give the results tested without enhancement or tested after enhancement, respectively. Among them, the blue hollow histogram is DSC, the green hollow histogram is FPR, and the blue solid histogram is FNR. Finally, Figure 9(f) shows the results of an evaluation of the parameters. Among these figures, DSC, FPR, and FNR are given as green, yellow, and blue curves, respectively. Tables 1–3 show the quantitative results of these three sets of comparative experiments.

**(a)**

**(b)**

**(c)**

**(d)**

**(e)**

**(f)**

Table 1 gives the comparative experimental results of the Chapman algorithm, Forkert algorithm, and our method. Here, these three algorithms need seed points in the procedure of segmentation. In the Chapman algorithm and Forkert algorithm, seed points and multifeatures of the original image are combined to extract the structures of blood vessels. In the present work, consistent seed points were controlled as a fixed variable of the three-group segmentation method to eliminate the interference of subjective factors. The parameters used in the proposed method were determined on the basis of recent research [25] and experimental verification. The parameters used in this paper are , , , , , , and . Finally, the resulting data based on brain segmentation in the TOF-MRA image were obtained.

Table 1 lists the results of the evaluation subdivision of the proposed method. The average Dice coefficient was 90.68% compared with 80.17% and 80.70% of the other two groups of control experiments. Moreover, FPR and FNR were 0.57% and 13.30%, respectively. In terms of segmentation results (Figure 10), obtaining a small blood vessel branch by using Forkert et al.’s method is difficult because of the insufficient judgment of the details (Figures 10(b1)–10(b4)), and its FNR index is 24.56%. The method of Chapman et al. cannot effectively exclude the interference of the image (Figures 10(a1)–10(a4)), and the background area is insufficiently judged with an FPR index of 50.67%. The standard deviation of DSC is 0.037734391. The dispersion of data is stable; hence, the proposed method has good robustness [26]. Overall, the method proposed in the present work achieves good performance. By employing the random walk algorithm, this work proposes a fully automated method including automatic acquisition of seeds. Partially complex vascular regions require accurate clinical experience for judgment, and ensuring adequate target labeling by relying only on reasonable threshold selection is difficult. Therefore, the high FNR index obtained is attributed to the missing seed points. While the result is still lower than that of the control test in Forkert’s group, the accuracy of the method generally meets clinical requirements. If higher accuracy is required, the clinician and related staff can manually calibrate the seed point in combination with clinical experience.

**(a)**

**(b)**

**(c)**

To verify the importance of length-strained enhancement, a compared nonenhancement experiment was designed as a control group, and the results are shown in Table 2. The method requires three steps: (1) skull stripping, (2) seed point selection, and (3) random walk segmentation. A single variable was controlled, and all parameters had the same value. The results of comparative verification under this premise are shown in Table 2. Effective contrast between the target and the background cannot be achieved due to the lack of length-strained enhancement. Thus, accurately finding the structure of the blood vessel by relying on the gray limit of random walk is difficult.

The last set of experiments verified the parameters of the random walk, as shown in Table 3. The random walk algorithm designed in this paper establishes weights based on gray values; thus, choosing different parameter values will yield different results. As such, a comparison experiment of value parameters was designed. Here, had a range of 50–150 and an interval of 25. Two sets of data were selected as the verification result. The results in Table 3 indicate that the final selected parameter value is 100.

It is worth mentioning that in the process of the random walker, a large number of sparse matrices need to be calculated in the process of obtaining the segmentation probability through the matrix. Hence, sufficient memory and computing are necessary to obtain the result in clinical experiments.

#### 5. Conclusions

This work presents a method for automatically segmenting cerebrovascular vessels in 3D TOF-MRA images. Three sets of control experiments and a set of parameter verification experiments were designed to evaluate the proposed method. Two of the control experiments were compared with two traditional methods, and another set of control experiments was compared with their own variables. The results show that the proposed method can achieve good accuracy. The image obtained after vascular enhancement provides good results for the spectral band provided by the random walk point. The proposed method takes into account the structural properties of blood vessels in the TOF-MRA image and constructs a set of seed points with appropriate thresholds. The final result leads to a large FNR indication under the premise of satisfying the accuracy, which is caused by the insufficient selection of seed points. Actual conditions may have poor contrast, such as lesions, noise, and quality blur. If high accuracy is required, the seed point can be manually selected by the clinician and first-time staff. Combining this technique with clinical knowledge can lead to precise results.

#### Data Availability

The source data included in this paper was downloaded from the open head magnetic resonance data set on the Internet, and it is available for everyone. The link of the data can be found in Ref. [19].

#### Conflicts of Interest

The authors declare that there is no conflict of interest regarding the publication of this paper.

#### Acknowledgments

This work was supported by the National Science Foundation Program of China (61701022), the Beijing Municipal Science & Technology Commission (Z181100001718135), the Joint Fund Project of Biomedical Transformation Engineering Research Center by Beijing University of Chemical Technology and China-Japan Friendship Hospital in 2018 (PYBZ1804), the Fundamental Research Funds for the Central Universities (FRF-BD-20-11A), and the Beijing Top Discipline for Artificial Intelligent Science and Engineering, University of Science and Technology Beijing.