Abstract

The main objective of this paper is to describe and interpret an SIR (Susceptible-Infectious-Recovered) epidemic model though a logistic equation, which is parameterized by a Malthusian parameter and a carrying capacity parameter, both being time-varying, in general, and then to apply the model to the COVID-19 pandemic by using some recorded data. In particular, the Malthusian parameter is related to the growth rate of the infection solution while the carrying capacity is related to its maximum reachable value. The quotient of the absolute value of the Malthusian parameter and the carrying capacity fixes the transmission rate of the disease in the simplest version of the epidemic model. Therefore, the logistic version of the epidemics’ description is attractive since it offers an easy interpretation of the data evolution especially when the pandemic outbreaks. The SIR model includes recruitment, demography, and mortality parameters, and the total population minus the recovered population is not constant though time. This makes the current logistic equation to be time-varying. An estimation algorithm, which estimates the transmission rate through time from the discrete-time estimation of the parameters of the logistic equation, is proposed. The data are picked up at a set of samples which are either selected by the adaptive sampling law or allocated at constant intervals between consecutive samples. Numerical simulated examples are also discussed.

1. Introduction

Epidemic mathematical models under different formal frameworks are of major interest along the last years [1, 2]. Some of such models rely on the dynamic aspects of the disease evolution and are stated in terms of differential, difference, and differential/difference hybrid equations, dynamic systems, and/or control theory (so as to deal with vaccination and treatment intervention strategies) [318], computation tools [7], information theory, [1922], etc. On the contrary, some of the above invoked modelling techniques combine several analysis and design tools. See, for instance, [19, 20] and some references therein are related to designs, the optimality of the controls, and the use of fractional- order models. There are also epidemic models available which consider the spatial-temporal spread of the disease. For instance, several neighboring domains with diversity of populations are considered in [23] concerning the HIV/AIDS spread. It is considered that different levels of awareness are present in different groups which might affect, for instance, to the hardness of the actions to be taken for transmission prevention. In [24], a Latin hypercube sampling method is discussed to calculate relevant reproduction numbers from distributions of some relevant model-related parameters.

It can be pointed out that continuous-time models are widely used since they are more tractable mathematically than the discrete models while having a direct physical interpretation [25]. In particular, the positivity of the solution under nonnegative initial conditions can be proved from the differential system describing the model without the use of extradiscretization adjusting parameters. Furthermore, it is a direct task to pick up values from the solution at appropriate sampling points (for instance, daily or weekly) of the continuous-time solution of the model, provided that such an information is needed for storing statistic data or in order to decide the implementation of some vaccination or other alternative public intervention controls such as partial quarantines or confinements. On the contrary, the use of discrete models has been shown to be specifically useful in the context of dissemination of disease-related information such as its current state or evolution tendency, for instance, through social networks. That associated information can help to prevent or to reduce possible foreseen outbreaks [26].

A basic goal is to investigate and predict the evolution of infectious diseases as well as to focus on how the public interventions, for example, quarantines or vaccination and treatment controls can mitigate their outbreaks and uncontrolled propagations. See, for instance, [1, 2] and [11, 13, 15, 17, 18, 27, 28]. A beneficial effect of quarantine interventions on a part of a targeted subpopulation, in particular, either fractions or the susceptible subpopulation or fractions of the infectious one is their “removal” from its associate compartment. In this way, the most apparent effect in the disease evolution through time is a reinitialization of the corresponding trajectory solution under fewer numbers of contagious contacts. A second beneficial effect is that the disease transmission rate decreases to more moderate levels as a result of the reduction in the contagion contacts. Those concerns have been seen to be relevant concerning the evolution of the current COVID-19 pandemic. See, for instance, [2946] and some of the references therein. In particular, an SEIR model is proposed in [41] for the COVID-19 pandemic. Such a model includes delayed resusceptibility caused by the infection. Also, a kind of autoregressive model average model (ARMA), so-called an ARIMA model, for prediction of COVID-19 is presented and simulated in [42] for the data of several countries. The effects of different phases of quarantine actions in the values of the transmission rate are studied in [43], see also [46], for a comparative and exhaustive discussion of related simulated numerical results on the COVID-19 outbreak in Italy.

