Background

Mathematical modeling has been applied to the study and analysis of complex biological systems for a long time. Many mathematical models for dynamic biological systems are formulated as nonlinear ordinary differential equations (ODEs). Some processes in biological systems, such as the gene expression and feedback control in signal transduction networks, involve a time delay. These systems are represented as delay differential equation (DDE) models. Many DDE models have been proposed in the last decade [13]. Bocharov et al. [4] reviewed various applications of DDE models in population dynamics, epidemiology, immunology, neural networks, and cell kinetics. Sensitivity analysis can shed light on the dynamic behavior of biological systems and assist the modeling process by identifying the critical parameters that determine the essential behavior of the system. Numerical sensitivity analysis of a DDE model by the direct method requires to obtain the solutions of model and sensitivity equations with time-delays. To do dynamic sensitivity analysis on DDE models, an efficient and accurate approach to compute the solution of DDEs is the basic requirement. Many sophisticated DDE solvers are available recently [512]. The major effort is the computation of Jacobian matrix when computing the solution of sensitivity equations. The computation of partial derivatives of complicated equations either by the analytic method or by symbolic manipulation is time consuming, inconvenient, and prone to introduce human errors. To surmount this problem, an automatic approach to obtain the derivatives of complex functions efficiently and accurately is necessary.

Dynamic sensitivity analysis is an important tool for assessing dynamic behavior of biological systems. The common used approach for sensitivity analysis is the numerical differentiation by finite difference approximation. The main drawback of this approach is that the accuracy is hard to analyze. Due to the efficiency and accuracy, a variety of direct methods are proposed [1315]. Rihan [16] derives a general theory for sensitivity analysis of DDE models by using adjoint equations and direct methods to estimate the sensitivity equations with variable and constant parameters, respectively. The kinetic preprocessor (KPP) numerical library is a comprehensive set of software tools for direct and adjoint sensitivity analysis [17]. An-other approach which can be used to evaluate sensitivity equations is automatic differentiation. Automatic differentiation is a non-approximate differentiation technique that permits the fast and accurate evaluation of partial derivatives in Jacobian matrix. The values for the derivatives obtained by automatic differentiation are exact if we do not take account of the unavoidable round-off error due to the finite precision arithmetic of a computer. The theoretical exactness of the automatic differentiation comes from the fact that it uses the same rules of differentiation as in differential calculus, but these rules are applied to an algorithmic evaluation of the function rather than to a formula. The implementation of automatic differentiation can be divided into two different classes: source code transformation and operator overloading. The most widely used source code transformation program is ADIFOR 2.0 [18]. This program, like as the preprocessor of a compiler, accepts and analyzes Fortran 77 source code and produces code to evaluate the derivatives of the function in Fortran 77 standard. The output code is optimized by eliminating unnecessary arithmetic operations and temporary variables and then compiled with a standard compiler into an object code that can simultaneously evaluate derivatives and function values. Hwang et al. [19] demonstrated that ADIFOR is a powerful tool for ODE models from three aspects of performance: accuracy, efficiency, and scaled capability. Griewank et al. [20] developed an open-source code, automatic differentiation by overloading in C++ (ADOL-C), for the automatic differentiation of C and C++ programs. The implementation of ADOL-C utilizes the operator overloading capability of C/C++ compilers that accept user-defined data types, operators and functions. The implementation of either the source code transformation or the operator overloading is a compile-time solution. It allows one to generate derivatives from complicated existing code or user-provided model equations that expressed by user-defined data types, operators and functions. These available codes are implemented for ODEs and is suitable for users with programming background.

We have proposed an efficient algorithm with an adaptive step size control, called adaptive modified collocation method (AMCM), to compute the solution and dynamic sensitivities of biological systems described by ODEs [21]. The algorithm is extended to solve the solution and dynamic sensitivities of time-delay systems described by DDEs in this paper and named as extended adaptive modified collocation method (EAMCM). The EAMCM is implemented as a user-friendly program that facilitates the dynamic sensitivity analysis of DDE models through the implementation of adaptive direct-decoupled method and automatic differentiation. EAMCM requires the user to supply only the model equations at run-time in a form of mathematical expression to compute dynamic sensitivities of DDE models. The evaluation of sensitivity equations is done automatically by automatic differentiation technique along with the inevitable evaluation of model equations. By combining the adaptive direct-decoupled AMCM algorithm with automatic differentiation technique and extending its usage to DDE models, the extended algorithm, EAMCM, is efficient, accurate, and easy to use for end users without programming background to do dynamic sensitivity analysis on complex biological systems with time-delays.

To evaluate the applicability of the extended algorithm, it is applied to two realistic models with time-delays: the cardiovascular control system and the TNF-α signal transduction network. The first DDE model for human cardiovascular control system was developed by Fowler et al. [22] to explore the interactions between the heart rate and blood pressure under the baroreflex control. The time delay arises from the slow activity of sympathetic nervous system. Sensitivity analysis is applied to this DDE model through the EAMCM program to identify the key parameters that could provide useful diagnostic information about the state of the cardiovascular system. The second DDE model for TNF-α signal transduction network built by Rangamani and Sirovich [23] considers both the NF-κ B-mediated survival pathway and the caspase-mediated apoptosis pathway simultaneously. Due to the delay of translocation of NF-κ B to the nucleus, the transcription processes of cIAP and Iκ B in the NF-κ B-mediated survival pathway were represented by DDEs. The EAMCM is applied to this model to analyze its dynamic sensitivities and decipher the relationship between the NF-κ B-mediated survival pathway and the caspase-mediated apoptosis pathway.

