3.1. Visualization Of Different Types Of Dynamic Regimes
To calibrate the proposed method, we considered the problem of visualizing a set of artificially generated model curves implementing different types of dynamic regimes (see
Figure 6).
Within the framework of this study, we distinguish the following types of dynamical regimes, which are widespread in biological applications:
Stationary regimes, including transient modes;
Oscillatory regimes, including frequent and rare oscillations with the same magnitude, as well as damped or divergent oscillations with different frequency;
Exponential growth and exponential decline;
S-curves.
The result of visualization of the set of model curves processed by the developed algorithm is shown in
Figure 7.
We applied the developed algorithm using different step patterns - symmetric2, symmetric1, asymmetric, and rabinerJuang (
Figure 7A-D) to examine how the picture changes when the step pattern is changed. One can see that though
Figure 7A-D bear little resemblance to each other, the common patterns are preserved: the S-curves, the exponent, and descending to steady-state are grouped in a common half-plane. In addition, the divergent oscillations and the frequent sines are grouped together as well. The exception is when using the asymmetric step pattern, which, however, reflects clustering by dynamics type better than any of the presented step patterns.
Extremes are also an important feature of functions that affect the type of dynamics, so we considered how the approximations of the derivatives of the dynamics in question would be arranged in the principal coordinate space. The central difference was taken to approximate the first derivative:
The following graph was obtained approximating the first derivative by the central difference (see
Figure 8).
It is evident from
Figure 8A that the difference between stationary and oscillatory regimes corresponds to the directions given by the principal coordinates, which can be used as a criterion for such a classification. However, some more complex patterns cannot be traced using this representation.
In addition to extrema in terms of the type of dynamic regime of the function under study, its inflection points also play a role. Accordingly, we have also considered how the time series approximating the second derivatives of the original table-defined functions will be arranged in the principal coordinate space (see
Figure 8B).
The approximation of the second derivative can be derived from its definition - the ratio of the increment of the function to the increment of the argument, where the approximation of the first derivative acts as the function. This results in the following formula for approximating the second derivative:
The second derivative allows to highlight only different oscillatory regimes. Thus, it is possible to obtain some information about the classification of different dynamical regime, using finite differences to approximate the derivatives.
3.2. Parametric Sensitivity Analysis Of Dynamical Systems Models: Case Study of the Lotka-Volterra Model
The proposed method can also be used to analyze the parametric sensitivity of models of dynamical systems. The well-studied Lotka-Volterra model was chosen as a model to calibrate the developed method of parametric sensitivity analysis [
40,
41,
42], describing the interaction between two populations of the "predator-prey" type. We assume a closed habitat with two species, prey species and predators. We assume that animals do not migrate, and that there is plenty of food for the prey species.
In mathematical form, the proposed system looks as follows:
This model consists of two ODEs in which x is the density of victims, y is the density of predators, the rate of change in the density of the prey population, the rate of change in the density of the predators. The model also has four parameters: - coefficients reflecting interactions between populations and internal properties of individual populations:
𝑎 - coefficient of prey growth;
𝑏 - coefficient of loss of prey caused by interaction with predators;
𝑐 - coefficient of loss of predators;
𝑑 - coefficient of predator growth due to interaction with prey species.
This system has two singular points - one point of the "center" type, and one of the "saddle" type. With different initial data in the system, it is possible for only prey to survive, for both species to die out, or for them to coexist. In the latter case, there are usually fluctuations in species numbers, with fluctuations in predator numbers lagging behind fluctuations in prey numbers in the model. There is also a stationary solution, in which both populations are nonzero. Varying the parameter values with fixed initial data also leads to different outcomes from those described above.
Varying the parameters 𝑎,𝑏,𝑐,𝑑 from 0.25 to 1 with a step of 0.25, 256 numerical experiments were generated using the Scilab package. The initial conditions in each of the experiments are the same: victim population density is 5, predator population density is 2. The examples of the model solutions at the parameter sets 𝑎=0.25, 𝑏=0.5, 𝑐=0.25, 𝑑=0.5 and 𝑎=1, 𝑏=1, 𝑐=1, 𝑑=0.25 are shown in Figure S1. The obtained solutions are oscillations with different frequencies and magnitudes (see Figure S1 in Supplementary Materials). The results of the calculations were recorded in the form of time course data, which were used as a sample for further analysis. The average values of frequency and magnitude of oscillations were also calculated for each of the solutions. To obtain the frequencies, it was necessary to find the periods
(T) of oscillations through the search of extrema of the function, which is the solution of the model for each individual set of parameters, then the frequency is calculated as follows:
. To find the magnitudes of the solutions, the average values of each of the populations are calculated and then the distances from extrema to these values are calculated. The results are shown in
Figure 9 and
Figure 10.
Colour changes along the first principle coordinate (PCoA1), which is the most informative, can be traced for the parameters c (coefficient of loss of predators) and d (coefficient of growth of predators victims), which can be interpreted as higher sensitivity of the model to changes of these parameters in relation to the prey population (see
Table 1 for Pearson correlation coefficients reflecting the relationship between the parameters and the principal coordinates).
Table 1 shows that PCoA1 has the greatest dependence with parameters c and d, as the correlation coefficient of these parameters with PCoA1 is the highest by its absolute value. Similar results of analysis based on predator population density data are presented below (see
Figure 10).
The situation here is the opposite - the change in colours relative to the first principal coordinate can be traced for the parameters a (coefficient of prey growth) and b (coefficient of loss of prey), indicating that with respect to the dynamics of the predator population, this model is most sensitive to changes in these parameters.
The analysis of the correlation between the principal coordinates and the model parameters also shows that the parameters a and b have the highest correlation with PCoA1 (see
Table 2). We can also note that parameter d correlates quite strongly with GC PCoA2, which also accounts for a large part of the explained variance.
When using PCoA, which constructs the principal coordinate axes, the method does not directly provide information about what these axes stand for, since it only receives a distance matrix as an input. In order to understand the meaning of the principal coordinates, a correlation analysis of these axes with various characteristics of solutions, such as frequency and magnitude of oscillations, should be carried out. Pearson correlation coefficients were found for these characteristics with the projections of the corresponding solutions on the first two principal coordinates. The results are shown in
Figure 11 for prey and in
Figure 12 for predators respectively.
These scatter plots show a strong correlation of PCoA1 with the oscillation frequency, as well as the correlation of PCoA2 with the oscillation magnitude of prey density. That is, in general, PCoA1 can be interpreted as an axis describing the changes in the frequencies of the solutions for the prey population, and PCoA2 – as an axis showing the changes in the magnitudes of fluctuations of these solutions.
One can notice that in predators the situation is opposite. We see a strong relation of PCoA1 with the magnitude of oscillations, as well as a very strong relation of PCoA2 with the frequency of oscillations and a fairly strong relation with the magnitude. That is, in general, PCoA1 can be interpreted as an axis describing changes in the magnitudes of solutions for predator populations, and PCoA2 as an axis showing changes in both frequencies and magnitudes of predator populations simultaneously.
To assess whether the constructed method is capable of detecting solutions of different types, we added stationary solutions found at zero parameters to the analyzed sample: solution 257 was obtained at c=0, solution 258 at a=0, c=0, solution 259 at a=0, d=0, and solution 260 at a=0. The results obtained are shown in
Figure 13.
We see that for the dynamics of prey population the method was able to cluster the stationary and oscillatory solutions, but with some inaccuracies (see the 259th point, it does not lie in the cluster, although it is quite close to it). Consider the projections of predator population dynamics on the principal coordinate axes in the case when there are samples with zero parameters, i.e. stationary solutions. As we can see from
Figure 13B, stationary and nonstationary samples did not cluster in this case. The reason lies in the nature of an outlier (the 257th is the Lotka-Volterra model solution with parameters a=0.5,b=0.25,c=0,d=1). The difference of this solution from others having zero parameters is that it demonstrateshe very large magnitude of predator oscillations compared to the solutions 258-260, in which the magnitude of predators is close to zero. That is, for the predator population, the method primarily clusters the data by magnitude rather than by solution type, and, therefore, should be used with caution.