Anomaly Detection on Resource-Constrained Devices with Reservoir Computing
Marco Angioli, Mathias Persson, Hiroto Tamura, Hadi Banaee, Amy Loutfi, Gouhei Tanaka, Alberto Giaretta, Denis Kleyko
Abstract
Anomaly detection at the edge requires the deployment of models that achieve competitive performance, while minimizing computational cost and memory footprint. In this article, we investigate the suitability of the Mahalanobis Distance of Reservoir States (MDRS), an unsupervised time-series anomaly detection method, for resource-constrained devices and propose two optimizations to reduce its computational requirements. Specifically, we replace random reservoir connectivity (MDRS-Rand) with a circular shift (MDRS-Circ) and show that the anomaly score for an entire time series can be computed from the final reservoir state alone. Furthermore, we show that exploiting the reservoir's temporal memory enables more efficient input preprocessing, further reducing computational cost. We evaluate the MDRS variants on the MLPerf Tiny anomaly detection benchmark against the reference autoencoder and other anomaly detection methods, and deploy their inference kernels on a NUCLEO-F401RE microcontroller to assess latency, estimate energy consumption, and measure memory footprint. Among the evaluated methods, only MDRS and the autoencoder meet the benchmark's performance target, with MDRS requiring fewer operations and smaller models. With optimized preprocessing, MDRS achieves an ROC AUC of 0.869, a model size of 24 KB, an estimated energy consumption of 24 uJ per inference, and a latency of 0.32 ms, corresponding to a 75.9x speedup over the autoencoder with standard preprocessing.
Create a lesson
Related papers
Energy Measurement and Optimization of TinyML in Resource-Constrained Embedded Systems: A Systematic Mapping Study
Shared title terminologycs.LGClariele Almeida, Renan Beserra, Rafael Moura et al.
FourStat: A Dual AutoEncoder Leveraging Frequency and Stationarity for Time Series Anomaly Detection
Shared title terminologycs.LGSaman Hadian, Ramtin Moslemi, Mohammad Mohammadi et al.
On the Effectiveness of Resampling for Supervised Graph Anomaly Detection
Shared title terminologycs.LGCyril Perosino, Rino Di Chiara, Hamida Seba
Train-Only-Constrained LM for Synthetic Clinical Trajectories: Leak-Safe Calibration and Auditable Dynamics
Shared title terminologycs.LGYaser Kord, Moritz Hess
Change Point Detection with Generative Models
Shared title terminologycs.LGTigran Ramazyan, Denis Derkach, Mikhail Hushchyn
Compute-Aware Submodular Online Learning in Open Multi-Agent Systems
Shared title terminologycs.LGJing Liu, Luca Ballotta, Fangfei Li et al.