Abstract

The study focused on the intelligent algorithms-based segmentation of computed tomography (CT) images of patients with cardiovascular diseases (CVD) and the realization of visualization algorithms. The first step was to design a method for precise segmentation under the cylinder model based on the coronary body data of the coarse segmentation, and then the principles of different visualization algorithms were discussed. The results showed that the precise segmentation method can effectively eliminate most of the branches and calcified lesions; curved planar reformation (CPR) and straightened CPR can display the entire blood vessel on one image; and spherical CPR can display the complete coronary artery tree on an image, so that a problem with a certain blood vessel can be quickly found. In conclusion, the precise segmentation of CT images of CVD and visualization algorithm based on the cylinder model have clinical significance in the diagnosis of CVD.

1. Introduction

Cardiovascular and cerebrovascular diseases, such as stroke and ischemic heart disease, are the leading cause of death in China [1]. According to the China CVD report 2018 released by the Cardiovascular Disease Center [2], the prevalence of cardiovascular diseases (CVD) in China is showing an increasing trend. It is inferred that an estimated 290 million population suffer from CVD, including 13 million with strokes, 11 million with coronary heart disease, and 245 million with hypertension. Coronary heart disease is a CVD. Due to calcification and fat accumulation, plaques are formed in vessels, resulting in irreversible myocardial damage and finally narrowing of the vascular cavity. Coronary artery stenosis can induce myocardial infarction, but early detection can effectively prevent coronary heart disease.

In recent years, with the popularization of medical images in clinical diagnosis and treatment, the research of intelligent algorithms for image segmentation has gradually attracted much attention. Jonathan Long designed a fully voluntary network (FCN) [3] structure, which successfully used deep learning in semantic segmentation. For medical images, Olaf Ronneberger and others put forward a network structure called u-net [4], which is often used in image segmentation in medicine. Ahmed Abdulkadir and others applied u-net to 3D space [5], designed 3D u-net under 3D convolution, and used it in 3D image segmentation. Kuan-Lun Tseng et al. designed a way to associate the upper and lower information of the third dimension, which is called Conv-LSTM [6]. Among the traditional methods, T. Buelow et al. designed a method to segment pulmonary artery, which was propagated forward based on artificial seeding [7], but it was impossible to achieve automatic segmentation. Coronary CT angiography (CTA) is a rapid and low-cost diagnostic method widely used in clinic nowadays [8]. CTA has high sensitivity and negative predictive value, and it is one of the main noninvasive ways to check coronary artery disease [9]. However, CTA has a large amount of data and contains a lot of information, so understanding its images requires doctors to have rich clinical experience. At present, the accuracy of CTA image diagnosis basically depends on visualization technology. Some studies have shown that visualization technology can observe the places that are not easy to observe in medical images, so it is of great significance in medical education, clinical diagnosis, and surgical navigation [10, 11]. Accurate visualization can be realized according to the accurate segmentation of coronary artery. The so-called image segmentation specifically refers to the separation of interested and relatively valuable objects when processing related images. This technical means is an extremely key technology applied to image processing [12].

2. Experimental Principles and Methods

2.1. Accurate Segmentation of Blood Vessels Based on Intelligent Algorithms
2.1.1. Straightening Volume Data Generation

Straightened CPR is a CPR algorithm, which is mainly used to eliminate the bending of the space structure in the lumen and straighten its structure, to get the three-dimensional data of the lumen. On the one hand, the state of the straightened blood vessel and the changes are displayed completely, and the length of the blood vessel can determine the height of the image. On the other hand, it can also display the cross section of the blood vessel, reflecting the condition of the blood vessel lumen. The method is mainly to input the center line of the blood vessel and establish a coordinate system at each point to prevent the cross section rotating. Otherwise, it will cause image misalignment. The rotation minimizing frame (RMF) [13] is used to construct the coordinate system.

2.1.2. Accurate Segmentation of Blood Vessels Based on Cylinder Model

The condition of the blood vessel, such as stenosis and normality, can be reflected by the cross section of the blood vessel. To accurately segment the cross section of the blood vessel can get the blood flow channel, and then the size of the lumen is measured by the area of the lumen and the degree of diameter stenosis.

In this study, a method for precise segmentation of coronary lumens is designed. The flow chart of this algorithm is shown in Figure 1.

The lumen segmentation is performed layer by layer. The segmentation process of each layer is shown in Figure 2, and there are constraints between two adjacent layers.

2.1.3. Principle of Calcification Detection

Generally, the CT value of blood vessels is greater than 0 HU, and calcified lesions have a large CT value. According to the gray histogram and cumulative histogram of the data in the experiment, it is noted that the frequency of the cumulative histogram of the calcification data can be 1 only when it has a high gray value (usually greater than 700). The cumulative histogram of the calcification data with little or no calcification does not have long tails. Figure 3 shows the data without calcification, and Figure 4 shows the data with calcification. The Ader cumulative histogram has a long tail. The histograms (Figures 5 and 6) show double peaks, and only the CT values higher than 0 HU are included. Based on this, a method to inspect and remove calcification is proposed.

Figures 7 and 8 are gray histogram and cumulative histogram of the CT values higher than 0 HU. If CT value Lmax − Lh > 500 HU, there is calcification. The threshold method is used to remove calcification. The calcification threshold is set as follows.where the CT value corresponding to Lh in the histogram is the maximum value, Lα is the CT value of the cumulative histogram α∈[0, 1], and the empirical value is α = 0.990.

2.1.4. Debranching and Contour Smoothing

There are often branches in blood vessels, so they need to be removed in the process of evaluating lumen stenosis to facilitate accurate statistics of lumen area. The principle of branch removal is to treat blood vessels as cylinders to achieve branch removal. The general workflow of the branching algorithm is as follows. First, the boundary points of the blood vessel contour are extracted. Then, the distance between the boundary point and the center point is calculated and sorted. Next, the threshold is calculated based on the top 10% of the mean minimum distance. Finally, the threshold is used to clear clean branches.

Due to the existence of lesions, the contour of the lumen presents a nonstandard round shape, so it is constrained by roundness of the shape and the difference in the areas of adjacent layers. In this study, roundness is defined as the ratio of the area of the circle with the same diameter of the long axis of the connected domain to the area of the connected domain; namely,where A is the area of the connected domain, Lmax is the length of the major axis of the ellipse equivalent to the connected domain, and the range of roundness is (0, 1]. Smoothing is similar to debranching, but it has a smaller area difference, and the threshold is 8 voxels.

2.1.5. Center Point Prediction

The accuracy of lumen segmentation determines the result of debranching. Therefore, only the voxel with the largest gray value is included in the experiment. The convex combination is sued to finally get the center point of the current layer.where K1 and K2 are nonnegative and gi represents the central point value of the layer obtained by only calculating the gray value.

2.2. Visualization of Coronary Artery CPR

The purpose of the CPR is to highlight the tubular structure on an image. Since the three-dimensional points of the structure are reflected by the center line, data presentation depends on the center line of the lumen.

2.2.1. The Principle and Realization of Extended CPR

In extended CPR, the direction of interest is a straight line of the cylinder, and its alignment is obtained by mapping the center line. After unfolding the cylinder, the original data is sampled to obtain the extended CPR image (Figure 9).

Generally speaking, maintaining the original structural characteristics of the object in medical images, such as shape and size, is needed. Therefore, when the alignment of the object is straightened, the curve will be sampled according to the same spacing method, and each line of the image will have corresponding sampling points. Then, sampling is performed, and trilinear interpolation is often used.

Sampling of the reference center point: the projection point and the center point correspond to each other after sampling, and the projection point is first sampled and then estimated. If the original center line is {Ai=(xi, yi, zi)|i = 1, 2,..., N0}, {Ci} is projected along the direction of interest to obtain the projection point set {Ki}. In order to obtain the point set {Pj= (Xi, Yi, Zi)|j = 1, 2,..., N}, the projection point set is sampled at equal intervals according to the arc length. Each straight line of the original data passing through the point Pj is parallel to the direction of interest, and then the result image is produced. In order to obtain the gray value of the final CPR, the critical point Pj (j = 1, 2,..., N) is used to compare with the reference center point j (j = 1, 2, …, N). Because may not be available, Pj is needed to estimate it; namely,

As shown in Figure 10, compares with the sampling projection point Pj, and it is found that the points Fm and Fn with the shortest distance from the point Pj in {Kj} compare with and . If these two points are placed on both sides of Pj, there is

If they are all distributed on the same side of Pj and Fm is the closest, then

Because the number of projection points is equal to the height of the generated image after sampling, the height of the generated image is associated with the direction of interest and the structure of the blood vessel. A more curved blood vessel indicates a lower height of the generated image.

Gray interpolation: the generated image is obtained by unfolding the guideline of its cylinder. Usually, a heart CTA is square with 512×512 pixels, so the width of the extended CPR image should also be 512, that is, the diameter of the largest inscribed circle, so the generated image is only displayed within the largest inscribed circle. For projection, the offset on one side of the center point is calculated first, and then the offset on the other side is calculated according to the calculated offset. The image width and projection vector are expressed by W and , and then the three-dimensional coordinates of at jth line arewhere Aj is the estimated reference center point for the jth row.

Trilinear interpolation is used for grayscale interpolation. Figure 11 shows the trilinear interpolation. The point P (, b, c) is located in a cube. The downward and upward coordinate components are rounded and expressed as L and h, respectively. At the same time, the b and c components are rounded to achieve trilinear interpolation. First, interpolation is performed in the b direction. With Q4 as an example, the equation is shown below:

In the same way, Q1∽Q3 are obtained. Then, linear interpolation is performed in the direction, and the following equation is obtained:

Next, linear interpolation is performed in the z direction to get the grayscale at point P.

The coordinates corresponding to the center line of the generated image are the key to obtaining extended CPR. With the coordinates as a reference point, the offset is calculated, and then the volume data coordinates of all points are calculated according to the direction of interest. The implementation process of extended CPR is as follows, including three parts. First, the coordinates of the center point after projection are obtained; then, the sampling point of the center point is obtained according to the interpolation, and the gray sampling point of the generated image is the center point of interpolation estimation; finally, gray interpolation is performed.

The three-dimensional volume coordinates obtained are projected into the coordinates of the generated image, and then the grayscale interpolation is performed according to the two-dimensional coordinates. Assuming that the point set of the original center point is {i= (,bi, ci)|i = 1, 2, …, N0}, the previous point and the center point are set to and . The direction of interest is set to = (cos θ, sin θ, 0), the angle between the 0b two-dimensional plane and axis is θ, and then the center point is projected according to the direction of interest. Then, the following equation is obtained.

The image coordinates after projection are (i, yi), and then the following equation is obtained.where is the width of the generated image, which is the same width as that of the CT image. In this case, the resulting image is only displayed in the largest inscribed cylinder. For the coordinate set {(i, bi)|i = 1, 2,...,N0} of the generated image, the equidistant sampling is performed according to the y component, to obtain a new point set {(, )|i =  1, 2,..., N}. Each point in this point set corresponds to a center point, so a new center point set {= (i, bi, ci)|i = 1, 2,..., N} is obtained. The points (, ) in the generated image all correspond to the original space coordinates ; namely,

In (13), represents the width of the generated image, and the gray value of each point is obtained according to trilinear gray interpolation.

2.2.2. Straightened CPR

Straightened CPR removes the curl of the spatial structure and uses linearity to show the change in the diameter of the tubular structure. Therefore, the length of the lumen center line determines the height of the generated image.

The curvature of the imaging plane parallel to the center line can eliminate the tubular structure and describe the spatial curvature and organization information near the curve. There are two methods to generate the local coordinates of the space curve, namely, the Frenet frame (also known as the TNB coordinate system) and the rotation minimizing frame (RMF). They are composed of three mutually perpendicular vectors; the tangent direction of the curve is one of them, and the other two form a plane perpendicular to the tangent vector.

The straightened CPR is realized mainly by finding the local coordinate system according to the center line. There are many ways to turn the center line into the RMF coordinate system. The phase initial vector determines the Frenet coordinate system and the RMF coordinate system. To facilitate the calculation of data, the a-axis or b-axis vector is selected as the reference vector of the initial vector. If the center point set is {=(, )|  = 1, 2,...,}, the tangent vector is obtained according to the second-order difference of the center point. The main vector and secondary vector algorithms are as follows:

Finally, a vector set of coordinates {(, , )  = 1, 2, …, } is obtained. The coordinate system vector set and the center point are used for grayscale interpolation to obtain straightened data. Assuming that the coordinates of the main vector and the secondary vector of the i-th layer cross section are and ,  = 1, 2, …, , the volume data coordinates corresponding to the gray level at (, ) in the cross section are as follows.

Through trilinear interpolation, volume data is obtained.

2.2.3. Spherical CPR

This method displays the number of blood vessels as much as possible by inputting all the center lines from the coronary artery branches, then obtains the envelope surface of all the center lines, and finally displays the maximum density projection on the spherical surface. The globe form uses the center line to display the grayscale of the real shape on the spherical surface, and most of the blood vessels are distributed near the equator. Mercator projection technology is obtained in the form of a globe.

Heart line envelope calculation: the three main coronary arteries, left anterior descending (LAD) branches, left circumflex (LCX) branches, and right coronary artery (RCA), are input, and the least squares fitting method is used to fit the spherical surface, which can reduce the influence of the small branches of the coronary artery on the fitting result. If the radius of the target sphere is R and the center of the sphere is A0(0, b0, c0), there are N center points and the total error of the fitting is as follows.

Then, partial derivatives of 0,b0, c0, and R are solved to calculate the spherical parameters. The spherical surface is used as the display surface in the globe mode.

For the spherical evolution, the spherical coordinate system can be used to obtain the spherical grid points, and the evolution process is used to adjust these grid points. The principle is to reduce the degree of deviation of the diameter at this point to make the envelope more accurate.

Real mode to globe mode: from the real mode to the globe mode, all gray levels have been obtained. An oblique globe mode image is obtained by projecting the gray level of the real shape radially onto the evolved initial spherical deflection plane.

Mercator projection: it is a commonly used tangent cylindrical projection method. There is basically no angular distortion in Mercator projection, but the distortion of the area is very significant, and the distortion is greater when it is closer to the poles, so only the latitudes below 85° are considered. The relationship between the latitude and longitude projection and the cylindrical plane is as follows:where θ represents longitude, represents latitude, and both are radians. According to (18), it can be concluded that the output image in the width direction is nonlinear and the distortion is greater when it is closer to the poles.

3. Segmentation Results and Realization of Visualization

3.1. Segmentation Results

In order to verify the segmentation effects of the cylinder model algorithm, the experiment accurately segmented the lumen data containing plaques, such as stents, stenosis, and calcification, and calculated the area of the lumen at the same time. After inputting the center line and the original coronary artery coarse segmentation data, the lesion and the stent can be observed. Figure 12 shows the segmentation results, lumen area, and straightened blood vessels.

3.2. Realization of Visualization
3.2.1. Extended CPR Results

To realize extended CPR, RCA and LAD were reconstructed. Figure 13 shows the extended CPR results corresponding to the center lines LAD and RCA.

3.2.2. Straightened CPR Results

A segment of LAD was selected to straighten the blood vessel, and Figure 14 shows the straightened results by LAD at different angles.

3.2.3. Spherical CPR Results

To realize CPR, the three main coronary arteries of LAD, LCX, and RCA were selected for spherical fitting, and finally the spherical surface was obtained. Next, all the center points were evolved, and the final globe mode is shown in Figure 15.

4. Discussion

The coronary artery is an important organ of the human body, and it provides arterial blood to the myocardium. Its pathological changes can cause certain diseases such as coronary atherosclerosis, which threatens the physical and mental health of human beings. Coronary CT images can clearly show the structure and pathological conditions of the coronary lumen, so they are widely used in the diagnosis, screening, and prognosis of coronary artery diseases [14, 15]. Medical visualization technology is a three-dimensional model. It can spontaneously perform quantitative and qualitative analysis of the target [16], thus providing clearer images and facilitating functional analysis [17]. Yue (2017) studied the relationship between three-dimensional reconstruction and fluid mechanics with the formation and progression of atherosclerotic plates [18]. Guo et al. (2011) used visualization in three-dimensional echocardiography to reconstruct the coronary artery model to assist in the diagnosis of coronary heart disease [19].

This study focused on the precise segmentation of coronary arteries and different 3D reconstruction methods. According to the segmentation results, it can be concluded that the method proposed in this research can effectively eliminate most of the branches, but there are still a few that cannot be completely eliminated. Although some calcified lesions can be detected and removed, there are still undetectable phenomena for small calcifications, and there is no way to distinguish stents from calcifications. However, there is a linear relationship between the change range of the area curve and the thickness of the lumen, which can be used to evaluate the stenosis degree of blood vessels. Through the implementation of extended CPR, it can be concluded from Figure 13 that LAD contains calcified plaque, and the symmetrical part can be observed in the figure, which is mainly determined by the extended reconstructed image. When people observe that the center line rises before the horizontal line along the observation direction, the symmetrical structure will be displayed in the resulting image. This symmetrical structure exists on the left and right and occurs at the lowest position of the bending part. In the implementation of straightened CPR, it can be concluded that the blood vessels in the straightening diagram in Figure 14 are not completely in the center of the image, which may be caused by the calculation error of the center line. Calcified plaques can be observed near the 380th floor in the straightening diagram. As shown in Figure 15, during the realization of spherical CPR, the images had overlapping problems, and the blood vessels appeared in multiple layers in the radial direction. This may be because the spherical CPR maps the blood vessels to the curved surface in the radial direction. Then, the three visualization methods were compared. It was noted that extended CPR and straightened CPR had obvious advantages in displaying the local conditions of blood vessels, while spherical CPR had advantages in displaying the overall direction of blood vessels.

5. Conclusion

In the study, the CT images of coronary arteries were segmented using a cylindrical model, and different realization methods of CPR visualization were discussed. It was proved that, in the precise segmentation under the cylinder model, redundant branches and calcified plaques can be effectively removed to make the segmentation of the vascular lumen more accurate, which was beneficial to the diagnosis and treatment of cardiovascular diseases. Among the three visualization methods, by comparing the advantages and disadvantages of different visualization methods, a spherical reconstruction visualization method was obtained, which made the display of blood vessels more accurate. However, some limitations in the study should be noted. Some branches and plaques cannot be cleaned up, which will affect the accuracy of diagnosis to a certain extent. Therefore, in the follow-up study, these issues need to be resolved to achieve the best results.

Data Availability

The data used to support the findings of this study are available from the author upon request.

Conflicts of Interest

The author declares that there are no conflicts of interest.