Tutorials › Pharmacometrics › QSP Models of Viral Infection
Pharmacokinetics · QSP & Pharmacometrics

QSP Models of Viral Infection

Learn how quantitative systems pharmacology models connect viral replication, target cells, immune responses, antiviral mechanisms, and clinical observations into a mechanistic framework for understanding infection and treatment.

Intermediate QSP Modeling Viral Dynamics Pharmacometrics
01 · The big picture

1. What Is QSP Modeling of Viral Infection?

Quantitative systems pharmacology (QSP) uses mathematical models to connect biological mechanisms across multiple scales. In viral infection, a QSP model can represent interactions among target cells, infected cells, free virus, innate and adaptive immune responses, drug concentrations, and treatment effects.

The central idea is to represent the biological system as a set of interacting processes rather than treating viral load as an isolated outcome. Differential equations can then describe how the populations of cells, virus, immune mediators, and other biological components change over time.

Target cells susceptibility cell turnover Viral dynamics infection viral production viral clearance infected-cell loss Virus / cells clinical biomarkers disease outcomes Antiviral therapy and immune modulation can act on multiple processes

A viral-infection QSP model represents interacting biological components and links mechanistic processes to measurable biomarkers and clinical outcomes.

Core idea: a QSP model of viral infection is not simply a curve fitted to viral-load measurements. It is a mechanistic representation of interacting biological processes that can be used to explore infection dynamics, treatment mechanisms, and hypothetical interventions.
02 · What QSP asks

2. What Questions Can a Viral QSP Model Help Answer?

Viral-infection models can address questions at several levels, from basic viral dynamics to drug mechanism and treatment optimization.

QuestionModel componentWhat it can help describe
How does infection spread through susceptible cells?Target-cell dynamicsCell infection, turnover, susceptibility, and depletion
How quickly does viral burden change?Viral production and clearanceGeneration and removal of extracellular virus
How are infected cells removed?Infected-cell lossVirus-induced cell death and immune-mediated clearance
How does treatment reduce viral replication?Antiviral mechanismEffects on infection, viral production, maturation, or other processes
Why do patients differ?Inter-individual variabilityDifferences in biological parameters, baseline state, and treatment response
What happens under an untested treatment schedule?SimulationModel-based predictions of viral and biological trajectories

QSP is especially useful when the scientific question requires connecting multiple mechanisms that cannot be represented adequately by a single empirical endpoint.

03 · Viral dynamics

3. The Basic Biology of Viral Infection

A simplified viral infection system can be represented using three core populations: target cells, infected cells, and free virus.

Target cells can become infected after exposure to virus. Infected cells can produce new virus and may subsequently die because of viral cytopathic effects or immune-mediated mechanisms. Free virus can infect additional target cells and can also be cleared from the system.

Target cells T Infected cells I Virus V infection production virus infects additional target cells

A minimal viral-dynamics model describes the feedback loop between susceptible target cells, infected cells, and free virus.

This three-component system provides a foundation for many more elaborate models. Additional compartments can represent intracellular viral material, immune cells, cytokines, antibodies, tissue compartments, or treatment-specific mechanisms.

04 · Core equations

4. The Classic Target-Cell Viral-Dynamics Model

A simple target-cell-limited model can be written using three state variables:

  • T(t): uninfected target cells.
  • I(t): infected cells.
  • V(t): free virus.

One common formulation is:

\[ \frac{dT}{dt}=\lambda-dT-\beta TV \]
\[ \frac{dI}{dt}=\beta TV-\delta I \]
\[ \frac{dV}{dt}=pI-cV \]

Here, \(\lambda\) represents production of new target cells, \(d\) is the target-cell loss rate, \(\beta\) is the infection rate constant, \(\delta\) is the infected-cell loss rate, \(p\) is the viral production rate, and \(c\) is the viral clearance rate.

Important: this is a deliberately simplified model. It does not claim that every viral infection follows exactly these dynamics. Its purpose is to provide a mechanistic starting point that can be expanded when additional biological processes are scientifically important.
05 · Parameters

