Source-linked AI summary

Time Series Anomaly Detection Using Convolutional Neural Networks and Transfer Learning

Tailai Wen, Roy Keyes

arXiv:1905.13628v1cs.LGcs.CVstat.ML

TL;DR

Time series anomaly detection is important for automated monitoring, yet prior deep-learning work mainly used RNNs and failure data are often sparse. The paper proposes CNN-based U-Net segmentation with transfer learning from synthetic univariate data, including MU-Net for multivariate tasks. Across synthetic and real datasets, the approach was reported to perform successfully, including a 71.95% testing IoU with univariate transfer learning versus 50.96% for training from scratch on synthetic unusual-shape curves.

  • Problem

    Time series anomaly detection requires effective monitoring methods, while prior deep-learning work largely relied on RNNs and sparse failure events limit model training.

  • Method

    The paper uses CNN-based U-Net segmentation, pretrains on large-scale synthetic univariate anomalies, and fine-tunes on small univariate or multivariate tasks using MU-Net for multivariate transfer.

  • Results

    71.95% testing IoU was achieved with univariate transfer learning versus 50.96% when training a U-Net from scratch on synthetic curves with unusual shapes.

  • Takeaways & Limitations

    The approach was tested on univariate and multivariate synthetic and real datasets and returned satisfactory or promising performance.

  • Takeaways & Limitations

    The paper identifies the need for future performance comparisons with statistical, RNN-based, and CNN-based benchmark methods.

Abstract

from arXiv · show

Time series anomaly detection plays a critical role in automated monitoring systems. Most previous deep learning efforts related to time series anomaly detection were based on recurrent neural networks (RNN). In this paper, we propose a time series segmentation approach based on convolutional neural networks (CNN) for anomaly detection. Moreover, we propose a transfer learning framework that pretrains a model on a large-scale synthetic univariate time series data set and then fine-tunes its weights on small-scale, univariate or multivariate data sets with previously unseen classes of anomalies. For the multivariate case, we introduce a novel network architecture. The approach was tested on multiple synthetic and real data sets successfully.

1 Introduction

Time series anomaly detection is important for automated monitoring, but prior deep-learning work largely relied on RNNs. The paper reframes anomaly detection as CNN-based time series segmentation and adds transfer learning for sparse univariate and multivariate settings.

  • Time series anomaly detection is presented as important for automated monitoring, particularly in industrial Internet of Things environments.
  • Most previous deep-learning approaches to time series anomaly detection used recurrent neural networks, while CNN research mainly addressed sequence classification.
  • The paper applies a time-series version of U-Net to detect anomalous segments by treating anomaly detection as a segmentation problem.The authors relate selecting anomalous time-series segments to marking objects in image segmentation.
  • The proposed transfer-learning framework pretrains on large-scale synthetic univariate series and fine-tunes on small univariate or multivariate datasets with previously unseen anomaly classes.

2 Related Work

The related work situates this approach at the intersection of U-Net image segmentation, CNN-based time-series modeling, and transfer learning. It adapts those ideas to time-series anomaly segmentation rather than directly importing an existing application.

  • U-Net introduced skip channels between encoding and decoding layers, and became influential across image-segmentation applications.
  • The paper draws on U-Net’s image-segmentation design to motivate a convolutional architecture for time-series segmentation.
  • The transfer-learning design follows prior successes in image and natural-language processing and uses synthetic pretraining data inspired by earlier CNN work.
  • The paper extends earlier time-series augmentation work with additional transformations such as zooming, random trends, reversal, and series mutation.

3 CNN-based Time Series Segmentation

The method models time series as one-dimensional images and uses a U-Net encoder-decoder to segment anomalous periods. It supports streaming inference, scale-aware normalization, and label-preserving augmentation.

  • 3.1 U-Net for time series segmentation: The U-Net architecture combines four decoding sections with upsampling and skip connections that concatenate encoder and decoder features.
  • 3.1 U-Net for time series segmentation: For anomaly classes, the final layer uses sigmoid probabilities when labels can overlap, and softmax with an added nominal class when they are mutually exclusive.
  • 3.2 Prediction on Streaming Data: Streaming deployment repeatedly evaluates snapshots of recent data so each time point is assessed at least once, with higher-frequency snapshots enabling result ensembling.
  • 3.2 Prediction on Streaming Data: Snapshot length should match the time scale of anomalous behavior, using downsampling for long snapshots and upsampling for short ones.
  • 3.3 Input Normalization: The model requires a specified magnitude scale for normalization, while sample-wise normalization allows anomaly detection relative to each snapshot’s dynamic scale.
  • 3.4 Augmentation: Augmentation expands training diversity, but operations must preserve labels because some transformations can create anomalies or alter anomaly types.

