Motor Focus: Fast Ego-Motion Prediction for Assistive Visual Navigation

Hao Wang, Jiayou Qin, Xiwen Chen, Ashish Bastola, John Suchanek, Zihao Gong, Abolfazl Razi · DOI

TL;DR

Motor Focus is a lightweight, uncalibrated image-based framework designed to predict a pedestrian's movement direction (ego-motion) in real time from a wearable camera feed. By combining dense optical flow with Singular Value Decomposition (SVD) and dynamic Gaussian smoothing, it filters out walking-induced camera shake without requiring complex camera calibration. This allows assistive navigation systems for the visually impaired to prioritize audio alerts for obstacles directly in the user's path.

What Problem Does This Paper Address?

Assistive visual navigation systems help visually impaired individuals navigate by converting camera feeds into descriptive voice commands. However, in crowded or complex environments, describing every single object leads to cognitive overload. To prevent this, a system must prioritize objects that lie directly along the user's actual path of motion.

Determining this path—known as ego-motion estimation—is highly challenging on consumer mobile devices. While autonomous vehicles solve this using power-hungry, high-end sensor suites (like LiDAR, radar, and calibrated multi-camera arrays), pedestrians are limited by the battery, weight, and computational constraints of smartphones or smart glasses. Furthermore, pedestrian video feeds suffer from severe camera shake caused by walking, and a user's visual focus (where the camera faces) often diverges significantly from their motor focus (where their body is actually traveling).

Methods

The authors introduce Motor Focus, a framework that bypasses traditional, computationally expensive feature-matching pipelines (like SIFT or ORB combined with RANSAC) in favor of a dense, pixel-wide temporal analysis:

  1. Dense Optical Flow: The system calculates a dense motion field between consecutive frames using Farneback’s method to capture pixel-level displacements.
  2. Ego-Motion Estimation via SVD: Instead of extracting sparse keypoints, the framework maps all pixels from the grayscale image using the optical flow vectors. It then applies Singular Value Decomposition (SVD) to compute an optimal rigid transformation (rotation $R$ and translation $T$) that represents the camera's ego-motion.
  3. Ego-Motion Compensation: The estimated camera motion is subtracted from the raw optical flow field, isolating the residual motion vectors caused purely by independent object movements relative to the user.
  4. Movement Direction Projection & Smoothing: The framework clusters the remaining vectors to find the focus point where the user's trajectory vectors converge. To mitigate transient walking shakes, it applies a temporal Gaussian aggregation mask. Crucially, the spread (variance) of the Gaussian distribution is dynamically scaled inversely to the mean magnitude of the optical flow, smoothing out sudden jitters.
The proposed Motor Focus framework pipeline.

Datasets

Because standard autonomous driving datasets (like KITTI) do not reflect the erratic dynamics of human walking, the authors collected a specialized pedestrian navigation dataset:

  • Composition: 50 video clips across 5 distinct environments (Urban Sidewalk, Suburban Bikeline, City Road, Town Park, City Coast) under various weather conditions (Cloudy, Sunny, Rain), totaling approximately 60 minutes of footage.
  • Ground Truth: Three independent researchers annotated the true direction of motion frame-by-frame. The average of these three annotations serves as the pixel-coordinate ground truth.

Key Insights and Ideas

  • Visual Focus $\neq$ Motor Focus: The paper highlights that a camera's optical axis frequently misaligns with a pedestrian's travel direction (e.g., looking at a storefront while walking straight ahead). Motor Focus successfully decouples camera orientation from actual physical displacement.
  • All-Pixel SVD Efficiency: Traditional homography estimation is a major computational bottleneck. By leveraging dense optical flow across all pixels and solving the alignment via linear SVD operations, the framework processes over 260,000 elements per frame with sub-millisecond matching times.
  • Flow-Driven Smoothing: Using the inverse magnitude of the optical flow to control Gaussian smoothing is an elegant way to handle noise: higher camera instability automatically triggers a wider, more forgiving smoothing mask.
Figure 2: Motor focus visualization, (a) is the raw RGB image, (b) is the compensated optical flow map, (c) shows the identified attention points of 10 consecutive frames, (d) is the attention map aggregated by the Gaussian distributions of attention points from (c).

Key Results

The proposed framework (denoted as OP++ in the paper) was evaluated against classical feature detectors (SIFT, ORB) and sparse optical flow (Lucas-Kanade):

  • Speed: Achieves an operational speed of 42.64 FPS (total frame processing time of 23.45 ms), with the core feature matching step taking a mere 0.91 ms. This easily clears the real-time threshold for mobile devices.
  • Accuracy: Outperforms all baselines, achieving the lowest Mean Absolute Error (MAE = 60.66 pixels) relative to the ground truth. For comparison, classical SIFT achieved an MAE of 93.34 pixels.
  • Robustness: Achieves a Signal-to-Noise Ratio (SNR) of 23.09 dB, proving its ability to maintain a stable trajectory prediction despite severe walking-induced camera shake.

Limitations and Future Work

  • Limitations: The paper does not explicitly evaluate performance in low-light or night-time conditions. Because the framework relies heavily on dense optical flow (Farneback's method), its accuracy may degrade in environments that violate brightness constancy or lack distinct visual textures.
  • Future Work: The authors suggest integrating this lightweight ego-motion prediction model directly with real-time object detection networks (such as YOLO). This combination would allow assistive devices to dynamically filter and prioritize audio warnings based on whether an obstacle intersects with the user's predicted path.

Summary updated

Abstract

Assistive visual navigation systems for visually impaired individuals have become increasingly popular thanks to the rise of mobile computing. Most of these devices work by translating visual information into voice commands. In complex scenarios where multiple objects are present, it is imperative to prioritize object detection and provide immediate notifications for key entities in specific directions. This brings the need for identifying the observer's motion direction (ego-motion) by merely processing visual information, which is the key contribution of this paper. Specifically, we introduce Motor Focus, a lightweight image-based framework that predicts the ego-motion - the humans (and humanoid machines) movement intentions based on their visual feeds, while filtering out camera motion without any camera calibration. To this end, we implement an optical flow-based pixel-wise temporal analysis method to compensate for the camera motion with a Gaussian aggregation to smooth out the movement prediction area. Subsequently, to evaluate the performance, we collect a dataset including 50 clips of pedestrian scenes in 5 different scenarios. We tested this framework with classical feature detectors such as SIFT and ORB to show the comparison. Our framework demonstrates its superiority in speed (> 40FPS), accuracy (MAE = 60pixels), and robustness (SNR = 23dB), confirming its potential to enhance the usability of vision-based assistive navigation tools in complex environments.
BibTeX
@inproceedings{wang2024motor,
  author = {Hao Wang and Jiayou Qin and Xiwen Chen and Ashish Bastola and John Suchanek and Zihao Gong and Abolfazl Razi},
  title = {{Motor Focus: Fast Ego-Motion Prediction for Assistive Visual Navigation}},
  booktitle = {BSN},
  year = {2024},
  doi = {10.1109/bsn63547.2024.10780583},
}
Figure