Tutorials › Physiologically-Based Pharmacokinetics (PBPK) › Second-Order Local Sensitivity and Interactions

Sensitivity Analysis and Parameter Reduction · Tutorial 727 of 799

Second-Order Local Sensitivity and Interactions

Use second derivatives to assess local curvature and parameter interactions in PBPK outputs, calculate them, and judge when their interpretation is reliable.

Advanced 12 min read

What You'll Learn

  • Distinguish first-order sensitivity from diagonal curvature and mixed partial derivatives.
  • Interpret second-order derivatives using proportional changes in positive PBPK parameters.
  • Apply a second-order Taylor approximation to a model output near a reference parameter set.
  • Estimate mixed partial derivatives with central finite differences and check their stability.
  • Recognize when nonsmooth model features or coordinate choices limit interpretation.

Why First-Order Rankings Can Miss Local Behavior

A first-order sensitivity describes how a PBPK output changes for a small change in one parameter while the other parameters are held fixed. It is a local slope. But a slope alone does not describe whether that slope itself changes nearby, or whether the effect of changing one parameter depends on the value of another. These features are local curvature and parameter interaction, respectively.

Second-order local sensitivity analysis adds the relevant second derivatives to the first-order picture. It can reveal that an output bends noticeably even when its slope at the reference parameter set is small, or that two parameters jointly affect an output in a way that cannot be represented by adding their separate first-order changes. The analysis remains local: it characterizes the model near a specified parameter set, not across the full plausible parameter space.

Definition: Let \(f(\boldsymbol{\theta})\) be a scalar PBPK output, such as AUC or concentration at a specified time, as a function of parameters \(\boldsymbol{\theta}=(\theta_1,\ldots,\theta_p)\). At a reference parameter vector \(\boldsymbol{\theta}_0\), the first derivatives describe local slopes. The second derivatives form the Hessian matrix, whose element \(H_{ij}\) is the derivative of the slope with respect to parameters \(i\) and \(j\). Diagonal elements describe curvature with respect to one parameter; off-diagonal elements describe local cross-curvature between a pair.

Parameter Coordinates and the Second-Order Approximation

PBPK parameters often have different units and scales, so derivatives with respect to raw parameters can be difficult to compare. For positive parameters, a useful local coordinate is the log-relative change \(u_i=\ln(\theta_i/\theta_{i0})\). The reference value corresponds to \(u_i=0\), and a small \(u_i\) represents an approximately proportional change in \(\theta_i\). For example, \(u_i=\ln(1.1)\) represents a 10% increase. Define \(g(\mathbf{u})=f(\boldsymbol{\theta})\) using this coordinate system. Derivatives below refer to these log-relative coordinates unless stated otherwise.

The gradient contains the first derivatives, and the Hessian contains the second derivatives at the reference point. If \(g\) is twice continuously differentiable near that point, its local second-order approximation is:

$$ g(\mathbf{u}) \approx g(\mathbf{0})+ \sum_{i=1}^{p}\frac{\partial g}{\partial u_i}u_i+ \frac{1}{2}\sum_{i=1}^{p}\sum_{j=1}^{p} \frac{\partial^2 g}{\partial u_i\partial u_j}u_i u_j $$

The approximation error is smaller than second order as \(\mathbf{u}\) approaches zero, under the stated smoothness condition. For one parameter, the second-order contribution is \(\frac{1}{2}H_{ii}u_i^2\). For two distinct parameters \(i\) and \(j\), the two corresponding terms in the double sum combine to \(H_{ij}u_i u_j\) when the mixed partial derivatives are equal. Thus the mixed derivative quantifies how the joint change differs from the sum of the separate local slopes, to second order.

A short derivation follows by considering a straight path from the reference point to the perturbed point: define \(\phi(t)=g(t\mathbf{u})\) for \(0\leq t\leq1\). The chain rule gives \(\phi'(0)=\sum_i (\partial g/\partial u_i)u_i\), and differentiating again gives \(\phi''(0)=\sum_i\sum_j (\partial^2g/\partial u_i\partial u_j)u_i u_j\). The one-dimensional second-order Taylor expansion of \(\phi(1)\) about zero is therefore exactly the displayed approximation, with a remainder that is \(o(\|\mathbf{u}\|^2)\) when the second derivatives are continuous at the reference point.

Interpretation: A positive diagonal Hessian element means the output is locally convex in that coordinate; a negative one means it is locally concave. A nonzero mixed partial means the local slope for one parameter changes as the other parameter changes. Its sign describes the direction of this local change, not a universal mechanistic claim about the PBPK system.

Worked Uses of Curvature and Mixed Partials

Worked Example: Curvature Changes a One-Parameter Prediction

Suppose a hypothetical PBPK model has AUC \(g(u)=100+0.5u+8u^2\) mg·h/L near its reference parameter value, where \(u\) is the log-relative change in a positive parameter. Compare the first- and second-order predictions for \(u=0.20\).

At the reference value, \(g(0)=100\) mg·h/L. The first derivative is \(g'(u)=0.5+16u\), so \(g'(0)=0.5\) mg·h/L per log-relative unit. The second derivative is \(g''(u)=16\) mg·h/L per squared log-relative unit. The first-order prediction is \(100+0.5(0.20)=100.10\) mg·h/L.

Including curvature gives \(100+0.5(0.20)+\frac{1}{2}(16)(0.20)^2=100+0.10+0.32=100.42\) mg·h/L. Substituting into the stated model gives \(g(0.20)=100+0.10+0.32=100.42\) mg·h/L, so the second-order expression is exact for this quadratic model. The first-order slope alone substantially understates the change because the local slope increases away from the reference value.

Worked Example: A Mixed Partial Describes Joint Local Change

Consider a hypothetical AUC model near a reference set of two positive parameters: \(g(u_1,u_2)=50+4u_1+3u_2+2u_1^2+u_2^2+5u_1u_2\), in mg·h/L. Find its local second derivatives and approximate the output change when \(u_1=0.10\) and \(u_2=-0.10\).

At the reference point, the first derivatives are \(\partial g/\partial u_1=4\) and \(\partial g/\partial u_2=3\), in mg·h/L per log-relative unit. The second derivatives are \(H_{11}=4\), \(H_{22}=2\), and \(H_{12}=H_{21}=5\), in mg·h/L per squared log-relative unit. The mixed derivative is nonzero: the local slope for parameter 1 changes with parameter 2, and conversely.

The first-order change is \(4(0.10)+3(-0.10)=0.10\) mg·h/L. The second-order diagonal contributions are \(\frac{1}{2}(4)(0.10)^2=0.02\) mg·h/L and \(\frac{1}{2}(2)(-0.10)^2=0.01\) mg·h/L. The mixed contribution is \(5(0.10)(-0.10)=-0.05\) mg·h/L. Therefore the second-order predicted change is \(0.10+0.02+0.01-0.05=0.08\) mg·h/L, giving an output of \(50.08\) mg·h/L. Direct substitution into the model gives the same value. The negative joint contribution partly offsets the positive net first-order change in this particular direction.

Estimating Mixed Derivatives from Model Runs

When analytic derivatives are unavailable, a mixed partial can be estimated by evaluating the model at four nearby points. With step sizes \(h\) and \(k\) in two log-relative coordinates, the centered finite-difference estimate is:

$$ \frac{\partial^2 g}{\partial u_i\partial u_j} \approx \frac{ g(h,k)-g(h,-k)-g(-h,k)+g(-h,-k) }{4hk} $$

Here all coordinates other than \(i\) and \(j\) are held at their reference values. This formula uses changes in both directions so that constant and first-order terms cancel. It is an approximation for a smooth model; its accuracy depends on the step sizes and numerical error in the model evaluations.

Worked Example: Calculating a Mixed Partial from Four Runs

Suppose four hypothetical PBPK model runs give an AUC in mg·h/L according to the local response \(g(u,v)=20+2u-3v+4uv\). Use centered steps \(h=0.10\) and \(k=0.20\) to estimate the mixed derivative at the reference point.

The four model outputs are \(g(0.10,0.20)=19.68\), \(g(0.10,-0.20)=20.72\), \(g(-0.10,0.20)=19.12\), and \(g(-0.10,-0.20)=20.48\) mg·h/L. Substitution gives:

$$ \frac{19.68-20.72-19.12+20.48}{4(0.10)(0.20)} = \frac{0.32}{0.08} =4.00 $$

The estimated mixed derivative is 4.00 mg·h/L per squared log-relative unit. In this example the response is bilinear, so the centered formula recovers the exact mixed derivative. For a general PBPK model, the result is a local numerical estimate rather than an exact value.

Assumptions, Diagnostics, and Failure Modes

The Taylor approximation and symmetric mixed-partial interpretation require a sufficiently smooth output in the neighborhood being examined. If the output has a discontinuity, a sharp threshold, or a change in its definition, local derivatives may not exist or may be a poor summary. PBPK models may include conditional rules, dose or event handling, or numerical solver behavior that creates apparent irregularities. A derivative calculated across such a feature should not automatically be interpreted as biological curvature.

Numerical estimates should be checked by repeating them with more than one reasonable step size. If a finite-difference estimate changes greatly as the step is reduced, possible causes include truncation error at large steps, roundoff or solver error at very small steps, or a genuinely narrow region of changing curvature. Check that the four model runs use the same model settings, output definition, and solver tolerances. Where possible, compare finite differences with derivatives from an analytic or sensitivity-equation implementation.

1
Specify the output and reference set.
Name the endpoint, its units, and the parameter values at which derivatives are evaluated. A derivative for AUC need not describe concentration at a particular time.
2
Choose and report coordinates.
For positive parameters, log-relative coordinates make perturbations interpretable proportionally. Record the step sizes and state whether any parameters were held fixed.
3
Check numerical stability and smoothness.
Repeat finite differences at alternative step sizes and inspect the underlying model runs. Investigate unstable estimates rather than reporting a single derivative without qualification.
4
Interpret locally.
Use the Hessian with the gradient to assess changes near the reference set. Do not extrapolate a local quadratic approximation to large parameter changes without checking the model there.

How This Complements Other Sensitivity Approaches

First-order local sensitivity rankings summarize slopes at a reference parameter set. They are simpler to calculate and interpret when the aim is a small, one-parameter perturbation. Adding second derivatives is useful when curvature or joint local change matters, but it requires more derivatives or model runs and does not turn a local analysis into a global one.

For PBPK ODE models, forward sensitivity equations can be extended to compute second-order sensitivities, while finite differences can estimate them from repeated model evaluations. The former can be efficient when derivatives are implemented reliably; the latter is straightforward to apply but can be sensitive to step size and solver error. Neither approach removes the need to define the output, reference set, and parameter coordinates clearly.

The Hessian is also coordinate-dependent. A mixed partial computed using raw clearance and raw volume parameters is not numerically interchangeable with one computed in log-relative coordinates. Even its sign can change under nonlinear reparameterization in some circumstances. Further, a nonzero mixed partial is evidence of local mathematical dependence in the model response; by itself it does not establish a biological mechanism, parameter correlation, or causal interaction.

Common Mistake and Practical Limitations

  • Mistake: “The mixed derivative is positive, so increasing both parameters must increase the output.” This ignores the signs and sizes of both perturbations, the first-order terms, and diagonal curvature. The mixed contribution is \(H_{ij}u_i u_j\), so its sign depends on both \(H_{ij}\) and the direction of change.
  • Correction: Evaluate the full second-order expression for the perturbation of interest, then verify it against model runs when the change is not very small.
  • Limitation: A Hessian describes local behavior at one reference set. It may not remain informative after large changes, in another physiological scenario, or for a different endpoint.

For reporting, include the output and units, reference parameter set, coordinate system, derivative units, and whether values were analytic or numerically estimated. If finite differences were used, report step sizes and a stability check. These details are necessary to distinguish a reproducible local result from a number that depends on an undocumented computational choice.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. For \(g(u)=12+3u-2u^2\), what are the first and second derivatives at \(u=0\), and what second-order prediction does the model give at \(u=0.10\)?
  2. If \(H_{12}=6\), \(u_1=0.10\), and \(u_2=-0.20\), what is the mixed contribution to the second-order output change?
  3. Why should a mixed finite-difference estimate be checked at more than one step size?
  4. Does a nonzero mixed partial alone prove that the two PBPK parameters have a biological interaction? Explain.

Solutions. 1. \(g'(u)=3-4u\), so \(g'(0)=3\); \(g''(u)=-4\), so \(g''(0)=-4\). The prediction is \(12+3(0.10)+\frac{1}{2}(-4)(0.10)^2=12.28\). 2. The mixed contribution is \(H_{12}u_1u_2=6(0.10)(-0.20)=-0.12\), in the output units associated with the Hessian and coordinates. 3. The estimate may be distorted by truncation error at larger steps or numerical and solver error at very small steps; stability across reasonable steps supports, but does not guarantee, reliability. 4. No. It shows local cross-curvature in the specified model, output, coordinates, and reference set. It does not by itself establish a biological mechanism or a global interaction.