Physics Informed Machine Learning
Physics Informed Machine Learning - Comprehensive Study Notes
Introduction to Physics Informed Machine Learning
Physics Informed Machine Learning sits at the intersection of artificial intelligence/machine learning and physics. It addresses two complementary goals:
Enforcing known physics into machine learning models to improve performance, generalization, and data efficiency.
Discovering new physics from data using machine learning techniques that humans have never written down.
Traditional machine learning has produced remarkable results in image generation, language translation, and other tasks. However, in engineering and natural sciences—designing aircraft, modeling turbulence, understanding climate, robotics, digital twins—incorporating physical knowledge is essential. The field draws on centuries of accumulated physical principles (conservation laws, symmetries, governing equations) that should not be discarded when building data-driven models.
Key idea: Machine learning is building models from data using optimization and regression. Physics-informed machine learning does the same but with physical knowledge embedded into the process.
The Pendulum Example: Contrasting Traditional and Physics-Informed ML
A simple pendulum mounted on a wall with an accelerometer and LED illustrates the difference.
Traditional ML approach: Take video of the pendulum, use an autoencoder neural network to compress the video into a minimal latent state (red vector), then reconstruct the video from that low-dimensional representation. This learns coordinates for compression but does not explicitly model dynamics.
Physics-informed ML approach: Not only learn the right coordinates (e.g., the angle θ) but also learn the governing differential equation for how those coordinates evolve in time—for instance, the damped pendulum equation:
$$ \ddot{\theta} + \gamma \dot{\theta} + \frac{g}{L} \sin\theta = 0 $$
Two pathways: bake the known equation into the latent state model, or discover the differential equation purely from measurement data.
This example highlights two core ingredients: (1) learning a good coordinate system (e.g., θ versus x,y positions), and (2) learning equations of motion (differential equations describing time evolution).
The Five Stages of Machine Learning
Any machine learning model can be broken into five stages, each of which provides unique opportunities to embed physics into the process—or extract physics from data.
Stage 1: Problem Formulation
Deciding what to model: the inputs and outputs, the relationship to learn. For physical systems, the problem statement itself embeds physics.
Examples of physics-informed problem formulation:
Learning forces on a pendulum: implicitly using F=ma
Learning a Hamiltonian or Lagrangian
Learning a free energy potential
The choice of what to model (e.g., forces, energy, or raw coordinates) determines how physics enters the process.
Stage 2: Data Curation and Gathering
Data from physical systems inherently contains physics. However, the approach to data collection and preprocessing matters greatly.
Data augmentation with symmetries: If the system is invariant to translation, rotation, or scaling, copy the data with these transformations applied. This embeds the physical principle of invariance. For example, rotating images of cars should not change classification.
Coordinate systems matter: A geocentric view of planetary motion makes learning physics difficult; a heliocentric view makes it easy. Curating data often means finding the right coordinate system, either through prior knowledge or learned from data.
The "Google approach": Collecting vast amounts of data from the natural world can force a model to learn physics (like F=ma or E=mc2) just to reconcile observations—but this is expensive. Scientists and engineers typically have limited, targeted datasets.
Stage 3: Architecture Design
Choosing a class of functions (the architecture) that can represent the input-output relationship. This is a rich area for embedding physics through inductive biases.
Examples of physics-informed architectures:
Lagrangian neural networks: Encode the Euler-Lagrange equation structure, so energy is conserved for mechanical systems.
SINDy autoencoders: Learn a low-dimensional coordinate system with an autoencoder, then find the sparsest differential equation in those coordinates (principle of parsimony).
Galilean-invariant networks: Special layers (e.g., an auxiliary tensor input layer) ensure that fluid flow predictions are invariant under Galilean transformations (rotations, translations). These networks dramatically outperform standard deep neural networks.
Parsimony principle: Models should be as simple as possible to describe the data, but no simpler—a 2,000-year-old idea from Aristotle to Einstein.
Architectures are not limited to neural networks; there is a "zoo" of possible approaches. Applying machine learning to physical systems where we sometimes know the answer helps move from alchemy (trial-and-error guessing) to chemistry (principled understanding of when to use which architecture).
Stage 4: Loss Function Crafting
The loss function quantifies how well the model performs and can include physics-based terms.
Common approaches:
Data error term: Standard prediction error (e.g., mean squared error between model output and training data).
Regularization for sparsity: L1 or L0 norms promote parsimonious models—simple equations with few terms.
Physics-informed neural networks (PINNs): Add the residual of the governing partial differential equation (PDE) as a loss term. For example, if the system satisfies the Navier-Stokes equations, compute those equations from the network outputs and minimize their violation.
This allows training with far less data while ensuring the model satisfies known physics—though it only promotes physics satisfaction, not enforces it.
Stage 5: Optimization
Optimization adjusts the parameters of the architecture (e.g., neural network weights) to minimize the loss function averaged over training data.
Enforcing versus promoting physics:
Adding physics as a loss term is a suggestion; it may not be exactly satisfied.
Constrained optimization (e.g., Lagrange multipliers, constrained least squares) enforces physics to numerical precision by design.
For incompressible fluid flows, energy conservation constraints can be built directly into the optimization problem, guaranteeing satisfaction every time.
This stage requires more human effort but gives far better physics imposition.
Symmetries and Physics
Symmetries are a fundamental way physics manifests itself. They include:
Translational symmetry: Laws unchanged under spatial shifts.
Rotational symmetry: Laws unchanged under rotation.
Mirror (reflection) symmetry: Bilateral symmetry.
Gauge symmetries in quantum systems.
Examples of symmetry-based methods:
Physics-informed Dynamic Mode Decomposition (DMD): Constrain solutions to live on a symmetry manifold.
Data augmentation (Stage 2) reflects known symmetries.
Architecture design (Stage 3) makes models invariant to certain transformations.
Symmetries and conservation laws will recur throughout physics-informed machine learning—in fluid dynamics, protein folding, materials science, quantum mechanics, and more.
Applications and Case Studies
The lecture series will explore many applications:
Fluid flows and turbulence: Modeling for aircraft, race cars, ships, wind turbines, climate and weather.
Shape optimization: Designing wings, car bodies, wind turbine blades with optimal lift, drag, and structural properties—a multi-objective optimization problem naturally combined with ML training.
Materials design: New composites, alloys, super materials for engines and fuselages. High-dimensional design space, multi-objective.
Digital twins: A living digital representation of a physical asset (e.g., aircraft, factory floor, robot arm). It must be accurate, updatable with new data, and provide uncertainty estimates. Physics-informed ML is essential for trustworthy digital twins.
Robotics and autonomy: Control and planning of robotic systems.
Drug discovery and protein folding: Governed by physical laws of chemistry.
Climate science: Weather phenomena, climate trends, related to turbulence.
Digital twin concept: A model that combines physics and data, continuously updated, enabling cheaper, faster, and safer engineering design and evaluation.
Benchmarks for Physics-Informed Machine Learning
Classic ML progressed rapidly due to standardized benchmark datasets (e.g., ImageNet). Physics-informed ML needs similar benchmarks for dynamics and control:
Static datasets: Time-series data from dynamical systems (simulated or experimental) where the data does not change.
Interactive benchmarks: Systems where the ML model closes the loop—e.g., controlling a simulated fluid in real time.
Cyber-physical systems: Real laboratory equipment for online training and testing, closer to digital twin goals.
Characteristics needed: ground truth availability, multiple scales, known physics to enforce or discover.
Key Architectures to Be Covered
The series will deep-dive into:
Architecture | Description |
|---|---|
ResNets, UNets | Standard deep learning architectures adapted for physical systems |
Fourier Neural Operators | Learn mappings between function spaces (e.g., from initial condition to solution) |
Deep Operator Networks (DeepONet) | Another operator learning framework |
SINDy (Sparse Identification of Nonlinear Dynamics) | Library regression to discover parsimonious dynamical models |
Parsimonious symbolic regression | Genetic programming or other methods to find simple equations |
Physics-Informed Neural Networks (PINNs) | Add PDE residuals as loss terms |
Lagrangian/Hamiltonian neural networks | Enforce energy conservation |
Autoencoders with dynamics | Learn latent coordinates and differential equations simultaneously |
Each architecture comes with tailored loss functions and training procedures.
Historical Parallels and the Path Forward
The current state of machine learning—especially architecture selection—resembles alchemy: trial-and-error based on intuition, forum posts, and past experience. Applying ML to physics problems where we know the answers can transform this into chemistry: principled, organized understanding of when and why certain architectures work.
Astrology → Astronomy: Moving from superstition to science.
Alchemy → Chemistry: Turning guesswork into reproducible principles.
ML alchemy → ML chemistry: The goal of the field.
This transformation is the mission of the NSF-funded AI Institute in Dynamic Systems and similar efforts worldwide.
Conclusion and Outlook
Physics-informed machine learning is one of the most important developments in modern ML. It enables:
Better models with less data
Generalization beyond training regimes
Discovery of new physical laws
Real-world impact on engineering, climate, medicine, and more
The lecture series will provide focused modules on each stage, architecture, application, and benchmark—moving from overview to deep technical content, including coding examples and case studies.
Final takeaway: Always remember the dual role: enforce known physics into models, and use models to discover unknown physics. Both are essential tools for solving real-world problems.

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