Physics-Informed Neural Networks (PINNs) have emerged as an innovative approach for solving partial differential equations (PDEs) and stochastic partial differential equations (SPDEs). By incorporating the governing physical laws directly into the training of neural networks, PINNs combine data-driven modeling with prior knowledge of the system, making them a powerful tool for solving SPDEs where traditional numerical methods may be computationally intensive or impractical.

1. What are Physics-Informed Neural Networks (PINNs)?

2. Formulation for SPDEs

SPDEs often have the general form:

$\frac{\partial u(t, x)}{\partial t} = \mathcal{L}u(t, x) + \sigma(u(t, x)) \dot{W}(t, x),$

where $\mathcal{L}$ is a differential operator and $\dot{W}(t, x)$ represents a stochastic noise term.

In the context of PINNs, the solution $u(t, x)$ is approximated by a neural network $u_\theta(t, x)$ . The training process involves:

3. Training the Neural Network

The PINN framework defines a composite loss function, typically consisting of:

$L {PDE}=\sum_i\left|\frac{\partial u\theta\left(t_i, x_i\right)}{\partial t}- L u_\theta\left(t_i, x_i\right)-\sigma\left(u_\theta\left(t_i, x_i\right)\right) \dot{W}\left(t_i, x_i\right)\right|^2$

where $(t_i, x_i)$ are sampled points from the domain.

The total loss function $\mathcal{L}{\text{total}}$ *is:

$\mathcal{L}{\text{total}} = \lambda_{\text{PDE}} \mathcal{L}{\text{PDE}} + \lambda{\text{BC}} \mathcal{L}{\text{BC}} + \lambda{\text{data}} \mathcal{L}{\text{data}},$

where $\lambda{\text{PDE}}, \lambda_{\text{BC}},$* and $\lambda_{\text{data}}$ are weights balancing the contributions of each term.

4. Handling Stochastic Terms

For SPDEs, special considerations are needed: