From Mechanistic Trajectories to Scheduled Biomarkers
QSP models often generate continuous-time trajectories, while a clinical protocol records biomarkers at particular visits: for example, baseline and weeks 4, 12, and 24. The prediction target is therefore not merely a curve. It is the distribution of biomarker values at specified times, and of summaries such as change from baseline or the probability of crossing a response threshold. Those quantities depend on evaluating each simulated trajectory at the same clinically defined times before summarizing across trajectories.
The target must also say what the biomarker value represents. A model state may be a latent biological quantity, whereas a clinical endpoint may be a measured laboratory value after a measurement process. Decide which scale is required, and ensure the model output has been mapped to that scale before extracting visits. The predictions below are conditional on the ensemble of trajectories supplied; they do not, by themselves, establish that the model is clinically validated.
Before calculating these quantities, specify the visit times and their time origin, the biomarker units, the baseline definition, and the direction and scale of a clinically meaningful response. Confirm that every trajectory uses the same dosing and visit-time conventions. If the ensemble is weighted, those weights must also be carried into the summaries; the examples here use equally weighted trajectories.
Evaluating a Trajectory at a Visit
If the model solver can return output exactly at a scheduled time, use that value. If the solver provides values only on a time grid, an interpolation rule may be needed. Linear interpolation between adjacent output points is one option when the trajectory is sufficiently smooth over that interval. Interpolation is a numerical approximation, not a new model prediction; it should not conceal sharp transitions, discontinuities, or inadequately resolved dynamics.
Worked Example: Extracting a Value Between Solver Output Times
Suppose a hypothetical trajectory gives a biomarker concentration of 82 mg/L at week 4 and 70 mg/L at week 8. The protocol visit is week 6, and linear interpolation is considered adequate over this interval. The interpolated value is
If the baseline concentration on this trajectory is 100 mg/L, the absolute change at week 6 is \(76-100=-24\) mg/L, and the percent change is \(100(76-100)/100=-24\%\). These are values for this trajectory, not summaries over an uncertainty ensemble. If the trajectory were changing sharply between weeks 4 and 8, a denser solver grid or direct evaluation at week 6 would be preferable to assuming a straight line.
For an ensemble, apply the same visit-time rule to every trajectory. The empirical predictive distribution at visit \(t_k\) is represented by the set of values \(Y_1(t_k),\ldots,Y_M(t_k)\), where \(M\) is the number of trajectories. Its empirical cumulative distribution is
where \(I\{\cdot\}\) equals 1 when the condition is true and 0 otherwise. Quantiles of this empirical distribution can summarize predictive spread; a prediction interval made from its quantiles describes the represented predictive distribution under the chosen ensemble and model assumptions. It is not a confidence interval for a fixed parameter.
Changes from Baseline and Responder Thresholds
Calculate a change within each trajectory before summarizing across trajectories. The absolute change \(D_{jk}\) retains the biomarker's units. A percent change is \(100D_{jk}/Y_j(t_0)\), provided the baseline value is nonzero and the ratio is meaningful for the biomarker. For a biomarker where lower values are favorable, percent reduction is often reported as \(100\{Y_j(t_0)-Y_j(t_k)\}/Y_j(t_0)\); this reverses the sign relative to percent change. State the convention explicitly.
A responder definition turns a continuous trajectory-level outcome into an indicator. For example, if response means at least a 15% reduction from baseline, define \(R_j=I\{100[Y_j(t_0)-Y_j(t_k)]/Y_j(t_0)\geq15\}\). For equally weighted trajectories, the predicted responder proportion is \(\hat p=M^{-1}\sum_j R_j\). This is the fraction of represented trajectories meeting the stated criterion. It is not the probability that any particular patient will respond unless the ensemble and weighting support that interpretation.
Worked Example: Week-12 Change and a Responder Threshold
Consider four hypothetical, equally weighted trajectories for a biomarker measured in mg/L. Each has a baseline value of 100 mg/L. Their week-12 values are 80, 92, 94, and 85 mg/L. Define a responder as having at least a 15% reduction from baseline.
| Trajectory | Baseline (mg/L) | Week 12 (mg/L) | Change (mg/L) | Reduction from baseline | Responder? |
|---|---|---|---|---|---|
| 1 | 100 | 80 | -20 | 20% | Yes |
| 2 | 100 | 92 | -8 | 8% | No |
| 3 | 100 | 94 | -6 | 6% | No |
| 4 | 100 | 85 | -15 | 15% | Yes |
The changes are calculated as week-12 value minus baseline; for example, trajectory 1 has \(80-100=-20\) mg/L. Its reduction is \(100(100-80)/100=20\%\). The empirical responder proportion is
The mean absolute change across these four trajectories is \((-20-8-6-15)/4=-12.25\) mg/L. Their sample standard deviation is
This standard deviation describes the spread of these four changes; it is not the Monte Carlo standard error of an estimated mean. With only four trajectories, the empirical responder proportion is also a coarse summary. A larger, adequately representative ensemble is needed to characterize the predictive distribution reliably.
Longitudinal Contrasts Preserve Pairing
A longitudinal contrast compares values at two times within a trajectory. For visits \(t_a\) and \(t_b\), define \(C_j=Y_j(t_b)-Y_j(t_a)\). Computing this for each trajectory preserves the fact that both values came from the same virtual patient or uncertainty draw. The ensemble of \(C_j\) values gives the distribution of individual within-trajectory contrasts.
The importance of pairing follows directly from the variance identity. Write \(A=Y(t_a)\) and \(B=Y(t_b)\) for values on the same trajectory. Then
Thus, the distribution of a within-trajectory contrast depends on the covariance between visits. Subtracting values drawn independently from the two visit-specific marginal distributions discards that covariance and generally gives the wrong spread. The mean contrast equals the difference of the two means when calculated on the same equally weighted ensemble, but that equality does not make the contrast distributions interchangeable.
Worked Example: A Paired Week-4-to-Week-12 Contrast
Use the same four hypothetical trajectories as above, with week-4 values of 90, 96, 97, and 92 mg/L and week-12 values of 80, 92, 94, and 85 mg/L. Calculate week 12 minus week 4 for each matching trajectory.
The sample standard deviation of the paired contrasts is
As a check on the mean, the week-4 mean is \(375/4=93.75\) mg/L and the week-12 mean is \(351/4=87.75\) mg/L, so their difference is \(-6.00\) mg/L, matching the mean of the paired contrasts. The pairing is still essential for describing their spread and for applying any trajectory-level rule to the contrast.
Assumptions, Diagnostics, and Alternatives
Scheduled-time predictions are interpretable only if the simulated ensemble matches the intended predictive target. Check that baseline, visit times, biomarker definition, units, dosing schedule, and any clinical visit-window convention are consistent across trajectories and with the question being answered. If the target is a latent model state, do not label it as a measured laboratory outcome; if a measured outcome is required, use an appropriate mapping to that scale.
- Check time alignment. Verify time origin, units (such as days versus weeks), and whether each visit is measured from treatment start or another event.
- Check interpolation. Compare grid spacing with the speed of the modeled dynamics. Refine solver output near rapid changes, dose events, or discontinuities instead of relying on coarse linear interpolation.
- Check baseline and denominator. Confirm that the same protocol-defined baseline is used for each trajectory. Percent change is unstable or undefined for zero or near-zero baselines.
- Check ensemble pairing and weights. Keep each trajectory's visit values together. Preserve any ensemble weights rather than treating unequal weights as equal counts.
- Check summaries against trajectories. Inspect trajectories and empirical distributions for implausible values, multimodality, or a few influential outcomes. A mean alone may obscure these features.
There are several reasonable choices, but they answer different questions. Direct solver evaluation is preferable when available; interpolation is a practical approximation when justified by adequate temporal resolution. Absolute change is useful when the biomarker's units and scale matter, while percent change expresses change relative to baseline but can behave poorly near zero. A threshold indicator answers a binary clinical question but discards information about how far each trajectory lies above or below the cutoff. A paired contrast answers a within-trajectory longitudinal question; comparing two marginal distributions alone does not retain that information.
A common mistake is to take the median or mean at each visit and then treat the resulting summary curve as if it were a typical trajectory. In general, a summary at each time can combine different trajectories, so its changes need not represent the ensemble's individual changes. The correction is to calculate the desired change, threshold indicator, or contrast separately for every trajectory first, and only then summarize those derived outcomes.
These calculations do not remove limitations in the mechanistic model, the uncertainty ensemble, or the clinical endpoint definition. They also do not establish that an estimated tail probability or responder proportion is precise merely because it is numerically reported. Monte Carlo precision and broader predictive uncertainty are distinct, and the ensemble must be sufficiently large and representative for the intended summary.
Check Your Understanding
Try each problem, then compare with the solutions below.
- A biomarker is 50 mg/L at baseline and 42 mg/L at week 8. What are the absolute change and percent change?
- For three equally weighted trajectories, week-12 reductions are 10%, 20%, and 25%. If response is defined as at least a 20% reduction, what is the predicted responder proportion?
- Two trajectories have week-4 and week-12 values of (90, 80) mg/L and (70, 65) mg/L, respectively. Calculate the week-12-minus-week-4 contrast for each and the mean contrast.
- Why can independently pairing week-4 and week-12 values change the estimated spread of longitudinal contrasts?
Solutions. (1) The absolute change is \(42-50=-8\) mg/L. Percent change is \(100(-8)/50=-16.0\%\); expressed as reduction, this is 16.0%. (2) Two of the three trajectories meet the inclusive threshold, so \(\hat p=2/3\approx66.7\%\). (3) The paired contrasts are \(80-90=-10\) mg/L and \(65-70=-5\) mg/L. Their mean is \((-10-5)/2=-7.50\) mg/L. (4) The paired contrast distribution depends on the covariance between visit values. Independent pairing removes the trajectory-level association, so it can produce a different contrast variance and spread.