[Paper Review] Modeling Time Series Similarity with Siamese Recurrent Networks
This paper proposes Siamese Recurrent Networks (SRNs), a supervised deep learning model that learns time-series similarity by jointly training shared recurrent networks to embed pairs of time series into vector representations, where similarity is measured via a weighted inner product. The model significantly improves performance in few-shot and one-shot learning scenarios, such as signature and voice recognition, by leveraging class-conditional supervision to learn discriminative, generalizable representations that outperform unsupervised baselines like DTW.
Traditional techniques for measuring similarities between time series are based on handcrafted similarity measures, whereas more recent learning-based approaches cannot exploit external supervision. We combine ideas from time-series modeling and metric learning, and study siamese recurrent networks (SRNs) that minimize a classification loss to learn a good similarity measure between time series. Specifically, our approach learns a vectorial representation for each time series in such a way that similar time series are modeled by similar representations, and dissimilar time series by dissimilar representations. Because it is a similarity prediction models, SRNs are particularly well-suited to challenging scenarios such as signature recognition, in which each person is a separate class and very few examples per class are available. We demonstrate the potential merits of SRNs in within-domain and out-of-domain classification experiments and in one-shot learning experiments on tasks such as signature, voice, and sign language recognition.
Motivation & Objective
- To address the limitations of handcrafted and unsupervised similarity measures in time-series analysis, which cannot adapt to data distributions or exploit class-level supervision.
- To develop a deep learning model that learns a global, shared similarity metric across time series by leveraging supervised signal from similar and dissimilar pairs.
- To improve performance in challenging scenarios such as one-shot learning and extreme classification, where only a few examples per class are available.
- To demonstrate the effectiveness of the model in real-world tasks like signature, voice, and sign language recognition.
Proposed method
- The model uses a siamese architecture with shared recurrent neural network weights to process two input time series into latent representations.
- The representation of each time series is obtained either from the final hidden state (SRN-L) or the average of all hidden states (SRN-A) across timesteps.
- A similarity score is computed as a weighted inner product between the two learned representations.
- All model parameters are trained end-to-end by minimizing a contrastive classification loss that pulls similar pairs closer and pushes dissimilar pairs apart.
- The model is trained on pairs of time series labeled as similar or dissimilar, enabling it to learn a discriminative similarity metric from supervision.
- The approach is evaluated on multiple datasets including MCYT (signature), Arabic voice, and sign language, using t-SNE visualizations and classification accuracy.
Experimental results
Research questions
- RQ1Can a supervised deep learning model learn a more effective time-series similarity measure than traditional unsupervised methods like DTW in few-shot and one-shot learning settings?
- RQ2How well can a siamese recurrent network generalize when only a small number of training examples are available per class?
- RQ3Does learning a shared, global similarity metric across all time series improve performance in tasks with high class diversity and low per-class sample size?
- RQ4To what extent do the learned representations capture meaningful semantic and structural similarities between time series, as shown by visualization and classification?
Key findings
- The SRN-L variant, which uses the final hidden state as the representation, achieved superior performance in within-domain and out-of-domain classification tasks compared to traditional methods like DTW.
- t-SNE visualizations of SRN-L embeddings revealed that similar signatures and voice utterances were consistently grouped together, indicating effective clustering of semantically similar time series.
- In one-shot learning experiments, the SRN demonstrated strong generalization ability, effectively distinguishing between genuine and forged signatures with limited training data per class.
- The model outperformed unsupervised baselines such as DTW in clustering and classification, particularly in scenarios where class-level supervision was critical for learning relevant features.
- The t-SNE maps showed that SRN embeddings captured meaningful structure—such as pen pressure variations in signatures and speaker identity in voice data—while DTW failed to group same-class samples effectively.
- The results suggest that supervised learning of time-series similarity via siamese recurrent networks enables better representation learning than unsupervised or handcrafted approaches, especially in low-data regimes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.