NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Video Location Positioning Study Based on Two Steps Greedy Algorithm

Zelin Zang, Lingyun Xu, Jiahui Li, Huijie Wang, Xusheng Kang2016

Abstract

Determining the location and date of anonymous video footage is a critical forensic challenge in fields like public security and journalism. This study proposes a "Two-Step Greedy Algorithm" to estimate geographic coordinates and filming dates by analyzing shadow geometry over time. By combining global exploration with local refinement, the method achieves location accuracy within 0.5 degrees and reduces computational time by over 70% compared to traditional grid search methods.

The Shadow as a Celestial Clock

In the absence of EXIF metadata or recognizable landmarks, shadows provide a reliable "celestial clock." The length and angle of a shadow are direct functions of the sun’s position, which varies predictably based on latitude, longitude, date, and time.

Conceptual diagram showing the change in shadow length and angle (A, B, C) over time for a vertical object.

The core challenge is "inverting" this relationship: given a set of shadow measurements, how do we find the exact coordinates? Traditional Grid Searches are computationally expensive, while standard Greedy Algorithms often get trapped in local optima—locations that appear mathematically plausible but are geographically incorrect.

Mathematical Modeling and Algorithm Design

The researchers define a quadratic minimization problem to find the combination of four variables—latitude ($x$), longitude ($y$), date ($n$), and time ($t$)—that minimizes the difference between observed shadow lengths and those calculated via solar elevation formulas.

Geometric projection model used to relate shadow coordinates to solar position across front, top, and left views.

To solve this efficiently, the Two-Step Greedy Algorithm is employed:

  1. Phase 1 (Global Exploration): The algorithm initiates greedy searches from multiple random points across the search space. This identifies several "local optima," significantly reducing the risk of missing the true global minimum.
  2. Phase 2 (Local Refinement): The best candidate from Phase 1 is selected for a high-resolution "fine grid search" within a localized area to ensure maximum precision.

Experimental Validation

The study validated the algorithm using a 40-minute video of a straight vertical bar on level ground. Six time-stamped measurements of shadow length were extracted for analysis.

A key observation was the "Strip" Phenomenon: with short video durations (under 30-40 minutes), potential solutions often form a long, narrow strip on the map. Longer observation periods are necessary to "break" the symmetry of the solar path and pinpoint a single location. Additionally, when the date is unknown, the algorithm may find two valid solutions due to the sun's reciprocal path between the Tropics.

Results and Performance

The Two-Step Greedy Algorithm demonstrated significant improvements over baseline methods:

  • Accuracy: The test site was located within 0.5 degrees of its actual position. In one specific test case, the error was narrowed to just 4.43 km.
  • Efficiency: The algorithm saved more than 70% of the processing time compared to a traditional exhaustive Grid Search.
  • Stability: Unlike single-start greedy algorithms, which only found the correct result in 50% of test runs, the two-step approach provided consistent reliability.

Conclusion

While the current model relies on straight-bar objects and clear sunny conditions, it proves that shadow analysis is a powerful tool for video forensics. Future work will focus on adapting the model for irregular objects, uneven terrain, and lower-resolution footage where shadow edges may be diffused.

Summary updated

BibTeX
@misc{zang2016video,
  author = {Zelin Zang and Lingyun Xu and Jiahui Li and Huijie Wang and Xusheng Kang},
  title = {{Video Location Positioning Study Based on Two Steps Greedy Algorithm}},
  year = {2016},
  doi = {10.2991/amsm-16.2016.27},
}
Figure