Sensitivity analysis using Physics-informed neural networks
John M. Hanna, José V. Aguado, Sebastien Comas-Cardona, Ramzi Askri, Domenico Borzacchiello
TL;DR
This work addresses local sensitivity analysis for PDE solutions by augmenting Physics-informed neural networks (PINN) with SA-PINN, a derivative-regularized loss that targets a neighborhood around a nominal parameter $\hat{\mu}$. The neural network receives space, time, and parameter inputs, but collocation points are kept in space-time only, while automatic differentiation yields $\partial u/\partial \mu$ from the augmented loss. The key contributions are the SA-PINN formulation, its ability to compute sensitivities for multiple parameters, and demonstrated accuracy in problems with moving boundaries or sharp gradients across 1D and 2D domains including porous-media two-phase flows. The results show SA-PINN often matches or exceeds parametric PINN performance with substantially lower computational cost, making it practical for local sensitivity analysis and design-oriented studies in complex PDE systems. The approach has potential impact for uncertainty quantification and optimization tasks where parameter perturbations are small and localized.
Abstract
The goal of this paper is to provide a simple approach to perform local sensitivity analysis using Physics-informed neural networks (PINN). The main idea lies in adding a new term in the loss function that regularizes the solution in a small neighborhood near the nominal value of the parameter of interest. The added term represents the derivative of the loss function with respect to the parameter of interest. The result of this modification is a solution to the problem along with the derivative of the solution with respect to the parameter of interest (the sensitivity). We call the new technique SA-PNN which stands for sensitivity analysis in PINN. The effectiveness of the technique is shown using four examples: the first one is a simple one-dimensional advection-diffusion problem to show the methodology, the second is a two-dimensional Poisson's problem with nine parameters of interest, and the third and fourth examples are one and two-dimensional transient two-phase flow in porous media problem.
