Data-driven fluid simulations using regression forests

Traditional fluid simulations require large computational resources even for an average sized scene with the main bottleneck being a very small time step size, required to guarantee the stability of the solution. Despite a large progress in parallel computing and efficient algorithms for pressure computation in the recent years, realtime fluid simulations have been possible only under very restricted conditions. In this paper we propose a novel machine learning based approach, that formulates physics-based fluid simulation as a regression problem, estimating the acceleration of every particle for each frame. We designed a feature vector, directly modelling individual forces and constraints from the Navier-Stokes equations, giving the method strong generalization properties to reliably predict positions and velocities of particles in a large time step setting on yet unseen test videos. We used a regression forest to approximate the behaviour of particles observed in the large training set of simulations obtained using a traditional solver. Our GPU implementation led to a speed-up of one to three orders of magnitude compared to the state-of-the-art position-based fluid solver and runs in real-time for systems with up to 2 million particles.

[1]  L. Lucy A numerical approach to the testing of the fission hypothesis. , 1977 .

[2]  Mathieu Desbrun,et al.  Smoothed particles: a new paradigm for animating highly deformable bodies , 1996 .

[3]  J. Monaghan Smoothed particle hydrodynamics , 2005 .

[4]  Ian M. Mitchell,et al.  A hybrid particle level set method for improved interface capturing , 2002 .

[5]  Markus H. Gross,et al.  Particle-based fluid simulation for interactive applications , 2003, SCA '03.

[6]  Leo Breiman,et al.  Random Forests , 2001, Machine Learning.

[7]  Paul A. Viola,et al.  Robust Real-Time Face Detection , 2001, International Journal of Computer Vision.

[8]  Robert Bridson,et al.  Animating sand as a fluid , 2005, ACM Trans. Graph..

[9]  Adrien Treuille,et al.  Model reduction for real-time fluids , 2006, ACM Trans. Graph..

[10]  Antonio Criminisi,et al.  TextonBoost: Joint Appearance, Shape and Context Modeling for Multi-class Object Recognition and Segmentation , 2006, ECCV.

[11]  Mohit Gupta,et al.  Legendre fluids: a unified framework for analytic reduced space modeling and rendering of participating media , 2007, SCA '07.

[12]  R. Pajarola,et al.  Predictive-corrective incompressible SPH , 2009, SIGGRAPH 2009.

[13]  Pushmeet Kohli,et al.  Associative hierarchical CRFs for object class image segmentation , 2009, 2009 IEEE 12th International Conference on Computer Vision.

[14]  Adrien Treuille,et al.  Modular bases for fluid dynamics , 2009, ACM Trans. Graph..

[15]  M. Gross,et al.  A multiscale approach to mesh-based surface tension flows , 2010, ACM Trans. Graph..

[16]  Matthias Müller,et al.  Real-time simulation of large bodies of water with small scale details , 2010, SCA '10.

[17]  Andrew W. Fitzgibbon,et al.  Real-time human pose recognition in parts from single depth images , 2011, CVPR 2011.

[18]  Matthias Müller,et al.  Real-time Eulerian water simulation using a restricted tall cell grid , 2011, ACM Trans. Graph..

[19]  Eugene Fiume,et al.  Fluid simulation using Laplacian eigenfunctions , 2012, TOGS.

[20]  Andrew W. Fitzgibbon,et al.  The Vitruvian manifold: Inferring dense correspondences for one-shot human pose estimation , 2012, 2012 IEEE Conference on Computer Vision and Pattern Recognition.

[21]  Andrew W. Fitzgibbon,et al.  Scene Coordinate Regression Forests for Camera Relocalization in RGB-D Images , 2013, 2013 IEEE Conference on Computer Vision and Pattern Recognition.

[22]  Christopher Horvath Mass Preserving Multi-Scale SPH , 2013 .

[23]  Theodore Kim,et al.  Subspace fluid re-simulation , 2013, ACM Trans. Graph..

[24]  Miles Macklin,et al.  Position based fluids , 2013, ACM Trans. Graph..

[25]  Matthias Teschner,et al.  Implicit Incompressible SPH , 2014, IEEE Transactions on Visualization and Computer Graphics.

[26]  James F. O'Brien,et al.  Self-refining games using player analytics , 2014, ACM Trans. Graph..

[27]  Greg Turk,et al.  Blending liquids , 2014, ACM Trans. Graph..