Spring-Gaus

Reconstruction and Simulation of Elastic Objects with Spring-Mass 3D Gaussians (ECCV 2024)

https://arxiv.org/abs/2403.09434


Background

Figure

Physics-Informed Neural Networks(PINNs)

: Neural networks designed to satisfy PDEs (partial differential equations) or physical laws. Unlike ordinary neural networks, they are trained by incorporating physical laws into the loss function.

Basic structure of PINNs

  • Input & Output:
    • Input: Position (x, y, z) and time (t)
    • Output: Physical quantities such as temperature, velocity, pressure, etc.
  • Loss function:
    • Data Loss: Difference from experimental or simulation data
    • PDE Residual Loss: Evaluates whether the PDE is satisfied through differential operations
    • Boundary Condition Loss: Reflects initial and boundary conditions

Material Point Method(MPM)

Figure

  • A physical simulation technique. First introduced in 1994 as a method for solving solid mechanics problems.
  • Adopts a hybrid approach using both particles and grids, representing object deformation more naturally.
  • However, information exchange between particles and the grid is required, and in high-resolution scenes the number of particles grows large, making the computational cost very high.

Spring-Mass System

: A physical model that simulates the motion of elastic bodies.

Figure

  • Components
    • Mass points
      • Act as particles representing the actual object
      • Each mass point has physical properties such as mass, position, and velocity
    • Springs
      • Connect the mass points to one another
      • Follow Hooke’s law and generate an elastic restoring force
      • Springs have a specific rest length, and when deformed, a restoring force acts
      • Vibration can be suppressed by adding a damping factor
  • Hooke’s Law: When a spring is deformed, a restoring force acts to return it to its original length

    \[F = -k\left( \Vert x_i - x_j \Vert - l_{ij} \right) \hat{d}\]
    • \(\hat{d}\): direction unit vector

      \[\hat{d} = \frac{x_i - x_j}{\Vert x_i - x_j\Vert }\]
  • Damping Force: A damping force that reflects the resistance present in real objects to suppress excessive vibration

    \[F_\zeta = -\zeta\left(v_i - v_j\right)\]
    • \(\zeta\): damping coefficient
    • \(ν_i, ν_j\): velocity of the connected mass point

    → The larger the velocity difference, the greater the resistance force, reducing vibration

  • Newton’s Second Law: Each mass point moves under the force provided by the springs and external forces

    \[ma = \Sigma F\]

    → As time progresses, the position and velocity are repeatedly updated, simulating the motion of the elastic body

Problem Setting

3DGS & its Dynamic Extensions (4DGS, D-3DGS, etc.):

  • Able to capture the changes of an object over time
  • Focused on reconstruction & view synthesis
  • Since it cannot grasp the physical properties of the reconstructed objects, it cannot predict subsequent changes

Integration of Physics-based priors into 3D Reconstructions (PAC-NeRF, etc.):

  • Attempts to integrate physics-based priors through physics solvers such as MPM
  • Limited ability to handle heterogeneous real-world objects:
    • Builds models based only on specific, predefined material properties
    • Can only assign a single global physical parameter to the entire object

Motivation & Contribution

What to Expect from Physical Dynamics Model:

  • Expressive enough to capture the motions of elastic objects
  • Collisions, Deformations, Bouncing
  • Efficient enough to inverse parameter estimation through gradient-based optimization

What to Expect from Spring-Gaus:

  • Expressive & Efficient 3D Spring-Mass model
  • Effective Optimization by decoupling of the Geometry Reconstruction and Physical Dynamics Reconstruction
  • Future Prediction & Simulation availability, as well as 3D Reconstruction

Architecture

Figure

  • Using the standard 3DGS approach, a static Gaussian is first created based on the first frame of the multi-view video.
    • Unlike the anisotropic 3DGS, the Gaussian kernels take an isotropic form.
  • Anchor points are extracted for each Gaussian via volume sampling.
    • The still-static Gaussians are refined so that the object’s appearance can be represented more consistently during simulation.
  • Dynamic reconstruction is performed. The simulation is applied to the ‘anchor points’.
  • Based on this, the positions of the Gaussian kernels are updated.
  • Once optimization is complete, a simulatable 3D object is generated.

Approach

Appearance and Geometry Representation

\[\begin{aligned} G(\boldsymbol{\tau}) &= e^{-\frac{1}{2}(\boldsymbol{\tau})^{T}\Sigma^{-1}(\boldsymbol{\tau})},\\ \Sigma' &= JW\Sigma W^{T}J^{T},\\ C &= \sum_{i\in N} T_i \alpha_i \boldsymbol{c}_i, \end{aligned}\]
  • Represented in the same manner as ordinary 3D Gaussians
  • However, since each Gaussian kernel is isotropic, the covariance matrix Σ can be controlled by a single scalar

Physics-Based Dynamics

\[\begin{aligned} \boldsymbol{A} &= \{\boldsymbol{x}_i\}_{i=1}^{N_A} = \mathcal{V}(\boldsymbol{X}),\\ \boldsymbol{L} &= \{l_{i,j}\}_{i=1,j=1}^{N_A,n_k} = \mathrm{knn}(\boldsymbol{A}, \boldsymbol{A}, n_k),\\ \{d_{i,j}\}_{i=1,j=1}^{N,n_b} &= \mathrm{knn}(\boldsymbol{X}, \boldsymbol{A}, n_b). \end{aligned}\]
  • Spring-Gaus does not assume the object’s material type from the outset
  • Components of the 3D Spring-Mass Model:
    • Anchor points A: mass points
      • Property: mass, velocity
    • Springs L: springs connecting each mass point to its neighboring points
      • Property: Stiffness, Damping factor
  • The distance between neighboring mass points is determined by the k-NN method
  • Subsequently, in order to move the centers of the Gaussian kernels, the distance between each Gaussian center and mass point is also measured using the k-NN method

Forces

: Two types. Composed of restoring force + damping force, each derived from the Hooke’s law and damping force formulas in the Background.

  1. Restoring force

    Basically, the Hooke’s law formula is applied:

\[F = -k\left(\Vert x_i - x_j \Vert - l_{ij}\right)\hat{d}\] \[\begin{aligned} &\textbf{Spring stiffness adjustment:} \\ &\qquad \eta_j = \begin{cases} 1 & j \le n_c, \\ \mathrm{clamp}\left(2 - \exp(\mathrm{softplus}(\kappa))^{j-n_c}, 0, 1\right) & n_c < j \le n_k. \end{cases} \\[8pt] &{\boldsymbol{F}_{\boldsymbol{k}}}^{t}_{i,j} = -\eta_j \cdot k_{i,j} \left( \Vert \boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t \Vert - l_{i,j} \right) \frac{\boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t}{\Vert \boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t \Vert} \cdot \left\vert \, \Vert \boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t \Vert - l_{i,j} \right\vert^{p_k}, \\[8pt] &\textbf{Term for the nonlinear restoring force:} \\ &\qquad p_k = 0: \text{ linear spring (Hooke's law)} \\ &\qquad p_k > 0: \text{ nonlinear spring, growing exponentially with the gap} \end{aligned}\]
  1. Damping force

    Derived from the damping force formula:

\[F_\zeta = -\zeta\left(v_i - v_j\right)\] \[\boldsymbol{F}{\boldsymbol{\zeta}}_{i,j}^{t} = \left( -\zeta_{i,j}\left(\boldsymbol{v}_i^t - \boldsymbol{v}_{i,j}^t\right)\frac{\boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t}{\left\Vert \boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t\right\Vert } \right) \cdot \frac{\boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t}{\left\Vert \boldsymbol{x}_i^t - \boldsymbol{x}_{i,j}^t\right\Vert }\]

⇒ Ultimately, the force acting on each mass point is determined by \(n_k\) the sum of restoring forces between nearest mass points + the sum of damping forces + gravity

\[\boldsymbol{F}_i^t = \sum_{j=1}^{n_k} \boldsymbol{F}\boldsymbol{k}_{i,j}^t + \sum_{j=1}^{n_k} \boldsymbol{F}\boldsymbol{\zeta}_{i,j}^t + m_i \boldsymbol{g}.\]

Optimization

\[\mathcal{L} = (1 - \lambda_{\text{d-ssim}})\mathcal{L}_1 + \lambda_{\text{d-ssim}}\mathcal{L}_{\text{d-ssim}},\]
  • The loss uses the same approach as 3DGS

1. Static Reconstruction

Figure

  • Similar to 3DGS, optimizes the color, opacity, size, and position of each Gaussian kernel

2. Refining 3D Gaussians

Figure

  • In the process of correcting the Gaussian center positions according to the position and velocity of the mass points, the appearance of the Gaussians changes slightly
  • Therefore, to maintain a consistent Gaussian shape, the parameters of the Gaussians (except for their center coordinates) are refined in advance in the static state.

3. Dynamic Reconstruction

Figure

  • The initial velocity of each mass point, spring stiffness, number of spring connections, boundary condition parameters, and the global damping coefficient (all springs share a single damping coefficient) are learned
  • The mass of the mass points, the nonlinear spring stiffness coefficient, the minimum number of spring connections, and the gravitational acceleration are fixed hyperparameters

Here, the position and velocity of each anchor point are updated first, boundary conditions are applied to the updated position and velocity, and then based on this the position and velocity of the Gaussians are updated:

\[\begin{aligned} &\textbf{Mass-point position and velocity update} \\ &\qquad \hat{\boldsymbol{v}}_i^{t+1} = \boldsymbol{v}_i^t + \frac{\boldsymbol{F}_i^t}{m_i} \Delta t, \qquad \hat{\boldsymbol{x}}_i^{t+1} = \boldsymbol{x}_i^t + \boldsymbol{v}_i^{t+1} \Delta t, \\ &\qquad \boldsymbol{x}_i^{t+1}, \boldsymbol{v}_i^{t+1} = \mathcal{B}(\hat{\boldsymbol{x}}_i^{t+1}, \hat{\boldsymbol{v}}_i^{t+1}). \\[6pt] &\longrightarrow\ \textbf{Gaussian position and velocity update} \\ &\qquad \boldsymbol{\mu}_i^{t+1} = \frac{\sum_{j=1}^{n_b} \boldsymbol{x}_{i,j}^{t+1} \cdot \left(1/(d_{i,j})^{p_b}\right)}{\sum_{j=1}^{n_b} \left(1/(d_{i,j})^{p_b}\right)}, \end{aligned}\]

Experiments

Implementation Details

  • When generating the initial point cloud, using SfM results causes the Gaussians to concentrate on the object surface, so they are instead generated by uniform sampling within a cube
  • When constructing the real-world dataset, a Registration Network is used to synchronize the Gaussians in the static scene with the Gaussians in the dynamic scene

Results: Reconstruction & Prediction on Synthetic Dataset

Figure

Results: Reconstruction & Prediction on Real-world Dataset

Figure

The dataset was created by the authors themselves

Results: Environment Editing

Figure

Limitation

  • Because the spring lengths are fixed, it is limited to modeling elastic bodies.
  • It only goes as far as simulating a single object
  • Lack of better real-world datasets with high spatiotemporal resolution
  • It would have been nice to have an ablation study on the initial point cloud generation method mentioned in the implementation details
  • To what extent were the limitations mentioned earlier for other models resolved? I actually get the sense that models of the style that predefine possible materials in advance might be better in terms of generalization performance. (Since it can only simulate elastic objects.)