Moving Object Detection from Moving Camera Using Focus of Expansion Likelihood and Segmentation

Atsushi Yamashita 山下 淳, Masahiro Ogawa, Qi An, Atsushi YamashitaarXiv 2025 · DOI

Introduction

Detecting moving objects from a stationary camera is a well-understood task in computer vision. However, when the camera is mounted on a mobile platform—such as a self-driving car or a robotic agent—the problem becomes significantly more complex. In such dynamic scenes, every pixel exhibits motion, making it difficult to distinguish between camera-induced ego-motion and the actual independent motion of objects.

Researchers from the University of Tokyo have proposed FoELS (Focus of Expansion Likelihood and Segmentation), a framework that addresses this challenge by fusing the microscopic precision of optical flow with the macroscopic context provided by semantic segmentation.

Problem Statement

Traditional motion detection algorithms often struggle with several specific phenomena inherent to moving viewpoints:

  1. Perspective Effects: Static objects near the camera generate larger optical flow vectors than distant moving objects, leading to false positives.
  2. Parallel Motion: Objects moving parallel to the camera's trajectory may have flow directions that match the background, rendering them invisible to direction-based detectors.
  3. Low-Texture Regions: Areas like clear skies or uniform walls provide unreliable flow data.
  4. Partial Motion: Articulated objects (e.g., a walking person or animal) may have stationary parts at specific intervals, resulting in fragmented detections.

Methodology

The FoELS pipeline integrates six distinct stages to robustly identify moving objects by combining geometric constraints with semantic priors.

The FoELS pipeline flowchart illustrating the integration of optical flow, segmentation, and camera motion analysis.
  1. Optical Flow Estimation: Pixel-wise motion is captured using the UniMatch model.
  2. Segmentation: OneFormer provides panoptic segmentation, identifying object classes. Each class is assigned a "prior" probability (e.g., buildings are unlikely to move; pedestrians are highly likely).
  3. Camera Motion Detection: The system analyzes flow in static regions to determine the camera's state.
  4. Focus of Expansion (FoE) Computation: For forward-moving cameras, flow vectors radiate from the FoE. RANSAC is employed to estimate this point from background flow.
  5. Moving Pixel Probability Estimation: This core fusion step calculates likelihood based on deviations from the FoE. A logarithmic flow length factor is included to detect objects moving parallel to the camera.
  6. Object-Level Refinement: Detections are refined at the object instance level. If a small percentage (e.g., 1%) of an object's pixels are flagged as moving, the entire instance is classified as moving, ensuring temporal and spatial consistency for partially stationary objects.

Key Insights: Probabilistic Fusion

The primary innovation of FoELS lies in its probabilistic approach to data fusion. Rather than using rigid logic gates, the system calculates a posterior probability by multiplying the moving pixel likelihood with the semantic prior.

Visual breakdown of the FoELS process: (a) input, (b) segmentation, (c) prior, (d) optical flow, (e) camera motion, (f) FoE-based likelihood, (g) posterior, (h) mask, and (i) final result.

This fusion allows the semantic context to compensate for flow inaccuracies in low-texture areas, while the flow data provides the necessary evidence for motion in classes that are typically static. Furthermore, by considering the magnitude of flow (length) rather than just direction, FoELS can distinguish objects moving at different speeds than their background, even when trajectories are parallel.

Experimental Results

The authors evaluated FoELS against standard benchmarks and a custom dataset designed to test edge cases like camera zooming and parallel motion.

Dataset AdversarialNet [3] FoELS (Ours)
DAVIS 2016 (subset) 0.599 0.757
FBMS-59 0.369 0.695

FoELS demonstrated significant improvements in Intersection-over-Union (IoU) scores. Qualitatively, the model proved robust in complex scenarios such as camera zooming, where traditional adversarial networks often fail by misinterpreting background expansion as object motion.

Conclusion and Future Work

FoELS offers a robust solution for motion detection from moving platforms by effectively combining geometric and semantic cues. While the current implementation is computationally intensive and processes frames independently—leading to potential temporal flickering—future work will focus on model optimization (pruning and quantization) and the integration of temporal tracking to enhance real-time performance and stability.

Summary updated

BibTeX
@misc{2025moving,
  author = {Atsushi Yamashita 山下 淳 and Masahiro Ogawa and Qi An and Atsushi Yamashita},
  title = {{Moving Object Detection from Moving Camera Using Focus of Expansion Likelihood and Segmentation}},
  year = {2025},
  eprint = {2507.13628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13628},
}
Figure