Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Anomaly Detection on Resource-Constrained Devices with Reservoir Computing

MDRS reservoir anomaly detection runs on microcontrollers with fewer operations

  • Problem Edge anomaly detection needs accurate, cheap models. The reference autoencoder reaches the target only with five stacked frames, and MDRS had not been tested on this benchmark.
  • Method MDRS-Circ replaces the random reservoir wiring with a circular shift, so it no longer stores a large dense matrix. It scores only the final reservoir state with a Mahalanobis distance, instead of scoring every step.
  • Results With optimized preprocessing, MDRS reaches an ROC AUC of 0.869 and runs 75.9x faster than the autoencoder with standard preprocessing.

Why the reference autoencoder is costly at the edge

Anomaly detection at the edge has to run locally, because offloading to the cloud adds a communication overhead that is often not viable. The autoencoder has no memory, so it processes each input sample on its own. The temporal context must therefore sit inside the input, which is why five consecutive frames are stacked.

The full-precision autoencoder reaches an AUC of 0.903, and its INT8 version reaches 0.860, both with 105.2 million operations per recording. Only the full-precision autoencoder with 64 mel bands and five stacked frames meets the target among its six input settings. Its memory cost is also high, with 315 MB for training and 1,168 KB for FP32 inference.

MDRS had not been evaluated on widely used TinyML benchmarks or in resource-constrained deployments. Reservoir computing keeps input and recurrent weights fixed and trains only the output weights, which lowers training cost. Existing reservoir anomaly detectors mainly rely on prediction or reconstruction errors. The open question is whether a reservoir method can reach the target at lower cost.

A second question is whether the reservoir's own memory can replace the frame stacking, since its state integrates the input over time.

How MDRS turns a recording into a score

MDRS drives a fixed random reservoir with the audio, fits only the spread of normal reservoir states, and flags states that lie far from that spread. The reservoir is an Echo State Network whose input projection V and connectivity J are random and fixed, with x(0) set to zero at the start of each time series. The state update mixes the previous state with a term built from J and the hyperbolic tangent Φ of the state, plus a term from the input f_in(t), scaled by the hyperparameters Δt, τ, g and h.

Because the update is an Euler step, the leak term and the input term are both scaled by Δt over τ, so the state changes gradually over time.

Training passes only normal recordings through this reservoir and collects the states into a non-normalized scatter matrix Σ0. The scatter matrix sums the outer products of the states over the K training time series, up to the duration T0. The authors assume the normal states are centred at the origin, so no mean vector is estimated. A ridge-style regularization term α I is added before inversion, giving the precision matrix Λ0 = (Σ0 + αI)^-1.

At inference, the ESN configuration and this precision matrix are the only quantities the method needs, so the fitted model stays small.

For each reservoir state x(t), MDRS computes the squared Mahalanobis distance x(t)^T Λ0 x(t) as the anomaly score. Unlike an autoencoder's reconstruction error, this distance is a sum of contributions along the eigenvectors of Σ0. The authors suggest this breakdown could show which directions of a recording deviate from normal operation, supporting explainable, human-in-the-loop monitoring.

Each recording still needs a single score, so the per-state values must be aggregated, and the paper considers per-step and end-only strategies for this.

Circular shift and end-only scoring

The random connectivity matrix J is the first cost, because it is a dense N by N matrix that must be generated, stored and multiplied at every time step. Because the shift eliminates the need to generate and store J, the design lowers both the memory footprint and the cost of each reservoir update. The input projection stays unchanged, so the saving grows with reservoir size: MDRS-Circ needs 5.3% fewer operations than MDRS-Rand for N=32 and 22.3% fewer for N=256 under per-step aggregation.

The second cost comes from per-step aggregation, which computes the Mahalanobis distance for every reservoir state after the initial zero state and averages the scores. The end-only score evaluates the Mahalanobis distance once, on the reservoir state at the final time step, so each recording gets one score. The authors suggest that per-step averaging gives the early zero-start transient as much weight as the later states, which hold the accumulated information.

The end-only score, which corresponds to a stride of 195, reaches the highest AUC, 0.901 for MDRS-Rand and 0.897 for MDRS-Circ. Reducing the number of Mahalanobis distance evaluations does not degrade the AUC, so the end-only score is used in all later experiments in that section.

The two changes are complementary, since MDRS-Circ with the end-only score needs 10.3 to 44.2% fewer operations than MDRS-Rand with per-step aggregation. Per-step aggregation and the end-only score each remove part of the cost, and combining them removes the most.

