Occlusion and Ground Contact as Depth Constraints for Objects That Move With the Camera

Self-supervised depth and 3D reconstruction from a single moving camera rest on one assumption: everything in view is static, so all pixel motion comes from the camera. When a car ahead drives at the ego-vehicle's speed and heading, it barely moves in the image. The cleanest explanation consistent with a static world is then that it sits infinitely far away. Depth networks learn exactly this, and leave a hole directly in front of the vehicle (Semantically-Guided Representation Learning for Self-Supervised Monocular Depth). The usual class-agnostic remedy is to compare the observed pixel motion with the motion the camera alone would cause and flag the mismatch as a moving object. That remedy is blind in precisely this case. The co-moving car produces no mismatch once the network has pushed it to infinity, because depth and motion along the camera's viewing ray can trade off against each other without changing the image.

We propose to break that trade-off with two cues that need no object categories. Both come from a persistent reconstruction of the static scene built from the whole video. The first is occlusion order. Anything that hides a piece of background must be closer than that background, and the background's depth is known once the static scene is reconstructed from other frames. A car placed at infinite depth that hides a building 40 m away contradicts itself, and this contradiction is a detector for movers that flow residuals miss. The second is ground contact. An object resting on the ground has its lowest visible point on the reconstructed ground surface, which fixes its depth to that of the ground at the contact pixels. Together these turn an unobservable quantity, depth along the ray for an object moving with the camera, into a bounded and usually pinned quantity. They also give a segmentation signal that works where motion-based segmentation fails.

Core Claim

In monocular video, class-agnostic motion segmentation and depth for dynamic objects fail together on co-moving and line-of-sight motion, because both depend on a residual that this ambiguity drives to zero. A static background reconstructed over the full sequence supplies two category-free constraints that do not vanish in this regime. Visibility ordering gives an upper bound on mover depth and a contradiction test for detecting movers. Ground contact gives an equality constraint on mover depth. We claim these constraints recover both the segmentation and the depth of co-moving objects on driving video, using no semantic network and without relying on the per-frame scale of a depth foundation model.

Relation to Prior Work

Several papers build the residual signal we rely on, and they also show its blind spot. EffiScene compares optical flow against flow predicted from depth and camera pose, and learns a tiny per-pixel rigidity classifier from the difference. VCANet subtracts camera-induced flow in the same way to segment movers of any class. Distilled Semantics for Comprehensive Scene Understanding from Videos derives dynamic masks from the same geometric discrepancy. All three treat depth as given when computing the residual. When the depth network has already absorbed a co-moving car as infinitely distant, their residual is zero by construction, and EffiScene itself is reported to leave equal-velocity parallel motion unresolved.

Unsupervised Monocular Depth Learning in Dynamic Scenes and RM-Depth instead predict a dense 3D translation field for objects. Their sparsity priors, however, actively favor the "zero motion, infinite depth" explanation for a co-moving object, which is the ambiguity we target. These works motivate the proposal: they establish the gap. We keep their residual machinery and add constraints that do not depend on it.

On the reconstruction side, RobustSplat delays the step where 3D Gaussian Splatting adds new primitives, so the static scene converges before transient objects spawn "floaters," the stray primitives left hanging in empty space. (3D Gaussian Splatting represents a scene as many small colored 3D blobs that are rendered by projection.) WildRayZer uses the failures of a static renderer as pseudo-masks for motion. Both discard the dynamic objects. We reuse their static-first recipe as the source of a trustworthy background depth, and then use that background to constrain the foreground rather than erase it.

MoDGS handles depth ambiguity in monocular dynamic reconstruction with an ordinal loss against a foundation depth model. Uncertainty Matters in Dynamic Gaussian Splatting for Monocular 4D Reconstruction models uncertainty that is much larger along the viewing ray than across the image and regularizes uncertain primitives through reliable anchors. Neither uses visibility against a reconstructed static scene as a hard bound. Neither targets the co-moving regime in forward-driving video. Split4D shows that 3D trajectory consistency beats 2D trackers, but it requires multi-view rigs and per-frame instance masks. That result supports our choice to reason in 3D, but the method does not apply to our monocular setting.

