arXiv:2611.04835cs.LGNov 2026

Manuscript Offprint

arXiv:2611.04835

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 µJ per inference, and a latency of 0.32 ms, corresponding to a 75.9× speedup over the autoencoder with standard preprocessing.

Index Terms—reservoir computing, anomaly detection, resource-constrained devices, tinyML

I. INTRODUCTION

IoT and resource-constrained devices are increasingly used to perform tasks at the edge. Many of such tasks fall into the category of anomaly detection applied to time-series [1]. For example, networking intrusion detection systems require methods that analyze incoming packets and infer whether they compose an ongoing cybersecurity attack. Another example is the analysis of environmental conditions (e.g., video or audio signals) to monitor processes and identify suspicious deviations from the normal conditions. To achieve the near real-time performance necessary for carrying out these tasks successfully, computations need to be performed locally. Offloading them to the cloud is often not viable, as the communication overhead is non-negligible. However, given the limited computational capabilities of resource-constrained devices, it is crucial to develop computationally-efficient methods.

Tiny machine learning (tinyML) [2] has emerged as an area specifically targeting these settings, enabling the deployment of ML models on resource-constrained devices with limited memory, storage, and computational capabilities. To stimulate the development of methods for tinyML, the MLPerf Tiny benchmark [3] provides a standardized framework for evaluating such models, including an anomaly detection task based on acoustic machine-condition monitoring. By defining target detection performance and measuring computational efficiency, the benchmark supports the evaluation of trade-offs between accuracy and deployment cost.

Reservoir computing is a family of randomized recurrent neural networks promising for tinyML [4]. In reservoir computing, most network weights are initialized randomly and remain fixed, and only the output weights are trained [5]. This architecture drastically reduces training cost compared to fully-trainable neural networks, making reservoir computing particularly suitable for resource-constrained deployment. Building on this foundation, Tamura et al. recently proposed the Mahalanobis Distance of Reservoir States (MDRS) [6], an unsupervised anomaly detection method that detects point-wise anomalies by measuring the deviation of reservoir states from an estimated distribution of normal conditions. Unlike previous reconstruction- or prediction-based reservoir computing methods, MDRS produces temporally stable anomaly scores and avoids the need for supervised training of the output weights, making it a promising candidate for unsupervised anomaly detection on resource-constrained devices.

In this article, we investigate the suitability of MDRS for anomaly detection on resource-constrained IoT devices

*Equal contribution. MA and DK acknowledge funding from the Swedish Strategic Research Foundation (Grant No. FFL24-0111). HT acknowledges funding from the Japan Society for the Promotion of Science, JSPS KAKENHI (Grant No. JP24K20855), a project, JPNP14004, commissioned by the New Energy and Industrial Technology Development Organization (NEDO), and the Institute of AI and Beyond at the University of Tokyo. AL and DK acknowledge funding from the Knut and Alice Wallenberg Foundation under the Wallenberg Scholars program (Grant No. KAW2023.0327). GT acknowledges funding from the Japan Society for the Promotion of Science, JSPS KAKENHI (Grant No. JP25K24744). AG acknowledges funding from the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation. AG and DK acknowledge funding from NordForsk (Grant No. 241658). DK acknowledges funding from the Swedish Research Council (Grant No. 2025-05421).

M. Angioli, M. Persson, H. Banaee, A. Loutfi, A. Giaretta, D. Kleyko are with the AI, Robotics and Cybersecurity Center (ARC) and the Department of Computer Science, Örebro University, 70281 Örebro, Sweden. A. Loutfi is also with the Department of Science and Technology, Linköping University, 58183 Linköping, Sweden; D. Kleyko is also with the Intelligent Systems Lab, RISE Research Institutes of Sweden, 16440 Kista, Sweden; (e-mails: {name.surname}@oru.se).

H. Tamura is with the Graduate School of Informatics, Osaka Metropolitan University, 558-8585 Osaka Japan and also with the International Research Center for Neurointelligence (IRCN), the University of Tokyo, 113-0033 Tokyo, Japan (e-mail: h.tamura@omu.ac.jp).

G. Tanaka is with the Graduate School of Engineering, Nagoya Institute of Technology, 466-8555 Nagoya, Japan and also with the International Research Center for Neurointelligence (IRCN), the University of Tokyo, 113-0033 Tokyo, Japan (e-mail: gtanaka@nitech.ac.jp).

and propose two optimizations to reduce its computational requirements. First, we replace the random reservoir connectivity with a circular shift operation [7], [8], eliminating the need for a dense recurrent matrix multiplication. Second, we introduce an end-only score that computes the Mahalanobis distance only for the final reservoir state rather than at every time step. We evaluate the MDRS variants on the MLPerf Tiny anomaly detection benchmark against the reference autoencoder and other anomaly detection methods (Section III) in terms of detection performance, computational cost, and memory footprint (Section V). Among the evaluated methods, only MDRS and the reference autoencoder meet the MLPerf Tiny performance target, with MDRS requiring fewer operations and a smaller model. Moreover, since the reservoir integrates its input over time, MDRS can process single frames without the temporal stacking required by the autoencoder to meet the performance target, allowing further reductions in computational cost. When deployed on a NUCLEO-F401RE microcontroller (Section VI), MDRS achieves 6.9×6.9\times lower latency and estimated energy consumption than the autoencoder with identical inputs. With optimized preprocessing, these improvements reach 75.9×75.9\times while meeting the MLPerf Tiny performance target with a model size of 24 KB.

References (34)