How Can We Model the Coronavirus Using Predator-Prey Dynamics?

  • Context: High School 
  • Thread starter Thread starter etotheipi
  • Start date Start date
  • Tags Tags
    Model Virus
Click For Summary

Discussion Overview

The discussion revolves around modeling the spread of the Coronavirus using mathematical frameworks, specifically comparing predator-prey dynamics with SIR (Susceptible-Infected-Recovered) models. Participants explore the implications of different modeling approaches, the challenges of data quality, and the dynamics of infection and recovery.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning
  • Experimental/applied

Main Points Raised

  • One participant proposes a predator-prey model using differential equations to represent the interaction between humans and the Covid-19 virus, seeking assistance in solving for the human population over time.
  • Several participants argue that the Lotka-Volterra model is inappropriate for modeling viral spread, suggesting that SIR models are more suitable due to their focus on infection rates and recovery dynamics.
  • Another participant notes the limitations of data quality in modeling, indicating that real answers regarding the pandemic's progression may not be clear for years.
  • One participant shares their experience with Euler's method in Excel for solving the SIR model, expressing interest in comparing it with the predator-prey model results.
  • Concerns are raised about the dynamic nature of the outbreak, with estimates of infection rates and death rates being highly variable and dependent on regional factors.
  • Some participants discuss the potential for recovered individuals to be re-infected, highlighting the uncertainty surrounding immunity to the virus.
  • There is a mention of the differences in time scales between predator-prey models and epidemic models, with the latter not accounting for significant birth rates during the epidemic timeframe.
  • One participant references expert opinions on the basic reproduction number (Ro) of the virus and the implications for herd immunity and vaccine development timelines.
  • Another participant introduces the idea of evolutionary changes in the virus, questioning the validity of claims regarding the emergence of different strains.

Areas of Agreement / Disagreement

Participants generally disagree on the appropriateness of the predator-prey model for viral dynamics, with a consensus leaning towards the SIR model as more suitable. However, there remains uncertainty regarding various parameters and assumptions related to immunity and infection rates.

Contextual Notes

Limitations include the dependence on varying regional data, the dynamic nature of the outbreak, and unresolved questions about immunity and potential re-infection. The discussion also highlights the challenges of modeling infectious diseases accurately due to changing conditions and assumptions.

Who May Find This Useful

Readers interested in mathematical modeling of infectious diseases, epidemiology, and the dynamics of virus transmission may find this discussion relevant.

etotheipi
I was trying to put together a basic mathematical model for the Coronavirus and happened to stumble across the predator prey model; if ##x## is the number of humans and ##y## is the number of Covid-19 viruses, then
$$\frac{dx}{dt} = ax-bxy$$ and $$\frac{dy}{dt} = cxy - dy$$ I took the reciprocal of equation (1) and multiplied this with equation (2), which ultimately lead to the differential equation $$\int (\frac{a}{y} - b) dy = \int (c - \frac{d}{x}) dx$$which gives $$a\ln{y} - by = cx - d\ln{x} + C$$ I now want to try and find ##x## in terms of ##t##; my instinct was to try and eliminate ##y## and substitute this into equation (1), however evidently ##y## exists in the ##\ln## and as a linear term so I can't isolate it. I was wondering if anyone could give me a hint of how to find ##x(t)##? Or is this perhaps one I need to do numerically?
 
Physics news on Phys.org
Lotka-Volterra is the wrong model. You must use a SIR model. The crucial factor is the infection rate: how many people get infected by one person. The curves are all very similar, but the amplitude of maximal infected people basically depends on the infection rate.

Here's a calculator for SIR models:
http://www.public.asu.edu/~hnesse/classes/sir.html
 
  • Like
  • Informative
Likes   Reactions: FactChecker, hagopbul, berkeman and 3 others
  • Like
  • Informative
Likes   Reactions: FactChecker and etotheipi
fresh_42 said:
Lotka-Volterra is the wrong model. You must use a SIR model. The crucial factor is the infection rate: how many people get infected by one person. The curves are all very similar, but the amplitude of maximal infected people basically depends on the infection rate.

Here's a calculator for SIR models:
http://www.public.asu.edu/~hnesse/classes/sir.html
DaveE said:
This exercise can be as simple or complicated as you wish. The typical "simple" model is the SIR model described here: https://en.wikipedia.org/wiki/Mathematical_modelling_of_infectious_disease

That's interesting, hadn't heard of this model! It appears to be$$\frac{dS}{dt} = -rSI$$$$\frac{dI}{dt} = rSI - \gamma I$$$$\frac{dR}{dt} = \gamma I$$I'll try and solve this on excel with Euler's method... since I don't think I'm going to get very far analytically!
 
A conservative estimation is 1 infects 3, and a death rate around 3%. The problem with the current outbreak is, that the situation is highly dynamic and not only numbers, but facts, too, change by the day. This means that those figures are not robust. They additionally depend on regions, the demographic situation etc. Containment in the middle of Montana is certainly easier than in the middle of NYC. Furthermore we have an unusual high number of people who aren't tested although they are carriers. And all of this is still a first world problem. I'm afraid things will turn ugly when Africa or India will be involved with high numbers. @DaveE is right when he says: we will know in 2022. I'd like to add: possibly later!
 
  • Like
Likes   Reactions: FactChecker and etotheipi
This is what Excel produced for the Euler solutions to the SIR model, and it seems to give a reasonable model. Orange is infected, grey is recovered, blue is susceptible.

1584137450504.png


