A Two-Stage Learning PINN Approach for Solving the Inverse Problem of the 1D Porous Medium Equation
Organizations: Department of Physics, American University of Beirut, Lebanon · Department of Mathematics, American University of Beirut, Lebanon
Abstract
The Porous Medium Equation (PME), given by for , is a degenerate nonlinear parabolic partial differential equation that arises in various physical applications such as fluid flow in porous media, heat transfer in plasmas, and population dynamics. It is known for its nonlinear diffusion and finite propagation speed. In this paper, we study numerical solutions of the one-dimensional direct and inverse PME using Physics-Informed Neural Networks (PINNs), and compare them with classical numerical methods and available analytical and manufactured solutions. While PINNs provide a flexible framework for solving both forward and inverse problems, we show that the standard inverse formulation suffers from a strong sensitivity to the initial guess, leading to only local convergence. To address this issue, we propose a novel two-stage PINN training framework for the inverse problem, which significantly improves convergence stability and allows reliable recovery of the unknown parameter even for poor initial guesses. Overall, the proposed approach demonstrates that PINNs are a flexible and accurate alternative to classical methods for the 1D PME, and the introduced two-stage training strategy substantially improves their robustness in inverse problems, providing a solid basis for extensions to more complex geometries and higher-dimensional cases.
Figures & tables
| Parameter | Value |
|---|---|
| Spatial domain | with intervals ( grid points) |
| Time domain | with ( time steps) |
| Tolerance (Newton) | |
| Maximum Newton iterations | per time step |
| Jacobian approximation | Finite differences with perturbation |
| Component | Specification |
|---|---|
| Input layer | Size 2 (for and ) |
| Hidden layers | 4 layers, each with 20 neurons |
| Activation function | Hyperbolic tangent |
| Output layer | Single neuron returning |
| PINN vs Exact | Classical vs Exact | PINN vs Classial | |
|---|---|---|---|
| 2 | 1.774 | 2.475 | 2.591 |
| 3 | 5.378 | 1.557 | 1.315 |
| 4 | 3.394 | 7.232 | 6.404 |
| 5 | 1.575 | 3.652 | 3.322 |
| PINN vs Exact | Classical vs Exact | PINN vs Classical | |
|---|---|---|---|
| 2 | 1.548 | 1.012 | 2.255 |
| 3 | 8.050 | 1.134 | 1.127 |
| 4 | 1.255 | 1.186 | 1.157 |
| 5 | 1.740 | 1.215 | 1.180 |
| PINN vs Exact | Classical vs Exact | PINN vs Classical | |
|---|---|---|---|
| 2 | 2.081 | 1.292 | 1.287 |
| 3 | 2.096 | 1.449 | 1.451 |
| 4 | 3.656 | 1.723 | 1.722 |
| 5 | 5.156 | 2.049 | 1.566 |
| PINN vs Exact | Classical vs Exact | PINN vs Classical | |
|---|---|---|---|
| 2 | 1.586 | 2.715 | 1.636 |
| 3 | 1.651 | 8.514 | 1.311 |
| 4 | 7.679 | 1.437 | 7.074 |
| 5 | 1.505 | 1.802 | 1.420 |
| m | PINN relative error | PINN training time |
|---|---|---|
| 2 | 1.716 | 60.74 |
| 3 | 8.214 | 207.00 |
| 4 | 1.008 | 193.70 |
| 5 | 1.622 | 191.69 |
| m | PINN relative error | PINN training time |
|---|---|---|
| 2 | 1.109 | 69.66 |
| 3 | 1.283 | 71.18 |
| 4 | 6.747 | 71.32 |
| 5 | 2.284 | 46.68 |
| Parameter | Value |
|---|---|
| Optimization algorithm | Interior-point (MATLAB default) |
| Maximum iterations | 50 |
| Optimality tolerance | |
| Lower bound | |
| Upper bound |
| Category | Parameter | Value/Description |
| Training Points ( see Fig 9 ) | n_int (interior points) | 2048 |
| n_sb (spatial boundary points per side) | 256 | |
| n_tb (temporal boundary points) | 256 | |
| n_meas (measurement points) | 15x15 = 225 | |
| Domain | Time domain | [0, 1] |
| Space domain | [-1, 1] |
| true m | initial guess | fmincon relative error | PINN relative error | fmincon time | PINN training time |
| 2 | 0.4 | failed | 1.74% | 2.30 | 228.70 |
| 1 | failed | 4.67% | 0.70 | 238.43 | |
| 3 | 0.28% | 1.07% | 14.50 | 229.50 | |
| 3.6 | 0.28% | 1.71% | 19.88 | 124.91 | |
| 3 | 0.6 | failed | 0.79% | 0.76 | 230.82 |
| 1.5 | 0.37% | 0.52% | 12.52 | 238.57 |
| true m | initial guess | fmincon relative error | PINN relative error | fmincon time | PINN training time |
| 2 | 0.4 | 1.10% | 0.51% | 30.05 | 360.64 |
| 1 | 1.10% | 0.28% | 29.46 | 356.92 | |
| 3 | 1.10% | 0.15% | 16.38 | 298.42 | |
| 3.6 | 1.10% | 0.22% | 34.53 | 354.22 | |
| 3 | 0.6 | 0.07% | 0.14% | 33.93 | 360.07 |
| 1.5 | 0.07% | 0.20% | 24.96 | 362.01 |
| true m | initial guess | fmincon relative error | PINN relative error | fmincon time | PINN training time |
| 2 | 0.4 | 0.85% | 0.94% | 5.38 | 338.86 |
| 1 | 0.85% | 1.37% | 7.32 | 338.78 | |
| 3 | 0.85% | 0.15% | 12.32 | 250.15 | |
| 3.6 | 0.85% | 0.11% | 14.43 | 341.01 | |
| 3 | 0.6 | 0.70% | 0.31% | 9.31 | 352.13 |
| 1.5 | 0.70% | 0.33% | 7.77 | 349.41 |
| true m | initial guess | fmincon relative error | PINN relative error | fmincon time | PINN training time |
| 2 | 0.4 | 0.08% | 6.79% | 107.29 | 379.69 |
| 1 | 0.08% | 2.83% | 110.53 | 382.94 | |
| 3 | 0.08% | 49.85% | 71.56 | 266.39 | |
| 3.6 | 0.08% | 0.15% | 55.11 | 366.76 | |
| 3 | 0.6 | failed | 9.49% | 26.84 | 370.63 |
| 1.5 | 0.27% | 29.66% | 1248.56 | 376.23 |
| Barenblatt | Polynomial | Harmonic | m-dependent | |
|---|---|---|---|---|
| 2 | 0.078 | 0.087 | 0.182 | 0.134 |
| 3 | 0.040 | 0.053 | 0.033 | 0.054 |
| 4 | 0.388 | 0.529 | 0.496 | 0.938 |
| 5 | 0.378 | 0.524 | 0.491 | 1.133 |
| Parameter | Value |
|---|---|
| Noise model | Additive Gaussian, |
| Noise levels | |
| Standard deviation | |
| Perturbed quantity | Measurement dataset only (from direct PINN) |
| Number of perturbed points | |
| Random seed | 42 |
| true m | initial guess | recovered m | PINN relative error | PINN training time s |
|---|---|---|---|---|
| 2 | 0.4 | 2.00 | 0.22% | 338.66 |
| 1.0 | 2.00 | 0.01% | 285.76 | |
| 3.0 | 2.00 | 0.30% | 224.85 | |
| 3.6 | 2.00 | 0.35% | 244.06 | |
| 3 | 0.6 | 3.00 | 0.28% | 341.31 |
| 1.5 | 3.00 | 0.19% | 337.40 |
| true m | initial guess | recovered m | PINN relative error pct | PINN training time s |
|---|---|---|---|---|
| 2 | 0.4 | 2.00 | 0.04% | 355.85 |
| 1 | 1.99 | 0.22% | 254.72 | |
| 3 | 1.99 | 0.02% | 201.63 | |
| 3.6 | 2.00 | 0.40% | 223.58 | |
| 3 | 0.6 | 3.00 | 0.04% | 359.60 |
| 1.5 | 3.00 | 0.07% | 360.32 |
Appendix figures & tables40 assets
Supplementary material from the paper’s appendix.
Appendix
PDE Solving
PDE solving develops numerical and learned methods to approximate solutions of partial differential equations across scientific applications.
See all 249 papers