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

Affine invariant detection of periodic motion

Steven M. Seitz, Charles R. DyerCVPR 1994

Abstract

Current approaches for detecting periodic motion often assume a stationary camera and place limits on an object's motion, relying on the assumption that periodic 3D motion projects to periodic image curves—an assumption that fails under camera movement. By leveraging affine-invariance, we derive necessary and sufficient conditions for an image sequence to be the projection of a periodic motion without restricting the motion of the camera or the object. Our algorithm is provably correct for noise-free data and robust against occlusions and noise, as demonstrated through evaluations on real and synthetic image sequences.

Introduction

Detecting periodicity—the repetitive nature of motions such as running, walking, or rotating—is a fundamental task in computer vision. However, traditional methods struggle when the observer is in motion. In a 2D video, a perfectly periodic 3D motion can appear non-periodic if the camera is zooming, tilting, or panning. This "moving observer" problem requires a method that can identify the underlying rhythm of an object regardless of the changing perspective.

Theoretical Framework: Affine-Invariance

To address the challenges of a moving camera, we move beyond simple 2D pattern matching by utilizing affine-invariance. The approach is built on two primary pillars:

  1. Affinely-Periodic Motion: We define motion as "affinely-periodic" if the 3D configuration of the object repeats exactly, while its position and orientation relative to the camera change via affine transformations (rotation, translation, scale, and shear).
  2. The Rank-3 Constraint: Utilizing the Tomasi-Kanade factorization method, we observe that if multiple 2D image frames are projections of the same 3D shape under different affine views, the matrix formed by their point coordinates must have a rank of at most 3.
An illustration of an affine transformation, where a square in frame F is mapped to a parallelogram in frame FA via transformation A.

The Detection Algorithm

The algorithm proceeds through three main stages:

  • Feature Tracking: Specific points on the object are tracked over time.
  • Match Criterion: To determine if two frames represent the same point in a cycle, a distance metric ($dist_{\mathcal{A}}$) is calculated using Singular Value Decomposition (SVD). If the singular values beyond the first three are near zero, the frames are considered a match.
  • Confidence Scoring: By comparing frames across various time offsets, the algorithm generates a confidence plot where peaks reveal the period (the number of frames per cycle).

Experimental Evaluation

The algorithm was evaluated using a combination of controlled simulations and real-world footage:

  • Synthetic Jogger: A 3D volumetric model of a human jogging on a circular track was used to test the effects of perspective distortion and artificial noise.
  • Rotating Turntable: A real-world sequence of a turntable filmed with a moving hand-held camera. The algorithm correctly identified the period (54 frames) with high confidence (0.88).
  • Walking Person: A sequence of a person walking in a curved path. Despite the non-rigid nature of human walking (muscles bulging, clothes shifting), the algorithm successfully detected the period of 37 frames with a confidence of 0.58.

Discussion and Key Insights

A central insight of this work is that a change in camera viewpoint is mathematically equivalent to an affine transformation of the object. By detecting motion that is periodic modulo affine transformations, the moving camera problem is effectively solved. Furthermore, this method allows for the detection of periodicity before structure; one does not need to reconstruct the 3D shape of an object to find its period.

While the mathematical model assumes an orthographic projection, experiments show the algorithm is robust to perspective distortion unless the object is extremely close to the lens. It also maintains accuracy in the presence of up to 10 pixels of random noise in feature tracking.

Limitations

The method's primary dependency is the ability to track specific features across the sequence. Occlusions or the loss of features can complicate the rank-3 constraint. Additionally, while "nearly-affine" motions like walking are detectable, highly non-rigid deformations (e.g., fluid motion) may break the underlying assumptions. Future improvements could include sub-frame accuracy through interpolation to identify fractional periods.

Summary updated

BibTeX
@inproceedings{seitz1994affine,
  author = {Steven M. Seitz and Charles R. Dyer},
  title = {{Affine invariant detection of periodic motion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {1994},
  url = {https://openreview.net/forum?id=HJ-PMAb_-S},
}
Figure