Results and discussion

Cardiovascular disease is the major cause of human death. A detailed understanding of cardiovascular systems is important for the diagnosis of cardiovascular disease, ultimately leading to improved treatment. The EAMCM program can be used to do dynamic sensitivity analysis on the cardiovascular control system to investigate the hemodynamics and regulation control of cardiovascular systems.

Apoptosis is central to the development of cancer. In the recent years, the prevalent model to explain why cancer therapies fail has been that cell resistant to or inhibition of apoptosis [24]. So now, the new treatment goal is how to control apoptosis that brings on cell death of the cancer cells. NF-κ B is a transcription factor family that activating numerous genes that are related to cell survival pathways. Most commonly, NF-κ B activation inhibits apoptosis pathways, as evidenced by several knockout mouse models [25, 26]. Based on these findings, the goal to design more effective cancer therapies can be initiated by apoptosis induction and inhibition of NF-κ B. Many mathematical models describing the dynamics of apoptosis and NF-κ B pathways have been published in last decade [2731]. Most of the models to date have concentrated on only one of signaling pathways and do not consider the delayed transcription processes. The EAMCM program is applied to a TNF-α-induced signaling network considering both signaling pathways simultaneously to investigate how these two pathways work together to regulate cell fate in response to TNF-α.

Cardiovascular control system

Mathematical models are useful to investigate the hemodynamics and regulation control of cardiovascular systems. In general, cardiovascular models consist of two major systems: the hemodynamic system and the autonomic nerve control system. The hemodynamic system is a systemic circulatory blood distribution network to deliver oxygen, nutrients, and hormones to cells and remove carbon dioxide and metabolic wastes. The left ventricle pumps blood to arteries, capillaries, veins, and back to the heart. The blood hemodynamics of this circulation can be represented by the relationship between blood pressure and heart rate in the cardiovascular system. The control of the blood pressure is crucial to human health due to that the blood pressure is the energy, generated by the heart, to push blood around the body. Although the endogenous regulation of arterial pressure is not completely understood, there are evidences that baroreceptors are important for minimizing changes in blood pressure. Animal studies have shown that blood pressure is much more variable if the influence of baroreceptors is removed [32, 33]. Baroreceptors detect changes in arterial pressure and send signals ultimately to the medulla of the brain stem. The medulla, by way of the autonomic nerve control system, adjusts the mean arterial pressure by altering the heart rate and the total peripheral resistance. The autonomic nerve control system includes the sympathetic and parasympathetic nervous systems. When blood pressure starting to fall, the baroreceptor stimulation decreasing and the reflex response causes the peripheral resistance increasing and the heart to beat faster and harder by slow-acting sympathetic nerves. This negative-feedback mechanism largely restores the blood pressure. Conversely, if blood pressure increases, stimulation of baroreceptors gives rise to nerve impulses which run to the brain and slow down the heartbeat through the fast activity in the parasympathetic pathway.

Fowler et al. [22] developed a lumped DDE model of the integrated cardiovascular system combined with a baroreflex feedback control of blood pressure to describe the interactions between heart rate, blood pressure, and respiration. This DDE model is a simple model without considering the pulmonary part of the cardiovascular system and is derived from the model introduced by Ottesen [34] by adding an intrinsically controlled heart rate and baroreflex control of peripheral resistance. This simple model consists of only 2 delay differential equations which include 16 parameters and is expressed as

d x 1 d t * = h 0 ε h [ β g 1 1 + γ g 2 ν g 2 ] + δ ε h ( h 0 x 1 ) ,
(1)
d x 2 d t * = μ p 0 ε p h 0 x 1 x 2 ε p ( 1 + α g 1 ) ,
(2)

where x1 is the heart rate, x2 is the arterial pressure, and t* = t/τ is the dimensionless time. The functions g1 and g2 are defined by

g 1 = 1 1 + [ x 2 ( t * 1 ) / p 0 + r 1 ] n , g 2 = 1 1 1 + [ x 2 ( t * ) / p 0 + r 2 ] n , r 1 = A 1 sin { 2 π f r τ ( t * 1 ) ϕ } , r 2 = A 2 sin { 2 π f r τ t * ϕ } ,

where x2(t* - 1) and x2 (t*) denote the blood pressure with and without a time delay, respectively. The values and definitions of system parameters are given in Table 1. The state variables are the heart rate and blood pressure. A sinusoidal function is added to the model equations to mimic respiration. The Hill function g i with an exponent n is used to model the baroreflex feedback control of heart rate. This simple model has shown to be able to reproduce many of the empirical observations such as respiratory sinus arrhythmia (RSA), Mayer waves, and synchronization [35].

Table 1 The value and definition of system parameters

The EAMCM program is used to do sensitivity analysis on the lumped cardiovascular model. The non-constant exponent of Hill function and sinusoidal functions in differential model equations complicate the evaluation of Jacobian matrix for computing the solution of sensitivity equations. By the help of automatic differentiation embedded in the EAMCM program, user can provide the model equations only at run-time for solving the dynamic sensitivities of the cardiovascular system. The dynamic sensitivities of heart rate and blood pressure with respect to all system parameters and initial conditions are computed. All relative parameter sensitivities are presented by 100% stacked column chart and shown in Figure 1. It is easy to find which parameter makes more effects on heart rate and blood pressure than the others from Figure 1. The values of top five sensitivities for the heart rate and blood pressure are shown in Table 2. The uncontrolled average arterial blood pressure (p0), breathing rate (f r ), sympathetic delay (τ), sympathetic control of heart rate (β), and strength of vagal tone (ν) are identified as the key parameters for the control of heart rate and blood pressure. The relative sensitivities of heart rate and blood pressure with respect to the uncontrolled average arterial blood pressure are shown in Figure 2. The dynamic sensitivities of heart rate with respect to p0 oscillate symmetrically between positive and negative values. This result indicates that the uncontrolled average arterial blood pressure amplifies the variation of heart rate. In contrast, the dynamic sensitivities of blood pressure with respect to p0 oscillate but are all positive. This means that an increase of the uncontrolled average arterial blood pressure shifts the blood pressure to a higher value but does not change the variation of blood pressure. As shown in Table 2, the effect of uncontrolled average arterial blood pressure on the variation of average heart rate is tenfold larger than the variation of blood pressure. There is evidence that the slow-acting sympathetic nerves and the fast-acting vagal nerves compete with each other to increase and decrease the heart rate, respectively [36]. The relative sensitivities of heart rate with respect to parameters for slow sympathetic control (β) and fast vagal control (ν) are investigated and shown in Figure 3. Figure 3 shows the sympathovagal balance in physiology and both sympathetic control and vagal control amplify the variation of heart rate. The relative sensitivities of blood pressure with respect to parameters for slow sympathetic control (β) and fast vagal control (ν) are shown in Figure 4. The slow-acting sympathetic control upregulates the blood pressure, but does not change its variation. The relative sensitivity of blood pressure with respect to the sympathetic control is positive over the time. In contrast, the fast-acting vagal control downregulates the blood pressure and has a negative relative sensitivity over the time.

Figure 1
figure 1

Stacked 100% column chart for individual state variables. Each column in the stack column chart shows all relative parameter sensitivities for a state variable. The proportion of a parameter sensitivity to the total sensitivity for a state variable is displayed as a color area in each column. The values of time-averaged relative parameter sensitivities are used as the data.

Table 2 The ranking of relative sensitivities of heart rate and blood pressure
Figure 2
figure 2

The relative sensitivities of heart rate and blood pressure with respect to p 0 . The relative sensitivities of heart rate and blood pressure with respect to the uncontrolled average arterial blood pressure. The time is in dimensionless scale.

Figure 3
figure 3

The relative sensitivities of heart rate with respect to β and ν. The relative sensitivities of heart rate with respect to parameters for slow sympathetic control and fast vagal control. The time is in dimensionless scale.

Figure 4
figure 4

The relative sensitivities of blood pressure with respect to β and ν. The relative sensitivities of blood pressure with respect to parameters for slow sympathetic control and fast vagal control. The time is in dimensionless scale.

Apoptosis signal network

The TNF-α signal transduction network was developed by Rangamani and Sirovich [23], which considers both the NF-κ B-mediated survival pathway and the caspase-mediated apoptosis pathway simultaneously. These two pathways involve 31 species in 19 reactions and the schematic diagram is shown in Figure 5. The formation of this network involves binding reactions between ligand and death receptor, protein-protein reactions, enzymatic reactions, translocations, and transcription processes. The network is induced by ligation of TNF-α to the cell surface receptor TNFR1. The ligation of TNFR1 by TNF results in the recruitment of the adaptor proteins such as TNFR-associated death domain (TRADD), TNFR-associated factor 2 (TRAF2), receptor-interacting protein 1 (RIP1), and possibly other yet unidentified proteins to form the early complex. In the NF-κ B-mediated transcription pathway, the inactive inhibitor kappa B kinase (IKK) binds to the early complex leads to the activation of IKK, Iκ B phosphorylation, and release of NF-κ B. The free NF-κ B translocates to the nucleus, binds to DNA, and leads to the transcription of Iκ B and cellular inhibitor of apoptosis protein (cIAP) that protects cells from TNF-induced apoptosis by binding to activated caspase-3 [37]. The newly synthesized free Iκ B enters the nucleus and binds to nuclear NF-κ B and this complex is exported to the cytoplasm [38]. This NF-κ B-Iκ B complex is the target for Iκ B phosphorylation by active IKK and the liberating NF-κ B will translocate to the nucleus again. Nelson et al. [39] proposed that this oscillatory feedback behavior of NF-κ B regulates the expression of cIAP. In the caspase-mediated apoptosis pathway, TRADD, RIP1, and TRAF2 are dissociated from TNFR1 and recruit Fas Associated Death Domain (FADD) and caspase-8 to form a protein complex called the death-inducing signaling complex (DISC) [40]. As a result of DISC formation, caspase-8 is cleaved at the DISC resulting in the activation of caspase-8. The activated caspase-8 in turn activates effector caspases, such as caspase-3, causing the cell to undergo apoptosis.

Figure 5
figure 5

Schematic diagram of TNF- α signal transduction network. The solid lines indicate reversible reactions and the dash-dot lines denote irreversible reactions. The dash lines indicate the delayed transcription processes. The reactions and components of the survival pathway are shown in green. The reactions and components of the apoptotic pathway are shown in blue. The boxes with red border denote the components with nonzero initial value in the network.

