Citation: | Shahbaz Ahmad, Gunesh Kumar, Manuel De la Sen. JOINT COMPUTATIONAL STUDY OF GLOBAL STABILITY AND PARAMETER ESTIMATION IN SEIR MODELS USING A PHYSICS-INFORMED NEURAL NETWORK[J]. Journal of Applied Analysis & Computation, 2026, 16(1): 426-457. doi: 10.11948/20250153 |
This study presents a Physics-Informed Neural Network (PINN) framework for simulating disease dynamics governed by the Susceptible-Exposed-Infectious-Recovered (SEIR) model. Utilizing a fully connected neural network implemented in PyTorch, the approach employs automatic differentiation to enforce initial conditions and solve the system of ordinary differential equations (ODEs) associated with the SEIR model. The PINN is trained using a composite loss function that integrates boundary conditions with physics-based constraints, allowing for accurate modeling of the temporal evolution of all SEIR compartments. Beyond forward simulation, this work addresses the inverse problem of parameter estimation specifically, identifying the time-dependent contact rate using temporal epidemiological data. By training the network on observed data for the susceptible, exposed, infectious, and recovered populations, the model approximates the solution vector and simultaneously minimizes a loss that combines data fidelity with the residual of the SEIR system. A key contribution of this study is the numerical demonstration of the SEIR system's global stability without assuming a constant population size, achieved via a generalized Lyapunov theorem. Additionally, physical constraints embedded directly into the learning process enhance the model's ability to inform control strategies and ensure long-term system stabilization. This machine learning-based framework offers a robust and flexible tool for both understanding disease spread and conducting real-time epidemiological inference. It highlights the potential of PINNs for solving complex inverse problems, improving predictive accuracy, and supporting data-driven decision-making in public health. The code can be downloaded from
[1] | A. Abta, A. Kaddar and H. T. Alaoui, Global stability for delay SIR and SEIR epidemic models with saturated incidence rates, Electronic Journal of Differential Equations, 2012, 2012(23), 1–13. |
[2] | A. Abta, H. Laarabi and H. T. Alaoui, The Hopf bifurcation analysis and optimal control of a delayed SIR epidemic model, International Journal of Analysis, 2014, 2014(1), 940819. |
[3] | H. N. Agiza and M. T. Yassen, Synchronization of Rossler and Chen chaotic dynamical systems using active control, Physics Letters A, 2001, 278(4), 191–197. doi: 10.1016/S0375-9601(00)00777-5 |
[4] | R. Anderson, Infectious Diseases of Humans: Dynamics and Control, Cambridge University Press, 1991. |
[5] | R. M. Anderson and R. M. May, Population biology of infectious diseases: Part I, Nature, 1979, 280, 361–367. doi: 10.1038/280361a0 |
[6] | H. Baty, Solving stiff ordinary differential equations using physics informed neural networks (PINNs): Simple recipes to improve training of vanilla-PINNs, arXiv preprint, 2023. arXiv: 2304.08289. |
[7] | N. G. Bulgakov and B. S. Kalitin, A generalization of theorems of Ljapunov's second method, I. Theory, Vesci Akad. Navuk BSSR Ser. Fiz. -Mat. Navuk, 1978, 3(3), 32–36. |
[8] | A. I. K. Butt, W. Ahmad, H. G. Rabbani, M. Rafiq, S. Ahmad, N. Ahmad and S. Malik, Exploring optimal control strategies in a nonlinear fractional bi-susceptible model for Covid-19 dynamics using Atangana-Baleanu derivative, Scientific Reports, 2024, 14(1), 31617. doi: 10.1038/s41598-024-80218-3 |
[9] | X. Chen and S. Zhang, An SEIR model for information propagation with a hot search effect in complex networks, Mathematical Biosciences and Engineering, 2022, 20(1), 1251–1273. doi: 10.3934/mbe.2023057 |
[10] | O. Diekmann and J. A. P. Heesterbeek, Mathematical epidemiology of infectious diseases: Model building, analysis and interpretation, John Wiley & Sons, 2000, 5. |
[11] | O. Diekmann, J. A. P. Heesterbeek and J. A. J. Metz, On the definition and the computation of the basic reproduction ratio $R_0$ in models for infectious diseases in heterogeneous populations, Journal of Mathematical Biology, 1990, 28, 365–382. |
[12] | K. Dietz and J. A. P. Heesterbeek, Daniel Bernoulli's epidemiological model revisited, Mathematical Biosciences, 2002, 180(1–2), 1–21. doi: 10.1016/S0025-5564(02)00122-0 |
[13] | P. Van den Driessche and J. Watmough, Reproduction numbers and sub-threshold endemic equilibria for compartmental models of disease transmission, Mathematical Biosciences, 2002, 180(1–2), 29–48. doi: 10.1016/S0025-5564(02)00108-6 |
[14] | V. Grimm, A. Heinlein, A. Klawonn, M. Lanser and J. Weber, Estimating the time-dependent contact rate of SIR and SEIR models in mathematical epidemiology using physics-informed neural networks, Electron. Trans. Numer. Anal., 2022, 56, 1–27. |
[15] | J. A. Haider, S. Ahmad, R. Alroobaea and I. E. Elseesy, Applications of the Homotopy-based Fourier transform method for the dynamic solutions of differential equations, Modern Physics Letters B, 2025, 39(12), 2450462. doi: 10.1142/S0217984924504621 |
[16] | P. Hartman, A lemma in the theory of structural stability of differential equations, Proceedings of the American Mathematical Society, 1960, 11(4), 610–620. doi: 10.1090/S0002-9939-1960-0121542-7 |
[17] | S. He, Y. Peng and K. Sun, SEIR modeling of the COVID-19 and its dynamics, Nonlinear Dynamics, 2020, 101(3), 1667–1680. doi: 10.1007/s11071-020-05743-y |
[18] | J. M. Heffernan, R. J. Smith and L. M. Wahl, Perspectives on the basic reproductive ratio, Journal of the Royal Society Interface, 2005, 2(4), 281–293. doi: 10.1098/rsif.2005.0042 |
[19] | H. W. Hethcote, The mathematics of infectious diseases, SIAM Review, 2000, 42(4), 599–653. doi: 10.1137/S0036144500371907 |
[20] | M. J. Keeling and P. Rohani, Modeling Infectious Diseases in Humans and Animals, Princeton University Press, 2008. |
[21] | W. O. Kermack and A. G. McKendrick, A contribution to the mathematical theory of epidemics, Proceedings of the Royal Society of London, Series A, Containing Papers of a Mathematical and Physical Character, 1927, 115(772), 700–721. |
[22] | H. K. Khalil, Nonlinear systems, 2002, 3. |
[23] | P. V. Kokotović, I. Kanellakopoulos and A. S. Morse, Adaptive feedback linearization of nonlinear systems, Foundations of Adaptive Control, 2006, 309–346. |
[24] | A. Korobeinikov, Lyapunov functions and global properties for SEIR and SEIS epidemic models, Mathematical Medicine and Biology: A Journal of the IMA, 2004, 21(2), 75–83. doi: 10.1093/imammb/21.2.75 |
[25] | A. Korobeinikov, Lyapunov functions and global stability for SIR and SIRS epidemiological models with non-linear transmission, Bulletin of Mathematical Biology, 2006, 68, 615–626. doi: 10.1007/s11538-005-9037-9 |
[26] | A. Korobeinikov, Global properties of infectious disease models with nonlinear incidence, Bulletin of Mathematical Biology, 2007, 69, 1871–1886. doi: 10.1007/s11538-007-9196-y |
[27] | M. Krstić, I. Kanellakopoulos and P. V. Kokotović, Nonlinear and adaptive control design, (No Title), 1995. |
[28] | C. Li, X. Lü, J. Gong and Y. Lei, Extended SEIR model of COVID-19 spread focusing on compartmental flow in England, Nonlinear Dynamics, 2025, 113, 971–988. doi: 10.1007/s11071-024-09748-9 |
[29] | M. Y. Li and J. S. Muldowney, Global stability for the SEIR model in epidemiology, Mathematical Biosciences, 1995, 125(2), 155–164. doi: 10.1016/0025-5564(95)92756-5 |
[30] | M. Y. Li, H. L. Smith and L. Wang, Global dynamics of an SEIR epidemic model with vertical transmission, SIAM Journal on Applied Mathematics, 2001, 62(1), 58–69. doi: 10.1137/S0036139999359860 |
[31] | T. Liao and S. Tsai, Adaptive synchronization of chaotic systems and its application to secure communications, Chaos, Solitons & Fractals, 2000, 11(9), 1387–1396. |
[32] | E. Madenci and I. Guven, The Finite Element Method and Applications in Engineering Using ANSYS®, Springer, 2015. |
[33] | A. Mannan, J. Ul Rahman, Q. Iqbal and R. Zulfiqar, Design of periodic neural networks for computational investigations of nonlinear hepatitis C virus model under boozing, Computation, 2025, 13(3), 66. doi: 10.3390/computation13030066 |
[34] | A. Mannan, N. Shoket, J. Ul Rahman and R. Uwitije, Dynamic analysis of ebola virus disease with non-linear incidence rate using morlet wavelet neural networks and hybrid optimization techniques, Modeling Earth Systems and Environment, 2025, 11(2), 79. doi: 10.1007/s40808-024-02256-0 |
[35] | F. Mortaji, A. Abta, H. Laarabi and M. Rachik. Global stability analysis, stabilization and synchronization of an SEIR epidemic model, International Journal of Control, 2024, 1–15. |
[36] | N. Mustafa, J. Ul Rahman, U. Ishtiaq and I. Popa, Artificial neural network-based approach for dynamic analysis and modeling of Marburg virus epidemics for health care, Symmetry, 2025, 17(4), 578. doi: 10.3390/sym17040578 |
[37] | N. Mustafa, J. Ul Rahman and A. Omame, Modelling of Marburg virus transmission dynamics: A deep learning-driven approach with the effect of quarantine and health awareness interventions, Modeling Earth Systems and Environment, 2024, 1–21. |
[38] | X. Ning, L. Jia, Y. Wei, X. Li and F. Chen, Epi-DNNs: Epidemiological priors informed deep neural networks for modeling COVID-19 dynamics, Computers in Biology and Medicine, 2023, 158, 106693. doi: 10.1016/j.compbiomed.2023.106693 |
[39] | A. N. Njah and O. D. Sunday, Synchronization of identical and non-identical 4-D chaotic systems via Lyapunov direct method, International Journal of Nonlinear Science, 2009, 8(1), 3–10. |
[40] | M. Nuno, Z. Feng, M. Martcheva and C. Castillo-Chavez, Dynamics of two-strain influenza with isolation and partial cross-immunity, SIAM Journal on Applied Mathematics, 2005, 65(3), 964–982. doi: 10.1137/S003613990343882X |
[41] | J. Rahman, DiffGrad for physics-informed neural networks, arXiv preprint, 2024. arXiv: 2409.03239. |
[42] | M. Raissi, P. Perdikaris and G. E. Karniadakis, Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations, Journal of Computational Physics, 2019, 378, 686–707. doi: 10.1016/j.jcp.2018.10.045 |
[43] | A. Rasool, J. Ul Rahman and R. Uwitije, Enhancing molecular property prediction with quantized GNN models, Journal of Cheminformatics, 2025, 17(1), 1–19. doi: 10.1186/s13321-024-00939-5 |
[44] | M. De la Sen, R. P. Agarwal, A. Ibeas and S. Alonso-Quesada, On a generalized time-varying SEIR epidemic model with mixed point and distributed time-varying delays and combined regular and impulsive vaccination controls, Advances in Difference Equations, 2010, 2010, 1–42. |
[45] | M. De la Sen, R. P. Agarwal, A. Ibeas and S. Alonso-Quesada, On the existence of equilibrium points, boundedness, oscillating behavior and positivity of a SVEIRS epidemic model under constant and impulsive vaccination, Advances in Difference Equations, 2011, 2011, 1–32. |
[46] | J. Sirignano and K. Spiliopoulos, DGM: A deep learning algorithm for solving partial differential equations, Journal of Computational Physics, 2018, 375, 1339–1364. |
[47] | J. T. Spooner, M. Maggiore, R. Ordonez and K. M. Passino, Stable adaptive control and estimation for nonlinear systems: Neural and fuzzy approximator techniques, John Wiley & Sons, 2004. |
[48] | T. T. Tran, Nonlinear Flight Control Design Using Backstepping Methodology, Old Dominion University, 2016. |
[49] | B. Wang and G. Wen, On the synchronization of a class of chaotic systems based on backstepping method, Physics Letters A, 2007, 370(1), 35–39. |
[50] | W. Wang, J. Xin and F. Zhang, Persistence of an SEIR model with immigration dependent on the prevalence of infection, Discrete Dynamics in Nature and Society, 2010, 2010(1), 727168. |
[51] | Z. Wang, C. T. Bauch, S. Bhattacharyya, A. d'Onofrio, P. Manfredi, M. Perc, N. Perra, M. Salathé and D. Zhao, Statistical physics of vaccination, Physics Reports, 2016, 664, 1–113. |
[52] | E. Weinan, The dawning of a new era in applied mathematics, Notices of the American Mathematical Society, 2021, 68(4), 565–571. |
[53] | P. J. Witbooi, S. M. Vyambwera and M. U. Nsuami, Control and elimination in an SEIR model for the disease dynamics of COVID-19 with vaccination, AIMS Mathematics, 2023, 8(4), 8144–8161. |
[54] | Z. Yang, Z. Zeng, K. Wang, S. Wong, W. Liang, M. Zanin, P. Liu, X. Cao, Z. Gao and Z. Mai, Modified SEIR and AI prediction of the epidemics trend of COVID-19 in China under public health interventions, Journal of Thoracic Disease, 2020, 12(3), 165. |
[55] | M. T. Yassen. Chaos control of chaotic dynamical systems using backstepping design, Chaos, Solitons & Fractals, 2006, 27(2), 537–548. |
[56] | B. Yu. The deep Ritz method: A deep learning-based numerical algorithm for solving variational problems, Communications in Mathematics and Statistics, 2018, 6(1), 1–12. |
[57] | Z. Zhang, J. Wu, Y. Suo and X. Song. The domain of attraction for the endemic equilibrium of an SIRS epidemic model, Mathematics and Computers in Simulation, 2011, 81(9), 1697–1706. |
This schematic illustrates a typical neural network structure. The input layer consists of a single input variable, represented by one neuron as
A Physics-Informed Neural Network (PINN) that is intended to estimate the solution of an ordinary differential equation (ODE) is shown in this picture. The neural network architecture shown in the previous figure is employed to assess the residual of the ordinary differential equation (ODE) by utilizing
Results by using RK4 and PINNs.
Results by using RK4 and PINNs.
Comparison of results obtained using RK4 and PINNs.
Comparison of results obtained using RK4 and PINNs.
Comparison of results obtained using RK4 and PINNs.
Comparison of results obtained using RK4 and PINNs.
Comparison of results obtained using RK4 and PINNs.
Comparison of results obtained using RK4 and PINNs.
Estimates for