PHAR-311 · Lesson 5 of 12 · 23 min
Bayesian forecasting and model-informed precision dosing
▶ Video coming soon A video version of this lesson is on the way.
Yusra has watched Priya enter a patient's details into the hospital's dosing software: age, sex, weight, height, serum creatinine, every dose with its start and stop times, and a single drug level. Within seconds, the screen shows an estimated clearance and volume, a predicted concentration-time curve passing close to the measured point, a 24-hour AUC, and a table of alternative regimens with their predicted exposures. Yusra asks the obvious question: if the software can do all this from one level, why did she spend a month learning two-level equations? Priya's answer takes the rest of the afternoon, and it is the subject of this lesson. Bayesian software is powerful because it combines two sources of information. Understanding those sources, and how the software weighs them, is what lets a pharmacist recognize when its answer is sound and when it is nonsense.
The idea: combining prior knowledge with patient data
The classic methods of Lesson 4 use only the patient's own levels. With two well-timed post-distribution levels at steady state, they work well. With one level, or levels drawn at awkward times, or a patient whose kidney function is changing, they struggle, because there are more unknown parameters than measurements.
Bayesian estimation resolves this by bringing in prior information from a population pharmacokinetic model. The model states the typical values of clearance and volume for a patient with given characteristics, and how much individuals typically vary around those values. The measured levels then pull the estimate away from the typical values toward whatever best explains the patient's data. The result, the posterior estimate, is a principled compromise: close to the population typical values when the patient's data are sparse or noisy, and close to the patient's own data when those data are rich and precise.
The approach takes its name from Bayes' theorem, which describes how a prior probability is updated by new evidence. In pharmacokinetic practice, the most common implementation finds the single most probable set of parameters, the maximum a posteriori (MAP) estimate, by minimizing an objective function with two terms: one penalizing differences between predicted and measured concentrations, and one penalizing differences between the patient's parameters and the population typical values. Each term is weighted by its expected variability.
Population pharmacokinetic models
A population pharmacokinetic model has three parts:
- A structural model: one-, two- or three-compartment, with first-order or nonlinear elimination, and the route of administration.
- Covariate relationships: equations linking typical parameter values to patient characteristics. Clearance of a renally eliminated drug might be modeled as a function of creatinine clearance or eGFR; volume as a function of body weight; and either might differ with age, critical illness or dialysis.
- Variability terms: between-subject variability (how much individuals differ from the typical value after accounting for covariates, often expressed as a coefficient of variation) and residual variability (the unexplained scatter of measured concentrations around an individual's true curve, which includes assay error, timing error and model misspecification).
Models are developed from studies in which many patients have levels measured, often with nonlinear mixed-effects modeling. A model is only as applicable as the population it came from: a model built from stable adult ward patients may describe critically ill, obese, pregnant or dialysis patients poorly. Good software offers several models for a drug and states the population each represents.
How the weighting works: a simplified example
Real software estimates several parameters at once with multidimensional calculations. The essence can be seen with one parameter. If both the prior and the information from the patient's level are approximately log-normal, the posterior estimate of the logarithm of clearance is a precision-weighted average of the prior and the data, where precision is the inverse of the variance.
Worked problem
A one-parameter Bayesian update for hypothetical Drug W
For hypothetical Drug W, the population model predicts a clearance of 4.0 L/h for Yusra's patient, with between-subject variability of about 30 percent (omega = 0.30 on the log scale). A single level, interpreted on its own with the population volume, suggests a clearance of 6.0 L/h, with an uncertainty of about 20 percent (sigma = 0.20). Estimate the posterior clearance.
Show solution
- Prior: ln 4.0 = 1.386; precision = 1 / 0.30 squared = 1 / 0.09 = 11.1.
- Data: ln 6.0 = 1.792; precision = 1 / 0.20 squared = 1 / 0.04 = 25.0.
- Posterior ln CL = (11.1 × 1.386 + 25.0 × 1.792) / (11.1 + 25.0) = (15.4 + 44.8) / 36.1 = 1.667.
- Posterior CL = e to the power 1.667 = 5.3 L/h. Posterior uncertainty = square root of (1 / 36.1) = 0.17, about 17 percent, smaller than either source alone.
- If a second, independent level gave similar information, the data precision would roughly double to 50, and the posterior would move to about (11.1 × 1.386 + 50 × 1.792) / 61.1 = 1.718, a CL of 5.6 L/h, closer to the data.
Answer: Posterior clearance about 5.3 L/h after one level, moving toward the data as more levels are added (a simplified teaching calculation for a fictional drug).
The example shows three features of Bayesian estimation that matter in practice. First, a single level does not completely override the population estimate; the patient is assumed to be somewhat typical until the data prove otherwise. Second, the more precise the data, the more they dominate. Third, the posterior is more certain than either source, which is why a Bayesian AUC estimate from one or two levels can be clinically useful.
The same features have a downside, known as shrinkage: when data are sparse, estimates are pulled toward the population mean. For a truly unusual patient, such as one with augmented renal clearance whose covariates suggest a normal clearance, a single level may not move the estimate far enough. A second level, or a model developed in a similar population, fixes this.
Advantages over classic methods
- Flexible sampling: levels can be drawn at any time after a dose, including during the first dose and before steady state, as long as times are recorded accurately.
- Fewer levels: AUC can be estimated from one or two levels, which reduces phlebotomy and cost.
- Accounts for changing covariates: when creatinine changes from day to day, the model can update clearance over time, rather than assuming the constant parameters that classic equations require.
- Uses all available data: every level from the course of therapy can be included, with the most recent and relevant information carrying weight.
- Forecasting: once parameters are estimated, the software predicts concentrations and exposures for any proposed regimen, including loading doses and changes in interval.
Model-informed precision dosing
The clinical use of pharmacokinetic and pharmacodynamic models with patient data to individualize dosing is now usually called model-informed precision dosing (MIPD). It includes a priori dosing, in which the model and covariates choose a first dose before any levels exist, and a posteriori dosing, in which levels refine the estimate. MIPD extends beyond the classic monitored drugs to beta-lactams in critical illness, antifungals, immunosuppressants and anticancer drugs.
The 2020 revised consensus guideline on vancomycin from the American Society of Health-System Pharmacists, the Infectious Diseases Society of America, the Pediatric Infectious Diseases Society and the Society of Infectious Diseases Pharmacists gave MIPD its biggest push in North America. For serious MRSA infections it recommended AUC-guided dosing and preferred Bayesian software for estimating AUC, ideally with two levels (one near the peak after distribution and one trough), while accepting one trough level with a Bayesian approach and allowing first-order equations with two levels as an alternative. Lesson 7 details the guideline.
Adoption: what surveys show
Adoption has been uneven. A cross-sectional survey of Canadian hospitals published in the Canadian Journal of Hospital Pharmacy in 2023 (Jorgensen and colleagues) found that about 90 percent of responding hospitals still used trough-based vancomycin monitoring and only about 10 percent used AUC-based monitoring in some form. Of the 12 hospitals using AUC methods, half used publicly available Bayesian software and most of the rest used the two-sample equation method. Respondents identified barriers that will be familiar to any pharmacy department: lack of physician familiarity, the need for training, the requirement for multiple levels, laboratory and nursing resources, mistimed samples, pharmacist time and cost. US hospitals adopted AUC monitoring faster after 2020, but practice varies widely there too.
Software options range from free, publicly available web calculators to commercial platforms integrated with the electronic health record. Integration reduces transcription errors, because dose times and laboratory results flow directly into the model, but it also makes errors in the source record flow directly into the estimate. Institutions choosing software consider the models available for their populations, validation evidence, integration, privacy and security, cost, support and training.
Appraising Bayesian output
Priya gives Yusra a checklist for every Bayesian report before it reaches a prescriber:
- Are the inputs right? Dose amounts, infusion start and stop times, sample times, weight, height and creatinine values. Most errors are here.
- Is the model appropriate? Was it developed in a population like this patient (adult ward, critical care, obesity, dialysis)?
- Does the fitted curve pass reasonably close to the measured levels? A large discrepancy suggests a data error or a poorly fitting model.
- Are the estimated parameters plausible? Compare clearance with the patient's kidney function and volume with body size; a volume twice the expected value or a clearance that contradicts the creatinine trend needs explanation.
- How much did the levels move the estimate? If the posterior is identical to the prior, the levels carried little information, perhaps because they were drawn at uninformative times.
- Is the recommendation clinically sensible? Practical dose, interval and timing; consistent with the patient's trajectory.
Choosing informative sampling times
Not every level is equally informative. A trough mainly informs clearance; a level soon after distribution mainly informs volume. For drugs with half-lives shorter than the dosing interval, a pair of levels, one early and one late, gives the most information about both parameters. A single trough, used with a Bayesian prior for volume, gives a reasonable AUC estimate in many patients, because AUC depends mainly on clearance. A single level drawn during the distribution phase, or one whose time is uncertain, can mislead badly. Many services therefore standardize on two levels during the first dosing interval for unstable patients and one trough for stable patients on maintenance therapy.
Limits and responsibilities
Bayesian software does not remove professional responsibility. Its estimates depend on the model, the data and the assumptions, and it cannot know what the record omits: a dose given late, an infusion paused for a scan, an interacting drug started yesterday. Some dosing software is regulated as a medical device in certain jurisdictions, but regulation addresses software quality, not whether the inputs for a particular patient are correct. Pharmacists using MIPD must understand the classic methods well enough to check the software's answer by hand when it seems wrong, and must document which model was used and why.
Worked problem
Checking a suspicious Bayesian estimate
The software estimates a clearance of 1.2 L/h for a patient on hypothetical Drug W whose eGFR is normal and stable and whose previous estimated clearance, two days ago, was 5.0 L/h. The fitted curve passes through the single new level. What should be checked?
Show solution
- A fourfold fall in clearance without a change in kidney function is implausible; suspect the data.
- Check the sample time: if the level was recorded as a trough but drawn shortly after the end of an infusion, it would be much higher than expected and would make clearance look low.
- Check whether an extra dose was given or a dose time was entered incorrectly.
- Check the sampling site for contamination from an infusion line.
- In this case, the level was drawn 1 hour after the end of an infusion, not before it; corrected, the estimate returns to 4.8 L/h.
Answer: The implausible estimate came from a sample time error, not a change in the patient. Inputs, not algorithms, cause most Bayesian errors.
Yusra's summary of the afternoon, written in her rotation journal, is the best compressed statement of the lesson: the software knows the population, the levels know the patient, and the pharmacist has to know both well enough to tell when one of them is lying.
Common mistakes
MistakeAccepting a Bayesian estimate without checking dose and sample times.
InsteadVerify inputs first; most errors come from the record, not the algorithm.
MistakeUsing a model developed in stable ward patients for a critically ill patient without question.
InsteadChoose a model developed in a similar population, or interpret with caution and obtain more levels.
MistakeBelieving a single level always reveals the patient's true parameters.
InsteadSparse data are shrunk toward the population mean; unusual patients may need a second level.
MistakeDrawing a level at an uninformative time and expecting precise estimates.
InsteadPlan samples that inform the parameter of interest: early for volume, late for clearance.
MistakeAbandoning classic equations once software is available.
InsteadUse them to check the software when results look implausible.
Summary and key terms
- Bayesian estimation combines a population model (prior) with patient levels (data) to give a posterior estimate, usually by maximum a posteriori fitting.
- Population models have structural, covariate and variability components; their applicability depends on the population studied.
- Advantages: flexible timing, fewer levels, changing covariates, forecasting; limitation: shrinkage toward the population mean with sparse data.
- The 2020 vancomycin consensus guideline prefers Bayesian AUC estimation; a 2023 Canadian survey found only about 10 percent of hospitals using AUC methods.
- Appraise inputs, model choice, fit, plausibility and clinical sense before acting on software output.
- Bayesian forecasting
- Estimating an individual's pharmacokinetic parameters by combining a population model with measured levels, then predicting future concentrations.
- Prior
- The population-based estimate of a patient's parameters before the patient's levels are considered.
- Posterior
- The updated estimate after combining the prior with the patient's data.
- Maximum a posteriori (MAP) estimate
- The most probable set of individual parameters given the prior and the data.
- Between-subject variability
- The spread of individual parameter values around the population typical value after accounting for covariates.
- Residual variability
- Unexplained scatter of measured concentrations around the individual's predicted curve.
- Shrinkage
- The tendency of Bayesian estimates to be pulled toward population values when individual data are sparse.
- Model-informed precision dosing (MIPD)
- The clinical use of pharmacometric models and patient data to individualize doses.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Prior CL 3 L/h (omega 0.4) and data-derived CL 6 L/h (sigma 0.2). Which will the posterior lie closer to, and why?
Show answer
Closer to 6 L/h, because the data are more precise (precision 25 versus 6.25).
Which sample time mainly informs clearance for a drug with a short half-life relative to the interval?
Show answer
A late sample, such as a trough.
Name two causes of shrinkage-related error.
Show answer
Sparse levels and a patient who is atypical for the model's covariates (for example augmented renal clearance).
Why does EHR integration of dosing software cut both ways?
Show answer
It removes transcription errors but carries any errors in the record directly into the estimate.
What does it suggest if the posterior equals the prior after entering a level?
Show answer
The level carried little information, perhaps because of its timing, or it was not included in the fit.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.