Concept Architecture
Bayesian Optimisation for Calibrating Expensive Disease Models
Many health economic models contain natural history parameters that no study measures directly, so analysts adjust them until the model reproduces observed incidence, prevalence or mortality. When one microsimulation run takes minutes or hours, that search becomes the slowest step in building the model. Bayesian optimisation fits a Gaussian process to the runs already made and uses an acquisition function to decide where the model should be run next. Applied to model calibration, it can reach a good fit in few runs, as a small illustrative calibration and uses in cancer and malaria models show, and it differs in what it returns from other search and calibration methods.
Why calibrating simulation models calls for a sparing search
Calibration compares model outputs with empirical data and keeps the parameter values that fit well. Vanni and colleagues divide it into seven steps, of which the fourth is the search strategy and the sixth the stopping rule. The search strategy matters most when runs are expensive, because the number of runs then sets the cost.
Published calibrations have used manual adjustment, random search, grid search, the Nelder-Mead method, simulated annealing and genetic algorithms. In a Markov model of human papillomavirus and cervical disease, Taylor and colleagues found mean deviations from the targets of 7% for Nelder-Mead, 10% for manual calibration and 39% for random search. Kong and colleagues fitted 28 parameters of the Lung Cancer Policy Model to 11 targets, where simulated annealing beat a genetic algorithm. None of these builds a model of the fit surface from all earlier runs, and grid search uses none of them. A grid with 11 values for each of five parameters needs runs, out of reach for a microsimulation that takes minutes per run.
The calibration problem as an optimisation
Bayesian optimisation needs one objective to minimise. The usual form folds the distances between model outputs and targets into a weighted goodness-of-fit score. The search then runs over a bounded region.
where is the vector of parameters being calibrated, is the region searched, is the total loss, is the number of targets, is the observed value of target , is the model's prediction of it, is a distance such as an absolute or squared difference, and is the weight on target . Each evaluation of is a full model run with no formula or derivatives, the black-box, derivative-free setting for which Frazier describes the method as designed.
The surrogate, a Gaussian process over the fit surface
The first component is a statistical model of the unknown loss. A Gaussian process treats the losses at any set of points as jointly normal, with a kernel that makes nearby parameter values have similar losses. A common choice is the squared exponential kernel, shown below.
where is the prior covariance between the losses at and , is the prior variance of the loss, is the distance between the two parameter vectors, and is the length-scale, which sets how quickly the loss is expected to change. After runs, Gaussian process regression gives a normal posterior for the loss at any untried point, as follows.
where and are the posterior mean and variance of the loss at , is a constant prior mean, holds the covariances between and the evaluated points, is the covariance matrix of the evaluated points, is the simulation noise variance, is the identity matrix, is the vector of observed losses and is a vector of ones. The noise term is zero for a deterministic cohort model but not for a microsimulation with a finite number of simulated people.
The acquisition function and the choice of the next model run
The second component turns the posterior into a decision. Expected improvement, which Frazier traces to Močkus and to its popularisation by Jones and colleagues, values a candidate by how far it is expected to beat the best loss so far. For a loss that is minimised it takes the following form.
where is the expected improvement at after runs, is the lowest loss observed so far, is the posterior standard deviation, and and are the standard normal distribution and density functions. The first term rewards points predicted to fit well and the second rewards points where the surrogate is uncertain. With a noisy microsimulation the best observed loss is itself uncertain, so implementations typically use the lowest posterior mean at the evaluated points in its place. The knowledge gradient and entropy search are alternatives, and Frazier reports that the knowledge gradient can substantially outperform expected improvement when evaluations are noisy. The procedure starts from a small space-filling design, such as random points or a Latin hypercube, then repeats three steps until the run budget is spent. Each round fits the surrogate, maximises the acquisition function (cheap, since it uses only the surrogate), and runs the model at the chosen point.
Worked example fitting one transition probability to a ten-year incidence target
All numbers here are illustrative. A cohort model has one unknown annual probability of moving from a healthy to a disease state, with no deaths, so it predicts ten-year cumulative incidence . The target is 30% and the loss is the absolute difference in percentage points. The exact answer, , is known, so the search can be checked. The search runs from to , and the surrogate has , , and no noise, all fixed for clarity.
1. Initial runs. At the model predicts , or 9.56%, a loss of 20.44 points. At it predicts , or 46.14%, a loss of 16.14 points, the best so far.
2. Surrogate at the candidate 0.04. Writing each covariance as 100 times a correlation, the two runs have correlation , so the determinant of the two-run correlation matrix is . The candidate's correlations with the two runs are and . The weights on the two observed losses are as follows.
where and apply to the deviations of the first and second losses from the prior mean. The posterior mean and variance then follow.
where 0.44 and are the two losses minus the prior mean of 20, and is the predicted loss at .
where is the posterior variance, giving a standard deviation of .
3. Expected improvement. The standardised gap and the expected improvement are as follows.
where 0.4090 and 0.3885 are and . The predicted loss is worse than the best so far, but the uncertainty makes the expected improvement positive.
4. Choosing the next run. Repeating the calculation for every candidate from 0.020 to 0.050, 0.005 apart, gives the values in the table.
| Candidate | Posterior mean | Posterior SD | Expected improvement |
|---|---|---|---|
| 0.020 | 20.01 | 4.60 | 0.51 |
| 0.025 | 19.62 | 6.30 | 1.15 |
| 0.030 | 19.11 | 7.37 | 1.69 |
| 0.035 | 18.50 | 7.74 | 2.05 |
| 0.040 | 17.84 | 7.37 | 2.17 |
| 0.045 | 17.20 | 6.30 | 2.02 |
| 0.050 | 16.65 | 4.60 | 1.59 |
The candidates at 0.015 and 0.055 score lower still. The highest value is at 0.040, where the model predicts , a loss of 3.52 points.
5. Second iteration. Refitted to three runs, the surrogate gives the highest expected improvement at (0.46, against 0.29 at 0.030). The model predicts , a loss of 0.03 points, at a value of within 0.0001 of the exact answer. Four runs found what a grid at the same spacing would need 11 runs to find, and a full grid grows multiplicatively with every added parameter. The search itself cannot tell that it has reached the exact answer, so in practice a stopping rule or run budget ends it.
Design choices that change the result
Several settings decide where the search ends. Gómez-Guillén and colleagues searched 50% either side of literature-based starting values, so a true value outside that range could not be found. The kernel encodes how smooth the loss is assumed to be; the absolute-difference loss above has a sharp minimum, and one more iteration of the example pushed the posterior mean below zero, a loss that cannot occur.
Frazier describes the usual setting as 20 or fewer inputs and a budget limited to a few hundred evaluations. The weights decide which targets dominate when they conflict.
Evidence from cancer and malaria models
Gómez-Guillén and colleagues took a lung cancer Markov microsimulation from a published cost-effectiveness analysis and compared Bayesian optimisation, using expected improvement, with Nelder-Mead, simulated annealing and particle swarm optimisation. For all 99 parameters at once, standard Bayesian optimisation was stopped at 1,000 evaluations without a satisfactory fit, although two variants built for many parameters did better. For one age group with 11 parameters it was the fastest method once a run took longer than 0.2 seconds, and calibrating age group by age group cut the projected break-even run time for the full model from about 5 minutes to 0.24 seconds.
Reiker and colleagues calibrated 23 parameters of OpenMalaria, an individual-based malaria model, against 11 epidemiological objectives; malaria models of this kind have been used for economic analyses of new interventions. Bayesian optimisation with Gaussian process or machine learning emulators quickly beat the fit of the genetic algorithm used before.
What a calibrated point can and cannot support in an evaluation
Bayesian optimisation returns a single best-fitting parameter set. Menzies and colleagues note that such a set can be a useful first step, but that estimates of uncertainty around modelled results need a distribution of parameter values. A probabilistic sensitivity analysis therefore needs Bayesian calibration or a similar method, which combines priors, model structure and a likelihood into a posterior.
A single optimum can also hide nonidentifiability. Alarid-Escudero and colleagues showed that two equally good-fitting parameter sets for a cancer survival model gave life expectancy gains for a hypothetical treatment of 0.67 and 0.31 years. An optimiser that stops at one of them gives no warning that the other exists, so calibration reports should check identifiability and whether near-optimal sets change the decision.
Bayesian optimisation beside grid search, Nelder-Mead and approximate Bayesian computation
The methods differ in what they return and in how they spend runs. Approximate Bayesian computation answers a different question, since it targets a posterior rather than a best point.
| Method | What it returns | Use of earlier runs | Typical use in health models |
|---|---|---|---|
| Grid search | Best point on a fixed grid | None | Few parameters, fast models |
| Nelder-Mead | A local optimum | Moves a simplex of recent points | Markov cohort models with few parameters |
| Genetic algorithm | Best member of an evolving population | Draws new points near earlier good ones | Earlier OpenMalaria and lung cancer model calibrations |
| Bayesian optimisation | Best point found, aiming at the global optimum | Surrogate fitted to all runs | Expensive runs, up to about 20 parameters |
| Approximate Bayesian computation | Approximate posterior sample | Accepts or rejects draws by distance to targets | Microsimulation with an intractable likelihood |
Shewmaker and colleagues set out rejection and Markov chain Monte Carlo versions of approximate Bayesian computation for microsimulation.
Where Bayesian optimisation is misread or misapplied
The word Bayesian can mislead. The Bayesian updating applies to the surrogate's beliefs about the loss surface. The model parameters receive no prior or posterior, so the output cannot be read as a Bayesian analysis of them. It also differs from the Bayesian calibration of Kennedy and O'Hagan, whose predictions allow for remaining uncertainty over the fitted parameters and for model inadequacy, and from Bayesian adaptive designs, which update a clinical trial as data accrue.
The method pays only when runs are slow. For a fast model, fitting the surrogate can cost more than many extra runs, as the lung cancer comparison showed. Its result is the best point found within a given budget, region and kernel, with no guarantee that it is the global optimum, so reports should state these with the acquisition function and initial design.
Sources
- Alarid-Escudero F, MacLehose RF, Peralta Y, Kuntz KM, Enns EA. Nonidentifiability in model calibration and implications for medical decision making. Medical Decision Making. 2018;38(7):810-821. doi:10.1177/0272989X18792283
- Frazier PI. A tutorial on Bayesian optimization. arXiv preprint arXiv:1807.02811 [stat.ML], version 1, 8 July 2018. https://arxiv.org/abs/1807.02811
- Gómez-Guillén D, Díaz M, Arcos JL, Cerquides J. Bayesian optimization with additive kernels for a stepwise calibration of simulation models for cost-effectiveness analysis. International Journal of Computational Intelligence Systems. 2024;17:249. doi:10.1007/s44196-024-00646-x
- Kennedy MC, O'Hagan A. Bayesian calibration of computer models. Journal of the Royal Statistical Society: Series B (Statistical Methodology). 2001;63(3):425-464. doi:10.1111/1467-9868.00294
- Kong CY, McMahon PM, Gazelle GS. Calibration of disease simulation model using an engineering approach. Value in Health. 2009;12(4):521-529. doi:10.1111/j.1524-4733.2008.00484.x
- Menzies NA, Soeteman DI, Pandya A, Kim JJ. Bayesian methods for calibrating health policy models: a tutorial. PharmacoEconomics. 2017;35(6):613-624. doi:10.1007/s40273-017-0494-4
- Rasmussen CE, Williams CKI. Gaussian Processes for Machine Learning. Cambridge, MA: MIT Press; 2006. Chapter 2.
- Reiker T, Golumbeanu M, Shattock A, Burgert L, Smith TA, Filippi S, Cameron E, Penny MA. Emulator-based Bayesian optimization for efficient multi-objective calibration of an individual-based model of malaria. Nature Communications. 2021;12:7212. doi:10.1038/s41467-021-27486-z
- Shewmaker P, Chrysanthopoulou SA, Iskandar R, Lake D, Jutkowitz E. Microsimulation model calibration with approximate Bayesian computation in R: a tutorial. Medical Decision Making. 2022;42(5):557-570. doi:10.1177/0272989X221085569
- Taylor DC, Pawar V, Kruzikas D, Gilmore KE, Pandya A, Iskandar R, Weinstein MC. Methods of model calibration: observations from a mathematical model of cervical cancer. PharmacoEconomics. 2010;28(11):995-1000. doi:10.2165/11538660-000000000-00000
- Vanni T, Karnon J, Madan J, White RG, Edmunds WJ, Foss AM, Legood R. Calibrating models in economic evaluation: a seven-step approach. PharmacoEconomics. 2011;29(1):35-49. doi:10.2165/11584600-000000000-00000
Related Concepts (5)
Functions & Formulae (4)
theta_star = argmin L(theta); theta_next = argmax EI_n(theta)
Weighted absolute-difference calibration loss for two targets
L = w_1 * abs(g_1 - T_1) + w_2 * abs(g_2 - T_2)
Squared exponential kernel covariance between losses at two parameter values
c_ab = exp(-(theta_a - theta_b)^2 / (2 * ell^2)); k_ab = sf2 * c_ab
Gaussian process posterior mean and variance of the loss after two noise-free runs
a_1 = (c_1 - c_12 * c_2) / (1 - c_12^2); a_2 = (c_2 - c_12 * c_1) / (1 - c_12^2); mu_n = mu_0 + a_1 * (y_1 - mu_0) + a_2 * (y_2 - mu_0); var_n = sf2 * (1 - (c_1 * a_1 + c_2 * a_2))
Expected improvement of a candidate run for a loss that is minimised
z = (L_best - mu_n) / s_n; EI = (L_best - mu_n) * Phi_z + s_n * exp(-z^2 / 2) / 2.5066283
Library
Publications
11
A tutorial on Bayesian optimization — Frazier PI, arXiv:1807.02811 [stat.ML], version 1, 8 July 2018 ed., 2018 (arXiv)
Tutorial on Bayesian optimisation of expensive black-box functions using Gaussian process surrogates and acquisition functions such as expected improvement, entropy search and the knowledge gradient.
Web (Open Access)View source →Bayesian calibration of computer models — Kennedy MC, O'Hagan A, Vol. 63, No. 3, pp. 425-464 ed., 2001 (Journal of the Royal Statistical Society: Series B (Statistical Methodology))
Paper on Bayesian calibration of computer models whose predictions allow for remaining uncertainty over the fitted parameters and attempt to correct for inadequacy of the model.
Journal ArticleView source →Bayesian optimization with additive kernels for a stepwise calibration of simulation models for cost-effectiveness analysis — Gómez-Guillén D, Díaz M, Arcos JL, Cerquides J, Vol. 17, Article 249 ed., 2024 (International Journal of Computational Intelligence Systems)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Bayesian Optimisation, where it is cited as a reference for that concept.
Journal ArticleView source →Gaussian Processes for Machine Learning — Rasmussen CE, Williams CKI, 2006 (MIT Press)
Textbook on Gaussian processes for machine learning, cited for the posterior mean and covariance of Gaussian process regression with a noise term.
BookView source →Calibration of disease simulation model using an engineering approach — Kong CY, McMahon PM, Gazelle GS, Vol. 12, No. 4, pp. 521-529 ed., 2009 (Value in Health)
Study calibrating 28 natural history parameters of the Lung Cancer Policy Model to 11 targets, in which simulated annealing located a better goodness of fit than a genetic algorithm.
Journal ArticleView source →Bayesian methods for calibrating health policy models: a tutorial — Menzies NA, Soeteman DI, Pandya A, Kim JJ, Vol. 35, No. 6, pp. 613-624 ed., 2017 (PharmacoEconomics)
Tutorial on Bayesian calibration of health policy models, which combines prior distributions, model structure and a likelihood function through Bayes' theorem to give a distribution of parameter values.
Journal ArticleView source →Emulator-based Bayesian optimization for efficient multi-objective calibration of an individual-based model of malaria — Reiker T, Golumbeanu M, Shattock A, Burgert L, Smith TA, Filippi S, Cameron E, Penny MA, Vol. 12, Article 7212 ed., 2021 (Nature Communications)
Study calibrating 23 input parameters of the OpenMalaria individual-based model against 11 outcomes, in which emulator-based Bayesian optimisation quickly achieved a better fit than the genetic algorithm used before.
Journal ArticleView source →Microsimulation model calibration with approximate Bayesian computation in R: a tutorial — Shewmaker P, Chrysanthopoulou SA, Iskandar R, Lake D, Jutkowitz E, Vol. 42, No. 5, pp. 557-570 ed., 2022 (Medical Decision Making)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Bayesian Optimisation, where it is cited as a reference for that concept.
Journal ArticleView source →Methods of model calibration: observations from a mathematical model of cervical cancer — Taylor DC, Pawar V, Kruzikas D, Gilmore KE, Pandya A, Iskandar R, Weinstein MC, Vol. 28, No. 11, pp. 995-1000 ed., 2010 (PharmacoEconomics)
Comparison of calibration methods for a model of HPV and cervical disease, in which Nelder-Mead and manual calibration achieved mean deviations of 7% and 10% against 39% for random search.
Journal ArticleView source →Calibrating models in economic evaluation: a seven-step approach — Vanni T, Karnon J, Madan J, White RG, Edmunds WJ, Foss AM, Legood R, Vol. 29, No. 1, pp. 35-49 ed., 2011 (PharmacoEconomics)
Paper setting out a seven-step approach to calibrating models in economic evaluation, including the choice of parameter search strategy and the stopping rule.
Journal ArticleView source →Conceptualizing a Model: A Report of the ISPOR-SMDM Modeling Good Research Practices Task Force-2 — Roberts, Russell, Paltiel, Chambers, McEwan & Krahn, Task Force Report 2 ed., 2012 (Value in Health / Medical Decision Making)
Best-practice guidance on model conceptualisation — defining the decision problem, scoping, and choosing an appropriate model structure before implementation.
Journal ArticleView source →
Frequently Asked Questions (6)
What is Bayesian optimisation?
Bayesian optimisation seeks the inputs that optimise a costly function, such as a model's fit to calibration targets, using a surrogate to pick each run.
Source: Frazier 2018
How does Bayesian optimisation choose where to evaluate next?
At each step, the method fits a surrogate model, most often a Gaussian process, to the evaluations made so far. The surrogate gives a predicted value and an uncertainty for every untried point. An acquisition function, such as expected improvement, then scores each candidate by weighing a promising prediction against high uncertainty, and the highest-scoring point is evaluated next. The new result updates the surrogate, and the cycle repeats until the evaluation budget is used or further improvement is negligible.
Source: Shahriari et al. 2016
Why is Bayesian optimisation useful for calibrating health economic models?
Calibrating a simulation model means searching for unobservable parameter values, such as disease progression rates, that make the model reproduce observed targets like incidence or mortality. When each run takes minutes or hours, grid searches and random sampling spend most of the available computing time in poor regions. Bayesian optimisation concentrates runs where a good fit is likely, so acceptable calibrated values can be found with far fewer model evaluations. It suits problems with a modest number of parameters to calibrate.
Source: Shahriari et al. 2016
How does Bayesian optimisation differ from Bayesian analysis of model parameters?
Bayesian analysis treats model parameters as uncertain and combines prior beliefs with data to produce posterior distributions, which is a question of inference. Bayesian optimisation is a search method that uses Bayesian updating only to describe an unknown objective function, so that the next evaluation can be chosen well. Its output is a best set of inputs rather than a posterior distribution for the parameters. A model can use either approach, or both, depending on whether the aim is a single best fit or a description of the uncertainty around it.
Source: Shahriari et al. 2016
What are the limitations of Bayesian optimisation?
Performance usually falls as the number of inputs grows, because the surrogate becomes harder to fit and the search space expands quickly. Results depend on choices such as the surrogate's kernel and the acquisition function, and these need to be reported so the search can be reproduced. Fitting a Gaussian process also slows down as evaluations accumulate. In calibration, a single best fit can understate uncertainty, so analysts may still need methods that explore a range of well-fitting parameter sets.
Source: Shahriari et al. 2016
When is Bayesian optimisation preferred to simpler search methods?
The extra complexity pays off when each evaluation of the objective is expensive, noisy or without usable derivatives, so methods that rely on gradients or on many cheap runs are impractical. Typical cases include calibrating microsimulation or discrete event models and tuning the settings of a machine learning model used for risk prediction. When a single run takes a fraction of a second, grid search, random search or the Nelder-Mead method are usually adequate and easier to explain.
Source: Shahriari et al. 2016
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 10 Oct 2026
Content version: 1.0.2
Canonical Identity
- Term code
- HE-EM-DM-003
- Wikidata
- Q17002908
Stable URI · Machine-readable · Resolvable · CC BY 4.0
