Abstract
Estimating the physical properties of objects—such as mass, friction, and elasticity—from visual data is a fundamental challenge in computer vision and robotics. This paper introduces a novel iterative framework that pairs a standard, non-differentiable physics engine with a deep learning-based correction estimator. By treating the physics engine as a black box and learning to predict parameter adjustments rather than absolute values, the system achieves high-precision estimates in just one or two iterations. Experimental results across multiple 2D simulated scenarios demonstrate that the framework achieves over 90% accuracy and significantly outperforms traditional gradient-free optimization methods.
Introduction
For an autonomous agent to interact effectively with the physical world, it must possess an internal model of its environment. Tasks such as grasping a container or navigating a cluttered workspace require an understanding of latent physical properties; a miscalculation of an object's mass or surface friction can lead to dropped items or failed maneuvers.
While differentiable physics engines offer a path to calculating these properties via backpropagation, they are often computationally expensive, complex to implement, and difficult to adapt to new scenarios. Most high-performance physics engines used in industry are "black boxes" that do not provide gradients. This research addresses the challenge of estimating physical properties using these efficient, non-differentiable engines through a "Predict-Simulate-Compare" loop.
Methodology
The Iterative Framework
The proposed system utilizes an iterative refinement process to align a simulation with observed reality. The loop consists of four primary stages:
- Initial Parameterization: The process begins with an initial set of physical parameters ($p_i$), which can be random or based on a default heuristic.
- Simulation: A non-differentiable physics engine (Pymunk) generates a simulated trajectory based on the current parameters.
- Observation: The system observes the "ground truth" video of the actual physical interaction.
- Correction Estimation: A neural network compares the simulated video and the real video. Rather than attempting to guess the absolute mass or friction from scratch, the network predicts the required change ($\Delta p$) to make the simulation more closely match reality.
This "delta-prediction" approach allows the system to iteratively nudge the parameters toward their true values, reaching high precision much faster than single-shot estimation methods.
Architecture
The core of the correction estimator is a 3D ResNet-18 architecture. Unlike standard ResNets that process 2D images, this version utilizes 3D convolutions to capture the temporal dimensions of the video sequences. To handle scenes containing multiple objects, the network focuses on a single object at a time by "marking" it with a specific color in the input frames, allowing the model to isolate specific interactions.
Experimental Setup and Datasets
The framework was evaluated using four custom 2D simulated scenarios, each designed to highlight different physical dynamics:
- Three Colliding Circles: A test of basic collision dynamics and momentum.
- Second-Order Collision: An indirect interaction where one object strikes another, which subsequently hits a third.
- Stacked Boxes: A scenario specifically designed to test the estimation of friction and gravitational stability.
- Bouncing Balls: A multi-object setup with 2 to 6 balls to evaluate the system's scalability and ability to handle complex, chaotic interactions.
Key Insights
The Expressiveness of Motion
A significant finding of this research is that physical properties can only be accurately estimated if the scene "expresses" them. For example, in simple circle collisions, surface friction has a negligible effect on the resulting trajectories, making it nearly impossible to infer. However, in the "Stacked Boxes" scenario, friction is the primary factor determining stability, allowing the network to predict it with high accuracy. This suggests that the choice of observation window is critical for property estimation.
Efficiency and Convergence
By learning to predict adjustments rather than absolute values, the neural network acts as a highly efficient optimizer. Compared to traditional gradient-free methods like Tree-structured Parzen Estimator (TPE), the proposed framework reaches stable, accurate estimates an order of magnitude faster, typically requiring only 1-2 iterations to achieve convergence.
Results and Discussion
The system achieved an estimation error of 10% or less for the majority of parameters across all tested scenarios. Furthermore, the model demonstrated impressive generalization; a model trained on scenes with 2-6 bouncing balls was able to accurately predict the mass in a scene with only one unknown object, despite that specific configuration being absent from the training set.
Robustness tests also indicated that the system maintains high performance even when a Gaussian blur is applied to the observed video. This suggests the framework is capable of handling the visual "fuzziness" and noise inherent in real-world camera data.
Conclusion and Future Work
This research demonstrates that pairing black-box physics engines with deep learning correction estimators is a viable and efficient path for physical property inference. While currently limited to 2D environments, the framework provides a foundation for more complex 3D applications. Future work will focus on integrating more complex rendering pipelines and exploring hybrid models where this iterative method provides a "fast start" for fine-tuning by a differentiable physics engine.
Summary updated