<?xml version='1.0' encoding='UTF-8'?>
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.3" xml:lang="en">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Spinghar Journal of Biomedical Sciences</journal-title>
      </journal-title-group>
      <journal-id journal-id-type="publisher-id">SJBS</journal-id>
      <issn pub-type="epub">3105-2428</issn>
      <publisher>
        <publisher-name>Spinghar University-Kabul</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.64444/sjbs.38</article-id>
      <title-group>
        <article-title>A Comparative Study of Nonstandard Finite Difference (NSFD) and Classical Methods for a Tuberculosis Susceptible–Infected–Recovered (SIR) Model</article-title>
      </title-group>
      <article-categories>
        <subj-group>
          <subject>Original Article</subject>
        </subj-group>
      </article-categories>
      <pub-date pub-type="epub">
        <month>04</month>
        <year>2026</year>
      </pub-date>
      <volume>2</volume>
      <issue>1</issue>
      <fpage>103</fpage>
      <lpage>120</lpage>
      <history>
        <date date-type="received">
          <day>17</day>
          <month>03</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>15</day>
          <month>04</month>
          <year>2026</year>
        </date>
      </history>
      <abstract>
        <p>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. Keywords: Tuberculosis; Susceptible–Infected–Recovered (SIR); Stability analysis, Nonstandard finite difference (NSFD); Dynamical consistency</p>
      </abstract>
      <kwd-group>
        <kwd>Tuberculosis</kwd>
        <kwd>Susceptible–Infected–Recovered (SIR)</kwd>
        <kwd>Stability analysis, Nonstandard finite difference (NSFD)</kwd>
        <kwd>Dynamical consistency</kwd>
      </kwd-group>
      <custom-meta-group>
        <custom-meta>
          <meta-name>source-file</meta-name>
          <meta-value>10- OA-SJBS-Mowahedi-April-2026 RTG(1).docx</meta-value>
        </custom-meta>
      </custom-meta-group>
    </article-meta>
  </front>
  <body>
    <sec>
      <title>Introduction</title>
      <p>Tuberculosis (TB), caused by the bacterium Mycobacterium tuberculosis, remains one of the most persistent and devastating infectious diseases worldwide. Despite decades of global control efforts, TB continues to represent a major public health burden, particularly in low- and middle-income countries where healthcare infrastructure is limited and diagnostic delay is common. The airborne nature of TB transmission, mediated through infectious droplets expelled by symptomatic individuals, facilitates rapid dissemination in densely populated environments and contributes to sustained endemicity in many regions [1,2].</p>
      <p>From a clinical perspective, TB primarily targets the pulmonary system; however, its extrapulmonary manifestations-including involvement of the central nervous system, lymphatic system, skeletal structures, and other organs-introduce significant diagnostic complexity and therapeutic challenges [3]. These extrapulmonary forms complicate the classical Susceptible–Infected–Recovered (SIR) modeling framework, as they may involve different transmission pathways, latency structures, and heterogeneous progression rates that are not easily captured within a simple three-compartment structure. Nevertheless, the present study adopted the SIR framework due to its analytical tractability and its ability to capture the essential transmission dynamics, which was sufficient for investigating stability properties and constructing dynamically consistent numerical schemes.</p>
      <p>The standard treatment regimen requires a prolonged course of combination antibiotics lasting at least six months, which often results in poor patient adherence and incomplete treatment. This issue has contributed to the emergence and global spread of multidrug-resistant (MDR-TB) and extensively drug-resistant (XDR-TB) strains, further complicating disease management and significantly increasing mortality risk [4,5].</p>
      <p>According to the WHO, TB remains among the top ten causes of death globally, with approximately 10.8 million new cases and 1.25 million deaths reported in 2023 alone, the majority occurring in resource-limited settings [6]. These figures highlight not only the persistent nature of TB transmission but also the urgent need for advanced analytical frameworks capable of capturing its complex epidemiological behavior and supporting effective control strategies.</p>
      <p>Mathematical modeling has become a fundamental tool in infectious disease epidemiology, providing a structured and quantitative framework for understanding transmission dynamics, evaluating intervention strategies, and predicting outbreak behavior. Classical compartmental models, particularly the SIR framework, have played a central role in capturing disease progression and estimating key epidemiological thresholds such as the basic reproduction number [7,8].</p>
      <p>Despite its wide applicability, the SIR model has several limitations when applied to TB dynamics. In particular, it does not explicitly account for latent infection stages, reinfection mechanisms, or time delays associated with disease progression and treatment response. These limitations may restrict its ability to fully represent the complex natural history of TB.</p>
      <p>In addition, stability analysis of equilibrium states offers critical insight into the long-term behavior of disease systems, including conditions for persistence or eradication.</p>
      <p>However, the nonlinear nature of epidemic models often renders analytical solutions intractable, necessitating the use of numerical approximation techniques. Standard numerical methods such as the forward Euler and classical Runge-Kutta schemes are widely applied due to their simplicity and computational efficiency. Nevertheless, these methods may fail to preserve essential qualitative properties of epidemiological systems, such as positivity, boundedness, and dynamical consistency, particularly when larger time step sizes are used [9]. Such deficiencies can lead to nonphysical solutions and unreliable long-term predictions.</p>
      <p>To address these limitations, the Nonstandard Finite Difference (NSFD) methodology, introduced by Mickens, has emerged as a powerful alternative numerical framework. The NSFD approach is specifically designed to preserve the essential dynamical features of the continuous system at the discrete level, ensuring that key biological properties - such as positivity of populations, stability of equilibria, and invariance of solution domains-are maintained for all admissible step sizes [10, 11]. This property makes NSFD schemes particularly suitable for epidemiological modeling, where biological realism is essential.</p>
      <p>Recent literature has demonstrated the superiority of NSFD methods in modeling infectious diseases. Applications include typhoid fever dynamics, tuberculosis transmission modeling, and comparative studies of emerging infectious diseases such as monkeypox [12-14]. These studies consistently show that NSFD schemes outperform classical numerical methods by preserving qualitative dynamics and producing stable, biologically meaningful simulations even under coarse discretization.</p>
      <p>Furthermore, recent advancements in computational epidemiology have introduced hybrid modeling approaches that combine mechanistic models with machine learning techniques. In particular, dynamics-informed neural networks have been applied to model COVID-19 transmission, demonstrating improved predictive accuracy by integrating differential equation structures with data-driven learning [15]. While dynamics-informed neural networks provide a data-driven and flexible framework for capturing complex epidemic patterns, they are fundamentally different from NSFD schemes. The NSFD method is a structure-preserving numerical technique designed to maintain the qualitative properties of deterministic models, whereas neural networks focus on predictive accuracy and data assimilation. Therefore, we do not claim the superiority of NSFD over machine learning approaches, but rather emphasize that NSFD serves as a complementary tool for ensuring reliable and biologically consistent numerical simulations.</p>
      <p>In addition, recent developments in mathematical epidemiology have highlighted the importance of delay differential models and advanced stability analysis techniques. For example, delay-induced stability transitions and Hopf bifurcation phenomena have been studied in various applied contexts, providing deeper insight into oscillatory behavior and long-term dynamics [16, 17]. These approaches offer valuable extensions to classical models and motivate future research directions beyond the scope of the present study.</p>
      <p>Motivated by these challenges, we developed a nonlinear SIR-type mathematical model for tuberculosis transmission and proposed a dynamically consistent NSFD scheme for its numerical approximation. The proposed framework ensures the preservation of essential qualitative properties, including positivity, boundedness, and stability, at the discrete level. Moreover, we provide a reliable computational tool for analyzing TB dynamics which could be extended to other nonlinear epidemiological systems where classical numerical methods fail to maintain biological consistency.</p>
    </sec>
    <sec>
      <title>Materials and Methods</title>
      <p>The modeling approach adopted in this study was grounded in classical compartmental epidemiology, where the host population was partitioned into epidemiological classes based on disease status. The formulation was developed under standard assumptions of homogeneous mixing, constant recruitment, and time-invariant parameters, which allowed for tractable analytical and numerical investigation while preserving essential biological realism. Particular attention was given to ensuring that the resulting dynamical system satisfied fundamental epidemiological properties such as positivity, boundedness, and biological feasibility of solutions.</p>
      <p>The mathematical framework was further structured to facilitate the derivation of key epidemiological quantities, including equilibrium points and the basic reproduction number , which served as threshold indicators for disease persistence or elimination. In addition, the system was formulated in a way that supported both qualitative analysis and efficient numerical implementation using structure-preserving computational methods.</p>
      <p>To ensure clarity and reproducibility, all state variables, parameters, and modeling assumptions were explicitly defined in the subsequent subsection. The overall objective of this section was to establish a rigorous and self-consistent mathematical foundation for analyzing the transmission dynamics of tuberculosis and to provide a suitable framework for stability analysis and numerical simulation in the later sections of the paper.</p>
      <p>Mathematical Model of Tuberculosis</p>
      <p>To study the transmission dynamics of tuberculosis (TB), we considered a classical compartmental SIR epidemic model. The total population is partitioned into three mutually exclusive epidemiological classes: susceptible individuals , infectious individuals , and recovered individuals .</p>
      <p>The susceptible class represents individuals who are at risk of contracting TB. The infectious class consists of individuals with active pulmonary tuberculosis who are capable of transmitting the disease. The recovered class includes individuals who have completed treatment and are assumed to have acquired partial or full immunity, depending on the biological assumption of the model.</p>
      <p>The schematic representation of TB transmission dynamics is illustrated in Figure 1.</p>
      <p>Figure 1: Schematic diagram of tuberculosis transmission dynamics.</p>
      <p>Model Formulation</p>
      <p>The transmission dynamics of tuberculosis are governed by the following system of nonlinear ordinary differential equations:</p>
      <p>where represents the total population size.</p>
      <p>The initial conditions are given by:</p>
      <p>Parameter Description</p>
      <p>The biological meaning of each parameter is defined in Table 1.</p>
      <p>Table 1: Description of parameters in the tuberculosis transmission model</p>
      <p>All parameters are assumed to be positive constants. The incidence term represents a standard incidence function under homogeneous mixing assumptions.</p>
      <p>Model Reduction</p>
      <p>Since the recovered class does not influence the dynamics of and directly, the system can be reduced to a two-dimensional subsystem for analytical purposes:</p>
      <p>This reduced system is sufficient for studying key dynamical properties such as equilibrium points, stability analysis, and threshold behavior (basic reproduction number ), which will be investigated in the subsequent sections.</p>
    </sec>
    <sec>
      <title>Results</title>
      <p>Equilibrium Points</p>
      <p>Disease-Free Equilibrium (DFE)</p>
      <p>The DFE represents a state where no infection is present in the population. By setting the infectious class to zero ( ) and solving the steadystate equations ( ) from System (1), the DFE, denoted by , is obtained as:</p>
      <p>This equilibrium represents a healthy population with no infection present and serves as a baseline for disease invasion analysis.</p>
      <p>Endemic Equilibrium (EE)</p>
      <p>The EE occurs when the disease persists in the population . By setting and from System (2) and assuming , expressions for , and can be derived. Due to algebraic complexity, the detailed derivation is omitted here but is included in the full analysis. The existence of a unique endemic equilibrium is guaranteed when the basic reproduction number exceeds unity ( ).</p>
      <p>Basic Reproduction Number</p>
      <p>The basic reproduction number is a fundamental epidemiological threshold that determines whether the infection will die out or become endemic. As discussed by Ochwach and Okongo [18], the next-generation matrix method is a robust approach for deriving in complex epidemic models. It reflects the average number of secondary infections produced by a single infectious individual in a fully susceptible population.</p>
      <p>We calculate using the next-generation matrix method. At the DFE, the matrices for new infection and transition are:</p>
      <p>The basic reproduction number, which is the spectral radius of the next-generation matrix , is derived as:</p>
      <p>If , the disease-free equilibrium is stable and the disease will die out. If , the infection will spread, potentially becoming endemic.</p>
      <p>Forward Euler Finite Difference Scheme</p>
      <p>First order differential equations can be solved using the Euler scheme, which is purely numerical. In order to solve the given SIR model, Euler's method is more appropriate [19]. The description of Euler method is given below.</p>
      <p>Finally, we get the Euler scheme:</p>
      <p>As shown in Table 2, the fixed parameter values used in System (1) were selected to investigate the numerical behavior and stability properties of the tuberculosis transmission model under different discretization schemes.</p>
      <p>Table 2: Fixed values of parameters used in system (1)</p>
      <p>It is evident that Euler's method, when applied to the DFE, yields positive numerical results only at very small step sizes. Figure 2 illustrates that increasing the step size leads to numerical instability and non-physical negative solutions. This failure occurs because the Euler scheme treats all terms on the right-hand side explicitly. Consequently, the discrete solution does not inherently enforce the invariant region (positivity and boundedness) of the continuous system. For large , the explicit linear approximations overshoot, causing the solution to leave the feasible domain and eventually diverge. Thus, we conclude that the stability and positivity of the Euler scheme cannot be maintained at higher step sizes.</p>
      <p>Figure 2: Mathematical results of SIR epidemic system (1) gained by Euler pattern through (a) , (b) , (c) and (d) . All parameter values are given in Table 1.</p>
      <p>Runge-Kutta Order 4 (RK-4)</p>
      <p>Due to its precision and ease of use, the Runge-Kutta method is a widely utilized approach for solving ordinary differential equations (ODEs) [20]. Not all derivatives of functions are easy to compute, which is why the Taylor series method relies on calculating them [21]. Let , and , then the RK-4 scheme is represented as follows.</p>
      <p>Step-1:</p>
      <p>Step-2:</p>
      <p>Step-3:</p>
      <p>Step-4:</p>
      <p>Final step:</p>
      <p>Although the RK-4 method achieves higher accuracy than Euler for small step sizes due to its multi-stage implicit averaging, it remains fundamentally an explicit scheme. Figure 3 demonstrates that when the step size exceeds a certain threshold, the RK-4 method also becomes unstable and diverges. The reason is similar to Euler: the scheme does not enforce the model's invariant region (positivity and boundedness) and its stability region in the complex plane is limited. For stiff epidemiological systems like TB transmission, explicit RK-4 cannot guarantee biologically meaningful solutions for large .</p>
      <p>Figure 3: Mathematical results of SIR epidemic system (2) gained by RK-4 structure through (a) , (b) , (c) and (d) . Table 1 contains the values for every other parameter</p>
      <p>NSFD</p>
      <p>Construction of the NSFD Scheme</p>
      <p>Our primary goal in this section is to propose an NSFD scheme for this model. Mickens presents a novel finite difference method. Their dynamical analysis demonstrates that, regardless of the step size, the NSFD scheme maintains the stability properties of all prevailing equilibrium points [22]. The key difference between NSFD and classical methods lies in the implicit (or partially implicit) treatment of nonlinear terms and the use of nonlocal approximations. Specifically, the incidence term is approximated in a way that preserves the conservation laws and positivity of the continuous system. It is possible to construct the NSFD scheme for the continuous dynamical System (2) as shown below:</p>
      <p>Notice the strategic placement of the index: the outflow terms from (the incidence and death) are treated implicitly, while the inflow is kept explicit. Similarly, the equation treats its loss terms implicitly. This implicit formulation prevents the denominator from becoming zero and guarantees that for any positive step size , the updated populations , and remain nonnegative. Moreover, the discrete system preserves the same equilibrium points as the continuous model.</p>
      <p>The initial conditions and of the discrete NSFD SIR system (3) are likewise expected to be nonnegative. To obtain this in explicit form, the discrete NSFD system (3) can be reorganized:</p>
      <p>In this explicit form, all right-hand side terms are positive when the previous iterates are positive. The denominators are always greater than 1 , which acts as a contraction mapping that prevents blow-up. This is fundamentally different from Euler or RK-4, where the new values are computed by adding potentially large multiples of derivatives, leading to overshoot and instability when is large. The NSFD denominator provides a natural "saturation" effect, keeping the solution within the feasible region for any step size .</p>
      <p>Since all parameters in (3) are positive, it is proven that and for all and for any . This qualitative behavior of the NSFD scheme, including the preservation of positivity and stability for different step sizes, is illustrated in Figure 4.</p>
      <p>Figure 4: Mathematical results of SIR epidemic system (2) obtained by NSFD structure through (a) , (b) , (c) and (d) . All remaining parameter values are given in Table 1</p>
      <p>Local Stability Analysis for the Discrete NSFD Scheme</p>
      <p>We consider the following functions to demonstrate that DFE and DEE points are locally asymptotically stable (LAS):</p>
      <p>Theorem 1 If , then the DFE point of the NSFD structure (3) is LAS for all .</p>
      <p>Proof Let us consider the Jacobian matrix:</p>
      <p>We compute the partial derivatives:</p>
      <p>Substituting these values into equation :</p>
      <p>The eigenvalues are clearly shown by the aforementioned matrix:</p>
      <p>Since both eigenvalues are strictly less than 1 in magnitude for any , the DFE is locally asymptotically stable for the discrete NSFD system whenever , regardless of the step size. This is in sharp contrast to explicit methods, whose stability depends critically on being sufficiently small.</p>
      <p>This verifies that if , then the DFE point is locally asymptotically stable; conversely, if , it is not.</p>
      <p>In the next section, we discuss the application of the Schur-Cohn criterion [23, 24], which plays a significant role in analyzing the local stability of the disease-endemic equilibrium point .</p>
      <p>Lemma 2 (Schur-Cohn Criterion) The solutions of the equation satisfy for if and only if the conditions listed below are met:</p>
      <p>,</p>
      <p>,</p>
      <p>, where and represent the determinant and trace of the Jacobian matrix, respectively.</p>
      <p>Theorem 3 If , then the endemic equilibrium point of the NSFD structure (3) is LAS for all .</p>
      <p>Proof Let us consider the Jacobian matrix at :</p>
      <p>By substituting and , and then putting the DEE point into (5), we obtain:</p>
      <p>where , and . Here .</p>
      <p>The eigenvalues of are determined by the characteristic equation:</p>
      <p>where</p>
      <p>The following outcomes are derived:</p>
      <p>Due to , we have:</p>
      <p>It is clear that .</p>
      <p>Through straightforward calculation, it is shown that if , then:</p>
      <p>Thus, all three Schur-Cohn conditions are satisfied for any whenever . This proves that the NSFD scheme preserves the local asymptotic stability of the endemic equilibrium without any step-size restriction. Classical explicit methods cannot guarantee this property.</p>
      <p>If for any step size , then the endemic equilibrium point is locally asymptotically stable according to the Schur-Cohn criterion presented in Lemma 1.</p>
      <p>3.5.3 Global Stability Analysis of the Discrete NSFD System</p>
      <p>Now, using the appropriate Lyapunov function, we can examine the global stability of disease-free and disease-endemic equilibria.</p>
      <p>Theorem 4 If , then the DFE point of the discrete NSFD scheme (3) is globally asymptotically stable.</p>
      <p>Proof Let us consider the following discrete Lyapunov function:</p>
      <p>where . Using the first and second equations of System (3), we can derive (6). Now:</p>
      <p>Using the Enatsu et al. criterion [25,26], , we obtain:</p>
      <p>Certainly, if , then for all . This shows that is a monotonic decreasing sequence. Since , we have and ( . Consequently, we obtain and . It is clear that if , then . Thus, we conclude that is globally asymptotically stable.</p>
      <p>Theorem 5 If , then the endemic equilibrium point of the NSFD system (3) is globally asymptotically stable for any step size .</p>
      <p>Proof We apply the Enatsu et al. [26] criterion to establish necessary conditions for the global stability of . For this, the discrete Lyapunov function is defined as follows:</p>
      <p>where and . Equation (7) is created by substituting the first and second equations into the Lyapunov function.</p>
      <p>The global stability behavior of the NSFD scheme for different step sizes is illustrated in Figure 5.</p>
      <p>Figure 5: Mathematical results of SIR system (2) achieved from NSFD structure through (a) , (b) , (c) , (d)</p>
      <p>Now:</p>
      <p>Let us denote , and . Then (8) can be expressed as:</p>
      <p>Using the definition of , we obtain:</p>
      <p>Thus, is a monotonic decreasing sequence. We can demonstrate that by using the same methods as in Theorem 3. As a result, for all , we obtain and . The proof is thus conclusive.</p>
      <p>3.6 Comparative Numerical Performance</p>
      <p>To further demonstrate the effectiveness of the NSFD scheme, we conducted a comparative analysis with the classical Euler and RK-4 methods. Table 3 presents the relative error values for all three methods at different time steps. It is evident that the NSFD scheme maintains accuracy and positivity even at larger step sizes, unlike the Euler and RK-4 schemes which diverge or yield biologically invalid (negative) values. The fundamental reason, as established above, is that the NSFD scheme employs a nonlocal implicit discretization of the nonlinear incidence term and treats loss terms implicitly. This approach enforces the invariant region of the continuous model at the discrete level, guaranteeing that the numerical solution remains bounded and positive for any step size . In contrast, Euler and RK-4 are purely explicit methods that approximate derivatives linearly; their stability regions are finite, so when exceeds the stability limit (approximately where is the largest eigenvalue of the system's Jacobian), the numerical solution becomes unstable and blows up.</p>
      <p>As shown in Table 3, when increases from 0.1 to 1, both Euler and RK-4 become unstable or diverge, while the NSFD method remains stable and accurate. This confirms that the NSFD scheme provides robust numerical solutions suitable for long-term simulations of TB dynamics, whereas the other methods fail to retain essential properties under coarse discretization due to their explicit nature and lack of structure-preserving design.</p>
      <p>Table 3: Comparison of Euler, RK-4, and NSFD methods in terms of error, stability, and positivity at different step sizes.</p>
    </sec>
    <sec>
      <title>Discussion</title>
      <p>The findings of this study demonstrate that the NSFD scheme significantly outperforms classical numerical methods (Euler and RK-4) in preserving the essential qualitative properties of tuberculosis transmission dynamics. While Euler and RK-4 methods are computationally simple and widely used, they fail to maintain positivity and stability when larger time steps are employed a critical limitation for long-term epidemiological simulations where computational efficiency is important. The threshold parameter derived in this study provides a practical metric for public health intervention planning. However, the real-world applicability of the NSFD scheme's stability results must be interpreted in light of the model's underlying assumptions and limitations.</p>
      <p>Impact of Modeling Limitations on NSFD Stability Results</p>
      <p>The theoretical stability results proved for the NSFD scheme-namely, the preservation of positivity, boundedness, and asymptotic stability of equilibria for any step size -are mathematically rigorous under the assumptions of the proposed SIR model. However, each acknowledged limitation of the model affects how these stability results translate to real-world tuberculosis transmission. Below, we analyze each limitation separately.</p>
      <p>Permanent immunity assumption: The model assumes that recovered individuals acquire permanent immunity and cannot be reinfected. In reality, TB reinfection is well-documented, particularly in high-burden settings. From the perspective of NSFD stability, this assumption has two opposing effects. First, it overestimates the effectiveness of recovery in reducing the susceptible population, which may lead to an underestimation of the true and an overestimation of the stability region of the disease-free equilibrium. Consequently, the NSFD scheme would predict disease elimination under conditions where, in reality, reinfection would sustain transmission. Second, however, the NSFD scheme's ability to preserve stability for any step size is a structural property of the discrete scheme itself, not contingent on the biological accuracy of the immunity assumption. Therefore, while the scheme remains dynamically consistent with the model, the model's deviation from biological reality means that the NSFD-predicted stability thresholds may not match real-world epidemiological thresholds. This limitation does not reduce the numerical reliability of NSFD but rather highlights the need to extend the model to include reinfection and waning immunity.</p>
      <p>Homogeneous mixing assumption: The model assumes that all individuals mix uniformly and have equal contact rates. In real populations, contact patterns are heterogeneous, age-structured, and influenced by social networks, geography, and behavior. The NSFD stability analysis relies on the standard incidence term , which implicitly assumes homogeneous mixing. Under heterogeneous mixing, the effective reproduction number and the stability properties of the system can differ significantly, with certain subgroups (e.g., healthcare workers, densely populated households) acting as high-transmission cores that sustain endemicity even when the population-average is below unity. The NSFD scheme, as constructed, would still preserve positivity and stability for any step size when applied to a homogeneous model, but it cannot capture the stabilizing or destabilizing effects of heterogeneity. Therefore, the NSFD results are most applicable to well-mixed populations (e.g., small communities, schools, or institutional settings) and should be extended using age-structured or network-based models for heterogeneous populations.</p>
      <p>Parameter values not representing all settings (e.g., Afghanistan): The parameter values used in numerical simulations (Table 1) were obtained from the literature and may not accurately reflect the epidemiological conditions of specific regions, particularly Afghanistan, where factors such as malnutrition, delayed diagnosis, limited healthcare access, high population density, and co-morbidities (e.g., HIV, diabetes) significantly alter transmission dynamics. From the perspective of NSFD stability, the scheme's mathematical properties (positivity, boundedness, step-size independence) are parameter-agnostic-they hold for any positive parameter values. However, the biological interpretation of the stability results is parameter-dependent. For example, if the true TB-induced death rate in Afghanistan is lower than the literature value used, or if the natural recovery rate is overestimated due to poor treatment adherence, the true may be substantially higher than our computed value. Consequently, the NSFD scheme would still produce stable, positive solutions, but the predicted equilibrium (disease-free vs. endemic) might be incorrect. The robustness of NSFD lies in its ability to reliably simulate the dynamics given the parameters, but accurate parameter estimation for specific regions remains a critical prerequisite for practical applicability.</p>
      <p>In summary, the NSFD scheme preserves the mathematical stability properties of the model regardless of step size. However, the model's simplifications (permanent immunity, homogeneous mixing) and the use of generic parameter values mean that the NSFD-predicted stability thresholds and long-term dynamics may deviate from real-world TB transmission. These limitations do not diminish the NSFD scheme's numerical superiority over Euler and RK-4, but they do define its scope of applicability: the NSFD method is most reliable for comparative studies, sensitivity analyses, and simulations where the model structure is accepted as a reasonable approximation. For high-fidelity predictions in specific regions like Afghanistan, the NSFD framework should be extended with more realistic model components (see Future Directions) and calibrated with local data.</p>
      <p>Future Directions</p>
      <p>Building on the limitations discussed above, future work should extend the NSFD framework to address each modeling shortcoming while preserving dynamical consistency. First, to address the permanent immunity limitation, an SIRS model (incorporating waning immunity and reinfection) or a model with an explicit latent compartment (SEIR) should be developed, and dynamically consistent NSFD schemes for these extended models should be constructed. Second, to address homogeneous mixing, network-based or age-structured NSFD formulations should be explored, potentially using operator-splitting techniques to preserve stability. Third, to improve parameter relevance for specific settings like Afghanistan, future studies should undertake systematic parameter estimation using local epidemiological data, including contact surveys, treatment outcome studies, and mortality surveillance. Additional promising directions include:</p>
      <p>Fractional-order derivatives for memory effects in TB incidence</p>
      <p>Spatio-temporal dynamics for geographic spread of drug-resistant strains</p>
      <p>Stochastic NSFD schemes for demographic variability in low-incidence settings</p>
      <p>Optimal control strategies integrated with NSFD for intervention optimization</p>
      <p>Delay differential equation models with NSFD to capture treatment and progression delays</p>
    </sec>
    <sec>
      <title>Conclusion</title>
      <p>The impact of treatment on TB patients is profound, particularly at the level of recovery; the greater the emphasis on therapeutic parameters, the more likely it is for TB patients to achieve successful recovery. In this study, we derived the basic reproduction number, which is essential for examining both the local and global stability of disease-free (DFE) and endemic equilibrium (DEE) points using discrete Lyapunov and monotonic criteria.</p>
      <p>Although Euler and RK-4 methods provide basic numerical approximations, they exhibit limited convergence and fail to preserve positivity at larger step sizes, resulting in instability. To address these limitations, we developed a nonstandard finite difference (NSFD) scheme that is not only mathematically consistent but also biologically meaningful, as it preserves the essential features of the continuous TB model across all step sizes.</p>
      <p>Unlike the Euler and RK-4 methods, which yield divergence and biologically invalid (negative) outcomes at coarse time steps, the NSFD scheme guarantees positivity, stability, and convergence regardless of step size. Furthermore, the NSFD method maintains the dynamical integrity of the TB model, ensuring reliable long-term simulations-a feature critical for accurate disease prediction.</p>
      <p>Theoretical results confirm that the DFE and DEE points are locally and globally asymptotically stable under specific criteria, supported by discrete Lyapunov analysis and the Schur-Cohn condition. This advancement strengthens the model's applicability for real-world epidemiological planning and makes it suitable for policy simulations and long-term disease forecasting, especially in resource-limited settings. Finally, the proposed framework provides a solid foundation for future research, including extensions to fractional-order, fuzzy logic-based, and spatio-temporal epidemic models, where preserving biological realism and mathematical robustness remains vital.</p>
    </sec>
    <sec>
      <title>Acknowledgments</title>
      <p>The authors would like to express their sincere gratitude to the Department of Mathematics, Faculty of Science, Herat University, for providing the necessary academic environment and support to carry out this research.</p>
    </sec>
    <sec>
      <title>Funding</title>
      <p>No external funding was received for this study.</p>
    </sec>
    <sec>
      <title>Conflict of interest</title>
      <p>The authors declare that they have no competing interests.</p>
      <p>Code availability</p>
      <p>MATLAB codes used for numerical simulations are available from the corresponding author upon reasonable request.</p>
    </sec>
    <table-wrap id="T1">
      <label>Table 1</label>
      <table>
        <tr>
          <th></th>
          <th>Vol. 2, No. 1, Apr 2026, pp. 103-120</th>
          <th></th>
        </tr>
      </table>
    </table-wrap>
    <table-wrap id="T2">
      <label>Table 2</label>
      <table>
        <tr>
          <th>A R ART I C L E I N F O</th>
          <th>A B S T R A C T</th>
        </tr>
        <tr>
          <td>Type: Original Article Received: 17/03/2026 Accepted: 15/04/2026 *Corresponding Author: Zabihullah Movaheedi E-mail address: z.movaheedi2@gmail.com DOI: https://doi.org/10.64444/sjbs.38</td>
          <td>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. Keywords: Tuberculosis; Susceptible–Infected–Recovered (SIR); Stability analysis, Nonstandard finite difference (NSFD); Dynamical consistency</td>
        </tr>
      </table>
    </table-wrap>
    <table-wrap id="T3">
      <label>Table 3</label>
      <table>
        <tr>
          <th>Parameter</th>
          <th>Description</th>
          <th>Biological meaning</th>
        </tr>
        <tr>
          <td></td>
          <td>Recruitment rate</td>
          <td>Births or immigration into susceptible class</td>
        </tr>
        <tr>
          <td></td>
          <td>Transmission rate</td>
          <td>Effective contact rate between and</td>
        </tr>
        <tr>
          <td></td>
          <td>Natural death rate</td>
          <td>Non-disease related mortality</td>
        </tr>
        <tr>
          <td></td>
          <td>TB-induced death rate</td>
          <td>Disease-specific mortality of infected individuals</td>
        </tr>
        <tr>
          <td></td>
          <td>Natural recovery rate</td>
          <td>Spontaneous recovery without treatment</td>
        </tr>
        <tr>
          <td></td>
          <td>Treatment-induced recovery rate</td>
          <td>Recovery due to medical intervention</td>
        </tr>
      </table>
    </table-wrap>
    <table-wrap id="T4">
      <label>Table 4</label>
      <table>
        <tr>
          <th>Parameter</th>
          <th>Symbol</th>
          <th>Value</th>
        </tr>
        <tr>
          <td>Transmission rate</td>
          <td></td>
          <td>5.6</td>
        </tr>
        <tr>
          <td>Recruitment rate</td>
          <td></td>
          <td>1.5</td>
        </tr>
        <tr>
          <td>Natural death rate</td>
          <td></td>
          <td>0.5</td>
        </tr>
        <tr>
          <td>TB-induced death rate</td>
          <td></td>
          <td>8.89</td>
        </tr>
        <tr>
          <td>Natural recovery rate</td>
          <td></td>
          <td>2.9</td>
        </tr>
        <tr>
          <td>Treatment rate</td>
          <td></td>
          <td>0.02</td>
        </tr>
        <tr>
          <td>Total population</td>
          <td></td>
          <td>1</td>
        </tr>
      </table>
    </table-wrap>
    <table-wrap id="T5">
      <label>Table 5</label>
      <table>
        <tr>
          <th>Method</th>
          <th>Error at</th>
          <th>Error at</th>
          <th>Stability</th>
          <th>Positivity</th>
        </tr>
        <tr>
          <td>Euler</td>
          <td>0.19</td>
          <td>Divergent</td>
          <td>Unstable</td>
          <td>Not guaranteed</td>
        </tr>
        <tr>
          <td>RK-4</td>
          <td>0.07</td>
          <td>Divergent</td>
          <td>Unstable</td>
          <td>Not guaranteed</td>
        </tr>
        <tr>
          <td>NSFD</td>
          <td>0.03</td>
          <td>0.04</td>
          <td>Stable</td>
          <td>Guaranteed</td>
        </tr>
      </table>
    </table-wrap>
  </body>
  <back>
    <ref-list>
      <ref id="R1">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R2">
        <mixed-citation>Centers for Disease Control and Prevention.: Tuberculosis 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.</mixed-citation>
      </ref>
      <ref id="R3">
        <mixed-citation>Pai M DD Behr MA. Tuberculosis. Nat Rev Dis Primers. 2016;2:16076. https: //doi.org/10.1038/nrdp.2016.76.</mixed-citation>
      </ref>
      <ref id="R4">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R5">
        <mixed-citation>Gandhi NR DK Nunn P. Multidrug-resistant tuberculosis. Lancet. 2010;375(9728):1830-1843. https://doi.org/10.1016/S0140-6736(10)60410-7.</mixed-citation>
      </ref>
      <ref id="R6">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R7">
        <mixed-citation>HW H. The mathematics of infectious diseases. SIAM Rev. 2000;42(4):599-653. https://doi.org/10.1137/S0036144500371907.</mixed-citation>
      </ref>
      <ref id="R8">
        <mixed-citation>Diekmann O RM Heesterbeek JAP. The construction 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.</mixed-citation>
      </ref>
      <ref id="R9">
        <mixed-citation>JC B. Numerical methods for ordinary differential equations. 3rd ed. Chichester: Wiley; 2016.</mixed-citation>
      </ref>
      <ref id="R10">
        <mixed-citation>RE M. Nonstandard finite difference models of differential equations. Singapore: World Scientific; 1994.</mixed-citation>
      </ref>
      <ref id="R11">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R12">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R13">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R14">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R15">
        <mixed-citation>Movaheedi Z SN Sharifi AK. Dynamics-informed neural network modeling of COVID-19 in Afghanistan. Afghan J Infect Dis. 2025;3(2):177-192. https://doi. org/10.60141/ajid.114.</mixed-citation>
      </ref>
      <ref id="R16">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R17">
        <mixed-citation>Zhang Y CX Liu H. Delay-induced stability transitions and Hopf bifurcation in pollutant models. Symmetry. 2026;18(3):404. https://doi.org/10.3390/ sym18030404.</mixed-citation>
      </ref>
      <ref id="R18">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R19">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R20">
        <mixed-citation>Kamruzzaman M NM. A comparative study on numerical solution of initial value problem. J Comput Math Sci. 2018;9(5):493-500.</mixed-citation>
      </ref>
      <ref id="R21">
        <mixed-citation>Necasova G SV Veigend P. Taylor series method in numerical integration. In: Proc Int Conf Informatics; 2022. p. 1-6.</mixed-citation>
      </ref>
      <ref id="R22">
        <mixed-citation>MT H. Nonstandard finite difference methods preserving Lyapunov functions. arXiv. 2023;2312.01471.</mixed-citation>
      </ref>
      <ref id="R23">
        <mixed-citation>Aguirre-Hernandez B MRJ Frias-Armenta ME. Geometry and dynamics of the Schur-Cohn stability algorithm. Math Control Signals Syst. 2019;31:1-25. https: //doi.org/10.1007/s00498-019-00245-8.</mixed-citation>
      </ref>
      <ref id="R24">
        <mixed-citation>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.</mixed-citation>
      </ref>
      <ref id="R25">
        <mixed-citation>Muroya Y KT Enatsu Y. Global stability for a multi-group SIRS epidemic model. Nonlinear Anal Real World Appl. 2013;14(3):1693-1704. https://doi.org/ 10.1016/j.nonrwa.2012.11.005.</mixed-citation>
      </ref>
      <ref id="R26">
        <mixed-citation>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.</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>
