Introduction
Deriving the fundamental laws of physics from observation is a cornerstone of scientific inquiry. While traditional methods rely on manual modeling, the rise of data-driven discovery has introduced algorithms like Sparse Identification of Nonlinear Dynamics (SINDy) to automate the derivation of governing equations from time-series data. However, a significant gap remains: most real-world observations are captured as raw video rather than clean trajectories. Bridging the "pixels-to-physics" divide requires overcoming coordinate mismatches, observational noise, and the inherent "black-box" nature of deep learning models.
This research introduces an unsupervised end-to-end framework capable of "watching" a video of a physical system and outputting the underlying ordinary differential equations (ODEs) in a human-readable, closed-form format.
Methodology
The proposed architecture integrates coordinate learning with symbolic regression through four primary components:
- Coordinate-Consistent Autoencoder: A U-Net-based encoder identifies moving objects within a frame, compressing high-dimensional pixel data into low-dimensional spatial coordinates $\mathbf{x}_s$. A corresponding decoder ensures these coordinates are sufficient to reconstruct the original video frame, maintaining spatial fidelity.
- Spatial-Physical Transformation (SPT): Because pixel coordinates rarely align perfectly with the natural axes of a physical law, the SPT module learns a mapping from pixel space to a latent "physical state" space $\mathbf{x}_p$. This module accounts for translation, rotation, and scaling.
- Sparse Regression Module: Inspired by the SINDy algorithm, this module maintains a library of candidate mathematical terms (e.g., $x, y, x^2, \sin(x)$). It performs sparse regression to identify the simplest combination of terms that describes the observed motion.
- Physics-Informed Constraint: The framework uses the discovered equations to forecast the system's state using a 4th-order Runge-Kutta integrator. The model is trained by minimizing the discrepancy between these physical forecasts and the actual video frames.
Physics as a Regularizer
A key insight of this work is that the governing equation acts as a powerful regularizer. By forcing the autoencoder to find coordinates that obey a parsimonious mathematical law, the system becomes robust to video noise. The joint optimization allows localization and physics discovery to mutually reinforce one another: accurate physics requires precise localization, and consistent localization is guided by the underlying physical laws.
Experimental Results
The framework was evaluated on synthetic videos of six classic nonlinear dynamical systems, including the Duffing, Van der Pol, and Cubic oscillators. These systems were superimposed on complex backgrounds to simulate realistic sensing conditions.
The model successfully recovered the exact mathematical structure and near-exact coefficients (typically within 1-2% of ground truth) for all tested systems. Ablation studies confirmed that the Spatial-Physical Transformation (SPT) is critical; without it, the model struggles to reconcile rigid pixel grids with the natural symmetries of physical motion. Furthermore, the end-to-end approach proved more robust than "two-step" methods that attempt to extract trajectories before discovering equations, as the latter often suffer from error accumulation.
Discussion and Limitations
While this framework represents a significant advance in automated discovery, several challenges remain. The current implementation assumes a static background and a single moving object. Extending the model to handle dynamic backgrounds, multiple interacting objects, or 3D dynamics from 2D monocular video (which involves perspective projection and occlusion) is a primary goal for future work. Additionally, the discovery process is constrained by the predefined library of candidate functions; discovering laws involving transcendental or non-elementary functions would require expanding this library or adopting more flexible symbolic search techniques.
Despite these limitations, the ability to derive interpretable, closed-form equations directly from raw visual data marks a transition toward truly autonomous scientific discovery.
Summary updated