Simulating HIV Infection Nonlinear Model by using Simulink

Post Reply
Joseph Bundala
Expert Member
Reactions: 23
Posts: 55
Joined: 7 years ago
Has thanked: 14 times
Been thanked: 28 times
Contact:

#1

Hello guys,

I was passing by a health center and I saw a poster having Swahili slogan “Ukimwi unaua” which means “AIDS kills”. Then I thought of HIV and I had questions on how it is multiplying in a human body. Though I am not a medical doctor but I was thinking there might be a mathematical model which describes the behavior of this virus. I came across IEEE journal [1] where by mathematical models were derived but Simulink model was not shared.

Basically, CD4+T Cells are protecting human body from invaders like HIV. Once a person is infected, CD4+T Cells increase rapidly to fight against infection, on the other hand HIV is embedding itself in these cells and destroy them which makes affected CD4+T Cells to rise. However, at a certain period of time there will be an equilibrium in a patient’s body for both Healthy CD4+T Cells, Infected CD4+T Cells and Virus(Viral load).

System parameters
Parameters.png
Parameters.png (21.83 KiB) Viewed 2994 times
Parameters.png
Parameters.png (21.83 KiB) Viewed 2994 times
Mathematical models

Rate of growth of healthy CD4+T Cells

Rate of growth of infected CD4+T Cells

Rate of growth of viruses

Then, I presented these equations by building a Simulink model and Matlab code to visualize different scenarios in a patient. This model does not represent a patient who takes antiretro-viral medications.

Image

Initial conditions
Initially, if (Healthy T Cells, Infected T Cells, Virus) = (1000,0,20) per cubic mm, the plots show sudden reduction of healthy cells and rise in Infected T Cells which means there is infection. Furthermore, virus increases at a very rapid rate to ten thousands and then stabilizes. This is a time to eat healthy and do a lot of exercises.

Image

After several days[Time series], a patient will have a massive [ten thousands]increase in viral load as compared to initially which were 20 counts in this example.

Image

A challenge to you

Find that article and build a model when patient is taking medications. Plot phase planes, bode diagrams and transfer functions. You may check as well mathematical models for insulin injection versus glucose levels for patients with diabetes. Take care "AIDS kills", maan this virus multiplies like :upside_down_face:

Matlab Code
  1. clc;
  2.  
  3. % Death rate of uninfected T Cells per day
  4. d = 0.02;  
  5. % Rate of free viruses produced per infected T Cell[counts/cell]
  6. k = 100;  
  7. % Source term for uninfected T cells [per cubic mm per day]
  8. s = 20;    
  9. % Infectivity rate of free virus particles
  10. B = 2.4*10^(-5);
  11. % Death rate of viruses per day
  12. c = 2.4;    
  13. % Death rate of infected T Cells per day
  14. u = 0.24;  
  15.  
  16. sim('HIV_model');
  17.  
  18. %days = 50*ones(length(tout),1);
  19.  
  20. figure
  21.  
  22. subplot(2,2,1)
  23. plot(tout,T)
  24. xlabel('Time series[days]')
  25. text(10,500,'\leftarrow Reduction in T Cells')
  26. legend("Healthy CD4+T Cells");
  27.  
  28. subplot(2,2,2)
  29. plot(tout,Tstar)
  30. xlabel('Time series[days]')
  31. text(15,400,'\leftarrow Rising of infected T Cells')
  32. legend("Infected CD4+T Cells")
  33.  
  34.  
  35. subplot(2,2,[3 4])
  36. plot(tout,V)
  37. xlabel('Time series[days]')
  38. text(20,15000,'\leftarrow increase in Viral load')
  39. legend("Viruses[ngoma]")
  40.  
  41. saveas(gcf,'hiv.png')
  42.  
  43. figure
  44.  
  45. plot3(T,Tstar,V)
  46. xlabel('Healthy T Cells')
  47. ylabel('Infected T Cells')
  48. zlabel('Viral load')
  49.  

References
[1] Craig, I. K., Xia, X., and Venter, J. W.; Introducing HIV/AIDS Education into the Electrical
Engineering Curriculum at the University of Pretoria. IEEE Transactions on Education,
vol. 47, no. 1, February 2004, pp. 65–73
Attachments
Simulink model.png
(29.59 KiB) Not downloaded yet
Simulink model.png
(29.59 KiB) Not downloaded yet
Phase.png
(16.42 KiB) Not downloaded yet
Phase.png
(16.42 KiB) Not downloaded yet
HIV progression.png
(20.06 KiB) Not downloaded yet
HIV progression.png
(20.06 KiB) Not downloaded yet
1
1 Image
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5334
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#2

Great article. Nice mathematical description and simulations about the danger of HIV AIDS.

What do the vertical axes for simulations with "Time series" x-axes represent?
0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Joseph Bundala
Expert Member
Reactions: 23
Posts: 55
Joined: 7 years ago
Has thanked: 14 times
Been thanked: 28 times
Contact:

#3

@Eli , the vertical axes represent cells per cubic millimeters [CD4+T Cells]
1
1 Image
Post Reply

Return to “Electrical Engineering”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests