Next Article in Journal
Single-Cell Protein Production as a Strategy to Reincorporate Food Waste and Agro By-Products Back into the Processing Chain
Next Article in Special Issue
PHF3 Technique: A Pyramid Hybrid Feature Fusion Framework for Severity Classification of Ulcerative Colitis Using Endoscopic Images
Previous Article in Journal
Biocompatibility and Connectivity of Semiconductor Nanostructures for Cardiac Tissue Engineering Applications
Previous Article in Special Issue
Classification of Autism and Control Gait in Children Using Multisegment Foot Kinematic Features
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning for Aiding Blood Flow Velocity Estimation Based on Angiography

1
Department of Computer Science and Engineering, Wright State University, Dayton, OH 45435, USA
2
Department of Mechanical and Materials Engineering, Wright State University, Dayton, OH 45435, USA
*
Author to whom correspondence should be addressed.
Bioengineering 2022, 9(11), 622; https://doi.org/10.3390/bioengineering9110622
Submission received: 28 September 2022 / Revised: 24 October 2022 / Accepted: 25 October 2022 / Published: 28 October 2022
(This article belongs to the Special Issue Machine Learning for Biomedical Applications)

Abstract

:
Computational fluid dynamics (CFD) is widely employed to predict hemodynamic characteristics in arterial models, while not friendly to clinical applications due to the complexity of numerical simulations. Alternatively, this work proposed a framework to estimate hemodynamics in vessels based on angiography images using machine learning (ML) algorithms. First, the iodine contrast perfusion in blood was mimicked by a flow of dye diffusing into water in the experimentally validated CFD modeling. The generated projective images from simulations imitated the counterpart of light passing through the flow field as an analogy of X-ray imaging. Thus, the CFD simulation provides both the ground truth velocity field and projective images of dye flow patterns. The rough velocity field was estimated using the optical flow method (OFM) based on 53 projective images. ML training with least absolute shrinkage, selection operator and convolutional neural network was conducted with CFD velocity data as the ground truth and OFM velocity estimation as the input. The performance of each model was evaluated based on mean absolute error and mean squared error, where all models achieved or surpassed the criteria of 3 × 10−3 and 5 × 10−7 m/s, respectively, with a standard deviation less than 1 × 10−6 m/s. Finally, the interpretable regression and ML models were validated with over 613 image sets. The validation results showed that the employed ML model significantly reduced the error rate from 53.5% to 2.5% on average for the v-velocity estimation in comparison with CFD. The ML framework provided an alternative pathway to support clinical diagnosis by predicting hemodynamic information with high efficiency and accuracy.

Graphical Abstract

1. Introduction

According to the statistical data from the World Health Organization, cardiovascular associated diseases have become the topmost cause of death [1,2], and it has been identified that hemodynamic factors play a significant role in the development and progression of such diseases [3,4,5,6]. For example, the development of atherosclerosis is based on the observation that vascular inflammation and plaques are distributed near side branches or arterials stenosis, where blood flow is non-uniform, and at the lesser curvature of bends where the blood flow rate is relatively low [7,8]. The effect of blood flow on the vascular wall is through shear-stress forces, which influences the behavior of endothelial cells, including morphological adaptations and physiological changes.
The methods for estimation of wall shear stress (WSS) can be performed by acquiring three-dimensional (3D) reconstruction of vessel volume using either invasive modalities such as intravascular ultrasound and invasive coronary angiography, or less-invasive techniques, including computed tomography angiography and cardiac magnetic resonance angiography with the application of numerical methods to calculate flow within the reconstructed arterial model [9,10]. 3D reconstruction of the patient-specific vascular models with subsequent computational fluid dynamics (CFD) simulations can be used to predict the nature of blood flow in the human vascular system [11,12,13,14], with specific mesh generation and boundary conditions (BCs). The isolation and generation of BCs are among the most significant challenges in the integration of CFD for assessing the physiologic significance of artery disease [15]. However, the reconstruction of the vascular model using the medical images, the accuracy of the reconstructed geometry, and further the computation resources required for computation are not friendly to the wide application of this methodology in clinical community.
On the other hand, in vivo quantifying hemodynamics by the diagnostic imaging process is also widely investigated [16,17,18,19,20]. To determine hemodynamic characteristics, a high spatial resolution of the blood flow velocity distribution is needed, especially for quantifying the WSS. Premedical images based on digital subtraction angiography (DSA) can be used to estimate the blood flow velocity distribution using intensity-based algorithms, such as the optical flow method (OFM) [16,17,18,19,20]. Specifically, the movement of the contrast pattern is calculated from the DSA images, representing the movement of the local blood flow. However, such a method suffers low accuracy in the predictions of flow characteristics [21]. DSA images involve X-rays that transmit through the patient and produce a contrast projection onto the scintillator plane. The intensity variation is based on how much X-ray energy passes through the nonuniform medium, which results from varying attenuation through muscle, bone, soft tissue, blood, and contrast agent [22,23]. DSA images are generally acquired by transmitting light through a 3D domain, and then projected onto a 2D image. Without isolating a 2D plane within the flow, the images are essentially integrated representations of the entire flow field, which can introduce errors into the calculations, especially when the measurements are inferred as measurements at the center plane of the domain [10]. Kawaji et al. [24] calculated blood velocity by determining displacement over consecutive images with a known elapsed time interval between frames. The uncertainty in the velocity profiles begin to increase when the endpoint becomes unclear, but for simple flows the relative error can be as low as 2.5% [24]. In our earlier work, Yang and Johnson [21] investigated dye visualization specific to a pulsatile flow through a horizontal tube, where OFM underestimated the center plane velocity by 16~24% in the central region and by about 29~43% in the outer region compared to PIV. To increase the accuracy of calculating the velocity distribution, this research proposes the use of machine learning to correct velocity measurements from OFM. Alternatively, inspired by recent developments in data-driven scientific computing, big data, convolutional neural networks (CNN) and deep hidden physics algorithms [25,26], machine learning (ML) has been used in biomedical and bioengineering applications [27,28,29,30,31]. For instance, Raissi et al. have developed a physics-informed deep learning method which used passive scalar contours as input and encoded the Navier–Stokes equations into their algorithm [25]. There is growing potential of artificial intelligence (AI) in detecting hemodynamic information to aid clinical diagnosis by integrating preclinical images and CFD modeling [32,33].
To extend the use of ML, this study used optical flow velocity based on projective images to provide input for the ML model and therefore requires the physics-based flow equations to be solved once (at beginning) as opposed to every time an epoch is conducted. The ML model was used to correct high resolution flow details obtained from OFM to provide more accurate measurements in hemodynamics estimation. More specifically, this work employed CFD modeling to simulate dye perfusion through water, and the results were used to generate a projection-based image similar to DSA. The projective images and velocity distributions served as the input and the ground truth data, respectively, for ML training. The pixel intensity was determined through a discretized form of the light attenuation equation named Beer-Lambert Law [34]. Although blood is non-Newtonian (which was assumed as Newtonian and replaced by water as a pilot study), the purpose of this work was to test the efficiency and accuracy of ML algorithms velocity predictions based on projective images. The detailed framework of this study was shown in Figure 1, specifically in three steps, e.g., (1) simulate dye perfusion in water and generate projective images to provide the flow velocity estimation using OFM and the ground truth velocity from CFD, in which CFD modeling was validated by particle image velocimetry(PIV) experiments; (2) train ML models using the OFM and CFD data; and (3) validate the ML models using both CFD data and parallel in vitro experiments. The presented work has the potential to be employed into clinical applications to automate the flow velocity estimation with high efficiency and accuracy.

