Temporal variation, often referred to as "phase jitter," presents a significant challenge in the analysis of sequential data. In fields ranging from cardiology to climate modeling, researchers frequently encounter multiple observations of the same phenomenon that are misaligned in time. Standard statistical tools, while effective at capturing amplitude differences, often fail to account for these timing variations. When misaligned signals are averaged, the result is a "blurred" representation that fails to accurately reflect any individual observation. Traditionally, this is addressed through unsupervised sequence alignment, a process that becomes increasingly complex when the dataset contains multiple distinct signal types.
Methodology: GPs and DPMMs
The proposed framework addresses these challenges by modeling each sequence as a composition of two distinct components: a smooth underlying function and a monotonic time-warp. Both components are modeled using Gaussian Processes (GPs), ensuring that the resulting functions are smooth and that time only moves forward.
The core innovation of this work is the integration of a Dirichlet Process Mixture Model (DPMM). While previous approaches, such as GP-LVM, attempt to map all sequences onto a single low-dimensional manifold, the DPMM treats alignment as a clustering problem. Because the DPMM is non-parametric, it does not require a pre-specified number of clusters; instead, it automatically infers the number of underlying patterns—such as different types of heartbeats—directly from the data. The model is optimized using a variational lower bound to handle the mathematically intractable true likelihood.
Results and Robustness
The model was evaluated on both synthetic datasets and real-world audio recordings from the PASCAL Classifying Heart Sounds Challenge. A primary advantage of the DPMM approach is its robustness to outliers. In manifold-based models, a single highly warped sequence can distort the entire alignment. In contrast, the DPMM simply assigns such outliers to their own clusters, preserving the alignment of the remaining data.
As illustrated in Figure 2, the DPMM alignment (c) significantly outperforms the GP-LVM baseline (b) in both alignment error and pattern discovery. While the input sequences (a) are highly misaligned, the DPMM model successfully identifies two distinct heartbeat patterns and aligns them with high precision. By simultaneously performing alignment and clustering, the model leverages the similarity of aligned shapes to improve cluster assignments, which in turn refines the alignment.
Conclusion and Future Work
By framing sequence alignment as a clustering problem, this research provides a robust method for discovering patterns in messy, high-dimensional temporal data. Future work will focus on reducing hyperparameter sensitivity through full variational inference and exploring hybrid models that combine global manifold structures with the flexibility of DPMM clustering.
Summary updated