Abstract
First principles modeling of physical systems has led to significant technological advances across all branches of science. For nonlinear systems, however, small modeling errors can lead to significant deviations from the true, measured behavior. Even in mechanical systems, where the equations are assumed to be well-known, there are often model discrepancies corresponding to nonlinear friction, wind resistance, etc. Discovering models for these discrepancies remains an open challenge for many complex systems. In this work, we use the sparse identification of nonlinear dynamics (SINDy) algorithm to discover a model for the discrepancy between a simplified model and measurement data. In particular, we assume that the model mismatch can be sparsely represented in a library of candidate model terms. We demonstrate the efficacy of our approach on several examples including experimental data from a double pendulum on a cart. We further design and implement a feed-forward controller in simulations, showing improvement with a discrepancy model.
Introduction: The Challenge of Model Inadequacy
In engineering and physics, modeling a system typically involves a trade-off between two extremes. First-principles modeling derives equations from fundamental laws (e.g., Newton’s or Hamilton’s). While these models are interpretable and respect conservation laws, they frequently omit "real-world" effects such as nonlinear friction, wind resistance, or joint slop. Conversely, black-box data-driven modeling uses machine learning to fit models to data. These can achieve high accuracy but are often opaque, data-hungry, and may violate basic physical principles.
The core issue is model inadequacy: even minor errors in a physical model can lead to massive deviations in predicted behavior, particularly in chaotic or highly nonlinear systems. This research addresses the challenge of bridging the gap when a mathematical model is "mostly right" but lacks the subtle details necessary for high-fidelity prediction and control in a laboratory setting.
Methodology: Sparse Identification of Discrepancies
The proposed approach leverages the Sparse Identification of Nonlinear Dynamics (SINDy) algorithm. SINDy identifies the governing equations of a system by constructing a large library of candidate mathematical terms (e.g., polynomials, trigonometric functions) and using sparse regression to select the minimal set of terms that explain the observed data.
The novel contribution of this work is applying SINDy specifically to the discrepancy (the residual error) between an imperfect physical model and experimental measurements:
- Baseline Model: Start with a simplified physical model (e.g., a pendulum without friction).
- Residual Calculation: Measure the real system and calculate the difference between the observed motion and the model's prediction.
- Sparse Regression: Use SINDy to find a sparse mathematical expression that describes only this error term.
- Hybrid Integration: Combine the original physics model with the SINDy-discovered "correction" term to create a high-fidelity hybrid model.
Experimental Validation
The researchers validated this hybrid approach on two primary systems: a synthetic Van der Pol oscillator and an experimental double pendulum.
Van der Pol Oscillator
The Van der Pol oscillator served as a benchmark to test the method's ability to identify both parameter mismatches (e.g., incorrect damping coefficients) and structural errors (e.g., missing linear terms). The method successfully recovered missing terms and corrected erroneous parameters even when the data contained measurement noise.
Double Pendulum on a Cart
The "hero" experiment involved a physical double pendulum rig equipped with high-resolution encoders. This system is notoriously difficult to model perfectly due to complex friction and damping at the joints.
The hybrid model accurately captured energy dissipation effects that the idealized model missed. When tested on unseen validation data, the SINDy correction significantly reduced prediction error. Furthermore, in a simulated "swing-up" task, a controller utilizing the hybrid model successfully reached the upright position, whereas a controller based on the flawed physical model failed.
Discussion and Key Insights
A primary advantage of this approach is that modeling the "delta" (the discrepancy) is significantly easier than discovering the entire physics of a system from scratch. By focusing on the residual, the library of candidate functions can be smaller, mitigating the "curse of dimensionality."
Furthermore, the corrections are interpretable. Because SINDy produces symbolic equations, engineers can gain physical intuition from the discovered terms—for instance, identifying a specific term as a nonlinear damping component. This represents a form of physics-informed machine learning where the model inherently respects the core structure of the system, using data only to "fill in the blanks" left by idealized assumptions.
Limitations and Future Work
Despite its success, the current framework assumes full-state measurement (positions and velocities), which may not be possible in all real-world scenarios where some variables are latent. Additionally, while Savitzky-Golay filters were used to mitigate noise, SINDy remains sensitive to extreme noise levels. Future research directions include integrating Kalman filters to handle exogenous disturbances and exploring performance with partial state measurements.
Summary updated