Towards Scalable IoT Deployment for Visual Anomaly Detection via Efficient Compression
Arianna Stropeni, Francesco Borsatti, Manuel Barusco, Davide Dalle Pezze, Marco Fabris, Gian Antonio Susto · 2025
Read Towards Scalable IoT Deployment for Visual Anomaly Detection via Efficient Compression by Arianna Stropeni, Francesco Borsatti, Manuel Barusco, Davide Dalle Pezze, Marco Fabris, Gian Antonio Susto (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2505-07119.txt.
Introduction
Factories use cameras to spot defective products, but the computing hardware at the edge of a network is weak and its links are slow. Arianna Stropeni and co-authors studied in 2025 how to compress image data so that visual anomaly detection still works in such Internet of Things settings. They compared several compression methods, weighing detection accuracy against total delay from camera to server.
On a standard industrial benchmark, strong compression cost little accuracy compared with raw data. End-to-end inference time fell by up to eighty percent, counting edge processing, transmission, and server work together. The authors present the study as a step toward large-scale, low-cost visual inspection on factory floors.
Catalog record
| CREATOR | Arianna Stropeni, Francesco Borsatti, Manuel Barusco, Davide Dalle Pezze, Marco Fabris, Gian Antonio Susto |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 27 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2505-07119
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Towards Scalable IoT Deployment for Visual Anomaly Detection via Efficient Compression Arianna Stropeni, Francesco Borsatti, Manuel Barusco, Davide Dalle Pezze, Marco Fabris, Gian Antonio Susto Abstract Visual Anomaly Detection (VAD) is a key task in industrial settings, where minimizing operational costs is essential. Deploying deep learning models within Internet of Things (IoT) environments introduces specific challenges due to limited computational power and bandwidth of edge devices. This study investigates how to perform VAD effectively under such constraints by leveraging compact, efficient processing strategies. We evaluate several data compression techniques, examining the tradeoff between system latency and detection accuracy. Experiments on the MVTec AD benchmark demonstrate that significant compression can be achieved with minimal loss in anomaly detection performance compared to uncompressed data. Current results show up to 80% reduction in end-to-end inference time, including edge processing, transmission, and server computation. K eywords Visual Anomaly Detection \cdot IoT \cdot Feature Compression \cdot Unsupervised Learning 1 Introduction Visual anomaly detection (VAD) is essential in industrial automation to detect defective parts by image-based inspection. Traditional VAD systems operate in centralized environments with high performance computing and reliable data acquisition infrastructures [ 1 ] . However, with the rise of the Internet of Things (IoT), this paradigm is evolving. IoT enables distributed sensing for real-time asset monitoring in remote environments. Industrial IoT (IIoT) networks connect production sites, supporting flexible monitoring architectures [ 2 , 3 ] . These changes introduce new constraints for VAD systems, as edge devices have limited resources and bandwidth, requiring the restructuring of VAD pipelines. This has spurred the development of lightweight, communication-efficient frameworks based on unsupervised deep learning and distributed processing [ 4 ] . VAD research ranges from computer vision to deep learning, as documented in surveys [ 1 ] . Studies have explored anomaly detection under resource constraints [ 5 ] . Edge-assisted systems reduce latency in industrial monitoring [ 2 ] , while [ 3 ] proposes low-latency VAD for smart cities. Research has also explored edge computing integration [ 4 ] , traffic flow analysis [ 6 ] , health monitoring systems [ 7 ] and data-driven predictive control [ 8 ] . In IIoT, research has focused on communication resource allocation [ 9 ] and federated learning for distributed detection [ 10 ] . Studies have examined edge-cloud architecture trade-offs [ 11 ] . Optimization in VAD includes performance-aware frameworks [ 12 ] and adaptive models [ 13 ] ; whereas, investigations on effective multiobjective methods aim to reduce latency and memory usage while maintaining accuracy [ 14 ] . While a standard taxonomy of VAD methods is lacking, recent studies [ 15 , 16 ] propose a classification into three categories: reconstruction-, synthesizing-, and embedding-based approaches. Reconstruction methods assume anomalies are poorly reconstructed due to their absence in the training data (e.g., visual sensor networks in [ 17 ] ); using autoencoders, GANs, diffusion models, and Transformers to reconstruct samples, identifying anomalies via pixel-wise or SSIM differences. However, overfitting or visually similar anomalies can lead methods to underperform. Synthesizing methods generate artificial anomalies on normal images, such as CutPaste [ 18 ] and DRÆM [ 19 ] , but sometimes struggle to capture real-world defect characteristics. Finally, embedding methods use pretrained models to represent normal data distributions; e.g. PaDiM [ 20 ] , PatchCore [ 21 ] , FastFlow [ 22 ] . These methods achieve high accuracy but can be resource-intensive and sensitive to domain shifts. Nonetheless, to the best of our knowledge, existing literature lacks solutions that jointly optimize VAD models and communication strategies for IoT. This paper proposes a lightweight, embedding-based VAD framework for bandwidth-constrained IIoT environments, with efficient data transmission and interpretable anomaly localization. Our contributions are as follows: • Resource-aware VAD pipeline for distributed edge-server deployment, optimizing detection performance, model footprint, and communication overhead for efficient anomaly detection in IoT environments. • Test two strategies: edge image compression VS tiny CNN feature extraction with compression, reducing computational and communication resources while preserving VAD performance. We test compression methods like WebP for images, random projection and product quantization for feature encoding. • We validate the framework using the MVTec AD dataset and MobileNetV2 as the edge feature extractor, showing that our method retains detection accuracy close to uncompressed data, suitable for real-world IIoT deployments. The remainder of the manuscript unfolds as follows. Sec. 2 provides background on visual anomaly detection and formalizes the problem in an IoT context. Sec. 3 presents the proposed resource-aware VAD framework, describing both the system architecture and the methods for compressing features and images. Sec. 4 reports experimental results on the MVTec AD dataset, evaluating trade-offs between latency, bandwidth, and detection accuracy under various deployment scenarios. Finally, Sec. 5 concludes the paper and outlines directions for future research. Figure 1: Overview of the VAD pipeline for IoT scenarios: edge devices acquire raw asset images and run compression techniques or apply feature extraction. Data are then sent across a bandwidth-limited IIoT channel to a central server. An anomaly detector (PatchCore in this study) is used to identify anomalous samples and localize defects. 2 Background and problem formulation In the sequel we provide the necessary background on VAD to formalize the optimization problem under analysis. 2.1 Mathematical preliminaries We denote the set of CNN feature vectors as \mathcal{F}=\{f_{1},\dots,f_{N}\}\subset\mathbb{R}^{d} , where each f_{i} is obtained by concatenating features from L intermediate layers at the same spatial location. A random subset \mathcal{F}_{s}\subset\mathcal{F} is selected such that |\mathcal{F}_{s}|=\alpha N with \alpha\in(0,1) denoting the sampling ratio. For an input image x , the feature map at layer \ell is denoted by \phi^{(\ell)}(x)\in\mathbb{R}^{C_{\ell}\times H_{\ell}\times W_{\ell}} . The operator \text{flatten}:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{CHW} maps a 3D feature tensor to a vector. The global image embedding is constructed as v=\text{concat}(f^{(1)},\ldots,f^{(m)}),\quad m>1, where concat denotes vector concatenation. The vector v\in\mathbb{R}^{d} is compressed using product quantization, denoted \text{PQ}:\mathbb{R}^{d}\to\mathbb{R}^{d^{\prime}}\quad(d^{\prime}\ll d), yielding the quantized representation \hat{v}=\text{PQ}(v). (1) 2.2 Problem formulation Let \mathcal{X}=\{x_{i}\}_{i=1}^{n} denote a set of input images acquired by edge devices in an industrial IoT environment. Each image x_{i}\in\mathbb{R}^{H\times W\times 3} must be analyzed for anomalies using an unsupervised VAD model. Also, let \mathcal{E} represent the set of edge devices, each subject to constraints on computational capacity and communication bandwidth. Our goal is to learn a detection function p:\mathbb{R}^{H\times W\times 3}\to\mathbb{R},\quad p(x)\in[0,1], where p(x) represents an anomaly score, with higher values indicating greater likelihood of abnormality. The distributed system nature, whose pipeline is composed of two stages p(x)=f(g(x)) , imposes two constraints: • Computation Constraint: Each edge device e\in\mathcal{E} has limited computational capacity, modeled as an upper bound C_{e} on admissible operations/ model size. • Communication Constraint: For each device e , the transmitted data z_{i}=g(x_{i}) must satisfy \|z_{i}\|\leq B_{e} , where g is a compression or feature extraction function and B_{e} is the communication budget. We aim to jointly design: • a transmission function g:\mathbb{R}^{H\times W\times 3}\to\mathbb{R}^{d} (either image compression or feature extraction), • and a centralized detection model f:\mathbb{R}^{d}\to[0,1] , such that the expected anomaly detection performance is maximized: \max_{f,g}\;\mathbb{E}_{x\sim\mathcal{X}}[\text{AUC}(f(g(x)))] subject to the constraints: \text{cost}(g;C_{e})\leq C_{e},\quad\|g(x)\|\leq B_{e},\quad\forall x\in\mathcal{X},\;e\in\mathcal{E}. 3 Proposed method In this work we address the task of unsupervised VAD within an IoT-enabled industrial setting, where resource constraints on edge devices impose limitations on