EXPERIMENT 02 / PHYSICS-INFORMED LEARNING
Give a network
a little physics.
Two networks. The same observations. One extra equation.
LEARN A FIELD u(x,t)
Beyond the measurements
The dashed line is the exact solution. Train to add network predictions.
Ordinary NN losses
Equation residual is measured, but never used to train this network.
PINN losses
Objective = data MSE + initial MSE + λ × equation MSE.
Where physics breaks
Absolute equation residual |uₜ + 0.5uₓ − 0.01uₓₓ| across space and time. White dots mark measurements.
CHECK THE WHOLE SOLUTION
Loss is only part of the story
Both networks use periodic sine/cosine inputs, so the field and its spatial derivatives match at x = 0 and x = 1 by construction. Boundary matching is not a soft training penalty.
The initial sine profile is supplied at 32 positions to both networks. The exact solution is used for synthetic observations and evaluation, never as a full-field training target.
Compare your runs
Completed runs in this tab. Try seeds 1, 2, and 3 before drawing conclusions. RMSE is measured at unobserved times.
| Seed | Data | Noise | λ | Steps | NN RMSE | PINN RMSE |
|---|
THE EXTRA INFORMATION
The equation becomes a teacher.
Measurements tell a network what happened at a few points. The PINN also checks its derivatives at 48 sampled space–time locations per step. It learns to reduce violations of the transport equation, including where there are no measurements.
Set λ to zero for a control experiment: the two networks should train identically. Raise the noise or change the seed to see how reliable the advantage is.
INSPIRED BY BEN MOSELEY
So, what is a physics-informed neural network?
Moseley’s 2022 thesis, Physics-informed machine learning: from concepts to real-world applications, motivates the emphasis on fair baselines, convergence, and computational cost.
This is a new implementation for a smooth transport problem. PINNs are not guaranteed to converge or outperform numerical solvers. Training minimizes residuals; it does not formally verify a solution.