Benchmark data, preprocessing and metrics

The MLPerf Tiny anomaly detection task uses only the toy-car subset of the DCASE2020 dataset, so every model sees recordings of toy cars. MDRS trains only on normal data, so the anomaly labels serve just to compare candidate hyperparameter settings. Because MLPerf Tiny defines no validation set, the authors build one from extra recordings of the same four toy cars that the test set doesn't include.

Each recording is sampled at 16 kHz and turned into a log-mel spectrogram with 128 mel bands, a 64 ms window and a 32 ms hop. This gives 196 input samples of 640 values per recording, which is the standardized preprocessing the benchmark uses for every method.

Performance is scored with ROC AUC, which measures how well normal and anomalous recordings separate across all detection thresholds. The MLPerf Tiny target is an AUC of at least 0.850, and models that reach it count as equal in detection performance. Because the reservoir starts from a random initialization, MDRS's AUC is averaged over 50 initializations and reported with its standard deviation.

Operations are counted during inference with PAPI hardware counters, which miss integer operations, so AutoEncoder-INT8 gets the FP32 count. The log-mel front-end is excluded from this operation count, and memory is reported as model size and peak RAM increase.

Reservoir size and scoring rule

The authors first asked how reservoir size and connectivity affect AUC, using the standard preprocessing and per-step scoring. At N=32 both variants fall just below the target, with 0.843 for MDRS-Rand and 0.836 for MDRS-Circ. From N=64 upward both meet it, and the highest scores were 0.894 and 0.896 at N=128.

Larger strides raised the AUC to 0.897 and 0.893 at stride 97, and the end-only score reached 0.901 and 0.897. Figure 1 shows this curve across strides, with the end-only score drawn as dashed lines.

Figure 1: Test AUC of MDRS (N= 64, MLPerf Tiny preprocessing) versus
the stride of the per-step aggregation (solid lines) and with the end-only
score (dashed l…

Fig. 1 . Test AUC of MDRS (N= 64, MLPerf Tiny preprocessing) versus the stride of the per-step aggregation (solid lines) and with the end-only score (dashed lines), which coincides with stride 195. Mean over 50 reservoir initializations; bars and bands: 95% confidence interval of the mean.

Original paper · CC BY 4.0

The authors suggest the rise comes from a missing warm-up, since per-step averaging counts the transient from the zero state as much as later states. Fewer Mahalanobis evaluations therefore did not lower AUC in these runs, so the end-only score was kept for the later experiments.

Operations and memory against the autoencoder

At N=64, per-step MDRS-Rand needs 19.86 million operations per recording, and the end-only score lowers this to 18.17 million. Adding the circular shift to the end-only score brings the count to 16.40 million, a 17.5% reduction. Across reservoir sizes from 32 to 256, MDRS-Circ with the end-only score needs 10.3% to 44.2% fewer operations than MDRS-Rand with per-step aggregation.

The saving grows with N, so the largest reduction appears at N=256, where the combined variant needs 65.68 million operations.

Four models reached the AUC target of 0.850 with the standard preprocessing: MDRS-Rand, MDRS-Circ, AutoEncoder-FP32 and AutoEncoder-INT8. AutoEncoder-FP32 scored highest at 0.903, while MDRS-Circ scored 0.897 and MDRS-Rand scored 0.901. Figure 2 plots AUC against operations and model size for both MDRS variants and the autoencoder across six preprocessing settings.

Figure 2: Anomaly detection performance versus computational cost (left) and model size (right) during inference. MDRS (N= 64, averaged over50reservoir
initial…

Fig. 2 . Anomaly detection performance versus computational cost (left) and model size (right) during inference. MDRS (N= 64, averaged over50reservoir initializations) and the autoencoder are shown for six preprocessing configurations:n mels ∈ {32,64,128}(marker shape), with five stacked frames (filled) or a single frame (hollow) per input sample. The baseline models use the MLPerf Tiny preprocessing.

Original paper · CC BY 4.0 · Marco Angioli, Mathias Persson, Hiroto Tamura, Hadi Banaee, Amy Loutfi, Gouhei Tanaka, Alberto Giaretta, Denis Kleyko · Anomaly Detection on Resource-Constrained Devices with Reservoir Computing · Original paper figure · Extracted the figure area from page 7 of the original PDF.

The standard preprocessing suits the autoencoder, which keeps no memory and needs its temporal context packed into each sample. MDRS integrates its input over time, so it can run on single frames and cut its operations by a factor of 3.6 to 4.5. The best MDRS setting used 64 mel bands and single frames, reaching an AUC of 0.912 for both variants.

Training MDRS with the standard preprocessing needs 61 MB and 2 s on an Intel Core i9-12900. During inference, the smallest MDRS setting needs 372 KB, against 524 KB for AutoEncoder-INT8. At N=64, the scatter matrix occupies 16 KB in single precision, which the authors see as a reason on-device training could be feasible.

Running the kernels on a NUCLEO-F401RE

Only the inference kernels run on it, and one input window is the timed unit, measured with the Cortex-M4F cycle counter. Each latency is the median of 21 runs after five warm-up calls. Energy is estimated as the execution time times the datasheet run-mode power of 22.6 mA at 3.3 V.

Replacing J with the circular shift cuts cycles by 34.6% and the flash footprint from 40 KB to 24 KB. With 32-dimensional inputs the two N by N operations dominate, so the combination cuts cycles by 70.7%, close to the 74% operation reduction.

MDRS-Circ with end-only scoring then needs 27.1 K cycles, 0.32 ms, 24 µJ and a 24 KB model, at AUC 0.869. On the same board, AutoEncoder-INT8 with five stacked frames and 128 mel bands needs 24.51 ms and 1 828 µJ at AUC 0.860. With identical input samples, MDRS-Circ needs 3.55 ms and 264 µJ at AUC 0.897, which the authors read as a 6.9 times latency gap from the algorithm alone.

Its flash footprint is 176 KB, against 270 KB for the autoencoder.

The authors split this gain in two: 6.9 times comes from the cheaper model on identical inputs, and a further 11.0 times comes from the shorter inputs. At one window every 32 ms, the autoencoder uses 77% of the real-time budget, against 11% for MDRS with standard inputs and 1% with the deployed input.

Limits of the benchmark and the measurements

The accuracy numbers come from one benchmark: the toy-car recordings of the DCASE2020 Challenge that MLPerf Tiny defines. The test set holds 248 recordings from four toy cars, so every AUC rests on that single split. The validation set, built from extra recordings of the same four toy cars, serves only for hyperparameter selection. The benchmark uses acoustic machine-condition monitoring, so the authors didn't test other tasks or sensor types.

Energy isn't measured on the board, because the authors multiply the execution time by a datasheet run-mode power. That datasheet power is 22.6 mA at 3.3 V, so the energy figures depend on the datasheet rather than on the chip's actual draw. Timing covers only the inference kernels, while feature extraction, training and metric computation run off-board.

Each latency is the median of 21 windows after five warm-up calls, and the paper reports no spread across runs.

On the microcontroller, the authors ported only AutoEncoder-INT8, so the full-precision AutoEncoder-FP32 appears only in software. The 75.9 times ratio mixes a model change with a shorter input, because MDRS runs on single frames with 32 mel bands. The shorter input alone cuts the MDRS cost by a further 11.0 times, a gain that the iso-hardware ratio doesn't capture.

Training on the device wasn't tested, even though the scatter matrix for N=64 takes 16 KB in single precision. The authors leave on-device training and continuous updates to future work. So the hardware claims cover inference on one board, and the on-device training cost remains unmeasured.

Paper info

Authors
Marco Angioli, Mathias Persson, Hiroto Tamura, Hadi Banaee, Amy Loutfi, Gouhei Tanaka, Alberto Giaretta, Denis Kleyko
Venue
arXiv · Preprint
First published
2026-11-3
Added
2026-11-5
Updated
2026-11-3
Version
v1
arXiv
2611.04835
Category
cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

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.

Quote from the paper

Marco Angioli, Mathias Persson, Hiroto Tamura, Hadi Banaee, Amy Loutfi, Gouhei Tanaka, Alberto Giaretta, Denis Kleyko (2026). Anomaly Detection on Resource-Constrained Devices with Reservoir Computing. arXiv:2611.04835v1. https://arxiv.org/abs/2611.04835v1

BibTeX
@misc{angioli2026anomaly,
  title = {{Anomaly Detection on Resource-Constrained Devices with Reservoir Computing}},
  author = {Marco Angioli and Mathias Persson and Hiroto Tamura and Hadi Banaee and Amy Loutfi and Gouhei Tanaka and Alberto Giaretta and Denis Kleyko},
  year = {2026},
  eprint = {2611.04835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04835v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up