2. Materials and Methods

2.1. CFD and OFM Data

Choosing CFD to simulate the dye perfusion in water over experimental dye projection images can facilitate accurate velocity fields for the training of ML algorithms and quantify the error analysis between OFM and ML predictions. In addition, the simulation images can avoid random errors induced in the experiments. In this study, Cradle SC/Tetra 2021 (Software Cradle Co., Ltd., Osaka, Japan) was used to simulate the dye injection into a laminar water flow to obtain the accurate 3D velocity field and obviate experimental uncertainties related to pixel intensities. The accurate velocity field from CFD served as the ground truth for the supervised training of the ML model. The simulation was conducted within a 1 × 1-inch square cross-sectional tube with a length of 1-inch with the dye inlet located in the center (see Figure 2). To minimize computational costs, a fourth of the domain was employed into the simulation. In this work, the blood was simplified as water in simulations and experiments. The governing equations can be written in tensor form as:
u i x i = 0
ρ u i t + ρ ( u j u i ) x j = p x i + μ x j [ u i x j + u j x i ] + ρ g i
ρ ϕ t + ρ u i ϕ x i = ρ D x i [ ϕ x i ]
where u i represents the water/dye velocity, ρ is the density of water/dye which was identical to the measurements in the experiments, p is pressure, μ is viscosity of water/dye which was identical to the properties in the experiments, g i is gravity, ϕ is the dye concentration which is identified as a scalar value 1.0 in the dye injection inlet, D is the dye diffusion coefficient. The coefficient of diffusion was set at 10−9 m2/s as the typical value for dye between 10−10 and 10−9 m2/s [35]. A set of unstructured tetrahedral meshes was generated using the assembled meshing package in Cradle SC/Tetra 2021. A mesh independent study for the quarter model was conducted, and the final mesh with elements of 16,850,005 was adopted for the current study. The mesh size near the wall and in the dye injection region was refined with y+ < 1, where y+ is the dimensionless wall distance.
Four different transient simulations were conducted where the dye concentration and patterns varied in each simulation. Specifically, the first simulation injected dye at a constant rate of 0.005 m/s with a dye radius of 0.37 mm initially and gradually increased the radius throughout time until the radius reached 2.0 mm, which is the same situation as the parallel experiment. Second simulation had intermittent dye injections where dye was injected for 0.1 secs then stopped for 0.25 s, and this process would repeat continuously with a period of 0.35 s. The diameter of the dye was held constant at 2.0 mm for the second simulation. For the third simulation, the dye was injected intermittently in the same pattern as the second simulation, except the dye concentration was no longer uniform at the inlet. The distribution of the dye concentration was represented with a cosine function where the dye concentration at the center was 1.0, and near a radius of 2.0 mm the concentration was 0.54. The fourth simulation involved a uniform dye concentration in the radial direction but varied in a sinusoidal pattern with time. The dye distribution equations are expressed for the third and fourth simulation, respectively, as
ϕ ( x ) = ϕ o cos ( ω x )
ϕ ( t ) = cos ( 4 π 3 t )
In Equation (4), ϕ represents the dye concentration, ϕ o represents a constant concentration value of ϕ o = 1.00, ω is the angular frequency of ω = 500/m. Equation (5) provides the transient cosine wave for the dye concentration, where 4 π 3 provides a period of 1.5 s and t is the time in seconds. These four variations were carried out to represent the impact of different perfusion patterns of the dye on the estimated velocity accuracy. Results from the simulation were exported either every 0.2 s or 0.3 s (in reference to the simulation time), and additional results were exported 0.02 s after the 0.2 or 0.3 s interval. This short time step was necessary for OFM to calculate the velocity between two successive images, as the nature of the OFM algorithm requires the movement of the pattern to be less than 1 pixel to maintain a decent accuracy. Overall, the four cases provided 106 exported result files which would lead to 106 image files or 53 data files after being analyzed with OFM.
Light passing through the domain was simulated to generate projective images. This was accomplished with the Beer-Lambert law [34] which describes the amount of light attenuated through a medium. By solving for the light intensity, I, out of the medium, the overall projection image can be created by dividing the domain into multiple cells and performing successive calculations of the intensity. Variable z represents the direction parallel to the light beam and perpendicular to the flow direction, μ represents the attenuation coefficient, and I o is the initial intensity prior to passing through the element,
d I d z = μ I
I = I o exp ( μ z )
For example, if a single row of elements aligned in the z-direction encounters an initial light source, the first element will decrease the intensity based on the element’s attenuation coefficient (which is directly related to the dye concentration). The output intensity through the first element will then be used as the initial intensity for the second element. This process is continued until the light ray passes through all the elements. Therefore, the intensity can be written in a discretized form as shown below.
I j = I j 1 exp ( μ j z j )
Example of a projective image is shown below in Figure 3, where the darker regions represent locations where dye has attenuated light. The image resolution is 161 × 306 pixels.
Once projective images were generated, OFM was applied to each image pair to calculate velocity vectors at each pixel. The governing equation for OFM is an expression of a brightness constraint, which assumes the intensities are constant from one image to the next.
Q t + V · Q + Q · V = D 2 Q
Here, the intensity of pixel is represented by Q (a matrix for the entire image), Q t is the temporal brightness gradient, the velocity vector is given by V, and D is the diffusion coefficient. Additional details can be found in our previous paper.
Along with the u- and v-velocity components, the intensity gradients in the x- and y-directions were also calculated. Since OFM calculates movements based on pixel intensities, the gradients are of importance as it provides an insight into which vectors were calculated based on low or high intensity gradients. The velocity calculated from OFM is regarded as the test data while the CFD velocities are regarded as the ground truth data for the ML model. The CFD velocities were extracted from the center plane of the simulation as the goal is to improve the OFM results to better represent the velocities in the middle plane of the domain. Once these files were created, they were then used as the training data for the ML algorithm. 423,093 simulated data points representing the flow velocity were generated for the current modeling.

2.2. Experimental Data for Validation

The data discussed above is generated based on CFD results, however, the future application of this work is to apply this method directly to in vivo images such as DSA. Direct application to DSA images is not feasible currently because no method can accurately describe the flow field for validations. Therefore, an in vitro experiment analogous to DSA was created to obtain real images for testing the current method against accurate PIV measurements. Additionally, this provides insight into whether the ML algorithm can correct velocity values that incur error from the in vitro experiment such as non-uniform light intensity throughout the image domain. The experiment consists of a square vertical tube test section (with the same dimension as the counterpart used in the CFD simulation) with a water reservoir and contraction region directly above, as presented in Figure 4. This contraction region leads water from the reservoir to the test section through a gradual cross-sectional change to mitigate the inducing of turbulence. Downstream of the test section is a flow control valve that controls the speed of the flow when coupled with a constant water height in the water reservoir. A pump feeds water into the reservoir where a partition wall, which is slightly shorter than the reservoir walls, allows water to spill over into the adjacent reservoir to maintain a constant water level. Dye is injected in the center of the square tube through the guidance of a centering device to maintain consistent positioning during the injection process. Finally, a convex lens is positioned one focal length away from the LED bulb, where the lens’ position is between the bulb and the test section, so light rays can transmit parallel through the test section thus mitigating non-uniform light intensity on the image.
In the experiments, the water is analogous to blood in DSA images and the dye provides contrast similar to the contrast agent injected in blood vessels. Furthermore, the LED light is comparable to the X-ray source since both transmit through the domain and project contrast agent perfusion onto a 2D plane. A LaVision PIV system consisted of a Nd: Yag laser with a wavelength of 532 nm with a maximum pulse energy of 300 mJ, and a programmable timing unit (PTU), and a 14-bit CCD camera with a resolution of 1392 × 1040 pixel (66 × 49 mm) was employed to conduct PIV measurements. The laser was shaped into a laser sheet of 1 mm in the measurement region to illuminate the flow field. The PTU synchronized the laser and the camera to obtain the particle images with a time delay of 33 ms between images. The flow was seeded with fluorescent red polyethylene microspheres with a diameter ranging from 10 to 45 μ m . The fluorescent emission light from the particle has a wavelength of 610 nm. A long pass filter with a cut-off wavelength of 600 nm was mounted on the camera length to filter out the laser light and only leave the emission light passing through. This fluorescent imaging can effectively remove the light reflection noise from the wall. DaVis 8.0 was used to process the images to obtain 1000 instantaneous velocity distributions with a frame rate of 30 Hz. A multi-pass cross correlation analysis was conducted in DaVis 8.0 with a 32 × 32 pixels interrogation region with 50% overlap, then a second pass with an 8 × 8 pixels window size with 50% overlap. The final velocity vector resolution is 5.2 vectors/mm. The uncertainty in the velocity measurements is estimated to be about 1% of the magnitude. A total of 5071 flow velocity points for OFM velocity and PIV velocity were generated for evaluation of current ML algorithms.
The CFD simulation of the velocity distribution is compared with the PIV measurements in the middle cut plane, as presented in Figure 5. Three lines were extracted from PIV and CFD: 5 mm, 15 mm, and 35 mm. The overall difference in the velocity distribution between the CFD simulation and the PIV measurement is less than 5% of the velocity magnitude, which essentially validated the accuracy of the current simulation results (see Table 1).

2.3. Machine Learning Model

The following sections detail predicting the accurate velocity field with supervised neural network training. Three deep machine learning models with varying numbers of parameters and depths were tested. Regression is a predictive modeling task that involves predicting a numerical output given some input. It is different from classification tasks that involve predicting a class label. Typically, a regression task involves predicting a single numeric value. Although, some tasks require predicting more than one numeric value. These tasks are referred to as multiple-output regression or multi-output regression for short. In multi-output regression, two or more outputs are required for each input sample, and the outputs are required simultaneously. The assumption is that the outputs are a function of the inputs, and u- and v-components of the velocity are correlated. Since OFM calculates a velocity vector for every point in the image, even when the dye is not present (pseudo vectors were calculated in regions without dye), specific regions with the presence of dye were selected for the training and test data. The images generated were 8-bit grayscale images where pixel intensity values are assigned between 0 and 255. The presence of dye in a pixel location decreases the intensity value for that location. Based on observation, pixel values of 80 or less (after considering the image noise) represent regions where dye is dominant and thus represent data points used in the training data or test data sets. This criterion was applied to all the OFM output results, and each valid data point compiles into a single file. Multiple data points correspond with the same XY-coordinates as a result of multiple time instances containing dye at that point. Therefore, all of the duplicates except one are used for training, and the other duplicate was used in the test set. For instance, if the coordinate point (x, y) = (0.001, 0.0253) is near the dye inlet, then there were multiple OFM data sets that contain dye at that coordinate point. Assuming 10 duplicates, one data point was selected randomly for the test set while the remaining 9 points were compiled into the training data. This random selection provided unbiased data for the test set to determine if the ML algorithm was able to predict values accurately.

