An integrable Hamiltonian variant of the two species Lotka–Volterra (LV) predator–prey model, shortly referred to as geometric mean (GM) predator–prey model, has been recently introduced. Here, we perform a systematic comparison of the dynamics underlying the GM and LV models. Though the two models share several common features, the geometric mean dynamics exhibits a few peculiarities of interest. The structure of the scaled-population variables reduces to the simple harmonic oscillator with dimensionless natural time varying as with . We found that the natural timescales of the evolution dynamics are amplified in the GM model compared to the LV one. Since the GM dynamics is ruled by the inter-species rather than the intra-species coefficients, the proposed model might be of interest when the interactions among the species, rather than the individual demography, rule the evolution of the ecosystems.
Despite its extreme simplicity, the Lotka–Volterra (LV) predator–prey model does not admit a closed-form analytical solution, and for this reason, numerical integration methods are usually adopted to apply it to various fields of science. The present paper presents a model for describing a new predator–prey interaction called the geometric mean (GM) model. The GM model shares the broad features of the standard LV one and, at the same time, offers the advantage of possessing closed-form exact analytical solutions. The GM model allows the analysis of predator–prey dynamics through a Hamiltonian approach and may be described by the well-established physics of harmonic oscillators.
I. INTRODUCTION
The Lotka–Volterra (LV) predator–prey model, independently proposed in Refs. 1 and 2, and its several variants put forward afterward3,4 have been widely used and still represent a paradigm5 in the nonlinear statistical analysis of population dynamics, with applications transcending the field of ecology,6–17 as, for example, in plasma physics,18 machine learning,19 and astrophysics.20 Population dynamics analysis based on the LV description is increasingly gaining importance in strategic planning and policy decision-making in relation to sustainability issues.
A Hamiltonian predator–prey model, shortly referred to as geometric mean (GM) predator–prey model, capturing the main features of the standard LV model and admitting exact solutions in terms of elementary functions has been recently proposed.23 In the GM model, the growth and death rates are proportional to the square root of the populations rather than the populations themselves . Similar behavior is also assumed for the predating rate on prey whose food supply depends on the square root of the prey population. The interaction between predator and prey populations is described by the geometric mean of the two populations , implying that the growth rate of the predator population are and , respectively.
This work is aimed at comparing the geometrical mean model to the standard Lotka–Volterra model by numerically solving the differential equations and highlighting similarities and differences in the underlying dynamics. In particular, we show that the evolution dynamics’ timescale of the LV model is amplified in the GM model, which is driven by the inter-species rather than the intra-species interactions. Hence, while the characteristic time of the LV dynamics simply depends on the predator mortality, the characteristic time of the GM model depends on the joint effect of the growth rate of the predator population and the death rate of the prey population. The difference is summarized in , the only parameter which appears in the rescaled GM and LV models. While in the latter depends only on the demographic parameters, in the GM model, depends also on the interaction strength between the populations. These results open new scenarios in the modeling of population dynamics to analytically describe the predator–prey time evolution when the dynamics is driven by the interaction between the two species rather than by the demographic features of each species. As stated above, the main purpose of this work is to highlight the structural differences in the mean field description of the two models hence the current analysis is kept limited to the deterministic forms of the prey–predator dynamic equations. However, one should bear in mind that real-world ecosystems are featured by stochastic rather than deterministic interactions as already suggested in the early literature dealing with oscillatory phenomena in ecological and biological networks24,25 and still under active scrutiny. Additive and multiplicative noise sources affecting the interaction processes have been considered in Refs. 26–29, and 30 The onset of the oscillatory behavior and its offset have been related to the fluctuating interactions about the network entries accounted for in the framework of random matrix approaches.31–36 The eigenvalue spectrum between arbitrary pairs of the random matrix elements is investigated to ascertain the situations when off diagonal or circular other than diagonal elements might impact the system stability. Overall, the effects of fluctuations, in particular, those related to the inter-species terms (off diagonal entries of the random matrices) are highly relevant to the aging and extinction of a large class of interacting systems. Hence, though not included in the present discussion, one could expect that fluctuations emerging from asymmetric terms might play an important role in the geometric mean model where the inter-species dominate over the intra-species interactions.
The paper is organized as follows. In Sec. II, the main equations describing the geometric mean (GM) predator–prey dynamics model and its scaled form are briefly recalled. In Sec. III, we perform a comparative analysis from a computational viewpoint and discuss the outcomes of the analytical solutions against numerical ones. Then, we compare the two dynamics by analyzing the respective Hamiltonians. In Sec. IV, a few remarks on the outcomes and implications of the novel predator–prey model beyond current work are addressed.
II. GEOMETRIC MEAN PREDATOR–PREY MODEL (GM MODEL)
The functions and in Eqs. (20a) and (20b) are the analytical solutions of the GM model.23 In Sec. III, the behavior of the geometric mean predator–prey model to the standard LV will be compared. As the LV model does not admit an analytical solution, various computational steps are required for numerically evaluate the related differential equations. These issues will be addressed in Sec. III.
III. COMPARISON OF THE GEOMETRIC MEAN (GM) AND LOTKA–VOLTERRA (LV) PREDATOR–PREY DYNAMICS
The first step to numerically solve the LV differential equation system is concerned with the choice of the numerical method to be adopted among the several available approaches. We consider seven different numerical methods for the solution of ordinary differential equation (ODE) well established in the literature.38 The methods are labeled by the acronyms: ODE-15-S, ODE-23, ODE-23-S, ODE-23-T, ODE-23-TB, ODE-45, and ODE-113. In the acronyms, the figures refer to the order of accuracy of the numerical integration scheme, while capital letters refer to performed upgrades in these schemes. The ODE-15-S method is a variable-order (from first to fifth) numerical solver widely employed for solving differential-algebraic equations and stiff ODEs.39 The ODE-23 is a low-order integration method commonly used to solve nonstiff ODEs based on the second- and third-order Runge–Kutta (RK) technique, also known as the Bogacki–Shampine scheme. The ODE-23-S is an alternative to the classical ODE-23 approach, which is used in solving stiff ODEs based on a modified Rosenbrock triple scheme related to implicit RK methods.39 The ODE-23-T and ODE-23-TB integration methods are widely employed to solve stiff ODEs based on an implicit RK formula using the trapezoidal rule for approximating numerical computing of a definite integral. In the ODE-23-TB case, the numerical calculation of the definite integral is carried out with a second-order backward differentiation formula.39 The ODE-45 is a medium-order integration method widely employed to solve nonstiff ODEs based on the fourth and fifth-order RK method, also known as the Dormand–Prince scheme. Finally, the last one is a high-precision solver for solving nonstiff differential equations,39 namely, the ODE-113.
To address the accuracy issues with the above integration schemes in solving the GM model evolution Eqs. (8a) and (8b), we consider 5000 time samples with , and . Then, we compare the obtained numerical solutions with the analytical ones given by Eqs. (20a) and (20b). To quantify the accuracy of each numerical result, we use the normalized root mean square (NRMS) defined through , where and are the exact analytical and numerical solutions, respectively. The range of NRMS values varies from 0 (minimum error) to (maximum error). The NRMS and the runtime for the numerical simulations are summarized in Table I. We notice that no numerical method perfectly solves the system of ODE under analysis. In addition, the fastest method (ODE-23-TB) performs with a runtime 51.40 slower compared to the analytical solution. The most accurate numerical integration method (ODE-113) solves the novel predator–prey equations with a runtime 138.44 times slower than the exact analytical solution. The numerical experiments confirm that solving ODEs is time-consuming, making it difficult to use them to deal with real issues such as, for instance, modern big data analysis problems. Thus, simulating population dynamics by solving ODEs entirely depends on a good trade-off between runtime and tolerated numerical errors. These problems do not exist when the analytical solution is known.
. | . | NRMS . | |
---|---|---|---|
Numerical . | Runtime . | . | . |
method . | 1 runtime = 2.5 ms . | X1(T) . | X2(T) . |
Analytical solution | 1.00 | 0.0000 | 0.0000 |
ODE-23-TB | 51.40 | 0.0070 | 0.0069 |
ODE-23-S | 54.41 | 0.0068 | 0.0059 |
ODE-23 | 65.91 | 0.0024 | 0.0026 |
ODE-23-T | 67.54 | 0.0076 | 0.0074 |
ODE-45 | 89.20 | 0.0039 | 0.0042 |
ODE-15-S | 132.18 | 0.0032 | 0.0031 |
ODE-113 | 138.44 | 0.0005 | 0.0005 |
. | . | NRMS . | |
---|---|---|---|
Numerical . | Runtime . | . | . |
method . | 1 runtime = 2.5 ms . | X1(T) . | X2(T) . |
Analytical solution | 1.00 | 0.0000 | 0.0000 |
ODE-23-TB | 51.40 | 0.0070 | 0.0069 |
ODE-23-S | 54.41 | 0.0068 | 0.0059 |
ODE-23 | 65.91 | 0.0024 | 0.0026 |
ODE-23-T | 67.54 | 0.0076 | 0.0074 |
ODE-45 | 89.20 | 0.0039 | 0.0042 |
ODE-15-S | 132.18 | 0.0032 | 0.0031 |
ODE-113 | 138.44 | 0.0005 | 0.0005 |
In this section, we discuss the similarities and differences between the dynamics of the standard LV and the GM models. It is worth remembering that both dynamics follow a population growth and decline cycle of predators and prey, as discussed in Sec. II.*** However, the standard LV population model is exponential, while the GM model’s growth rate is quadratic. We simply eliminate the iteration term between the two species to analyze these rates. In this regard, from Eqs. (3a) and (3b), note that and give the growth rates associated with the standard model, leading to and , where denotes the proportionality and and proportionality constants. At the same time, from Eqs. (8a) and (8b), we notice that and give the growth rates associated with the novel predator–prey model, leading to and for . A significant difference between the models is the impact of the predator–prey pair on each other. To interpret the behavior of the predation rate, we consider only the first terms of the two predator–prey models, i.e., and , in which the cases and represent the predator–prey interaction term related to the standard LV and GM models, respectively. In this regime, a monotonically growing population of predators is expected while the prey population decreases until extinction. Such a regime is described so that the scaled predator populations are given by , with , in both cases, while the scaled prey populations are, respectively, for and for in standard and new dynamics, where . The standard LV model predicts infinite dynamics over time, even after prey extinction, i.e., . On the other hand, predators grow following a logistic curve , in which their population remains constant after a lack of food (prey extinction), i.e., . In contrast, the GM model predicts a cessation in predation dynamics when the prey population is extinct at time . As a result of the resistance of the environment, represented in this instance by the absence of prey, the GM model suggests the extinction of predation dynamics when and .
Figure 1 shows the time evolution of the scaled predator (purple) and prey (red) populations as a function of the scaled time under the same initial conditions ( and ) for the LV and the GM model. Solid curves refer to , while dashed lines refer to . A small change in the -value from to noticeably affect the predator–prey dynamics. Since the oscillation frequency of the standard LV system is unknown, its dynamics may be explored by evaluating a Jacobian matrix40 in an equilibrium point (that is, through a linearization process using first-order partial derivatives). When the standard LV model is scaled according to Eqs. (2a) and (2b), the oscillation frequency, in first-order approximation, around the equilibrium point ensues . At the same time, the oscillation frequency associated with the GM model in its scaled version is constant with a period of , as expected due to the factor in the arguments of the sines and cosines functions in Eqs. (20a) and (20b). Such contrasts are noteworthy when we compare the predator–prey dynamics of the two models for different r-values for the GM model, as depicted in Fig. 2.
To quantitatively compare the fluctuations in population sizes shown in Fig. 2, we consider the Pearson correlation coefficient ( ) as a similarity metric. In this regard, the Pearson coefficient statistically measures the degree of the linear relationship between two time series to assess the similarity between their fluctuations over time. This parameter ranges from 1 to 1, in which a value close to 1 indicates a systematic association between changes in the fluctuations of the two signals, i.e., a strong positive correlation. On the other hand, a value close to 1 indicates that the amplitudes of the fluctuations tend to vary in opposite directions, i.e., a strong negative correlation. A value close to 0 indicates the absence of a systematic relationship between the fluctuations of the two signals, i.e., a weak correlation (or null when ). We summarize in Table II the -values between the colored and black curves depicted in Fig. 2. In all cases, Pearson coefficients assume values close to zero, indicating that the predator–prey models predict different fluctuations between them.
. | . | rGM = rLV . | rGM = 1.1 rLV . | rGM = 0.9 rLV . |
---|---|---|---|---|
X1 | rLV = 0.8 | −0.0256 | −0.0283 | −0.0224 |
rLV = 1.2 | ||||
X2 | rLV = 0.8 | −0.0524 | −0.0389 | −0.0659 |
rLV = 1.2 | −0.0117 | −0.0347 |
. | . | rGM = rLV . | rGM = 1.1 rLV . | rGM = 0.9 rLV . |
---|---|---|---|---|
X1 | rLV = 0.8 | −0.0256 | −0.0283 | −0.0224 |
rLV = 1.2 | ||||
X2 | rLV = 0.8 | −0.0524 | −0.0389 | −0.0659 |
rLV = 1.2 | −0.0117 | −0.0347 |
Figure 3 reports the predator–prey trajectories with initial conditions and , and (orange) and (blue), for (a) the standard LV model described by Eqs. (3a) and (3b) and (b) the GM model described by Eqs. (8a) and (8b). The black arrows point to the direction of the increasing scaled time. It is remarkable that the frequency of the evolution cycles is different for the two models. While in the standard LV model the frequency is a function of the parameter , in the GM model, it is a constant . By considering and , we notice that the GM model predicts a time evolution with population sizes more prominent than those predicted by the LV model for (represented in Fig. 3 by the case ; depicted by the blue lines) and smaller when (represented in Fig. 3 by the case ; depicted by the orange lines). This feature is because the -parameter governs the insertion of energy, associated with environmental aspects that promote prey population growth, into the predator–prey scaled system. Indeed, as the prey and predator populations initiate to interact, their populations increase when , since the prey scaled-population variation rate ( ) is positive, which induces an increase in the first term of Eqs. (3a) and (8b), leaving it to be more significant than the second term of these equations, conducting to the positivity of the predator scaled-population variation rate ( ). When , the prey scaled-population variation rate, at the commencement of the dynamics, is less than zero, causing a decline of the prey population, which in turn induces the negativity of the predator scaled-population variation rate; therefore, both populations decrease in this regime at the beginning of the predator–prey iteration, as depicted by the orange lines in Fig. 3.
Figure 4 presents the phase portrait of the two models to assess the effect of the initial conditions on the predator-predator dynamics. The colored lines represent the phase plane trajectories corresponding to and different values of the Hamiltonian (a) Eq. (4) for the standard LV model and (b) Eq. (9) for the GM model. The black dot represents the value of the predator and prey populations whose minimum Hamilton value is reached, i.e., when and in the LV model and in the GM model, respectively. In both dynamics, the phase portraits exhibit closed trajectories that represent the possible population dynamics of predator and prey species. Although common patterns are observed, note that the minimum energy points (black dot in Fig. 4) are positioned differently along the -axis; they can be obtained in the steady state from Eqs. (3) and (8) for the LV and GM models, respectively. Such equilibrium points occur when in both dynamics, but it ensues for different values of , being in the LV case and in the GM case. The existence of this equilibrium point suggests that if both populations are extinct, they will remain extinct until an outside factor can change that.4 Also, predator and prey populations’ maximum and minimum possible values differ in both dynamics following Eq. (5) for the LV model and Eq. (12) for the GM dynamics.
Figure 6 illustrates the orbits, when the -parameter ranges from 0.6 to 1.5, in the phase space for the two models [panel (a) for the LV model and (b) for the GM model] in the special case where the two nodes collapse in a unique one, i.e., . This node is given by and , for the LV and the GM model, respectively. For the orbits on the right-hand side of the node, corresponding to for the GM model and for the LV model, the maximum predator and prey populations are increasing functions of the -parameter in both the models. The minimum prey population is a decreasing function of the -parameter, while the minimum predator population does not vary with the -parameter and assumes the value . For the orbits on the left-hand side of the node, corresponding to for the GM model and for the LV model, the maximum predator population remains fixed at the value , while the maximum prey population is a decreasing function of the -parameter. The minimum predator and prey populations are increasing functions of the -parameter. Although the GM model predicts a dynamic with larger predator–prey populations than the LV one for the same -value (prey per capita growth rate), both exhibit stable limits in the phase portrait even when the initial conditions coincide with the equilibrium point ( in both models, and for the LV and GM models, respectively), except for the case .
Figure 7 shows the contour plot under surface basemap representing the two models’ Hamiltonian from a three-dimensional perspective for , , and . The left column refers to the standard LV model, while the right one refers to the novel predator–prey model. The region annotated with colors closest to dark red (representative of the smallest amplitudes among the H-values) is centered on the equilibrium point for the standard LV model and for the GM model. From a visual inspection, the similarities between the Hamiltonians are noticeable, although they have different mathematical expressions. When , it is worth noting that both population models predict rapid predator growth [Figs. 7(a) and 7(b)], while in the case of , the prey population’s growth is drastically impacted, as depicted in Figs. 7(e) and 7(f). In other words, the -parameter directly influences which species dominate the energy content of the predator–prey dynamics. When takes on the value of , the 3D representation of the Hamiltonians predicts higher energies in the extreme populations [Figs. 7(c) and 7(d)]. Clearly, the -parameter impacts the morphology of the H-surface and then of the phase-space orbits.
IV. DISCUSSION AND CONCLUSION
A comparative analysis of the standard LV model and the GM predator–prey dynamics recently introduced in Ref. 23 has been performed. The GM model is integrable and its closed-form solution assumes an analytical expression involving standard trigonometric cyclic functions. The expression of the oscillation frequency is obtained and only depends on the interaction coefficients, i.e., . These results are related to the particular forms of the demographic (natality and mortality) rates and the interaction between the predator and prey populations. For the comparison, the solution of the LV model has been obtained by adopting the standard numerical integration techniques available in the literature. It is shown that the GM model and the LV one exhibit the same main features despite being based on different dynamics.
To the purpose of better understanding the mechanism underlying the LV dynamics, it can be observed that the LV model foresees two types of growth and decrease for each population. The rates of decrease of predators and growth of preys depend linearly on the two populations involved. Conversely, the growth rate of predators and the rate of decrease of prey are non-linear functions that depend on the product of the two populations. When only the two linear rates are present in the dynamics, they induce an exponential decrease for the predators and an exponential growth for the preys in the system. In Ref. 41, a limiting case was considered with only the non-linear interaction between the two populations, and it was demonstrated that the dynamics of the system is subject to a saturation of the two populations described by the logistic equation. The predators grow and the preys decrease, asymptotically reaching their limit values. It can, therefore, be concluded that the LV dynamics turns out to be a combination of a linear and a logistic dynamics. The combination of the two integrable dynamics generates the non-integrable LV dynamics. This type of analysis can also be applied to the GM model23 to better understand its underlying dynamics.
A second difference is that while in the LV model, the duration of the phenomenon is infinite; in the GM model, the number of predators decreases non-linearly and the dynamical process evolves within a finite time , i.e., when their number becomes zero due to their mortality. The preys instead continue to grow with a law that asymptotically becomes linear instead of exponential as in the case of the LV model.
As in the LV model, the overall dynamics of the GM model combines two partial dynamics. The first is the demographic dynamics that accounts for the mortality of predators and the birth rate of preys, while the second dynamics describes the phenomenon of predation accounting for the increase of predators and decrease of preys following the interaction between the two populations. The above partial dynamics are completely different in the two models considered here. The overall dynamics of both models result to be oscillating even if different in the two cases.
ACKNOWLEDGMENTS
This work received financial support from the TED4LAT project within the WIDERA initiative of the Horizon Europe Programme, Grant Agreement No. 101079206.
AUTHOR DECLARATIONS
Conflict of Interest
The authors have no conflicts to disclose.
Author Contributions
S. L. da Silva: Conceptualization (equal); Formal analysis (equal); Investigation (equal); Methodology (equal); Software (equal); Validation (equal); Visualization (equal); Writing – original draft (equal). A. Carbone: Conceptualization (equal); Formal analysis (equal); Funding acquisition (equal); Investigation (equal); Methodology (equal); Project administration (equal); Supervision (equal); Validation (equal); Visualization (equal); Writing – original draft (equal). G. Kaniadakis: Conceptualization (equal); Formal analysis (equal); Funding acquisition (equal); Investigation (equal); Methodology (equal); Project administration (equal); Supervision (equal); Validation (equal); Visualization (equal); Writing – original draft (equal).
DATA AVAILABILITY
Data sharing is not applicable to this article as no new data were created or analyzed in this study.