Tutorials › Quantitative Systems Pharmacology (QSP) › Approximate Cell-State Aggregation with Preserved Outputs

Sensitivity Analysis and Model Reduction · Tutorial 683 of 799

Approximate Cell-State Aggregation with Preserved Outputs

Learn to construct approximate cell-state aggregates, preserve chosen outputs where possible, and bound or calculate the errors introduced by reduction.

Advanced 12 min read

What You'll Learn

  • Define an aggregation map and distinguish exact from approximate closure.
  • Construct reduced transition equations using composition-weighted rates.
  • Derive a bound on the difference between exact and reduced aggregate counts.
  • Check when a selected biomarker is preserved by aggregation.
  • Diagnose errors caused by changing within-group cell composition.
  • Compare approximate aggregation with exact aggregation and retaining more states.

Why Approximate Cell-State Aggregation?

A mechanistic model may distinguish several cell states whose transition behavior is similar. Keeping every state can make a model harder to interpret and simulate, but merging states changes the dynamics unless the states satisfy exact aggregation conditions. Approximate aggregation makes this trade-off explicit: it replaces detailed states with a smaller set of aggregate counts, then assesses how much the aggregate trajectories and selected outputs differ from the original model.

The aim is not to claim that merged states are biologically identical. Rather, the reduction is useful when the approximation error is acceptably small for the quantities and conditions of interest. A reduction that preserves total cell count may still distort a biomarker, and a reduction that agrees at the initial time may drift later as the composition of a merged group changes.

Aggregation and Approximate Closure

Definition: Let \(x(t)\in\mathbb{R}^n\) be a vector of cell-state counts governed by \(x'=f(x,u,\theta)\), where \(u\) denotes specified inputs and \(\theta\) the model parameters. An aggregation map \(P\) sums selected state counts into \(m<n\) groups: \(z=Px\). The exact aggregate dynamics are \(z'=P f(x,u,\theta)\). An approximate reduced model chooses a function \(g\) and evolves \(\hat z'=g(\hat z,u,\theta)\) without tracking all components of \(x\). It is approximately closed when \(P f(x,u,\theta)\) is close to \(g(Px,u,\theta)\) over the states and conditions of interest.

For the approximation to be meaningful, the original and reduced models must use the same inputs and parameter values, and the initial reduced state should agree with the aggregation of the original initial state: \(\hat z(0)=Px(0)\). The original model should have well-defined solutions over the time interval being assessed. If counts represent populations, the original transition rates and the reduced rates should also be biologically admissible, typically nonnegative, and the reduction should not create negative counts.

In exact state aggregation, the aggregate derivative depends only on the aggregate state, so one can choose \(g\) such that \(P f(x,u,\theta)=g(Px,u,\theta)\) for every admissible \(x\). Approximate aggregation relaxes that equality. A common construction uses transition rates averaged over the initial within-group composition. This matches the initial aggregate slope, but generally does not guarantee a match later, when the relative abundance of the merged states changes.

Constructing a Reduced Transition Rate

Consider \(r\) cell states in one group. Suppose state \(i\) leaves the group at rate \(k_i\) per unit time and has count \(x_i\). The exact aggregate count \(z=\sum_{i=1}^{r}x_i\) has derivative \(-\sum_i k_i x_i\), apart from any inflows. If the within-group fractions are approximately stable at weights \(w_i\), with \(w_i\geq 0\) and \(\sum_i w_i=1\), a natural reduced exit rate is \(\bar k=\sum_i w_i k_i\). The reduced outflow is then \(\bar k z\).

When the weights are taken from the initial composition, \(w_i=x_i(0)/z(0)\), the initial slopes agree:

$$ -\sum_i k_i x_i(0) = -\left(\sum_i w_i k_i\right)z(0) = -\bar k z(0). $$

This matching is local in time. If states with faster exit rates become depleted more quickly, the actual composition shifts toward slower-exiting states, and the fixed value \(\bar k\) may no longer represent the aggregate rate.

Worked Example: Reducing Two Resting Cell States

Suppose a hypothetical model begins with 60 resting cells in state \(R_1\) and 40 in state \(R_2\). Each state transitions irreversibly to an activated state: \(R_1\) at \(0.10\) per day and \(R_2\) at \(0.14\) per day. There are no other transitions. Aggregate the resting states and use their initial composition to define a single reduced exit rate.

The initial weights are \(w_1=60/100=0.60\) and \(w_2=40/100=0.40\). Thus \(\bar k=(0.60)(0.10)+(0.40)(0.14)=0.116\) per day. The exact resting count at day 10 is

$$ z(10)=60e^{-0.10(10)}+40e^{-0.14(10)} =60(0.367879)+40(0.246597) \approx 31.94\ \text{cells}. $$

The reduced prediction is \(\hat z(10)=100e^{-0.116(10)}=100(0.313486)\approx31.35\) cells. With error defined as reduced minus exact, the discrepancy is \(31.3486-31.9366\approx-0.59\) cells. The reduced model underpredicts the resting count at day 10.

Because every resting cell transitions to the activated state and there is no cell loss, the total count remains 100. The exact activated count is therefore \(100-31.9366=68.0634\) cells, while the reduced activated count is \(100-31.3486=68.6514\) cells. Its reduced-minus-exact error is approximately \(+0.59\) cells. The errors have opposite signs because the total is conserved in both models.

Justifying and Bounding the Aggregate Error

A useful way to assess a reduction is to separate the error caused by imperfect closure from the error that accumulates while the reduced trajectory evolves. Define the closure residual at the exact state as \(\rho(t)=P f(x(t),u,\theta)-g(Px(t),u,\theta)\), and let \(e(t)=\hat z(t)-z(t)\). The residual is the mismatch between the exact aggregate derivative and the derivative prescribed by the reduced model at the exact aggregate state.

Suppose \(g\) is Lipschitz in its state argument with constant \(L\) on the region considered, meaning \(\|g(a)-g(b)\|\leq L\|a-b\|\), and suppose \(\|\rho(t)\|\leq\varepsilon\) over \(0\leq t\leq T\). With matching initial conditions, \(e(0)=0\). Since \(\hat z'=g(\hat z)\) and \(z'=g(z)+\rho\), subtracting gives \(e'=g(\hat z)-g(z)-\rho\). The triangle inequality then yields \(\|e'\|\leq L\|e\|+\varepsilon\). Integrating this differential inequality gives the bound below.

$$ \|e(t)\|\leq \begin{cases} \displaystyle \varepsilon\frac{e^{Lt}-1}{L}, & L>0,\\[6pt] \varepsilon t, & L=0. \end{cases} $$

This is a conservative bound, not a prediction that the actual error will reach its upper limit. It shows why even a small closure mismatch can matter over a long interval or in a reduced system with strongly amplifying dynamics.

Worked Example: Bounding the Resting-Count Error

Use the two-state example above. The reduced equation is \(\hat z'=-0.116\hat z\). At an exact state \((R_1,R_2)\), the closure residual is

$$ \rho=(-0.10R_1-0.14R_2)-[-0.116(R_1+R_2)] =0.016R_1-0.024R_2. $$

Because both counts are nonnegative, \(|\rho|\leq0.024(R_1+R_2)\). Also \(z(t)=60e^{-0.10t}+40e^{-0.14t}\leq100e^{-0.10t}\), so \(|\rho(t)|\leq2.4e^{-0.10t}\) cells per day. The scalar error equation has reduced-model decay rate \(0.116\) per day. Applying the integrating-factor bound at day 10 gives

$$ |e(10)|\leq\int_0^{10}e^{-0.116(10-s)}(2.4e^{-0.10s})\,ds =2.4e^{-1.16}\frac{e^{0.16}-1}{0.016} \approx 8.16\ \text{cells}. $$

The actual error, approximately \(-0.59\) cells, is below this approximately \(8.16\)-cell bound. The bound is loose because it replaces the signed residual by an upper bound on its magnitude at every time; positive and negative contributions to the actual discrepancy can partly offset.

Preserving Selected Biomarker Outputs

A cell-count aggregation does not automatically preserve a biomarker. Suppose a selected output is a linear production rate \(y=c^\mathsf{T}x\), where \(c_i\) is the per-cell output rate for state \(i\). If all states in an aggregate group have the same coefficient \(c_i=q\), their contribution is exactly \(qz\). The output can then be calculated from the aggregate count without knowing the within-group composition. If the coefficients differ, the group total alone does not generally determine the output.

More generally, an output-preserving aggregate representation requires a reduced output map \(\hat y=q^\mathsf{T}\hat z\) that matches the original output over the relevant states, exactly or within a stated tolerance. For any chosen map, the output error can be separated into a within-group output mismatch and a trajectory mismatch:

$$ |c^\mathsf{T}x-q^\mathsf{T}\hat z| \leq |c^\mathsf{T}x-q^\mathsf{T}Px| +|q^\mathsf{T}(Px-\hat z)|. $$

The first term measures whether the output can be represented from the exact aggregate counts; the second reflects error in the reduced aggregate trajectory. Making only the second term small is insufficient when distinct cell states produce different amounts of the biomarker.

Worked Example: Error in a Preserved Biomarker Output

In the resting-cell example, suppose both resting states produce a hypothetical biomarker at the same rate, 3 pg per cell per day. The exact resting-cell contribution at day 10 is \(3(31.9366)\approx95.81\) pg per day. Because the per-cell output coefficient is identical in both states, the aggregate output map \(y=3z\) is exact for the original states.

The reduced output is \(3(31.3486)\approx94.05\) pg per day. Its error, reduced minus exact, is approximately \(94.0459-95.8099=-1.76\) pg per day. Thus the aggregation preserves the output map but not its trajectory exactly: the output discrepancy is the count discrepancy multiplied by 3 pg per cell per day. If the two states had different per-cell production rates, this same one-number aggregate would not in general preserve the biomarker even at the initial time.

Composition Drift, Diagnostics, and Alternatives

Composition drift is a central failure mode. The initial weighted rate matches the initial slope, but cells with faster transitions leave their group more rapidly. The within-group weights therefore change, and a fixed average rate may cease to describe the group. The following hypothetical calculation shows that the fitted rate depends on the starting composition.

Worked Example: Initial-Slope Matching Is Composition-Dependent

Keep the two exit rates at 0.10 and 0.14 per day, but suppose a hypothetical population starts with 30 cells in the first state and 70 in the second. The initial-composition rate is \(\bar k=(0.30)(0.10)+(0.70)(0.14)=0.128\) per day. At day 5, the exact aggregate is

$$ 30e^{-0.10(5)}+70e^{-0.14(5)} =30(0.606531)+70(0.496585) \approx52.96\ \text{cells}. $$

The reduced prediction is \(100e^{-0.128(5)}=100e^{-0.64}\approx52.73\) cells, an error of approximately \(-0.23\) cells. This may be a small discrepancy in this particular calculation, but the reduced rate \(0.128\) differs from \(0.116\), which was matched to the other initial composition. A rate calibrated to one mixture should not be assumed to represent every mixture.

Diagnostics should be tied to the intended use of the reduced model. Compare exact and reduced aggregate trajectories over the time interval of interest, inspect the closure residual across plausible within-group compositions, and calculate errors in each selected output with its own units and tolerance. Check that cell counts remain nonnegative and that conserved totals or required transition balances are maintained. A small error at one time point does not establish a small error throughout a trajectory.

Approximate aggregation is distinct from exact aggregation through lumpability: exact aggregation satisfies the closure equality for every admissible within-group composition, whereas approximate aggregation accepts a residual and evaluates its consequences. Retaining the original states avoids this particular aggregation error but keeps the model larger. Splitting a problematic group or tracking an additional composition variable can reduce error, at the cost of a less compact model. These choices should be based on which outputs and conditions the model must represent.

Common pitfall: “The reduced rate matches the initial slope, so the aggregate trajectory is preserved.” Matching the initial derivative establishes agreement only at the initial state. As the composition within a group changes, the exact aggregate exit rate can change too. Check the residual and trajectory errors over time, and do not infer biomarker preservation from cell-count preservation alone.

Check Your Understanding

Use the definitions and error convention in this tutorial. Solutions are included so that each result can be checked.

  1. A group contains 25 cells with exit rate 0.08 per day and 75 cells with exit rate 0.12 per day. What fixed rate matches the initial aggregate slope? Solution: The initial weights are 0.25 and 0.75, so \(\bar k=(0.25)(0.08)+(0.75)(0.12)=0.11\) per day.
  2. In one aggregate group, two states have biomarker coefficients 2 and 5 pg per cell per day. Can the group total alone determine the exact biomarker output for all possible compositions? Solution: No. For total \(z\), the output is \(2x_1+5x_2\), which changes with the split between states even when \(x_1+x_2=z\) is fixed.
  3. If the closure residual is bounded by \(\varepsilon\), the reduced dynamics have Lipschitz constant \(L=0\), and the initial aggregate states agree, what error bound applies at time \(T\)? Solution: The bound is \(\|e(T)\|\leq\varepsilon T\).
  4. A reduction predicts 42.0 cells where the exact aggregate count is 43.2 cells. State the signed error and its interpretation. Solution: Reduced minus exact is \(42.0-43.2=-1.2\) cells, so the reduced model underpredicts the aggregate by 1.2 cells.
Clinical Biostats