2.3.1. LASSO Regression Model

A multivariate (multi-input, multi-output) regression model with the L1 penalty was designed, commonly known as LASSO [36]. We selected this model since it achieves sparsity in the estimated model by setting the regression coefficients for features to zero for those features that do not affect the output or target values. We treat this ML model as our baseline model.

2.3.2. Multi-Layer Perceptron Model

A multilayer perceptron (MLP) model is defined for the multi-output regression task defined in the previous section. Each sample has 4 inputs and 2 outputs; therefore, the network requires an input layer that expects 4 inputs in the first hidden layer and 2 nodes in the output layer. The ReLU activation function was used in the hidden layer which has 32 nodes, chosen after some trial and error. The model was fitted using two loss functions and the Adam version of stochastic gradient descent.

2.3.3. CNNs for Multi-Output Regression

CNNs have proven great capability of learning important features from images at the pixel level in order to make useful predictions for both classification and regression problems [37]. Another advantage of this approach, compared to conventional fully connected layer networks, lies in the fact that convolutions provide weight-sharing and sparse connectivity. These properties enable more efficient memory usage to learn the necessary information needed to create a surrogate model. The surrogate model then reconstructs an approximation of the entire velocity field from a given set of boundary conditions. Standard CNN has several convolutional layers followed by fully connected layers (layers where each hidden node is connected to every hidden node in the preceding and subsequent layer), ending with a classification softmax layer (that generates the final classification output). Adapting a classification CNN architecture to regression consists of removing the softmax layer and replacing it with a fully connected regression layer with linear or sigmoid activation. Linear activation means that the transfer function is a straight line. Thus, the activation is proportional to the input and not confined to a specific range. Three convolutional layers were added with ReLU activation and a max pool layer after the first convolutional layer.

2.3.4. Long Short-Term Memory (LSTM) Model

LSTM is a type of Recurrent Neural Network (RNN), i.e., a multi-layer NN. The LSTM architecture was originally introduced by Hochreiter and Schmidhuber [38] with the purpose of overcoming the vanishing or exploding gradients problem. In a network of n hidden layers, n derivatives are multiplied together. If the derivatives are large then the gradient will increase exponentially as we propagate down the model until they eventually explode, known as the problem of exploding gradient. Alternatively, if the derivatives are small then the gradient will decrease exponentially as we propagate through the model until it eventually vanishes, known as the vanishing gradient problem. LSTM allows flow gates, i.e., the input gate, the forget gate, the control gate, and the output gate, as shown in Figure 6. The input gate, the forget gate, the control gate, and the output gate are denoted by i t , f t , c t , and o t , respectively. The details of these four gates are enlightened below.
The input gate, forget gate and control gate are expressed as:
i t = σ ( w i × [ h t 1 , x t ] + b i )
f t = σ ( w f × [ h t 1 , x t ] + b f )
c t ˜ = tanh ( w c × [ h t 1 , x t ] + b c )
c t = f t × c t 1 + i t × c t ˜
The input gate decides which information can be transferred from the earlier cell to the current cell as shown in Equation (10). The forget gate is defined by Equation (11), and it is used to store the information from the input of previous memory or otherwise. The control gate controls the update of the cell, and it is defined in Equation (13). To update the hidden layer ( h t 1 ) and update the output, finally the output gate is used which is given by the following equations:
O t = σ ( w c × [ h t 1 , x t ] + b o )
h t = O t × tanh ( c t )
In the above equations, x t is the input, w represents the corresponding weight matrix of input, b o is the corresponding bias of input, C t 1 is the previous block memory, C t represents the current block memory, c t ˜ as shown in Equation (12) is the vector of new candidate values updated with the tanh layer, h t 1 represents the previous block output, h t represents the current block output. Furthermore, tanh is the hyperbolic tangent function that is used to scale the values in the range of −1 to 1, and σ is the sigmoid activation function, which gives the output between 0 and 1. We designed a sequential model containing LSTM layers with ReLU activations, a dense output layer, and an Adam optimizer with two regression loss functions. We set the input dimension in the first layer and the output dimension in the last layer of the model followed by a regression layer.

2.4. Loss Functions

Conventional regression loss functions are metrics-inspired losses, namely the Mean Absolute Error (MAE), and Mean Squared Error (MSE), defined as
M A E = 1 n i = 1 n | p i g i |
M S E = 1 n i = 1 n ( p i g i ) 2
where predicted (resp. ground truth) values are denoted p i (resp. g i ). We report both the loss functions, as advocated in previous publications [39,40]. The metrics to evaluate the results are Mean Absolute Error (MAE). We repeated 10-fold cross-validation with 10-folds and three repeats training the model with Adam optimizer. Models are implemented with Keras and PyTorch on NVIDIA Tesla T4 GPU.

3. Results and Discussion