The ground-plane filter in Semantically-Guided Representation Learning is the closest use of ground geometry. It discards training samples whose cars fall below a fitted plane, and it finds those cars with a closed-set semantic network. We use the reconstructed ground constructively and without categories.

Research Program

The method optimizes one sequence at a time and has three stages. In stage one, we fit a static Gaussian scene to the whole monocular clip using RobustSplat-style delayed growth and down-weighting of high-residual pixels, with camera poses estimated jointly. Stage one yields a rendered static depth $D_s(\mathbf{r})$ for any camera ray $\mathbf{r}$. Background hidden at frame $t$ is usually visible in other frames, because the camera translates past it. The static model therefore has depth along rays that the co-moving car blocks.

In stage two, each candidate region receives two scores. One is the usual flow residual. The other is an occlusion-consistency residual. Let $\hat d_t(\mathbf{r})$ be the depth that best explains pixel $\mathbf{r}$ under a static-world fit, which is the depth a self-supervised network would converge to. The ordering violation is

$$v_t(\mathbf{r}) = \max\big(0,\ \hat d_t(\mathbf{r}) - D_s(\mathbf{r})\big),$$

which is positive when the static explanation places the pixel behind background that the same ray demonstrably hits. A co-moving car scores near zero on flow residual and high on $v_t$. A pixel is a mover candidate if either score is high. Candidates are grouped into objects by spatial connectivity and by agreement of their 3D trajectories, with no semantic labels.

In stage three, each mover is represented by its own Gaussians with a rigid 6-degree-of-freedom motion per frame, meaning a rotation plus a translation, rather than translation only, which addresses the limitation stated by Li et al.. These mover Gaussians are fit with photometric loss plus two constraints. The visibility constraint penalizes $\max(0, d_t(\mathbf{r}) - D_s(\mathbf{r}) + \epsilon)$ for every mover pixel, where $d_t$ is the mover's rendered depth and $\epsilon$ a small margin. The contact constraint applies at the set $C_t$ of pixels along the mover's lower boundary that border static ground, and penalizes $\sum_{\mathbf{r}\in C_t}|d_t(\mathbf{r}) - D_s(\mathbf{r})|$. The contact term is gated by a learned confidence. Objects without visible contact, or with contact hidden by other movers, keep only the bound. This makes the failure mode explicit: such objects are bounded but not pinned.

Finally, as a test of usefulness beyond a single sequence, we distill the per-sequence mover depths and masks into pseudo-labels for a lightweight self-supervised depth network trained on KITTI. This tests whether the infinite-depth hole can be removed from a fast feed-forward model without a semantic network.

Baselines

The naive reference point is a standard self-supervised monocular depth network trained under the full static-world assumption, with no dynamic handling. This shows the size of the infinite-depth failure on our co-moving stratum. It is trained on the same KITTI split with the same backbone and schedule as every learned variant below.

The strongest category-dependent competitor is the two-stage detect-and-resample method of Semantically-Guided Representation Learning. It reports KITTI Abs Rel of 0.100 overall and 0.177 on cars, improved from 0.200 by its two-stage training. It is the most direct prior attack on the infinite-depth illusion. We run it with its released semantic network and our backbone. Beating it means lower car Abs Rel than 0.177 under the same protocol, and specifically lower error on the co-moving stratum. Beating it on out-of-vocabulary objects in Carla would show what removing the category crutch buys.

The strongest class-agnostic competitor for segmentation is EffiScene, which reports KITTI motion-segmentation mIoU of 0.62 and depth RMSE of 3.46. RM-Depth, at 0.107 Abs Rel, is the comparable 3D motion-field method for depth. Both are retrained on our split with matched compute. Beating them means higher mIoU overall and, more importantly, a large gap on the co-moving stratum, where we predict their recall collapses.

