# Time Series Classification from Scratch with Deep Neural Networks: A Strong Baseline

Plain deep networks trained on raw series match top time series classifiers

Zhiguang Wang, Weizhong Yan, Tim Oates · arXiv · 2016-11-20

- **Problem** Time series classification has relied on distance, feature and ensemble methods that need predefined distances or careful feature construction. Convolutional alternatives still depend on down sampling and sliding windows before training, which makes them harder to deploy.
- **Method** The authors train an MLP, an FCN and a ResNet directly on z-normalized raw series. FCN stacks three convolution blocks with global average pooling instead of a fully connected layer.
- **Results** FCN reaches an MPCE of 0.0219 across 44 UCR datasets, against 0.0231 for ResNet and 0.0407 for MLP.

## Why raw-series deep baselines are needed

Distance-based methods such as 1NN-DTW, feature-based methods such as BOSS and TSBF, and ensembles such as COTE and the Elastic Ensemble have set the accuracy reference for time series classification, but each depends on pre-defined distances, feature construction or careful ensemble design. Convolutional networks trained end to end have started to appear, yet the multi-scale CNN depends on down sampling, skip sampling and sliding windows before training, which makes it harder to deploy.

The study asks whether plain deep networks trained directly on raw series, with only z-normalization, can compete with these methods on the UCR subset of 44 datasets. Three architectures are evaluated, MLP, FCN and ResNet, on the same datasets as the compared benchmarks.

## Three network designs

The MLP is three fully connected layers of 500 neurons each, with dropout applied to each layer input and ReLU as the activation, ending in a softmax layer. Dropout rates are 0.1 at the input, 0.2 at the hidden layers and 0.3 at the softmax layer, so that dropout limits co-adaptation of neurons without the deeper stacking that would leave many ReLU units inactive.

Each FCN block is a one-dimensional convolution followed by batch normalization and ReLU, with kernel sizes 8, 5 and 3 and no striding. The basic block is written as \\( y = W \\otimes x + b \\), \\( s = BN(y) \\) and \\( h = ReLU(s) \\). Three such blocks use filter counts 128, 256 and 128. No pooling is used, and global average pooling takes the place of a fully connected layer before the softmax, which reduces the number of weights.

The ResNet reuses the FCN convolution block to form three residual blocks with filter counts 64, 128 and 128. The block output is \\( y = h\_3 + x \\) followed by \\( \\hat{h} = ReLU(y) \\), so the shortcut carries the input forward past the three convolutions. The ResNet has 11 layers, and the authors note that the design reuses the FCN structure and that better structures are likely for this problem.

## Training and model selection

Each dataset is z-normalized with the mean and standard deviation of its own training split, and the same transform is applied to the test split. The MLP is trained with Adadelta at a learning rate of 0.1, while FCN and ResNet use Adam at a learning rate of 0.001. All models use categorical cross entropy.

The reported model is the one with the lowest training loss, and its test performance is taken as the result. No hyperparameter tuning or cross validation is performed, which keeps the baseline free of tuning choices.

## Measuring performance with MPCE

Counts of best-performing datasets are dominated by top results, rankings depend on which models are in the pool, and better-than comparisons also shift with the model set. None of these accounts for the number of classes in each dataset. MPCE is proposed to account for that number, so that errors on datasets with many classes are weighted fairly against errors on datasets with few classes.

For each dataset k, the per-class error is \\( PCE\_k = e\_k / c\_k \\), where \\( e\_k \\) is the error rate and \\( c\_k \\) is the number of classes. MPCE of model i is the average of \\( PCE\_k \\) over the K datasets. A paired T-test on the PCE scores is used to decide whether MPCE differences between models are significant.

## Benchmark comparison on 44 UCR datasets

Table I reports test error for eight benchmark methods, DTW, COTE, MCNN, BOSSVS, PROP, BOSS, SE1 and TSBF, alongside the three baselines. COTE combines weighted votes over 35 classifiers, and BOSSVS is an ensemble of BOSS models with different window lengths.

Across the eleven models, FCN has the lowest MPCE at 0.0219, and ResNet follows at 0.0231. MLP has the highest at 0.0407. By MPCE, ResNet ranks third among the eleven models, just behind COTE.

FCN is the best on the largest number of datasets in Table I, with 18 wins, against 13 for BOSS and 8 for COTE and ResNet. Win counts and rankings are presented alongside MPCE, and the authors argue that MPCE is the more robust summary because it accounts for the number of classes.

## Which models form the best group

The paired T-test on MPCE places COTE, MCNN, BOSS, FCN and ResNet in one group with no significant differences among them. The remaining approaches form a second cluster, and MLP and DTW are the two that are not linked to the others by the p-values.

MLP shows no significant difference from 1NN-DTW, so the simple three-layer MLP performs comparably to the classic distance baseline under this test.

The authors use a Wilcoxon rank-sum test with tie correction on the error rates rather than the Wilcoxon signed-rank test used in earlier work, because the rank-sum test handles tied error rates. Their p-values differ from those reported in the earlier work, which the authors attribute to a different model pool, since rank-based statistics are sensitive to the pool and its size.

## Localizing class regions with the Class Activation Map

Global average pooling makes each filter's output a sum of its activations over time, so the softmax input for class c is a weighted sum of those activations with the class weights \\( w\_{ck} \\). The class activation map \\( M\_c = \\sum\_k w\_{ck} S\_k(x) \\) keeps the temporal structure, so each location x shows how much that activation pushes toward class c.

When the last convolutional output is shorter than the input, the map is upsampled to the input length, so every point of the raw series receives a value. The FCN is the model that gives this map, since it keeps the global average pooling output and softmax weights in the final layer.

On CBF, label 0 is driven mostly by the region with a sharp drop, label 1 by a sharp rise followed by a smooth downward trend, and label 2 by a long plateau near the middle. On StarLightCurve, labels 0 and 1 look alike, so the map for label 1 gives less weight to the smooth downward trend, while the map for label 0 spreads attention across the signal.

These are visual readings of two datasets from the highlighted regions in the examples, and the authors present them as an explanation of how the convolutional network classifies.

## Overfitting without a validation split

Neural networks overfit easily because of their parameter count, and UCR datasets are small, so overfitting is expected. The models here have no validation or test-based selection, and only the lowest training loss decides the reported model. Even so, the training accuracy of the models is almost all 100%, and the authors say the models still generalize well.

The authors attribute part of the generalization to dropout, which improves the generalization of the MLP by a large margin. For the convolutional networks, batch normalization and replacing the fully connected layer with global average pooling reduce the parameter count and help generalization.

## Filters seen through Gramian Angular Summation Fields

The series is rescaled to \[0, 1\] with \\( \\tilde{x}\_i = (x\_i - \\min(X)) / (\\max(X) - \\min(X)) \\), and the Gramian Angular Summation Field is built from the trigonometric sums between point pairs. Entry G(i,j) with \|i-j\| = k encodes the cosine sum over pairs that are k steps apart, and the main diagonal, where k = 0, contains the original values.

In the MLP, the second and last layers have similar structures with little degradation, and the first layer has larger values than the later layers. The FCN and ResNet filters look alike, and the authors read this as the local patterns staying homogeneous across convolutional layers.

## How the models' classification behaviour compares

PCA is used to reduce the dimension of the PCE scores because it is a linear transform that preserves large pairwise distances. In the reduced space, the three baselines lie far from most other benchmarks, and FCN and ResNet lie close to each other.

MLP sits in a separate category, which the authors read as a different classification behaviour. They suggest that combining MLP and convolutional features in a deep-and-wide model might improve performance, but this was not tested.

## Limitations

ResNet overfits the training data more easily than FCN, and its test performance is not as good as FCN's on these datasets. The authors attribute this to the UCR datasets being small and not complex enough to use a deeper network, and they suggest ResNet may suit larger and more complex data, which was not tested.

Models are chosen by lowest training loss, with no validation split and no hyperparameter tuning, so they may be overfitted to the training data. Rankings and win counts depend on the model pool, and the significance results apply to these eleven models only.

The experiments cover only the 44 univariate UCR datasets, and the multivariate setting addressed by MC-CNN was not evaluated here.

## Paper info

