Seedlabs
Source research

Transfer learning for time series classification

Hassan Ismail Fawaz, Germain Forestier, Jonathan Weber, Lhassane Idoumghar, Pierre-Alain Müller · 2018 · 331 citationsRead the paper

Transfer learning for deep neural networks is the process of first training a base network on a source dataset, and then transferring the learned features (the network’s weights) to a second network to be trained on a target dataset. This idea has been shown to improve deep neural network’s generalization capabilities in many computer vision tasks such as image recognition and object localization. Apart from these applications, deep Convolutional Neural Networks (CNNs) have also recently gained popularity in the Time Series Classification (TSC) community. However, unlike for image recognition problems, transfer learning techniques have not yet been investigated thoroughly for the TSC task. This is surprising as the accuracy of deep learning models for TSC could potentially be improved if the model is fine-tuned from a pre-trained neural network instead of training it from scratch. In this paper, we fill this gap by investigating how to transfer deep CNNs for the TSC task. To evaluate the potential of transfer learning, we performed extensive experiments using the UCR archive which is the largest publicly available TSC benchmark containing 85 datasets. For each dataset in the archive, we pre-trained a model and then fine-tuned it on the other datasets resulting in 7140 different deep neural networks. These experiments revealed that transfer learning can improve or degrade the models predictions depending on the dataset used for transfer. Therefore, in an effort to predict the best source dataset for a given target dataset, we propose a new method relying on Dynamic Time Warping to measure inter-datasets similarities. We describe how our method can guide the transfer to choose the best source dataset leading to an improvement in accuracy on 71 out of 85 datasets.

What the full text shows

Working prototype
  • A DTW-based similarity method for selecting source datasets improves accuracy compared to random selection on the majority of datasets. — 71 out of 85 datasets (UCR archive benchmark)
  • Naive transfer learning can lead to negative transfer, drastically reducing accuracy if the source dataset is poorly chosen. — 93.3% to 16.7% accuracy drop (OliveOil dataset)
  • Transfer learning significantly improves accuracy on datasets with very small training sets. — 76% to 93% accuracy (ShapeletSim dataset (20 training instances))
  • The proposed smart selection method is statistically superior to random source selection. — p < 10^-7 (Wilcoxon signed-rank test) (UCR archive benchmark)
Setup
85 datasets from the UCR archive; 7,140 total trained models; executed on a cluster of 60 GPUs (GTX 1080 Ti, Tesla K20, K40, K80).
How
The authors pre-trained CNNs on source datasets and fine-tuned them on target datasets across all pairs in the UCR archive. They developed a 'smart' transfer method using Dynamic Time Warping (DTW) to measure inter-dataset similarity based on class medoids and DBA-reduced time series.
Limitations
The nearest neighbor is not always the optimal source (e.g., 2nd NN performed better for DiatomSizeReduction and Wine). · Performance depends heavily on the initial weights of the network.

Summarized by Gemma 4 from the open-access full text · 15 Nov 2026. Read it