By AllenMcC. - File:HarmOsziFunktionen.jpg, CC BY-SA 3.0, Link
The Struggle of Normal Neural Network is REAL, however Physics Informed Neural Network(PINN) behaves really well.
For a Quantum Harmonic Oscillator, we need to solve the Schrödinger equation: The exact mass values are not taken into consideration, one could take them but we need to scale the values for our model to learn better.
The Schrödinger equation becomes:
Where ( \omega = \frac{k}{m} ).
We know the energy for a Quantum Harmonic Oscillator will be quantized:
The solution for the wavefunction is:
Since we have the governing Partial Differential Equation (PDE), we can calculate the physics loss. The definition of the physics loss is:
We also need to define the boundary loss. Since the wavefunction should be zero at the boundaries, we incorporate this condition into our total loss function.
In Normal Neural Networks (NNNs), we don't typically incorporate these kinds of losses; only data loss is used. However, with Physics-Informed Neural Networks (PINNs), we can describe the underlying physical system. A model that uses physics loss in addition to data loss is expected to perform better than a model that learns solely from data.
The advantage of PINNs becomes evident when we have data from a certain phenomenon that we want to predict. Even with limited data, PINNs can make better predictions by leveraging physical knowledge. This is especially useful for spatio-temporal data, medical applications like MRI scans, etc.
The total loss is a combination of the data loss and the physics loss:
Total Loss = Data Loss + Physics Loss
Where:
where
In my problem, I give chunks of data from the left-hand side of the wavefunction to train the model, and the rest of the wavefunction will be for the model to predict. By observing the curve fitting, we can understand how the model behaves for different wavefunctions in the case of the quantum harmonic oscillator.
Normal Neural Network on the LHS and Physics Informed Neural Network (PINN) on the right learning for quantum harmonic oscillator state n=2
Normal Neural Network on the LHS and Physics Informed Neural Network (PINN) on the right learning for quantum harmonic oscillator state n=3
Normal Neural Network on the LHS and Physics Informed Neural Network (PINN) on the right learning for quantum harmonic oscillator state n=8
The Struggle of Normal Neural Network is REAL, however Physics Informed Neural Network (PINN) behaves really well.