- **Authors**: Zhiguang Wang, Weizhong Yan, Tim Oates
- **Venue**: arXiv · Preprint
- **First published**: 2016-11-20
- **Added**: 2026-11-12
- **Updated**: 2016-12-14
- **Version**: v4
- **arXiv**: 1611.06455
- **Category**: cs.LG · cs.NE · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1611.06455v4) · [PDF ↗](https://arxiv.org/pdf/1611.06455v4)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Zhiguang Wang, Weizhong Yan, Tim Oates (2016). Time Series Classification from Scratch with Deep Neural Networks: A Strong Baseline. arXiv:1611.06455v4. https://arxiv.org/abs/1611.06455v4

**BibTeX**

```
@misc{wang2016time,
  title = {{Time Series Classification from Scratch with Deep Neural Networks: A Strong Baseline}},
  author = {Zhiguang Wang and Weizhong Yan and Tim Oates},
  year = {2016},
  eprint = {1611.06455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.06455v4}
}
```

## Other paper commentary

- [Temporal Ensembling for Semi-Supervised Learning](https://refivu.com/en/papers/5823cdfc-4033-4589-9f86-a6c88d27f620-temporal-ensembling-for-semi-supervised-learning.md)
- [Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks](https://refivu.com/en/papers/2ced2044-9976-4c74-bbf8-ff344f253f42-modeling-long-and-short-term-temporal-patterns-with.md)
- [PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization](https://refivu.com/en/papers/d88e659c-e7cf-4fb4-acf4-46e297868666-posenet-a-convolutional-network-for-real-time-6.md)
- [Gate-Variants of Gated Recurrent Unit (GRU) Neural Networks](https://refivu.com/en/papers/15731593-7d6d-4afb-b434-961a20dea639-gate-variants-of-gated-recurrent-unit-gru-neural.md)
- [Recurrent Neural Networks for Multivariate Time Series with Missing Values](https://refivu.com/en/papers/04779a68-ae30-4f73-bc85-9bae7235eaaf-recurrent-neural-networks-for-multivariate-time-series-with.md)
- [Non-negative matrix factorization with sparseness constraints](https://refivu.com/en/papers/56eb7310-b0a6-4b18-9880-4ca6ff6f54dc-non-negative-matrix-factorization-with-sparseness.md)
- [Benchmarking Single Image Dehazing and Beyond](https://refivu.com/en/papers/e56ca83c-da79-4a86-ba3f-0e290a906769-benchmarking-single-image-dehazing-and-beyond.md)
- [Object Detection in Optical Remote Sensing Images: A Survey and A New Benchmark](https://refivu.com/en/papers/9963ea9e-19c4-4bf2-8e66-d7887d703d1e-object-detection-in-optical-remote-sensing-images-a.md)
- [A Diversity-Promoting Objective Function for Neural Conversation Models](https://refivu.com/en/papers/a4f62a40-246e-47fd-bbb9-33f09731586c-a-diversity-promoting-objective-function-for-neural.md)
- [The Arcade Learning Environment: An Evaluation Platform for General Agents](https://refivu.com/en/papers/2c89eed5-9dfb-4243-8466-0655582e3266-the-arcade-learning-environment-an-evaluation-platform-for.md)
- [A Call for Clarity in Reporting BLEU Scores](https://refivu.com/en/papers/626061b1-f2e9-4997-a6e6-2f15df6f8b3f-a-call-for-clarity-in-reporting-bleu-scores.md)
- [Federated Optimization: Distributed Machine Learning for On-Device Intelligence](https://refivu.com/en/papers/5f4eb215-ecfd-414d-aaa9-bd382c3c7b54-federated-optimization-distributed-machine-learning-for-on.md)

## Terms in this paper

- [dropout](https://refivu.com/en/terms/db73f75bbdd3-dropout)
- [ADAM](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [Batch Normalization](https://refivu.com/en/terms/2b3e5f8509f6-batch-normalization)
- [global average pooling](https://refivu.com/en/terms/f70116a971b4-global-average-pooling)
- [PCA](https://refivu.com/en/terms/2f4628e32ef5-pca)
- [Adadelta](https://refivu.com/en/terms/f8ccffb7eddb-adadelta)
- [rectified linear unit](https://refivu.com/en/terms/aa3703587017-rectified-linear-unit)
- [BOSS](https://refivu.com/en/terms/c5f90f7aa068-boss)
- [CBF](https://refivu.com/en/terms/0031e0d0fd65-cbf)
- [COTE](https://refivu.com/en/terms/7105263cd11f-cote)
- [Multilayer Perceptrons](https://refivu.com/en/terms/963f1331078d-multilayer-perceptrons)
- [Residual Network](https://refivu.com/en/terms/ebc3fb8a75df-residual-network)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/8883de27-afd8-4d47-acd8-ad01a7dfe332-time-series-classification-from-scratch-with-deep-neural)
