From Mechanistic Trajectories to Event Times
A QSP model produces trajectories of biological states, but a clinical time-to-event outcome requires an additional rule that says when an event has occurred. The same simulated trajectory can imply different event times under different rules. For example, a change in a biomarker is not automatically a clinical event; the model must specify which biomarker value, direction of change, duration, or event intensity corresponds to the clinical endpoint.
The predictive target should therefore include the event definition, the time origin, the population being predicted, and the prediction horizon. Earlier material on defining predictive targets and mapping parameter ensembles to clinical predictions provides the general framework: here the outcome derived for each simulated virtual patient is an event time \(T\), potentially not observed within the simulated horizon.
Two common ways to derive \(T\) from a mechanistic trajectory are a threshold rule and a hazard rule. A threshold rule makes the event time a deterministic consequence of the trajectory, conditional on the model inputs. A hazard rule specifies an instantaneous event rate conditional on remaining event-free; it can represent event timing that is not determined by a single state crossing.
Threshold Rules and Crossing Times
Let \(x_i(t)\) denote a relevant state for virtual patient \(i\). A simple upward threshold rule with threshold \(c\) defines \(T_i\) as the first time \(x_i(t)\geq c\). A downward rule instead uses the first time \(x_i(t)\leq c\). The direction, threshold, and any requirements such as persistence above threshold must be specified before calculating event times. If the trajectory never satisfies the rule during the prediction horizon, the event time is not known to be the horizon: it is only known to exceed that horizon.
QSP trajectories are usually stored at discrete time points. If a crossing occurs between two output times and linear interpolation is appropriate, the crossing time can be approximated from the two bracketing state values. For an upward crossing between \(t_a\) and \(t_b\), where \(x_i(t_a)<c\leq x_i(t_b)\), the interpolated time is:
This calculation assumes that linear interpolation is adequate over that interval and that the crossing is genuine. A coarse output grid can miss a brief crossing or misplace a steep crossing. Oscillating states also require care: a first-crossing rule and a rule requiring the state to remain beyond threshold for a specified duration are different endpoints.
Worked Example: Interpolating a Threshold-Crossing Time
Suppose a hypothetical virtual patient has a disease-state value of 8 units at month 3 and 14 units at month 5. The event is defined as the first upward crossing of 11 units. Assume linear change between these outputs.
The values bracket the threshold, so use \(t_a=3\), \(t_b=5\), \(x_i(t_a)=8\), \(x_i(t_b)=14\), and \(c=11\):
Thus this patient's predicted event time is approximately 4 months under the stated rule. This is not a claim that the clinical event is biologically identical to the state reaching 11 units; that correspondence is an assumption in the endpoint definition. If the state had been below 11 at every saved output, the event would be unobserved through the final output time, not assigned to that final time.
Hazard Rules for Events Not Fixed by a Crossing
A hazard rule can describe an event whose timing depends on both the mechanistic state and a stochastic event process. The hazard \(\lambda_i(t)\) is the instantaneous event rate at time \(t\), conditional on the patient having remained event-free just before \(t\). It has units of inverse time. A hazard model must specify how the trajectory determines this rate, for example \(\lambda_i(t)=g(x_i(t),\theta_i)\), where \(g\) is a nonnegative function and \(\theta_i\) denotes relevant model inputs.
For a specified hazard trajectory, the cumulative hazard through time \(t\) is the area under the hazard curve. The conditional survival probability is the exponential of minus this cumulative hazard:
This relationship assumes the hazard is defined conditional on being event-free and that the event process is represented by the specified hazard. To simulate an event time, draw \(E\) from an exponential distribution with rate 1 and set \(T_i=\inf\{t:\Lambda_i(t)\geq E\}\). If cumulative hazard has not reached \(E\) by the simulation horizon, the simulated event is beyond that horizon. Alternatively, for a milestone probability, it may be more precise to average conditional survival probabilities rather than add noise from individual event-time draws.
Worked Example: Simulating an Event From a Piecewise Hazard
Consider a hypothetical trajectory that implies a hazard of 0.10 per month from month 0 to month 2 and 0.30 per month from month 2 onward. A simulated unit-exponential draw is \(E=0.50\). Find the event time, assuming the hazard remains 0.30 per month after month 2.
The cumulative hazard at month 2 is \(0.10\times2=0.20\), which is below \(E=0.50\), so the event occurs after month 2. The additional cumulative hazard required is \(0.50-0.20=0.30\). At 0.30 per month, that takes \(0.30/0.30=1\) month. Therefore:
For comparison, the probability of remaining event-free through month 2 under this hazard is \(\exp(-0.20)\approx0.8187\). The event time of 3 months is one stochastic realization, not the only event time consistent with the hazard trajectory.
Propagating Uncertainty to Survival and Milestones
For a virtual population of \(N\) equally weighted patients with simulated event times \(T_1,\ldots,T_N\), the empirical survival estimate at time \(t\) is the fraction whose events occur after \(t\). For a threshold-derived event time or a set of simulated hazard event times, this gives a direct estimate of the population prediction:
Here \(I(\cdot)\) equals 1 when its condition is true and 0 otherwise. A milestone probability, such as the probability of an event by month 6, is \(\widehat{F}(6)\). With a hazard rule, the conditional survival probabilities can instead be averaged across the virtual population:
This estimates survival averaged over the simulated population and its hazard-model inputs. It avoids Monte Carlo variation from drawing a separate event realization for each patient, although uncertainty from a finite number of virtual patients remains. When patients have unequal population weights, each term must be weighted and the weights normalized to sum to 1.
The predicted median event time is the earliest time at which the population survival curve is at or below 0.5. If the curve remains above 0.5 through the horizon, the median is not identified within that horizon. A median calculated from a pooled predictive distribution also need not equal the median of medians calculated separately for different parameter sets: taking a median and averaging or pooling are different operations.
Worked Example: Survival, Milestone Probability, and Median
Suppose five equally weighted, hypothetical virtual patients have event times of 2, 4, 4, 6, and 8 months. Events are counted as having occurred by time \(t\) when \(T_i\leq t\). Calculate survival and event probability at month 4, then find the median event time.
At month 4, three patients have experienced the event: the patients with times 2, 4, and 4 months. Therefore:
The estimated probability of an event by month 4 is 60.0%, and the estimated probability of remaining event-free beyond month 4 is 40.0%. Since survival first falls to 0.5 at month 4, the empirical median event time is 4 months. The event times are discrete here, so the estimated curve drops in steps; interpolation between observed event times would require an additional convention.
In a full prediction, each patient's event time is derived from a trajectory generated using uncertain parameters and patient characteristics. The distribution of those event times, or the corresponding averaged hazard survival probabilities, propagates those inputs to the clinical endpoint. If uncertainty is separated into components, variation among virtual patients describes patient variability, while changes across plausible parameter sets describe epistemic uncertainty. A single survival curve that averages over both does not by itself show how much each component contributed.
Assumptions, Diagnostics, and Alternatives
Before interpreting a prediction, check that the event rule matches the intended clinical outcome, the time origin and units are consistent, the simulated horizon is long enough, and the numerical time grid resolves relevant crossings or hazard changes. For a hazard calculation, verify that rates are nonnegative, have the intended time units, and are integrated with adequate numerical accuracy. For a threshold calculation, inspect trajectories near the crossing and check whether repeated crossings or brief excursions change the event definition.
A useful diagnostic is to compare event-time summaries after refining the output time step. Large shifts in crossing times or milestone probabilities suggest that numerical resolution is inadequate. Also check the number of patients with no event by the horizon. Treating each such patient as if an event occurred exactly at the horizon creates an artificial concentration of event times and can bias the survival curve and median downward.
| Approach | Event-time meaning | Main advantage and limitation |
|---|---|---|
| Threshold rule | First time a trajectory satisfies a specified state condition | Transparent and directly tied to a mechanistic state; sensitive to the threshold and crossing convention. |
| Hazard rule | Time generated from a state-dependent instantaneous event rate | Represents stochastic timing without a single crossing; requires a justified hazard function and numerical integration. |
| Conditional hazard survival | Survival probability calculated from cumulative hazard for each trajectory | Efficient for milestone and survival estimates; represents conditional probabilities rather than individual event-time draws. |
These approaches are alternatives only when each is scientifically defensible for the endpoint. A threshold is not automatically preferable because it is simpler, and a hazard is not automatically realistic because it is flexible. Both can be misspecified, and both depend on the quality and scope of the underlying QSP model. Predictions beyond the simulated horizon, or from trajectories that leave the model's supported domain, require particular caution.
Common Pitfalls and Interpretation
- Calling the last simulation time an event time. If the event rule was not met, the result is \(T>\tau\) at horizon \(\tau\), not \(T=\tau\).
- Leaving the threshold rule vague. State the variable, threshold, crossing direction, time origin, and any persistence requirement.
- Reporting a conditional hazard curve as the population survival curve. Average conditional survival over the target population to obtain marginal survival.
- Equating a mechanistic state crossing with clinical validation. A crossing produces a prediction only under the assumed mapping from model state to clinical event.
- Reporting a median when fewer than half the predicted population has events within the horizon. In that case, the median is beyond the horizon or not identified by the available simulation.
Check Your Understanding
Use the definitions above to answer each question. The solutions are included for checking your reasoning.
- A state rises from 4 units at month 1 to 10 units at month 4. Under a linear-interpolation rule, when does it first cross 7 units?
- For a hazard of 0.20 per month that is constant for 3 months, what is the probability of an event by month 3?
- Four equally weighted patients have event times 1, 3, 5, and beyond month 6. What is the estimated probability of an event by month 3?
- Why is assigning a non-event at month 6 the event time 6 months generally incorrect?
- If a population survival curve remains at 0.65 through the final simulated month, what can be concluded about its median within that horizon?
Solutions. (1) The interpolated time is \(1+(7-4)(4-1)/(10-4)=1+9/6=2.5\) months. (2) The cumulative hazard is \(0.20\times3=0.60\), so \(F(3)=1-\exp(-0.60)\approx0.4512\), or 45.1%. (3) Two of four event times are at or before month 3, so the estimated probability is \(2/4=0.500\), or 50.0%. (4) The rule establishes only that the event has not occurred by month 6; the event may occur later, so the observation is right-censored at 6 months rather than an event at 6 months. (5) The median is not reached within the simulated horizon because survival remains above 0.5; the available prediction does not identify its value within that horizon.