Prediction model in the COVID-19! app

Prediction model in the COVID-19! app

Many countries in Europe and around the world are currently on lockdown. Yet many people still choose to go out in the street despite the control measures! We'll first explain why applying control measures and lockdown during an epidemic are indeed a good thing and then we'll then try to use this model to do some predictions!

Many countries in Europe and around the world are currently on lockdown. Yet many people still choose to go out in the street despite the control measures! We'll first explain why applying control measures and lockdown during an epidemic are indeed a good thing and then we'll then try to use this model to do some predictions!

Mathematical model

Let's first try to create a mathematical model that represents the population and the way some get contaminated, some recover, and some people die. We'll name S the Susceptible (healthy) population, I the Infected population, R the population which has Recovered from the disease and produced its own antibodies and D the part of the population that has Died. The temporal evolution of each population can be modelled with the following system of equations:

where Ki is the contamination probability, Kr is the recovery probability, Kd is the death probability.

We'll assume the contamination probability increases with people's mobility v. If people were 100% immobile that would mean v = 0 . We'll assume that usual people's mobility is v = 1 .

Ki = 0.4 • v

Here 0.4 is arbitrary.

Effect of control measures

How does this model behaves in time?

First, more and more people get contaminated. Then as people recover and developp antibodies, a contamination peak can be seen after which contaminated population decreases until reaching zero: the epidemic has ended.

By decreasing people's mobility, the contamination peak is delayed and is less significant in terms of contaminated people. Also the epidemic ends later.

Overall, the curve has been flatted!

Great! But why would we care?

Well let's take a look at the ammount of dead people now...

Here we start to see the importance of taking control measures! As the mobility decreases, deaths decrease as well! That's because if less people get sick, then obviously less people a likely to die from the disease!

But that's not quite the way our health system works right? People don't miraculously heal themselves (at least not all of them): some of them go to the hospital. And if there are too many patients then ... it is more likely that people will die and heal less rapidly.

In order to take this effect into account in our model, let's first assume a hospital capacity C. If the number of sick people is above this capacity, the recovering probability Kr will decrease by 50% and the death probability Kd will increase by 50%. What will happen then?

We added to the previous graphs dashed lines corresponding to the extended model with a hospital saturation limit. If people's mobility is not reduced enough the number of sick people increases by 12%! But more important is that the number of deaths almost doubled!

That's pretty much it! The simple code I used is available if you wish to play with it and tweak the parameters a little!

Takeaway message: stay home!

Model validation and predictions

Alright. Is this model actually representing what's happening in reality? One way to found out: try to reproduce actual epidemics that happened in the past!

Let's do it with the recent Covid-19 epidemic in China that is nearly ended by now. The model's parameters (contamination, recovering and death rates) will be adjusted in order to fit actual data as best as we can.

Not that bad afterall! We now know that our model can reproduce actual epidemic behaviour with more or less accuracy. Could we use this fitting process to try and predict the future? I'd really like to know when I'll be authorised to go out again...so let's do it for France!

Alright, so this is obviously not as accurate as the case for China cause we simply don't have enough data yet. This means that the predictions will gain in accuracy day by day! But so far, all we can expect is that the epidemic in France (assuming there won't be any changes in the confinement measures) won't be over until the end of April! We'll come back then and check if the results were okay!

All information and the whole article is based on the source: Epidemic-simulator from RemiTheWarrior . We thank the author for his amazing work.

The Emglare Team