Event Retrieval Using Motion Barcodes

Gil Ben-Artzi, Michael Werman, Shmuel PelegarXiv 2014

TL;DR

Researchers have developed "Motion Barcodes," a binary temporal feature that identifies the same event across vastly different camera angles by recording only when motion occurs, rather than what it looks like. By ignoring appearance, direction, and magnitude, this method achieves high retrieval accuracy in scenarios where traditional descriptors like SIFT and VLAD completely fail.

What Problem Does This Paper Address?

Imagine trying to match two videos of a soccer goal: one filmed from the stands behind the net and another from the sidelines. To a computer using standard appearance-based tools (like SIFT or SURF), these look like entirely different events. The player’s face is visible in one but not the other; the background is different; even the direction of motion is reversed.

Current state-of-the-art video retrieval methods rely heavily on appearance. This leads to two major failure modes:

  1. Significant Viewpoint Changes: When cameras are far apart, the visual features of the same object change too drastically to match.
  2. Temporal Confusion: Different events happening in the same location at different times (e.g., two different games in the same stadium) are often incorrectly matched because they share the same static background.

Methods

The authors propose a pixel-based feature called a Motion Barcode.

For every pixel $(x, y)$ in a video of $N$ frames, they generate an $N$-bit string. If there is motion at that pixel at time $t$, the bit is 1; otherwise, it is 0. $$B_{x,y}(t) = \begin{cases} 1 & \text{motion at } (x, y) \text{ at time } t \\ 0 & \text{otherwise} \end{cases}$$

The Workflow:

  1. Motion Detection: They use background subtraction to determine if a pixel is "moving" or "stationary."
  2. Barcode Generation: Each pixel gets its own temporal bitstring.
  3. Pooling via Superpixels: To make the representation manageable and robust to noise, they segment the video into superpixels using the SLIC algorithm. They calculate a "motion image" (the sum of 1s in each pixel's barcode) to guide this segmentation. Each superpixel is then represented by a single "average" barcode.
  4. Similarity Matching: To compare two videos, they calculate the correlation between their sets of barcodes. They use a bipartite matching approach (or a faster heuristic) to find how many barcodes in one video have a high-correlation match in the other.
Fig. 4: (a) The ideal case where a point in the scene is moving across the intersection of two rays. L is for a ray (pixel) from the left camera, R is for a ray (pixel) from the right camera. Both pixels observe the existence of motion simultaneously. (b) Same pixels (rays) as in (a), but motion is seen only in the right camera. (c) Due to the 3D volume of objects in the scene, pixels can be matched even when they observe differ- ent points on an object.

Datasets

The authors evaluated their method using the EPFL Multi-camera pedestrians dataset. This dataset is particularly challenging because it features:

  • 30 sequences across 6 different scenes.
  • Significant multi-view settings (cameras placed at wide angles).
  • Indoor and outdoor environments with frequent occlusions.
  • Events occurring in the same location but at different times.

They also added 200 distractor clips featuring similar activities (like walking) to test the system's ability to distinguish between similar-looking but different events.

Key Insights and Ideas

  • Invariance through Simplification: The core "aha" moment is that while motion direction and magnitude are viewpoint-dependent, the existence of motion is a 3D physical reality that is largely viewpoint-invariant. By throwing away color, texture, and direction, you actually gain robustness.
  • Temporal is the New Spatial: Traditional methods focus on spatial arrangements of features. Motion Barcodes focus almost entirely on temporal synchronization. If two cameras see "something" moving at the exact same sequence of timestamps, they are likely watching the same event.
  • Robustness to Occlusion: Because the method matches sets of barcodes rather than a single global descriptor, it can still find a match even if parts of the scene are occluded in one of the views.
Fig. 3: Two views of the same scene, with corresponding mo- tion barcodes. In the left image there is an actor walking from back to front and in the right image the same actor is walk- ing from front to back. The two cameras have 90 degrees difference in viewing directions. To enable visibility, motion barcodes were reduced to 5 clusters by k-means. Each of the five clusters has a different color. Each region of pixels in the left view corresponds to a region of pixels in the right view. The motion barcodes in corresponding regions have the high- est correlation score. The arrows are examples for such two regions.

Key Results

The results highlight a massive performance gap between Motion Barcodes and appearance-based methods in wide-baseline scenarios:

  • Accuracy: Motion Barcodes achieved a Mean Average Precision (mAP) of 0.7, compared to just 0.051 for SIFT+BoW and 0.058 for SIFT+VLAD.
  • Discriminative Power: In one test, Motion Barcodes found over 200 matches between disparate views of the same scene, while SIFT descriptors found only 3.
  • Handheld Stability: The method proved effective even for handheld mobile phone footage, provided the video was first stabilized using standard homography techniques, reaching a peak mAP of 0.68.

Limitations and Future Work

  • Motion Requirement: The method requires a minimum amount of activity to work. The authors found that accuracy drops if there aren't at least 100 barcodes with motion present for at least 10% of the video duration.
  • Stationary Cameras (Mostly): While the authors demonstrated success with stabilized handheld video, the core logic assumes a relatively static background to make background subtraction effective.
  • Temporal Alignment: The current similarity measure assumes the videos are already temporally aligned (showing the same timeframe). Future work could involve sliding the barcodes in time to find the best temporal offset for unaligned clips.

Summary updated

BibTeX
@misc{benartzi2014event,
  author = {Gil Ben-Artzi and Michael Werman and Shmuel Peleg},
  title = {{Event Retrieval Using Motion Barcodes}},
  year = {2014},
  eprint = {1412.1455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.1455},
}
Figure