Abstract
Time-series alignment is a fundamental challenge in pattern recognition, often complicated by non-linear temporal variability. We present ResNet-TW, a novel framework that reimagines Deep Residual Networks as mathematical flows to generate smooth, invertible, and diffeomorphic warping functions. By treating network layers as discrete steps in an ordinary differential equation (ODE), ResNet-TW efficiently synchronizes misaligned sequences in a single forward pass, outperforming traditional optimization-based methods in both speed and accuracy.
Introduction
Temporal variability—where similar patterns occur at different speeds or intervals—is a pervasive issue in sensor data, medical imaging, and action recognition. While Dynamic Time Warping (DTW) is the standard solution, its $O(n^2)$ complexity and lack of generalizability limit its utility for large-scale deep learning. Furthermore, many existing deep learning approaches fail to guarantee diffeomorphism: a transformation that is smooth, order-preserving, and reversible. Without these properties, warped data can become physically nonsensical.
Methodology
ResNet-TW bridges the gap between deep learning and classical geometry by leveraging the Large Deformation Diffeomorphic Metric Mapping (LDDMM) framework.
ResNets as ODEs
The core innovation lies in viewing a Residual Network as an Eulerian discretization of a flow equation. Instead of predicting a final warped state directly, each layer of the network calculates a local "velocity field" that incrementally nudges time coordinates. Integrating these fields across the network's layers ensures the resulting transformation is a smooth flow.
Monotonicity and Regularization
To ensure that time only moves forward, the model employs ReLU or exponential operations within its projection layers, forcing the predicted velocity to remain positive. Additionally, the training objective includes a kinetic energy regularization term. This penalizes unnecessary "movement," ensuring the model finds the most efficient (laziest) warping path and remains robust against noise.
Experimental Evaluation
The authors evaluated ResNet-TW across a diverse range of benchmarks:
- UCR Archive: 84 univariate datasets spanning ECG, sensor, and simulated data.
- 3D Action Recognition: Multivariate datasets including Florence-3D, MSR Action-3D, and MSR Daily Activity, which track human skeletal coordinates.
Results and Discussion
ResNet-TW demonstrates significant improvements in both classification accuracy and computational efficiency. Using a simple Nearest Centroid Classifier (NCC), the model outperformed Euclidean distance baselines on 89% of the UCR datasets, matching or exceeding state-of-the-art methods like DTAN and Soft-DTW.
In complex 3D action recognition tasks, the model achieved a 4% accuracy boost on the MSR Action-3D dataset compared to temporal transformer networks. Qualitatively, t-SNE visualizations confirm that ResNet-TW alignment leads to tighter intra-class clustering and better inter-class separation. Crucially, once trained, the model aligns new sequences in a single forward pass, offering orders of magnitude faster performance than traditional optimization methods.
Conclusion
ResNet-TW provides a mathematically rigorous yet computationally efficient solution for time-series alignment. By framing residual layers as velocity fields, it guarantees diffeomorphic properties that are essential for maintaining data integrity. Future work may explore the use of dynamic kernels to further refine the smoothness of these flows and address spatial noise in high-dimensional skeletal data.
Summary updated