[KongchangAI]
· 1 min read· 886 words

Regularized Procrustes-DTW: A New Method for Financial Time Series Pattern Dictionaries

Regularized Procrustes-DTW: A New Method for Financial Time Series Pattern Dictionaries

normProDTW divergence integrates multiple transformations to build financial time series pattern dictionaries unsupervised, with high accuracy and compactness.

The paper proposes normProDTW divergence, combining amplitude normalization, dynamic time warping, vertical flipping, and regularized Procrustes superimposition for unsupervised pattern mining in financial time series. On FTSE 100 and Nikkei 225 data, dictionaries built with this divergence outperform DTW, Euclidean distance, and k-Shape distance in reconstruction accuracy, and require only 17-28 elements to achieve the accuracy of amplitude-normalized DTW using 50 elements. Dictionary elements record direction, time frame, duration, and amplitude, providing interpretable discrete descriptions with potential application in language model-generated market commentary, though not yet experimentally validated.

Recurring local patterns in financial time series often vary in duration and amplitude, and traditional distance metrics struggle to capture both variations simultaneously. A recent paper proposes a divergence measure called normProDTW, which combines amplitude normalization, dynamic time warping (DTW), vertical flipping, and regularized Procrustes superimposition, and uses it as a basis to construct a pattern dictionary across time scales in an unsupervised manner.

Paper source screenshot

Method Core: normProDTW Divergence

The design goal of normProDTW is to compare two curves while tolerating both stretching along the time axis and scaling in amplitude, and to identify similar patterns after vertical flipping. Its core components include:

  • Amplitude normalization: Eliminates the influence of absolute price levels, making stock movements at different price points comparable.
  • Dynamic time warping (DTW): Allows nonlinear alignment along the time axis, matching similar patterns with different durations.
  • Vertical flipping: Treats upward and downward patterns as different directions of the same pattern, increasing the dictionary's coverage.
  • Regularized Procrustes superimposition: Aligns curves under rotation, translation, and scaling transformations, while regularization prevents overfitting.

This combination enables normProDTW to mine reusable local patterns from historical data without relying on labels.

Dynamic time warping (DTW) is an algorithm for measuring the similarity between two time series. It allows nonlinear distortion along the time axis to find an optimal alignment path. Unlike Euclidean distance, which requires strict point-to-point alignment, DTW computes a cumulative cost matrix via dynamic programming and can match segments with different durations but similar shapes. In financial time series, DTW is often used to identify recurring patterns across different time scales, but it is sensitive to amplitude scaling and is therefore often combined with normalization methods.

Procrustes superimposition originates from statistical shape analysis and aims to align two shapes through rotation, translation, and scaling transformations to minimize the distance between corresponding points. In the context of time series, Procrustes superimposition can be used to compare curve shapes, but standard methods are sensitive to outliers and prone to overfitting. Regularized Procrustes constrains transformation parameters by introducing penalty terms, improving generalization ability. normProDTW combines Procrustes with DTW, allowing elastic alignment along the time axis while enhancing robustness through shape transformations.

Experimental Setup and Dictionary Construction

The study used market series from constituents of the FTSE 100 Index and the Nikkei 225 Index, with time frames ranging from 1 to 1,440 one-minute observations (i.e., from 1 minute to 24 hours). The algorithm extracts curve segments at multiple time scales and forms dictionary elements through normProDTW clustering. Each dictionary element represents a typical pattern, and each occurrence records its associated element, direction (whether flipped), time frame, duration, and amplitude range.

This discretized description makes price paths inspectable and interpretable. The paper notes that the dictionary "can provide material for language models to generate market commentary," suggesting potential applications in automated financial text generation.

k-Shape distance is a distance measure designed specifically for time series clustering, based on cross-correlation and shape extraction, and is invariant to amplitude scaling and phase shifts. It maximizes shape similarity through normalized cross-correlation and is commonly used in unsupervised clustering tasks. Unlike normProDTW, k-Shape does not explicitly handle vertical flipping and has lower tolerance for local distortion along the time axis. In financial pattern mining, k-Shape can serve as a baseline method, but its ability to handle combinations of complex transformations is limited, so normProDTW has advantages in diversity and compactness.

Performance Comparison: Fewer Elements, Higher Accuracy

On unseen test periods, the dictionary based on normProDTW outperforms dictionaries based on DTW, Euclidean distance, or k-Shape distance in average reconstruction accuracy, and the dissimilarity between dictionary elements is greater (i.e., the elements are more diverse). More interestingly, normProDTW requires only about 17–28 elements to achieve the accuracy of amplitude-normalized DTW using 50 elements. This means that while maintaining or even improving representational capacity, the dictionary size is significantly reduced, improving computational efficiency and interpretability.

Comparisons with methods such as k-Shape also show advantages, but the paper does not disclose specific numerical values and only qualitatively describes them as "more accurate" and having "greater inter-element dissimilarity."

Potential Applications and Limitations

One direct application of this method is to construct interpretable descriptions of market states. Since each pattern occurrence is accompanied by time frame, duration, and amplitude information, analysts or algorithms can use it to identify which combination of patterns the current market is in. The paper also mentions that this discrete description could potentially be used by language models to generate market commentary, but no actual generation experiments were conducted.

In terms of limitations, the experiments cover only constituents of two stock indices and have not yet been validated on a broader range of asset classes (such as foreign exchange or commodities). In addition, details such as the impact of the choice of regularization parameters on results and how computational complexity grows with data scale are not fully elaborated in the abstract.

Conclusion

normProDTW provides a robust metric for pattern mining in financial time series that integrates multiple transformations, and the dictionary it constructs shows advantages in accuracy and compactness. Although the application prospects remain to be further validated, the method opens new directions for unsupervised pattern discovery and interpretable financial analysis.

Paper title: Constructing Multiscale Pattern Dictionaries for Financial Time Series with a Regularized Procrustes -- DTW Divergence

#normProDTW#financial time series#pattern dictionary#dynamic time warping#Procrustes superimposition#unsupervised learning
Share:

Related articles