In this section, the models discussed were evaluated on providing efficient approximations of flow velocity. Numerical experiments considered four regression models and two loss functions, in which the Mean Absolute Error (MAE) and the Mean Squared Error (MSE) were compared. Table 2 shows an average MAE value across 10 runs of experiments. Hyper-parameter optimization using grid-search with a ten-cross-validation technique was applied to optimize the number of hidden layers, hidden neurons, and the batch size. The number of hidden layers was optimized ranging from 1 to 4 and the number of hidden neurons was optimized ranging from 4 to 20 with an increment of 2. The batch sizes used in parameter tuning were 32, 64, and 128. After applying hyper-parameter optimization, the best hyper-parameters were obtained, there was one hidden layer with 10 hidden neurons, and the batch size was 32. A dropout rate of 0.02 was applied to avoid overfitting after the first hidden layer. Each of the MLP, CNN, and LSTM architectures were ran for 100, 500, 1000, and 2000 epochs. The best results were obtained with 100 epochs for MLP with an execution time of 4 min per 10 epochs and 500 epochs for both CNN and LSTM, as with a higher number of epochs, the average performance decreased.
Multiple regression algorithms were adopted to provide models capable of predicting the velocity field. The deep learning models (MLP, CNN, and LSTM) outperformed the baseline LASSO model. The hypothesis that the relationship between the 2D projection images and the initial and final velocity components can be represented as a multivariate regression problem with improved accuracy has been demonstrated in Table 2. Significant differences across the three deep learning models were not observed. All of the reported models were statistically significant with a p-value of< 0.01 or 0.05. Furthermore, the standard deviation of all the models was less than 1e−6 m/s. However, the MLP model was computationally less expensive and hence, a quantitative analysis of the results in comparison with the baseline OFM and with the standard CFD approach is presented in Figure 7 and Figure 8 for comparisons of both u- and v-components velocity contours. The velocity distribution (both u-component and v-component) can be used to analyze flow characteristics such as the wall shear stress, which is a key parameter in the study of the pathophysiology of vascular diseases.
As shown in Figure 7, the OFM results overestimated the u-component velocity in the central region of the domain, especially downstream, but OFM underestimated the flow between y = 0.005 m and y = 0.01 m. Despite these discrepancies in the u-contours between OFM and CFD, the predicted values were able to match the CFD values between y = 0.005 m and 0.01 m as well as further downstream. There is a discernible difference between the predicted and CFD at the dye inlet, where the predicted values overestimate near the centerline, which can be attributed by the overestimation from the OFM data. Discrepancies of the v-component velocity contours between OFM and CFD are illustrated in Figure 8, where OFM consistently underestimates the velocity especially downstream from y = 0.017 m. However, the predicted values show similar contour patterns as the CFD contour for most of the regions except near the inlet. The predicted inlet exhibits more of a “V” shape whereas the Ground contour demonstrates more of a semicircle appearance for the velocity range near −0.0075 m/s. These contour plots provide insight in the amount of error associated with projective images when analyzed with OFM as well as the accuracy improvement when ML corrections are applied to OFM results.
Furthermore, the velocity profiles at various locations of the flow field were extracted for comparison as shown in Figure 9. Near the inlet, at y = 1.66 mm, the v-component velocity profile for the MLP predictions has trouble matching the CFD results near x = ±0.7 mm to x = ±1.5 mm, where the MLP predictions have “V-shape” in the contour as discussed earlier. Further downstream at y = 6.64 mm, the predicted velocity profile resembles the ground-truth velocity profile well with little discrepancies. These quantitative comparisons of the velocity profiles can be further examined with error analysis in Figure 10 showing a significant reduction in the percentage of error with respect to the ground truth (CFD) for the v-component velocity. Error associated with the predicted values reach as high as 13%, near the inlet, and as low as 2% around y = 0.008 m. It is interesting to observe that the error in OFM is lower at the inlet and increases further downstream, whereas the opposite is true for MLP predictions. The MLP predictions presented larger errors near the inlet as a result of larger variations in the OFM velocities caused by low intensity gradients near the inlet on the image. As the dye moving downstream, the MLP predictions can match the ground truth well. The averaged V-error of about 53.5% in the velocity estimation with OFM has been significantly reduced to 2.5% in average by the current MLP predictions. The fact this model significantly reduces the error downstream of the inlet, provides high hopes for the biomedical community since the regions of high interest are further downstream, such as aneurysms and bifurcations. The current pilot study is focusing on prediction of the velocity distributions. Future studies related to the wall shear stress predictions would focus on the local velocity gradient accuracies, especially near the wall. The current ML model development focused on the 2D velocity map prediction, which limits its use for the complicated 3D flow environment, such as the blood flow in an aneurysm. Another limit is the current model can only predict the velocity, but another important flow information, pressure in the flow field, cannot be predicted. We plan to encode the Navier–Stokes equation into the modeling as recently proposed by Raissi et al. [25], as well as extend the current model to predict the 3D flow feature in the future study.
This research focused on a pilot study to examine the efficiency and accuracy of ML algorithms to predict velocity field based on projective contrast images of flows in a simplified tube model. OFM was applied at the beginning to incorporate physics-based optical flow equations into the velocity prediction, which is more efficient than encoding the Navier–Stokes equations into the ML algorithm. To apply this methodology to clinical applications, further studies with more complex geometries, such as blood vessels and aneurysms, need to be conducted. By providing additional cases and therefore training data, the authors believe this methodology can develop a ML model which could be applied directly to DSA imaging for quick high resolution velocity measurements to obtain wall shear stress measurements.

4. Conclusions

In this study, the flow velocity estimation as a multi-output regression problem was performed. The performance of four machine learning models on simulated CFD images as well as in vitro experimental OFM images were evaluated. Results showed that the performance of all the neural network architectures (MLP, CNN, and LSTM) is comparable. However, the MLP model is significantly less computationally intensive as compared to the deep learning counterparts. The LSTM model has the longest computation time and the best performance compared to CNN and MLP. Both MLP and LSTM models can be used to automate the flow velocity estimation depending on the task and considering the cost for computation. The pilot study in this work established a novel ML framework to predict the velocity field based on OFM velocity estimation on projective contrast images of internal flows.
The following summarizes the main contributions of this work, i.e.,
(1)
We have presented an analysis that ML algorithms are able to correct OFM results from projection-based images significantly reducing the error rate.
(2)
We have extended the literature by considering the interaction of u- and v-components velocity with the intensity gradients on the image in both x- and y-directions.
(3)
We have released the data and code used in this work for reproducibility and further research in this direction.

Author Contributions