I might try and make one for the predator prey model as well and see how similar they are!
 
  • Like
Likes   Reactions: hutchphd and FactChecker
On second thoughts, I've just found the Euler solutions to the predator-prey model and they don't really look anything like the SIR model, reaffirming that it's probably not a good model at all for viruses.

I did, however, manage to produce some cool looking graphs:

1584139295549.png

1584139330740.png
 
  • #10
This is the type of thing where computer simulations (Monte Carlo if you want to inject random behavior) offer a great deal more modeling flexibility than exact equations will. You can have the simulation step through time and employ a variety of real-world policies and conditions that would be virtually impossible to get closed solutions to.
 
  • Informative
Likes   Reactions: etotheipi
  • #11
etotheipi said:
On second thoughts, I've just found the Euler solutions to the predator-prey model and they don't really look anything like the SIR model, reaffirming that it's probably not a good model at all for viruses.

I did, however, manage to produce some cool looking graphs:

View attachment 258655
View attachment 258656
This looks like the recovered cases are still able to be re-infected. That is currently an open question for the coronavirus, but I think the assumption is that a recovered person gains immunity. I think that would make these results look more like the SIR model.
 
  • Like
Likes   Reactions: etotheipi
  • #12
FactChecker said:
This looks like the recovered cases are still able to be re-infected. That is currently an open question for the coronavirus, but I think the assumption is that a recovered person gains immunity. I think that would make these results look more like the SIR model.

Yeah, I think the Lotka-Volterra model just isn't cut out for this for precisely that reason.
 
  • #13
etotheipi said:
Yeah, I think the Lotka-Volterra model just isn't cut out for this for precisely that reason.
Lotka-Volterra yields dynamic equilibriums like the two chasing sine curves you got, or the "cycle" in the example from the challenges: prey population grows, which increases predator populations (many mammals have more children if the food situation is fine), but more predators diminish first prey and then itself, so the prey population can recover and everything starts again.

SIR models are asymptotic models: You don't lose immunity again, at least not very quick, e.g. tetanus, so infected people die or become immune and then they are out of the relevant population, and healthy people stay healthy or get sick and leave again. Healthy people are limited from above, so neither pool can recover, only change status. It is not a cyclic but an asymptotic behavior. This is a fundamental difference, so you cannot model one with the other.
 
  • Like
  • Informative
Likes   Reactions: FactChecker and etotheipi
  • #14
The time scales are also different. Most predator/prey models are on a time scale that allows new birth among the prey. An epidemic model for humans would not be on a time scale where births were significant.
 
  • #15
Listening to the latest "This Week In Virology" podcast interview with Ralph Baric, a Corona virus expert. He mentioned a few estimates that could illuminate some (more complicated) model parameters:

- Current estimates of SARS-CoV-2 Ro are in the 2.5 - 3.2 range (of course this depends on a lot of local things; it's higher on a cruise ship than in rural North Dakota).

- Assuming that there isn't an animal reservoir (like Bats, Camels, etc.), he estimates that a herd immunity of 70% of the population would probably result in extinction of the virus.

- Recent studies of MERS-CoV (a different infectious Corona virus) immunity via serum titers show that immunity may only last 1 - 2 years, and in rare cases just a few months. Other, more common, Corona viruses impart lasting immunity. This is early data and needs much more study. How this relates to SARS-CoV-2 is completely unknown.

- The panel (all virus experts) said that if we had a safe and effective vaccine in 18 months, that would be faster than any other similar effort.

"This Week In Virology" is the go to place for academic information about this virus (i.e. in depth, not sensationalized). They have been talking about it since the middle of January.
 
  • Like
Likes   Reactions: fresh_42 and FactChecker
  • #16
There is another big risk: evolution! Someone told me that we have already two human strains, but I haven't tried to confirm this. I personally think it is not true. Nevertheless, with high numbers of human infections, the chance raises, that we will have to deal with successful mutations.
 
  • #17
Please excuse my ignorance (!), I’m still fairly new to differential equations: out of curiosity, can one get anywhere analytically with either of the two models? Though Runge-Kutta and Euler methods appear to work fine for numerical solutions...

If so, how would you go about it?
 
  • #18
Wikipedia has some notes on the solutions of Lotka-Volterra. There is no one formula catches all solution for any IVP. We have constant equilibriums and a first integral which results in the image I quoted from the challenges. If we had a solution in closed form, we would use those equations instead of the differential ones. But deterministic numerical algorithms aren't such a big deal today.
 
  • Informative
Likes   Reactions: etotheipi
  • #19
fresh_42 said:
we have already two human strains
The problem here is defining what a strain is. My guess is that this depends on having enough genetic change to change the way the virus behaves in the infected individuals. This is tough to do since there is a ton of other variations in response not related to the virus's RNA, like the patients immune function or co-morbidities. Plus we only have a sparse data set so far.

This is all because viruses, especially RNA viruses, are constantly having minor mutations in their genome; mostly insignificant. So media reports of genetic change are hard to evaluate. They do, however, allow some really interesting possibilities in tracking the virus's history, essentially the same way 23 & me can tell you where your ancestors came from.

"Estimates of the timing of the most recent common ancestor (tMRCA) of SARS-CoV-2 using currently available genome sequence data point to virus emergence in late November to early December 2019."

This is from this recent paper that talks about SARS-CoV-2 genetic analysis:
http://virological.org/t/the-proximal-origin-of-sars-cov-2/398
 
  • Like
Likes   Reactions: fresh_42

Similar threads

Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
9K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
4
Views
2K