Modeling the Immune Response with Machine Learning: Validation and Computational Cost Analysis of PINNs Compared to Neural Networks and Finite Volume Methods

  • Thiago E. Fernandes UFJF
  • Rodrigo W. dos Santos UFJF
  • Marcelo Lobosco UFJF

Resumo


This work investigates deep neural networks as surrogate models for simulating the spatiotemporal dynamics of the immune response in infectious myocarditis. A reduced PDE model describing pathogen–leukocyte interactions in myocardial tissue is solved using a finite volume method (FVM), whose solutions are used to train conventional neural networks (NNs) and physicsinformed neural networks (PINNs). The approaches are systematically compared in terms of predictive accuracy and computational performance. Results show that conventional NNs reproduce the reference FVM solution more accurately than PINNs, which exhibit excessive smoothing and reduced ability to capture sharp gradients. Despite these differences, neural networks enable significantly faster inference, achieving approximately 6.6× acceleration relative to the GPU-accelerated FVM. The computational advantage becomes most relevant in multi-execution scenarios such as parametric studies, sensitivity analyses, and inverse problems.

Referências

Lourenço, W. d. J., Reis, R. F., Ruiz-Baier, R., Rocha, B. M., Dos Santos, R. W., and Lobosco, M. (2022). A poroelastic approach for modelling myocardial oedema in acute myocarditis. Frontiers in Physiology, 13:888515.

Regazzoni, F., Pagani, S., Salvador, M., Dede’, L., and Quarteroni, A. (2024). Learning the intrinsic dynamics of spatio-temporal processes through latent dynamics networks. Nature Communications, 15(1):1834.

Viceconti, M., Juárez, M. A., Curreli, C., Pennisi, M., Russo, G., and Pappalardo, F. (2019). Credibility of in silico trial technologies—a theoretical framing. IEEE journal of biomedical and health informatics, 24(1):4–13.

Wang, Y.-W.-Y., Liu, R.-B., Huang, C.-Y., Li, H.-Y., Zhang, Z.-X., Li, X.-Z., Liu, J.-L., Zhang, C., Xiong, X., and Niu, Y.-M. (2023). Global, regional, and national burdens of myocarditis, 1990–2019: systematic analysis from gbd 2019: Gbd for myocarditis. BMC Public Health, 23(1):714.
Publicado
01/06/2026
FERNANDES, Thiago E.; SANTOS, Rodrigo W. dos; LOBOSCO, Marcelo. Modeling the Immune Response with Machine Learning: Validation and Computational Cost Analysis of PINNs Compared to Neural Networks and Finite Volume Methods. In: PRÊMIO ARTUR ZIVIANI - CONCURSO DE TESES E DISSERTAÇÕES (MESTRADO) - SIMPÓSIO BRASILEIRO DE COMPUTAÇÃO APLICADA À SAÚDE (SBCAS), 26. , 2026, Ouro Preto/MG. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2026 . p. 127-132. ISSN 2763-8987. DOI: https://doi.org/10.5753/sbcas_estendido.2026.21588.