690 likes | 831 Views
Modélisation de l’interaction avec objets déformables en temps-réel pour des simulateurs médicaux. Diego d’Aulignac GRAVIR/INRIA Rhone-Alpes France. Medical Simulators. Motivations danger to patients cost certification Objectives Geometric Models Physical Models deformation
E N D
Modélisation de l’interaction avec objets déformables en temps-réel pour des simulateurs médicaux Diego d’Aulignac GRAVIR/INRIA Rhone-Alpes France
Medical Simulators • Motivations • danger to patients • cost • certification • Objectives • Geometric Models • Physical Models • deformation • interaction
Problems • Simulation MUST be real-time! • deformation • resolution • Simulation MUST be realistic! • model • identification of parameters • Simulation MUST be interactive! • collision detection • haptic interaction
Plan • Deformation Models • Mass-Spring vs. FEM • Real-time Resolution Techniques • Static • Dynamic • Echographic Simulator • parameter identification • Liver Model • interactive deformation
Deformable Object • Geometry • Elements • Springs [TW90] • Tetrahedra FEM [OH99] • Comparison • Realism • Speed
Geometrical Model • 56 surface points • 108 triangles • 57 total points • 120 tetrahedra • 230 edges
Mass-Spring Model Initial length Deformed length
Finite Element Method (FEM) Deformed configuration Deformation tensor: Initial configuration x a Green’s strain displacements Small strain Cauchy Strain:
Strain-Stress Deformation Energy Lamé coefficients force per unit area
Mass-Spring Model • Springs are placed along the edges (230) • Not very realistic: modeling a volume with springs! • The force of each spring relatively cheap to evaluate • globally fast
Finite Element Method (FEM) • 120 tetrahedra using Green’s strain tensor • Continuum is modeled with volumetric element. • Dilatation may be controlled • Approximately four times slower than mass-spring network
Deformable Models (conclusions) • Mass-Spring • One dimentional elements • Unrealistic to model volume • Tetrahedral FEM • Good realism for 3D continuum • Control of dilatation • Approximately 4 times slower to evaluate forces
Contributions • Quantitative and qualitative comparison of mass-springs and tetrahedral elements • Interactive non-linear static resolution • Formal analysis of the real-time stability of integration methods • based on parameters • Identification of the parameters of a model from experimental data • Relevant medical applications
Plan • Deformation Models • Mass-Spring vs. FEM • Real-time Resolution Techniques • Static • Dynamic • Echographic Simulator • parameter identification • Liver Model • interactive deformation
Real-time Resolution • Static Resolution • linear resolution [Cotin97] • small displacements • Our approach: non-linear resolution • large displacements • Dynamic resolution • explicit [Picinbono01] • implicit [BW98]
Linear Static Resolution • Linear case: • Pre-inversion (if enough space) • No large strain • No rotation • No material non-linearity Principle of virtual work: internal and external forces are balanced
Nonlinear Static Resolution • Non-linear case: • Stiffness matrix changes with displacement: • geometric • material
Newton Iteration • Full Newton-Rapson method: • Reevaluation of Jacobian • Faster convergence • Modified Newton-Rapson method: • Constant Jacobian • Slower Convergence
Dynamic Analysis 2nd order non-linear differential equation Convert to 1st order system
Explicit Integration Runge-Kutta method with s stages s Order of consistency (accuracy) vs. stages precision
Explicit Integration Stability linearizing Im Timestep is limited by the the physical parameters! Re
If you know your history,then you would know where you are coming from. Bob Marley Implicit Integation Over-damped case B-stable implicit euler: linearisation Semi-implicit euler Stable for linear case (A-stable) any timestep any physical parameters
Resolution (conclusions) • Static analysis • non-linear resolution for large displacements • Dynamic • explicit • strict stability criteria • implicit • no limit on timestep, but resolution of non-linear system
Contributions • Quantitative and qualitative comparison of mass-springs and tetrahedral elements • Interactive non-linear static resolution • Formal analysis of the real-time stability of integration methods • based on parameters • Identification of the parameters of a model from experimental data • Relevant medical applications
Plan • Deformation Models • Mass-Spring vs. FEM • Real-time Resolution Techniques • Static • Dynamic • Echographic Simulator • parameter identification • Liver Model • interactive deformation
Echographic Simulator • Data Acquisition • Model of the thigh • Mass-Spring • Neural • Interaction • collision • haptics • Generation of echographic image
Data Acquisition (at LIRMM, Montpellier) 64 sample points are marked on the thigh. For each, the forces for some given penetrations are measured Two different probes (a) Indentor shaped probe for punctual force-penetration data (b) Probe with surface equal to that of a typical echographic probe 1- The end effector advances in small steps (2mm) in the direction normal to the surface of the thigh. 2- The force depending on the penetration distance is measured
[d’Aulignac et al. MICCAI 99] Force Force displacement displacement Data Acquisition: Experimental Results • The two probes do not offer the same resistance • difference in surface area • Different curves for different points • different depth of soft tissue • Highly non-linear behaviour Indentor probe Surface probe
Echographic Simulator • Data Acquisition • Model of the thigh • Mass-Spring • Neural • Interaction • collision • haptics • Generation of echographic image
Dynamic Model of the thigh Incompressibility of the tissue Elasticity of the epidermis • Why mass-spring model? • computationally efficient • interior NOT discretized into tetrahedra
Identification of the Parameters of aDynamic Model OptimizationAlgorithm New parameters (elasticity, plasticity, collision stiffness ...) Error - Behaviour Resolution Model Desired behaviour Measurements For each sample point, 10-12 deformation/force values with each probe => Total of ~1200 measurements.
(in collaboration with UC Berkeley) [d’Aulignac et al., IROS 99] Distribution of Nonzero Error Values Parameter Estimation Least-squares minimisation: 1. find (a,b) for each non-linear spring 2. find (a,b) for each non-linear spring, and (a) for all linear springs => Avoid local minima • Error of the model with respect to the experimental data => Overall error less than 5% Error (N)
Explicit integration Euler stability too small timesteps no real-time ...or large mass slow movement no gravity Implicit integration Semi-Implicit Euler constant Jacobian 100 steps per second h=1/100 (i.e. real time) Dynamic Analysis
Dynamic Resolution 100 Hz using semi-implicit integration
Neural Networks Displacement of particles: u • Static Analysis • Multi-layer perceptron is a general approximizer • Network is trained directly on experimental data • back-propagation Forces acting on particles: f 64 inputs and outputs
Neural Networks Displacement (mm) Force (N) Neural Model Experimental data
Mass-Spring vs. Neural Model • Mass-spring • topology chosen • based on measurements • dynamic resolution • semi-implicit (100 Hz) • Neural model • no assuption on topology • static resolution • very fast • no change of topology
Echographic Simulator • Data Acquisition • Model of the thigh • Mass-Spring • Neural • Interaction • collision • haptics • Generation of echographic image
Interaction • Collision Detection • Collision Response • Force Feedback
Collision Detection • Finds polygons in the OpenGL viewing frustrum • Detects collision between simple rigid body and any other object quickly
Collision Response Penalty forces [Hunt and Crossley 1975] • Inter-penetration distance must be computed • Generates large forces (bad for haptics)
Haptics • Haptic devices require high update frequency • typically around 1kHz • ….which the simulation normally can’t meet • 100 Hz (dynamic model)
Haptic Interaction • Local approximation of the contact • simple local model running in a separatethread • fast collision detection • fast force computation Haptic loop (1kHz): collision detection and response with local model [Balaniuk 99] Local model update position Simulation Loop (100Hz): deformation global collision detection and response
[d’Aulignac et al. , ICRA, 2000] Haptic Feedback With local model force time Without local model
Echographic Simulator • Data Acquisition • Model of the thigh • Mass-Spring • Neural • Interaction • collision • haptics • Generation of echographic image
Echographic Image Generation [Vieira01](in collaboration with TIMC-IMAG, France) • 64 images aquired • on each sample point • Voxel Map • 120 Mb • Interpolation • fill in the blanks • Provide image • any rotation • any position
Echographic Image Deformation • Problem • structures deform differently • vein • bone, etc. • segmentation • Linear deformation • Possible extension: precalculated deformation maps [Troccaz et al, 2000]
Echographic Simulator (conclusions) • Data Acquisition • Model of the thigh • Mass-Spring • Neural • Interaction • local model • Generation of echographic image • linear deformation