Abstract
Patient-specific cardiovascular simulations are an integral part of cardiovascular research and are increasingly finding use in clinical practice. A primary factor hindering large cohort studies and clinical utilization of cardiovascular simulations is the time-consuming process of constructing simulation-suitable computer models from medical image data. Methods have been proposed to automate the model construction process, but are tailored to either vascular or cardiac models. We herein propose a framework, MeshGrow, that is capable of combining automated modeling of cardiac and extended vascular territories. Namely, we demonstrate that this method can be used to reconstruct the main cardiac chambers along with the aorta and its main sub-branches, and returns a simulation-suitable mesh with a defined aortic valve surface and other surfaces needed for boundary condition specification. MeshGrow combines two different machine learning based techniques to address the specific challenges involved with cardiac and vascular model construction. This results in a two-stage approach; (a) meshing the cardiac structures and (b) growing the vasculature out from it. We present results of our method on five CT test datasets and compare predictions against state-of-the-art benchmark methods, as well as ground truth manually constructed models. Results show that MeshGrow achieves higher metric scores than benchmark methods on the test data. Additionally, we showcase the applicability of the method by running three-dimensional computational fluid dynamics simulations with two of the test cases. With this work, we demonstrate a method that can automate the construction of combined cardiac and vascular models for patient-specific cardiovascular hemodynamic simulation.
Keywords: Cardiovascular modeling, cardiovascular simulation, deep learning, digital twin, medical image segmentation, patient-specific hemodynamics, computational fluid dynamics, machine learning-based mesh construction
Introduction
Patient-specific computational modeling of cardiovascular function is a fundamental part of cardiovascular research and increasingly a part of patient care.1,2 Specifically, patient-specific simulations of tissue mechanics and fluid dynamics gain insight into physiological function otherwise difficult, or impossible, to observe; for example, tissue mechanics, cardiac electrodynamics, and hemodynamic data such as pressure gradient or wall shear stress. These patient-specific simulations require anatomically accurate geometric models representing the domain of interest. These geometric models are typically built from medical image scans of patients, where the outlines of different tissues in the medical image (pixels/voxels) are used for reference for model construction. A primary challenge remains the time-consuming and costly process of geometric model construction from medical image data. This challenge limits the ability to consider larger cohort studies as well as timely decision support often needed in clinical settings. 1 Also, because model construction is often manually performed and guided by user discretion, the process lacks standardization and the outcome may largely depend on the modeler. 3
Several software tools have been developed for patient-specific cardiovascular modeling. Most of these, such as SimVascular and CRIMSON,4,5 focus on vascular modeling. The common workflow involves a user manually generating pathlines along vessel centers, followed by defining vessel lumen contours in planes perpendicular to these pathlines. These 2D contours are then lofted to construct a 3D surface mesh of the vasculature. This process heavily depends on manual input and user discretion, requiring experienced users to construct pathlines and refine 2D segmentations. Even with advancements in 2D segmentation techniques, such as level-set methods and machine learning,6–8 manual correction remains necessary. Additionally, selecting segmentation points along pathlines can lead to contour misalignment, complicating the 3D lofting process. Therefore, there is a clear need for accessible, automated vascular model construction methods.
Custom cardiac modeling software has not been developed to the same extent as vascular modeling tools. Most modelers rely on general medical image segmentation software such as 3D Slicer. 9 Cardiac segmentation presents unique challenges due to the unclear boundaries between heart chambers in medical images. Moreover, temporal modeling introduces additional complexity, requiring multiple consistent cardiac models across different time points in a sequence. Prior methods have primarily used basic segmentation techniques, including manual voxel labeling and thresholding. 10 While semi-automated approaches, such as level-set methods and region growing, offer potential improvements, they still require manual correction and parameter tuning. 10
Recently, machine learning methods for segmentation have gained popularity as a possible avenue for automating the modeling process. For medical image segmentation, deep neural networks (DNNs) have shown promising results, especially for voxel-wise classification. Specifically, convolutional neural networks (CNNs) have been deployed for cardiac segmentation yielding good voxel classification accuracy but struggling with the resulting staircase artifacts and disconnected bodies, none of which is desirable when performing simulations.11–13
Alternative approaches, such as graph neural networks, have been used to deform mesh templates, improving topological consistency. 14 However, this method introduces overlapping elements, which the recent method LinFlo-Net addresses by enforcing continuous and smooth deformations. 15
For vascular segmentation, DNNs have been trained to classify voxels corresponding to coronary arteries, the aorta, and other structures.16–18 While these methods achieve high accuracy for large vessels with well-defined boundaries, they struggle with smaller branches, often resulting in disconnected structures. This limitation poses a significant challenge for simulation applications, where a unified mesh is required. SeqSeg addressed this issue by enhancing local vessel segmentation and prioritizing smaller branches. 19 Beyond voxel classification, CNNs have also been applied to vascular tracking 20 and bifurcation detection, 21 but these approaches require integration with 2D or 3D lumen predictions to create complete vascular models.
To our knowledge, cardiac and vascular model construction methods have been developed largely independently. This is likely due to the historical separation of cardiac and vascular simulation applications. However, the physiology and pathology of the heart and its primary branches are closely interconnected. To address these applications, there is a need to integrate both cardiac and vascular components to produce comprehensive 3D models with well-defined intersection boundaries. We herein address this by developing a novel approach, MeshGrow. Namely, since vasculature and cardiac structure anatomies differ significantly topologically, we combine two different modeling approaches. First, we model the cardiac chambers by deforming a cardiac mesh template using LinFlo-Net, 15 and from this we seed and grow out attached vasculature using SeqSeg. 19 Overall, MeshGrow is capable of:
Automatically locating the cardiac region in a medical image volume and generating a patient-specific cardiac model.
Automatically locating the aortic root from the predicted cardiac model and initializing an automatic vascular tracking and segmentation method.
Automatically constructing an extensive vascular segmentation.
Returning a patient-specific cardiovascular mesh with an inlet, outlets and an aortic valve surface defined for boundary condition specification.
Methods
Figure 1 shows the method workflow. The input to the proposed method is a 3D angiography containing the heart and aorta. This “global” image volume is fed into a heart localization module that deploys a neural network to perform a “rough” cardiac segmentation. This segmentation is used to crop the global image volume to produce a smaller volume localized around the heart. This cardiac sub-volume is used for a detailed 8-class cardiac region segmentation. The 8 classes are: the left ventricular myocardium, left ventricle lumen, right ventricle lumen, left atrium lumen, right atrium lumen, ascending aortic arch lumen, pulmonary artery lumen, and aortic valve surface. The cardiac region segmentation is then used to place a seed point in the aortic root to initialize the segmentation of the aorta and its sub-branches. Note that the cardiac mesh template also contains a truncated ascending aortic arch lumen. As described later in this section, we use this to align the SeqSeg segmentation of the aorta and connecting arteries to the cardiac model. The cardiac and vascular segmentations are finally combined into one using an assembly module and output as surface meshes after post processing.
Figure 1.
The MeshGrow method workflow. MeshGrow takes as input a medical image scan and returns a patient-specific cardiovascular mesh.
Cardiac localization and segmentation
The first step is to locate the heart in the global image volume. We utilize a U-Net CNN for the task. Namely, we trained a model to perform binary voxel classification on the global image volume, where each voxel is labeled as either (belonging to cardiac chambers) or (belonging to any other tissue or organ). Specifically, voxels belonging to right or left ventricle or right or left atrium are labeled 1. We utilize the nnU-Net framework for hyperparameter selection and training. 22 See Table 4 in Appendix for specifications of model architecture and data processing.
Table 4.
U-Net architecture and training specifications for the nnU-Net models.
| CT (SeqSeg) | |
|---|---|
| Intensity Normalization | 0.5/99.5% clip foreground z-score |
| Image Spacing | 0.200, 0.0547, 0.0547 |
| Target Spacing | 0.200, 0.0547, 0.0547 |
| Patch Size | [20, 80, 80] |
| Batch Size | 33 |
| Max Nr. Features | 320 |
| Nr. Stages Encoder | 5 |
| Nr. Stages Decoder | 4 |
| Nr. Layers per Stage | 2 |
| Nr. Pooling Ops. per Axis | [2, 4, 4] |
| Conv. Kernel Size | [3, 3, 3] |
| CT (Cardiac) | |
| Intensity Normalization | 0.5/99.5% clip + foreground z-score |
| Image Spacing | 1.5, 1.5, 1.5 |
| Target Spacing | 1.5, 1.5, 1.5 |
| Patch Size | [192, 112, 112] |
| Batch Size | 2 |
| Max Nr. Features | 320 |
| Nr. Stages Encoder | 6 |
| Nr. Stages Decoder | 5 |
| Nr. Layers per Stage | 2 |
| Nr. Pooling Ops. per Axis | [5, 4, 4] |
| Conv. Kernel Size | [3, 3, 3] |
We use LinFlo-Net 15 for cardiac mesh generation. This method transforms a template cardiac mesh to capture the patient-specific cardiac morphology as seen in a 3D clinical image (e.g. CT scan). LinFlo-Net is chosen for its demonstrated ability to predict accurate simulation-ready cardiac meshes. Briefly, the method utilizes a two-stage mesh deformation process consisting of a learned affine transformation (scaling, translation, and rotation) followed by a diffeomorphic mesh deformation process wherein the vertices of the template mesh are integrated along a learned static 3D flow vector field.
The affine transformation uses a 3D CNN and predicts the 9 parameters of the transformation (3 parameters each for scale, translation, rotation). This module is trained to minimize the chamfer distance in the L1-norm between the template mesh and target mesh. The diffeomorphic mesh deformation module consists of a U-Net architecture that is trained to produce a dense flow vector field in the image space. This module is trained to minimize a weighted sum of various losses including:
Chamfer distance in the L1-norm.
Normal consistency between template and ground truth meshes
Physics-based loss term that prevents volume collapse
Mesh regularization, which includes edge length, normal consistency across faces, and Laplacian smoothing loss.
The reader is referred to the original article 15 for further details on each of these loss terms.
The template mesh is a multi-component surface mesh representing the blood pools of the four cardiac chambers, the myocardium of the left ventricle, and segments of the pulmonary artery and aorta where they attach to the heart. Since the vascular segmentation method that we later use requires a seed-point for initialization, we added an additional region to the template mesh consisting of the aortic valve surface. Figure 2 shows the template mesh with the aortic root highlighted. This aortic valve surface in the template was created manually using MeshLab 23 by cutting the aorta template mesh with a plane.
Figure 2.
(a) Template mesh used for cardiac segmentation showing the added aortic valve surface. (b) Automatic initialization of aorta tracking starting from the aortic valve, determining direction using the aortic valve and left ventricle mesh regions.
Vascular segmentation
Vascular segmentation was achieved using the Sequential Segmentation (SeqSeg) method. 19 The method constructs vessel segmentation by piece-wise addition of local segmentations predicted using a deep-learning-based U-Net convolutional neural network. SeqSeg automatically tracks vasculature by inferring direction and bifurcations from local vessel features. The method can be applied to various vascular territories, but requires initial specification of a seed point, tracking direction, and estimate of the initial local vessel radius.
SeqSeg deploys a DNN to perform vascular segmentation of local sub-volumes, including a 3D U-Net convolutional neural network with hyperparameters determined from the nnU-Net framework, see Isensee et al. 22 for further details on methodology and Appendix Table 4 for specific hyperparameters chosen. For training we sampled each global vascular segmentation in the training dataset around the global vascular centerline. This improves use of available annotated data and introduces a beneficial inductive bias in our neural network model that allows it to generalize to vessels not annotated in training datasets, as demonstrated in Sveinsson Cepero and Shadden. 19 Several augmentation techniques are used during training such as rotation, scaling, Gaussian noise, Gaussian blur, brightness, contrast, simulation of low resolution, gamma correction and mirroring; see Isensee et al. 22 for full implementation details. We use a combined loss of Dice score and binary cross entropy calculated between a pair of raw image data and its ground truth binary vascular segmentation map ; .
Automatic initialization of vascular segmentation
We automatically initialize SeqSeg at the aortic root by processing the cardiac mesh prediction. Let us denote regions of mesh vertices as sets , where where is a vertex and is the cardiac class label map for . For initialization we use the regions representing left ventricle blood pool (LV), labeled and aortic valve surface (AV), labeled . Additionally, define corresponding sets of normal vectors , for each class . For automatic initialization, these labeled regions are processed as follows:
The average node location is calculated for sets AV and LV; , and the average normal vector is calculated for AV; ,
- There are two possible normals to the surface, the direction of tracking is chosen as the AV average normal facing away from center of set LV
(1)
Initial seed point is chosen as radii distance into the aorta; where is aortic root radius estimate. We observed that only a rough radius estimate is enough for initialization; we thus used a fixed value of .
Tracking and assembly
Once initialized, SeqSeg extracts the first sub-volume around the aortic root for segmentation. A centerline is extracted from the segmentation, which is then used to determine direction and size of the vessel, and this information is used to choose the next point to move the segmentation window to. In the case of multiple branches, one point is chosen to move to next and the others are saved in a bifurcation queue for subsequent tracking, see Sveinsson Cepero and Shadden 19 for further details. The global vascular segmentation is assembled together from all local segmentations predicted while tracking. Note that many of these local segmentations overlap and their probabilistic map output prediction are averaged together. We thresholded the averaged global probabilistic map using a value of to get a binarized segmentation. A global vascular surface mesh was then created using marching cubes on the binarized segmentation, which was then smoothed, and a global centerline also extracted.
Outlets of the global vasculature mesh are detected using the global centerline. Where outlets are detected, caps are defined using a box clip boolean operation on the surface mesh to obtain a planar surface that can be used for boundary condition specification. Caps are planar surfaces defined at the cross section of vascular domain boundaries. The location of the node and the tangent of the centerline there are used to position and rotate the box clip operator. The box side length is calculated according to where is the estimated radius of the vessel at that point, approximated from the local segmentation.
Union of segmentations and valve definition
Two aortic segmentations are obtained; one from LinFlo-Net, , and another from SeqSeg, . We prioritize the segmentation in a rectangular volume defined around the aortic valve to ensure correspondence to the predicted cardiac chambers and elsewhere we use .
Let denote a padded bounding box around the aortic valve surface, defined as the valve’s minimum axis–aligned bounding box enlarged by voxels in the directions. The final aortic segmentation is chosen voxel-wise as
| (2) |
where are the padding values applied to the bounding box in the respective spatial dimensions. Fewer voxels were padded to direction because of image non-isotropic spacing, see Appendix Table 7 for exact size values for different image spacing. We pad the bounding box to ensure we capture the aortic valve surface, where only an approximate size is needed. Since the aortic valve is labeled in the LinFlo-Net prediction, this allows the aortic valve interface to be defined in the final combined model.
Once the final multiclass cardiovascular segmentation is defined with corresponding aortic segmentation , the marching cubes algorithm is applied to obtain a surface mesh representation of the geometric model. 24 At interfaces where different segmentations border, we obtain vertices belonging to both meshed structures. This facilitates boundary condition specification for simulation. Finally, we perform global Laplace smoothing to get a smooth surface mesh ready for volumetric meshing and simulation. The end product is a global surface mesh with defined regions for different cardiac and vascular regions, as well as the aortic valve boundary and vascular caps.
Experimental setup and metrics
We use the same data as Narayanan et al. 15 to train LinFlo-Net. The training data includes the multi-modality whole heart segmentation challenge (MMWHS), 13 orCaScore challenge, 25 left atrial wall thickness challenge (SLAWT), 26 and left-atrial segmentation challenge (LASC). 27 In total we had 101 CT samples in our LinFlo-Net training dataset. We used the same data as Sveinsson Cepero and Shadden 19 to train the neural network for SeqSeg, a total of 33 aortic models from the Vascular Model Repository (VMR, vascularmodel.com). See Sveinsson Cepero and Shadden 19 for further details on training data.
Since the objective of this work is to present a unified method to generate consistent cardiac and vascular segmentations, it is important to consider image samples that capture the structures of interest sufficiently for testing. In particular, we are interested in cardiac and aortic segmentations, therefore we are interested in image samples that capture the whole heart along with the descending aorta and which include corresponding segmentation masks for comparative analysis. Datasets containing both cardiac and vascular segmentations are not readily available and, therefore, the authors had to partially manually construct the test dataset in-house, as described next.
Five CT test datasets that contained the heart, aorta and aortic branches, were selected from the VMR. See Appendix Table 5 for patient demographic details. These test samples were not included in training data. The image spacing ranged mm in-plane and mm out-of-plane, see Appendix Table 7. In-plane resolution was for all CT scans, with number of slices ranging , see Appendix Table 7. Aortic coverage was from aortic root to descending aorta for all cases, with all except case 5 (O34421) containing parts of left subclavian artery, right subclavian artery, right common carotid and left common carotid arteries. Case 5 only covered parts of the brachiocephalic trunk as well as left subclavian artery and left common carotid artery.
These datasets already contained ground-truth segmentations of the vasculature to use to evaluate the predictive accuracy of MeshGrow, however, since the VMR only provides vascular segmentation, we had to generate the ground-truth cardiac segmentations. To do this, we used TotalSegmentator 28 to generate the preliminary ground-truth cardiac segmentations that were then interrogated and manually corrected as needed. The segmentations generated directly from TotalSegmentator for all samples except O34421 appeared reasonable. This dataset required manual correction of the segmentation of the myocardium, as shown in Appendix Figure 7. Note, this particular failure case underscores the efficacy of a template-based method (which we adopt in MeshGrow) since mesh templates provide a strong shape prior for model predictions, enforcing topological consistency and anatomical accuracy.
Figure 7.
(a) Cardiac segmentations of case 5 (ID O34421) produced by TotalSegmentator contain a hole at the apex of the myocardium. (b) We manually fixed this segmentation for evaluation purposes.
For quantitative comparison between the segmentation results from our method, and the ground truth segmentations, , we compute Dice score . For aortic vascular segmentation results, we do a more comprehensive analysis and compute Hausdorff distance where and centerline overlap where is the ground truth centerline. Since our vascular segmentations are, in most cases, more extensive than the ground truth being compared to, we clip the prediction to place outlets at the same locations.
The cardiac segmentation method LinFlo-Net has been evaluated and compared with benchmarks in Narayanan et al. 15 and therefore is not reconsidered here. However, since the vascular region segmentation depends on the cardiac segmentation method, it requires further validation. For comparison with state-of-the-art benchmark segmentation methods, as in Sveinsson Cepero and Shadden 19 we compared against 2D and 3D nnU-Net segmentation predictions of the vascular segmentations on the test datasets. The benchmark models were trained on the same datasets as the method proposed. For full details on network architecture and data preprocessing, see Table 2 in Sveinsson Cepero and Shadden. 19 Multiple augmentation techniques were deployed during training such as rotation, scaling, Gaussian noise and blur, see Supplementary Note 4 in Isensee et al. 22 for full details.
Both benchmark and SeqSeg models were trained using stochastic gradient descent with Nesterov momentum. Initial learning rate of 0.01 was chosen with a learning rate scheduler, see Isensee et al. 22 for full details. A single NVIDIA Geforce RTX 2080ti GPU (11 GB GPU memory) on the Savio High Performance Computing cluster at the University of California, Berkeley was used for training.
Simulation
To demonstrate the applicability of our proposed unified cardiac and vascular modeling approach, we performed left ventricle-aorta hemodynamic simulations. We chose two arbitrary cardiovascular models in the test set. We isolated the left ventricle and aortic meshes for simulation. As these were single time point images, we required a way to predict cardiac motion over time. To do this, left ventricle contraction was mapped from realistic motion derived from a separate patient with gated CT. Namely, using our recent cardiac shape modeling approach, 29 we first trained a neural ordinary differential equation (NODE) parameterized by time-series motion codes to fit the separate patient’s whole heart anatomy throughout the cardiac cycle. We then trained a second NODE to learn the diffeomorphic transformation between this patient’s anatomy at the static time point and the cardiovascular anatomies of our test cases. The learned cardiac motion from the first NODE (described by the motion codes) was subsequently mapped onto the test cases to generate their motion over the cardiac cycle. We performed a 3D blood flow computational fluid dynamics simulation using svFSI, 30 where the arbitrary Lagrangian and Eulerian (ALE) formulation of the incompressible Navier–Stokes equations was solved using the finite element method. We used the synthetic left ventricle and aorta motion to prescribe velocity boundary conditions on the left ventricle and aorta wall, and used a linear elastostatic model to solve the motion of the entire computational domain. We prescribed zero pressure boundary conditions at vessel cap outlets for simplicity. We simulated systole where the aortic valve is open. We obtain simulation results for velocity, pressure and wall shear stress over time.
Results
Geometric
We tested the proposed method on five withheld CT test cases. Appendix Tables 1 and 2 show the quantitative metric results for our method on these test cases, vascular and cardiac, respectively.
Table 1.
Quantitative metric results for aortic vascular regions.
| Case | Name | |||
|---|---|---|---|---|
| 1 | 0174 | 0.972 | 0.412 | 0.984 |
| 2 | 0176 | 0.949 | 0.921 | 0.994 |
| 3 | 0188 | 0.953 | 1.065 | 0.964 |
| 4 | O15032 | 0.957 | 0.668 | 0.988 |
| 5 | O34421 | 0.964 | 0.443 | 0.961 |
| Avg. | – | 0.959 | 0.702 | 0.978 |
| Std. | – | 0.008 | 0.258 | 0.013 |
, (voxels), and are defined in Methods section. Avg.: average; std.: standard deviation.
Table 2.
Quantitative metric results for cardiac chambers of the geometric model.
| Case | Name | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0174 | 0.866 | 0.915 | 0.955 | 0.916 | 0.943 | 0.856 | 0.964 | |
| 2 | 0176 | 0.806 | 0.814 | 0.909 | 0.891 | 0.913 | 0.692 | 0.953 | |
| 3 | 0188 | 0.831 | 0.934 | 0.940 | 0.823 | 0.840 | 0.852 | 0.957 | |
| 4 | O15032 | 0.880 | 0.937 | 0.959 | 0.927 | 0.926 | 0.678 | 0.949 | |
| 5 | O34421 | 0.861 | 0.862 | 0.937 | 0.866 | 0.892 | 0.893 | 0.972 | |
| Avg. | – | 0.849 | 0.892 | 0.940 | 0.885 | 0.903 | 0.794 | 0.959 | |
| Std. | – | 0.027 | 0.048 | 0.018 | 0.037 | 0.036 | 0.090 | 0.008 | |
| Case | Name | ||||||||
| 1 | 0174 | 5.663 | 3.950 | 4.547 | 6.049 | 7.234 | 61.467 | 7.684 | |
| 2 | 0176 | 11.512 | 13.365 | 9.696 | 11.068 | 9.190 | 58.498 | 35.473 | |
| 3 | 0188 | 9.925 | 6.056 | 5.899 | 11.472 | 12.140 | 62.595 | 10.491 | |
| 4 | O15032 | 8.379 | 4.148 | 3.936 | 6.058 | 7.246 | 60.035 | 31.448 | |
| 5 | O34421 | 11.481 | 12.976 | 12.137 | 12.510 | 8.924 | 63.157 | 7.449 | |
| Avg. | – | 9.392 | 8.099 | 7.243 | 9.431 | 8.947 | 61.150 | 18.509 | |
| Std. | – | 2.194 | 4.207 | 3.162 | 2.798 | 1.793 | 1.703 | 12.321 |
Cardiac chambers include : myocardium, : left atrium, : left ventricle, : right atrium, : right ventricle, : pulmonary artery, and : aorta. and are defined in Methods section. Avg.: average; std.: standard deviation.
The method begins by performing a ‘‘rough’’ binary cardiac segmentation in the global image volume to estimate the location and bounds of the cardiac structures. See Figure 3 for qualitative comparison of the binary segmentation with ground truth cardiac models for the five held out CT test cases.
Figure 3.
Comparing the ‘‘rough’’ binary cardiac segmentations with the ground truth for the CT test set.
After localizing the cardiac structures and extracting a sub-volume around its bounds, the method predicts a multiclass cardiac model. The Dice score and Hausdorff distance results for the different cardiac regions are presented in Appendix Table 2 for the 5 test datasets. The average Dice score for each region is shown in bold font. Of the cardiac structures, the Dice score was highest for the ventricles; on average and , for the left and right, respectively. On average, the Dice score for atrium predictions were and for the left and right, respectively. The Hausdorff distance results show most cardiac structures achieving scores in the range of voxels on average, except for the vascular regions where the pulmonary artery and aorta get and voxels, respectively. The resulting meshes are presented for comparison with ground truth models in the first two columns in Figure 4.
Figure 4.
Qualitative results for our method compared to ground truth segmentations. From left: cardiac region ground truth, cardiac region prediction results (from LinFlo-Net), aorta ground truth, aorta prediction results (from SeqSeg), and the final combined cardiovascular model.
The seed point for initiating aortic segmentation is determined from the aortic root predicted in the cardiac model. To test the robustness of seed point size to initialize SeqSeg tracking, we try a range of radii values cm, for which normal aortic root size typically ranges. 31 Results are presented in Appendix Table 6, where initialization works for all sizes except for cm where it failed for one case, indicating SeqSeg robustness to different seed point size values. To test the method robustness to seed location, the displacement factor was perturbed to range with Appendix Table 6 showing successful SeqSeg initialization for all values.
Appendix Figure 6 shows the vascular segmentation growing from the cardiac mesh for case 2. The quantitative metrics comparing the predictions with the ground-truth for the five CT test cases are presented in Appendix Table 1. On average, our method achieved a Dice score of , Hausdorff distance of (in voxels), and centerline overlap of . For a qualitative comparison, the predicted vascular segmentations and the ground truth models are shown in Figure 4, third and fourth columns. The resulting cardiac and vascular segmentations combined into unified cardiovascular models are shown in the last column of Figure 4.
Figure 6.
Seed for SeqSeg placed in the aortic root of the predicted cardiac mesh. SeqSeg takes steps to grow the aortic segmentation out from the cardiac mesh. Displayed are the cardiac mesh (a), and final aortic segmentation (d) as well as two intermediate states (b,c).
For the comparison with vascular segmentation using the state-of-the-art 2D and 3D nnU-Net benchmark method, 22 quantitative metric results are presented in Appendix Table 3. On average, the benchmark methods achieve Dice score of , Hausdorff distance of voxels and centerline overlap score of . Our method outperformed the benchmark for vascular segmentations for all metrics presented.
Table 3.
Quantitative comparisons for aortic vascular region test set CT cases between state-of-the-art 2D nnU-Net and 3D nnU-Net segmentation methods using the dice score ( ), Hausdorff distance ( , voxels), and centerline overlap ( ).
| Case | Name | 2D U-Net | 3D U-Net | 2D U-Net | 3D U-Net | 2D U-Net | 3D U-Net |
|---|---|---|---|---|---|---|---|
| 1 | 0174 | 0.923 | 0.901 | 1.281 | 1.976 | 0.951 | 0.939 |
| 2 | 0176 | 0.845 | 0.865 | 1.544 | 1.804 | 0.916 | 0.992 |
| 3 | 0188 | 0.947 | 0.946 | 0.991 | 0.999 | 0.951 | 0.942 |
| 4 | O15032 | 0.951 | 0.938 | 3.237 | 3.216 | 0.911 | 0.864 |
| 5 | O34421 | 0.934 | 0.932 | 1.358 | 1.473 | 1.000 | 1.000 |
| Avg. | – | 0.920 | 0.916 | 1.682 | 1.894 | 0.946 | 0.947 |
| Std. | – | 0.039 | 0.030 | 0.798 | 0.740 | 0.032 | 0.049 |
Avg.: average; std.: standard deviation.
For a runtime comparison of methods, we additionally report approximate inference times. The MMWHS paper 13 claims that it takes 6 10 hours for a complete manual cardiac segmentation. Inference time for LinFlo-Net is under 10s per sample running on CPU. SeqSeg inference takes 20 40 minutes for aortic tree vascular segmentation compared to 8 10 hours for a manual segmentation. 19 Additionally, SeqSeg runs automatically whereas manual model construction requires manual input from an expert during runtime.
Simulation
To demonstrate the method’s ability to produce simulation-ready models, we ran hemodynamic simulations for two arbitrary cases in the test set. Figure 5 shows simulation results for cases 4 and 5. We display streamlines that pass through the aortic valve and wall shear stress magnitude during systole.
Figure 5.
Hemodynamic simulation results using surface meshes acquired using MeshGrow (cases 4 and 5 in Appendix Tables 1 to 3). Deformation boundary condition was prescribed on LV with pressure prescribed at outlets and an open aortic valve (a,d). Streamlines passing through aortic valve (color coded for velocity magnitude) (b,e) and wall shear stress (WSS) magnitude (c,f) are shown during systole.
Discussion
We presented a novel automatic cardiovascular model construction method. The method takes in a medical image scan of a patient as input and outputs a patient-specific three-dimensional simulation-ready mesh of the cardiac chambers and the aorta with defined inlets, outlets and aortic valve interface. This is, to our knowledge, the first combined automatic cardiac and vascular model construction method.
Two independent deep-learning-based modeling approaches for cardiac and vascular model construction were used. Both approaches require neural network training. We trained and tested the method on a dataset of CT image scans. We compared the predictions on held-out test datasets to the corresponding manually constructed 3D models. The cardiac chamber segmentations achieved, on average, Dice scores of , , , , and for the myocardium, left atrium, left ventricle, right atrium, and right ventricle, respectively. Because of the nature of SeqSeg being a step-wise growth approach, the vascular segmentations often extend further than the ground truth cap placements. After placing caps at the same locations, the vascular segmentations, on average, obtained a Dice score of , Hausdorff distance score of voxels, and centerline overlap score of . We compared the vascular segmentation results against the state-of-the-art nnU-Net method and showed that the proposed method outperformed 2D and 3D benchmarks for all metrics considered.
Inspired by the template-deformation approaches of Kong, Narayanan, and Shadden,14,15 we adopted the LinFlo-Net paradigm for predicting cardiac chambers. For predicting vasculature, however, the greater topological variability makes template deformation less suitable, so we instead used the step-based vessel-tracking approach of SeqSeg. In this work, we focused on modeling of aortic vasculature for LV-aortic simulations. In future work, we hope that SeqSeg can similarly be applied to modeling of the pulmonary arteries or other connected vasculature.
Because the downstream vascular structures originate from well-defined valve locations, tracking methods that require seed points, such as SeqSeg, become straightforward to deploy. Rather than searching the full image for vascular roots, seed points can be placed directly from the predicted cardiac model. As presented in Appendix Table 6, SeqSeg initialization is robust to seed size and placement, making initialization even simpler.
A primary limitation of this work is the size of the test dataset. No public dataset containing both cardiac and vascular ground truth models currently exists, which required us to build our own and constrained its scale. We hope this work will be expanded to the evaluation of additional image sets, and also the inclusion of other image types, namely MR. Further assessment of the robustness of SeqSeg’s automatic initialization is also needed, including experiments that incorporate segmentation errors. Lastly, future work could explore how these machine-learning-based modeling approaches affect downstream simulation results.
Conclusion
We present an automated method to construct three-dimensional geometric models of the heart and aortic vasculature from medical imaging. We hope this work can facilitate patient-specific cardiovascular simulation research and its further entry into clinical settings for patient care. Future directions can include investigating the effects of machine learning based automated model construction methods on simulation results as well as incorporating additional anatomical features, for example, pulmonary arteries, valve models, and veins.
Acknowledgments
The authors thank the members of the Shadden Lab at the University of California, Berkeley and the Cardiovascular Biomechanics Computation Lab at Stanford University for their support and valuable discussions.
Appendix
Table 5.
Patient demographics and hemodynamic data for the included study.
| ID | Dx | Age | Sex | Wt | Ht | HR | BP |
|---|---|---|---|---|---|---|---|
| 0174 | MFS | 18 | M | 58.4 | 183.5 | 75 | 100/64 |
| 0176 | MFS | 25 | M | 77 | 193 | 125 | 104/59 |
| O34421 | SVGD | 71.5 9.5 | F/M 1/13 | – | – | – | – |
| O15032 | SVGD | 71.5 9.5 | F/M 1/13 | – | – | – | – |
| 0188 | CAD | 50 | F | – | – | 62 | – |
Abbreviations: ID model identifier; dx diagnosis (MFS: Marfan syndrome, H: healthy, SVGD: saphenous vein graft disease, CAD: coronary artery disease); age years; sex (F/M) female/male; wt weight (kg); ht height (cm); HR heart rate (beats per minute); BP systolic/diastolic cuff blood pressure (mmHg). Entries marked “–” indicate unavailable metadata. Note: O34421 and O15032 are distinct models from the same publication, and their reported patient demographics are identical aggregate statistics.
Table 6.
Robustness to seed point size and placement in aortic root as described in Method section.
| Seed size ( ) | 0174 | 0176 | 0188 | O15032 | O34421 |
|---|---|---|---|---|---|
| 1.8 cm | ✓ | ✓ | ✓ | ✓ | X |
| 1.6 cm | ✓ | ✓ | ✓ | ✓ | ✓ |
| 1.4 cm | ✓ | ✓ | ✓ | ✓ | ✓ |
| 1.3 cm | ✓ | ✓ | ✓ | ✓ | ✓ |
| 1.2 cm | ✓ | ✓ | ✓ | ✓ | ✓ |
| 1.0 cm | ✓ | ✓ | ✓ | ✓ | ✓ |
| 0.8 cm | ✓ | ✓ | ✓ | ✓ | ✓ |
| Seed distance ( ) | |||||
| 1.0 | ✓ | ✓ | ✓ | ✓ | ✓ |
| 1.5 | ✓ | ✓ | ✓ | ✓ | ✓ |
| 2.0 | ✓ | ✓ | ✓ | ✓ | ✓ |
| 2.5 | ✓ | ✓ | ✓ | ✓ | ✓ |
| 3.0 | ✓ | ✓ | ✓ | ✓ | ✓ |
Automatic initialization of vascular segmentation. Showing whether SeqSeg initializes correctly and tracks down the aorta using different radius values for each patient and a displacement for direction.
Table 7.
Test dataset CT image details and physical dimensions of a pixel patch (in cm).
Footnotes
ORCID iDs: Numi Sveinsson Cepero https://orcid.org/0009-0000-6389-6631
Fanwei Kong https://orcid.org/0000-0003-1190-565X
Shawn C. Shadden https://orcid.org/0000-0001-7561-1568
Ethical approval: No ethical approval was needed for this study. Patient data was pre-existing, anonymized, and obtained from the publicly available repository Vascular Model Repository at vascularmodel.com.
Contributor statement: NSC, AN, SCS conceptualized the study. NSC, AN developed the MeshGrow framework and conducted experiments. NSC, AN curated the datasets and performed validation. SCS supervised the project. FK generated mesh motion and conducted simulations. NSC, AN wrote the manuscript, SCS edited manuscript. NSC, SCS contributed to the interpretation of results. All authors approved the final version.
Funding: The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was made possible by NSF Awards No. 1663747 and 2310910. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the NSF.
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
References
- 1.Gray RA, Pathmanathan P. Patient-specific cardiovascular computational modeling: diversity of personalization and challenges. J Cardiovasc Transl Res 2018; 11: 80–88. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Marsden AL, Reddy VM, Shadden SC, et al. A new multiparameter approach to computational simulation for Fontan assessment and redesign. Congenit Heart Dis 2010; 5: 104–117. [DOI] [PubMed] [Google Scholar]
- 3.Paritala PK, Anbananthan H, Hautaniemi J, et al. Reproducibility of the computational fluid dynamic analysis of a cerebral aneurysm monitored over a decade. Sci Rep 2023; 13: 219. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Arthurs CJ, Khlebnikov R, Melville A, et al. CRIMSON: an open-source software framework for cardiovascular integrated modelling and simulation. PLoS Comput Biol 2021; 17: e1008881. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Updegrove A, Wilson NM, Merkow J, et al. SimVascular: an open source pipeline for cardiovascular simulation. Ann Biomed Eng 2017; 45: 525–541. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Maher G, Parker D, Wilson N, et al. Neural network vessel lumen regression for automated lumen cross-section segmentation in cardiovascular image-based modeling. Cardiovasc Eng Technol 2020; 11: 621–635. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Maher G, Wilson N, Marsden A. Accelerating cardiovascular model building with convolutional neural networks. Med Biol Eng Comput 2019; 57: 2319–2335. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Zohios C, Kossioris G, Papaharilaou Y. Geometrical methods for level set based abdominal aortic aneurysm thrombus and outer wall 2D image segmentation. Comput Methods Progr Biomed 2012; 107: 202–217. [DOI] [PubMed] [Google Scholar]
- 9.Fedorov A, Beichel R, Kalpathy-Cramer J, et al. 3D slicer as an image computing platform for the quantitative imaging network. Magn Reson Imaging 2012; 30: 1323–1341. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Lopez-Perez A, Sebastian R, Ferrero JM. Three-dimensional cardiac computational modelling: methods, features and applications. Biomed Eng Online 2015; 14: 35. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Kong F, Shadden SC. Automating model generation for image-based cardiac flow simulation. J Heat Transfer 2020; 142: 111011. [DOI] [PubMed] [Google Scholar]
- 12.Kong F, Wilson N, Shadden S. A deep-learning approach for direct whole-heart mesh reconstruction. Med Image Anal 2021; 74: 102222. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Zhuang X, Li L, Payer C, et al. Evaluation of algorithms for multi-modality whole heart segmentation: an open-access grand challenge. Med Image Anal 2019; 58: 101537. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Kong F, Shadden SC. Learning whole heart mesh generation from patient images for computational simulations. IEEE Trans Med Imaging 2023; 42: 533–545. [DOI] [PubMed] [Google Scholar]
- 15.Narayanan A, Kong F, Shadden S. LinFlo-Net: a two-stage deep learning method to generate simulation ready meshes of the heart. J Biomech Eng 2024; 146: 1–41. [DOI] [PubMed] [Google Scholar]
- 16.Gharleghi R, Adikari D, Ellenberger K, et al. Automated segmentation of normal and diseased coronary arteries—the ASOCA challenge. Comput Med Imaging Graph 2022; 97: 102049. [DOI] [PubMed] [Google Scholar]
- 17.Moccia S, De Momi E, El Hadji S, et al. Blood vessel segmentation algorithms—review of methods, datasets and evaluation metrics. Comput Methods Programs Biomed 2018; 158: 71–91. [DOI] [PubMed] [Google Scholar]
- 18.Montalt-Tordera J, Pajaziti E, Jones R, et al. Automatic segmentation of the great arteries for computational hemodynamic assessment. J Cardiovasc Magn Reson 2022; 24: 57. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Sveinsson Cepero N, Shadden SC. SeqSeg: learning local segments for automatic vascular model construction. Ann Biomed Eng 2025; 53: 158–179. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Wolterink JM, Hamersvelt RW, Viergever MA, et al. Coronary artery centerline extraction in cardiac CT angiography using a CNN-based orientation classifier. Med Image Anal 2019; 51: 46–60. [DOI] [PubMed] [Google Scholar]
- 21.Li Y, Ren T, Li J, et al. VBNet: an end-to-end 3D neural network for vessel bifurcation point detection in mesoscopic brain images. Comput Methods Programs Biomed 2022; 214: 106567. [DOI] [PubMed] [Google Scholar]
- 22.Isensee F, Jaeger PF, Kohl SAA, et al. nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nat Methods 2021; 18: 203–211. [DOI] [PubMed] [Google Scholar]
- 23.Cignoni P, Callieri M, Corsini M, et al. MeshLab: an open-source mesh processing tool. In: Scarano V, Chiara RD and Erra U (eds) Eurographics italian chapter conference, 2008. The Eurographics Association. ISBN 978-3-905673-68-5.
- 24.Lorensen WE, Cline HE. Marching cubes: a high resolution 3D surface construction algorithm. SIGGRAPH Comput Graph 1987; 21: 163–169. [Google Scholar]
- 25.Wolterink JM, Leiner T, De Vos BD, et al. An evaluation of automatic coronary artery calcium scoring methods with cardiac CT using the orCaScore framework. Med Phys 2016; 43: 2361–2373. [DOI] [PubMed] [Google Scholar]
- 26.Karim R, Blake LE, Inoue J, et al. Algorithms for left atrial wall segmentation and thickness—evaluation on an open-source CT and MRI image database. Med Image Anal 2018; 50: 36–53. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Tobon-Gomez C, Geers AJ, Peters J, et al. Benchmark for algorithms segmenting the left atrium from 3D CT and MRI datasets. IEEE Trans Med Imag 2015; 34: 1460–1473. [DOI] [PubMed] [Google Scholar]
- 28.Wasserthal J, Breit HC, Meyer MT, et al. TotalSegmentator: robust segmentation of 104 anatomic structures in CT images. Radiol: Artif Intell 2023; 5: e230024. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Kong F, Stocker S, Choi PS, et al. SDF4CHD: generative modeling of cardiac anatomies with congenital heart defects. Med Image Anal 2024; 97: 103293. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Zhu C, Vedula V, Parker D, et al. svFSI: a multiphysics package for integrated cardiac modeling. J Open Source Softw 2022; 7: 4118. [Google Scholar]
- 31.Patel HN, Miyoshi T, Addetia K, et al. Normal values of aortic root size according to age, sex, and race: results of the world alliance of societies of echocardiography study. J Am Soc Echocardiogr 2022; 35: 267–274. [DOI] [PMC free article] [PubMed] [Google Scholar]