The transcription processes of cIAP and Iκ B due to the translocation of NF-κ B to the nucleus are represented as delayed reactions. The delay time used for transcription is 20 minutes as suggested by Sung and Simon [41]. Based on material balance, this model consists of 31 delay differential equations which include 29 parameters. The state variables are the concentration of the molecules in the survival and apoptosis pathways and the input variable is the concentration of TNF-α that stimulates the signal transduction pathways. The output variable is the concentration of fragmented DNA, which can be used as a marker for apoptosis. The fragmented DNA is defined as the fraction of DNA sites that have been attacked by the activity of effector caspase. The set of delay differential equations, all of the relevant definitions of variables, and parameters appearing in the DDE model, together with the nominal values can be found in Additional file 1. The reason for representing the model equations here and not just referring to the article by Rangamani et al. [23] is that some of the parameters and state variables have different names as that in the original model.

The EAMCM program is applied to the TNF-α signal transduction model using the initial conditions as described in Table S1 of Additional file 1. All dynamic sensitivities with respect to 29 parameters and 31 initial conditions are computed simultaneously without any difficulty. All time-averaged semi-relative parameter sensitivities for each state variable are shown in Figure 6. Most of the time-averaged semi-relative parameter sensitivities for each state variable are too small compared with the largest and can be ignored. It is easy to find from Figure 6 that only some few parameter sensitivities get significant percentage of the total sensitivity for each state variable.

Figure 6
figure 6

Stacked 100% column chart for individual state variables. Each column in the stack column chart shows all semi-relative parameter sensitivities for a state variable. The proportion of a parameter sensitivity to the total sensitivity for a state variable is displayed as a color area in each column. The values of time-averaged semi-relative parameter sensitivities are used as the data.

The dynamic sensitivity profiles for all species with respect to k9, the rate constant of the formation of survival complex, are nearly identical to that with respect to x10(0), the initial value of IKK (data not shown here). This is not surprising because the kinetic order is set to one for each flux in the model. So each relative effect on the output with respect to the rate constant is the same as that with respect to the initial concentration of the corresponding species. The same situation can be found for each pair of k15 /x17(0), k18/x20(0), etc. In the following, we analyze the dynamic parameter sensitivities only, because the same results for the corresponding dynamic initial sensitivities can be found from the dynamic parameter sensitivities.

All of the dynamic sensitivities with respect to k9, the rate constant of the formation of survival complex, and k15 , the rate constant of the formation of death complex, are symmetric with respect to the time axis. This means that if we have plotted the sensitivity profile of a species with respect to k9, the corresponding sensitivity profile with respect to k15 can be obtained simply by reflecting about the time axis. To elucidate the effects of IKK (x10) and FADD (x17) on the oscillatory behavior of NF-κ B (x16) and Iκ B (x31) in the survival pathway, the semi-relative sensitivities of NF-κ B and Iκ B with respect to the rate constants k9 and k15 , of the formation of survival complex and death complex are shown in Figure 7. We observe, from Figure 7, the negative regulation of oscillatory behavior of NF-κ B and Iκ B when the rate constant (k15) or the initial concentration of FADD increases. The reverse effect is seen by increasing the rate constant (k9) or the initial concentration of IKK. We also investigate the responses of the apoptosis pathway to the variances of FADD and IKK. The activation of effector caspase-3 (x23) is the finial reaction of the apoptosis pathway, so the concentration of the active caspase-3 (x25) can be used as the response of the apoptosis pathway. The semi-relative sensitivities of active caspase-3 with respect to k9 and k15 are shown in Figure 7. The negative values of the semi-relative sensitivities of active caspase-3 with respect to k9 show that the active caspase-3 decreases when the rate constant (k9) or the initial concentration of IKK increases. By contrast, increasing the rate constant (k15) or the initial concentration of FADD induces the increase of the active caspase-3. These results are in agreement with observations by mutant studies [23] and show the interplay of the apoptotic and survival pathways in response to the variations of IKK and FADD. As Figure 7 shows, a combination of increasing the initial concentration of FADD and decreasing the initial concentration of IKK gets more effects on the DNA fragmentation.

Figure 7
figure 7

The symmetry of semi-relative sensitivities with respect to k 9 and k 15 . The solid lines are the semi-relative sensitivities with respect to the rate constant k9 of the formation of survival complex and the short dash lines are the semi-relative sensitivities with respect to the rate constant k15 of the formation of death complex. The semi-relative sensitivities of NF-κ B (x16) are shown in red, Iκ B (x31) in green, activated caspase-3 (x25) in blue, and fragmented DNA (x26) in pink.

The fragmented DNA (x26) is the output of the signal transduction model in response to TNF-α stimulus. Our goal is to identify the essential reactions that have significant effect on the system output. The semi-relative sensitivities of fragmented DNA are used to achieve this goal. Since dynamic sensitivities vary with time, it is hard to determine the most important reaction that has the largest effect on the system output. We consider the usual used significance measure, time-averaged semi-relative sensitivity defined similar to equation (12), as the strength of effects on fragmented DNA for individual reactions. Table 3 shows the ranking of dynamic sensitivities of fragmented DNA with respect to all parameters based on time-averaged semi-relative sensitivities. The values of time-averaged semi-relative sensitivities and the corresponding ratios to the total semi-relative sensitivity are shown if the ratios are greater than 2%. Six out of the top seven key parameters belong to the apoptosis pathway. This means that the apoptosis pathway dominates the cell fate in response to TNF-α. The rate constants for the formation of phosphorylated caspase-8 (k20) and phosphorylated caspase-3 (k23) and the regulation of activating caspase-3 by phosphorylated caspase-8 (k21 ) are identified as important parameters. This result indicates that the activation cascades of caspase-8 and caspase-3 are important reactions in the apoptosis signal transduction pathway. Figure 8 shows the top seven semi-relative sensitivities of fragmented DNA. All key parameters positively regulate the activity of DNA fragmentation except parameter k9.