The related existing bibliography is abundant and very rich including a variety of epidemic models with several coupled subpopulations included as an elementary starting basis of the susceptible, the infectious, and the recovered ones in the simpler SIR epidemic models. Further generalizations lead to the so-called SEIR models which include the exposed subpopulation, that is, those who do not have external symptoms yet, as a new subpopulation. More complex models, such as SEIADR-type models, which include the asymptomatic infectious and the infective dead subpopulations, have been designed and analyzed, for instance, Ebola disease [15, 16].

On the contrary, it is well known that the celebrated logistic equation of Velhulst is a model of population growth which is parameterized by two constant parameters, namely, the Malthusian parameter and the carrying capacity, see, for instance, [47]. The main objective of this paper is to propose and to link a SIR (susceptible-infectious-recovered) with recruitment and demography to a proposed time-varying logistic equation parameterized by a time-varying carrying capacity and a time-varying Malthusian parameter and whose solution is attractive and of simple interpretation. The methodological analysis key point is to compare the current SIR epidemic model with eventual recruitment, demography, and disease-related mortality parameters to the so-called nominal (or reference) case, where those parameters are zeroed and, in addition, the recovered are considered constant being equal to their initial values along with the time interval of interest. The total reference population is also constant due to the absence of recruitment, demography, and disease-related mortality. It turns out that the above nominal logistic-type model can work efficiently along certain transient periods of time (of the order of weeks) when the infection is growing up very fast, but there are no still recovered subpopulation, and the total population does not vary significantly. The nominal case might be described, equivalently, by a time-invariant logistic equation which has a unique solution for the infectious depending on the initial conditions and on two constant (reference Malthusian and reference carrying capacity) parameters which depend on the transmission rate, the recovery rate, and the initial levels of total population and immune subpopulation. In particular, the Malthusian parameter quantifies the rate of either growth or decrease of the infection and the (infection) carrying capacity fixes the maximum level of such an infection along its growing time period (say, the maximum of the infectious subpopulation).

Then, a most complex current SIR model is described through the abovementioned time-varying logistic equation whose solution is characterized as that of the nominal one plus an error function which depends on the new added parameters (recruitment rate, demography rate, and disease-related mortality). A practical way of monitoring the time-varying logistic equation in a simple way is to reinitialize it by simple resetting of initial conditions, when necessary, and to keep its parameterization in operation along time intervals of appropriate moderate adaptive lengths before the next resetting. For each updated parameterization, the logistic equation is run as time-invariant until its next resetting. In this way, the current Malthusian parameter and carrying capacity are modelled by piecewise constant functions whose values are updated, in general, at a sequence of sampling instants subject, in general, to nonuniform intersample periods. Such periods are adapted to the infection variation so that the larger the infection variation, the smaller the intersample period.

The paper is organized as follows. Section 2 states the SIR (susceptible subpopulation S-infectious subpopulation I-recovered subpopulation R) epidemic model with population recruitment, demography, and disease mortality and establishes and proves its positivity and boundedness properties. Section 3 is split into several sections. The first one rewrites the model under the equivalent form of a time-varying logistic equation parameterized by a the Malthusian parameter, which defines the exponential order of the solution form, and a carrying capacity which is related to the maximum attainable infection level along its growing period. Both parameters are, in general, time-varying functions which are defined based on the primary model parameters and the values of the subpopulations through time. Section 3.2 discusses the description of a simplified version of the above epidemic model to the light of a time-invariant logistic equation parameterized by constant values of the Malthusian parameter and the carrying capacity. It also assumes that the increment of the total population over the recovered subpopulation remains constant. Such a time-invariant logistic equation is referred to as the nominal (or reference) logistic equation. The simplified version of the SIR model, rewritten equivalently as the nominal logistic equation, is recruitment, demography, and mortality free. Those simplifications are reasonable along periods lasting some months since the disease-associated mortality is usually small compared to the total population, while the recruitment and demography rates are also usually small related to the total population amounts along short periods of time compared with the species life expectation. An important motivating result of the problem approach is that the carrying capacity is the quotient between the absolute Malthusian parameter and the carrying capacity. In this way, the nominal logistic equation characterizes a constant disease transmission rate for the simplified SIR model of no public interventions of confinement or quarantine type is performed. In the same way, the current time-varying logistic equation establishes a time-varying disease transmission rate for the more complex model which also depends on such public interventions, in the case where they are performed. Section 3.3 obtains in a closed form the solution of the time-varying logistic equation related to the nominal one and computes also the worst-case of the error through time among both of them. It also discusses a technique to evaluate the current solution along with a set of samples which are updated through adaptive sampling laws which decrease the intersampling period as the infection variation between consecutive samples increases and vice versa. Finally, Section 3.4 gives a pseudocode algorithm to implement the above ideas to estimate the Malthusian and carrying capacity time-varying parameters from registered infection data on sequences of time instants. With those parameters, the time-carrying capacity is also sample-dependent calculated and its averaged value along the time period of each public intervention (quarantines, confinements, de-escalating postquarantine phases, or public intervention void) is also estimated. Section 4 is devoted to perform some numerical examples as well as to discuss the obtained results with special emphasis on the influences on the infection propagation of partial or total quarantines of some or all the subpopulations or de-escalating phases after quarantines. Model parameterizations with available recorded data related to the COVID-19 pandemic are used for the testing process and the related transmission rate obtained. Finally, Section 5 ends the paper. Some auxiliary calculations related to the estimations of the Malthusian parameter and the carrying capacity concerned with a relevant step of the estimation algorithm of Section 3 4 are given in Appendix A.

