A Comparative Study of Nonstandard Finite Difference (NSFD) and Classical Methods for a Tuberculosis Susceptible–Infected–Recovered (SIR) Model

Main Article Content

Zabihullah Movaheedi
Shirpacha Khapulwak
Rahmatullah Faqiri

Abstract

Background: Tuberculosis (TB), caused by Mycobacterium tuberculosis infection, remains one of the most severe airborne infectious diseases worldwide, imposing a substantial public health burden due to its high morbidity and mortality rates. Understanding its transmission dynamics through reliable mathematical modeling is essential for effective disease control and prevention strategies. We aimed to develops and analyzes a nonlinear deterministic Susceptible–Infected–Recovered (SIR) model for tuberculosis transmission and evaluate the dynamical consistency of a Nonstandard Finite Difference (NSFD) scheme in comparison with classical numerical methods.


Methods: A nonlinear SIR model incorporating recruitment, standard incidence transmission, natural and disease-induced mortality, and recovery mechanisms was formulated. The basic reproduction number  was derived using the nextgeneration matrix approach. Qualitative analysis was performed to examine positivity, boundedness, and stability of equilibria. A dynamically consistent NSFD scheme was constructed and compared with the forward Euler and fourth-order Runge-Kutta (RK4) methods through numerical simulations.


Results: The disease-free equilibrium is stable when , while an endemic equilibrium exists when . Numerical simulations demonstrate that Euler and RK4 methods might produce instability and non-physical negative solutions for larger step sizes. In contrast, the NSFD scheme preserves positivity, boundedness, and stability independently of the time step size and consistently reproduces the qualitative behavior of the continuous system.


Conclusion: The NSFD approach provides a robust and reliable computational framework for modeling tuberculosis transmission. It outperforms classical numerical methods in preserving the dynamical properties of the system and is particularly suitable for long-term epidemiological simulations.

Article Details

Section
Original Research

References

1. World Health Organization.: Global tuberculosis report 2024. Geneva: World Health Organization. Available from: https://www.who.int/publications/i/item/global-tuberculosis-report-2024. Accessed 2026. Available from: https://www.who.int/publications/i/item/ global-tuberculosis-report-2024.

2. Centers for Disease Control and Prevention.: Tu-berculosis transmission and pathogenesis. Atlanta (GA): Centers for Disease Control and Prevention. Available from: https://www.cdc.gov/tb. Accessed 2026. Available from: https://www. cdc.gov/tb.

3. Pai M DD Behr MA. Tuberculosis. Nat Rev Dis Primers. 2016;2:16076. https: //doi.org/10.1038/nrdp.2016.76.

4. Nahid P AN Dorman SE. Treatment of drug-susceptible tuberculosis. Clin Infect Dis. 2016;63(7):e147-e195. https://doi.org/10.1093/cid/ciw376.

5. Gandhi NR DK Nunn P. Multidrug-resistant tuber-culosis. Lancet. 2010;375(9728):1830-1843. https://doi.org/10.1016/S0140-6736(10)60410-7.

6. World Health Organization.: Global tuberculosis report 2023. Geneva: World Health Organization. Available from: https://www.who.int/publications/i/item/global-tuberculosis-report-2023. Accessed 2026. Available from: https://www.who.int/publications/i/item/

global-tuberculosis-report-2023.

7. HW H. The mathematics of infectious diseases. SIAM Rev. 2000;42(4):599-653. https://doi.org/10.1137/S0036144500371907.

8. Diekmann O RM Heesterbeek JAP. The construc-tion of next-generation matrices for compartmental epidemic models. J R Soc Interface. 2010;7(47):873-885. https://doi.org/10.1098/rsif.2009.0386.

9. JC B. Numerical methods for ordinary differential equations. 3rd ed. Chichester: Wiley; 2016.

10. RE M. Nonstandard finite difference models of differential equations. Singapore: World Scientific; 1994.

11. Anguelov R LJ. Nonstandard finite difference method by nonlocal approximation. Math Comput Simul. 2003;61(3-6):465-475. https://doi.org/10.1016/ S0378-4754(02)00184-8.

12. Movaheedi Z HB. Numerical analysis of typhoid fever spread using RK and NSFD methods. Afghan J Infect Dis. 2024;3(1). https://doi.org/10.60141/ajid.68.

13. Z M. Analyzing the dynamic characteristics of a tuberculosis epidemic model. Afghan J Infect Dis. 2024;2(2). https://doi.org/10.60141/AJID/V.2.I.2/8.

14. Movaheedi Z RA. Comparative analysis of RK and backward Euler methods. Afghan J Infect Dis. 2026;4(1):94-113. https://doi.org/10.60141/ajid.142.

15. Movaheedi Z SN Sharifi AK. Dynamics-informed neural network modeling of COVID-19 in Afghan-istan. Afghan J Infect Dis. 2025;3(2):177-192. https://doi. org/10.60141/ajid.114.

16. Kumar A SR Sharma P. Investigating the role of allelochemicals in plant population dynamics via stability analysis and Hopf bifurcation. Appl Math Sci Eng. 2026;34(1):2627665. https://doi.org/10.1080/27690911.2026.2627665.

17. Zhang Y CX Liu H. Delay-induced stability transi-tions and Hopf bifurcation in pollutant models. Symmetry. 2026;18(3):404. https://doi.org/10.3390/ sym18030404.

18. Ochwach JO OM. On basic reproduction number R0: derivation and application. J Eng Appl Sci Technol. 2023;5(3):1-7. https://doi.org/10.47363/jeast/2023(5) 173.

19. Sahaminejad F EZ Nyamoradi N. Developing a continuous SIR epidemic model and its discrete version using Euler method. Math Methods Appl Sci. 2024;https: //doi.org/10.1002/mma.10124.

20. Kamruzzaman M NM. A comparative study on numerical solution of initial value problem. J Com-put Math Sci. 2018;9(5):493-500.

21. Necasova G SV Veigend P. Taylor series method in numerical integration. In: Proc Int Conf Informat-ics; 2022. p. 1-6.

22. MT H. Nonstandard finite difference methods pre-serving Lyapunov functions. arXiv. 2023;2312.01471.

23. Aguirre-Hernandez B MRJ Frias-Armenta ME. Geometry and dynamics of the Schur-Cohn stabil-ity algorithm. Math Control Signals Syst. 2019;31:1-25. https: //doi.org/10.1007/s00498-019-00245-8.

24. Khan IU KAUH Qasim M. Stability analysis and transmission dynamics of the SIR model. Math Probl Eng. 2022;2022:6962160. https://doi.org/10.1155/2022/ 6962160.

25. Muroya Y KT Enatsu Y. Global stability for a mul-ti-group SIRS epidemic model. Nonlinear Anal Re-al World Appl. 2013;14(3):1693-1704. https://doi.org/ 10.1016/j.nonrwa.2012.11.005.

26. Enatsu Y MY Nakata Y. Lyapunov functional techniques for stability analysis. Nonlinear Anal Real World Appl. 2012;13(5):2120-2133. https://doi.org/10. 1016/j.nonrwa.2012.01.007.