TinyAD: Memory-efficient anomaly detection for time series data in Industrial IoT

03/07/2023
by   Yuting Sun, et al.
0

Monitoring and detecting abnormal events in cyber-physical systems is crucial to industrial production. With the prevalent deployment of the Industrial Internet of Things (IIoT), an enormous amount of time series data is collected to facilitate machine learning models for anomaly detection, and it is of the utmost importance to directly deploy the trained models on the IIoT devices. However, it is most challenging to deploy complex deep learning models such as Convolutional Neural Networks (CNNs) on these memory-constrained IIoT devices embedded with microcontrollers (MCUs). To alleviate the memory constraints of MCUs, we propose a novel framework named Tiny Anomaly Detection (TinyAD) to efficiently facilitate onboard inference of CNNs for real-time anomaly detection. First, we conduct a comprehensive analysis of depthwise separable CNNs and regular CNNs for anomaly detection and find that the depthwise separable convolution operation can reduce the model size by 50-90 with the traditional CNNs. Then, to reduce the peak memory consumption of CNNs, we explore two complementary strategies, in-place, and patch-by-patch memory rescheduling, and integrate them into a unified framework. The in-place method decreases the peak memory of the depthwise convolution by sparing a temporary buffer to transfer the activation results, while the patch-by-patch method further reduces the peak memory of layer-wise execution by slicing the input data into corresponding receptive fields and executing in order. Furthermore, by adjusting the dimension of convolution filters, these strategies apply to both univariate time series and multidomain time series features. Extensive experiments on real-world industrial datasets show that our framework can reduce peak memory consumption by 2-5x with negligible computation overhead.

READ FULL TEXT

page 1

page 2

page 6

page 7

page 10

page 12

research
11/14/2022

FAPM: Fast Adaptive Patch Memory for Real-time Industrial Anomaly Detection

Feature embedding-based methods have performed exceptionally well in det...
research
12/18/2017

Squeezed Convolutional Variational AutoEncoder for Unsupervised Anomaly Detection in Edge Device Industrial Internet of Things

In this paper, we propose Squeezed Convolutional Variational AutoEncoder...
research
10/06/2021

Generative Optimization Networks for Memory Efficient Data Generation

In standard generative deep learning models, such as autoencoders or GAN...
research
08/18/2021

Federated Variational Learning for Anomaly Detection in Multivariate Time Series

Anomaly detection has been a challenging task given high-dimensional mul...
research
07/19/2020

Deep Anomaly Detection for Time-series Data in Industrial IoT: A Communication-Efficient On-device Federated Learning Approach

Since edge device failures (i.e., anomalies) seriously affect the produc...
research
05/20/2023

LightESD: Fully-Automated and Lightweight Anomaly Detection Framework for Edge Computing

Anomaly detection is widely used in a broad range of domains from cybers...
research
10/28/2021

MCUNetV2: Memory-Efficient Patch-based Inference for Tiny Deep Learning

Tiny deep learning on microcontroller units (MCUs) is challenging due to...

Please sign up or login with your details

Forgot password? Click here to reset