Giter Site home page Giter Site logo

simulating-drugs-effect-on-patients's Introduction

Simulating drugs effect on viruses

In this write up, I will summarize the results of my simulation of viruses population growth in a patient. The simulation starts without drug treatment to observe the growth of the virus population and moves on to simulating drug treatment effect on the virus population along with the effect of delayed treatment.

The simulation consist of a patient class and a virus class. 100 Viruses are injected into the patient body.

The growth of the virus population is simulated using:
1- The possibility of the immunity system of the patient clearing the virus unit
2- The possibility of a mutation in the virus form to appear, making it resistant to treatment
3- The max population of the virus due to limitation of resources.

In all experiments, the virus was initiated without any resistance to drugs. Yet, the resistance was present after an amount of simulation due to possibility of mutation.

Running and Analyzing a Simple Simulation (No Drug Treatments):

From my observation of the viruses population, in an environment without drug treatment, and after injecting 100 viruses into the patient body, I have noticed that the virus population will reach its max after (150-200) steps of simulation. In each step the immunity system effect and the reproduction for all viruses were calculated. After 250 steps the population tends to range between (500-600) viruses.

Running and Analyzing a Simulation with a Drug:

The simulation was started with injecting 100 Viruses into the body of a patient. None of the viruses were resistant to the drugs. With a mutation probability of 0.005, the virus started showing drug resistant forms after 25 steps of simulation. The resistant population was very small (less than 10 viruses) until the drug was injected. I have observed a huge increase in the drug resistant population since the injection of the drug. Within 50 steps, after the injection, the non resistant population was down to less than 100 viruses (was around 500) and the drug resistant population started growing repetitively. There was more than 100 drug resistant viruses within 75 steps. Within 150 steps, the drug resistant population has grown to reach a number around 500.

The Effect of Delaying Treatment on Patient Outcome:

In this simulation, I have explored the effect of delaying treatment on the ability of the drug to eradicate the virus population. I have ranwill multiple simulations to observe trends in the distributions of patient outcomes. The simulation was run for 300, 150, 75, and 0 time steps before administering guttagonol to the patient. Then it ran the simulation for an additional 150 time steps. I have observed the following:

1- when the patient is given the treatment immediately after the infection with the virus, 99% of the patients were cured. 150 steps following the injection with the drugs to make sure there is not growth of the virus after healing.

2- When the treatment is delayed 75 time steps before injection, the percentage of cured patients has dropped down to 10%.

3- When the treatment is delayed 150 steps, the percentage of cured patients drops down to 5%

4- When the treatment is delayed 300 steps, the percentage of cured patients drops down to 1%

From those 4 observations we notice that the percentage of cured patients drops dramatically when the treatment is delayed. However, once the delay has reached 75 steps, further steps has little effects. The first 75 steps are the most important in the virus life cycle to eliminate immediately.

Designing a Treatment Plan with Two Drugs:

One approach to addressing the problem of acquired drug resistance is to use cocktails - administration of multiple drugs that act independently to attack the virus population. In the following simulations,I have used two independently-acting drugs to treat the virus. I have used this model to decide the best way of administering the two drugs. Specifically, I have examined the effect of a lag time between administering the first and second drugs on patient outcomes.

In the case of administering the two drugs together after 150 steps of simulations of the virus life, 86% of the patients were cured:

With a delay of 75 steps between the two drugs, the percentage of healed patients has dropped down to 51%

If the delay between the two drugs become 150 steps, the percentage of cured patients drops down dramatically to 9%

I have also simulated a delay of 300 time steps between the administering of drugs. The percentage of cured patients dropped down to 4%

From my observation, I can say that the delay between the drugs, once beyond 75 steps, will start having little or no effect on the patients results. A second drug is most effective with less than 75 steps in between.

Analysis of Virus Population Dynamics With Two Drugs:

To better understand the relationship between patient outcome and the time between administering the drugs, I have examined the virus population dynamics of two individual simulations in more detail. I have runa simulation for 150 time steps before administering guttagonol to the patient. Then ran the simulation for an additional 300 time steps before administering a second drug, grimpex, to the patient. Then ran the simulation for an additional 150 time steps. I have used the same initialization parameters for Patient and Resistant Virus as I did for the previous experiment. Here you can see the results of it:

I have also run a second simulation for 150 time steps before simultaneously administering guttagonol and grimpex to the patient. Then run the simulation for an additional 150 time steps. Here you can see the results:

The conclusion is that by administering the two drugs simultaneously we prevent drug resistance to arise among the virus population. When the virus is given the time between the two drugs, he will gain resistance which will make him harder to eliminate.

simulating-drugs-effect-on-patients's People

Contributors

nos111 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.