Table 3 The ranking of semi-relative sensitivities for fragmented DNA
Figure 8
figure 8

The semi-relative sensitivities of fragmented DNA. The semi-relative sensitivities of fragmented DNA (x26) with respect to the rate constants of the formation of survival complex (k9), the formation of death complex (k15), the formation of DISC without TNFR1 (k17), the caspase-8 activation (k20), the cleavage of procaspase-3 (k21), the caspase-3 activation (k23), and the fragmentation of DNA (k26).

The transcription factor NF-κ B (x16) plays an important role in the survival pathway. To further understand the control of NF-κ B, we analyze the semi-relative sensitivities of NF-κ B with respect to all parameters. The ranking of parameter sensitivities of NF-κ B based on the time-averaged semi-relative sensitivities is shown in Table 4. A parameter is referred to as an important parameter if the ratio of its time-averaged semi-relative parameter sensitivity to the total parameter sensitivity of NF-κ B is greater than 2%. Ignoring the rate constants for the reverse reactions, all parameters -k9, k11, k12, k14, k28, and k29 - in the survival pathway are identified as important parameters. The parameter k15 is also identified as an important parameter, although NF-κ B is negatively sensitive to it. The top seven sensitivities of NF-κ B are shown in Figure 9. The dynamic sensitivity of NF-κ B with respect to the IKK activation (k11) is similar to that with respect to the NF-κ B activation (k14) as Figure 9 shows. This means that the inhibitor of IKK acts the same function as the inhibitor of NF-κ B to inhibit the activity of NF-κ B. The activation of NF-κ B in most types of cells leads to the inhibition of apoptosis, accelerates cell proliferation, and promotes tumorigenesis. To inhibit cell growth, some small-molecule inhibitors targeting IKK have already been developed to treat certain type tumors [42]. Several synthetic drugs that are be able to inhibit the activities of IKK and NF-κ B have been shown to have the same effects on tumor development [43, 44]. Larger the rate constant for the transcription of Iκ B (k29), more Iκ B is generated to deactivate NF-κ B and causes lower active NF-κ B. A large rate constant for the formation of death complex (k15) leads to less signals to activate IKK that then phosphorylates Iκ B and triggers the activation of NF-κ B. Both rate constants regulate negatively the activation of NF-κ B as shown in Figure 9. The sensitivities of NF-κ B with respect to the rates of IKK activation (k11), the formation of NF-κ B/Iκ B/IKK* (k12), the NF-κ B activation (k14), and the deactivation of NF-κ B (k28) alternate between positive and negative values. These oscillations of sensitivities may be caused by the negative feedback regulation of Iκ B.

Table 4 The ranking of semi-relative sensitivities of NF-κ B
Figure 9
figure 9

The semi-relative sensitivities of NF- κ B. The semi-relative sensitivities of NF-κ B (x16) with respect to the rate constants of the formation of survival complex (k9), the IKK activation (k11), the formation of NF-κ B/Iκ B/IKK* (k12), the NF-κ B activation (k14), the formation of death complex (k15), the deactivation of NF-κ B (k28), and the transcription of cIAP and Iκ B (k29).

Following similar procedures mentioned above, we investigate the regulation of the apoptosis pathway. The DISC complex is essential for TNF-induced apoptosis and it is required for casepase-8 activation. To investigate the regulation of apoptosis, we identify the important reactions that regulate the formation of DISC by sensitivity analysis. The ranking of dynamic sensitivities of DISC based on the time-averaged semi-relative sensitivities is shown in Table 5. The key parameters -k9, k15, k17, and k20 - are identified and the dynamic sensitivities of DISC with respect to these four parameters are shown in Figure 10. The reaction of dissociation of DISC from the death receptor TNFR1 is essential for the following caspase-8 activation and its corresponding rate constant k17 is identify as an important parameter. This result is in agreement with the observation in an in vitro binding assay by Harper et al. [40].

Figure 10
figure 10

The semi-relative sensitivities of DISC. The semi-relative sensitivities of DISC (x21) with respect to the rate constants of the formation of survival complex (k9), the formation of death complex (k15), the formation of DISC without TNFR1 (k17 ), the caspase-8 activation (k20).

Table 5 The ranking of semi-relative sensitivities of DISC

Efficiency and accuracy

To verify the result obtained by the EAMCM algorithm, it is compared with the finite difference method using the dde23 as the DDE solver. The dde23 solver is available in MATLAB 6.5 and later. Forward difference is considered in the finite difference method. The dynamic sensitivities of these two systems mentioned above are solved by the finite difference method with spacing ratio 0.1 and 0.01, respectively. The relative parameter sensitivities of heart rate and blood pressure with respect to β obtained by the finite difference method with spacing ratio 0.1 and 0.01, respectively, and the EAMCM method are shown in Figure 11 as an illustration (another data is similar and not shown here). According to the definition of relative sensitivity, the theoretical value of relative sensitivity is obtained when the spacing ratio is approaching to zero. From Figure 11, the relative sensitivities obtained by the EAMCM are close to the theoretical values. We analyze the performance of the finite difference method and the EAMCM method for computing the dynamic sensitivities by measuring the number of evaluations of model equations. The results are shown in Table 6. The CPU time in second running by a 1.86 GHz Intel Xeon CPU with 4 GMB RAM is shown in the parenthesis for reference. Based on the comparison, the EAMCM program surely outperforms the finite difference method using dde23 solver. The EAMCM program can be accessed from http://www.che.ccu.edu.tw/~bioproc/index_english.files/page00064.htm and a brief manual can be found in the Additional file 2.

Figure 11
figure 11

The relative sensitivities obtained by the finite difference method and the EAMCM method. a) The relative sensitivities of heart rate with respect to the uncontrolled average arterial blood pressure (β); b) The relative sensitivities of blood pressure with respect to β. The green and red lines are obtained by the finite difference method with spacing ratio 0.1 and 0.01, respectively. The blue line is obtained by the EAMCM method. The time is in dimensionless scale.

Table 6 The number of evaluations of model equations

Conclusions

We extend the applicability of the adaptive direct-decoupled algorithm for ODE models to DDE models and include the implementation of automatic differentiation technique among it. The most attractive feature of the EAMCM program is minimal user intervention that can reduce the human effort required for solving the dynamic sensitivities of complex biological systems and reduce the number of human errors introduced. EAMCM requires the user to supply only the model equations at run-time to compute dynamic sensitivities of DDE models. The evaluation of sensitivity equations is done automatically by automatic differentiation technique along with the inevitable evaluation of model equations. The computations of partial derivatives and values of model equations simultaneously induce less overhead cost of computer time. The exact accuracy of the computed derivatives is achieved by the property of automatic differentiation. By compared with direct-coupled methods in theory, the adaptive direct-decoupled EAMCM algorithm is efficient, accurate, and easy to use for end users without programming background to do dynamic sensitivity analysis on complex biological systems with time-delays.

We illustrate the use of the EAMCM program in the sensitivity analysis of two DDE models: the cardiovascular control system and the TNF-α signal transduction network. The parameters for sympathetical and vagal control of heart rates are identified as key parameters in the cardiovascular control system. From the symmetry of dynamic effects of sympathetical and vagal control on heart rate obtained by sensitivity analysis, it reflects the sympathovagal balance in physiology. The TNF-α signal transduction network is a more complicated system than the first model and symbolic differentiation is unaffordable in this case to obtain the sensitivity equations. By using the EAMCM program, users can provide the model equations only for solving the dynamic sensitivities of the model. The formation of survival and death complexes are identified as the key reactions for the fragmentation of DNA via sensitivity analysis. This result reveals that the interplay between the components of the survival and apoptosis pathways plays an important role in the TNF-α signal transduction network.

Methods

Delay differential equations (DDEs) arise in either natural or technological control problems for a large and important class of dynamical systems. This type of dynamical system now occupies a place of central importance in all areas of science and particularly in the biological sciences [45]. There are various kinds of delay differential equations. Here, we focus on equations with fixed, discrete delays, namely those of the form

d x d t = f ( x ( t ) , x ( t τ 1 ) , x ( t τ 2 ) , ... , x ( t τ r ) ; θ ) ,
(3)

where x(t) ∈ ℝnis a vector of state variables, θ ∈ ℝpis a vector of parameters, τ i are positive time-delays, and r is the number of multiple delays. DDE models are similar to ODE models, but their evolution involves past values of the state variables. When giving initial conditions for ODE systems, we only need to specify the initial values of the state and input variables. In order to solve DDE systems, we have to look back to earlier values of x at every time step. Therefore, it is necessary to provide an initial function to specify the value of the solution before time t = 0. This function has to cover a period at least as long as the longest delay since we look back in time that far.

DDE solver

Most DDEs do not have analytic solutions, so it is generally necessary to resort to numerical methods. We have presented an adaptive modified collocation method (AMCM) for computing the solution of autonomous ODE systems [21]. This method is easy to extend to compute the solution of simple scale DDE systems. To simplify discussion, we assume the DDE model consists of a set of DDEs with a single delay and expressed as

d x d t = f ( x ( t ) , x ( t τ ) ; θ ) ,
(4)

where the delay τ is a positive constant. The initial function x(t) defined on the interval [-τ, 0] is set to x(0). Equation (4) can be reduced to ODEs by introducing a new input variable y for each delayed variablen x(t -τ) as

