A neural network trained to incorporate physical laws into its learning process, improving accuracy and generalization.A physics-informed neural network (PINN) is a type of artificial neural network that is trained not only on data but also on the governing physical laws of the system it is modeling. Instead of purely learning patterns from input-output pairs, a PINN incorporates the underlying differential equations (like Newton's laws, Maxwell's equations, or the Schrödinger equation) directly into its loss function. This forces the network to produce solutions that are consistent with physics, even in regions where data is sparse or noisy.
The term was coined in a 2019 paper by Maziar Raissi, Paris Perdikaris, and George Em Karniadakis, although earlier works had explored similar ideas. The approach gained rapid popularity because it addresses a key limitation of standard neural networks: their inability to generalize well outside the training data range.
The network takes coordinates (like space and time) as input and outputs the solution to a physical problem (like temperature or velocity). The loss function is a combination of a data-matching term and a physics term. The physics term is computed by taking derivatives of the network's output with respect to its inputs (using automatic differentiation) and plugging them into the governing equation. The residual of this equation is then minimized during training. This allows the network to learn from both data and the laws of nature simultaneously.
PINNs are used in computational fluid dynamics, materials science (predicting stress and strain), medical imaging (solving inverse problems), and quantum chemistry, where they can solve forward and inverse problems faster than traditional numerical solvers.
PINNs can solve the famous Navier-Stokes equations for fluid flow without a single data point, purely by enforcing the physics, which is impossible for a standard neural network.

