For reconstruction quality we compare against USplat4D, which reports DyCheck PSNR of 19.63 at 2x resolution against 19.32 for MoSca. On driving clips we compare against MoDGS-style foundation-depth initialization, with matched optimization iterations per sequence.

Two ablations isolate the key ingredient. Removing the occlusion-consistency residual from stage two tests whether detection of co-moving objects comes from it. Removing the visibility and contact terms from stage three, keeping everything else, tests whether they rather than the 6-degree-of-freedom motion model fix mover depth.

Why not just…?

Why not just mask cars, pedestrians, and cyclists with a semantic segmenter? This handles the common case and is a real competitor on KITTI cars. VCANet documents that category-based models miss out-of-vocabulary hazards. Masking also discards depth supervision for parked cars, which are static and useful. Even with a correct mask, masking does not supply a depth for the masked car, so the hole stays a hole unless something else fills it. The Carla experiment with unusual co-moving objects will show whether this matters beyond KITTI's car-dominated scenes.

Why not just take the mover's depth from a depth foundation model, aligned to the static reconstruction? This is the most serious threat. A foundation model sees a car-shaped object in front of a road and will not put it at infinity. Per-frame scale drift is the documented weakness, and it is why MoDGS retreats to ordinal supervision. Alignment against the static background, though, may largely fix drift. We will run exactly this baseline: per-frame scale and shift fit to $D_s$ on static pixels, then applied to movers. If it matches our mover depth error, the honest conclusion is that our contribution narrows to the occlusion-consistency detector for segmentation, and contact constraints are unnecessary when a foundation model is affordable. We will also test the combination, in which foundation depth initializes the movers and our constraints act as hard bounds, since the cues are complementary.

Why not just use longer temporal windows for the flow residual? If the lead car keeps the camera's speed and heading, its residual is zero at every window length, so a longer window cannot help in the core regime. It does help when relative velocity varies slowly. We will report residual-only segmentation as a function of window length on the co-moving stratum, to show where it saturates.

Proposed Experiments

The primary evaluation is on KITTI, using raw sequences with sparse LiDAR depth for evaluation only. We report the standard Abs Rel and RMSE overall and on car pixels, matching the reporting of Semantically-Guided Representation Learning. We also report motion-segmentation mIoU, matching EffiScene. On top of the standard reporting, we construct a co-moving stratum: object pixels whose LiDAR-derived depth change between frames, after removing ego-motion, implies low relative velocity. Metrics are reported separately on this stratum, because averages over all pixels hide the failure.

Since KITTI cannot vary relative speed or object category on demand, we use the synthetic Carla setting from the class-agnostic segmentation benchmark (VCAS, whose reported CA-IoU there is 16.0). In it we script lead objects, including non-vehicle shapes, at controlled relative velocities from zero upward, and at controlled contact visibility. This yields curves of mover depth error and segmentation recall against relative velocity. The prediction is that residual-only methods degrade sharply as relative velocity approaches zero, while our method stays flat when contact is visible and stays bounded but not pinned when contact is hidden. For reconstruction fidelity outside driving, we run on DyCheck and compare PSNR against the 19.63 reported for USplat4D. Matching it would be adequate, since our focus is geometry in forward motion, and a drop would indicate that the constraints hurt in non-driving scenes.

Three checks decide the claim. First, in the stage-two ablation, does removing the occlusion-consistency residual cut co-moving segmentation recall to residual-only levels? Second, on the co-moving stratum, does the aligned foundation-depth baseline match our mover depth error? If so, the depth half of the claim fails. Third, does distilling our pseudo-labels into the lightweight depth network lower its car Abs Rel below the 0.177 semantic two-stage result without any semantic network? If all three go our way, the paper shows that occlusion order against a persistent static map, a cue absent from prior residual-based segmentation, is what makes class-agnostic motion segmentation and dynamic depth work together in the regime that matters most for driving.