Abstract
Many physical phenomena, within short time windows, can be explained by low order differential relations. In a discrete world, these relations can be described using low order difference equations or equivalently low order auto regressive (AR) models. In this paper, based on this intuition, we propose an algorithm for solving time-sort temporal puzzles, defined as scrambled time series that need to be sorted out. We frame this problem using a mixed-integer semi definite programming formulation and show how to turn it into a mixed-integer linear programming problem, which can be solved with off-the-shelf solvers, by using the recently introduced atomic norm framework. Our experiments show the effectiveness and generality of our approach in different scenarios.
Introduction
Reconstructing the chronological order of a scrambled sequence of data points—a task known as solving "Temporal Puzzles"—is a fundamental challenge in data analysis and computer vision. A classic example is the photo sequencing problem, where a collection of images from an event (like a marathon or a wedding) taken by multiple independent cameras must be reordered to reconstruct the narrative. Traditional computer vision methods rely heavily on matching visual features between frames. However, these approaches often falter when cameras are far apart, lighting varies, or the scene contains "dynamic textures" like ocean waves or smoke.
This paper proposes a novel framework that applies Occam’s Razor to dynamical systems. The core hypothesis is that the correct temporal order is the one that can be explained by the simplest possible mathematical model. By treating the data as a signal rather than just a set of images, the method becomes agnostic to the data's modality.
Methodology
The proposed solution is built on the intuition that natural phenomena follow simple physical laws (e.g., constant velocity or smooth acceleration) over short durations. These laws can be mathematically represented as low-order Auto-Regressive (AR) models.
- Hankel Matrices and Rank Minimization: The complexity of a sequence is reflected in the "rank" of its Hankel matrix. A correctly ordered sequence yields a low-rank matrix, while a scrambled one appears as high-dimensional noise.
- Atomic Norm Formulation: To solve the computationally difficult rank minimization problem, the authors utilize the Atomic Norm framework. This represents the sequence as a combination of "atoms"—the building blocks of linear systems.
- RDAFH Algorithm: The authors introduce the Ring Discretized Atomic Finite Horizon (RDAFH) algorithm to handle finite data lengths and potentially unstable trajectories.
- Optimization via MILP: The problem is ultimately transformed into a Mixed-Integer Linear Programming (MILP) formulation. This allows the use of powerful off-the-shelf solvers like Gurobi to find the global best permutation that minimizes model complexity.
Datasets and Evaluation
The framework was evaluated on two distinct types of data:
- Crowd Photography: Datasets featuring events captured by multiple non-stationary cameras (e.g., marathons, park scenes).
- Video Decryption: A new dataset containing challenging scenes like ocean waves, paper unfolding, and athletic movements (javelin throws, skiing). These sequences were intentionally shuffled, and the algorithm was tasked with "decrypting" the original order.
Key Results
The proposed approach demonstrated significant advantages over existing state-of-the-art methods, particularly in scenarios where visual feature matching is difficult.
- Accuracy on Dynamic Textures: The method achieved near-perfect sorting (measured by Kendall distance) for 11 out of 15 sequences in the video decryption task. It notably outperformed appearance-based methods on textures like waves and fire.
- Computational Efficiency: On crowd photography datasets, the algorithm was orders of magnitude faster than previous benchmarks.
- Scalability: Unlike traditional methods that struggle as more cameras are added, this approach remains stable or even improves, as additional cameras provide more samples of the underlying physical dynamics.
Discussion and Limitations
While powerful, the MILP formulation is NP-hard, currently limiting the algorithm to sequences of approximately 20-40 frames. For longer sequences, the data must be processed in overlapping batches. Additionally, the algorithm may struggle with perfectly periodic data (like a pendulum) where multiple cycles are indistinguishable, or sequences where the underlying physics changes abruptly. Future work will explore "switching" models to handle these complex transitions and improve scalability for longer temporal windows.
Summary updated