2. The SIR Epidemic Model and Its Positivity and Boundedness Properties

Consider the following SIR (susceptible S -infectious I-recovered R) epidemic model with demography:subject to arbitrary nonnegative finite initial conditions, i.e., , where is the disease transmission rate and are, respectively, the natural and disease-related mortality rates, and is the population recruitment rate. The total population is whose derivative with respect to time is obtained by summing-up (1)–(3):

Denote in the following , . The subsequent result relies on the positivity and boundedness of all the solution of (1)–(3) under any given finite nonnegative initial conditions.

Theorem 1. Model (1)–(3) is positive, in the sense that and globally stable, that is, the solutions of (1)–(3) are bounded for all time for any given finite nonnegative initial conditions. As a result, it holds that .

Proof. The solution of (2) is ; , since . Therefore, , for any given nonnegative initial conditions. On the contrary, since and are everywhere continuous (since it is everywhere time-differentiable), it is nonnegative until , for some , in the event that such a exists. However, by inspecting (1), one gets (even if the model is recruitment-free, i.e., if ). Then, . Therefore, no can exist such that . Therefore, for any given nonnegative initial conditions. On the contrary, the solution of (3) is nonnegative in any interval under any nonnegative initial conditions such that , but then so that no exists such that and . It has been proved that the solutions of (1)–(3) are always nonnegative for any given nonnegative initial conditions. The total population has, from (4), the following solution equation:so that one has, for any , thatso that, for any given finite , one has by using the mean value theorem that, for any strictly increasing sequence and some sequence ,so thatSince is continuous and finite, one concludes that , and under the same reasoning, one gets . Since is continuous, it cannot be unbounded on any finite time interval so that the above ultimate boundedness property as time tends to infinity also implies the boundedness of in .
For any nonnegative initial conditions and then is bounded. This implies from (5) thatOn the contrary, one has from (2) that the (empty or nonempty, connected, or nonconnected) real intervalhas a Lebesgue measure (zero if it is empty) and finite since otherwise, which contradicts the boundedness of according to (8). Then, the complementary set in iswhich has and, therefore, is bounded while cannot be unbounded since is continuous and has a finite Lebesgue measure. As a result, is bounded for any nonnegative initial conditions. Since and are bounded, thenand is bounded. The theorem has been fully proved.

3. The Epidemic Model in a Logistic Equation Form

3.1. “Ad hoc” Time-Varying Logistic Equation

Verhulst´s or logistic equation is a celebrated model of population growth which was proposed in 1838 by Pierre Verhulst (1804–1849). It can also be considered in an “ad-hoc” time-varying version to describe the epidemic model of the above section under a certain modification of the basic logistic equation after replacing in (2). Thus, one gets the following infectious solution with the contribution to its dynamics of the susceptible and recovered subpopulations:where , and

The subsequent result will be then used related to the interpretation of the epidemic models (1)–(3) as a time-varying logistic equation related to a nominal time-invariant one, in the case that for all .

Proposition 1. The following results hold for a normalized model (1)–(3) at the initial time, that is, if (i)The inequalityis guaranteed for a given ifand the inequality is reversed, namely, for a given ,if(ii)The above inequality is guaranteed in for any given ifso that it is guaranteed in as well. The above inequality also guarantees that is fulfilled since

Proof. The solution to (3) iswhich together with (5) yieldsNote that for some if and only ifand the first part of Property (i) is proved. The reversed inequality and associated condition are proved “mutatis-mutandis.” On the contrary, the above inequality holds on iffor a normalized model at the initial conditions, that is, for if . Also, if which is guaranteed if which is guaranteed if . Property (ii) has been proved.

From the nonnecessary normalized model at the initial conditions, one has the following result which follows directly from (24) in the proof of Proposition 1:

Proposition 2. holds for all , provided that if

3.2. Nominal Logistic Equation

Assume that the epidemic models (1)–(3) are considered without recruitment, demography, and mortality, that is, . Thus, one has from (4) and (13) and (14) that so that ; . It is also assumed that the total population excess over the recovered subpopulation remains constant. This assumption keeps the logistic equation time-invariant, for instance, identical to their initial condition excess . The above hypotheses is reasonable along periods of several months over which the above population/recovered subpopulation excess does not vary substantially in practice. Thus, the parameterization of the (so-called nominal or reference) logistic equation is time invariant accordingly toand (13) has the following nominal expression parameterized by (26):whereis the Malthusian parameter, namely, the rate of maximum infection growth which can be positive, negative, or zero, andis the carrying capacity, namely, the maximum sustainable infectious subpopulation. The normalized by differential equation (27) becomes forwhere and whose solution is the sigmoid function:

Then, the unnormalized infectious evolution isand, for ,if , namely, if

It also holds that the maximum value of , which is the zero of (or the growth inversion point), takes place at , equation (34), from (33). This is easily seen from the nominal version of the logistic equation (13) with , , and , which leads towhich implies that , if , which happens at from (33). Therefore, is the growth inversion point time instant. On the contrary, from (27), there is no relative finite maximum value of since holds for if . We have, as basic relations for the key parameters of the nominal logistic equation associated with (1)–(3), the Malthusian parameter (28), the carrying capacity (29), and the growth inversion point (34).

The following result of interest holds.

Proposition 3. The nominal logistic equation has the following properties:(i)It satisfies the positivity and boundedness conditions of Theorem 1.(ii)The disease transmission rate satisfies the constraint so that either and is finite or with and . If (respectively, ), then (respectively, ). If , then .(iii)The Malthusian parameter and the carrying capacity increase (respectively, decrease) as the disease transmission rate increases (respectively, decreases). The same property holds with respect to for the growth inversion point time instant if .

Proof. Property (i) is a corollary of Theorem 1 for the nominal logistic equation which is a particular parameterization of the nominal one. Then, note that the combination of (28) and (29) yields the constraint:which implies that the transmission rate satisfies . The remaining results of Property (ii) follow directly from (28) and (29). On the contrary, note, from (28) and (29) thatand also one has from (34) thatso that . Property (iii) has been proved.

Remark 1. Note from (27) that if (that is if the transmission rate is large enough to satisfy ) and , then is strictly increasing until it reaches its maximum value . If r turns to a negative value, that is if , then the reverses its growth turning to a strictly decreasing profile. The effective way of achieving this behaviour is to decrease the number of effective infectious contacts to the susceptible either by social discipline or eventually via quarantines or confinements.

3.3. Comparison Results of the Logistic Equation with Its Nominal Version

Note that the time-varying logistic equation (13) may be compared to the nominal one (27) by expressing the errors between both current and nominal Malthusian parameters and carrying capacities. For that purpose, define parametrical errors:so thatwhere

Thus, (13) can be rewritten as follows:where

Then, one has that

The first right-hand side term of (45) is the solution of the nominal logistic equation (i.e., (32) or (33)). The second one is the integrated disturbance function on , equation (44), namely, due to the error between the current and nominal solutions. In view of the nominal solution expression (32), one has that (45) can be expressed equivalently as follows:which can be rewritten for each time instant from a previous time instant as follows:

Assume that, for a given and each , is selected so that and are almost constant with absolute errors less than positive real constants and (since the current carrying capacity is positive) in . Thus, one hasprovided that . On the contrary, if the incremental carrying capacity related to the nominal one is large enough to satisfy , which implies also that while it is also subject to , thenso that the upper bound in (47) becomes modified as follows:

Then, one has under the upper bound of (47), for the case when if , thatand one also has, for the case when , according to (49), that

On the contrary, note that is slowly time varying if is sufficiently small which is a reasonable approximation for a sufficiently small interval from the time instant where the initial infection values are picked up until its current calculation. The reason is that this implies in addition that is also sufficiently small which leads to a small variation of along for a sufficiently small interval with that additional advantage that the demography-related parameters and are also as small as suited. These considerations suggest that, by choosing the central interval point for such an evaluation of the incremental solution, one gets as an alternative expression to the infectious subpopulation evolution through time thatfor given and leading to a performed calculation along a time interval . A further improvement might be performed without difficulty over a sequence, or eventually a finite set of sampling instants by using recorded data with a monitored adaptation of the intersampling interval to the rate of variation of the infection curve in such a way that , , and the intersample period sequence are being updated as follows:where there are a number of possibilities to generate the auxiliary tentative sampling period from the classical adaptive sampling background literature (see [4851] and related references therein) as, for instance, the three ones which follow:

For some prescribed design real constants , , and with being sufficiently small in accordance with the above solution approximation considerations. The adaptive sampling laws (54) and (55) evaluate explicitly the absolute value of time derivative, while the adaptive sampling law (54), which subjects to (56), evaluates it by finite increments. The sampling period is constant (thus, it is nonupdated through time) if , . Thus, one gets from (53) the following relation in-between two consecutive sampling instants:

3.4. Estimation Algorithm of the Malthusian Parameter and the Carrying Capacity along Time

The parameters which characterize the current logistic equation are time varying, but it proposed the following simple algorithm (Algorithm 1) expressed in general pseudocode style. It is assumed that the pandemic is being focused on under different public intervention phases , such as free mobility, confinements, partial quarantines, or different phases of de-escalation of quarantines. According to the evaluation of the pandemic growth force, the algorithm identifies from recorded data of the infection curve the Malthusian parameters and the carrying capacity, and then it estimates the averaged disease transmission rate per intervention phase.

(1)Step 0: Choose and the initial intervention Phase to start to run the procedure.
(2)Smooth the recorded infection curve , if the recorded data are discrete, to make the amended one defined everywhere since the logistic equation used for modelling is continuous through time.
(3)Define for and to then run (53)–(55) to generate the sequences and of sampling instants and inter-sampling intervals (or sampling periods) with being small enough for the local time-invariance parameterization of the logistic equation to work efficiently.
(4)Step 1: Given the current sampling instant , locate the intervention phase to which it belongs. Calculate the inter-sampling interval via (54) and some of the equations (55)–(57) and then calculate the next sampling instant
(5)Step 2: Read from recorded data
(6)Step 3: The Malthusian parameter and the carrying capacity at time are calculated “a posteriori” at time from the registered , and evaluated at the current and next time instants and and an “a priori” estimation of from equations (A.12)–(A.14) and (A.5) in Appendix A (Remark A.1).
(7)Step 4: Calculate the (see Proposition 3 (ii)).
(8)Step 5: If then make and GoTo Step 1. Else GoTo Step 6
(9)Step 6: Calculate the average disease transmission rate of the Phase , make and if the whole number of checked phases is unfinished GoTo Step 1. Else GoTo Step 7
(10)Step 7: End

Note that the calculation process is repeated for all the pairs of samples and . The transmission rate is calculated for each such a pair from Proposition 3 (ii).

Remark 2. For the pairs with sampling instants belonging to consecutive phases, we can include the option of considering their associated transmission rates for both phases in Algorithm 1 or for none of them as in the above given version form of Step 6.

Remark 3. Note that, in Appendix A, two ways of implementing Step 3 of Algorithm 1 to estimate the carrying capacity and the Malthusian parameter are given:(a)The first one involves the use of infection recorded data after the current evaluation time instant.(b)The second one is summarized in Remark A.1, and it involves the only use of past data. Concerning the first method, one has to point out that the use of predictions can be replaced alternatively by the use for a set of previously recorded data corresponding to the current time instant under checking by the algorithm. Note that both methods can involve the selection of time instants being an integer multiple of the minimum period of supplied data, typically, one day. In this case, the adaptive sampling law just selects a time-varying sampling period which is an integer multiple integer of the mentioned minimum sampling period reported in the recorded data. A particular case is simply to use the minimum sampling period as a constant running sampling period while removing the adaptive sampling law design from Algorithm 1.

