EndoGaussian-4D: Mathematical Formalization
Physics-Informed Deformation Field for Real-Time 4D Gaussian Splatting in Endoscopic Surgery
Week 1 Sprint β Phase 3 Deliverable
1. Preliminary: 3D Gaussian Splatting
A scene is represented as N anisotropic 3D Gaussians:
where:
- ΞΌα΅’ β βΒ³: Mean (center position)
- qα΅’ β ββ΄: Unit quaternion (rotation)
- sα΅’ β βΒ³: Log-scale vector (anisotropic scaling)
- Ξ±α΅’ β β: Logit-opacity
- cα΅’ β βα΄·Λ£Β³: Spherical harmonics coefficients (K = (β+1)Β² for degree β)
Covariance in world space:
Pixel color via Ξ±-compositing (front-to-back):
2. Physics-Informed Deformation Field
2.1 Core Formulation
The key equation:
$$\boxed{G_i(t) = G_i^{(0)} + \boldsymbol{\Delta}_\theta(\boldsymbol{\mu}_i, t)}$$
where Gβ is the canonical (rest-state) Gaussian and Ξ_ΞΈ is the learned deformation:
Deformed parameters:
| Parameter | Equation |
|---|---|
| Position | ΞΌα΅’(t) = ΞΌα΅’β° + ΞΞΌα΅’(t) |
| Rotation | qα΅’(t) = normalize(qα΅’β° + Ξqα΅’(t)) |
| Scale | sα΅’(t) = sα΅’β° + Ξsα΅’(t) |
| Opacity | Ξ±α΅’(t) = Ξ±α΅’β° + ΞΞ±α΅’(t) |
2.2 HexPlane Spatio-Temporal Encoding
The 4D input (ΞΌα΅’, t) β ββ΄ is factorized into 6 learnable 2D feature planes:
Each plane F_l^(dβ,dβ) β β^{C Γ R_{dβ} Γ R_{dβ}} stores C-dimensional features.
The encoded feature:
Memory complexity: O(6LRΒ²) vs O(Rβ΄) for dense 4D grid. With R=64 spatial, R_t=75 temporal, L=2 levels, C=32: β12 MB (vs 20M entries dense).
2.3 Deformation Decoder
Shared MLP backbone β 4 output heads (all zero-initialized):
hβ = E(ΞΌα΅’, t) # HexPlane features
hβ = ReLU(WβΒ·hβββ + bβ) # K shared layers
ΞΞΌ = W_ΞΌ Β· hβ (zero-init) # Position displacement
Ξq = W_q Β· hβ (zero-init) # Rotation perturbation
Ξs = W_s Β· hβ (zero-init) # Scale adjustment
ΞΞ± = W_Ξ± Β· hβ (zero-init) # Opacity adjustment
Zero initialization is critical: At startup, Ξ_ΞΈ = 0, so the model begins from canonical Gaussians and gradually learns displacements. This prevents early-training instability.
3. Physics-Informed Priors
3.1 Tissue Biomechanics Motivation
Soft surgical tissue (liver, colon, uterus) has physical properties that constrain valid deformations:
- Locally smooth: Tissue displacement fields are continuous and slowly varying in space
- Temporally coherent: Tissue velocity changes smoothly over time
- Volume-preserving: Biological tissue is nearly incompressible
- Bounded strain: Tissue stretches/compresses within physiological limits
3.2 Temporal Smoothness Prior
Physical interpretation: Approximates a penalty on tissue acceleration:
This is Tikhonov regularization on the velocity field β standard in biomechanical simulation.
3.3 Total Variation on HexPlane Features
Physical interpretation: TV on temporal planes (XT, YT, ZT) enforces that nearby Gaussians undergo similar deformations β encoding that tissue is a continuum, not independent particles.
4. Complete Loss Function
4.1 Full Objective
Hyperparameters: Ξ»β = 0.2, Ξ»β = 0.1, Ξ»β = 0.01, Ξ»β = 0.001
4.2 Appearance Loss Terms
L1 Photometric (tool-masked):
D-SSIM:
4.3 Scale-Invariant Depth Loss
where d_p = log DΜ(p) - log D*(p). Scale-invariant formulation handles both known-scale (C3VD structured-light) and unknown-scale (Depth-Anything monocular) depth.
4.4 Tool Occlusion Handling
Three-stage masking:
Initialization: Tools excluded from HGI point cloud $$P = \bigcup_{t} K^{-1} T_t D_t (I_t \odot M_t)$$
Loss: All terms computed on tissue pixels only (V_t = {p : M_t(p) = 1})
Densification: Gradient signals from tool boundaries excluded from split/clone decisions
5. Holistic Gaussian Initialization (HGI)
Backprojection operator:
Scale initialization from KNN:
6. Training Schedule
| Phase | Iterations | What's Optimized | Density Control |
|---|---|---|---|
| Warmup | 0 β 1000 | Canonical Gaussians only | Active (500-1000) |
| Deformation | 1000 β 3000 | Gaussians + HexPlane + Decoder | Active (1000-2500) |
Learning rates (Adam, exponential decay Ξ³ = 0.01^{1/3000}):
| Parameter | lrβ |
|---|---|
| Means ΞΌ | 1.6Γ10β»β΄ |
| Scales s | 5Γ10β»Β³ |
| Quaternions q | 1Γ10β»Β³ |
| Opacities Ξ± | 5Γ10β»Β² |
| SH coefficients | 2.5Γ10β»Β³ |
| Deformation ΞΈ | 1.6Γ10β»Β³ |
7. Adaptive Density Control
absgrad-based (absolute gradient values, not norms):
| Operation | Condition | Action |
|---|---|---|
| Split | αΈ‘α΅’ > 0.0002 AND max scale > 0.01 | Split into 2, shrink by log(1.6) |
| Clone | αΈ‘α΅’ > 0.0002 AND max scale β€ 0.01 | Duplicate at same position |
| Prune | Ο(Ξ±α΅’) < 0.005 OR max scale > 0.1 | Remove Gaussian |
8. Expected Performance
| Method | PSNR β | SSIM β | FPS | Train Time |
|---|---|---|---|---|
| Static 3DGS | 30-32 | 0.90 | 200+ | 2 min |
| EndoNeRF | 35.8 | 0.96 | 0.2 | 12 hr |
| Endo-4DGS | 36.6 | 0.96 | 100 | 4-7 min |
| EndoGaussian (target) | 37.9 | 0.97 | 195 | 2 min |
References
- Kerbl et al. "3D Gaussian Splatting for Real-Time Radiance Field Rendering." SIGGRAPH 2023.
- Liu et al. "EndoGaussian: Real-time Gaussian Splatting for Dynamic Endoscopic Scene Reconstruction." arXiv:2401.12561, 2024.
- Huang et al. "Endo-4DGS: Endoscopic Monocular Scene Reconstruction with 4D Gaussian Splatting." MICCAI 2024.
- Cao & Johnson. "HexPlane: A Fast Representation for Dynamic Scenes." CVPR 2023.
- Eigen et al. "Depth Map Prediction from a Single Image using a Multi-Scale Deep Network." NeurIPS 2014.
- Wang et al. "Neural Rendering for Stereo 3D Reconstruction of Deformable Tissues in Robotic Surgery." MICCAI 2022.
- Ye et al. "gsplat: An Open-Source Library for Gaussian Splatting." arXiv:2409.06765, 2024.
- Yang et al. "Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data." CVPR 2024.