key: cord-0989855-osez25uj authors: Hackl, Klaus title: Modeling the COVID-19 pandemic - parameter identification and reliability of predictions date: 2020-04-11 journal: nan DOI: 10.1101/2020.04.07.20056937 sha: a9dae8ddac9c77c917852248bf1dfadc78eda15a doc_id: 989855 cord_uid: osez25uj In this paper, we try to identify the parameters for two elementary epidemic models, the so-called SI- and SIS-models, via non-linear regression using data of the COVID-19 pandemic. This is done based on the data for the number of daily infections. Studying the history of predictions made, we attempt to estimate their reliability concerning the future course of the epidemic. We validate this procedure using data for the case numbers in China and South Korea. Then we apply it in order to find predictions for Germany, Italy and the United States. The results are encouraging, but no final judgment on the validity of the procedure can yet be made. In most countries, social distancing measures are in effect now in order to fight the covid-19 pandemic. Considering the serious effects of these measures on the affected societies and the ensuing political discussions on their intensity and duration, it would be highly desirable to be able to make modeling based predictions on the future timeline of the epidemic, as long as the measures are upheld. Of course, many attempts are made in this direction. However, most of them require very detailed data that are laborious and time-consuming to generate. In this work, we try to study the possibility to base predictions on data sets readily available, namely the number of reported infections. We are aware, that these numbers depend strongly on the intensity of testing done in the various countries and the reliability of the reported numbers. In this work we presume that there is a factor, country-specific, but constant in time, between the reported and the actual number of cases. If this assumption were valid, the total number of infected individuals would be off by this very factor. However, other parameters, like the point in time when the peak in the numbers of daily infections would occur, or the following rate of decay of these numbers, would not be affected. Finally, we would like to stress, that we intend this work to be the starting point of a discussion and maybe further research. By no means, having a background in engineering and not in virology or epidemiology, we are claiming any medical expertise. The paper should be rather seen as a general exercise in modeling and interpretation of data. Our aim is to model a situation where social distancing measures are in effect, as currently is the case in most countries. This means, that only a small portion of the population is affected, which is well but not completely isolated from the rest. As starting point, we refer to the compartmental model by Kermack, McKendrick and Walker, [3] . It is defined by the differential equationsṠ = −αSI,İ = αSI − γI. (1) Here I(t) is the number of individuals in the infectious population and S(t) denotes the number of individuals in the susceptible population, in our case those who can get infected because they are not protected by social distancing. This formulation is also called the SIR-model, where the dependent variable R(t) stands for the removed (by recovery of death) population, and we haveṘ = γS. The parameter α is related to the basic reproduction number by where N is the initially susceptible population and T inf = 1/γ is the time period during which an individual is infectious. For Sars-Cov-2, no definite value for T inf has yet been reported. The parameter γ denotes the rate at which individuals are removed from the infected population because of an outcome (recovery or death). In our study, we are going to neglect the term γI, which will have an effect only in late stages of the epidemic when S ≈ γ/α. As a result, we obtain the so-called SI-model, [4] . Later, we will see, that it is basically impossible to identify the parameter γ from the data available unless the epidemic is in a very late stage. So, for our purposes, this simplification amounts to a necessity. Employing the assumption above, Eqs. (1) become equivatent to the so-called logistic . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint differential equation having the closed form solution I max e Imaxαtmax e Imaxαtmax + e Imaxαt , I(t) = I max e Imaxαt e Imaxαtmax + e Imaxαt , where and t max , marking the peak of the epidemic, is defined by In order to achieve a more robust parameter identification, we precondition our solution by introducing new parameters a, b given by Note, that Eq. (6) implies After substitution of Eqs. (6) into Eqs. (3), the number of total infections is then given as and the rate of daily infections becomes We determine the three parameters {a, b, t max } of our model via non-linear regression. The data taken from the worldometer web page, [1], which essentially uses the data from the Johns Hopkins University Center for Systems Science and Engineering (JHU CCSE). For the parameter identification done in this paper, we have used the available data up to including Apr. 4, 2020. The data are provided in form of lists {(t 1 , I 1 ), . . . , (t N data , I N data )} for the total number of infections up to day t i , and {(t 1 , ∆I 1 ), . . . , (t N data , ∆I N data )} for the number of daily infections. Time is measured in days, starting on Jan. 1, 2020. Hence, t = 1 d corresponds to Jan. 1, t = 32 d to Feb. 1, t = 61 d to Mar. 1, 2020, and so on. Obviously, we have . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint Let us define errors e 0 (a, b, t max ) with respect to the total cases and e 1 (a, b, t max ) with respect to the daily cases by (11) In order to judge the accuracy of the modeling, let us define the data norms and the relative errors Finally, we find the parameters a, b, t max by minimizing the errors: Minimization is done using the computer algebra system Mathematica, [2]. For our purposes, the simulated annealing global minimization algorithm works best. Attention has to be given, though, to choosing appropriate initial intervals for the parameters in order to achieve convergence. In Figs. 1 to 5, the numbers of daily cases (left) and total cases (right) are plotted versus time in days. In order to get an estimation of the variability of the predictions, we use both parameter identification schemes defined in Eqs, (14) and (15). The results obtained by fitting the number of total cases according to Eq. (14) are shown in red color and those obtained obtained by fitting the number of daily cases according to Eq. (15) are shown in magenta. The corresponding data are shown in blue color. In Fig. 1 and Fig. 2 the data for China and South Korea are displayed. Both countries can be considered to be in a late stage of the epidemic and the data are matched well by the model. Especially for China, the predictions obtained by both parameter identification schemes are close together. The pronounced spike in the number of daily cases is due to a change of the procedure how infections are counted, and is averaged out by the model. It is apparent that the model cannot fit the remaining almost constant level of daily infections around 100 and the corresponding ongoing rise in the total cases in the South Korea data. This causes the predictions generated by both procedures to lie a little . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint further apart. In Figs. 3, 4 and 5, the numbers of daily new cases are plotted for Germany, Italy and the United States. These countries can be considered to be in earlier stages of the epidemic. For Germany and Italy, the predictions generated by both procedures agree closely in the time range where data are already available and are divergent for later points in time. This divergence is especially strong in case of the United States data, indicating a very dynamic epidemic process of exponential growth taking place there. Figure 1 : China, left: daily cases (∆I a 0 ,b 0 ,t 0 max (t) red, ∆I a 1 ,b 1 ,t 1 max (t) magenta), right: total cases (I a 0 ,b 0 ,t 0 max (t) in red, I a 1 ,b 1 ,t 1 max (t) in magenta), data in blue Figure 2 : South Korea, left: daily cases (∆I a 0 ,b 0 ,t 0 max (t) red, ∆I a 1 ,b 1 ,t 1 max (t) magenta), right: total cases (I a 0 ,b 0 ,t 0 max (t) in red, I a 1 ,b 1 ,t 1 max (t) in magenta), data in blue . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint Figure 3 : Germany, left: left: daily cases (∆I a 0 ,b 0 ,t 0 max (t) red, ∆I a 1 ,b 1 ,t 1 max (t) magenta), right: total cases (I a 0 ,b 0 ,t 0 max (t) in red, I a 1 ,b 1 ,t 1 max (t) in magenta), data in blue Figure 4 : Italy, left: left: daily cases (∆I a 0 ,b 0 ,t 0 max (t) red, ∆I a 1 ,b 1 ,t 1 max (t) magenta), right: total cases (I a 0 ,b 0 ,t 0 max (t) in red, I a 1 ,b 1 ,t 1 max (t) in magenta), data in blue Figure 5 : United States, left: left: daily cases (∆I a 0 ,b 0 ,t 0 max (t) red, ∆I a 1 ,b 1 ,t 1 max (t) magenta), right: total cases (I a 0 ,b 0 ,t 0 max (t) in red, I a 1 ,b 1 ,t 1 max (t) in magenta), data in blue Some key data provided by the model are given in Table 1 . They are defined as follows: I 0 max = a 0 /b 0 , I 1 max = a 1 /b 1 : This is the total number of population getting infected, if the social distancing measures taken are upheld until the epidemic has completely subsided. . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint Note, that for China and South Korea,these numbers correspond closely to the total number of cases reported. e 0,rel , e 1,rel : The is relative errors produced by both parameter identification procedures, as defined in Eq. (13). Note, that due to the fluctuating nature of the number of daily cases, e 1,rel is much larger than e 0,rel . In the initial stages of an epidemic, the number of cases grows exponentially. This is easy to see by considering the limit t → −∞ in Eqs. (8) and (9), giving From Eq. (16), we see that during an early stage, it is impossible to identify the parameters a and t max independently, because the occur via the common factor a/e btmax . Hence, there are infinitely many pairs of a and t max giving the same behavior and thus being minimizers in Eqs. (14) and (15). By virtue, it is even harder to fit all parameters in the SIR-model or one of the many existing extensions of it. Only past this phase of exponential growth, it is possible to identify all three parameters and thus arrive at viable predictions. But how to identify this point in time from the available data? Our suggestion for a solution of this problem is to monitor the two different parameter . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint sets {a 0 , b 0 , t 0 max } and {a 1 , b 1 , t 1 max } defined in Eqs. (14) and (15). Theoretically, the values should be close to each other. However, during a phase of exponential growth, the mentioned ill-posedness of the minimization problems given by Eqs. (14) and (15) will give results lying substantially apart. Lets test this hypothesis: In Figs. 6 to 10, we display the parameters I 0 max (in red) and I 1 max (in magenta) to the left and b 0 (in red) and b 1 (in magenta) to the right, respectively, versus time in days. Looking at the timeline for China, we can state stable behavior starting between day 50 and 60, agreeing with the converged behavior in Fig. 1 . For South Korea, we have convergence around day 66. Afterwards, the graphs diverge slightly again, which is likely due to the constant number of daily infections occurring in the later stage of the epidemic, already mentioned above. From this observation we can deduce with some caution, that the predictions based on the present model will be reliable to a certain extent as soon as the parameters identified by the two procedures stated in Eqs. (14) and (15) approach each other. Applying this reasoning to the data for Italy, Fig. 9 , we can assume reliable predictions starting on day 83. This is supported by the close values for T 100 in Table 1 . Less confidence can be put into the predictions for Germany. In Fig. 8 , the graphs for I 0 max and I 1 max seem to have converged, but for b 0 and b 1 , this cannot be stated with certainty. We will have to wait for the development during the upcoming few days. No convergence can be observed up to now for the United States data, Fig. 10 , where we are likely still in a phase of rapid growths of the case numbers. . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 11, 2020. . CC-BY-NC 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted April 11, 2020. . https://doi.org/10.1101/2020.04.07.20056937 doi: medRxiv preprint Figure 10 : United States, left: I 0 max (in red) and I 1 max (in magenta), right: b 0 (in red) and b 1 (in magenta) We have identified the parameters in an elementary epidemic model via non-linear regression using data of the covid-19 pandemic. Furthermore, we have attempted to get an insight into the reliability of predictions based on this procedure by observing the timeline of the parameters calculated by two different schemes. Our results indicate, that this approach might work. However, more detailed studies will be necessary in order to establish this method as valid. So caution is required when interpreting the results stated here. In the future, it would be desirable, too, to identify more complex models. It is uncertain, though, if this will be possible at all without more detailed data available. A contribution to the mathematical theory of epidemics