4. Numerical Examples

This section is devoted to present some numerical simulation examples illustrating the results discussed in the previous sections. To this end, we consider the case of COVID-19. It is shown in [52] that the spread of COVID-19 in various regions, such as China, South Korea, and Italy (among others) can be appropriately described by a SIR model. For Italy, the SIR model describing the spread of coronavirus is given by , , and , all of them in units of day−1. The initial values for the states are given by , I(0) = 240, and R(0) = 0. As it is performed in [52], the model is scaled by a factor in such a way that the scaled initial conditions read S(0) = 1 and I(0) =  . The evolution of the scaled SIR model with these parameters is depicted in Figure 1. The simulation starts on February 26, 2020, and spans for 200 days. Moreover, Figure 2 displays the number of active cases per day obtained from the SIR model along with the reported number of cases obtained from [53]. As it is proved in Theorem 1, the solution of the SIR model remains nonnegative and bounded for all time given nonnegative initial conditions. The evolution of the number of active cases per day (the state I) can be equivalently described by the time-varying (TV) logistic equation (13). Thus, Figure 3 displays the evolution of the state I obtained from the SIR model and the solution to the time-varying equation (13). It is concluded from Figure 3 that both systems are equivalent so that the ad hoc time-varying logistic equation is a single equation that appropriately describes the number of active cases per day. Furthermore, Figures 4 and 5 display the values of the Malthusian function, r(t), and carrying capacity, c(t), defined in (14), which parameterize the time-varying logistic equation.

Under certain conditions, the time-varying logistic equation can be approximated by a nominal time invariant one that simplifies the model of infection spreading. The main condition for this to hold is the excess (N(t) − R(t)) being constant and equal to (N(0) − R(0)) along time. Figure 6 shows the evolution of (N(t) − R(t)) with time. It is observed in Figure 6 that only during the first days of spreading this condition holds so that the nominal logistic equation is an appropriate model only while the incubation period has not supplied with individuals yet the subpopulation of immune. Moreover, Figure 7 supports this conclusion where the plots of the SIR model and the time-varying and the nominal logistic equations are displayed. It is observed in Figure 7 that the nominal logistic equation is close to the solution of the SIR model during the first days of simulation. Therefore, the nominal logistic equation may be used as a simplified model to describe the spread of an infection during the first stages, while the time-varying one may be used to describe the spreading for a longer period. It can also be concluded from Figure 6 that for all time since the condition in Proposition 1 trivially holds in this case, where the infectious are always nonnegative and .

As a consequence, it is of interest to have an algorithm to estimate the values of the Malthusian and carrying capacity from data in order to obtain a description of the infection spreading during the first stages. Therefore, the algorithm discussed in Section 4 will be applied now to estimate these parameters during the first days of spreading. Initially, the algorithm is applied to the numerical data obtained by simulation from the original SIR model. Thus, consider a constant sampling time of TM = Tm = Ti = 1 hour, which is a low sampling time for epidemic systems and the use of equations (A.5)–(A.11) from the Appendix to estimate the values of the carrying capacity and Malthusian parameter. Since the approximation to the nominal logistic equation only holds during the first days of simulation, the first 45 days will only be considered. Figures 8 and 9 display the evolution of the actual and estimated Malthusian parameter and actual and estimated carrying capacity, respectively. It is concluded from Figures 8 and 9 that the estimated Malthusian parameter is close to the actual value, while the carrying capacity is estimated with an error of 20%. The estimated value of is therefore 0.2246 days−1, in comparison to the actual one of 0.18 days−1. The algorithm provides an estimation of the transmission rate by measuring only the number of active cases in three consecutive time samples. Now, the method will be applied to reported data from Italy, where data are collected every day, i.e., TM = Tm = Ti = 1 day.

Figures 10 and 11 show the estimated values of the Malthusian parameter and carrying capacity when the method is applied to reported data from Italy. It can be deduced from these figures that raw data contain too much variability to perform the estimation directly. Therefore, an averaging filter is employed to smoothen the data prior to applying the estimation procedure. Thus, we use the filter , which is the mean value of the last 5 samples. The estimation with filtered values provides Figures 12 and 13. Moreover, the estimated value of is depicted in Figure 14. From these figures, it can be concluded that the filter smoothens the output of the estimation, but the filtered data still have too much variability to extract the value of as the mean value of the series. The value of at the last stage of simulation (which is the most stable one) is .

Furthermore, a least squares method is now applied to approximate the reported data to a nominal logistic equation. To this end, the lsqcurvefit Matlab function will be used. In this way, the fitting procedure is repeated every time a new data is collected. Figures 1517 display the evolution of the estimated parameters with time when the least squares method is employed.

The value at the end of simulation is . A filtered version of the data is also used to perform the estimation. In this way, the same filter as before is used to smoothen the data prior to the application of the least squares method. Thus, Figures 1820 display the evolution of estimated parameters when filtered data are used.

The value of is obtained at the end of simulation. Finally, Figure 21 depicts the reported data along with the plot of a nominal logistic equation parameterized by the values obtained at the end of least squares estimation and a nominal logistic equations parameterized by the values obtained at the end of Algorithm 1 execution with filtered data. It is observed in Figure 21 that the least-squares estimated nominal logistic equation is close to the reported data while the nominal equation parametrized by Algorithm 1 is slightly further. Overall, the nominal logistic equation is an appropriate model to describe the spread of an infection during its first stages. The estimation of logistic equation parameters allows obtaining an estimation of the transmission rate of the disease, which provides useful information for decision makers. Algorithm 1 provides an estimation of the transmission rate with less computational burden than the least-squares algorithm. However, the treatment of raw data may require the application of denoising or filtering procedures in order data to be smoothen before processing, which is a future research line It is of interest to extend the obtained modeling results with use of vaccination controls [54] and to evaluate results with future evolution of the pandemic under vaccination data.

5. Conclusions

This paper has compared an SIR epidemic model with recruitment, demography, and disease-related mortality with a parallel description through an “ad hoc” logistic equation, which is time varying. The logistic equation version of the model allows easily to interpret it via the Malthusian parameter (related to the exponential rate of variation of the solution), the carrying capacity (related to the maximum values which are reached), and the transmission rate, whose value is related to the absolute value of the quotient of the absolute value of the Malthusian parameters and the carrying capacity. To address the process of picking up the data registration in order to estimate the above parameters, an adaptive sampling law is proposed which updates the discrete data accordingly to their rate of variation leading to an optional nonuniform disposal of samples to calculate the, in general, sample-dependent Malthusian parameter and carrying capacity. The transmission rate is then calculated from the above ones and can be averaged on the various intervention phases of quarantine interventions, interventions absence, and programmed de-escalated decisions. Numerical examples which illustrate the methodology are given and discussed based on COVID-19 parameterizations.

Appendix

Take two consecutive updated estimates of the sampling instant , once the current sampling instant and sampling period and are known so that is known:

Then, rewrite (58) for and such that one-step ahead and two-step ahead estimates of and are calculated “a posteriori” after has occurred as follows from the registered measures , , and :

Then, the above equations are calculated under the constraints:which lead toso thatso thatwhose roots arewhereleading toso that the roots of (A.6) are real. The positive root leads to the Malthusian parameter at :and then the carrying capacity is calculated from (A.5).

Remark A.1. If past measures of the infection are used instead of either a prediction or a selection of provided registered values after the current time instant , one uses the subsequent equations:and equalizing and one gets the following alternative solution to (A.7)–(A.12):

Data Availability

There are datasets previously available at https://www.worldometers.info/coronavirus/,which have been used in the numerical simulations. These prior studies and datasets are cited at relevant places within the text as reference [53].

Conflicts of Interest

The authors declare that they have no conflicts of interest regarding the publication of this manuscript.

Acknowledgments

The authors are grateful to the Spanish Government for Grant RTI2018-094336-B-I00 (MCIU/AEI/FEDER, UE) and to the Basque Government for Grant IT1207-19. The also thank the Spanish Institute of Health Carlos III for its support through Grant COV 20/01213. Finally, they thank the referees for their useful suggestions.