Wound-healing reaction-diffusion model
We model a growth factor concentration $u(x,t)$ and an inflammatory cell density $v(x,t)$ on $(x,t)\in[0,1]\times[0,1]$:
$$\frac{\partial u}{\partial t} - D_u \frac{\partial^2 u}{\partial x^2} - k_{pro,u}\, v + k_{deg,u}\, u = 0$$
$$\frac{\partial v}{\partial t} - \mathbf{D_v} \frac{\partial^2 v}{\partial x^2} - \mathbf{k_{pro,v}}\, v\left(1 - \frac{v}{V_{max}}\right) + \mathbf{k_{clear,v}}\, u v = 0$$
with $u(x,0)=0.01$, $v(x,0)=0.8\exp\!\left(-(x-0.5)^2/0.1^2\right)$ and zero-flux (Neumann) boundaries.
The inverse problem: infer the posterior over $\boldsymbol{\theta}=\{D_v, k_{pro,v}, k_{clear,v}\}$ from sparse, noisy measurements
$\mathcal{D}=\{(x_i,t_i,u_i,v_i)\}_{i=1}^{N_{data}}$.
Bayesian PINN
A tanh feed-forward network $\mathcal{N}_{\boldsymbol{\phi}}:(x,t)\mapsto(\hat u,\hat v)$ with dropout after every activation captures model uncertainty (MC Dropout).
Each unknown parameter gets a Gaussian variational posterior $q_{\boldsymbol{\lambda}}(\boldsymbol{\theta})$. A fresh sample $\boldsymbol{\theta}_s\sim q_{\boldsymbol{\lambda}}$
is drawn on every forward pass to evaluate the PDE residuals. Training minimizes the negative ELBO:
$$\mathcal{L}_{\text{total}} = \underbrace{w_{data}\mathcal{L}_{\text{data}} + w_{ic}\mathcal{L}_{\text{ic}} + w_{bc}\mathcal{L}_{\text{bc}} + w_{pde}\,\mathbb{E}_{\boldsymbol{\theta}_s\sim q_{\boldsymbol{\lambda}}}\!\left[\mathcal{L}_{\text{pde}}(\boldsymbol{\theta}_s)\right]}_{\mathcal{L}_{\text{recon}}} + \beta\, D_{KL}\!\left(q_{\boldsymbol{\lambda}}(\boldsymbol{\theta})\,\|\,p(\boldsymbol{\theta})\right)$$
We use weights $\{w_{data}, w_{ic}, w_{bc}, w_{pde}\} = \{100, 10, 10, 1\}$, ramp $\beta$ linearly from $0$ to $10^{-6}$,
and train for 35,000 epochs with Adam in PyTorch.