5. The Main Parameters in a Viral-Dynamics Model

The model parameters determine how rapidly the system changes. Their interpretation depends on the specific mathematical structure and biological assumptions.

ParameterMeaningRole in the model
\(\lambda\)Target-cell production rateSupplies new susceptible cells
\(d\)Target-cell loss rateControls natural target-cell turnover
\(\beta\)Infection rate parameterControls formation of newly infected cells
\(\delta\)Infected-cell loss rateControls disappearance of infected cells
\(p\)Viral production rateControls production of free virus by infected cells
\(c\)Viral clearance rateControls removal of free virus

The parameters are connected. For example, viral burden depends not only on how quickly infected cells produce virus, but also on how quickly free virus is cleared and how rapidly infected cells disappear.

06 · Infection dynamics

6. How Does Infection Grow?

In the simple model, new infected cells are generated through the term:

\[ \beta T V \]

This term combines three ideas: susceptible target cells must be available, virus must be present, and the infection process must occur at a rate characterized by \(\beta\).

Early in infection, target cells may be abundant. Under appropriate assumptions, this can allow infected cells and viral burden to increase rapidly. As target cells become depleted, or as immune responses become important, the dynamics can change.

This is an example of why mechanistic models can be informative: the same observed viral-load trajectory can arise from changes in different underlying processes, and the model provides a framework for distinguishing those mechanisms when the available data are sufficiently informative.

07 · Viral clearance

7. Viral Production and Clearance

The free-virus equation in the basic model is:

\[ \frac{dV}{dt}=pI-cV \]

The first term, \(pI\), represents production of virus by infected cells. The second term, \(cV\), represents clearance of free virus.

If infected-cell production remains constant while clearance increases, the amount of free virus can decrease. Conversely, if viral production exceeds removal over a relevant period, viral burden can increase.

The distinction between viral clearance and infected-cell loss is important. They are different biological processes and need not occur at the same rate.

Modeling principle: a decline in viral load does not automatically identify the biological mechanism responsible for that decline. A model can represent alternative mechanisms and determine which are consistent with the available observations.
08 · Host response

8. Adding the Immune Response

Real viral infections involve host responses that can substantially alter viral dynamics. A QSP model can represent these responses explicitly rather than treating them as unexplained changes in a single parameter.

Depending on the scientific question, additional state variables might represent:

  • Innate immune activity, such as interferon-mediated antiviral effects.
  • Natural killer cells or other cytotoxic mechanisms that contribute to infected-cell removal.
  • Virus-specific T cells that contribute to clearance of infected cells.
  • Antibodies that neutralize extracellular virus.
  • Cytokines and chemokines that mediate communication among immune and infected cells.

For example, infected-cell loss could be represented as a combination of intrinsic infected-cell death and immune-mediated killing:

\[ \frac{dI}{dt}=\beta TV-\delta I-k_EEI \]

where \(E\) represents an immune effector population and \(k_E\) describes the strength of immune-mediated infected-cell killing in the chosen model.

This formulation illustrates the basic QSP idea of turning a biological hypothesis into a quantitative relationship that can be simulated and compared with data.

09 · Treatment mechanisms

9. How Are Antiviral Drugs Represented?

One of the major advantages of QSP modeling is that treatment can be represented according to its mechanism of action.

For example, suppose an antiviral reduces the production of infectious virus from infected cells. A simple efficacy function might be:

\[ p_{\mathrm{eff}}(C)=p\left(1-E(C)\right) \]

where \(C\) is drug concentration and \(E(C)\) is a concentration-dependent efficacy function.

A common empirical representation is an \(E_{\max}\) relationship:

\[ E(C)=\frac{E_{\max}C}{EC_{50}+C} \]

The resulting viral equation becomes:

\[ \frac{dV}{dt}=p\left(1-E(C)\right)I-cV \]

Other drugs might instead reduce infection of target cells, increase infected-cell loss, block viral maturation, inhibit intracellular replication, or affect another mechanistic step.

Mechanism matters: two interventions that produce similar short-term reductions in viral load may act on different biological processes. A QSP model can represent those mechanisms separately and explore their consequences under different conditions.
10 · PK → mechanism → virus

10. Connecting Pharmacokinetics to Viral QSP

Drug exposure is usually not constant. Pharmacokinetics describes how drug concentration changes over time, while the QSP component describes how that concentration affects the biological system.

\[ \text{Dose}\rightarrow\text{PK model}\rightarrow C(t)\rightarrow\text{Drug mechanism}\rightarrow\text{Viral dynamics} \]

For example, a PK model can provide a concentration trajectory \(C(t)\). The QSP model then converts that concentration into an effect on infection, viral production, intracellular replication, or another mechanistic process.

This creates a mechanistic chain connecting administration to biological response:

\[ \text{Dose}\rightarrow C(t)\rightarrow E(t)\rightarrow I(t),V(t)\rightarrow\text{biomarker or outcome} \]

This integration is a central feature of pharmacometric and QSP models used to study antiviral therapies.

11 · Intracellular mechanisms

11. Going Beyond the Basic Viral-Dynamics Model

The three-state-variable target-cell model can be expanded when extracellular virus alone does not adequately represent the biology.

For example, a QSP model may distinguish between:

  • Cellular uptake of virus.
  • Intracellular viral genomes.
  • Viral RNA replication.
  • Protein production.
  • Assembly of viral particles.
  • Release of infectious virus.
  • Noninfectious viral particles.
  • Latently infected or refractory cells.

Such models can be particularly useful when a drug acts at a specific intracellular step. Rather than representing the drug as an arbitrary reduction in viral load, the model can place the intervention at the biological process it is hypothesized to modify.

The additional complexity should be justified by the scientific question and by the availability of data capable of informing the added mechanisms.

12 · Multiple biomarkers

12. Why QSP Models Often Use Multiple Biomarkers

Viral load is important, but it is only one observable in an infection system. QSP models can simultaneously describe several types of measurements.

ObservablePotential model componentWhat it can inform
Viral RNAViral burdenChanges in viral production and clearance
Infectious virusInfectious-virus compartmentRelationship between total viral material and infectivity
Target-cell countsTarget-cell compartmentCell availability and turnover
Immune-cell countsImmune compartmentsExpansion, contraction, or recruitment
Antibody concentrationsAntibody compartmentNeutralization and immune-mediated effects
Cytokine concentrationsImmune mediator compartmentsInflammatory or antiviral signaling
Clinical biomarkersDownstream disease modelLinks between biological mechanisms and clinical manifestations

Jointly modeling multiple data types can provide information about mechanisms that would be difficult to identify from viral load alone.

13 · Worked example

13. Worked Example: A Minimal Viral-Dynamics Simulation

Consider a hypothetical infection represented by a simplified target-cell model. Suppose the initial conditions are:

  • \(T(0)=1{,}000\) target cells.
  • \(I(0)=1\) infected cell.
  • \(V(0)=10\) viral units.

Suppose the model parameters are:

  • \(\beta=2\times10^{-5}\) cell\(^{-1}\)·viral-unit\(^{-1}\)·day\(^{-1}\)
  • \(\delta=0.5\) day\(^{-1}\)
  • \(p=100\) viral units·cell\(^{-1}\)·day\(^{-1}\)
  • \(c=2\) day\(^{-1}\)

Step 1: Infection rate at baseline

\[ \beta T(0)V(0) = (2\times10^{-5})(1000)(10) = 0.20 \text{ infected cells/day} \]

At the starting state, the model therefore predicts approximately 0.20 new infected cells per day from the infection process.

Step 2: Infected-cell loss

\[ \delta I(0)=0.5(1)=0.5 \text{ infected cells/day} \]

The model initially predicts infected-cell loss of 0.5 cells per day from the intrinsic infected-cell loss process.

Step 3: Viral production

\[ pI(0)=100(1)=100 \text{ viral units/day} \]

Step 4: Viral clearance

\[ cV(0)=2(10)=20 \text{ viral units/day} \]

Step 5: Initial rate of viral change

\[ \frac{dV}{dt}=100-20=80 \text{ viral units/day} \]

The initial derivative is positive, so the model predicts that viral burden will initially increase from the starting state.

The important point: these calculations describe the instantaneous behavior of the system. To determine the complete viral trajectory, the differential equations must be solved over time, typically using a numerical ODE solver.
14 · Simulation

14. Why Simulation Is Central to QSP

QSP models are often used to simulate trajectories that cannot be observed directly in a clinical study or to explore conditions that have not yet been tested.

For example, a model can simulate:

  • Different antiviral doses.
  • Different dosing intervals.
  • Combination therapies.
  • Different treatment initiation times.
  • Changes in antiviral potency.
  • Different viral production or clearance assumptions.
  • Different immune-response strengths.
  • Patient populations with different biological parameters.

Simulation is therefore not simply a visualization exercise. It allows the modeler to propagate assumptions about mechanisms through the entire system and examine the resulting consequences.

Mechanism hypotheses + parameters QSP model ODEs + PK + biology parameter distributions treatment mechanisms Predictions trajectories + scenarios Simulation translates mechanistic assumptions into quantitative predictions

QSP simulation propagates biological assumptions through a mathematical system to generate trajectories under specified scenarios.

15 · Model calibration

15. How Are Viral QSP Models Calibrated?

A mechanistic model generally contains parameters that cannot all be measured directly. Calibration uses observed data to estimate or constrain those parameters.

  1. Define the model structure. Specify compartments, mechanisms, equations, and assumptions.
  2. Identify available observations. Determine which biomarkers or clinical measurements correspond to model states or outputs.
  3. Specify the observation model. Account for measurement error and differences between model variables and observed quantities.
  4. Estimate parameters. Use an appropriate estimation approach to identify parameter values or distributions consistent with the data.
  5. Evaluate model behavior. Examine goodness of fit, residuals, biological plausibility, parameter identifiability, and predictive performance.
  6. Perform simulation-based checks. Determine whether the model can reproduce important features of the observed system.

Calibration should not be confused with proof that the proposed mechanism is correct. Multiple mechanistic models can sometimes explain the same observations, particularly when measurements are sparse.

16 · Identifiability

16. Why Identifiability Matters

A model can contain more parameters than the available data can reliably inform. When different combinations of parameters produce similar observable trajectories, individual parameters may not be identifiable from the available measurements.

For example, if viral load alone is observed, the data may provide limited information for separately estimating several processes that jointly determine viral burden.

Additional measurements can help resolve this problem. Depending on the system, useful data might include:

  • Intracellular viral measurements.
  • Infectious-virus assays.
  • Target-cell measurements.
  • Immune-cell measurements.
  • Antibody concentrations.
  • Cytokine or interferon measurements.
  • Drug concentrations.
  • Time-resolved measurements collected before and after treatment.
Modeling principle: adding biological detail does not automatically add information. A more complex model requires data capable of distinguishing the additional mechanisms and parameters.
17 · Patient variability

17. Representing Differences Between Patients

Patients can differ substantially in viral kinetics, immune response, baseline biology, and treatment exposure. QSP models can represent this heterogeneity by allowing biological parameters to vary between individuals.

For example, an individual-specific infected-cell loss rate might be represented as:

\[ \delta_i=\delta_{\mathrm{pop}}\exp(\eta_i) \]

where \(\delta_{\mathrm{pop}}\) is a typical population value and \(\eta_i\) represents an individual's deviation from that value.

Covariates can also be incorporated when there is a scientific rationale for relating patient characteristics to model parameters.

This allows QSP models to move from a single hypothetical patient to simulated populations with distributions of biological characteristics.

18 · Combination therapy

18. Modeling Combination Antiviral Therapy

Combination therapy can be represented by placing different drug effects on different mechanistic processes.

For example, suppose drug A reduces infection and drug B reduces viral production. A conceptual model could represent their effects as:

\[ \beta_{\mathrm{eff}}(t)=\beta\left(1-E_A(C_A(t))\right) \]
\[ p_{\mathrm{eff}}(t)=p\left(1-E_B(C_B(t))\right) \]

The resulting model can then simulate how simultaneous changes in infection and viral production affect the entire system.

More elaborate QSP models can represent mechanistic interactions between therapies, provided that the interaction hypothesis is supported by biological knowledge and the available data are informative enough to distinguish competing explanations.

19 · Treatment timing

19. Why Treatment Timing Can Matter

The effect of an antiviral can depend not only on its potency and exposure but also on when treatment begins relative to the course of infection.

Early treatment may occur while target cells remain relatively abundant. Later treatment may occur after viral expansion, target-cell depletion, or activation of immune responses.

A QSP model can simulate treatment initiation at different times and examine how the same intervention interacts with different biological states.

This is particularly useful when the treatment effect depends on the state of the underlying infection rather than solely on drug concentration.

20 · Model hierarchy

20. From Simple Viral Dynamics to Full QSP

Viral QSP models can be constructed at different levels of biological detail.

Model levelTypical componentsPotential purpose
Empirical viral modelObserved viral-load trajectoryDescribe temporal patterns
Target-cell modelTarget cells, infected cells, virusRepresent core viral dynamics
Immune-viral modelViral dynamics plus immune compartmentsRepresent host-mediated control
PK/viral modelDrug PK plus viral dynamicsConnect exposure to antiviral effects
Mechanistic QSP modelPK, intracellular processes, immune system, viral dynamics, biomarkersIntegrate multiple biological mechanisms
Population QSP modelMechanistic system plus individual variabilityExplore heterogeneity and population-level predictions

The objective is not to create the largest possible model. A useful model balances biological detail, data availability, interpretability, computational feasibility, and the scientific question being addressed.

21 · Prediction

21. What Can a Viral QSP Model Predict?

After calibration and evaluation, a QSP model can be used to simulate conditions that were not directly observed.

  • Viral trajectories under alternative doses.
  • Effects of different dosing intervals.
  • Potential effects of treatment combinations.
  • Changes in viral dynamics following altered antiviral potency.
  • Consequences of different treatment initiation times.
  • Potential contributions of immune mechanisms.
  • Population variability in treatment response.
  • Relationships between mechanistic biomarkers and viral outcomes.

These are model-based predictions rather than direct observations. Their credibility depends on the quality of the model structure, parameter estimates, data, and assumptions underlying the simulation.

22 · Applications

22. Where Viral QSP Models Can Be Used

Mechanistic viral models can support a range of research and drug-development questions.

ApplicationPotential modeling role
Preclinical researchIntegrate experimental observations and formulate mechanistic hypotheses
Antiviral developmentConnect exposure, mechanism, and viral response
Dose selectionExplore exposure and treatment schedules under specified assumptions
Combination therapyRepresent multiple mechanisms and simulate combined interventions
Biomarker interpretationConnect observed biomarkers to latent biological processes
Translational modelingExplore how mechanisms observed experimentally may translate across settings
Clinical trial designSimulate potential response trajectories and inform questions about study design
Mechanistic hypothesis testingCompare whether alternative biological mechanisms can reproduce observed patterns
23 · Interpretation

23. What Viral QSP Models Do Not Tell Us Automatically

Mechanistic appearance does not guarantee mechanistic certainty. Several limitations are important when interpreting viral QSP models.

  • A model is a representation, not the biological system itself.
  • Parameter estimates depend on model structure. Changing the equations can change the meaning and numerical values of parameters.
  • Good agreement with observed data does not prove a unique mechanism. Different models may reproduce the same observations.
  • Unmeasured biological states may be weakly identified. A model can contain latent variables that cannot be directly validated.
  • Additional complexity requires additional information. More compartments and parameters do not automatically make a model more informative.
  • Extrapolation is conditional. Predictions outside the observed experimental conditions depend strongly on model assumptions.
  • Population simulations do not eliminate uncertainty. They propagate uncertainty in parameters and biological variability through the model.
Modeling principle: the strength of a QSP model comes from making biological assumptions explicit, quantitative, and testable—not from assuming that mathematical complexity is equivalent to biological certainty.
24 · Practical workflow

24. A Practical Workflow for Viral QSP Modeling

  1. Define the scientific question. Identify the biological or pharmacological decision the model is intended to inform.
  2. Map the biology. Identify the relevant cells, viral processes, immune mechanisms, biomarkers, and treatment mechanisms.
  3. Choose the model boundary. Decide which mechanisms must be represented explicitly and which can reasonably be simplified.
  4. Build the structural model. Translate the biological hypotheses into state variables, equations, and parameters.
  5. Connect observations to model states. Define how viral load, immune measurements, drug concentrations, and other biomarkers arise from the model.
  6. Estimate or constrain parameters. Use available experimental and clinical data.
  7. Evaluate identifiability and diagnostics. Determine whether the data can support the proposed level of mechanistic detail.
  8. Validate model behavior. Test predictions against data or conditions that were not used directly for calibration when appropriate.
  9. Perform sensitivity analysis. Determine which parameters and mechanisms have the greatest influence on the outputs of interest.
  10. Simulate scenarios. Explore treatment schedules, mechanisms, patient variability, or other scientifically relevant conditions.
  11. Communicate assumptions and uncertainty. Clearly distinguish observed results from model-based predictions.
25 · Sensitivity analysis

25. Why Sensitivity Analysis Matters

QSP models can contain many parameters, and not all parameters contribute equally to a particular model output.

Sensitivity analysis asks how much a model prediction changes when an input parameter or assumption changes.

For example, a modeler might investigate the sensitivity of viral burden to:

  • Viral production rate.
  • Viral clearance rate.
  • Infected-cell loss rate.
  • Infection rate.
  • Antiviral potency.
  • Drug exposure.
  • Strength of an immune response.

Sensitivity analysis can help identify influential mechanisms, prioritize additional experiments, and determine which assumptions matter most for a particular prediction.

26. Key Takeaways

  • Quantitative systems pharmacology models represent interacting biological mechanisms using mathematical equations.
  • Viral-infection QSP models can connect target cells, infected cells, free virus, immune responses, drug exposure, and clinical biomarkers.
  • The classic target-cell model provides a useful starting point for describing infection, viral production, and viral clearance.
  • Viral load is an important observation, but it does not necessarily identify the underlying biological mechanism by itself.
  • QSP models can represent antiviral mechanisms at specific biological steps rather than treating treatment response as an unexplained change in viral load.
  • Pharmacokinetic models can provide drug concentration-time profiles that drive mechanistic antiviral effects.
  • Additional compartments can represent intracellular viral processes, immune responses, antibodies, cytokines, and other biological mechanisms.
  • Multiple biomarkers can provide information about mechanisms that may not be identifiable from viral load alone.
  • Parameter estimation, structural model selection, and biological interpretation are distinct tasks.
  • Identifiability is critical: additional model complexity requires data capable of informing the additional parameters and mechanisms.
  • Simulation allows QSP models to explore treatment schedules, combinations, treatment timing, and biological scenarios that may not have been directly observed.
  • Patient heterogeneity can be represented through distributions of biological parameters and covariate relationships.
  • Sensitivity analysis helps identify which mechanisms and parameters most influence important model outputs.
  • A QSP model should be sufficiently detailed to address its scientific purpose without introducing unsupported complexity.
  • Model-based predictions remain conditional on the model structure, parameter estimates, data, and assumptions.
Next step

Where to Go Next

A natural progression is to study the basic viral-dynamics equations in greater mathematical detail, followed by intracellular viral models, immune-response models, PK/viral models, antiviral mechanism models, combination therapy, and population QSP.

The next tutorial can build directly on the framework introduced here by deriving the target-cell model, examining its equilibria and basic reproduction concepts, and showing how changes in infection, production, clearance, and infected-cell loss alter simulated viral trajectories.