y ( t ) = { x ( 0 ) if t τ , x ( t τ ) if t > τ ,

and can be solved by our ODE solver in the AMCM. The AMCM algorithm with piecewise linear polynomials as the shape functions solves the ODEs transformed from equation (4) for each subinterval [tj-1, t j ], ti-1tj-1<t j t i by

x ( t j ) = x ( t j 1 ) + 1 2 η j { f ( x ( t j ) , y ( t j ) ; θ ) + f ( x ( t j 1 ) , y ( t j 1 ) ; θ ) } ,
(5)

where η j is the step size in time t j . The adaptive ODE solver in the AMCM controls the step size automatically. The earlier values of x defined or computed on the interval [t - τ, t] have to be stored for y at every computation time t. Due to the automatic step size control, the solution at time t - τ may be not computed by the AMCM. To solve this problem, interpolation is used to generate the solution for the input variable y as follows:

y ( t ) = x ( t τ ) = x ( t a ) + t τ t a t a + 1 t a [ x ( t a + 1 ) x ( t a ) ] , t a < t τ < t a + 1 ,
(6)

where t a is the time point that x(t a ) has been computed, ta+1is the next time point, and the step size ta+1- t a is determined by the AMCM automatically.

Dynamic sensitivity analysis

For a model described by equation (4), the absolute parameter sensitivity s(x i , θ j ) of dependent variable x i x with respect to a change in parameter θ j θ is defined as

s ( x i , θ j ) = lim Δ θ j 0 x i ( t ; θ j + Δ θ j ) x i ( t ; θ j ) Δ θ j = x i ( t ; θ ) θ j ,
(7)

where x i (t; θ j + Δθ j ) is the ithcomponent of the solution of equation (4) with a change Δθ j on the jthparameter and the others fixed. The absolute parameter sensitivity s(x i , θ j ) is also defined as the first-order local sensitivity of x i with respect to θ j [46]. The term local refers to the fact that the value of s(x i , θ j ) depends on the given set of values for the parameters θ. Under the assumption that the system responds linearly for small perturbations, s(x i , θ j ) measures the ratio between the effect on x i and the variation of θ j . It is useful to consider the ratio between the relative effect on the output and the relative variation of a parameter when comparing different parameter sensitivities with respect to different parameters. The relative parameter sensitivity S(x i , θ j ) of x i with respect to θ j , a dimensionless quantity, is defined as

S ( x i , θ j ) = ln x i ( t ; θ ) ln θ j = θ j x i s ( x i , θ j ) .
(8)

Sometimes the use of relative parameter sensitivities has the difficulty of numerical instability caused by the division by zero when x i approaching zero. To address this problem, the semi-relative parameter sensitivity S ˜ ( x i , θ j ) of x i with respect to θ j is used and defined as

S ˜ ( x i , θ j ) = θ j s ( x i , θ j ) .
(9)

Once the local sensitivity is known, the calculation of the relative sensitivity is straightforward. For brevity's sake, we limit our explanation on the absolute sensitivity only below. For an autonomous system describing by equation (4), the sensitivity equations are given as

d s ( x i ( t ) , θ j ) d t = k = 1 n f i x k ( t ) s ( x k ( t ) , θ j ) + k = 1 n f i x k ( t τ ) s ( x k ( t τ ) , θ j ) + f i θ j ,
(10)

where f i is the ithelement of f . The AMCM algorithm is extended to compute the solution of equations (10), i.e., dynamic sensitivities of DDE systems. When the solution of a DDE system is obtained, the absolute dynamic sensitivity of x i with respect to θ j is computed by

s ( x i ( t l ) , θ j ) = s ( x i ( t l 1 ) , θ j ) + 1 2 η l { k = 1 n f i ( t l ) x k ( t l ) s ( x k ( t l ) , θ j ) + k = 1 n f i ( t l ) x k ( t l τ ) s ( x k ( t l τ ) , θ j ) + f i ( t l ) θ j } + 1 2 η l { k = 1 n f i ( t l 1 ) x k ( t l 1 ) s ( x k ( t l 1 ) , θ j ) + k = 1 n f i ( t l 1 ) x k ( t l 1 τ ) s ( x k ( t l 1 τ ) , θ j ) + f i ( t l 1 ) θ j } ,
(11)

where η l is the step size in time t l . Same as the AMCM algorithm, the extended algorithm (EAMCM) determines the step size automatically when computing the absolute dynamic sensitivity of x i .

The dynamic sensitivity in equation (8) reflects a relative relationship between the magnitudes of a parameter and a state variable at any time. We can define the integral value for the relative dynamic sensitivity over the whole time as a measure for ranking all sensitivities to identify the bottleneck reactions of the system. The time-averaged relative sensitivity is therefore defined as:

S ¯ i j = 1 t f 0 t f | S ( x i , θ j ) | d t ,
(12)

where t f is the final time.

Automatic differentiation

The main challenge in computing the solution of equation (10) is the evaluation of partial derivatives of f with respect to all state variables x, delay variables x(t - τ), and system parameters θ. One way to obtain the partial derivatives is to use symbolic differentiation tools, such as Maple and Mathematica, to perform the algebra of the differentiation. The explicit expression of the partial derivatives of f can be generated automatically. This is very useful because it saves the human effort and avoids the human errors in the analytical differentiation process. In principle, this approach gives exact values of the partial derivatives of f at the expense of high computation cost. Symbolic differentiation tools always generate lengthy formulas containing many common subexpressions that require considerable computation to evaluate. If only the values of the partial derivatives rather than the explicit expressions of the partial derivatives of f are needed, the simplest and common used approach is the numerical differentiation by finite difference approximation

f x = lim Δ x 0 f ( x + Δ x ) f ( x ) Δ x .
(13)

The main drawback of this approach is that the accuracy is hard to analyze. Another approach which can be used to evaluate partial derivatives is automatic differentiation. Automatic differentiation is a numerical computation of exact values of the partial derivatives without generating a formula for the partial derivatives and is much more effcient than symbolic differentiation. This approach is based on the fact that every function, no matter how complicated, can be represented by a well-formed expression that is a finite combination of elementary arithmetic operators, such as addition (+), subtraction (-), multiplication (*), division (/), and power (^), primitives, such as a constant or a state variable, and intrinsic functions, such as sin, cos, etc. Each elementary arithmetic operation involves at most two operands which either have been computed in a previous step or are primitives. The chain rule can be applied to each of elementary arithmetic operators as follows:

h ( o 1 , o 2 ) x = h o 1 o 1 x + h o 2 o 2 x ,
(14)

where h indicates the function for each elementary arithmetic operator and o i is the ithoperand. The derivative of each primitive and each intrinsic function would have to know. By applying the chain rule recursively to each elementary arithmetic operator and each intrinsic function, the partial derivatives of a function can be computed exactly and in a completely mechanical fashion.

EAMCM algorithm

The proposed algorithm EAMCM is shown as follows:

Algorithm EAMCM

Input:

  1. 1.

    A set of n delay differential equations x ˙ = f (x, y) with n dependent variables x i , i = 1, ..., n and m time-delay variables y i x j (t - τ), i = 1, ..., m, j ∈ [1, n].

  2. 2.

    Two order sets x0 = {x i (0)|i = 1, ..., n} and Φ0 = {ϕ ij (0)|i = 1, ..., n, j = 1, ..., m}.

  3. 3.

    An order set T = {t1, ..., t k } of sampling points, t i , 1 ≤ ik is the sampling time of the solution of each DDE, k is the number of sampling points.

  4. 4.

    A tolerance ε.

Output: The dynamic sensitivities of dependent variables at each sampling time.

  • For each sampling time t i in T.

  1. 1.

    η j t i - ti-1, d t ← 0, xcx(ti-1), ΦcΦ(ti-1).

  2. 2.

    Repeat the following steps until d t = t i - ti-1.

  3. (a)

    xpxc , ypx(ti-1+ d i - τ), ΦpΦc.

  4. (b)

    If ti-1>τ , then ΦdΦ(ti-1+ d i - τ ); otherwise, ΦdΦ0.

  5. (c)

    Evaluate the Jacobin matrix by automatic differentiation A [ f ( x p , y p ) x , f ( x p , y p ) y ] .

  6. (d)

    Compute the upper bound μ of the value of ||A||2 by n ( m + n ) A Δ , A Δ max i , j | a i j | .

  7. (e)

    If μ * ε ≥ 1, it means the DDEs are stiff, then exit this algorithm.

  8. (f)

    If μ * η j > 1, then η j ← 0.9/μ.

  9. (g)

    Call the Iteration algorithm to compute the value of xcstepped forward η j from xp.

  10. (h)

    Call the IterationOfSensitivity algorithm to compute the value of the sensitivity matrix Φcstepped forward η j from Φp.

  11. (i)

    If the Iteration and IterationOfSensitivity algorithms succeed in computing xcand Φcrespectively, then d t d t + η j and η j t i - ti-1-d t ; otherwise exist this algorithm.

  12. 3.

    Save the value of the sensitivity matrix Φcas Φ(t i ).

  • return Φ(t i ), i = 1, ..., k.

End of Algorithm EAMCM

Algorithm Iteration

Input:

  1. 1.

    A set of n delay differential equations x ˙ = f (x, y), y(t) ≡ x(t - τ ).

  2. 2.

    x(t), y(t), η j , and the iteration limitation.

Output: x(t + η j ).

  1. 1.

    Evaluate the value of f (x(t), y(t)).

  2. 2.

    x(t + η j ) ← x(t) + f (x(t), y(t)) * η j .

  3. 3.

    y(t + η j ) ← x(t + η j - τ).

  4. 4.

    Repeat the following steps until the iteration limitation is reached or the value of x(t+η t ) is convergent.

  5. (a)

    Evaluate the value of f (x(t + η j ), y(t + η j )).

  6. (b)

    x(t + η j ) ← x(t) + 0.5 * η j * (f (x(t), y(t)) + f (x(t + η j ), y(t + η j ))).

  7. 5.

    If the iteration limitation is reached, then exit this algorithm; otherwise, return x(t + η j ).

End of Algorithm Iteration

Algorithm IterationOfSensitivity

Input:

  1. 1.

    A set of n delay differential equations x ˙ = f (x, y), y(t) ≡ x(t - τ).

  2. 2.

    η j and the iteration limitation.

  3. 3.

    Two vectors of dependent variables x(t) at time t and x(t + η j ) at time t + η j .

  4. 4.

    Two sensitivity matrices Φ(x(t)) and Φ(y(t)).

Output: The sensitivity matrix Φ(x(t + η j )).

  1. 1.

    Evaluate A = f ( x ( t ) , y ( t ) ) x , B = f ( x ( t ) , y ( t ) ) y , and C = f ( x ( t ) , y ( t ) ) θ by automatic differentiation.

  2. 2.

    Evaluate the derivative (x(t)) = (x(t)) + (y(t)) + C.

  3. 3.

    Φ(x(t + η j )) = Φ(x(t)) + (x(t)) * η j .

  4. 4.

    Evaluate A = f ( x ( t + η j ) , y ( t + η j ) ) x , B = f ( x ( t + η j ) , y ( t + η j ) ) y , and C = f ( x ( t + η j ) , y ( t + η j ) ) θ by automatic differentiation.

  5. 5.

    Repeat the following steps until the iteration limitation is reached or the value of Φ(x(t + η j )) is convergent.

  6. (a)

    Evaluate the derivative Φ(x(t + η j )) = (x(t + η j )) + (y(t + η j )) + C.

  7. (b)

    Evaluate the new value of Φ(x(t + η j )) by

    Φ ( x ( t + η j ) ) = Φ ( x ( t ) ) + 0. 5 η j ( Φ ˙ ( x ( t + η j ) ) + Φ ˙ ( x ( t ) ) ) .
  8. 6.

    If the iteration limitation is reached, then exit this algorithm; otherwise, return Φ(x(t + η j )).

End of Algorithm IterationOfSensitivity