KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devices

Uzair Khan, Franco Fummi, Luigi Capogrosso · 2025

Read KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devices by Uzair Khan, Franco Fummi, Luigi Capogrosso (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-24334.txt.

Introduction

Uzair Khan, Franco Fummi, and Luigi Capogrosso present a 2025 model for spotting faults in factory goods on small devices. Fault checks guard quality on modern lines, but top models are too heavy for the cheap hardware that small firms can install. Their model, KairosAD, builds on a light image segmentation model.

On two known factory data sets, the model used 78 percent fewer parameters than the best rival and ran four times faster. Its detection scores stayed on par with that rival. The team ran it on two embedded boards and then installed it on a real line at a university lab in Verona. Code is shared in a public archive for reuse.

Catalog record

CREATORUzair Khan, Franco Fummi, Luigi Capogrosso
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE22 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2505-24334

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devices Uzair Khan, Franco Fummi, Luigi Capogrosso Abstract In the era of intelligent manufacturing, anomaly detection has become essential for maintaining quality control on modern production lines. However, while many existing models show promising performance, they are often too large, computationally demanding, and impractical to deploy on resource-constrained embedded devices that can be easily installed on the production lines of Small and Medium Enterprises (SMEs). To bridge this gap, we present KairosAD , a novel supervised approach that uses the power of the Mobile Segment Anything Model (MobileSAM) for image-based anomaly detection. KairosAD has been evaluated on the two well-known industrial anomaly detection datasets, i.e. , MVTec-AD and ViSA. The results show that KairosAD requires 78% fewer parameters and boasts a 4 × \times{} faster inference time compared to the leading state-of-the-art model, while maintaining comparable AUROC performance. We deployed KairosAD on two embedded devices, the NVIDIA Jetson NX, and the NVIDIA Jetson AGX. Finally, KairosAD was successfully installed and tested on the real production line of the Industrial Computer Engineering Laboratory (ICE Lab) at the University of Verona. The code is available at https://github.com/intelligolabs/KairosAD . 1 Introduction Image-based anomaly detection of industrial components plays a crucial role in enabling fully automated production and ensuring optimal quality control in manufacturing. In particular, image anomaly detection can be broadly classified into semantic anomaly detection and sensory anomaly detection [ 33 ] . Semantic anomaly detection emphasizes the overall semantics of the image, while sensory anomaly detection focuses on fine-grained details, such as minor scratches on objects. This article concentrates on semantic anomaly detection, a task commonly performed in Small and Medium Enterprises (SMEs), where it plays a crucial role in maintaining production efficiency and ensuring product quality [ 6 , 11 ] . Recently, several approaches, based on teacher-student networks [ 9 ] , reconstructions [ 21 ] , or memory banks [ 29 ] , have been developed. Most of these anomaly detection methods are highly effective in classifying data into normal (fault-free) or anomalous categories. However, many of these architectures are large and computationally intensive. They demand significant processing power and memory, making them unsuitable for deployment on embedded devices [ 19 ] . However, SMEs, which often have limited infrastructure and budgets, often rely on low-cost edge computing devices for real-time quality control on their production lines [ 16 ] . This reliance on less powerful hardware creates a gap between the high performance of advanced anomaly detection models and their practical deployability in real-world manufacturing settings. As a result, many SMEs struggle to adopt state-of-the-art techniques due to constraints in computational resources and integration complexity. Figure 1 : Comparisons of different anomaly detection methods in terms of I-AUROC (vertical axis), inference time (horizontal axis), and the ratios of parameter numbers (circle radius), on the MVTec-AD dataset [ 2 ] . Our KairosAD achieves competitive I-AUROC results, while having 78% fewer parameters with respect to SimpleNet [ 24 ] , i.e. , the model that achieves the highest AUROC. Instead, with respect to STLM [ 19 ] , which represents the state-of-the-art of efficient deep learning method for anomaly detection, KairosAD has 35% of fewer parameters, achieves 4 \times{} speedup performance in terms of inference time, with an increase in I-AUROC performance as well. To address this challenge, we introduce KairosAD , a novel supervised image-level anomaly detection model. KairosAD leverages the power of Mobile Segment Anything Model (MobileSAM) [ 37 ] to achieve accurate anomaly detection performance with a significantly reduced computational cost. Unlike existing methods that often require complex architectures and large parameter counts, KairosAD is designed for simplicity and efficiency. In fact, as we can see from Figure 1 , KairosAD effectively balances precision, speed, and number of parameters, making it ideal for real-time deployment on embedded devices. We evaluated KairosAD on two widely used industrial anomaly detection datasets: MVTec-AD [ 2 ] and ViSA [ 38 ] . Furthermore, we deployed KairosAD on several embedded devices, such as NVIDIA Jetson NX and NVIDIA Jetson AGX , and successfully installed and tested on the real production line of the Industrial Computer Engineering Laboratory (ICE Lab) at the University of Verona. Finally, KairosAD demonstrates remarkable eco-friendliness , consuming only 0.0465 kWh of energy and producing only 0.0154 kg of CO 2 eq emissions in both the training and testing phases 1 1 1 Results calculated by using: https://mlco2.github.io/codecarbon/ . . Even its power consumption remains optimized, with an average GPU usage of approximately 270W during training, highlighting the model’s ability to achieve high performance while significantly reducing its environmental footprint compared to recent deep learning approaches. 2 Related Work Over the years, anomaly detection in the industry domain has been extensively explored [ 22 ] (Section 2.1 ). Since KairosAD is based on MobileSAM and employs efficiency-driven methods to enable deployment on embedded systems, this section also delves into the literature on foundation models for vision (Section 2.2 ) and efficient deep learning techniques (Section 2.3 ). 2.1 Industrial Anomaly Detection Although extensive research has been carried out on anomaly detection, industrial image data presents unique challenges [ 2 ] . Many industrial anomaly detection methods focus on image reconstruction and detect anomalies based on the reconstruction error [ 22 ] . Generative models such as autoencoders [ 3 ] , variational autoencoders [ 23 ] , and generative adversarial networks [ 1 ] are the architectures most widely used to reconstruct normal images from anomalous ones. Nonetheless, these methods face certain limitations, especially when reconstructing complex industrial textures and patterns. Recent approaches leverage memory banks, where a core set of stored features from a pre-trained backbone is used to compute patch-level distances for anomaly detection [ 8 ] . PatchCore [ 29 ] is a foundational approach that extracts patch-level feature embeddings of normal images into a memory bank, detecting anomalous patches during inference through a patch query process. SoftPatch [ 14 ] , based on PatchCore, introduced a patch-level filtering strategy in which patch features are filtered and weighted before being stored in the memory bank to reduce contamination from anomalous patches, thus enhancing model robustness. However, most of these methods come at the cost of increased computational complexity and a large memory space, making them unsuitable for deployment on resource-constrained devices. In terms of efficient industrial anomaly detection models, our main competitor is STLM [ 19 ] . Unlike STLM, which employs a two-branch architecture, we adopt just a single-branch design, reducing complexity and improving inference speed. Furthermore, while STLM focuses on both anomaly detection and localization, our method is specifically optimized for just the image-level task, prioritizing efficiency for real-time deployment. From a methodological perspective, STLM is based on feature distillation and contrastive learning, while KairosAD uses MobileSAM for a lightweight yet effective feature extraction, resulting in a simpler and more computationally efficient model. 2.2 Foundation Models for Vision Multimodal foundation models have emerged as powerful tools across various tasks [ 20 ] . For visual anomaly detection, particularly relevant are multimodal approaches based on CLIP [ 27 ] and Segment Anything Model (SAM) [ 18 ] , as well as vision-only

Read the complete text