Conceptualization, Z.Y.; methodology, M.J., S.P., T.B., H.Y. and Z.Y.; software, S.P., M.J. and H.Y.; validation, S.P. and M.J.; formal analysis, S.P. and M.J.; investigation, S.P. and M.J.; resources, Z.Y.; data curation, S.P., M.J. and H.Y.; writing—original draft preparation, S.P. and M.J.; writing—review and editing, T.B., Z.Y. and H.Y.; visualization, S.P., M.J. and Z.Y.; supervision, T.B. and Z.Y.; project administration, Z.Y.; funding acquisition, Z.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Heart, Lung, and Blood Institute grant number [No. R44HL132664] and Premier Health and Boonshoft School of Medicine Endowment Funding at Wright State University.

Institutional Review Board Statement

No applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data available on request due to restrictions, e.g., privacy or ethical.

Acknowledgments

This study is sponsored by the National Heart, Lung, and Blood Institute with the award No. R44HL132664 and the Premier Health and Boonshoft School of Medicine Endowment Funding at Wright State University (WSU).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. WHO. The Top 10 Causes of Death. 2020; World Health Organization. Available online: https://www.who.int/news-room/fact-sheets/detail/the-top-10-causes-of-death (accessed on 9 December 2020).
  2. Roth, G.A.; Mensah, G.A.; Johnson, C.O.; Addolorato, G.; Ammirati, E.; Baddour, L.M.; Barengo, N.C.; Beaton, A.Z.; Benjamin, E.J.; Benziger, C.P.; et al. Global Burden of Cardiovascular Diseases and Risk Factors, 1990–2019: Update From the GBD 2019 Study. J. Am. Coll. Cardiol. 2020, 76, 2982–3021. [Google Scholar] [CrossRef]
  3. Yi, H.; Johnson, M.; Bramlage, L.C.; Ludwig, B.; Yang, Z. Effects of Pulsatile Flow Rate and Shunt Ratio in Bifurcated Distal Arteries on Hemodynamic Characteristics Involved in Two Patient-Specific Internal Carotid Artery Sidewall Aneurysms: A Numerical Study. Bioengineering 2022, 9, 326. [Google Scholar] [CrossRef]
  4. Meng, H.; Wang, Z.; Hoi, Y.; Gao, L.; Metaxa, E.; Swartz, D.D.; Kolega, J. Complex hemodynamics at the apex of an arterial bifurcation induces vascular remodeling resembling cerebral aneurysm initiation. Stroke 2007, 38, 1924–1931. [Google Scholar] [CrossRef]
  5. Yi, H.; Yang, Z.; Johnson, M.; Bramlage, L.; Ludwig, B. Hemodynamic characteristics in a cerebral aneurysm model using non-Newtonian blood analogues. Phys. Fluids 2022, 34, 103101. [Google Scholar] [CrossRef] [PubMed]
  6. Cooper, L.L.; Rong, J.; Benjamin, E.J.; Larson, M.G.; Levy, D.; Vita, J.A.; Hamburg, N.M.; Vasan, R.S.; Mitchell, G.F. Components of Hemodynamic Load and Cardiovascular Events. Circulation 2015, 131, 354–361. [Google Scholar] [CrossRef]
  7. Chaichana, T.; Sun, Z.; Jewkes, J. Computation of hemodynamics in the left coronary artery with variable angulations. J. Biomech. 2011, 44, 1869–1878. [Google Scholar] [CrossRef] [Green Version]
  8. Davies, P.F.; Polacek, D.C.; Shi, C.; Helmke, B.P. The convergence of haemodynamics, genomics, and endothelial structure in studies of the focal origin of atherosclerosis. Biorheology 2002, 39, 299–306. [Google Scholar]
  9. Lee, B.K.; Kwon, H.M.; Hong, B.K.; Park, B.E.; Suh, S.H.; Cho, M.T.; Lee, C.S.; Kim, M.C.; Kim, C.J.; Yoo, S.S.; et al. Hemodynamic effects on atherosclerosis-prone coronary artery: Wall shear stress/rate distribution and impedance phase angle in coronary and aortic circulation. Yonsei Med. J. 2001, 42, 375–383. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Wong, K.K.; Sun, Z.; Tu, J.; Worthley, S.G.; Mazumdar, J.; Abbott, D. Medical image diagnostics based on computer-aided flow analysis using magnetic resonance images. Comput. Med. Imaging Graph. 2012, 36, 527–541. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Stone, P.H.; Coskun, A.U.; Kinlay, S.; Clark, M.E.; Sonka, M.; Wahle, A.; Ilegbusi, O.J.; Yeghiazarians, Y.; Popma, J.J.; Orav, J.; et al. Effect of endothelial shear stress on the progression of coronary artery disease, vascular remodeling, and in-stent restenosis in humans: In vivo 6-month follow-up study. Circulation 2003, 108, 438–444. [Google Scholar] [CrossRef] [Green Version]
  12. Stone, P.H.; Coskun, A.U.; Yeghiazarians, Y.; Kinlay, S.; Popma, J.J.; Kuntz, R.E.; Feldman, C.L. Prediction of sites of coronary atherosclerosis progression: In vivo profiling of endothelial shear stress, lumen, and outer vessel wall characteristics to predict vascular behavior. Curr. Opin. Cardiol. 2003, 18, 458–470. [Google Scholar] [CrossRef]
  13. Stone, P.H.; Coskun, A.U.; Kinlay, S.; Popma, J.J.; Sonka, M.; Wahle, A.; Yeghiazarians, Y.; Maynard, C.; Kuntz, R.E.; Feldman, C.L. Regions of low endothelial shear stress are the sites where coronary plaque progresses and vascular remodelling occurs in humans: An in vivo serial study. Eur. Heart J. 2007, 28, 705–710. [Google Scholar] [CrossRef]
  14. Coskun, A.U.; Yeghiazarians, Y.; Kinlay, S.; Clark, M.E.; Ilegbusi, O.J.; Wahle, A.; Sonka, M.; Popma, J.J.; Kuntz, R.E.; Feldman, C.L.; et al. Reproducibility of coronary lumen, plaque, and vessel wall reconstruction and of endothelial shear stress measurements in vivo in humans. Catheter. Cardiovasc. Interv. 2003, 60, 67–78. [Google Scholar] [CrossRef]
  15. Lee, B.K.; Kwon, H.M.; Kim, D.; Yoon, Y.W.; Seo, J.K.; Kim, I.J.; Roh, H.W.; Suh, S.H.; Yoo, S.S.; Kim, H.S. Computed numerical analysis of the biomechanical effects on coronary atherogenesis using human hemodynamic and dimensional variables. Yonsei Med. J. 1998, 39, 166–174. [Google Scholar] [CrossRef]
  16. Yang, Z. Optical Flow Method for Blood Flow Velocimetry Based on Digital X-Ray Subtraction Angiography: A Brief Review. Res. Rev. J. Med. Health Sci. 2017, 6, 8–12. [Google Scholar]
  17. Yang, Z.; Yu, H.; Huang, G.P.; Ludwig, B. Divergence Compensatory Optical Flow Method for Blood Velocimetry. J. Biomech. Eng. 2017, 139, 061005. [Google Scholar] [CrossRef]
  18. Cornelius, N.; Kanade, T. Adapting optical-flow to measure object motion in reflectance and x-ray image sequences (abstract only). SIGGRAPH Comput. Graph. 1984, 18, 24–25. [Google Scholar] [CrossRef]
  19. Mongrain, R.; Bertrand, M.; Mailloux, G.E.; Meunier, J.; Bourassa, M.G. Obtaining blood velocity profile from coronary arteriograms via optimally controlled optical flow. In Proceedings of the Computers in Cardiology, Tampere, Finland, 4–7 September 2022; pp. 13–16. [Google Scholar]
  20. Bonnefous, O.; Pereira, V.M.; Ouared, R.; Brina, O.; Aerts, H.; Hermans, R.; van Nijnatten, F.; Stawiaski, J.; Ruijters, D. Quantification of arterial flow using digital subtraction angiography. Med. Phys. 2012, 39, 6264–6275. [Google Scholar] [CrossRef]
  21. Yang, Z.; Johnson, M. Velocimetry based on dye visualization for a pulsatile tubing flow measurement. Appl. Opt. 2019, 58, C7–C13. [Google Scholar] [CrossRef]
  22. Meijering, E.H.W.; Zuiderveld, K.J.; Viergever, M.A. Image Registration for Digital Subtraction Angiography. Int. J. Comput. Vis. 1999, 31, 227–246. [Google Scholar] [CrossRef]
  23. Brody, W.R. Digital Subtraction Angiography. IEEE Trans. Nucl. Sci. 1982, 29, 1176–1180. [Google Scholar] [CrossRef]
  24. Kawaji, M. Two-phase flow measurements using a photochromic dye activation technique. Nucl. Eng. Des. 1998, 184, 379–392. [Google Scholar] [CrossRef]
  25. Raissi, M.; Yazdani, A.; Karniadakis, G.E. Hidden fluid mechanics: Learning velocity and pressure fields from flow visualizations. Science 2020, 367, 1026–1030. [Google Scholar] [CrossRef]
  26. Brunton, S.L.; Noack, B.R.; Koumoutsakos, P. Machine Learning for Fluid Mechanics. Annu. Rev. Fluid Mech. 2020, 52, 477–508. [Google Scholar] [CrossRef] [Green Version]
  27. Jin, W.; Chowienczyk, P.; Alastruey, J. Estimating pulse wave velocity from the radial pressure wave using machine learning algorithms. PLoS ONE 2021, 16, e0245026. [Google Scholar] [CrossRef]
  28. Dritsas, E.; Trigka, M. Stroke Risk Prediction with Machine Learning Techniques. Sensors 2022, 22, 4670. [Google Scholar] [CrossRef]
  29. Lin, A.; van Diemen, P.; Motwani, M.; McElhinney, P.; Otaki, Y.; Han, D.; Kwan, A.; Tzolos, E.; Klein, E.; Kuronuma, K.; et al. Machine Learning From Quantitative Coronary Computed Tomography Angiography Predicts Ischemia And Impaired Myocardial Blood Flow. J. Cardiovasc. Comput. Tomogr. 2021, 15, S3–S4. [Google Scholar] [CrossRef]
  30. Dritsas, E.; Alexiou, S.; Moustakas, K. Cardiovascular Disease Risk Prediction with Supervised Machine Learning Techniques. In Proceedings of the ICT4AWE, Online, 23–25 April 2022; pp. 315–321. [Google Scholar]
  31. Hu, P.; Cai, C.; Yi, H.; Zhao, J.; Feng, Y.; Wang, Q. Aiding Airway Obstruction Diagnosis With Computational Fluid Dynamics and Convolutional Neural Network: A New Perspective and Numerical Case Study. J. Fluids Eng. 2022, 144, 081206. [Google Scholar] [CrossRef]
  32. Shi, Z.; Chen, G.Z.; Mao, L.; Li, X.L.; Zhou, C.S.; Xia, S.; Zhang, Y.X.; Zhang, B.; Hu, B.; Lu, G.M.; et al. Machine Learning–Based Prediction of Small Intracranial Aneurysm Rupture Status Using CTA-Derived Hemodynamics: A Multicenter Study. Am. J. Neuroradiol. 2021, 42, 648–654. [Google Scholar] [CrossRef]
  33. Arzani, A.; Dawson, S.T.M. Data-driven cardiovascular flow modelling: Examples and opportunities. J. R. Soc. Interface 2021, 18, 20200802. [Google Scholar] [CrossRef]
  34. Swinehart, D.F. The beer-lambert law. J. Chem. Educ. 1962, 39, 333–335. [Google Scholar] [CrossRef]
  35. Javadi, A.; Karbaschi, M.; Bastani, D.; Ferri, J.; Kovalchuk, V.; Kovalchuk, N.; Javadi, K.; Miller, R. Marangoni instabilities for convective mobile interfaces during drop exchange: Experimental study and CFD simulation. Colloids Surf. A Physicochem. Eng. Asp. 2014, 441, 846–854. [Google Scholar] [CrossRef]
  36. Tibshirani, R. Regression shrinkage and selection via the lasso. J. R. Stat. Soc. 1996, 58, 67–88. [Google Scholar] [CrossRef]
  37. Ribeiro, M.D.; Rehman, A.; Ahmed, S.; Dengel, A. DeepCFD: Efficient steady-state laminar flow approximation with deep convolutional neural networks. arXiv 2020, arXiv:2004.08826. [Google Scholar]
  38. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  39. Lathuilière, S.; Mesejo, P.; Alameda-Pineda, X.; Horaud, R. A Comprehensive Analysis of Deep Regression. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 42, 2065–2081. [Google Scholar] [CrossRef]
  40. Zhang, J.; Petitjean, C.; Lopez, P.; Ainouz, S. Direct estimation of fetal head circumference from ultrasound images based on regression CNN. In Proceedings of the Third Conference on Medical Imaging with Deep Learning, Montreal, QC, Canada, 6–8 July 2020; pp. 914–922. [Google Scholar]