4 Transfer Learning

The transfer-learning framework addresses sparse failure data by pretraining on diverse synthetic univariate anomalies and fine-tuning on target tasks. MU-Net transfers univariate features to multivariate series without collapsing sensor channels into an uninformative sum.

  • 4 Transfer Learning: Transfer learning uses a pretrained model’s weights and fine-tunes them on smaller task-related datasets to address sparse failure events.The pretrained model is intended to reduce the data needed for convergence without overfitting.
  • 4.1 Pretraining Data: Pretraining targets additive outliers, temporary volatility changes, and cyclic-pattern violations across diverse synthetic nominal behaviors.
  • 4.2 Transfer Learning to Univariate Tasks: For univariate transfer, the architecture is retained except for the target-specific output shape, while non-output layers inherit pretrained weights.
  • 4.2 MU-Net: A U-Net-based Network for Transfer Learning from Univariate to Multivariate Tasks: MU-Net avoids random first-layer initialization and avoids treating the sum of heterogeneous sensor channels as transferable features.
  • 4.2 MU-Net: A U-Net-based Network for Transfer Learning from Univariate to Multivariate Tasks: MU-Net separates input channels into independent univariate encoding paths, concatenates their fourth-section outputs, and then applies integrated encoding and decoding sections.
  • 4.2 MU-Net: A U-Net-based Network for Transfer Learning from Univariate to Multivariate Tasks: Fine-tuning progressively unfreezes MU-Net layers, beginning with later layers before tuning all weights.

5 Experimental Evaluation

The approach was evaluated across univariate and multivariate tasks, with and without transfer learning, using real and synthetic data. Transfer learning improved IoU on synthetic unusual-shape curves and EMG segmentation, while the real-data tests produced few missed events or attacks.

  • 5 Experimental Evaluation: The evaluation covered univariate and multivariate tasks with sufficient data, as well as transfer-learning settings with insufficient data.All four scenarios were tested using the proposed approach.
  • 5.1 Dodgers Loop Sensor Data Set: The Dodgers model missed 3 of 39 known events, mainly when events were near periods with many missing values, and produced a few false positives.The model was a univariate U-Net trained on randomly cropped and downsampled snapshots.
  • 5.2 Gasoil Plant Data Set: Only 1 of 22 cyber-attacks was missed across 18 gasoil-plant test sequences, with 3 false alarms.The multivariate U-Net used 19 variables per sequence.
  • 5.3 Synthetic Curves with Unusual Shapes: 71.95% testing IoU was reached with univariate transfer learning on synthetic curves, compared with 50.96% for a U-Net trained from scratch.The task involved detecting segments with unusual curve shapes.
  • 5.4 Electromyography (EMG) Data Set: 70.04% IoU was achieved by transferring a pretrained U-Net to MU-Net on EMG gesture segmentation, versus 64.10% for MU-Net trained from scratch.The U-Net trained from scratch scored 56.61%.

6 Conclusion and Discussion

The paper combines CNN-based time-series segmentation with transfer learning to address sparse anomaly-detection data across univariate and multivariate settings. It reports satisfactory or promising performance, while emphasizing evaluation ambiguity, transferability trade-offs, and missing benchmark comparisons.

  • The architecture was tested on both univariate and multivariate examples and showed satisfactory performance.
  • The transfer-learning framework pretrains on large-scale univariate data and transfers to general anomaly-detection tasks, including multivariate tasks through MU-Net.
  • Quantifying segmentation quality is difficult because experts may disagree on anomaly boundaries and useful detections need not exactly overlap ground truth.
  • Transfer learning is designed to extract features that help new anomaly types be learned from small-scale datasets, supporting varied time-series behaviors.
  • The approach is less suited to previously unseen anomalies than traditional outlier-detection methods, but is described as robust for complex signals.
  • Future work should study how pretraining-data choices affect transfer performance and compare the approach with statistical, RNN-based, and sliding-window CNN methods.
Loading 1905.13628v1…