Physics Informed Machine Learning


Physics Informed Machine Learning

Hope
Welcome back to our series on physics-informed machine learning. Today we're looking at one of the most exciting frontiers in ML: how to bring physical knowledge into our models, and how to use ML to discover new physics.

Corey
I've been looking forward to this. The idea that we can actually bake in centuries of physics—like conservation laws, symmetries—and also learn new governing equations from data… that's a game changer. Where do we start?

Hope
Let's start with a concrete example: a pendulum. Traditional ML might take a video and use an autoencoder to compress it into a few latent variables—just to reconstruct the video. But physics-informed ML goes further: we want to learn not just the coordinates, like the angle theta, but also a differential equation for how that angle evolves in time—like the damped pendulum equation.

Corey
So we're essentially learning both the right representation and the dynamics at the same time. And that applies across many systems—fluid flows, materials, robotics. But how do we actually embed physics? In the lecture, Steve Brunton broke it into five stages of ML.

Hope
Right. The first stage is defining the problem. If you decide to model the forces on a pendulum, you're already using Newton's second law—that's physics baked in through the problem statement. Similarly, you could aim to learn a Hamiltonian or a free energy potential.

Corey
And stage two is curating the data. This is huge. The coordinates you choose can make or break the learning. Remember the geocentric vs. heliocentric view of the solar system? Data from the wrong coordinate system is nearly impossible to model. Also, you can augment your data with symmetries—like rotating images of cars for classification, since orientation shouldn't matter.

Hope
Exactly. Stage three is the architecture. Here you have a zoo of options: Lagrangian neural networks that enforce Euler-Lagrange equations, SINDy autoencoders that promote sparsity and parsimony, and architectures designed to be invariant to Galilean transformations—like for turbulent flows. These inductive biases steer the model toward physically meaningful solutions.

Corey
And then stage four, the loss function. Probably the most famous example is the physics-informed neural network, or PINN. You take your neural network's output, compute the terms in the known PDE, and add that residual as an extra loss term. Suddenly you can train with far less data because the physics is guiding the learning.

Hope
But adding physics as a loss term is a suggestion, not a constraint. That's where stage five—optimization—comes in. You can use constrained optimization, like Lagrange multipliers or constrained least squares, to enforce conservation laws exactly. For incompressible flows, you can encode energy conservation so that it's satisfied to numerical precision.

Corey
And throughout all of this, symmetries and parsimony keep coming up. Symmetries like translation, rotation, and reflection are fundamental to physics—they show up in quantum wells, fluid dynamics, even protein folding. And parsimony, the idea that models should be as simple as possible but no simpler, is a principle from Aristotle to Einstein.

Hope
The lecture also stressed the importance of benchmarks. In classic ML, standard datasets like ImageNet drove progress. For physics-informed ML, we need benchmark problems where we can test our methods—static datasets of dynamical systems and even interactive simulations where we can close the control loop. Digital twins are a big part of that vision.

Corey
And it's not just about engineering applications. There's a deeper point: by applying ML to physical problems where we know the answer, we can move from alchemy to chemistry—from guess-and-check to principled design of machine learning methods. The history of science teaches us that shift—astrology to astronomy, alchemy to chemistry. We're at that inflection point now.

Hope
Absolutely. Physics-informed ML is already transforming fields like climate science, drug discovery, and materials design. And as Steve said, it's a fantastic time to be a researcher—there are so many open problems and a huge potential impact. So we'll be diving into each of the five stages in detail in upcoming episodes.

Corey
I can't wait. We've got a lot to cover: architectures like Fourier neural operators, deep operator networks, and PINNs, plus loss functions, optimization techniques, and real-world case studies. Thanks for joining us for this overview. Let's get started.

Ask anything
We've read this whole study set, so questions about it get the best answers.