# Anomaly Detection on Resource-Constrained Devices with Reservoir Computing

리저버 컴퓨팅을 이용한 자원 제약 장치의 이상 탐지

Marco Angioli, Mathias Persson, Hiroto Tamura, Hadi Banaee, Amy Loutfi, Gouhei Tanaka 외 2명 · arXiv · 2026년 11월 3일

- **연구 문제** 엣지 장치의 이상 탐지는 목표 성능을 유지하면서 연산량과 메모리를 줄여야 하며, 이 논문은 MDRS를 MLPerf Tiny 조건에서 검토합니다.
- **연구 방법** MDRS의 무작위 reservoir 연결을 circular shift로 대체하고, 마지막 reservoir 상태만으로 기록 점수를 계산하는 end-only 집계를 검토합니다.
- **주요 결과** MLPerf Tiny 조건에서 MDRS-Circ와 end-only 집계는 AUC 0.897을 보였고, 최적화된 입력 구성은 NUCLEO-F401RE에서 0.32 ms, 24 µJ, 24 KB 모델로 AUC 0.869를 보고했습니다.

## 엣지 장치에서의 이상 탐지 문제

엣지 장치에서 시계열 이상 탐지를 수행하려면 성능을 유지하면서도 연산량과 메모리 사용량을 크게 줄여야 합니다. 원문은 MLPerf Tiny 벤치마크의 이상 탐지 과제를 기준으로 삼아, 목표 성능 AUC 0.850을 만족하는 모델이 적은 비용으로 동작할 수 있는지를 묻습니다. 이 논문은 무작위 reservoir 연결을 가진 MDRS를 대상으로 이 질문을 검토합니다. 특히 목표 성능을 넘는 모델 가운데 어느 쪽이 더 적은 연산과 작은 모델을 쓰는지가 핵심 비교 기준입니다.

## MDRS의 학습과 추론 구조

MDRS는 정상 데이터만으로 Echo State Network의 reservoir 상태 분포를 추정하는 비지도 방법입니다. 학습 단계에서 정상 시계열을 reservoir에 통과시켜 상태를 얻고, 원점 중심의 가정 아래 상태들의 scatter matrix Σ0를 누적합니다. 이후 정규화 계수 α를 더한 뒤 역행렬을 취해 정밀도 행렬 Λ0를 얻습니다. 추론 단계에서는 같은 reservoir 동역학으로 입력을 처리하고, 각 상태 x(t)에 대해 제곱 Mahalanobis 거리 x(t)^T Λ0 x(t)를 이상 점수로 사용합니다. 학습 중 고정되는 것은 입력 투영 V와 reservoir connectivity J이며, 추론에 필요한 모델 파라미터는 ESN 설정과 정밀도 행렬입니다.

## 연결 변형과 집계 방식

MDRS-Rand는 무작위로 생성한 reservoir connectivity 행렬 J를 사용합니다. MDRS-Circ는 이 J를 circular shift 연산으로 대체하며, 뉴런을 고리 형태로 연결하는 순열 행렬에 해당합니다. 이 변경은 무작위 행렬을 생성하고 저장할 필요를 없애며, 행렬-벡터 곱을 순환 이동으로 바꿉니다. 시계열 전체 점수를 만드는 방식도 두 가지입니다. per-step aggregation은 x(0)=0 이후 모든 time step의 Mahalanobis 거리를 평균하고, end-only score는 마지막 time step의 reservoir 상태에서만 거리를 계산합니다. 원문은 stride를 둔 중간 변형도 함께 검토합니다.

## 소프트웨어 실험의 비교 조건

소프트웨어 실험은 MLPerf Tiny의 이상 탐지 과제에서 수행됩니다. 데이터는 DCASE2020 Challenge의 toy-car 기록을 기반으로 하며, 학습에는 정상 기록만 사용되고 이상 라벨은 검증 하이퍼파라미터 선택에만 쓰입니다. 기본 전처리는 n\_mels=128과 다섯 개 프레임을 쌓은 640차원 입력입니다. 그리드 탐색에서는 reservoir 크기 N을 32부터 256까지 바꾸며, N=64에서는 per-step과 end-only의 stride 비교를 수행합니다. AUC는 여러 reservoir 초기화에 대한 평균으로 보고되며, 연산 수는 PAPI로 측정한 추론 단계의 부동소수점 연산입니다.

## 집계 방식과 기준 모델 비교

reservoir 크기 실험에서 N=64 이상의 설정은 두 변형 모두 목표 성능을 넘었습니다. 집계 실험에서는 per-step aggregation의 AUC가 stride가 커질수록 증가하고, end-only score가 가장 높은 AUC를 보였습니다. MDRS-Rand의 end-only 점수는 0.901±0.011, MDRS-Circ는 0.897±0.013입니다. 기준 모델 비교에서는 MDRS-Rand, MDRS-Circ, AutoEncoder-FP32와 AutoEncoder-INT8이 목표 성능을 넘었으며, MDRS는 AutoEncoder보다 5.8배에서 6.4배 적은 연산을 사용했습니다. 원문은 MDRS 설정 간 차이를 연산 수 감소와 함께 보고하며, 비교 모델의 학습 예산이나 수렴 조건은 이 실험의 결론 범위로 함께 읽어야 합니다.

![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…](https://refivu.com/papers/b909941d-e287-4f66-8b9f-18079af6059c/figures/figure-241c685338b2845f70feb433ae020d8c.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.04835v1) · [CC BY 4.0](https://creativecommons.org/licenses/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 · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 단일 프레임 입력과 mel band 변화

단일 프레임 실험은 MDRS가 reservoir 내부에 이전 프레임의 정보를 유지하므로 자동 인코더처럼 여러 프레임을 쌓을 필요가 적은지를 확인합니다. 원문에서 MDRS는 단일 프레임으로 연산 수를 3.6배에서 4.5배 줄이면서 AUC 변화는 0.01보다 작았습니다. 반면 AutoEncoder-FP32는 단일 프레임의 n\_mels=128에서 AUC가 0.810으로 떨어져 목표 성능 아래로 내려갔습니다. n\_mels=32와 단일 프레임에서 MDRS-Circ는 1.2백만 연산과 AUC 0.869를 보고했으며, 이는 같은 실험에서 HBOS 다음으로 적은 연산입니다. 이 결과는 설정별 측정이며 모든 조건에서 일반화되는 결론은 아닙니다.

![Figure 2: Anomaly detection performance versus computational cost (left) and model size (right) during inference. MDRS (N= 64, averaged over50reservoir initial…](https://refivu.com/papers/b909941d-e287-4f66-8b9f-18079af6059c/figures/figure-cbd0b1d990d4e81af17753f751cc05b3.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.04835v1) · [CC BY 4.0](https://creativecommons.org/licenses/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 · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## NUCLEO-F401RE 하드웨어 측정

하드웨어 실험은 ST NUCLEO-F401RE에서 추론 커널만 실행하고, 시간을 Cortex-M4F의 사이클 카운터로 측정합니다. 한 번의 추론은 하나의 입력 윈도우로 정의되며, 다섯 번의 워밍업 뒤 21회 실행의 중앙값을 보고합니다. 에너지는 실행 시간에 데이터시트 기반 동작 전력을 곱해 추정한 값이므로 직접 전력 측정과 구분해서 읽어야 합니다. 같은 보드에서 MDRS-Circ 128×5 구성과 AutoEncoder-INT8을 같은 입력 조건으로 비교했습니다. 온보드 MDRS 변형은 n\_mels=32와 단일 프레임 입력을 기준으로 구성되었습니다.

## 온보드 결과와 iso-hardware 비교

온보드 결과에서 MDRS-Rand의 per-step 구성은 92.7K 사이클, 1.10 ms, 82 µJ, AUC 0.843을 보였습니다. MDRS-Circ와 end-only score를 함께 쓴 구성은 27.1K 사이클, 0.32 ms, 24 µJ, 24 KB 모델로 AUC 0.869를 보고했습니다. 같은 보드에서 AutoEncoder-INT8과 같은 입력 조건으로 비교했을 때 MDRS-Circ 128×5는 297.9K 사이클, 3.55 ms, 264 µJ로 AutoEncoder-INT8의 2058.7K 사이클, 24.51 ms, 1828 µJ보다 6.9배 빠르고 에너지도 낮았습니다. 낮은 입력 차원인 n\_mels=32 구성은 AutoEncoder 대비 75.9배의 지연 감소를 보고합니다.

두 비교는 같은 보드 조건에서 얻은 결과이며, 다른 MLPerf Tiny 제출물의 하드웨어 점수와 직접 합쳐 해석하지 않습니다.

## 적용 범위와 남은 질문

이 결과는 MLPerf Tiny의 toy-car 이상 탐지 과제와 DCASE2020 기반 데이터에서 얻은 것입니다. 원문은 MDRS가 log-mel 특징을 다변량 시계열로 처리하며 음향 특화 가정이 없다고 설명하지만, 다른 센서 모달리티에서의 평가는 향후 과제로 남겨 둡니다. 온디바이스 학습과 지속적 갱신도 원문에서 향후 과제로 제시되었습니다. Σ0는 16 KB 크기로 N=64 기준 RAM에 들어간다고 보고되지만, 실제 장치 학습은 수행하지 않았습니다. 에너지 값은 데이터시트 기반 추정이므로 실제 전력 측정과 같은 의미로 읽지 않습니다.

## 논문 정보

- **저자**: Marco Angioli, Mathias Persson, Hiroto Tamura, Hadi Banaee, Amy Loutfi, Gouhei Tanaka, Alberto Giaretta, Denis Kleyko
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 3일
- **등록일**: 2026년 11월 5일
- **수정일**: 2026년 11월 3일
- **버전**: v1
- **arXiv**: 2611.04835
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.04835v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.04835v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

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}
}
```

## 이 논문의 용어

- [Autoencoder](https://refivu.com/terms/a4d4d93d1cff-autoencoder)
- [Mahalanobis distance](https://refivu.com/terms/56d44d3d60ed-mahalanobis-distance)
- [ROC AUC](https://refivu.com/terms/90e25eaa88e2-roc-auc)
- [reservoir computing](https://refivu.com/terms/94b723d8f89e-reservoir-computing)
- [Echo State Network](https://refivu.com/terms/11a822940ca0-echo-state-network)
- [permutation matrix](https://refivu.com/terms/0af5a6626c79-permutation-matrix)

## 다른 논문 해설

- [Robustness Verification against Patch Attacks via Group-Lasso Semidefinite Relaxation](https://refivu.com/papers/ddda5624-092c-461b-b4de-5bf35fa7998b-robustness-verification-against-patch-attacks-via-group.md)
- [LCM-UNet: Scale-Selective Mamba with Reparameterizable Multi-Basis Local Modeling for Lightweight Skin Lesion Segmentation](https://refivu.com/papers/95c941c8-308c-4331-8f96-aa2bbd38e81a-lcm-unet-scale-selective-mamba-with-reparameterizable-multi.md)
- [Auditing Targetless Camera-LiDAR Extrinsic Correction before Recursive Use](https://refivu.com/papers/02531942-ed62-4515-881d-881da8263627-auditing-targetless-camera-lidar-extrinsic-correction-before.md)
- [CLOCs-R: Radar-Assisted Camera-LiDAR Fusion for Long-Range Object Detection](https://refivu.com/papers/52c8b86b-d746-4be6-8a4b-1482dec36864-clocs-r-radar-assisted-camera-lidar-fusion-for.md)
- [A Comparative Study of Confidence Calibration in Deep Learning: From Computer Vision to Medical Imaging](https://refivu.com/papers/0fb10d24-5019-4e27-81ba-d8a75e7ecc37-a-comparative-study-of-confidence-calibration-in-deep.md)
- [Generalizable AI-Generated Image Detection with Embedding-Space Explanations](https://refivu.com/papers/fec1df60-c26a-4ef4-bdc0-3e6a16c348c3-generalizable-ai-generated-image-detection-with-embedding.md)
- [Modelling lock-in of AI adoption through skill erosion](https://refivu.com/papers/42a02273-e35b-4db8-a9a3-0c4f6ebf9fad-modelling-lock-in-of-ai-adoption-through-skill.md)
- [Scaling Laws For Data-Constrained Dense Retrieval](https://refivu.com/papers/9afdcf21-003a-43d4-967e-2743eca7bae1-scaling-laws-for-data-constrained-dense-retrieval.md)
- [ScamWorld: An Interactive Environment for Evaluating Web Agents Against Online Fraud](https://refivu.com/papers/1a76f7bb-3d3d-46af-8fe4-17d7f3c5fd37-scamworld-an-interactive-environment-for-evaluating-web.md)
- [Where Is the Truth When AI Agents Disagree? Dependence-Aware Belief Propagation for Unsupervised Truth Discovery (Extended Version)](https://refivu.com/papers/ff649851-9a14-4591-a094-59a064709a42-where-is-the-truth-when-ai-agents-disagree.md)
- [AgenticFinBench: Benchmarking Financial Agents on Diverse Tasks from Real-World Requests](https://refivu.com/papers/bdf2b280-1e9b-4fd0-b4d7-d35bfd9e503a-agenticfinbench-benchmarking-financial-agents-on-diverse.md)
- [Accelerating Offloading-Based MoE Inference by Interleaving Concurrent Requests](https://refivu.com/papers/38ae7098-de63-4991-8b67-56a700ccc83d-accelerating-offloading-based-moe-inference-by-interleaving.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/b909941d-e287-4f66-8b9f-18079af6059c-anomaly-detection-on-resource-constrained-devices-with)
