Robust and Computationally-Efficient Anomaly Detection using Powers-of-Two Networks

Usama Muneeb, Erdem Koyuncu, Yasaman Keshtkarjahromi, Hulya Seferoglu, Mehmet Fatih Erden, Ahmet Enis ÇetinICASSP 2019

Abstract

Robust and computationally efficient anomaly detection in videos is a critical challenge for modern surveillance systems. We propose a technique to increase robustness and reduce computational complexity in a Convolutional Neural Network (CNN) based anomaly detector that utilizes optical flow information. Our approach reduces complexity by denoising intermediate layer outputs and employing powers-of-two weights, which replace expensive multiplication with bit-shift operations. Denoising during inference forces small-valued outputs to zero, increasing sparsity and enabling approximately 10-30% faster implementation while maintaining detection accuracy. Furthermore, training with motion vector images generated by a Generative Adversarial Network (GAN) improves system robustness against background motion.

Introduction

Anomaly detection—identifying unusual events like vehicles on pedestrian paths—is essential for security but computationally demanding. Traditional deep learning models rely on heavy floating-point multiplications, making them difficult to deploy on low-power edge devices. Additionally, environmental factors like wind-blown foliage create "background noise" in motion vectors, leading to false positives. This paper introduces a system that is both "bit-shift" ready for efficiency and robust to environmental distractions.

Methodology

The proposed system achieves efficiency and robustness through three primary mechanisms:

Powers-of-Two (Pow2) Weights

By constraining CNN weights to powers of two (e.g., $2^n$), standard multiplication operations are replaced with bit-shifts. In digital logic, bit-shifting is significantly faster and more energy-efficient than floating-point multiplication, facilitating deployment on hardware without dedicated floating-point units.

Intermediate Layer Denoising

A core innovation is the denoising of intermediate layer outputs. During inference, data is projected onto an $\ell_1$-ball, effectively performing soft-thresholding.

Geometric representation of denoising via $\ell_1$-ball projection.

This operation pushes small values, likely representing background noise, to zero. This increased sparsity allows the hardware to skip calculations, providing an additional 10% to 30% speedup beyond bit-shifting alone.

GAN-Enhanced Training

To improve resilience against real-world disturbances, the authors utilized a Generative Adversarial Network (GAN) to produce synthetic "noisy" optical flow images. Training the CNN on this data teaches the model to distinguish between relevant anomalies and environmental noise.

Experimental Setup

The approach was evaluated using the UCSD Pedestrians dataset (Peds1 and Peds2). To rigorously test robustness, artificial noise in the form of Gaussian blobs was added to the video data, simulating erratic motion vectors caused by wind or camera jitter.

Key Results

The denoised Pow2 network demonstrated significant improvements in both speed and accuracy:

  • Efficiency: The system is roughly 30% faster than a standard Pow2 network.
  • Performance: On the Peds1 dataset, the denoised Pow2 version achieved an Area Under the Curve (AUC) of 0.769, outperforming the baseline regular network (0.744).
  • Robustness: The model maintained high performance even when subjected to significant artificial noise.
ROC curves comparing CNN, Regular GAN, and PowerOf2 GAN performance under varying noise levels.

As shown in the ROC curves, the PowerOf2 GAN models maintain competitive True Positive Rates (TPR) even as noise levels (N) increase, demonstrating the effectiveness of the combined denoising and GAN-training strategy.

Conclusion

This research demonstrates that denoising is not only a tool for accuracy but also a powerful optimization for speed. By cleaning data as it flows through the network and utilizing bit-shift operations, complex anomaly detection can be made viable for edge devices. Future work will explore combining output denoising with weight pruning and conditional execution to further minimize power consumption in static scenes.

Summary updated

BibTeX
@inproceedings{muneeb2019robust,
  author = {Usama Muneeb and Erdem Koyuncu and Yasaman Keshtkarjahromi and Hulya Seferoglu and Mehmet Fatih Erden and Ahmet Enis Çetin},
  title = {{Robust and Computationally-Efficient Anomaly Detection using Powers-of-Two Networks}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2019},
  url = {https://openreview.net/forum?id=5tUm8v3ClA},
}
Figure