Safe Physics-Informed Machine Learning for Dynamics and Control

Ján Drgona, Truong X. Nghiem, Thomas Beckers, Mahyar Fazlyab, Enrique Mallada, Colin N. Jones, Draguna L. Vrabie, Steven L. Brunton, Rolf Findeisen · DOI

Introduction

Machine learning (ML) has revolutionized the modeling of complex systems, yet its deployment in safety-critical domains—such as robotics, aerospace, and energy management—is often hindered by a lack of formal guarantees. In these environments, a single physically inconsistent prediction or an unstable control action can lead to catastrophic failure. This paper provides a comprehensive roadmap for bridging the gap between flexible, data-driven neural networks and the rigorous requirements of classical control theory. By embedding physical laws and safety constraints directly into the learning process, researchers can develop "Safe Physics-Informed Machine Learning" (Safe PIML) models that are both accurate and provably reliable.

The Core Challenge: Physical Consistency and Safety

Traditional ML models are typically "black boxes" that prioritize pattern recognition over physical reality. In dynamical systems, this can lead to violations of fundamental laws, such as energy conservation, or the proposal of control actions that drive a system into unsafe states. To address these issues, Safe PIML focuses on four primary objectives:

  1. Physical Consistency: Ensuring models adhere to laws like mass/energy conservation or passivity.
  2. Stability: Guaranteeing that the system will return to equilibrium rather than spiraling out of control.
  3. Constraint Satisfaction: Maintaining the system within predefined "safe" operating regions.
  4. Uncertainty Quantification: Providing a measure of confidence so that backup systems can intervene when the model is uncertain.

Methodological Pillars of Safe PIML

The paper categorizes the Safe PIML toolkit into three distinct but interconnected pillars: Dynamics, Control, and Verification.

1. Safe Learning for Dynamics

Rather than using generic architectures, Safe PIML utilizes structural priors to bake physics into the model's DNA:

  • Deep Koopman Operators (DeepKO): These models encode nonlinear systems into a latent space where dynamics appear linear. By constraining the eigenvalues of the learned operator, researchers can enforce global stability by construction.
  • Port-Hamiltonian Neural Networks (PHNN): These architectures are designed to respect energy-based principles, ensuring that the learned system is inherently passive and dissipative.
  • Universal Differential Equations (UDEs): UDEs combine known physical equations with neural network components that learn the "missing" or unknown parts of the dynamics, ensuring the model remains grounded in established science.

2. Safe Learning for Control

To ensure safe interaction with the environment, the paper highlights two primary strategies:

  • Predictive Safety Filters (PSF): This "guardian" approach places a safety layer on top of any controller (including black-box Reinforcement Learning agents). The PSF uses a predictive model to verify if a proposed action is safe; if a violation is detected, it minimally adjusts the action to keep the system within bounds.
  • Neural Lyapunov and Barrier Functions: These methods involve learning mathematical "certificates" alongside a control policy. Lyapunov functions provide proofs of stability, while Barrier functions guarantee that the system will never enter prohibited states.

3. Safety Verification

Verification provides the formal proof that a system will behave as expected under worst-case scenarios:

  • Reachability Analysis: This involves calculating the "reachable set"—the collection of all possible future states—to ensure they never intersect with unsafe regions.
  • MILP-based Verification: By mapping ReLU-based neural networks to Mixed-Integer Linear Programming (MILP) problems, researchers can identify the absolute worst-case behavior of a controller, providing non-probabilistic safety guarantees.

Key Insights and Practical Implementation

A central theme of the tutorial is that physical constraints serve as a powerful inductive bias. Embedding these constraints does more than just ensure safety; it acts as a form of regularization that allows models to learn faster and generalize better from smaller datasets.

Furthermore, the paper emphasizes the utility of Gaussian Processes (GPs) for uncertainty quantification. Because GPs are closed under linear operators, they are uniquely suited for physics-informed tasks where the relationship between a state and its derivative (velocity) must be maintained. For implementation, the authors point to the NeuroMANCER library, an open-source resource designed to facilitate the development of these constrained ML models.

Results and Benchmarks

The paper illustrates the efficacy of these methods through several qualitative benchmarks:

  • Stability Guarantees: DeepKO models using SVD-based factorization have demonstrated 100% stability in identified nonlinear systems.
  • Statistical Safety: Physics-constrained motion prediction (PCMP) combined with Conformalized Quantile Regression creates statistically valid "safety bubbles" around robotic trajectories.
  • Global Optimality: MILP-based verification offers rigorous guarantees that standard simulation-based testing cannot match, identifying edge cases that might otherwise go unnoticed.

Limitations and Future Directions

Despite significant progress, several "grand challenges" remain:

  • Conservatism: Safe controllers can often be "too safe," leading to sluggish performance. Balancing safety with efficiency remains an open problem.
  • Scalability: Formal verification methods often struggle with the "curse of dimensionality" when applied to high-dimensional systems like humanoid robots.
  • Safe Exploration: Developing methods that allow agents to learn through experience without experiencing catastrophic failures during the training phase is a critical area for future research.

Ultimately, the future of the field lies in the co-design of learning, control, and verification, moving away from fragmented workflows toward a unified framework for trustworthy AI.

Summary updated

BibTeX
@inproceedings{drgona2025safe,
  author = {Ján Drgona and Truong X. Nghiem and Thomas Beckers and Mahyar Fazlyab and Enrique Mallada and Colin N. Jones and Draguna L. Vrabie and Steven L. Brunton and Rolf Findeisen},
  title = {{Safe Physics-Informed Machine Learning for Dynamics and Control}},
  booktitle = {ACC},
  year = {2025},
  doi = {10.23919/acc63710.2025.11107836},
}
Figure