Epidemiological model Covid-19



Recently, there have been quite different models for the development of the epidemic, including on Habré. This topic has not bypassed me either. I would hardly have written here, but given what I managed to find, the importance of the discovered dependencies and their impact on our lives, I cannot but share the find. There will be many formulas, graphs and little text. Basic information and graphics for Germany, where I live.

So, the epidemiological model in the first approximation is described by the growth formula of the infected.

UFO Care Minute


The pandemic COVID-19, a potentially severe acute respiratory infection caused by the SARS-CoV-2 coronavirus (2019-nCoV), has officially been announced in the world. There is a lot of information on Habré on this topic - always remember that it can be both reliable / useful, and vice versa.

We urge you to be critical of any published information.


Official sources

, .

Wash your hands, take care of your loved ones, stay at home whenever possible and work remotely.

Read publications about: coronavirus | remote work

Nt=N02t/Td


Where Td- the doubling time of infected in our case in days,t number of daysN0 number of infected at a certain point in time andNt - the number of cases throught days. If we divide both parts of the formula by the total population of the region, we get the same formula, but in parts of the populationP .

Pt=P02t/Td(1)


The problem with this formula is that the formula does not take into account the limited population and Pwill soon be more than 1. This does not happen in real life.

There is an epidemiological factor determining to what level the number of cases can increase. It is calculated based on thebase number of reproductions. R0. This number shows us how many people approximately one infected person infects, is constant and specific for each particular region depending on the population density and other characteristics of the region. It can be determined only at the beginning of the epidemic, when there are no limiting factors. The formula itself looks like this:

Psat=11/R0


There is also an effective reproduction rate Rt, which also lets us know how many people the patient infects. Unlike the base number, the effective one is constantly changing. You can determine this value using the formula above and knowing the number of infected at a certain point in time:

Rt=R0(1Pt)(2)


If we take the simplified SEIR [1] model of the epidemic, we can find additional factors describing the characteristics of the epidemic, such as growth rateGr or time of infectivity of the patientD . The following formulas show the relationship between the quantities.

Gr=Rt1D


Td=ln(2)Gr


Using the above formulas, we can derive the following dependence

Td=Dln(2)Rt1


and substituting it in (1) we get:

Pt=P02t(Rt1)Dln(2)


or after simplification

Pt=P0et(Rt1)D


If we need to determine the value the next day, then t=1

P1=P0eRt1D


The effective number of reproductions for a specific time currentcan be calculated from formula (2) and then knowing only the basic number of reproductionsR0 and the number of infected at the momentPcurrent we can easily calculate the percentage of people infected the next day.

Pnext=PcurrenteR0(1Pcurrent)1D


There is only one parameter in this formula , which can be calculated from the doubling time at the beginning of the epidemic. Taking for exampleR0Pcurrent=0,0001and taking n steps, we will get an epidemiological state in n days. Time, the shape of the curve, the saturation value, the number of cases at a certain point in time and other parameters jump out of the formula "like a devil from a snuff box."

What about quarantine and other factors affecting the course of the epidemic?

Each of the measures taken corrects the base number of reproductions by a certain factor (factor)μ[0;1] in the following way:

Pnext=PcurrenteμR0(1Pcurrent)1D


For simplicity, you can even define a “limiting” base reproduction number:

R0=μR0


Further, at some time points, you can simply replace one reproduction number with another, thus adjusting the spread of the epidemic. The epidemic continues to spread with new conditions for a certain period of time, until the moment of a new change. Change points or intervention points are determined by external factors, such as quarantine, closure of schools, or the need to wear masks. The time and extent of exposure to these factors, as a rule, cannot be known in advance. However, if the value of the correction number change is knownμ, which determines the effectiveness of quarantine, you can find out how its cancellation will affect at a certain point in time in the future. This provides good predictive opportunities for this model. This is also one way to test its validity in practice.

As the time of infectivity of the patientDfor Covid-19, a value of 10 was taken [2] .

There are no other parameters in the model, as well as additional degrees of freedom.

What about verification?

Charts based on data from Germany.

There were only 3 intervention points indicated in the following table:



Which led to the following results.

image



The points of intervention and comparison of model data with actual values ​​extracted from public data are visible on the graph of changes in the effective number of reproductions.



The coincidence of the data and the quality of the model can be checked on the regression charts:



The model and calculations for Germany are posted on GitHub . There are not only these data, but also studies on deaths.

Update:
Additional checks made. Each country has its own correction factor.

Russia:




Italy:



USA:



Update 2:
Added a version of “simple” on GitHub in which everything superfluous is removed, you can insert the values ​​of other countries, change the points of intervention and the correction factor. There is a high probability that this same correction factor is the ratio of those diagnosed to infected. But it needs to be checked. Further development and completion of the epidemic will confirm or refute this hypothesis.

In the graphs, the values ​​of the detected cases are in% and these values ​​are not corrected for the Ratio value (Correction Factor). Dividing by this number we get the actual percentage of detected cases and the prognosis of infection. In the simple version, this correction has been made.

References
[1] JM Heffernan et al. Perspectives on the basic reproductive ratio. doi.org/10.1098/rsif.2005.0042 JR Soc. Interface 2005 2, 281–293 (2005)

[2] Xi He, Eric HY Lau et al. Temporal dynamics in viral shedding and transmissibility of COVID-19. www.nature.com/articles/s41591-020-0869-5 Nature (2020)

All Articles