Intelligent Algorithms-Based CT Image Segmentation in Patients with Cardiovascular Diseases and Realization of Visualization Algorithms

+e 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. +e 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. +e 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.


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. e so-called image segmentation specifically refers to the separation of interested and relatively valuable objects when processing related images. is technical means is an extremely key technology applied to image processing [12].

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. e 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. e rotation minimizing frame (RMF) [13] is used to construct the coordinate system.

Accurate Segmentation of Blood Vessels Based on Cylinder
Model. e 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. e flow chart of this algorithm is shown in Figure 1. e lumen segmentation is performed layer by layer. e segmentation process of each layer is shown in Figure 2, and there are constraints between two adjacent layers.

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). e 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. e Ader cumulative histogram has a long tail. e 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 L max − L h > 500 HU, there is calcification. e threshold method is used to remove calcification. e calcification threshold is set as follows.
where the CT value corresponding to L h 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.

Debranching and Contour Smoothing.
ere 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. e principle of branch removal is to treat blood vessels as cylinders to achieve branch removal. e general workflow of the branching algorithm is as follows. First, the boundary points of the blood vessel contour are extracted. en, 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, L max 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.

Center Point Prediction.
e accuracy of lumen segmentation determines the result of debranching. erefore, only the voxel with the largest gray value is included in the experiment. e convex combination is sued to finally get the center point of the current layer.
where K 1 and K 2 are nonnegative and A gi represents the central point value of the layer obtained by only calculating the gray value.

Visualization of Coronary Artery CPR.
e purpose of the CPR is to highlight the tubular structure on an image. Since the three-dimensional points of the structure are

e 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. erefore, 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. en, 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,..., N 0}, {Ci} is projected along the direction of interest to obtain the projection point set {Ki}. In order to obtain the point set {P j � (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 P j 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 P j (j � 1, 2,..., N) is used to compare with the reference center point Aj (j � 1, 2, . . ., N). Because A j may not be available, P j is needed to estimate it; namely, As shown in Figure 10, A j compares with the sampling projection point P j, and it is found that the points F m and F n with the shortest distance from the point P j in {K j } compare with A m and A m . If these two points are placed on both sides of P j , there is If they are all distributed on the same side of P j and F m 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. e image width and projection vector are expressed by W and v, and then the threedimensional coordinates of Δx at jth line are where A j is the estimated reference center point for the jth row.
Trilinear interpolation is used for grayscale interpolation. Figure 11 shows the trilinear interpolation. e point P (a, b, c) is located in a cube. e downward and upward coordinate components are rounded and expressed as a L and a 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 Q 4 as an example, the equation is shown below: In the same way, Q1∽Q3 are obtained. en, linear interpolation is performed in the x direction, and the following equation is obtained: Next, linear interpolation is performed in the z direction to get the grayscale at point P.
e 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. e 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. e 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 {A ii � (a i ,b i , c i )|i � 1, 2, . . ., N 0 }, the previous point and the center point are set to A i−1 and A i . e direction of interest is set to v� (cos θ, sin θ, 0), the angle between the a0b two-dimensional plane and aaxis is θ, and then the center point is projected according to the direction of interest. en, the following equation is obtained.
e image coordinates after projection are (xi, y i ), and then the following equation is obtained.
where w 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.
In (13), w represents the width of the generated image, and the gray value of each point is obtained according to trilinear gray interpolation.

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. erefore, the length of the lumen center line determines the height of the generated image. e 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. ere 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). ey 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. e straightened CPR is realized mainly by finding the local coordinate system according to the center line. ere are many ways to turn the center line into the RMF coordinate system. e 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 {A I �(a i , b i c i )| i � 1, 2,..., N }, the tangent vector p i � ((A i�2 − A I )/2) is obtained according to the second-order difference of the center point. e main vector and secondary vector algorithms are as follows: Finally, a vector set of coordinates {(p i , n i , b i ) |i � 1, 2, . . ., N} is obtained. e 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 x i and y i , i � 1, 2, . . ., N, the volume data Scientific Programming coordinates corresponding to the gray level at (a i , b i ) in the cross section are as follows.
rough trilinear interpolation, volume data is obtained.

Spherical CPR.
is 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. e 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 A 0 (a 0 , b 0 , c 0 ), there are N center points and the total error of the fitting is as follows.
en, partial derivatives of a 0, b 0 , c 0 , and R are solved to calculate the spherical parameters. e 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. e 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. ere 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. e 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.

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.

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.

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.

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.

Discussion
e 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].
is 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. rough 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.
is 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 Scientific Programming 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. is may be because the spherical CPR maps the blood vessels to the curved surface in the radial direction. en, 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.

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. erefore, in the follow-up study, these issues need to be resolved to achieve the best results.

Data Availability
e data used to support the findings of this study are available from the author upon request.   Scientific Programming