Li CaipersName, Lei RenpersName, Yongheng WangpersName, Wenxian XiepersName, Guangyu ZhupersName, Hao GaopersName (2021date). “Surrogate models based on machine learning methods for parameter estimation of left ventricular myocardium.” Royal Society Open Sciencetitle·j.
Object of study — machine-learning surrogate modelsterm·mth (KNN, XGBoostterm·ai, MLPterm·ai) for estimating left ventricular myocardial parameters
Research question — whether ML surrogate modelsterm·mth can replace a finite-element LV model for fast parameter estimationterm·key
Contribution — a comparison showing XGBoostterm·ai is the best of three surrogates for predicting LV diastolic dynamics and estimating parameters
phenomenon · claim-type · cross-domain-transfer · mechanism · claim-relation · replication-status · limitation — grounded in the full text| phenomenon | fast parameter inference with machine-learning surrogates of a cardiac finite-element model — “For each prediction, the KNN model takes 0.08 s, and 0.02 s for the XGBoost, and 0.005 s for the MLP model, all are significantly less than the forward ABAQUS simulation, which takes around 6 min for one run.” | |
| claim-type | method — “Our results further suggest that the XGBoost model is better for predicting the LV diastolic dynamics and estimating passive parameters than other two surrogate models.” | |
| method — evidence | — “In this study, we generate 10 000 samples using the Latin hypercube sampling, of which 90% are used for training and the remainder are for testing.” | |
| object of study — evidence | — “In this paper, we have studied three surrogate models based on machine learning (ML) methods for fast parameter estimation of left ventricular (LV) myocardium.” | |
| research question — evidence | — “In this paper, we have studied three surrogate models based on machine learning (ML) methods for fast parameter estimation of left ventricular (LV) myocardium.” | |
| contribution — evidence | — “Our results further suggest that the XGBoost model is better for predicting the LV diastolic dynamics and estimating passive parameters than other two surrogate models.” | |
| mechanism | q3 unidentifiability q3 is hard to infer because collagen and myofibres are not fully engaged at normal physiological pressures. — “q 3 is related to nonlinear response of collagen network and myofibres [ 12 ], which are not fully engaged under normal physiological pressure loadings” | mechanisms[0] |
| sense | surrogate model - a statistical stand-in for an expensive finite-element simulation, used here to speed up inverse parameter estimation — “the surrogate model, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burden and complexity” | senses[0] |
| effect direction | surrogate model —causes→ computational burden — reduces — “the surrogate model, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burden and complexity” — “can greatly reduce the computational burden” | concept_edges[0] |
| relation | surrogate model —causes→ computational burden — can greatly reduce — “the surrogate model, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burden and complexity” | concept_edges[0] |
| weight | surrogate model —causes→ computational burden — 0.8 — “the surrogate model, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burden and complexity” | concept_edges[0] |
| relation | XGBoost —same-as→ eXtreme Gradient Boosting — (eXtreme Gradient Boosting) — “in particular XGBoost (eXtreme Gradient Boosting), a boosting tree model” | concept_edges[1] |
| weight | XGBoost —same-as→ eXtreme Gradient Boosting — 0.95 — “in particular XGBoost (eXtreme Gradient Boosting), a boosting tree model” | concept_edges[1] |
| relation | MLP —is-a→ feed-forward artificial neural network — is a class of — “MLP is a class of feed-forward artificial neural network [ 43 ], consisting of at least three layers of nodes: an input layer, a hidden layer and an output layer.” — “MLP is a class of feed-forward artificial neural network” | concept_edges[2] |
| weight | MLP —is-a→ feed-forward artificial neural network — 0.9 — “MLP is a class of feed-forward artificial neural network [ 43 ], consisting of at least three layers of nodes: an input layer, a hidden layer and an output layer.” | concept_edges[2] |
| relation | KNN model —contrasted-with→ XGBoost — much poorer compared with — “While the predictions from the KNN model are much poorer compared with the XGBoost and MLP models, in particular for large true values.” | concept_edges[3] |
| weight | KNN model —contrasted-with→ XGBoost — 0.8 — “While the predictions from the KNN model are much poorer compared with the XGBoost and MLP models, in particular for large true values.” | concept_edges[3] |
| replication | original | |
| limitation | All data come from one human left ventricle. — “One limitation of the current approach is that all the data are generated from one single human LV, while LV function is different for different subjects, e.g. LV geometry, material property.” | limitations[0] |
| limitation | LV geometry must be included as an input for the models to generalise. — “The very large MSEs in table 6 clearly suggest that the LV geometry needs to be included as input variables.” | limitations[1] |
| limitation | The LV geometry from in vivo images is not stress free. — “A further limitation is that the LV geometry was reconstructed from in vivo images, which is not stress free because of the non-zero blood pressure in the LV cavity” | limitations[2] |
finding · quantity · variable · definition · key-term — grounded in the full text| finding | Surrogate predictions take milliseconds against about 6 minutes per ABAQUS simulation. — “For each prediction, the KNN model takes 0.08 s, and 0.02 s for the XGBoost, and 0.005 s for the MLP model, all are significantly less than the forward ABAQUS simulation, which takes around 6 min for one run.” | content_tags.findings[0] |
| finding | q4 appears unidentifiable with the XGBoost and MLP models. — “Thus, q 4 seems unidentifiable when using the XGBoost and MLP models even with fixed q 1 = 1 and q 2 = 1.” | content_tags.findings[1] |
| finding | The KNN model's large uncertainties make it unsuitable for parameter inference. — “The large uncertainties associated with the KNN model suggests its unsuitability for inferring constitutive parameters by replacing a FE LV model.” | content_tags.findings[2] |
| finding | A two-hidden-layer network did no better than the one-layer MLP. — “Our result shows that the mean R 2 score for the testing data is almost the same as using the one hidden-layer neural network, which may suggest that the one-layer MLP can learn the LV FE model in diastole well.” | content_tags.findings[3] |
| quantity | 10 000 — — “In this study, we generate 10 000 samples using the Latin hypercube sampling, of which 90% are used for training and the remainder are for testing.” | content_tags.quantities[0] |
| quantity | 63 h — — “To inversely infer unknown parameters using the forward FE LV model as in [ 35 ], 378 forward ABAQUS simulations are carried out, which takes about 63 h (almost 3 days).” | content_tags.quantities[1] |
| definition | R 2 — “R 2 represents the proportion of variance that has been explained by input parameters in a model.” | content_tags.definitions[0] |
| key-terms | surrogate model, machine learning, XGBoost, multilayer perceptron, parameter estimation, left ventricle, finite-element method, inverse problem |
| concept | surrogate model — a fast-running statistical approximation of the mathematical model allowing rapid prediction — “the surrogate model, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burden and complexity” | concepts[0] |
| concept | computational burden — not defined in this paper's own words — “the surrogate model, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burden and complexity” | concepts[1] |
| concept | XGBoost — a boosting tree model — “in particular XGBoost (eXtreme Gradient Boosting), a boosting tree model” | concepts[2] |
| concept | eXtreme Gradient Boosting — a boosting tree model — “in particular XGBoost (eXtreme Gradient Boosting), a boosting tree model” | concepts[3] |
| concept | MLP — a class of feed-forward artificial neural network — “MLP is a class of feed-forward artificial neural network [ 43 ], consisting of at least three layers of nodes: an input layer, a hidden layer and an output layer.” | concepts[4] |
| concept | feed-forward artificial neural network — not defined in this paper's own words in this sentence — “MLP is a class of feed-forward artificial neural network [ 43 ], consisting of at least three layers of nodes: an input layer, a hidden layer and an output layer.” | concepts[5] |
| concept | KNN model — not defined in this paper's own words in this sentence — “While the predictions from the KNN model are much poorer compared with the XGBoost and MLP models, in particular for large true values.” | concepts[6] |
Full text — tagged
Surrogate modelsterm·mth based on machine learningterm·key methods for parameter estimationterm·key of left ventricular myocardium Abstract A long-standing problem at the frontier of biomechanical studies is to develop fast methods capable of estimating material properties from clinical data. In this paper, we have studied three surrogate modelsterm·mth based on machine learningterm·key (ML) methods for fast parameter estimationterm·key of left ventricular (LV) myocardium. We use three ML methods named K-nearest neighbour (KNN), XGBoostterm·ai and multi-layer perceptron (MLPterm·ai) to emulate the relationships between pressure and volume strains during the diastolic filling. Firstly, to train the surrogate modelsterm·mth, a forward finite-element simulator of LV diastolic filling is used. Then the training data are projected in a low-dimensional parametrized space. Next, three ML models are trained to learn the relationships of pressure–volume and pressure–strain. Finally, an inverse parameter estimationterm·key problem is formulated by using those trained surrogate modelsterm·mth. Our results show that the three ML models can learn the relationships of pressure–volume and pressure–strain very well, and the parameter inference using the surrogate modelsterm·mth can be carried out in minutes. Estimated parameters from both the XGBoostterm·ai and MLPterm·ai models have much less uncertainties compared with the KNN modelterm·ai. Our results further suggest that the XGBoostterm·ai model is better for predicting the LV diastolic dynamics and estimating passive parameters than other two surrogate modelsterm·mth. Further studies are warranted to investigate how XGBoostterm·ai can be used for emulating cardiac pump function in a multi-physics and multi-scale framework.
Keywords: parameter estimationterm·key, finite-element methodterm·key, surrogate modelterm·mth, machine learningterm·key method, inverse problemterm·key Introduction Heart disease, such as myocardial infarction, has been seriously affecting the quality of life of human beings [ 1 ]. Early diagnosis and treatment can effectively reduce the incidence and the mortality of heart disease [ 2 ]. In recent years, with the development of medical image technology, such as magnetic resonance imaging (MRI), it has provided paramount data for describing the structure and function of human heart non-invasively [ 3 ]. While imaging data alone does not tell the whole story of heart function, e.g. the stress and myocardial stiffness, etc., mathematical modelling and numerical simulation of cardiac function, broadly termed as in silico medicine, have been considered as the next generation of medicine for deciphering the mechanism of heart function physiologically and pathologically [ 4 , 5 ].
Finite-element methodterm·key (FEM) has been successfully applied to cardiac modelling in the past several decades [ 6 – 10 ]. Myocardial material is generally considered to be a hyper-elastic material with a strong nonlinear anisotropic stress response [ 11 ]. Many constitutive laws have been used to describe myocardial material behaviours, including isotropic models, transversely isotropic models and, more recently, orthotropic models [ 12 ]. In particular, the Holzapfel–Ogden law is a structure-based orthotropic constitutive law that not only accurately describes the mechanical behaviour of the myocardium well from various experimental data [ 13 ], but also has been successfully applied to subject-specific cardiac models purely based on in vivo routine imaging data [ 14 ].
In general, material parameter estimationterm·key of a FEM heart model is formulated as an inverse problemterm·key [ 14 – 18 ]; for example, it requires solving a constrained optimization problem [ 19 , 20 ] by minimizing the mismatch between limited measured data and the FEM model predictions through finding potential material parameters. This constrained optimization problem can be solved by some gradient-based methods [ 21 ], such as the Newton method, the conjugate gradient method, and intelligent methods (also known as nature-inspired methods) [ 22 , 23 ], e.g. the genetic algorithms [ 24 ] and the particle swarm method [ 25 ]. The gradient-based optimization methods are generally easy to implement and may converge quickly, but cannot guarantee a global optimization. On the other hand, although the evolutionary methods converge slowly, especially for higher-dimensional problems, they can theoretically guarantee a global optimization. When the actual forward problem (high-fidelity model) is computationally intensive and difficult to solve, it further leads to significant computational demand for inferring unknown parameters. To reduce the computational expenses in a constrained optimization problem, surrogate modelsterm·mth, which are statistical approximations of the forward problems have been developed for fast parameter inference in biomechanical cardiac models (examples can be found in [ 26 , 27 ]). By using surrogate modelsterm·mth, rapid solutions can be quickly computed instead of simulating the computationally expensive FEM model which will speed up the optimization process dramatically, potentially in real time. Surrogate modelsterm·mth have also been widely used in certain engineering problems, like aerospace systems among other disciplines [ 28 , 29 ].
Recent studies have shown that myocardial property could be a potential biomarker of predicting ventricular pump function recovery post-myocardial infarction [ 14 ]. Estimation of myocardial material parameters from image-based models has attracted intensive interest by formulating a gradient-based inverse problemterm·key [ 15 ] or using machine learningterm·key (ML)-based surrogate approaches for fast parameter inferences [ 11 , 27 ]. By using ML models, the behaviours of the left ventricular (LV) in response to changes in material properties, loads and boundary conditions etc. can be predicted in real time, and can be further applied to the design of medical instruments and monitoring heart condition [ 30 ]. For instance, Liang et al. [ 31 ] have been the first put forward the deep learning technique, a multilayer neural network, as a surrogate of FEM for stress analysis, and the trained model was capable of predicting the stress distributions of aorta by replacing the complex structural finite-element analysis with an average error of less than 1% for ML-predicted stress distribution. Dabiri et al. [ 30 ] adopted eXtreme Gradient Boostingterm·ai (XGBoostterm·ai) and Cubist to predict the LV pressures, volumes and stresses by training them with hundreds of forward FEM simulations of a biomechanical LV model, and their results showed that the surrogate ML models can predict LV mechanics very accurately and are much faster than the FEM models. However model calibration using the ML-based surrogate modelterm·mth has not been carried out in these two studies [ 30 , 31 ]. Di Achille et al. [ 32 ] inferred the unloading LV geometry used Gaussian process and further statistically learned the infarct shape and size on LV performance in patients extracted from a public database [ 33 ]. More recently, Longobardi et al. [ 34 ] predicted left ventricular contractile function via Gaussian process emulation in aortic-banded rats, the Bayesian history matching was applied to constrain the initial parameter sets in order to exclude those points which generate non-physiological biomechanical models. They further performed a Sobol sensitivity analysis using the trained emulator. Most of the studies mentioned above have been focused on demonstrating the feasibility, reliability and accuracy of emulating the cardiac models with various ML approaches, and only a few studies have investigated how the inference problem of unknown parameters can be accelerated using ML surrogate modelsterm·mth. For example, Noe et al. [ 26 ] and Davies et al. [ 27 ] both have presented a statistical emulation framework for emulating LV mechanics using Gaussian process aiming for accelerating the parameter estimationterm·key of myocardium from in vivo data. Tens of thousands of simulations of a LV biomechanical model have been performed to train their statistical emulation framework. In both studies, LV cavity volume and 24 circumferential strains at end-diastole were used for training the emulator, but not the dynamics in diastole. They also have demonstrated that the computational costs can be reduced by about three orders of magnitude.
In this paper, we develop three ML-based surrogate modelsterm·mth for LV passive mechanics in diastole for model calibration. Firstly, the original high-dimensional material parameter space is projected to a low-dimensional space following the previous studies [ 27 ], and the training data are obtained by running forward simulations with sampled parameters from this low-dimensional space. Then ML methods are tuned to learn the relationships between pressure–volume and pressure–strain, respectively. This is different from the studies of [ 26 , 27 ] in which only the end-diastolic state was learned. Finally, the trained surrogate modelsterm·mth are applied to formulate an inverse problemterm·key for estimating passive parameters of myocardium.
Methods Biomechanical model of LV passive dynamics In this section, we will introduce LV passive dynamics in diastole. A human LV model from our previous studies are used here as shown in figure 1 with 53 548 nodes and 48 050 hexagonal elements. A rule-based approach is used to generate the layered myofibre structures within the myocardium, they are the fibre direction ( f ), the sheet direction ( s ) and the sheet-normal ( n ). In this work, the fibre angle α linearly rotates from −60° to 60° from endocardium to epicardium, and the sheet angle β linearly rotates from −45° to 45° in a similar way, and n = f × s . Details of the LV model reconstruction can be found in [ 7 , 8 ].
Visualization of the LV geometry. ( f , s , n ) are the fibre, sheet and sheet-normal axes, as described in the text, and ( W c , W l , W r ) are coordinate axes that indicate the local circumferential, longitudinal and radial axes. The helix angle α is defined to be the angle between f and W c in the plane spanned by W c and W l , and the sheet angle β is defined to be the angle between s and W r in the plane spanned by W l and W r . The grey colour represents the epicardium and the green colour represents the endocardium.
The myocardium is described by a nearly incompressible orthotropic hyper-elastic material strain energy function (Ψ) developed in [ 12 ], namely the H-O law, where a, b, a f , b f , a s , b s , a fs , b fs are material parameters, the term (1/2) K ( J − 1) 2 accounts for the incompressibility of myocardium, and K is a constant bulk modulus (10 6 Pa). I 1 , I 4i , I 8fs ( i = f, s) are the invariants along myofibre, sheet and sheet-normal directions, respectively, in which C = F T F is the right Cauchy–Green deformation tensor and F is the deformation gradient. f 0 , s 0 and n 0 are the layered fibre structure in the reference configuration. In the current configuration, the fibre structure is defined as The passive response of the LV dynamics in diastole is implemented and solved using the finite-element (FE) method in a general-purpose FE package ABAQUS (Simulia, Providence, RI, USA). The LV basal surface is fixed in the long-axial direction ( W l -axis) and the circumferential direction ( W c -axis), but allowing radial expansion, see figure 1 . A linearly ramped pressure from 0 to 8 mm Hg is applied to the endocardial surface with 25 equal loading steps, and results are saved at each step. The LV cavity volume and principal strains at certain locations are chosen from the forward FE simulations, they are the maximum principal strain ( ɛ max ), which is related to myofibre stretch, and the minimum principal strain ( ɛ min ), which is related to wall thinning in diastole. In detail, to extract principal strains, 20 locations within the LV wall are randomly chosen using random function in Matlab [ 35 ], and then the maximum and minimum principal strains are spatially averaged at each loading step. Note that we only select 20 random positions once, and the same 20 positions are used for different simulations to extract strain data. The ventricular cavity volume is the volume enclosed by the endocardial surface. The scatter point in figure 2 shows the relationships between the pressure and the cavity volume, the mean maximum and minimum principal strains from one simulation in diastole. Published studies have found that exponential functions can characterize the nonlinear relationship between the pressure and the LV cavity volume very well [ 36 ]. For example, based on ex vivo human heart experiments, Klotz et al. [ 36 ] found that the relationship between the normalized volume ( v n ) and the loaded pressure ( p ) can be approximated with p = A n v n B n , in which A n and B n are coefficients, and both are almost invariant among subjects and species. Thus, in this study, we assume the relationships between the pressure and the LV cavity volume, the mean maximum and minimum principal strains also comply with the exponential function, as suggested by Klotz et al. [ 36 ], specifically in which v n = ( v − v 0 )/ v 0 is the normalized volume with respect to the initial value v 0 , ε ¯ max and ε ¯ min are the mean maximum and minimum principal strains at chosen 20 positions. α 0 and β 0 can be least-square fitted to the p – v n curve. α 1 and β 1 are derived from the p – ε ¯ max curve, and α 2 and β 2 are derived from the p – ε ¯ min curve. Because the minimum principal strain is negative, we take its absolute value in equation ( 2.4 ). Figure 2 shows the results from one simulation, the p – v n , p – ε ¯ max and p – ε ¯ min are all fitted well with equation ( 2.4 ). Therefore, the output features from a forward ABAQUS simulation are reduced to three pairs of data for describing LV dynamics in diastole, rather than three different curves discretized with 75 data points.
A simple example of end-diastolic pressure–normalized volume and pressure–mean principal strain relationships. The discrete points are the original data from the forward simulation, the solid line is the curve fitting to the original data using the expressions in equation ( 2.4 ). ( a ) represents the curve fitting to the pressure and the normalized volume. ( b ) and ( c ) represent the curve fitting between the pressure and the mean maximum, minimum principal strains, respectively.
It has been shown that there is a strong correlation among the eight parameters in equation ( 2.1 ) [ 35 ], thus, it can be very challenging to uniquely determine all eight parameters by using only end-diastolic strains and volume. Following two recent studies from Noe et al. [ 26 ] and Davies et al. [ 27 ], the eight-dimensional parameter space is projected into a four-dimensional space, where q = ( q 1 , q 2 , q 3 , q 4 ) ∈ [0.1, 5] 4 are the reduced parameters, a 0 = 0.22 kPa, b 0 = 1.62, a f0 = 2.43 kPa, b f0 = 1.83, a s0 = 0.39 kPa, b s0 = 0.77, a fs0 = 0.39 kPa, b fs0 = 1.70 are the empirical reference values for a healthy LV model [ 37 ]. The range of q is adopted from [ 26 , 27 ] which was derived from the population average values reported in [ 37 ].
Surrogate modelterm·mth One of the major obstacles of finite-element modelling in cardiac mechanics is the long computational time and tremendous computational resources, in particular if an inverse problemterm·key is formulated using finite-element cardiac models. One way of alleviating this burden is to use ML surrogate modelsterm·mth [ 28 , 38 , 39 ]. The basic idea of surrogate modelterm·mth is to construct a measurable functional m ^ ( q ) to statistically approximate the underlying dynamical model m ( q ), the FE LV model in this study, based on costly sampling to construct the dataset D . Whenever a new forward simulation is needed later, the costly function evaluation of m ( q ) can be replaced by a fast prediction from the surrogate modelterm·mth m ^ ( q ) . Figure 3 shows the concept of surrogate modelsterm·mth in relation to the forward simulator.
The main idea of surrogate modelterm·mth. First, the real-world system, that is the diastolic filling of the left ventricleterm·key, can be simulated using the forward FE model m ( q ). Then a sampling process is used to collect the datasets D for training the surrogate modelterm·mth m ^ ( q ) . Finally, the well-trained surrogate modelterm·mth is used to emulate the FE model for approximating the real-world system or process.
Design of sampling In order to fit the surrogate modelterm·mth to the simulator, the ABAQUS FE LV model, we first need to generate the dataset D . For each forward simulation, we consider the input features are the reduced four parameters defined in equation ( 2.5 ), and the output features are three pairs of positive values ( α 0 , β 0 ), ( α 1 , β 1 ) and ( α 2 , β 2 ) as defined in equation ( 2.4 ). Then the datasets can be described as where n is the total number of samples. The input features q j i represents the j-th feature from i-th sample, and the output features are ordered as y i = ( y 1 i , … , y 6 i ) = ( α 0 i , β 0 i , α 1 i , β 1 i , α 2 i , β 2 i ) .
Commonly used sampling methods are the grid sampling, the uniform sampling, and the Latin hypercube sampling, etc. [ 28 ]. The most straightforward way of sampling is using a rectangular grid of points or from a uniform distribution. However, this can easily lead to points being clustered together, and causing an ineffective coverage of the parameter space. The Latin hypercube sampling [ 38 ] is a statistical method for generating a near-random sample of parameter values from a multidimensional distribution. In brief, when sampling a function of N variables, the range of each variable is divided into M equally probable intervals, M sample points are then placed to satisfy the Latin hypercube requirements. This will ensure from each placed hypercube we could travel the function space along any direction parallel with any of the axes without encountering any other placed hypercube. This is one of the main advantages of this sampling scheme. In this study, we generate 10 000 samples using the Latin hypercube sampling, of which 90% are used for training and the remainder are for testing.
Strategy for learning output features Figure 4 a , b shows the distributions of each feature from all 10 000 samples with violin plots. Because the FE LV model is nonlinear, the output features are skewed except for α 0 . Overall, mean square errors (MSEs) of fitting to the volume, the mean maximum and minimal principal strains are less than 10 −4 , indicating LV diastolic dynamics from the ABAQUS simulator can be well characterized by the three pairs of features α 0 , β 0 , α 1 , β 1 , α 2 and β 2 . This is a massive dimension reduction for describing LV dynamics in diastole. We find that the range of these six output features can be very different, specifically the ranges of α 0 , α 1 and α 2 are in hundreds and the ranges of β 0 , β 1 and β 2 are from 1 to 3. To balance the output features, the general methods include feature scaling and normalization [ 40 ]. We then normalize the output features by expressing them as ( y − y ¯ ) / ( s.d. ( y ) ) , in which y ¯ and s.d.( y ) represent the mean and standard deviation of y , the normalized features are shown in figure 4 c , d . Finally a ML model is trained for each output feature. Figure 5 illustrates this multiple ML framework; in total six sub-models are trained separately. Note that each sub-model can have different hyper-parameters.
Distribution of six outputs of 10 000 samples. ( a ) and ( b ) show violin plots of six output features, ( c ) and ( d ) show the violin plots of six output features after normalization.
The structure of the multiple ML framework. Each ML model contains six sub-models, and each sub-model predicts exactly one output feature.
In this study, we will use three ML models, namely the K-nearest neighbour (KNN) [ 41 ], XGBoostterm·ai [ 30 , 42 ], and multilayer perceptronterm·key (MLPterm·ai) [ 43 ]. The three ML models can be considered to be supervised learning regression problem [ 44 ]. The reasons of choosing these three ML methods are (i) the samples in this work are limited with a few input and output features; (ii) the functional form shown in figure 2 is relatively simple, which may suggest that simple ML models can be applicable; and finally (iii) these selected ML models are easy to implement and readily available in various open-source packages, but they have not been applied in LV model calibration.
K-nearest neighbour Nearest neighbour methods are based on a simple idea by treating the training set as the model, and making prediction of new points based on how close they are to those in the training set. One natural way is to make prediction using the closest training data points, while most datasets contain some degree of noise, a more common method would be to take a weighted average of a set of K nearest neighbours [ 41 , 45 ]. KNN method is a basic classification and regression method, the choice of K value, distance metric and decision rule are three basic hyper-parameters [ 46 ]. For the training data q 1 , q 2 , … , q n , and the corresponding target values y 1 , y 2 , …, y n ( y i is denoted as any feature in y i ), the prediction in a new point q p can be realized by firstly searching a set of K nearest neighbours in the training set, and then y ^ p is given by a weighted averaged of those K nearest neighbours, that is in which ω i is the weight for the i-th nearest neighbour. Note the closer the point to the predicted point, the greater weight this point takes, and ω i is defined as in which L is a distance function, which can be either as L 1 or L 2 eXtreme Gradient Boostingterm·ai Tree boosting is a highly effective and widely used machine learningterm·key method, in particular XGBoostterm·ai (eXtreme Gradient Boostingterm·ai), a boosting tree model developed by Chen & Guestrin [ 42 ], an implementation based on gradient boost decision tree [ 47 ], which boosts many tree models to form a strong regression model. In XGBoostterm·ai, the additive strategy is used to predict output variables [ 48 ], learning one classification and regression tree (CART) [ 49 ] per iteration to fit the residual of the predicted results of the previous trees to the true values of the training samples. Note the prediction value in q p at step t as y ^ p ( t ) . Then we can write each sub-model in the form where t is the number of CARTs, g j is a function in the functional space G , the set of all possible regression trees. The loss function to be optimized is given for each feature, which is defined as where l is a distance function that measures the distance between the prediction y i ( t ) and the target y ^ i . The term Ω penalizes the complexity of the model. We take the Taylor expansion of the loss function up to the second order, that is where p i and h i are the first and second order derivatives of l ( y i , y ^ i ( t − 1 ) ) . After we remove all the constants, the specific objective at step t becomes For more details, please refer to references [ 42 , 47 ].
Multilayer perceptronterm·key MLPterm·ai is a class of feed-forward artificial neural networkterm·ai [ 43 ], consisting of at least three layers of nodes: an input layer, a hidden layer and an output layer. Fully connected multiple hidden layers can be added to the hidden layer. Except for input nodes, each node in MLPterm·ai is a neuron with a nonlinear activation function. A feed-forward neural network should have a linear output layer, and at least one hidden layer of an activation function. Universal approximation theorem [ 50 ] indicates that if we give the network a sufficient number of hidden layers, it can approximate the Borel measurable function of any finite dimensional space to another finite dimensional space. In this sense, multilayer feed-forward networks are a class of universal approximators. In this work, we adopt a MLPterm·ai model with only one hidden layer [ 51 ] shown in figure 6 . The input layer has four nodes which will take q 1 , q 2 , q 3 , q 4 in the reduced space, and the output layer is combined to output one select feature.
A schematic of a multilayer perceptronterm·key model with one single hidden layer.
The rectified linear unit (ReLU) is used for the activation function at each node of the hidden layer [ 52 ], which can be described as in which ω h and b h represent weights and bias between the input layer and the output layer. Because the MLPterm·ai model only contains one hidden layer, the prediction for each feature y p can be represented as where ω o and b o are the weights and biases between the hidden layer and the output layer. The loss function for the MLPterm·ai model is defined using the mean square error (MSE) with L 2 penalty (regularization term) to prevent over-fitting, where y = { y i , i = 1, …, n } are the true values, y ^ = { y ^ i , i = 1 , … , n } are the predictions from the MLPterm·ai model, λ is a penalty parameter and we fix it as 1 × 10 −4 , and ‖ · ‖ denotes the L 2 norm in Euclidean space.
Training machine learning-based surrogate modelsterm·mth The KNN and MLPterm·ai models are implemented using Scikit-learn library 1 [ 53 ]. Specifically, the KNN modelterm·ai uses a KDTree algorithm [ 54 ] (a fast algorithm to generalize N-point problems) to compute the nearest neighbours. The MLPterm·ai model uses an Adam solver [ 55 ] (a stochastic gradient-based optimizer) to optimize the MSE with L 2 penalty (see equation ( 2.16 )). Early stopping is adopted to terminate training when validation score is not improved after 10 epochs. The maximum number of iterations is set to 200. The XGBoostterm·ai model is implemented using the XGBoostterm·ai Python library. 2 The tolerance for the optimization is 1 × 10 −4 .
A competent ML model not only fits the training data well, but also should have a good predictability for the test data, the unseen situations. The choice of hyper-parameters can significantly affect the performance of ML models, while determining most optimal hyper-parameters can be very complex [ 56 ]. In this paper, a grid search method with a fivefold cross-validation is adopted [ 57 ] for its easy implementation. The coefficient of determination R 2term·def is used to evaluate the predictability of a ML model for choosing the optimal set of hyper-parameters similar to in [ 30 ], R 2term·def represents the proportion of variance that has been explained by input parameters in a model. A score of 1.0 indicates a perfect prediction, and it may be negative because a model can be arbitrarily worse, see Scikit-learn documentation [ 53 ].
Tuning hyper-parameters using the grid search method in a multidimensional space can still be time-consuming (from several hours to a few days). To determine hyper-parameters efficiently [ 58 ], we use a step-wise approach by optimizing one hyper-parameter at each time step while fixing others. Taking the MLPterm·ai model as an example. We first fix initial learning rate ( l e a r n i n g _ r a t e _ i n i t ) to be 0.01, then search the number of neurons ( h i d d e n _ l a y e r _ s i z e s ) in a predefined grid range to determine its optimal value. We now fix h i d d e n _ l a y e r _ s i z e s using the best value from the previous step and search the optimal value for learning_rate_init. Grid search for other two ML models are the same as the MLPterm·ai model. All pre-defined grid values for each hyper-parameter are shown in table 1 , and the name of hyper-parameter follows the conventions in sklearn and XGBoostterm·ai libraries.
The grid values of hyper-parameters for three ML models.
Parameter inference Estimating myocardial property from measured volume and strain is challenging because of sparse data and correlation between different parameters, which has been discussed in [ 35 ]. In general, an inverse problemterm·key is formulated by solving a constrained optimization problem with thousands of forward simulations which may take days and weeks [ 35 , 59 ]. The objective function is usually formulated as the differences between the model predictions and experimental measurements (e.g. volume and strain for the LV model), and constitutive parameters are iteratively updated until the objective function is minimized [ 19 , 35 ].
We further apply the three ML models for myocardial parameter estimationterm·key using a set of synthetic data ( v *, ɛ*) by simulating the FE LV model with known parameters, this will allow us to compare the suitability of the three ML models for parameter inferences. The surrogate modelsterm·mth do not directly predict volume and principal strains but six output features ( y ), thus we define the objective function [ 35 ] as where y j represents j-th output feature, y j ∗ are the corresponding output feature obtained from the synthetic data ( v *, ε *) according to equation ( 2.4 ). Note that the output features can be readily converted into the actual cavity volume and principal strains as suggested in equation ( 2.4 ). A differential evolution algorithm [ 60 ] is employed for inferring q using ML-based surrogate modelsterm·mth. Differential evolution is a stochastic population-based method which has been applied for global optimization problems. The optimization procedure is implemented using the Python library scipy.optimize . 3 We choose that the total population size is 50, the relative tolerance for convergence is 1 × 10 −6 , the maximum number of iterations is 500, the mutation constant is in (0.5, 1), the recombination constant is 0.7, and the initial values are randomly selected from the range [0.1, 5] 4 .
We further infer q by formulating an inverse problemterm·key using the forward ABAQUS FE LV model as shown in figure 7 . Specifically, (i) randomly initializing constitutive parameters from the predefined range, (ii) running the FE LV model with ramped blood pressure till end-diastole, (iii) fitting the pressure–volume and pressure–strain according to equation ( 2.4 ), (iv) computing the objective function shown in equation ( 2.18 ) to determine whether the algorithm has converged (i.e. exceeding maximum iteration number, or less than the predefined error, etc.), (v) if the algorithm converges, then the last updated parameters are considered to be the optimal parameters, otherwise going to step (ii) by updating constitutive parameters.
The iterative schematic of the inverse problemterm·key based on ABAQUS simulation.
This inverse problemterm·key is implemented using lsqnonlin in Matlab, which is based on a trust-region-reflective algorithm [ 61 ]. Trust-region-reflective is a gradient-based algorithm with fast convergence but it may not guarantee a global optimum. We set the maximum number of iterations 500, the relative tolerance on the target value 1 × 10 −6 , and the initial values are also randomly selected from the range [0.1, 5] 4 . We are aware that there are other gradient-free algorithms like the differential evolution used for the ML models. In a study of estimating myocardial parameters, Nair et al. [ 62 ] reported it took 25–40 days for the inference procedure in a desktop computer using a genetic algorithm. Because of the high computational costs associated with gradient-free algorithms, we decide not to use those algorithms for the inverse problemterm·key using the FE LV model.
All the computations are carried out in a 64-bit Windows 7 workstation with 1.7 GHz Intel Core E5-2609 CPU and 32 GB RAM. ABAQUS simulation and training ML models are performed on 16 threadings for parallelism. No parallelization is used when inferring material parameters within lsqnonlin and differential evolution solvers.
Results Machine learningterm·key methods and hyper-parameters tuning Firstly, we adopt fivefold cross-validation to train the ML models on training data based on the MSE loss function. Then, we test every model on test data and select the optimal hyper-parameters from the grid values with the highest R 2term·def score. Note that the higher the R 2term·def , the better the model predictability. For each surrogate modelterm·mth, six identical ML sub-models are constructed, and each sub-model has different optimal hyper-parameters as summarized in table 2 .
Tuning results of hyper-parameters for six sub-models.
Figure 8 shows the predictions of six output features from the three ML models on test samples. The red line suggests the exact predictions of the true values and blue points are the predictions. The closer the blue points to the red line, the better predictability for ML models. It can be found that the XGBoostterm·ai and MLPterm·ai models can predict all output features very well in general, very close to the red line. While the predictions from the KNN modelterm·ai are much poorer compared with the XGBoostterm·ai and MLPterm·ai models, in particular for large true values. Moreover, the MSEs of the KNN modelterm·ai are nearly 10 orders higher than the other two ML surrogate modelsterm·mth, and R 2term·def scores of the XGBoostterm·ai and MLPterm·ai models are around 0.999, much higher than the R 2term·def score of the KNN modelterm·ai. Thus the XGBoostterm·ai and MLPterm·ai models seem more suitable for learning our FE LV model in diastole compared to the KNN modelterm·ai. For each prediction, the KNN modelterm·ai takes 0.08 s, and 0.02 s for the XGBoostterm·ai, and 0.005 s for the MLPterm·ai model, all are significantly less than the forward ABAQUS simulation, which takes around 6 min for one run. The computational time using the ML models is almost reduced by 3 to 4 orders, and summarized in table 3 .
Prediction results of six output features from three ML models on test samples. ( a – f ), ( g – l ) and ( n – r ) are the test results of KNN, XGBoostterm·ai and MLPterm·ai, respectively. The output features here are normalized as ( y − y ¯ ) / ( s.d. ( y ) ) .
Computation summary of the optimization procedure.
Parameter estimationterm·key To inversely infer unknown parameters using the forward FE LV model as in [ 35 ], 378 forward ABAQUS simulations are carried out, which takes about 63 h (almost 3 days). The corresponding objective function with respect to the iterations is shown in figure 9 a . When using the ML models for inferring unknown parameters, it only take several minutes, especially for the MLPterm·ai model, which takes only 69 seconds (around 1 min); see table 3 . Figure 9 b shows the objective function with respect to the iterations for the three ML models. The objective function is the smallest when using the XGBoostterm·ai model, followed by the MLPterm·ai model and poorest in the KNN modelterm·ai.
The objective function using ABAQUS simulation ( a ) and three ML-based surrogate modelsterm·mth ( b ).
Table 4 summarizes the estimated parameters from the four inverse problemsterm·key. In general, estimated parameters by running ABAQUS simulations are very close to the ground truth values with nearly negligible objective function, but the computational cost is the highest, almost 3 days. The XGBoostterm·ai seems to have a better performance for inferring parameters compared with the KNN modelterm·ai and the MLPterm·ai model, with poorest for the KNN modelterm·ai, in particular for q 3 and q 4 . The poorest performance in the KNN modelterm·ai may be partially explained by its poor predictability as shown in figure 8 . Compared with q 1 and q 2 , q 3 and q 4 have a larger discrepancy with respect to the true values when using the three ML models, and also slightly larger when using ABAQUS simulations. This may suggest that the inverse parameter estimationterm·key problem by using measurements of LV dynamics in whole diastole may still experience unidentifiable issues as suggested in [ 15 , 63 ], in which only end-diastolic volume and strains were used for inferring unknown parameters. We further plot the objective function by varying q 3 and q 4 with fixed q 1 = 1 and q 2 = 1 as shown in figure 10 . It can be found that the surface plots of using the XGBoostterm·ai, MLPterm·ai and ABAQUS simulation are similar, the minimum from the ABAQUS simulation is clearly identifiable, but a narrow valley parallel to q 4 with multiple local minima for the XGBoostterm·ai, and that valley becomes a flat region for the MLPterm·ai model. Thus, q 4 seems unidentifiable when using the XGBoostterm·ai and MLPterm·ai models even with fixed q 1 = 1 and q 2 = 1. The surface plot of the objective function for the KNN modelterm·ai is very different from the others, which again indicates its poor performance of learning the FE LV model.
The estimated parameters using ABAQUS and ML models.
Surface plots of logarithmic (to the base 10) objective function by fixing q 1 = q 2 = 1 but varying q 3 , q 4 from 0.1 to 2; ( a )–( d ) represents the surface plots derived from models of KNN, XGBoostterm·ai, MLPterm·ai and ABAQUS simulation, respectively.
Figure 11 a , b shows the myofibre stress–stretch relationship under uni-axial stretching mode derived from the H-O law (equation ( 2.1 )) with the parameters in table 4 . For the stretch along fibre direction, the inferred stress–stretch data from the three ML models and ABAQUS simulation are very close to the ground truth data. But larger discrepancies can be found for the Cauchy stress along the sheet direction when inferred from the three ML models. Figure 11 c , d shows corresponding stress residuals, which are calculated by subtracting the inferred Cauchy stress from the ground truth data. It is not surprising that the inference using ABAQUS simulations achieves the best accuracy because the synthetic data are generated using the ABAQUS simulation. The XGBoostterm·ai comes the second closest to the ground truth data with smaller residuals compared with the KNN and MLPterm·ai models.
Cauchy stress under uni-axial stretch with estimated parameters from ABAQUS simulations and three ML models along fibre ( a ) and sheet ( b ) directions. The corresponding residual Cauchy stress for those four methods along fibre ( c ) and sheet ( d ) directions.
In order to have an indication of the uncertainty in our inference using the three ML models, we adopt a bootstrap approach [ 64 ] for the inverse uncertainty quantification. We first compute the prediction value y pred using the estimated parameters in table 4 , we then compute the residuals between the referential values y ref (i.e. the output features which are obtained from the synthetic LV model), they are ϵ : { ϵ i = y i ref − y i pred , ( i = 1 , 2 , 3 , 4 , 5 , 6 ) } . By randomly selecting all combinations from ε , and 0 used from unselected residuals as supplement, we can obtain a set of residuals R = { ϵ ^ J } 1 ≤ J ≤ 64 , and then generate surrogate data y ^ J = y pred + ϵ ^ J , where ϵ ^ J is the J-th draw from R . We then repeat the parameter inference on each y ^ J to obtain new estimations. The mean and standard deviation of all estimated parameters and objective function values are listed in table 5 . The uncertainties associating with q 1 and q 2 are much less than the uncertainties for q 3 and q 4 , again the XGBoostterm·ai has smaller uncertainties in q 3 and q 4 compared with the KNN and the MLPterm·ai model. The large uncertainties associated with the KNN modelterm·ai suggests its unsuitability for inferring constitutive parameters by replacing a FE LV model.
Mean and standard deviation (s.d.) of estimated parameters and objective function values obtained from the bootstrap approach.
Discussion In this study, we have developed three surrogate modelsterm·mth based on three ML methods, namely the KNN, XGBoostterm·ai and MLPterm·ai. These models are used to estimate the material parameters of LV myocardium using the cavity volume and the maximum and minimum principal strains. The developed ML models are trained through cross-validation, and the average R 2term·def scores for the testing data are very close to one. Comparing with the conventional parameter estimationterm·key based on numerical evaluations of the forward model, the ML surrogate modelsterm·mth provide a significant improvement in computational time with an acceleration by hundreds or even thousands of times.
Gaussian process also has been applied to parameter estimationterm·key in myocardium [ 26 , 27 ] using a synthetic LV model, while their output features were only from the measurements at end-diastolic phase but not for the whole diastole. In a followed study, Lazarus et al. [ 63 ] found that because of lacking data, only using end-diastolic measurements makes it challenging to infer q 3 and q 4 . Instead, in this study the parametrized pressure–volume and pressure–strain data in diastole are used for training the ML models and parameter inferences. Still, we observe large uncertainties associating with q 3 and q 4 . Thus extra data will be needed for identifying q 3 and q 4 with high confidence. We also have trained a Gaussian process model for our data, and the prior covariances of Gaussian process are computed by using a radial-basis kernel function. We then use the trained Gaussian process model for inferring q , the inferred q is (1.0053, 1.0027, 1.0812, 1.1504) with f(q) = 1.7424 × 10 −5 . It is slightly poorer than the XGBoostterm·ai model as seen in table 4 . While this should still suggest that Gaussian process is a good surrogate modelterm·mth as XGBoostterm·ai for learning LV dynamics in diastole.
In a recent study, Liu et al. [ 65 ] has used a two hidden-layer neural network for estimating in vivo constitutive parameters of aortic wall. Considering the LV dynamics in diastole is a passive expansion process with increased volume and strain magnitude as shown in figure 2 , a deep neural network may over-fit our data easily because of its large number of degrees of freedom. As a test, we implement a two hidden-layer neural network and train using the same data with a fixing learning rate of 1 × 10 −3 , and the grid search is used for selecting optimal neuron numbers at each hidden layer with the grid values in table 1 . Our result shows that the mean R 2term·def score for the testing data is almost the same as using the one hidden-layer neural network, which may suggest that the one-layer MLPterm·ai can learn the LV FE model in diastole well. For a very complex dynamics system, i.e. whole heart contraction, a deep neural network would be necessary.
There are various methods for hyper-parameter tuning [ 58 ], including random search, grid search, Bayesian optimization, etc. Random search uses a randomized search over parameters in which each setting is sampled from a distribution over possible parameter values. Grid search generates candidates from a grid of parameter values. Bayesian optimization [ 66 ] is a global optimization method based on sequential training of a statistical approximation (Gaussian process) of the target function. We also apply the Bayesian optimization for hyper-parameter tuning using bayesopt [ 67 ] implemented in Python. By comparing with the trained ML models using the grid search approach, the R 2term·def scores are almost the same, while the Bayesian optimization takes a much longer time for tuning ML models than the grid search approach.
Uncertainty quantification (UQ) is an essential step in applying mathematical models for decision making, the LV model included. There are various sources of uncertainty in cardiac models, including intrinsic variability (i.e. collagen content), parameter uncertainty (i.e. myocyte stiffness), initial/boundary condition uncertainty (i.e. ventricular cavity pressure, pericardium), geometry uncertainty (i.e. myocyte architecture), model uncertainty (i.e. continuum approximation of soft tissue), etc. Interested readers refer to [ 39 , 68 ] for recent reviews of uncertainty and variability in cardiac models. If a surrogate modelterm·mth is used for prediction, an additional source of uncertainty is the model discrepancy between the surrogate modelterm·mth and the mathematical model. As evidenced in figure 8 , the KNN has the worst prediction due to this model discrepancy, which may potentially explain the large discrepancy and high uncertainty in estimated parameters ( table 5 ). Optimal computational design strategy would be needed for achieve high accuracy for the surrogate modelterm·mth, for example sampling strategies according to the underlying physics, dense coverage for small parameter values. A further model discrepancy is the discrepancy between the forward model and the reality. In a recent study, Lei et al. [ 69 ] studied the model discrepancy between the mathematical model and reality in cardiac ionic models. They modelled the discrepancy using Gaussian processes and autoregressive–moving-average model for improved prediction of unseen situations, and found that different methods for accounting model discrepancy are needed for different models in different situations. The similar framework could also be applied to the FE LV model, which is a numerical approximation of LV dynamics under various assumptions (i.e. homogeneous material property, rule-based myofibre structure, ignoring viscous effects).
As shown in table 4 , estimated parameters using those three trained surrogate modelsterm·mth do not match the ground truth values, and are also inferior to the values inferred directly using the forward ABAQUS LV model. To quantify the associated uncertainty in inferred parameters, we further adopt a bootstrap approach, results are summarized in table 5 . In general q 1 and q 2 can be inferred with high accuracy, but not q 3 and q 4 , especially for the KNN. XGBoostterm·ai achieves the best performance with very little uncertainties in q 1 , q 2 and q 4 , but poor in q 3 ; that is partially because q 3 is related to nonlinear response of collagen network and myofibres [ 12 ], which are not fully engaged under normal physiological pressure loadings, like 8 mm Hg applied in this study. To overcome this issue, a higher pressure loading may help to reduce the uncertainty of estimating q 3 . For example, the Klotz curve can be helpful by providing extra pressure–volume relationship up to 30 mm Hg based on ex vivo experiments [ 36 ]. Indeed in a recent study, Lazarus et al. [ 63 ] have found that by including the Klotz curve as a prior when inferring the same set of myocardial parameters ( q ), the uncertainty in q 3 is reduced significantly.
A further challenge in UQ is the computational complexity when using the forward mathematical model. For example, the computational demand can be extremely high if Monte Carlo techniques are used for uncertainty propagation. For example, one run of our LV model takes 6 min, then 10 000 simulations will need 41 days. Thus, Monte Carlo methods using the LV model would be impractical. To overcome this, the surrogate modelterm·mth, a fast-running statistical approximation of the mathematical model allowing rapid prediction, can greatly reduce the computational burdenterm·dom and complexity, like the KNN, the XGBoostterm·ai and the MLPterm·ai studied here. They could potentially be used to make inferences about uncertainty in a LV biomechanical model. Another closely related task of UQ is sensitivity analysis for identifying important input parameters. Surrogate modelsterm·mth have been used in sensitivity study of cardiac models [ 70 ] for alleviating the computational expense. Till now, most of UQ and sensitivity studies have been carried out on electrophysiology modelling [ 39 , 68 , 69 ] but less on biomechanics modelling of cardiac dynamics [ 70 ]. A comprehensive study of UQ in biomechanical cardiac models is necessary if they are aiming for clinical applications.
One limitation of the current approach is that all the data are generated from one single human LV, while LV function is different for different subjects, e.g. LV geometry, material property. To test whether the ML surrogate modelterm·mth is feasible for other subjects, we first extract two cases with different LV geometries from our previous study [ 35 ]. In a similar way, by assuming the parameters are known, we then simulate the FE LV model for generating the synthetic ground truth data, then the trained ML models are used to predict the output features using the same parameters. Table 6 is the MSE between the synthetic ground truth data for the two cases and the predictions from the ML models. The very large MSEs in table 6 clearly suggest that the LV geometry needs to be included as input variables. Methods are being developed for treating the geometry as input variables using dimension reduction techniques, such as principal component analysis (see discussion in [ 27 ]).
The MSE values of sample test cases using the three trained ML models.
A further limitation is that the LV geometry was reconstructed from in vivo images, which is not stress free because of the non-zero blood pressure in the LV cavity; since in this study we do not intend to infer subject-specific material parameters using in vivo data, instead to compare the three ML models for learning generic LV dynamics in diastole and their suitability of inferring parameters by replacing expensive FE LV models. Future work should retrain the ML models with subject-specific LV models starting from the stress-free state for clinical applications, this will require tremendous efforts for building such a large number of personalized heart models, currently not available. Still, determining the fully stress-free state of the LV from in vivo data is very challenging because the heart is always pressurized. Future studies shall quantify how such a loaded geometry will affect the parameter estimationterm·key using in vivo data.
Last but not least, for each output feature, a sub-ML model is trained separately. It is expected the output features are correlated since they are generated from one LV model and each pair describes one set of data. Therefore a multi-output ML model would potentially reduce the prediction error and even the parameter uncertainty, as found in [ 26 ], in which a multivariate output Gaussian process has much less parameter estimationterm·key error compared with separate univariate output Gaussian processes. In fact, a multiple regression model can be readily developed with multi-output features using our data. Interestingly, our own preliminary test on the MLPterm·ai model using three sub-models, each for one pair of ( α i , β i ), shows that the mean R 2term·def score is actually marginally higher from the six sub-models compared with the three sub-models (0.9994 vs 0.9993). Further work is needed to identify optimal schemes for learning LV dynamics in diastole, which is out of scope of this study.
Conclusion In real-world optimization problems, the function evaluations usually require a large amount of computational time. Surrogate-based modelling and optimization play a valuable role in solving the large-scale computational problem. In this paper, we have developed three surrogate modelsterm·mth and applied these methods to solve the parameter estimationterm·key problem of LV myocardium. Three surrogates based on different ML methods including the KNN, XGBoostterm·ai and MLPterm·ai are trained with 10 000 samples by simulating a computationally expensive finite-element ventricular model in diastole. All samples are generated using a Latin hypercube sampling method for a full coverage of the input parameter space. By comparing with a traditional gradient-based optimization method, our results show that the ML models can learn the relationships of pressure–volume and pressure–strain very well, and the parameter inference using the surrogate modelterm·mth can be carried out in minutes. In particular the XGBoostterm·ai and MLPterm·ai surrogate modelsterm·mth have much less uncertainties in estimated parameters compared with the KNN modelterm·ai. Our results further suggest that the XGBoostterm·ai surrogate modelterm·mth is the best one for predicting the LV diastolic dynamics and estimating parameters than the other two surrogate modelsterm·mth. Further studies are warranted to investigate how the XGBoostterm·ai surrogate modelterm·mth can be used for fast emulating cardiac pump function in a multi-physics and multi-scale framework.
Supplementary Material Footnotes Data accessibility Data and relevant code for this research work are stored in GitHub: https://github.com/ren2504413601/regression-surroages and have been archived within the Zenodo repository: https://doi.org/10.5281/zenodo.4280222 .
Authors' contributions L.C. and L.R. contributed equally to this paper. L.R. and H.G. wrote the manuscript. L.R. performed machine learningterm·key models. L.C. and H.G. supervised the overall project. All authors analysed and reviewed the results.
Competing interests We declare we have no competing interests.
Funding This research is supported by the National Natural Science Foundation of China (grant nos. 11871399 and 11471261). G.Z. acknowledges the funding from the National Natural Science Foundation of China (grant no. 11802227). H.G. also acknowledges the funding from the Engineering and Physical Sciences Research Council (EPSRC) of the UK (grant nos. EP/N014642/1, EP/S030875/1 and EP/T017899/1).
References Associated Data Supplementary Materials Data Availability Statement Data and relevant code for this research work are stored in GitHub: https://github.com/ren2504413601/regression-surroages and have been archived within the Zenodo repository: https://doi.org/10.5281/zenodo.4280222 .