Figure 1. ML framework for velocity estimations on the dye perfusion.
Figure 1. ML framework for velocity estimations on the dye perfusion.
Bioengineering 09 00622 g001
Figure 2. Schematic geometry for CFD simulations.
Figure 2. Schematic geometry for CFD simulations.
Bioengineering 09 00622 g002
Figure 3. Projective images from case 4 generated from CFD results by using the Beer-Lambert law to simulate light passing through the domain.
Figure 3. Projective images from case 4 generated from CFD results by using the Beer-Lambert law to simulate light passing through the domain.
Bioengineering 09 00622 g003
Figure 4. Schematic of in vitro experiments with the contraction section, dye centering apparatus, and partitioning wall to maintain constant water level.
Figure 4. Schematic of in vitro experiments with the contraction section, dye centering apparatus, and partitioning wall to maintain constant water level.
Bioengineering 09 00622 g004
Figure 5. Velocity distribution comparison in the middle plane of the tube: (a) CFD simulation; (b) PIV experiment.
Figure 5. Velocity distribution comparison in the middle plane of the tube: (a) CFD simulation; (b) PIV experiment.
Bioengineering 09 00622 g005
Figure 6. Structure of our LSTM cell at time t.
Figure 6. Structure of our LSTM cell at time t.
Bioengineering 09 00622 g006
Figure 7. U−contours of the CFD ground truth (left), OFM (middle), and predicted (right) results.
Figure 7. U−contours of the CFD ground truth (left), OFM (middle), and predicted (right) results.
Bioengineering 09 00622 g007
Figure 8. V−contours of the CFD ground truth (left), OFM (middle), and predicted (right) results.
Figure 8. V−contours of the CFD ground truth (left), OFM (middle), and predicted (right) results.
Bioengineering 09 00622 g008
Figure 9. Velocity Vector fields comparison of in silico results at various Y locations: (a) Y = 0.00083 m; (b) Y = 0.00166 m; (c) Y = 0.00332 m; (d) Y = 0.00498 m; (e) Y = 0.00664 m; (f) Y = 0.00830 m; (g) Y = 0.00996 m; (h) Y = 0.01162 m; (i) Y = 0.01328 m.
Figure 9. Velocity Vector fields comparison of in silico results at various Y locations: (a) Y = 0.00083 m; (b) Y = 0.00166 m; (c) Y = 0.00332 m; (d) Y = 0.00498 m; (e) Y = 0.00664 m; (f) Y = 0.00830 m; (g) Y = 0.00996 m; (h) Y = 0.01162 m; (i) Y = 0.01328 m.
Bioengineering 09 00622 g009
Figure 10. Percentage error of OFM estimation and MLP predicted results for v-component velocity with respect to the ground truth data at various Y-locations.
Figure 10. Percentage error of OFM estimation and MLP predicted results for v-component velocity with respect to the ground truth data at various Y-locations.
Bioengineering 09 00622 g010
Table 1. V-velocity validation between CFD and PIV at 5 mm, 15 mm, and 35 mm downstream of the inlet.
Table 1. V-velocity validation between CFD and PIV at 5 mm, 15 mm, and 35 mm downstream of the inlet.
Locations5 mm15 mm35 mm
Relative Error (%)3.34.83.5
Table 2. Performance of regression models in terms of mean absolute error (mae) for two different loss functions: MSE, MAE.
Table 2. Performance of regression models in terms of mean absolute error (mae) for two different loss functions: MSE, MAE.
LASSOMLPCNNLSTM
Validation with simulated test data
MAE (m/s)2 × 10−4 †2 × 10−4 *4 × 10−4 *4 × 10−4 *
MSE (m/s)3 × 10−8 †5 × 10−8 *7 × 10−8 †8 × 10−8 *
Validation with in vitro experimental data
MAE (m/s)3 × 10−3 †5 × 10−4 *6 × 10−4 †6 × 10−4 *
MSE (m/s)5 × 10−7 †4 × 10−8 *5 × 10−8 *8 × 10−8 †
* indicates p-value < 0.01, † indicates p-value < 0.05.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Padhee, S.; Johnson, M.; Yi, H.; Banerjee, T.; Yang, Z. Machine Learning for Aiding Blood Flow Velocity Estimation Based on Angiography. Bioengineering 2022, 9, 622. https://doi.org/10.3390/bioengineering9110622

AMA Style

Padhee S, Johnson M, Yi H, Banerjee T, Yang Z. Machine Learning for Aiding Blood Flow Velocity Estimation Based on Angiography. Bioengineering. 2022; 9(11):622. https://doi.org/10.3390/bioengineering9110622

Chicago/Turabian Style

Padhee, Swati, Mark Johnson, Hang Yi, Tanvi Banerjee, and Zifeng Yang. 2022. "Machine Learning for Aiding Blood Flow Velocity Estimation Based on Angiography" Bioengineering 9, no. 11: 622. https://doi.org/10.3390/bioengineering9110622

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop