Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2023 Apr 16:2023.04.13.536769. [Version 1] doi: 10.1101/2023.04.13.536769

A time for every purpose: using time-dependent sensitivity analysis to help understand and manage dynamic ecological systems

Wee Hao Ng 1,*, Christopher R Myers 1, Scott McArt 1, Stephen P Ellner 1
PMCID: PMC10120680  PMID: 37090628

Abstract

Sensitivity analysis is often used to help understand and manage ecological systems, by assessing how a constant change in vital rates or other model parameters might affect the management outcome. This allows the manager to identify the most favorable course of action. However, realistic changes are often localized in time—for example, a short period of culling leads to a temporary increase in the mortality rate over the period. Hence, knowing when to act may be just as important as knowing what to act upon. In this article, we introduce the method of time-dependent sensitivity analysis (TDSA) that simultaneously addresses both questions. We illustrate TDSA using three case studies: transient dynamics in static disease transmission networks, disease dynamics in a reservoir species with seasonal life-history events, and endogenously-driven population cycles in herbivorous invertebrate forest pests. We demonstrate how TDSA often provides useful biological insights, which are understandable on hindsight but would not have been easily discovered without the help of TDSA. However, as a caution, we also show how TDSA can produce results that mainly reflect uncertain modeling choices and are therefore potentially misleading. We provide guidelines to help users maximize the utility of TDSA while avoiding pitfalls.

Keywords: Sensitivity analysis, time-dependent sensitivity, spillover, optimal control, management, dynamic models

Introduction

It is not an overstatement to say that no model is ever fully understood if it does not include a sensitivity analysis. (Caswell, 2019, p. 4)

Sensitivity analysis is used to help us understand the past, to predict and manage the future, and to identify the key processes in complex systems with multiple feedbacks. The many varieties of sensitivity analysis differ in their mechanics, but all involve making some changes to a model and observing how its projections change. To help us understand the past, a retrospective sensitivity analysis asks how observed past variation in each parameter contributed to relevant features of observed past system dynamics. Life Table Response Experiment analysis in population ecology (e.g., Caswell, 1989, 1996; Hernández et al., 2022; Oli et al., 2001; Oro and Doak, 2020) is perhaps the most familiar example, decomposing the variation (across time or space) in the dominant eigenvalue of a population projection matrix into contributions from variation in each matrix element or demographic parameter. To help us predict and manage the future, prospective sensitivity analyses ask how changes corresponding to potential policy changes or management interventions affect projected outcomes, seeking to find targets of opportunity where relatively small (and hopefully inexpensive) interventions have a large impact on outcomes of interest (e.g., Caswell, 2000; Morris and Doak, 2002). Sensitivity analysis of complex models (e.g., Saltelli et al., 2008) helps us identify which parameters need to be estimated accurately (and which do not) to reliably project properties of interest, and which processes or assumptions are most tightly linked to which features of model projections. It is rare to find a paper that includes a mechanistic model of a biological system but does not include at least one figure showing how solution trajectories, or steady-state model properties, change as some parameters are varied—a sensitivity analysis, or the start of one.

Prospective analyses typically involve time-invariant perturbations (e.g., elasticity analysis of matrix projection models (Caswell, 2001)). But in many cases, when to act may be just as important as how to act. The importance of “when” was impressed on us by our studies of bee parasites transmitted at flowers in eastern U.S. old-field communities (Graystock et al. (2020); Fig. 1(A)). An infected bee defecating on a flower may deposit parasites that can infect other bees visiting the flower subsequently (Burnham et al. (2021); Figueroa et al. (2019); Graystock et al. (2020)). This allows between-species transmission of multi-host parasites, including possible spillover from managed or non-native bees to wild native bees (Arbetman et al., 2013; Fürst et al., 2014; Graystock et al., 2016, 2013; Manley et al., 2019). Early in the season, our data suggest that the trypanosome parasite C. bombi is most prevalent in Ceratina and possibly other bee genera, some of which visit flowers that are also visited by bumble bees (Bombus), including rare species of conservation concern (Cameron et al., 2011). Later in the season, the parasite is most prevalent in common species of Bombus such as B. impatiens, some of whom again share floral resources with other native bee species of conservation concern (Bartomeus et al., 2013). As a consequence, an intervention to protect species of concern—for example, by reducing spillover from common Bombus species—is likely to be far more effective at some times than others.

Figure 1: Examples of systems with strong temporal dynamics, where the timing of management interventions might be important.

Figure 1:

(A) Numbers of bees infected with Crithidia bombi captured at an old-field site in Lansing, NY, sampled in 2017. Data replotted from Graystock et al. (2020), Supplementary Fig. 2d. (B) Oscillations in the abundance of pine looper moth Bupalus piniarius in three forests in the UK. Data are log10(1+x)-transformed annual estimates of spatially averaged pupal abundance by the UK Forestry Commission, from Kendall et al. (2005).

Seasonal turnover in species, likely implying time-varying interaction strengths and therefore time-varying sensitivities, is a common feature of natural and managed systems (e.g., freshwater plankton: Sommer et al. (2012); mycorrhizal fungi: Dumbrell et al. (2011); plant-pollinator communities: CaraDonna and Waser (2020); pests in agroecosystems: Nelson et al. (2013)). Hence, timing is important if humans seek to manage these systems optimally. For example, multivoltine agricultural insect pests may overwinter as inactive eggs or pupae, and then have several semi-discrete generations during the growing season with large changes in the abundance of crop-damaging life stages (e.g., Nelson et al., 2013). On longer time scales, forest insect pests are notorious for having occasional eruptions causing extensive damage, followed by a population crash (e.g. Berryman (1986, Ch. 4), Turchin et al. (2003), Kendall et al. (2005), Myers and Cory (2013)). Dynamics of this sort are illustrated in Fig. 1(B). In such cases, is it better to nip in the bud a growing generation of a multivoltine species or a growing pest outbreak, or to wait until the next peak when an intervention might claim more victims among the pests for the same cost?

Time-dependent sensitivity analysis (TDSA) to address such questions can be done in principle by brute-force computation: simulate the impacts of brief changes to each parameter, and to each state variable, at a fine grid of time points. That may or may not be feasible, depending on model complexity and on how much computing power and time are available. Our goal in this paper is to explain and illustrate a very general and straightforward method for efficiently performing TDSA, called adjoint sensitivity analysis (ASA).

ASA is not new (see for example Cacuci et al. (2003, 1980); Cao et al. (2002, 2003); Errico (1997)), but its biological applications have been very restricted. In some areas of computational science including meteorology, oceanography and earth systems modeling, it is often used in data assimilation, as a numerical method for efficiently computing the derivatives of a likelihood function or other measure of model-data fit, with respect to time-invariant changes in model parameters (e.g., Fröhlich et al., 2017; Lyu et al., 2018; Moore, 2011). But otherwise, it has seen little use in the ecological or epidemiological literature—we did not unearth even one example in our literature search. Here, we apply it to a very different type of question: how and when should we perturb a system to have maximum impact on a biologically-motivated objective function? For instance, we might want to minimize the spread of a disease to a species of concern, or to minimize the damage to a crop plant by an invertebrate pest. Besides the obvious management relevance, we show later that such questions are also interesting theoretically because the answers may provide insights into the dynamics of the system. In addition, we make connections between this approach and optimal control theory (Bressan and Piccoli, 2007; Lenhart and Workman, 2007), which are largely missing from existing literature.

The structure of this paper is as follows. First, we present the mathematical formalism used to perform TDSA, both for deterministic continuous-time and discrete-time models. We then illustrate TDSA using three case studies. The first is a continuous-time disease transmission in hypothetical multi-species networks. These are meant to showcase how TDSA can reveal changes in sensitivities resulting from system dynamics, even when all parameters and dynamic equations are time-invariant. The second and third case studies are empirical examples meant to demonstrate the variety of empirically-fitted models where TDSA can be used to guide the management of real systems. The second is an integral projection model with seasonal dynamics that describes disease maintenance in a reservoir species, while the third involves two discrete-time models of invertebrate pest species that exhibit population cycles, one single-patch and the other spatially explicit. We also use specific instances in the second and third examples to illustrate some potential pitfalls when performing TDSA, and we suggest best practices that can help the practitioner avoid these pitfalls; this is especially important if the results are meant to inform management actions. An R (R Core Team, 2021) package implementing the methods presented here is in development, and will be described in detail elsewhere.

Calculating time-dependent sensitivities

The steps involved in TDSA are remarkably similar for continuous- and discrete-time models. We therefore give a detailed explanation for continuous time, followed by a brief explanation for discrete time.

Continuous-time models

We consider models that can be written as a time-dependent, finite-dimensional system of ordinary differential equations (ODE)

dxi(t)dt=gi(x(t),θ(t),t),x(0)=x0 (1)

where x(t)=x1(t),x2(t),,xd(t) is the d-dimensional state vector, and θ(t) is a vector of (possibly time-dependent) parameters. (Note that this excludes models that involve integro-differential or delay differential equations, but numerical methods for solving such models, e.g. the linear chain trick (MacDonald, 1978), often involve approximating them by a larger ODE system where Eqn. (1) does apply.) For notational simplicity, we will usually drop the argument θ(t). We assume that the management goal can be represented by a reward function J,

J=0Tf(x(t),t)dt+Ψ(x(T)) (2)

that is to be maximized. T is called the time horizon and demarcates the period of interest, f represents rewards that accumulate over this time period (hence the integral), while Ψ represents a terminal payoff at the end of the period.

As a simple example, consider an organism in a sink habitat, where the per-capita loss rate µ (mortality and emigration combined) exceeds the per-capita unregulated birth rate b, so the population is only maintained through immigration at a rate σ. However, due to ongoing habitat restoration efforts, µ begins to decrease over time, so the population should eventually become self-sustaining (see Fig. 2(A)). The dynamics is given by

dx(t)dt=bx(t)(1ax(t))μ(t)x(t)+σg(x(t),t), (3)

where x(t) is the population size at time t, and a the coefficient for reproductive competition. At the same time, the organism provides an important ecosystem service, so over a management period from t = 0 to T, one can define the reward function

J=0Twxtfxt,tdt+vxTΨxT, (4)

where the first term represents the total value of the service over the period (so w is the per-capita rate of contribution), and the second term is a terminal payoff that ascribes value to having a large population at the end of the period (so v is the value per individual). See Online Supplement Sec. S1 for parameter values.

Figure 2: Illustration of time-dependent sensitivity analysis.

Figure 2:

(A) We consider an organism in a sink habitat that is being improved through restoration efforts, so the per-capita loss rate µ(t) will eventually fall below the per-capita unregulated birth date b. (B) The population trajectory x(t) is shown in black, and we assume the reward function J is the grey area under the trajectory, plus a terminal payoff (not shown). Now consider a one-off translocation effort to speed up the population recovery at time t. This corresponds to a perturbation x(t) → x(t)+∆x, and leads to a change ∆J in the reward. ∆J can depend on the translocation time t; for example, it is larger at t2 than at t1 or t3. (C) Not surprisingly, the state sensitivity λ(t) is also higher at time t2. Hence, translocation is most effective right around when µ(t) = b, so the population has just become self-sustaining. (D) Time-dependent parameter sensitivities can be calculated from the state sensitivities. A brief spike in the immigration rate parameter σ at time t produces a state perturbation at time t, and the resulting change in J can be inferred from λ(t). Generalizing this to arbitrary parameter perturbations is straightforward, see Eqn. (A9).

TDSA addresses the question of how the value of the reward J changes in response to a small, sudden perturbation of a state variable at some time t, after which the state is then allowed to continue along its dynamic trajectory starting from the modified value. Returning to our example, we may want to translocate individuals to the habitat to speed up the recovery of the population and increase the reward J. A one-off translocation would cause a small, sudden increase in the population size as shown in Fig. 2(B). Formally, we define the sensitivity to state variable xi at time t as λitlimΔxi0ΔJΔxi, where ∆J is the change in J resulting from a sudden perturbation xi(t) → xi(t)+∆xi. Hence the change in reward ∆J is approximately λi(t)∆xi when the perturbation ∆xi is small. The sensitivities will depend on the time of perturbation t, and so can tell us when certain management actions, such as a translocation, would have the most effect on J.

Sensitivities can be calculated directly from their definition (perturb a state variable, recalculate the state trajectory, and determine the change in J), but it is computationally much more efficient to use the adjoint method. The state sensitivities λi(t) themselves satisfy an ODE system called the adjoint equations,

dλi(t)dt=H(x(t),λ(t),t)xi,λi(T)=Ψ(x(T))xi, (5)

where

H(x(t),λ(t),t)f(x(t),t)+j=1dλj(t)gj(x(t),t) (6)

is called the Hamiltonian; see Appendix A for the derivation. For the purpose of this article H can be regarded as a construct that simplifies the expression in Eqn. (5), but an in-depth explanation can be found in Dixit (1990), Chapter 10. Because the terminal conditions λi(T) are known, the adjoint equations are solved backward in time from t = T to t = 0, giving the sensitivity values at all times 0 ≤ tT. In the context of this method, the state sensitivities are called adjoint variables, and there is one adjoint variable λi for each state variable xi.

For our example, from Eqns. (3) and (4), we can write down the Hamiltonian

H(x(t),λ(t),t)=wx(t)f(x(t),t)+λ(t)[bx(t)(1ax(t))μ(t)x(t)+σ]g(x(t),t), (7)

Differentiating H(x(t),λ(t),t) and Ψ(x(T)) (from Eqn. (4)) in x, we obtain the adjoint equation and terminal condition

dλ(t)dt=wλ(t)[b2abx(t)μ(t)],λ(T)=v. (8)

Once we have solved Eqn. (3) for the state trajectory x(t) (black curve in Fig. 2(B)), the right side of the adjoint equation is fully specified (except for λ(t)). We can then solve the adjoint equation backward in time to obtain λ(t) at all t (Fig. 2(C)). We see that translocation is most effective roughly when µ(t) has decreased below b so the population has become self-sustaining, an intuitive result. Translocate too early, and few translocated individuals will survive long due to the still-high µ(t). Translocate too late and the population has already recovered back to its carrying capacity, so even though translocated individuals survive longer due to the low µ(t), they will also suppress the per-capita birth rate b(1−ax(t)) below µ(t).

We came upon the idea of using the adjoint method for time-dependent sensitivity calculations through optimal control theory (OCT). Conceptually, OCT also involves a system/reward combination like Eqns. (12), except that the functions g and f now depend on an additional variable u(t) that quantifies external manipulation (control) of the system, so g describes the manipulated dynamics while f incorporates the cost of implementing the control. Adjoint variables first show up when we apply Pontryagin’s maximum principle (Pontryagin et al., 1962) to find the optimal control strategy u*(t) that maximises J. More importantly, it is known that the adjoint variable λi(t) can be interpreted as a “shadow price” (Lenhart and Workman (2007), Section 2.2), the additional profit associated with an increment of xi at time t. For an unmanipulated system, this is equivalent to the time-dependent sensitivity that we have defined earlier, hence providing the connection with TDSA.

Adjoint variables also provide a way to compute time-dependent parameter sensitivities (Cao et al., 2002). Consider a brief change in the value of the parameter θi at time t, by which we mean a rapid change followed by rapid return to its original value (i.e., a spike or dip). This causes a brief change in dx(t)dt via Eqn. (1), which in turn leads to a sudden perturbation of x(t). For example, a brief spike in the immigration rate is equivalent to a brief small translocation causing a sudden increase in the population size (see Fig. 2(D)). Hence, the sensitivities to a brief parameter perturbation can be inferred from the state sensitivities. Sensitivities to an arbitrary temporal pattern of perturbation can be calculated using Eqn. (A9), by treating the temporal pattern as a series of brief perturbations chained together (see Appendix B).

Time-dependent sensitivities are easy to compute numerically for the low-dimensional models we consider here. We first solve the state equations Eqn. (1) forward in time from 0 to T (using the deSolve package (Soetaert et al., 2010) in R (R Core Team, 2021)), saving values at a fine grid of times tk = kT/n, where k = 0,1,⋯,n with n ≫ 1. We then solve the adjoint equations Eqn. (5) backwards in time from T to 0 using approximate state variable trajectories obtained by linearly interpolating the values at times tk. We confirmed that this method works with simulations in which state variables were slightly perturbed by hand at various times. The effects of these perturbations on the value of J (integrals evaluated numerically by the trapezoid rule) always matched the predicted effect based on the state sensitivities λi(t). Numerical methods for large-scale models are available (Cao et al., 2002, 2003).

Sensitivities allow us to compare between state variables the effects of perturbations by the same absolute amount. However, sometimes perturbations by the same proportional amount might be the more appropriate comparison, for example if the state variables differ vastly in scale, or if the potential management actions (e.g., spraying of pesticides) perturb a state variable (e.g., insect density) by an amount proportional to its value. The time-dependent demi-elasticity1 of state variable xi is defined as limΔxi0xiΔJΔxi=xiλi. One can also calculate the elasticity, limΔxi0xiΔJJΔxi=xiλi/J, but these can be misleading if the reward function J represents deviations from a baseline value. For example, if the goal is to maximize plant yield by minimizing damage from herbivory, it is convenient to define the reward function J as −1 times the damage due to herbivory. In that case, because J differs from plant yield by a constant, the sensitivities and demi-elasticities of J would be the same as those of plant yield, but the elasticities would be different.

Discrete-time models

TDSA of discrete-time models is also motivated by its counterpart in optimal control (Lenhart and Workman (2007), Chapter 23). We consider a model that can be written as a system of forward recursions

xi(t+1)=gi(x(t),t),x(0)=x0, (9)

where t = 0,1,2,…,T denotes the time step, and x(t) the state vector at time t, with ith component xi(t). We consider a reward function of the form

J=t=0T1f(x(t),t)+Ψ(x(T)). (10)

The contribution from the final time step has been separated from the rest, because it will be used later to determine the terminal conditions when solving the adjoint equations backward in time. We introduce an adjoint vector λ(t) with the same number of components as the state vector x(t); the ith component λi(t) gives the sensitivity of J to perturbations of the state variable xi(t) at time t. The adjoint vector satisfies the adjoint equations and terminal conditions

λi(t)=H(x(t),λ(t),t)xifor t=0,1,,T1,λi(T)=Ψ(x(T))xi. (11)

where the Hamiltonian H is defined as

H(x(t),λ(t),t)f(x(t),t)+j=1dλj(t+1)gj(x(t),t) for t=0,1,,T1, (12)

(Unlike Eqn. (5), here there is no minus sign in front of the derivatives of H.) Eqn. (11) is a system of backward recurrence equations, which we can solve backward in time to obtain the sensitivity λi(t) at any time t.

Applications and their Implications

Having explained how to calculate time-dependent sensitivities, we now embark on a series of applications to illustrate the potential payoffs from applying TDSA, and to point out some potential pitfalls. Our first case studies, in section Example 1: Exogenous disease spillover in multi-species sink networks, are theoretical examples designed to illustrate how state and parameter sensitivities can be strongly time-varying even if model equations and parameters are constant. Our second case study (section Example 2: Leopard frogs as reservoirs of the amphibian chytrid fungus) is an empirically-fitted model with periodic dynamics driven by seasonality, and shows how TDSA can identify the key period in the annual cycle—the timing of which may be surprising at first sight, but becomes intuitively clear in hindsight. This example also demonstrates how discretization allows us to apply TDSA to models with continuous independent variables such as Integral Projection Models (IPM). Our third case study (section Example 3: Population cycles in the pine looper and the larch budmoth) are empirically-fitted autonomous models with endogenously-driven oscillatory dynamics, and highlight some of the practical challenges in applying the results from TDSA to management actions. In both the second and third examples, we also demonstrate the importance of making an effort to interpret TDSA results rather than taking them at face value, to avoid drawing spurious conclusions that reflect aspects of the mathematical models but do not correspond to real biological phenomena.

Example 1: Exogenous disease spillover in multi-species sink networks

Overview

Our first examples developed from our work on disease spillover (Ng et al., in press). We consider a multi-species sink community that cannot maintain a disease by itself; the disease only persists via spillover from an exogenous source. Disease transmission within the community is represented by a static unipartite network, meaning that the intra- and inter-species transmission coefficients are assumed to be constant parameters. The exogenous spillover rate is also assumed to be constant. The time-dependent phenomena of interest are the transient dynamics of disease spread within an active season; this is relevant if the disease is seasonal, in that it dies out in the sink community between one active season and the next (via an unmodeled process), but is re-introduced at the start of each active season via exogenous spillover.

We consider two hypothetical network designs. Although partially motivated by disease transmission in plant-pollinator communities (e.g. trait-matching networks from Truitt et al. (2019)), these networks are not meant to represent any specific empirical system. Rather, they were designed to illustrate how TDSA can highlight qualitative features in the dynamics induced by network structure. In each case, the objective is to reduce the negative disease impact on a species of concern in the sink community.

Mathematical model

We consider a community of m host species, where individuals can either be susceptible or infected. The state variables Sj(t) and Ij(t) represent the number of susceptible and infected individuals in species j, while Nj(t) ≡ Sj(t)+ Ij(t) represents the species population. The dynamic equations are

dSjdt=BjNj1ajNjSjσj+k=1mbj,kIkμjSj+γjIj,dIjdt=Sjσj+k=1mbj,kIkμj+vj+γjIj. (13)

For species j, Bj is the unregulated per-capita birth rate. We assume infection does not affect fecundity. We also assume only intra-specific competition for limiting resources necessary for reproduction (e.g., breeding sites), represented by the competition coefficient aj; the carrying capacity in a disease-free population is then given by Kj =(1−µj/Bj)/aj. µj is the mortality rate of a susceptible individual, vj the additional mortality rate arising from infection, and γj the recovery rate. Within-community transmission is parametrized by bj,k representing the transmission rate from a species-k infective to a species-j susceptible, while exogenous spillover is parametrized by σj representing the per-capita spillover infection rate in species j. We assume no vertical transmission, so all individuals are born uninfected. Parameters were chosen so that the basic reproduction number R0 of the disease (Diekmann et al., 2013) is less than one, so that disease is only maintained in the sink community by the exogenous spillover.

Objective function

To create scenarios in which transient dynamics are important, we make the following assumptions. All species are active each year between t = 0 and T (the active season). All active individuals die at the end of the season, while a new generation of active individuals emerge disease-free at the start of next season. The population size at the end of one season influences the population size at the start of the next season.

In both hypothetical networks, we assume there is a species of concern (j = jC) that provides an important ecosystem service (e.g., being an efficient natural pollinator of a crop plant), but whose population is negatively impacted by the disease, due to a combination of the species being vulnerable (BjC only slightly greater than μjC) and a high disease-induced mortality rate vjCμjC. The goal of TDSA is to identify control measures that reduce infection in this species, to reduce the impact on the ecosystem service. The reward function J represents the economic value of the service, and is given by

J=0TWSjCSj𝓒(t)+WIj𝓒IjC(t)dt+VSjCSj𝓒(T)+VIjCIj𝓒(T). (14)

The integral represents the value of the service over the current season, assuming the service is equally valuable throughout (so WSjC and WIjC are constants), and scales linearly with the number of individuals. The terminal payoff terms represent the value of maintaining a large population at the end of the season, since this will affect the population size at the start of the next season. Since both susceptible and infected individuals are equally fecund and produce healthy offspring, VSjC=VIjC. For notational simplicity, we also introduce coefficients WSj, WIj, VSj and VIj for other species jjC but they are all zero.

Adjoint equations

From Eqns. (56), the adjoint variables satisfy

dλSjdt=HSj=WSjservice by  suscept. host +λSjBj2ajNj1suscept host affectsnet birth rate+σj+k=1mbj,kIkλSjλIjsuscept. host becomesinfected+μjλSjsuscept. hostdies,dλIjdt=HIj=WIjservice byinfected host+λSjBj2ajNj1infected host affectsnet birth rate+k=1mSkbk,jλSkλIkinfected host generatesnew infections+μj+vjλIjinfected hostdies+γjλIjλSjinfected hostrecovers, (15)

with terminal conditions

λSj(T)=VSj,λIj(T)=VIj. (16)

To interpret each term in Eq. (15), recall that λSjt is the shadow price of a susceptible host of species j at time t. If dλSj/dt is negative, λSjt will increase when t decreases. Hence negative terms in dλSj/dt tend to increase the reward from adding a susceptible host at an earlier time. For example, focusing on the species of concern (j = jC), the first term WSjC is negative since the earlier we add the host, the more service the host can provide before the season ends at time T. Conversely, the last term μjλSj is positive, since the earlier we add a susceptible host, the more likely it dies before time T, hence limiting the amount of service provided (which would otherwise have grown linearly as Tt when t decreases), as well as reducing its likelihood of contributing to the terminal payoff VSjC. The third term depends on the sign of λSjλIj, since the earlier we introduce a susceptible host, the more likely it becomes infected before time T, thus changing its shadow price to that of an infected host. Similar interpretations can be made for the other terms in dλSj/dt and dλIj/dt.

We assume that all species other than the species of concern are not at risk (Bjµj for jjC), so one possible control measure is to cull these species to slow down the spread of infection. Because culling is often performed indiscriminately regardless of infection status, it is useful to examine the sensitivity of the reward J to random removal of individuals from species jjC. This is given by λNj, where λNj is the adjoint variable for the total population size. Although λNj can be formally derived by working with Nj and pjIj/Nj (the infection prevalence) instead of Sj and Ij as the state variables, one can show that

λNj=SjNjλSj+IjNjλIj, (17)

a rather intuitive expression. In Online Supplement Sec. S3, we derive a general expression for the change of adjoint variables under a change of state variables.

For simplicity, we assume that only one species j = jE receives exogenous infection. This makes it easier to interpret how sensitivities reflect network structure. Parameter values (stated in Online Supplement Sec. S4) were chosen to illustrate interesting features in time-dependent sensitivities which may be less obvious at other parameter values.

Network 1: Nearest-neighbor network

As our first hypothetical network, we consider a community of m = 5 species with only nearest-neighbor interactions as shown in Fig. 3A. (See Fig. S1(A) for the matrix representation of this network.) This can be thought of as an extreme example of a trait-matching network (Truitt et al., 2019), where each species only interacts with other species that are adjacent along a one-dimensional trait space. Exogenous spillover occurs in species 1 (jE = 1) while species 5 is the species of concern (jC = 5), so the disease will have to be progressively relayed from species 1 to 5 via the intermediate species. Indeed, we see in Fig. 3(C) that the highest rate of infection per capita (maximum dIjdt/Nj, indicated by the dots) occurs at a later time for a species further down the network. Despite low disease prevalence in species 5, the fact that it is vulnerable (due to a low excess of births over natural mortality) means that the population decrease across a season can be rather substantial, and the cumulative decrease over multiple years quite large, as shown in Fig. S1(B), hence creating the need for control measures.

Figure 3: Time-dependent sensitivities to state perturbations from Example 1.

Figure 3:

Each column corresponds to one network configuration. Disease spread is subcritical (R0 <1), so the disease is maintained by exogenous spillover. (A) and (B): Infection pathways; line thickness roughly scales with the size of the transmission coefficients bj,k. (C) and (D): Disease prevalence in each species. Each dot indicates when the per-capita rate of infection is the highest (note the vertical log scale). Despite the low infection prevalence in the species of concern, the population decline from disease-induced mortality can be substantial (see Figs. S1(B) and S2(B)). (E) and (F): Sensitivity of the reward function to indiscriminate culling (removal of random individuals regardless of infection status) of each species, excluding the species of concern.

The sensitivity of each intermediate species should exhibit a peak in time. For example, culling species 4 is ineffective at the start of the season because its population size would have mostly recovered before disease prevalence starts to increase. Culling becomes much more effective when the chain of infection reaches species 4, because removing susceptibles has an immediate impact on density-dependent transmission, and also because indiscriminate culling removes more infected individuals. Culling species 4 becomes ineffective again late in the season, because there is little time for species 5 to benefit from the reduced infection rate before the season ends (see Fig. S3). Because the time of peak sensitivity varies with species, the optimal species to target should vary over the active season. Fig. 3(E) shows that this is indeed the case: the most important species changes progressively from species 1 →2 →3 →4.

The progression in the most important species from 1 → 2 → 3 → 4 also depends on the fact that the peak sensitivities are of comparable height; otherwise a species may remain unimportant even at its peak sensitivity if the peak is low. Why does this occur? An infected individual in a species further down the chain of infection is more likely to cause infection in species 5 than one further up the chain (hence the large differences in λIj shown in Fig. S1(D)). However, the per-capita rate of infection is also lower for a species further down the chain. These opposing effects lead to comparable peak heights in λSj as shown in Fig. S1(C). Also, the indiscriminate culling sensitivity λNj is a weighted sum of λSj and λIj, and the lower prevalence down the chain means a lower weight for λIj, which again opposes the higher value of λIj.

Network 2: Modular network with disease spillback

In this network, we consider m = 5 species grouped into two modules as shown in Fig. 3(C). Modules might also arise from trait-matching, where each module is associated with specialization on a particular resource type, and indirect interactions via the shared resource type lead to within-module disease transmission. Exogenous spillover again occurs in species 1 in the first module (jE = 1), while species 3 in the second module is the species of concern (jC = 3). However, we also choose species 3 to interact weakly with the first module (for example, it may be less specialized), and hence bridge disease transmission between the two modules.

Unlike Network 1, here other species are not needed to relay the disease from species 1 to 3, and in fact species 3 is the one relaying to the rest of the second module. Therefore, one would expect species 1 to remain the most important species (highest sensitivity) throughout the season. However, suppose that species 5 in the second module is a highly social species with strong within-species transmission (indicated by the thicker self-loop in Fig. 3(B)). This allows species 5 to reach high disease prevalence. “Spillback” from species 5 to species 3 may then become more important than the transmission from species 1.

In Fig. 3(F), we see that indeed species 5 becomes the most important later in the season. However, this relies on R0 being sufficiently close to 1 (Fig. S4(A)), so that multi-step within-module transmission can occur. We also find that at a higher exogenous spillover rate σ1, the most important species may switch back to species 1 towards the end of the season (Fig. S4(B)). This is because the higher spillover rate leads to a large decline in the population of species 3, which affects multi-step within-module transmission (recall that transmission is density-dependent in our model) and hence reduces the importance of species 5. To confirm this explanation, we replaced disease-induced mortality by recovery in species 3 (so that there is negligible population decline) and found that this switch no longer occurred (Fig. S4(C)).

Time-dependent parameter sensitivities

As explained earlier, time-dependent parameter sensitivities can be obtained from the adjoint variables using Eqn. (A9). We demonstrate this using Network 1, the nearest-neighbor network. First, we consider what happens if we increase the mortalities µj briefly between t0 and t1 (e.g. via culling). This perturbation can be written as µjµj +ϵΘ(t), where Θ(t) is a normalised indicator function equal to 1t1t0 if t ∈[t0,t1], and 0 otherwise, and ϵ is a small parameter representing perturbation size. Using Eqn. (A9), the time-dependent parameter sensitivity for µj is given by the integral

dJdϵ=1t1t0t0t1λSj(t)Sj(t)λIj(t)Ij(t). (18)

In Fig. 4(A) we show the sensitivities for different choices of the start time t0, assuming a window length t1t0 = 0.2. Since the integrand is proportion to λNj and the integration window is relatively short, not surprisingly, the results are qualitatively similar to λNj as shown in Fig. 3(G).

Figure 4: Time-dependent parameter sensitivities for the nearest-neighbor network (Example 1, Network 1).

Figure 4:

We consider brief perturbations of 0.2 time units to (A) the mortality rates µj, (B) the forward transmission rates bj+1,j, and (C) the exogenous spillover rate σ1 to Species 1. Each panel shows the sensitivity of the reward to the perturbation as we vary the start time of a short perturbation window.

Next, we consider a decrease in the forward transmission rates bj+1,j along the network, again over a short time window; this may arise from measures taken to briefly reduce contact between species in the network. For the perturbation bj+1,jbj+1,jϵΘ(t), the sensitivity is given by

dJdϵ=1t1t0t0t1λSj+1(t)Sj+1(t)Ij(t)+λIj+1(t)Sj+1(t)Ij(t), (19)

and the results at varying start times t0 are shown in Fig. 4(B). We see that targeting transmission links further down the chain is more effective at later times.

Finally, it might be possible to directly target the source of exogenous spillover, so we consider what happens if we briefly decrease the exogenous spillover rate σ1. Fig. 4(C) shows the sensitivities at varying start times t0. Unlike µ1 and b2,1, here the sensitivity is maximized at the start of the active season. To understand why, since disease prevalence in all species is zero at the start of each active season, culling Species 1 or reducing transmission from Species 1 to 2 become more effective after a slight delay as the disease re-establishes in Species 1, but this buildup of infection is irrelevant for σ1.

Example 2: Leopard frogs as reservoirs of the amphibian chytrid fungus

In this second example, we demonstrate how TDSA can be applied to an integral projection model (IPM Ellner et al., 2016) with seasonal dynamics, by discretizing the continuous structure in the IPM into discrete bins. Wilber et al. (2022) proposed a series of models invoking different factors to explain the seasonal dynamics of the fungal pathogen Batrachochytrium dendrobatidis (Bd) in two species of North American leopard frogs, Rana pipiens and Rana sphenocephala. The models incorporate seasonal movements between aquatic and non-aquatic habitats, seasonal breeding, temperature-dependent pathogen load dynamics on infected frogs, and temperature-dependent zoospore survival in the water. Wilber et al. (2022) focused on reduced compartment models derived from the full model using moment closure approximations, in order to allow model fitting by Markov Chain Monte Carlo. But here we choose to work with the full model, because TDSA on the full model is not computationally burdensome even with fine discretization of the continuous population structure.

The IPM proceeds in steps of one week, with state variables L(t), S(t), I(x,t), and Z(t), representing larvae (tadpoles), susceptible adults, infected adults with log-transformed pathogen load x, and zoospores. Each year, all adults are in a shared aquatic habitat during the breeding season; otherwise, they are nonaquatic. Half the adults are female, and each female produces r′ tadpoles at the midpoint of the breeding season. Each tadpole has a probability sL of surviving each week, and a probability mL of undergoing metamorphosis. However, recruitment is density-dependent, so only a fraction eKN(t) of these metamorphosed tadpoles successfully become adults, where NtSt+Ix,tdx is the total number of adults. Susceptible and infected adults have survival probabilities s0 and s0sI respectively.

When aquatic, susceptible frogs become infected with a probability 1 − eβZ(t) that increases monotonically with Z(t). Newly-infected frogs have log load x drawn from a distribution G0(x), with a mean a(T(t)) that decreases linearly with the temperature T(t). For an already-infected frog with log load x, the new log load x′ at the next timestep is drawn from a distribution G(x′|x), with a mean a(T(t))+bx. Infected adults also have a probability (x) of recovery that decreases monotonically with x. When aquatic, infected frogs shed an amount of zoospores each week proportional to their linear load ex, with proportionality constant λ. Zoospores survive each week with a probability sZ(T(t)) that decreases monotonically with the temperature T(t). T(t) varies sinusoidally across the year, being the lowest at the start/end of the year and the highest mid-year. Finally, zoospores are also being added at a constant rate ω from exogenous sources not represented in the model. Altogether, we obtain the equations

L(t+1)=rN(t)2R(t)+L(t)sL1mLS(t+1)=L(t)sLmLeKN(t)+S(t)s0eβZ(t)W(t)+s0sI(x)I(x,t)dx,Ix,t+1=S(t)s01eβZ(t)W(t)G0x+s0sI(1(x))GxxI(x,t)dx,Z(t+1)=λW(t)exI(x,t)dx+sZ(t)Z(t)+ω, (20)

where both W(t) and R(t) are periodic indicator functions that can take values {0,1}; W(t) = 1 when the adults are aquatic, while R(t) = 1 at the midpoint of the breeding season (where new tadpoles are produced). More details can be found in Online Supplement Sec. S5.1.

Fig. 5 shows the steady-state dynamics of the Bd-bullfrog system. At the start of the breeding season, adults that still carry infection from the previous year return to water and shed zoospores, leading to a rapid increase in Z, which in turn causes a rapid rise in the number of infected adults and depletion of susceptibles. The midseason production and metamorphosis of larvae leads to a small jump in the number of susceptible and infected adults. Towards the end of the breeding season, higher temperature decreases the log Bd load on infected frogs (see Fig. S5), which in turn decreases shedding. This, together with the lower zoospore survival at higher temperatures, causes Z to decrease.

Figure 5: Steady-state model dynamics of the Bd-bullfrog system.

Figure 5:

Details of the model are described in Sec. Example 2: Leopard frogs as reservoirs of the amphibian chytrid fungus. The blue shaded regions show the period of each year when the bullfrogs are aquatic and exposed to potential infection, and the vertical dashed lines show when new bullfrog larvae are produced. I(t) in the bottom-left panel is the total number of infected frogs, Ix,tdx.

Now consider a scenario where other vulnerable amphibian species of concern, also susceptible to Bd, share the same aquatic habitat with the bullfrogs. Therefore, we want to minimize the exposure of these species to zoospores during their breeding seasons. A possible objective function is given by

J=t=0T1V(t)Z(t)V(T)Z(T), (21)

where V(t) is a periodic indicator function; V(t) = 1 when the vulnerable species are aquatic. The negative sign is so that maximizing the objective function minimizes exposure to Bd. Because we want to protect the vulnerable species as long as possible, ideally we would like the time horizon T to be infinite. In practice, since the effects of any small perturbation are expected to die off over time, and since each year starts off in the same state (assuming any transients have died off), the seasonal sensitivity patterns in the first few years become nearly identical and independent of T as long as T is sufficiently large (see Online Supplement Fig. S7); hence they approximate the seasonal patterns when T →∞.

We now discretize the IPM into m log-load bins of width h each. Details of the discretized model are presented in Online Supplement Sec. S5.2. We apply Eqns. (1112) to obtain the adjoint equations

λL(t)=λL(t+1)SL1mLlarvae survive withoutmetamorphosis+λS(t+1)sLmLeKS(t)Ki=1mIi(t)larvae survive, metamorphose, and arerecruited as susceptible adults,λS(t)=λL(t+1)rR(t)2susceptible adultsproduce larvaeλS(t+1)KL(t)sLmLeKS(t)Ki=1mIi(t)susceptible adults reduce recruitmentvia density dependence+λS(t+1)s0eβZ(t)W(t)susceptible adults surviveand remain uninfected+i=1mλI,i(t+1)s01eβZ(t)W(t)G0isusceptible adults survive and become infected,λI,i(t)=λL(t+1)rR(t)2infected adultsproduce larvaeλS(t+1)KL(t)sLmLeKS(t)Ki=1mIi(t)infected adults reduce recruitmentvia density dependence+λS(t+1)s0sIiinfected adults surviveand recover+s0sIj=1mλI,j(t+1)Gji1iinfected adults survive and changelog load without recovery+λZ(t+1)λW(t)exiinfected adults shedzoospores,λZ(t)=V(t)vul. sp. exposedto zoospores+i=1mλI,i(t+1)G0iλS(t+1)S(t)s0eβZ(t)W(t)βW(t)zoospores infect surviving susceptible adults+λZ(t+1)sZ(t)zoospores survive, (22)

and terminal conditions

λL(T)=λS(T)=λI,i(T)=0 for all i,λZ(T)=V(T). (23)

The adjoint variable λI,i(t) represents the effect of perturbing Ii(t), the number of infected adults in bin i (with log load xi) at time t; see Fig. S6. However, it is probably more realistic to consider the effect of, say, removing an infected individual sampled at random. Therefore, we introduce the sensitivity λI, defined as a weighted average of λI,i(t) with weight proportional to Ii(t):

λI(t)=i=1mλI,i(t)Ii(t)i=1mIi(t). (24)

Fig. 6 shows the sensitivities when the vulnerable species have the same breeding season as the bullfrogs, so V(t) = W(t). For easier visualization, we have plotted the negative of the sensitivities, so a positive plotted value means that increasing the state variable increases the exposure of vulnerable species to zoospores. Also, we have only shown the first year out of a time horizon of ten years; the patterns are similar in the first few years, so we can think of the patterns as being periodic.

Figure 6: Time-dependent sensitivities of the Bd-bullfrog system.

Figure 6:

See the main text for the scenario and objective function. We assume that the vulnerable amphibian species of concern share aquatic habitats with bullfrogs during the same time period (the blue shaded region). Here, we only show the sensitivities in the 1st year (out of a time horizon of 10 years). Since the patterns in the few years are nearly identical, we can consider these patterns as periodic (i.e. the last week wraps around to the first week), and representative of an infinite-horizon scenario.

It is often said that “all models are wrong but some are useful” (Box, 1979). TDSA is a rigorous mathematical procedure applied to a user-specified model, but it cannot automatically distinguish between the wrong and the useful parts of a model. Hence, a practitioner should make an effort to interpret the important qualitative features in the sensitivities, and not just accept the results without question. Features that depend only on broad, qualitative model assumptions conceptualize the known biology of the system are more likely to be realistic and useful, while others may depend on (possibly questionable) model details often chosen for mathematical simplicity. For example, the sharp dips in −λS(t) and −λI(t) at t = trepro.+1 are probably questionable. They result from density dependence in recruitment assuming that all new larvae appear simultaneously at t = trepro.+1, and that some larvae can metamorphose in the next time step without delay. Because these detailed assumptions were likely chosen for simplicity rather than realism, the consequent features are unlikely to be realistic, and hence should not be taken literally when making management decisions.

As an example of a more realistic feature, we observe that −λI(t) is lowest around the middle of breeding season, even compared to when the adults are non-aquatic. This only relies on the broad property (also present in the data; see Fig. 2 in Wilber et al. (2022)) that an infected adult introduced early in the season contributes many times more zoospores to the water than one introduced mid-season, directly because of its higher load (from the temperature-dependent load dynamics), and also indirectly because of the greater availability of susceptible adults that it can infect (since susceptibles become depleted mid-season). Hence, even though an infected adult introduced mid-season can immediately shed zoospores, an infected adult introduced after the breeding season is more likely to reach the start of the next breeding season alive and infected, simply by being closer to next season. The increased probability to contribute at the start of next season is more than enough to make up for not contributing immediately. This feature relies on less specific assumptions and is hence more likely to be realistic, although the modeler will still need to decide based on available knowledge. Note that the sensitivities need not reflect the relative efficiency of management action—for example, non-aquatic frogs may be harder to locate.

Although we have only presented the sensitivities in Fig. 6, a manager should consider whether sensitivities or demi-elasticities better reflect the costs and benefits of management actions. Demi-elasticities are more useful for actions whose direct effects on the state variables (e.g. population size) scale with the size of the state variables; for example, field capture of diseased frogs will probably yield more frogs per unit of time effort at higher frog densities. For state variables that exhibit temporal variations spanning many orders of magnitude, the demi-elasticities may show qualitative features that are completely different from the sensitivities, so while the sensitivities are still technically correct, their practical relevance may be limited. As an extreme example, we observe that the larval sensitivity −λL(t) peaks in winter before the breeding season. This is because the model assumes that the larvae parameters sL and mL remain constant throughout the year, so a hypothetical tadpole introduced in winter has a good chance of metamorphosing into a susceptible adult around the start of breeding season, hence maximizing its contribution to zoospores through infection and shedding. On the other hand, this result is rather jarring since one is unlikely to find tadpoles in winter. By looking at the demi-elasticity, we take larval density into account and avoid this feature entirely.

Finally, whenever we discretize an IPM, it is good practice to check that the number of bins is large enough to approximate the continuum limit, by repeating the calculations with varying number of bins (see Online Supplement Fig. S8). We also recommend calculating the sensitivities directly by simulating explicit perturbations, to check that the adjoint equations were derived and implemented correctly (see Online Supplement Fig. S9). While directly calculating the sensitivities for all state variables at all time points may be computationally prohibitive (which is why the adjoint method is useful in the first place), one can still perform checks at a few time points of interest.

Example 3: Population cycles in the pine looper and the larch budmoth

As our final examples we consider two models, both involving moth species that exhibit population cycles and cause forest defoliation in years of high abundance. The first model is a single-patch model of the pine looper, and the second is a spatially-explicit, multi-patch model of the larch budmoth. Both are discrete-time models with steps of one year. We present the pine looper model in detail in this section, and leave the details of the larch budmoth to Online Supplement Sec. S6.1 and S6.2.

Pine looper

The pine looper moth, Bupalus piniarius, exhibits large population cycles in parts of Europe, and can defoliate pine forests and plantations during outbreaks. While numerous explanations have been proposed for these cycles, Kendall et al. (2005) found that the maternal effects hypothesis had the strongest empirical support. The maternal effects model, a discrete-time model with steps of one year, is given by

N(t+1)=rN(t)X(t)esN(t)X(t)+uX(t),X(t+1)=xmin+eβN(t)X(t). (25)

Here, N(t) is the density of pupae at year t, and X(t) a measure of their average individual quality. A constant proportion of pupae is assumed to survive to adulthood, so N(t) is a proxy for the adult abundance in that year. X(t) influences the per-capita fecundity, so the total number of offspring produced is proportional to N(t)X(t) in the first equation. As a maternal effect, X(t) also influences the probability of the offspring surviving from egg to adulthood the next year via the factor euX(t) in the first equation. Meanwhile, competition between the offspring reduces the probability of surviving to adulthood and also their average individual quality via the factors esN(t)X(t) and eβN(t)X(t) in the first and second equations respectively. Kendall et al. (2005) fitted the model to data from three forest sites in Scotland: Roseisle, Tentsmuir and Culbin (Fig. 1B); see Table S1 for parameter values. As shown in Fig. 7(A), this model leads to oscillations in pupae density. In years of low pupae density, reduced competition between their offspring leads to an increase in offspring individual quality. The consequent increase in per-capita fecundity and egg-to-adult survival probability then leads to a population boom. The increased competition between offspring in the boom years then greatly reduces the individual quality and causes the population to crash, completing the oscillation. We note that the phase space trajectories are periodic in Roseisle (one complete cycle comprises two consecutive oscillations), and appear to be quasiperiodic in Tentsmuir and Culbin; see Fig. S10.

Figure 7: Dynamics and TDSA of the pine looper model.

Figure 7:

(A) Oscillatory dynamics in the pine looper, based on parameters estimated for Roseisle forest, Scotland. The blue line indicates pupae density, and the faint red line the average individual quality. (B), (C) The sensitivity and demi-elasticity to culling of pine looper, defined as −λN(t) and −N(t)λN(t) respectively. The reward function here is related to minimizing herbivory damage by the pine looper, see Eqn. (26). The pupae densities are plotted again in faint blue lines to facilitate comparison. (D), (E) Phase plane diagrams when 20% of the moths were culled in Roseisle at t = 4 (a positive demi-elasticity peak) and at t = 6 (a negative demi-elasticity valley). The black and red trajectories indicate the unperturbed and perturbed trajectories. The blue square highlights the start of the perturbed trajectory. (F) Similar to (D), except for the site Tentsmuir at t = 7 (a positive demi-elasticity peak). In (D-F), the differences between the vertical positions of the red and black dots are relevant to the change in reward function.

We now apply TDSA to the maternal effects model. To do so, we need to define the reward function. If we assume that tree damage is proportional to moth density, then a natural definition of the reward function will be t=1TNt, where T is the time horizon (note the overall minus sign). However, the quasiperiodic steady-state solutions for Tentsmuir and Culbin means that the effects of a state perturbation may persist indefinitely without damping out, as shown in Fig. S11. This is because when the system returns to the quasiperiodic solution after a small perturbation, it may be phase-shifted relative to the unperturbed trajectory, so the difference between the original and perturbed trajectories never damps to zero. This means that the change in reward function may depend on the choice of time horizon T. To avoid this, we choose a time-discounted reward function given by

J=t=1T1W(t)N(t)W(T)N(T),W(t)=et/τ, (26)

The exponentially-decaying discount W(t) prioritizes rewards at earlier times and reduces the dependence on T, as shown in Fig. S12. We choose T = 200 years and τ = 50 years. From Eqns. (1112) we obtain the adjoint equations

λN(t)=λN(t+1)rX(t)sN(t)X(t)2esN(t)X(t)+uX(t)λX(t+1)βX(t)eβN(t)X(t)W(t),λX(t)=λN(t+1)rN(t)sN(t)2X(t)+uN(t)X(t)esN(t)X(t)+uX(t)λX(t+1)βN(t)eβN(t)X(t), (27)

with terminal conditions

λN(T)=W(T),λX(T)=0. (28)

Fig. 7(B) shows −λN(t), the sensitivity of the reward to moth removal (i.e. culling) at Roseisle for the first 20 years of the time horizon. The sensitivity is positive (i.e. culling is beneficial) near the peak pupae density. However, the maximum sensitivity is not exactly at the peak density, but rather alternates between one year before or after the peak. This alternating offset may be an artifact of the detailed model assumptions and parameter values, but even if real, it still highlights the practical challenge of intervening when sensitivity is highest, because we would need to know which phase of the alternation the system is at, despite measurement uncertainties. On the other hand, if culling is achieved through pesticide spraying, then the demi-elasticity, defined as −N(t)λN(t), may be more relevant than the sensitivity if more moths are killed from the same pesticide application when moths are more abundant. In Fig. 7(C), we see that culling is consistently most effective at the peak moth density. This is also mostly true for the Tentsmuir and Culbin sites (Fig. S13).

To understand the values of the demi-elasticities, we consider two scenarios, the first a 20% cull in Roseisle at t = 4 (a positive demi-elasticity peak), and the second a 20% cull at t = 6 (a negative demi-elasticity valley). By comparing the unperturbed and perturbed trajectories in Fig. 7(D), we see that the increase in reward from a cull at t = 4 comes from the immediate reduction in moth density that year; effects in subsequent years are relatively small. (The latter observation is consistent with the observation in Appendix E of Kendall et al. (2005), that pesticide spraying had surprisingly little effect on the dynamics, probably because the outbreaks would have collapsed on their own.) In contrast, the decrease in reward from a cull at t = 6 occurs “downstream”: the cull is followed by a large increase in moth density (compared to the unperturbed trajectory) three years later (Fig. 7(E)). For Tentsmuir and Culbin, where the steady-state trajectories are quasiperiodic, immediate and downstream effects can both be large. For example, as shown in Fig. 7(F), the increase in reward from a 20% cull at t = 7 (a positive demi-elasticity peak) in Tentsmuir involves not just the immediate reduction in moth density that year, but also the net effect of subsequent years of decrease and increase relative to the unperturbed trajectory. In such situations a robust mechanistic explanation of the downstream changes following a perturbation may not always be possible. To assess whether results are biologically meaningful, a manager should also consider performing TDSA on variants of the model that can still fit the data relatively well, for example using different functional forms for the biological responses. If the demi-elasticities of these variants remain qualitatively similar, a manager can be more confident about using them to guide management actions, based on the idea that “truth is the intersection of independent lies” (Levins, 1966).

Larch budmoth

The larch budmoth, Zeiraphera diniana, also exhibits large population cycles in parts of Europe. It is believed that both parasitism by wasps and the decrease in tree needle quality after heavy budmoth herbivory play a role in driving the population cycles (Turchin et al., 2003). In addition, outbreaks of budmoths have been found to propagate spatially as recurrent traveling waves across much of Europe (Bjørnstad et al., 2002). To explain these recurrent propagating outbreaks, Johnson et al. (2004, 2006) proposed a tri-trophic (budmoth-plant-parasitoid), spatially-explicit multi-patch model with budmoth and parasitoid dispersal between patches. We performed TDSA on this model, assuming a reward function given by the total plant quality summed across all patches, and across years with exponential time-discount. Details of the model and the adjoint equations can be found in Online Supplement Secs. S6.1 and S6.2. Just as in Johnson et al. (2006), to capture the essential features of the observed recurrent traveling waves, we consider an idealized scenario where suitable budmoth patches are embedded in a larger landscape, with higher patch density towards the center. As shown in Fig. 8(A), the model was indeed able to capture the phenomenon of recurrent traveling waves. Animated maps of the state variables and time-dependent sensitivities can be found in the Online Supplement.

Figure 8: Dynamics and TDSA of the spatially-explicit larch budmoth model.

Figure 8:

Each colored pixel corresponds to a suitable habitat patch embedded in a larger landscape. Animated maps of the state variables and sensitivities can be found in the Online Supplement. (A) Snapshots of the budmoth density, showing radial traveling waves. These propagating outbreaks occur every 7–8 years. (B) Snapshot of λP, the sensitivity to the addition of parasitoids, at Year 15. We observe a sharp transition from positive to negative values as we move away from the central region. To examine this transition more closely, we selected two adjacent patches, indicated by the intersections of the thin dotted lines (blue–Patch A; red–Patch B). The dynamics of the two patches turn out to be very similar. For example, the budmoth densities peak on the same years as shown in (C). Yet, they show completely different patterns of λP in (D): adding parasitoids to Patch A can be beneficial in the right years, but the reverse is true for Patch B. (For reference, the vertical dashed lines indicate the years of peak budmoth densities at the two patches. Also, we have only shown 40 years out of a time horizon of 200 years.) As explained in the main text, this makes it extremely challenging to infer the correct patch-level management actions from the sensitivities alone.

One possible measure to reduce moth populations and improve plant quality is biological control by introducing more parasitoids into a patch; the relevant sensitivity is given by λP(t). Fig. 8(B) shows the snapshot of λP(t) at t = 15. We observe a sudden transition from positive to negative values as we move radially away from the central region. In other words, adding parasitoids to some of the outer patches actually reduces the overall reward.

Rather than attempt a detailed explanation of these results from TDSA, we will instead focus on some qualitative implications of the results. First, because of the large and sometimes abrupt spatial variability in patch-specific sensitivities, biocontrol through parasitoid addition will be more effective when implemented regionally, rather than at the single patch level. Viewing the entire region, it is clear there are large gains from parasitoid addition in a substantial central area, and interventions should be concentrated there. But at the single patch level, management actions may be very difficult to infer. We identified two adjacent patches that have opposite signs in their sensitivities, indicated by the intersections between the thin dotted lines in Fig. 8(B) (blue—Patch A; red—Patch B). We examined the dynamics of the local state variables, and did not notice any qualitative differences. For example, the budmoth densities peak at the same years as shown in Fig. 8(C); Patch B did not lag behind Patch A. Yet, as confirmed in Fig. 8(D), adding parasitoids to Patch A can be beneficial in some years, whereas the reverse is true for Patch B. We verified using explicit perturbations that these adjoint sensitivities were indeed correct (Fig. S14). The mechanism behind the negative sensitivities in Patch B is also not obvious. As shown in Fig. S15, adding parasitoids at t = 15 increased plant quality over the next few years in both patches, but only in Patch B did it lead to a larger cumulative decrease in plant quality over the following decades.

Because neither the location nor the local dynamics clearly distinguish Patch A from Patch B, how would a manager know in practice whether to add or (if possible) remove parasitoids? Because the location of the transition between positive and negative sensitivities is likely to depend on model details and on parameter values, a manager operating at the single-patch level could find it very challenging to know what local actions are helpful in the long run for the region as a whole.

Inexplicable findings, such as the large differences between Patch A and Patch B, should evoke efforts to determine whether the results are robust, or instead reflect questionable model details. Given the (sadly typical) sparsity of data used to develop and parametrize the budmoth models, it is likely that different choices of functional forms for herbivory, parasitism, competition, and dispersal would fit the data more or less equally well. Would these other models lead to a drastic change in the position of the transition, or cause it to disappear altogether? Even in such a high-dimensional, complex system, TDSA makes it straightforward to get numerical values for the sensitivity of desired outcomes to any state or parameter perturbation; but whether or not to trust those values is an issue that any manager needs to consider. As mentioned in the pine looper example, performing TDSA on multiple variants of the mathematical model is one possible way to assess the robustness of the results.

Discussion

In this paper, we introduced time-dependent sensitivity analysis (TDSA) as a method for assessing the sensitivity of a system’s dynamics to perturbations in state variables or parameters at any time. Our examples have demonstrated how TDSA can be applied to a wide range of models and applications, where sensitivities vary substantially over time due to environmental variation (e.g., seasonality) and/or transient dynamics. Often, TDSA provides useful insights about the dynamics of the system, some of which would not have been easily discovered without its help. At the same time, Examples 2 and 3 also show why it is important to make an effort to interpret the results and not accept them uncritically, so as to avoid being misled by qualitative features that are really artifacts of specific mathematical assumptions in the input model. Table 1 summarizes our recommended “best practices” to help the TDSA practitioner navigate some of the potential pitfalls.

Table 1:

Recommended best practices when performing TDSA.

1. Understand the dynamical properties of the model, and choose a reward function that best reflects the objective—which can represent a management goal, or a feature of model predictions that you are trying to understand better by tracing its sensitivity to state or parameter perturbations. A time-discounted reward should be considered if perturbations do not damp out over time (see next point) so that the sensitivities are insensitive to the choice of time horizon.
2. Verify that the adjoint equations and numerical solutions have been correctly derived and implemented, by comparing the adjoint variables with the sensitivities calculated from the effect of making small perturbations to each state variable at a few time points. Also, plot the changes in the trajectories after those perturbations to see whether the effects of the perturbations grow over time, stay constant, or damp out.
3. In management settings, think about whether sensitivities (same-size perturbations) or demi-elasticities (perturbations that scale with the state variables) better reflect the cost-benefit tradeoffs of potential actions, especially if the state variables being perturbed vary over several orders of magnitude.
4. Try to interpret the main qualitative features in the time-dependent sensitivities, and decide whether they are biologically meaningful or instead artifacts of questionable model assumptions — don’t just accept results “because the math says so”.
5. If a mechanistic interpretation of sensitivities cannot be easily obtained, perform TDSA on variants of the models (e.g. different functional forms) to assess the robustness of the main results under different mathematical assumptions.

TDSA can be viewed as a stripped-down version of optimal control theory, which brings both advantages and disadvantages. The disadvantage is that it provides less information, because it is only guaranteed to be accurate for small perturbations. The main advantage is that it requires fewer assumptions and therefore imposes fewer constraints on the modeler. As in optimal control, TDSA requires formalizing the management goal in the form of the objective function—it forces one to be explicit about exactly what constitutes a desirable outcome. However, an optimal control model must also include a model for the costs of any actions taken. Moreover, cost functions are often chosen in practice so as to satisfy methodological constraints, such as adding a small quadratic term just to satisfy mathematical convexity conditions that imply the existence of an optimal control. As shown in Online Supplement Sec. S2, time-dependent sensitivities can also be made to reflect both costs and benefits, but here only the linearized costs matter. Finally, time-dependent sensitivity analysis is also computationally much simpler and faster, requiring only straightforward numerical solution of the state and adjoint equations, rather than iterative solution of those plus the first-order optimality condition.

The method of adjoint sensitivity analysis (ASA) which we used is not the only way of doing TDSA. An alternative, more direct method is forward sensitivity analysis (FSA) (e.g., Cacuci et al., 2003), which uses the variational equations of the state dynamics to calculate how a small change to each parameter affects state trajectories and the reward function. However, FSA requires a new solution of the variational equations for each parameter and each time of perturbation, so whenever one is interested in the effect of perturbations at many different time points, ASA will be far more efficient.

As we have demonstrated, for management purposes, it is sometimes more meaningful to convert sensitivities to demi-elasticities. For example, a high-sensitivity species may be very rare, making management actions targeting the species impractical. As shown in the pine looper example, demi-elasticities also better reflect the costs and benefits of management actions such as pesticide application, where the number of pests directly killed scales with the pest density. In addition, we recommend performing checks to confirm that TDSA has been correctly implemented, e.g. by comparing the adjoint variables to sensitivities calculated from explicit perturbations at a number of time points. Although we have performed the comparisons for all time points in Figs. S9 and S14, this is not necessary and may not even be computationally feasible for high-dimensional models (the very motivation behind the use of the adjoint formalism).

Although TDSA is mathematically rigorous, we advise against blind acceptance of its results, especially if they are to inform management actions. The results from TDSA ultimately depend on the choice of mathematical model used to describe the dynamical system. Hence, the practitioner should make an effort to interpret key features in the sensitivity, and decide whether they only rely on the biology broadly conceptualized by the model, or on specific mathematical assumptions of the model chosen for simplicity. We saw both types of features in the chytrid fungus example, and we explained why only the former should be used for assessing management decisions. If a mechanistic explanation is not possible, like in the pine looper example, the practitioner should consider performing TDSA for multiple variants of the model to assess the robustness of the results. In addition, the dynamics of the system matters. If quasiperiodic, the effects of a perturbation may persist without damping (e.g. Fig. S11(c) for the site Tentsmuir in the pine looper example); this will need to be considered when defining the reward function so that the sensitivities at early times do not depend too much on the time horizon. If model dynamics are chaotic, results from TDSA may be difficult to interpret (although this would also be true for other forms of sensitivity analysis).

We have shown how TDSA can be applied to a wide variety of deterministic models, including models with continuous independent variables through discretisation. Although we did not demonstrate this using an example, TDSA should also work for models with distributed time delays, e.g. by using the (generalized) “linear chain trick” (Hurtado and Richards, 2020; Hurtado and Kirosingh, 2019) to convert them into differential equation models, or by formulating the models as integro-differential equations with age classes (which can then be discretized). On the other hand, extending TDSA to stochastic systems is potentially challenging because the impacts of a perturbation will vary between different random realizations of the dynamics.

We live in a time-varying world, where knowing when to act is often just as important as knowing how to act. TDSA simultaneously addresses both questions, and offers a systematic way of probing the dynamics of a model, thereby enhancing our understanding of the biological system and facilitating decisions on how to achieve management goals. By presenting a balanced view that highlights both the strengths of TDSA as well the potential pitfalls, we hope that TDSA can become a useful addition to the toolkit of the modelers and natural resource managers.

Supplementary Material

Supplement 1

Acknowledgments:

We thank Megan Greischar, Christina Hernández, Timothy Lambert, Martina Morelli, Anna Poulton and Andrew Siefert for helpful comments. Research reported in this publication was supported by the National Institute of General Medical Sciences of the National Institutes of Health under Award Number R01GM122062, as well as the USDA National Institute of Food and Agriculture under the Ecology and Evolution of Infectious Diseases grant no. 2021-67015-35235. Any opinions, findings, conclusions, or recommendations expressed in this publication are those of the author(s) and do not necessarily represent official views of the National Institutes of Health nor the U.S. Department of Agriculture.

Appendix A: Derivation of the adjoint equations and terminal conditions

In this section, we present a modified version of the proof from Kamien and Schwartz (1991), Part II, Section 4, that the time-dependent sensitivity satisfies the adjoint equations and terminal conditions given in Eqn. (5). When we perturb the state vector at time t, only the contribution to the reward J downstream from the perturbation will be affected. Hence we introduce the value function

Vxt,ttTfxt,tdt+Ψ(x(T)),dxitdt=gixt,t,x(t)=xt, (A1)

which gives the total contribution to J from time t to T, when the state vector is equal to xt at time t. For the original unperturbed trajectory, which we will denote as x() to avoid confusion, xt=x(t), but we will also consider other values of xt, in which case the subsequent trajectory x() will not be x(). (Think of the argument xt as specifying the “initial conditions” at time t.) The value function is useful because if we perturb the original state vector to xt at time t, the change in reward is then given by the difference ΔJ=Vxt,tVxt,t.

We now re-write the value function in a different form. First, we introduce a function λ() that is as of now arbitrary. From the definition in Eqn. (A1),

Vxt,t=tTfxt,t+jλjtgjxt,tdxjtdt"adding a zero"dt+Ψ(x(T))=tTfxt,t+jλjtgjxt,t+jdλjtdtxjtdt+jλjtxjtxjtjλjTxjTfrom integration by parts+Ψxt (A2)

The change in reward can then be written as

ΔJ=tTfxt,tfxt,t+jλjtgjxt,tgjxt,t+jdλjtdtxjtxjtdt+jλj(t)xjtxj(t)jλj(T)xj(T)xj(T)+Ψ(x(T))Ψx(T). (A3)

Now say we only perturb the ith state variable by an amount ϵ at time t, so xjtxj(t)=ϵ if j = i and 0 otherwise. From Taylor approximation, Eqn. (A3) becomes

ΔJ=tTkfxt,txk+jλjtgjxt,txk+dλktdtxktxktdt+jλj(t)xjtxj(t)λi(t)ϵ+kΨ(x(T))xkλk(T)xk(T)xk(T)+𝓞ϵ2. (A4)

Notice that if we now choose the arbitrary function λ to satisfy the adjoint system Eqn. (5), the terms in large square brackets vanish, leaving

ΔJ=λi(t)ϵ+𝓞ϵ2λi(t)=limϵ0ΔJϵ, (A5)

so λi(t) is just the sensitivity to the above state perturbation. In other words, if a function λ satisfies the adjoint system, then it can be interpreted as a time-dependent sensitivity. Since the sensitivity is single-valued, this means that the converse must be true, that the sensitivity must satisfy the adjoint system. This completes the proof.

Appendix B: Time-dependent parameter sensitivity

In this section, we derive Eqn. (A9), a formula that can be used to calculate time-dependent parameter sensitivities from the adjoint variables. Consider a parameter perturbation of the form θθ+ϵh, where h is a vector-valued function of time that indicates the relative size of perturbation in each parameter (so it will only have one non-zero component if we only perturb a single parameter), as well as the temporal pattern of the perturbation (so it will only be nonzero over a short time interval if we only perform a brief perturbation). ϵ is a small parameter that represents the size of perturbation. From Eqn. (1), the resulting changes in the state variables xx+δx satisfy the following (linearized) dynamic equation:

dδxjdt=kgjxkδxk+kgjθkϵhk, (A6)

and δx in turn changes the reward function, Eq. (2), by

ΔJ=0Tkfxkδxkdt+kΨ(x(T))xkδxk(T). (A7)

Plugging Eqns. (56) and (A6) into the above expression of ∆J, we get

ΔJ=0Tkdλkdt+lλlglxkfrom Eqns. (5–6)δxkdt+kλk(T)δxk(T)=kλkTδxkT+kλk0δxk00+0Tkλkdδxkdtdtfrom integration by parts0Tklλlglxkδxkdt+kλkTδxkT=0Tkλllgkxlδxl+lgkθlϵhlfrom Eqn. A6dt0Tklλlglxkxkdt=0Tkλklgkθlϵhldt. (A8)

Note that in the second step, δxk(0) = 0 since a finite parameter perturbation starting at t = 0 should not cause a finite change in the state variables at t = 0. The sensitivity (a Gateaux derivative, in the language of functional analysis) is therefore given by

dJdϵ=j0Tλj(t)gj(x(t),θ(t),t)θh(t)dt. (A9)

where gj(x(t),θ(t),t)θ is the vector gjθ1,gjθ2,.

Since the normalization of h affects the value of the sensitivity, if we are trying to compare perturbations associated with different management options, it is preferable that we normalize h for each option in a way that permits a fair comparison. For example, if ϵh is a brief perturbation centered at time t* only in the kth component of θ, and we normalize hk such that 0Thktdt=1, then Eqn. (A9) reduces to

dJdϵjλjtgjxt,θt,tθk. (A10)

Eqn. (A10) also provides some insights into the interpretation of the more general expression, Eqn. (A9). Comparing the two equations, we see that the integral in Eqn. (A9) can be thought of as “chopping” up a more general ϵh into a series of brief perturbations centered at different times, and then summing over the sensitivities to these brief perturbations.

Footnotes

The authors wish to be identified to the reviewers

Data and code accessibility: No original data are presented in this paper. All supporting computer scripts are included with the submission, and will be archived on Zenodo and the DOI added to the final manuscript if accepted.

NOTE: for the convenience of reviewers, figures and tables have been placed with their captions close to where they are referred to in the text. If the paper is accepted for publication, the final manuscript will be formatted in accordance with the Instructions for Authors.

1

We chose demi-elasticity, because the more obvious choice of semi-elasticity is often used in economics to represent the fractional change in objective given an absolute change in the perturbed variable, exactly the opposite of demi-elasticity. “Demi” is also a useful mnemonic for “denominator”. One author’s suggestion of sensi-lasticity went unheeded.

Literature Cited

  1. Arbetman M. P., Meeus I., Morales C. L., Aizen M. A., and Smagghe G.. 2013. Alien parasite hitchhikes to Patagonia on invasive bumblebee. Biological Invasions 15:489–494. [Google Scholar]
  2. Bartomeus I., Ascher J. S., Gibbs J., Danforth B. N., Wagner D. L., Hedtke S. M., and Winfree R.. 2013. Historical changes in northeastern us bee pollinators related to shared ecological traits. Proceedings of the National Academy of Sciences 110:4656–4660. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Berryman A. 1986. Forest Insects: Principles and Practices of Population Management. Plenum Press. [Google Scholar]
  4. Bjørnstad O. N., Peltonen M., Liebhold A. M., and Baltensweiler W.. 2002. Waves of larch budmoth outbreaks in the european alps. Science 298:1020–1023. [DOI] [PubMed] [Google Scholar]
  5. Box G. 1979. Robustness in the strategy of scientific model building. Pages 201–236 in LAUNER R. L. and WILKINSON G. N., eds. Robustness in Statistics. Academic Press. [Google Scholar]
  6. Bressan A., and Piccoli B.. 2007. Introduction to the Mathematical Theory of Control, vol. 2 of AIMS Series on Applied Mathematics. American Institute of Mathematical Sciences. [Google Scholar]
  7. Burnham P. A., Alger S. A., Case B., Boncristiani H., Hébert-Dufresne L., and Brody A. K.. 2021. Flowers as dirty doorknobs: Deformed wing virus transmitted between Apis mellifera and Bombus impatiens through shared flowers. Journal of Applied Ecology 58:2065–2074. _eprint: 10.1111/1365-2664.13962. [DOI] [Google Scholar]
  8. Cacuci D. G., Ionescu-Bujor M., and Navon I. M.. 2003. Sensitivity and Uncertainty Analysis, volume II: Theory. CRC press. [Google Scholar]
  9. Cacuci D. G., Weber C. F., Oblow E. M., and Marable J. H.. 1980. Sensitivity theory for general systems of nonlinear equations. Nuclear Science and Engineering 75:88–110. [Google Scholar]
  10. Cameron S. A., Lozier J. D., Strange J. P., Koch J. B., Cordes N., Solter L. F., and Griswold T. L.. 2011. Patterns of widespread decline in North American bumble bees. Proceedings of the National Academy of Sciences 108:662–667. Publisher: Proceedings of the National Academy of Sciences. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Cao Y., Li S., and Petzold L.. 2002. Adjoint sensitivity analysis for differential-algebraic equations: algorithms and software. Journal of Computational and Applied Mathematics 149:171–191. [Google Scholar]
  12. Cao Y., Li S., Petzold L., and Serban R.. 2003. Adjoint sensitivity analysis for differential-algebraic equations: The adjoint dae system and its numerical solution. SIAM Journal on Scientific Computing 24:1076–1089. [Google Scholar]
  13. CaraDonna P. J., and Waser N. M.. 2020. Temporal flexibility in the structure of plant–pollinator interaction networks. Oikos 129:1369–1380. [Google Scholar]
  14. Caswell H. 1989. Analysis of life table response experiments: Decomposition of effects on population growth rate. Ecological Modelling 46:221 – 237. [Google Scholar]
  15. Caswell H. 1996. Analysis of life table response experiments II. Alternative parameterizations for size- and stage-structured models. Ecological Modelling 88:73–82. [Google Scholar]
  16. Caswell H. 2000. Prospective and retrospective perturbation analyses: their roles in conservation biology. Ecology 81:619–627. [Google Scholar]
  17. Caswell H. 2001. Matrix Population Models: Construction, Analysis and Interpretation. 2nd edition. Sinauer Associates, Sunderland MA. [Google Scholar]
  18. Caswell H. 2019. Sensitivity Analysis: Matrix Methods in Demography and Ecology. Springer Nature. [Google Scholar]
  19. Diekmann O., Heesterbeek H., and Britton T.. 2013. Mathematical Tools for Understanding Infectious Disease Dynamics. Princeton Series in Theoretical and Computational Biology. Princeton University, Princeton, NJ. [Google Scholar]
  20. Dixit A. K. 1990. Optimization in Economic Theory. 2nd ed. Oxford University Press. [Google Scholar]
  21. Dumbrell A. J., Ashton P. D., Aziz N., Feng G., Nelson M., Dytham C., Fitter A. H., and Helgason T.. 2011. Distinct seasonal assemblages of arbuscular mycorrhizal fungi revealed by massively parallel pyrosequencing. New Phytologist 190:794–804. [DOI] [PubMed] [Google Scholar]
  22. Ellner S. P., Childs D. Z., and Rees M.. 2016. Data-driven Modelling of Structured Populations. Springer, Cham. [Google Scholar]
  23. Errico R. M. 1997. What is an adjoint model? Bulletin of the American Meteorological Society 78:2577–2592. [Google Scholar]
  24. Figueroa L. L., Blinder M., Grincavitch C., Jelinek A., Mann E. K., Merva L. A., Metz L. E., Zhao A. Y., Irwin R. E., McArt S. H., and Adler L. S.. 2019. Bee pathogen transmission dynamics: deposition, persistence and acquisition on flowers. Proceedings of the Royal Society B: Biological Sciences 286:20190603. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Fröhlich F., Kaltenbacher B., Theis F. J., and Hasenauer J.. 2017. Scalable parameter estimation for genome-scale biochemical reaction networks. PLOS Computational Biology 13:1–18. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Fürst M. A., McMahon D. P., Osborne J. L., Paxton R. J., and Brown M. J. F.. 2014. Disease associations between honeybees and bumblebees as a threat to wild pollinators. Nature 506:364–366. Number: 7488 Publisher: Nature Publishing Group. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Graystock P., Blane E. J., McFrederick Q. S., Goulson D., and Hughes W. O. H.. 2016. Do managed bees drive parasite spread and emergence in wild bees? International Journal for Parasitology: Parasites and Wildlife 5:64–75. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Graystock P., Ng W. H., Parks K., Tripodi A. D., Muñiz P. A., Fersch A. A., Myers C. R., McFrederick Q. S., and McArt S.. 2020. Dominant bee species and floral abundance drive parasite temporal dynamics in plant-pollinator communities. Nature Ecology & Evolution 4:1358 – 1367. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Graystock P., Yates K., Darvill B., Goulson D., and Hughes W. O. H.. 2013. Emerging dangers: Deadly effects of an emergent parasite in a new pollinator host. Journal of Invertebrate Pathology 114:114–119. [DOI] [PubMed] [Google Scholar]
  30. Hernández C. M., Ellner S. P., Adler P. B., Hooker G., and Snyder R. E.. 2022. An exact version of Life Table Response Experiment analysis, and the r package exactLTRE. Methods in Ecology and Evolution in review . [Google Scholar]
  31. Hurtado P., and Richards C.. 2020. A procedure for deriving new ODE models: Using the generalized linear chain trick to incorporate phase-type distributed delay and dwell time assumptions. Mathematics in Applied Sciences and Engineering 1:412 – 424. [Google Scholar]
  32. Hurtado P. J., and Kirosingh A. S.. 2019. Generalizations of the ‘linear chain trick’: Incorporating more flexible dwell time distributions into mean field ODE models. Journal of Mathematical Biology 79:1831 – 1883. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Johnson D. M., Bjørnstad O. N., and Liebhold A. M.. 2004. Landscape geometry and travelling waves in the larch budmoth. Ecology Letters 7:967–974. [Google Scholar]
  34. Johnson D. M. 2006. Landscape mosaic induces traveling waves of insect outbreaks. Oecologia 148:51–60. [DOI] [PubMed] [Google Scholar]
  35. Kamien M. I., and Schwartz N. L.. 1991. Dynamic Optimization, vol. 31 of Advanced Textbooks in Economics. Elsevier Science B. V. [Google Scholar]
  36. Kendall B. E., Ellner S. P., McCauley E., Wood S. N., Briggs C. J., Murdoch W. W., and Turchin P.. 2005. Population cycles in the pine looper moth: Dynamical tests of mechanistic hypotheses. Ecological Monographs 75:259–276. [Google Scholar]
  37. Lenhart S., and Workman J. T.. 2007. Optimal control applied to biological models. Chapman and Hall/CRC. [Google Scholar]
  38. Levins R. 1966. The strategy of model building in population biology. American Scientist 54:421–431. [Google Scholar]
  39. Lyu G., Koehl A., Matei I., and Stammer D.. 2018. Adjoint-based climate model tuning: Application to the planet simulator. Journal of Advances in Modeling Earth Systems 10:207–222. [Google Scholar]
  40. MacDonald N. 1978. Time Lags in Biological Models, vol. 27 of Lecture Notes in Biomathematics. Springer-Verlag Berlin Heidelberg. [Google Scholar]
  41. Manley R., Temperton B., Doyle T., Gates D., Hedges S., Boots M., and Wilfert L.. 2019. Knock-on community impacts of a novel vector: spillover of emerging DWV-B from Varroa-infested honeybees to wild bumblebees. Ecology Letters 22:1306–1315. _eprint: 10.1111/ele.13323. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Moore A. M. 2011. Adjoint data assimilation methods. Pages 351–379 in Schiller A and Brassington GB, ed. Operational Oceanography in the 21st Century. Springer, Dordrecht. [Google Scholar]
  43. Morris W. F., and Doak D. F.. 2002. Quantitative Conservation Biology: Theory and Practice of Population Viability Analysis. Sinauer Associates, Sunderland, Mass. [Google Scholar]
  44. Myers J. H., and Cory J. S.. 2013. Population cycles in forest Lepidoptera revisited. Annual Review of Ecology, Evolution and Systematics 44:565–592. [Google Scholar]
  45. Nelson W. A., Bjørnstad O. N., and Yamanaka T.. 2013. Recurrent insect outbreaks caused by temperature-driven changes in system stability. Science 341:796–799. [DOI] [PubMed] [Google Scholar]
  46. Ng W. H., Myers C. R., McArt S., and Ellner S. P.. in press. Predicting and controlling spillover in multi-species disease transmission networks: Steady-state analysis. American Naturalist . [DOI] [PubMed] [Google Scholar]
  47. Oli M. K., Slade N. A., and Dobson F. S.. 2001. Effect of density reduction on Uinta ground squirrels: analysis of Life Table Response Experiments. Ecology 82:1921–1929. [Google Scholar]
  48. Oro D., and Doak D. F.. 2020. Breeding transients in capture–recapture modeling and their consequences for local population dynamics. Scientific Reports 10:15815. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Pontryagin L. S., Boltyanskii V. G., Gamkrelize R. V., and Mishchenko E. F.. 1962. The Mathematical Theory of Optimal Processes. Wiley. [Google Scholar]
  50. R Core Team. 2021. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. [Google Scholar]
  51. Saltelli A., Gatelli D., Campolongo F., Cariboni J., Ratto M., Saisana M., Tarantola S., and Andres T.. 2008. Global Sensitivity Analysis: the Primer. John Wiley & Sons, New York. [Google Scholar]
  52. Soetaert K., Petzoldt T., and Setzer R. W.. 2010. Solving differential equations in R: Package deSolve. Journal of Statistical Software 33:1–25.20808728 [Google Scholar]
  53. Sommer U., Adrian R., De Senerpont Domis L., Elser J. J., Gaedke U., Ibelings B., Jeppesen E., Lürling M., Molinero J. C., Mooij W. M., van Donk E., and Winder M.. 2012. Beyond the plankton ecology group (peg) model: Mechanisms driving plankton succession. Annual Review of Ecology, Evolution, and Systematics 43:429–448. [Google Scholar]
  54. Truitt L. L., McArt S. H., Vaughn A. H., and Ellner S. P.. 2019. Trait-based modeling of multi-host pathogen transmission: Plant-pollinator networks. American Naturalist 193:E149–E167. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Turchin P., Wood S. N., Ellner S. P., Kendall B. E., Murdoch W. W., Fischlin A., Casas J., McCauley E., and Briggs C. J.. 2003. Dynamical effects of plant quality and parasitism on population cycles of larch budmoth. Ecology 84:1207–1214. [Google Scholar]
  56. Wilber M. Q., Ohmer M. E. B., Altman K. A., Brannelly L. A., LaBumbard B. C., Sage E. H. L., McDonnell N. B., Muñiz Torres A. Y., Nordheim C. L., Pfab F., Richards-Zawacki C. L., Rollins-Smith L. A., Saenz V., Voyles J., Wetzel D. P., Woodhams D. C., and Briggs C. J.. 2022. Once a reservoir, always a reservoir? Seasonality affects the pathogen maintenance potential of amphibian hosts. Ecology 103:e3759. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1

Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES