Skip to Content
ComputationComputation
  • Article
  • Open Access

4 August 2026

27 Pages

Lean GLASS: Efficient Edge-Deployable Visual Anomaly Detection with a MobileNetV2 Backbone and Learnable Feature-Stream Gating

1
Department of Electrical and Computer Engineering, College of Engineering, King Abdulaziz University, Jeddah 21589, Saudi Arabia
2
Center of Excellence in Intelligent Engineering Systems (CEIES), King Abdulaziz University, Jeddah 21589, Saudi Arabia
This article belongs to the Section Computational Engineering

Abstract

Visual anomaly detection has achieved very high accuracy on standard benchmarks, yet state-of-the-art synthesis-based detectors such as GLASS rely on heavy backbones (e.g., WideResNet-50) that are ill-suited for deployment on resource-constrained edge platforms. This study investigates whether a lightweight convolutional neural network (CNN) backbone can retain such accuracy at much lower computational cost. To this end, the heavy backbone within the GLASS anomaly detection framework is replaced with the lightweight MobileNetV2 backbone. The experimental findings demonstrate that this particular choice of feature representation, namely the expanded depthwise features of MobileNetV2 rather than compressed bottleneck outputs, recovers the accuracy otherwise lost by a naive lightweight substitution. A lightweight learnable per-stream gating mechanism is further introduced, adaptively weighting feature streams on a per-category basis and yielding a measurable and consistent improvement at negligible parameter cost. On the MVTec AD benchmark, the proposed model attains a 0.992 mean image-level AUROC, matching or exceeding the ResNet-18 configuration reported by the GLASS authors under an identical training budget, while using 3.3× fewer backbone parameters and 4.7× fewer FLOPs. On a Jetson Nano, it runs 2.4× faster per frame than the ResNet-18 baseline (approximately 19 frames per second), confirming that the efficiency gains translate to usable speed on low-cost edge hardware. The findings are further corroborated on the more challenging VisA benchmark, where the proposed model matches the ResNet-18 configuration on image-level detection and improves pixel-level AUROC. Additionally, the proposed approach experimentally generalizes without modification to two further datasets from different domains, i.e., concrete crack and pharmaceutical pill inspection. A systematic negative result is additionally reported, demonstrating that the handcrafted complementary feature streams (PCA reconstruction-residual and wavelet high-frequency descriptors) do not improve accuracy, and the residual performance gap on difficult categories is attributed to the training schedule rather than to feature representation. This study therefore provides experimental evidence that careful backbone-feature selection, rather than architectural augmentation, is the key to efficient edge-deployable anomaly detection at a minimal cost in accuracy. These findings indicate that high-accuracy visual anomaly detection can be brought within reach of low-cost embedded hardware, lowering the barrier to automated inspection in smaller-scale industrial settings where a dedicated computing workstation is impractical. The source code is made publicly available to support this use.

1. Introduction

Visual anomaly detection refers to the task of identifying whole images or regions within images that deviate from a notion of normality learned from defect-free examples. In industrial inspection, it underpins automated quality control, where defective items must be flagged despite defects being rare, diverse, and frequently unseen during training [1,2]. Because anomalous samples are scarce and their appearance cannot be forecast in advance, the dominant strategy adopted by researchers is to train only on normal images and treat any sufficiently large departure from the learned normal model as anomalous [3]. Given the importance of this task, progress on standard benchmarks, e.g., MVTec AD [3], has been rapid, and the strongest contemporary detectors report image-level accuracy approaching the ceiling of the benchmark [4,5,6].
This accuracy has, however, been obtained largely with heavy backbones. Methods that achieve the highest scores typically extract features from deep, wide convolutional networks such as WideResNet-50 [4,6], whose parameter count and computational demand are substantial. For deployment on resource-constrained platforms, and in particular for embedded inspection stations in small-scale industrial settings, such backbones are poorly suited. In such scenarios, the available memory, compute, and power budgets are limited, while inference must keep pace with a live image stream. This presents a challenge because the accuracy delivered by current methods comes at a computational price that edge deployment is often unable to sustain. This scenario motivates the present study.
Among recent detectors, GLASS [6] is a representative high-accuracy, synthesis-based method. It augments the training samples with both global and local synthetic anomalies and trains a discriminator on normal and synthetic-anomalous features, attaining near-saturated accuracy on MVTec AD. Its accuracy makes it an appropriate starting point, and its reliance on a WideResNet-50 backbone makes it an appropriate target for efficiency-oriented redesign. The question examined in this work is whether the backbone of such a detector can be replaced by a lightweight, mobile-oriented network without sacrificing accuracy, and what design choices that substitution requires.
MobileNetV2 [7] is adopted as the lightweight backbone, owing to its depthwise-separable construction, which was designed expressly for mobile and embedded inference. MobileNetV2 is preferred over MobileNetV1 [8] and MobileNetV3 [9] for three reasons specific to the present method. First, MobileNetV1 does not use an inverted-residual, expand-then-depthwise-convolve structure. Thus, its depthwise convolutions operate directly on the (narrow) block input rather than on an internally expanded representation, so it does not offer the wide, information-rich depthwise activations on which the proposed feature-selection strategy (Section 3.2) depends. Second, MobileNetV2’s inverted-residual blocks have a simple, regular structure comprising expansion, depthwise convolution, and projection, with a fixed expansion factor at every stage, which makes the expanded depthwise activation straightforward to identify and extract at any block. MobileNetV3, by contrast, contains an irregular mixture of block types, kernel sizes, squeeze-and-excitation modules, and activation functions across its depth, which removes the uniform structure on which the feature-tap selection relies and makes the choice of extraction layer considerably less transparent. Third, this choice is also motivated by prior work in which the intermediate features of a pretrained MobileNetV2 were shown to support accurate industrial anomaly detection at low computational cost [10], providing empirical grounds for expecting these features to be sufficiently informative and discriminative within the present framework. A direct substitution of this lightweight backbone in the GLASS framework is, however, found to be insufficient on its own. Thus, the manner in which various feature maps are extracted from the network proves decisive. It is shown that drawing on the expanded depthwise activations of the inverted-residual blocks, rather than on the compressed bottleneck outputs, recovers the accuracy that a naive substitution loses. Furthermore, a lightweight learnable per-stream gate is introduced, which adaptively weights the feature streams on a per-category basis at negligible parameter cost. The complete model is then compared, under an identical training pipeline and schedule (epoch and batch size etc.), against the lightweight ResNet-18 configuration reported for GLASS, and its efficiency is profiled on both a desktop GPU and a Jetson Nano edge device.
The contributions of this study are as follows.
  • It is demonstrated that a MobileNetV2 backbone can match the accuracy of heavier backbones within the GLASS framework, provided that features are taken from the expanded depthwise activations rather than the bottleneck outputs. This feature-selection choice is identified as the decisive factor.
  • A learnable per-stream gating mechanism is introduced in the GLASS framework that replaces the fixed equal-weight feature aggregation with a per-category weighting, yielding a small but consistent improvement at the cost of one parameter per stream.
  • Under a matched training pipeline and schedule, the proposed model is shown to equal or exceed the lightweight ResNet-18 configuration of GLASS on image- and pixel-level detection, while using 3.3× fewer backbone parameters, 4.7× fewer operations, and running 2.4× faster per frame on a Jetson Nano. The same comparison, and the accompanying efficiency advantage, is shown to hold on two additional datasets from different domains. The comparison is also carried out on the more challenging VisA benchmark, on which the two configurations are shown to be closely matched.
  • A systematic negative result is also reported, i.e., the inclusion of handcrafted complementary feature streams, namely a PCA reconstruction-residual stream and a wavelet high-frequency stream, alongside deep CNN features does not improve accuracy. It is further observed experimentally that the residual weakness (lower accuracy) on difficult categories can be attributed more to the training schedule than to feature representation.
The remainder of this paper is organised as follows. Section 2 reviews related work on industrial anomaly detection. Section 3 describes the proposed framework, including the backbone substitution, feature selection, and the gating mechanism. Section 4 reports and discusses the experimental results, covering design ablations, the comparison with the lightweight GLASS configuration, and efficiency analysis. Section 5 concludes the paper.

2. Literature Review

Industrial anomaly detection (IAD) is a vital component of smart manufacturing focused on identifying unseen defects, ranging from subtle surface scratches to large structural errors, such as missing components, in inspected items [11,12]. IAD is essential for maintaining high product quality, ensuring operator safety, and preventing significant economic loss caused by faulty machinery or products [2,3,13]. This task is particularly challenging specifically because defective samples are rare in production, and their appearance cannot be enumerated in advance.
The following subsections provide a comprehensive review of the state-of-the-art techniques and their respective advantages and limitations in view of the aforementioned challenges in this field. Throughout this paper, “normal” refers to a defect-free (nominal) sample and “normality” to the characteristic appearance of such samples in conformity with the published literature in this domain. In this context, defective samples are those that deviate from the learned normality and may, thus, be called “abnormal”.

2.1. Supervision Paradigms in Anomaly Detection

Anomaly detection techniques are first categorised by the level of supervision required [5,14], a distinction driven by the inherent scarcity of defective samples in industrial manufacturing [11,15]. A standard supervised classifier requires representative labelled examples of every class it must distinguish, and rare, open-ended defect types do not provide this. Consequently, the field has largely reformulated the task as an unsupervised one [3,5], training exclusively on normal (defect-free) samples and detecting anomalies as statistical or reconstructive deviations from that learned normality [2,13,15]. Thus, no classification is performed against explicit examples of every defect type. Some methods, however, including the framework adopted in this study, still train a binary classifier as their final component, but do so by synthesising artificial anomalies from the available normal data, which sidesteps the scarcity of real defective examples rather than requiring them. Weakly supervised AD offers a more practical middle ground [15], using only coarse image-level labels to distinguish normal from abnormal classes [16], often via Class Activation Maps or attention mechanisms that localise defects without pixel-level annotation [6,17]. Semi-supervised AD combines abundant normal data with a limited set of labelled anomalies [2,13] to refine the decision boundary and improve generalisation to unseen defect patterns [15,18]. Fully supervised AD instead employs comprehensive pixel- or instance-level annotation for all known defect classes [15,16]. It typically achieves the highest localisation accuracy [13], but its use is constrained by the cost and logistics of manual annotation in dynamic production environments [17]. The great majority of the methods discussed below operate in the unsupervised setting, training exclusively on defect-free images.

2.2. Algorithmic Paradigms for Modeling Normality

Independently of the supervision level, methods are further distinguished by the architectural strategy used to model normal appearance and score deviations from it. Three families dominate the unsupervised setting: reconstruction-based, embedding-based, and synthesis-based methods.

2.2.1. Reconstruction-Based Methods

Reconstruction-based methods train a model, typically a convolutional autoencoder, generative adversarial network, vision transformer, or diffusion model, to recreate normal input images or their deep feature maps. Anomalies are then identified by the elevated reconstruction error [3,4,5,19] that arises when the model fails to reproduce unfamiliar defective patterns [11,13,15,20]. A common refinement frames reconstruction as an inpainting task [13,21], restoring randomly masked patches from surrounding context [2,22], which discourages the network from trivially copying the input and forces it to learn structural relationships [15,19,23].
The appeal of this family is that it requires no labelled anomalies [1,2,5] and produces intuitive, interpretable per-pixel anomaly maps [15,19,20], and it has been applied successfully beyond industrial inspection [6,16,24], including medical screening and video surveillance [18,22,25]. Its principal weakness is the risk of over-generalisation, whereby a sufficiently expressive model learns to reconstruct anomalies as faithfully as normal regions, undermining the reconstruction-error signal. Simpler autoencoders avoid this [4,21] but instead produce blurry reconstructions [13,24] that miss high-frequency detail [2,19] and cause false positives on complex textures [1,3,6]. The most expressive (faithful reconstruction) architectures in this family [11], transformers and iterative diffusion models [6], are also computationally intensive [26], limiting their practicality for real-time deployment [19,27].

2.2.2. Embedding-Based (Feature-Based) Methods

Embedding-based methods map inputs into a feature space using networks pretrained on large-scale datasets such as ImageNet [5,21], and define normality by the statistical clusters or geometric boundaries formed by normal-sample features rather than by pixel-level reconstruction [2,11,13]. One of the most common architectural strategies includes teacher-student distillation, where a student network is trained to reproduce a frozen teacher’s outputs only for normal data and diverges on anomalous inputs. Memory-bank approaches, such as PatchCore and SPADE, store representative normal features and score test patches by distance to their nearest stored neighbour. Other approaches include normalising flows or one-class classifiers such as Deep SVDD [2,15,19], which map feature distributions to a simplified form (e.g., a Gaussian or minimal-volume hypersphere) [3,13,21] in which low-density points are flagged as anomalous [5,22,24].
This family currently achieves the strongest results on major benchmarks such as MVTec AD. These methods are generally more stable to train than adversarial reconstruction models [11,19,21,22] and, when applied patch-wise, provide precise pixel-level localisation [2,6,15,24] while remaining data-efficient [13,20,28]. Their principal limitations are dependence on the quality of the pretrained backbone, since features insensitive to subtle geometric or low-contrast defects limit accuracy regardless of the distribution model used, together with a feature-drift risk when natural-image representations do not capture industrial textures. Moreover, nearest-neighbour memory banks additionally face storage and latency scaling challenges at large dataset sizes. Normalising-flow-based techniques [2,4,17,21] can require costly hyperparameter tuning [6,13,19,20,26].

2.2.3. Synthesis and Discriminative Methods

Synthesis-based discriminative methods address the scarcity of real defective samples by generating artificial anomalies [5,13] from normal data, recasting anomaly detection as a binary classification or segmentation problem [11,29] rather than a density-estimation or reconstruction task [14,26]. Image-space variants range from simple cut-and-paste strategies (CutPaste) to Poisson-blended sub-image irregularities (NSA) and Perlin-noise-masked textures trained with a discriminative sub-network (DRAEM). Recent diffusion-based approaches (such as SDAS in RealNet) [5,13,17,26] generate more naturalistic degradations [4,6,14,15]. Feature-space variants instead inject adversarial or Gaussian noise directly into internal embeddings, as in SimpleNet and UniAD, which is often more computationally efficient and less dependent on image-level realism. GLASS refines this by using gradient ascent to place synthetic anomalies near the classification boundary, improving sensitivity to weak, low-contrast defects. CRAS adaptively adjusts synthesis noise by class-centre distance [5,11] to reduce false positives in multi-class settings [13,15,26].
The principal advantage of this family is that it permits end-to-end supervised training without any real anomalous examples, typically yielding sharper decision boundaries and clearer localisation than purely generative alternatives [6,14,17]. Its main weakness is the distribution gap between synthetic and real anomalies. Thus, a model may learn to detect synthesis-specific artefacts rather than genuine defects, limiting generalisation to unseen defect categories or materials, and feature-space synthesis derived solely from RGB representations may additionally miss geometric or thermal anomaly modes [4,26,30]. The present work builds on this paradigm, adopting the global-and-local co-synthesis strategy of GLASS [6] without modification and directing its contribution instead at the feature-extraction backbone that supplies this synthesis process.

2.3. Advanced Paradigms and Modern Trends

Cutting-edge research in anomaly detection is rapidly evolving toward high generalizability through several advanced paradigms. Zero-shot and few-shot anomaly detection leverage foundation models to detect defects in novel objects without target-specific training, exemplified by WinCLIP, which uses text-image alignment [2,13,15,31] and AnomalyCLIP, which employs object-agnostic prompts [6,13,15,19]. Other innovative zero-shot frameworks include AdaCLIP for hybrid learnable prompting [13,15,18,19], RareCLIP for online sequential processing [28], and LogSAD, a training-free multimodal framework that utilizes GPT-4V, CLIP, and SAM to identify both structural and logical anomalies within a single system [32]. Simultaneously, the field is moving toward unified (multi-class) training, where a single model handles multiple product categories concurrently. This trend is pioneered by the UniAD reconstruction framework [18] and further refined by architectures like HVQ-Trans [13,18,19], MambaAD [13,15,18,31], and Dinomaly [13,18,31]. To mitigate challenges like inter-class interference in these unified settings, CRAS [11] introduces center-aware residual anomaly synthesis, while UniNet utilizes contrastive learning for cross-domain unification [33]. Finally, to ensure that models adapt to dynamic production environments without forgetting previous knowledge, researchers are developing continual and incremental learning paradigms like DNE [13], UCAD [13,15], which integrates contrastively-learned prompts, and One-for-More, a diffusion-based continual learning approach [13].
Frequency-domain and adaptive-fusion strategies, similar to the choices made in the present work, have also been explored outside industrial visual inspection, most closely in hyperspectral anomaly detection, where images carry many spectral bands rather than three colour channels. There, dual-branch or dual-stream networks that separate and fuse low- and high-frequency, or spatial and spectral, information have been used to improve background reconstruction and anomaly enhancement [34,35,36]. A spectral adaptive aggregation-weighting mechanism, conceptually related to the per-stream gate introduced in this work, has been used to combine features for hyperspectral object tracking [37]. These methods target a different sensing modality and, in the tracking case, a different task, and are not directly comparable to the industrial visual setting studied here, but the recurrence of frequency-aware and learnable-fusion mechanisms across these related problems is consistent with the motivation for the proposed gating mechanism.

2.4. Evaluation Frameworks

Evaluation in anomaly detection relies on distinct metrics for classification and localization. The Area Under the Receiver Operating Characteristic curve (AU-ROC) is the de facto standard for image-level detection, measuring a model’s ability to distinguish between normal and anomalous samples [4,15,29]. For pixel-level localization, however, pixel-wise AU-ROC is often criticized for providing an inflated view of performance because normal pixels overwhelmingly dominate industrial test sets [6,38]. Consequently, researchers prefer the Area Under the Per-Region Overlap (AU-PRO) or PRO score, which treats anomalous regions of varying sizes equally and rewards compact localization [4,6,15,26]. Other robust alternatives for imbalanced localization tasks include Average Precision (AP) and the Area Under the Precision-Recall curve (AUPR) [2,6,11,38]. For complex scenarios involving logical anomalies, specialized metrics like AU-sPRO are used to account for structural arrangement violations [3,15].

2.5. Inference Speed and the Accuracy-Efficiency Trade-Off

Surveys of industrial practice emphasize that production lines often require frame rates exceeding 20–30 FPS for seamless integration into high-throughput workflows [13]. Although complex architectures such as AnomalyMoE or diffusion-based models can offer high detection fidelity, they are frequently deemed impractical for high-speed manufacturing lines unless further optimized through model compression or dedicated hardware acceleration [11,15]. Inference speed is frequently discussed as a critical constraint that researchers must balance against detection performance to meet real-world industrial demands. Many state-of-the-art methods have historically sacrificed computational efficiency for marginal gains in accuracy by employing large backbone networks, ensembling multiple models, or increasing image resolution to 768 × 768 pixels or higher [3,23]. For example, methods like PatchCore achieve high accuracy but can face latency bottlenecks due to nearest-neighbor searches in large memory banks. Researchers mitigated this by applying greedy coreset subsampling to reduce the bank size while retaining performance [3,4]. Similarly, tiled ensemble approaches enable high-resolution detection of small defects, but this comes at the cost of notable latency overhead because multiple models must process individual tiles in sequence [39]. Notably, most works reported in the literature are evaluated on high-end GPUs such as the NVIDIA RTX A6000, Tesla V100S, or A100, which are not representative of the resource-constrained edge devices typically deployed in industrial settings [3,5,6].
EfficientAD achieves a latency of only 2 ms on an A6000 GPU by employing a distilled, lightweight feature extractor alongside a training loss specifically designed to improve detection performance without adding test-time complexity [3]. SimpleNet and SuperSimpleNet instead rely on straightforward CNN blocks and feature-space synthesis to attain high frame rates of up to 77 FPS, while nonetheless outperforming more complex models on established benchmarks such as MVTec AD [16,21]. VarAD and MambaAD take a different approach by leveraging state space models, or Mamba, to capture global context with linear computational complexity, offering a more efficient alternative to the quadratic burden imposed by standard Transformer self-attention [27].
This review of the published literature highlights the ongoing tension between inference speed and detection accuracy in anomaly detection. Although the field has made substantial strides, achieving near-perfect accuracy on benchmarks such as MVTec AD through innovative architectures such as GLASS, SuperSimpleNet, and EfficientAD, real-world industrial viability remains constrained by high computational demands. Thus, bridging the gap between high-precision modeling and efficient deployment on resource-constrained edge devices remains a vital challenge. To this end, the present work proposes a lightweight redesign of the GLASS framework that maintains its high accuracy while significantly reducing computational overhead, making it suitable for real-time industrial applications.

3. Proposed Framework

The proposed framework is built around the anomaly co-synthesis core of GLASS [6]. The main architecture remains unchanged, and only the feature-extraction pathway is modified, with the explicit aim of making the detector deployable on resource-constrained edge hardware without sacrificing accuracy. Specifically, three changes are introduced relative to the original design. First, the heavy WideResNet-50 backbone is replaced by the mobile-oriented MobileNetV2 backbone. Second, features are drawn from the expanded depthwise activations of the inverted-residual blocks rather than from their compressed bottleneck outputs (as advocated by various earlier methods reported in the literature), a choice that is shown in Section 4 to be decisive for accuracy. Third, a lightweight learnable per-stream gate is inserted before the feature aggregation step, allowing the relative contribution of each feature stream to be adapted on a per-category basis. The synthesis strategy, the discriminator, and the training objective are left unchanged relative to the original GLASS framework, so that any change in performance can be attributed to the proposed feature pathway alone.

3.1. The GLASS Pipeline

GLASS is a synthesis-based discriminative detector [6]. During training, two families of artificial anomalies are produced from defect-free images. Global anomalies are synthesised in feature space by perturbing normal embeddings with Gaussian noise that is steered, via gradient ascent, toward the boundary of the normal manifold, with the manifold or hypersphere hypothesis selected per category. Local anomalies are synthesised in image space by blending external textures (sourced from the Describable Textures Dataset) into the image through Perlin-noise masks, constrained to the object foreground so that synthetic defects are placed only where real defects can occur. A discriminator is then trained to separate normal embeddings from synthetic anomalous ones.
The feature pathway that feeds this discriminator is the part modified in the present work and is therefore described in detail. An input image is passed through a frozen, ImageNet-pretrained backbone, and the activations of a small set of intermediate layers are captured by forward hooks. In the original configuration, these are the layer2 and layer3 stages of WideResNet-50, at output strides of 8 and 16, respectively. Each captured feature map is divided into local patches, and all patch features are resized to the spatial grid of the first, or shallowest, extracted layer, which serves as the reference resolution. A parameter-free preprocessing step maps every stream to a common embedding dimension by adaptive pooling, and a likewise parameter-free aggregator combines the streams by an equal-weight average. The aggregated per-location embedding is passed through a learnable linear projection and then through the discriminator. At inference, the discriminator score at each location yields the anomaly map, and the maximum over locations yields the image-level score.
Two properties of this pathway are relevant to the proposed modifications. The preprocessing step and aggregator contain no learnable parameters, so the only trained components are the projection and the discriminator. Since the aggregator averages the streams with equal weight, every stream contributes identically regardless of how informative it is for a given category.

3.2. Lightweight Backbone and Expanded Depthwise Features

In the proposed framework, the WideResNet-50 backbone is replaced by MobileNetV2, whose depthwise-separable convolutions were designed for mobile and embedded inference. The suitability of MobileNetV2 features for anomaly detection was established in earlier work, where the intermediate-layer activations of a pretrained MobileNetV2 were found to be individually discriminative for this task [10]. That finding provides the basis for the feature-selection strategy developed below. It is further found empirically that a naive substitution that hooks the block outputs, namely the projected bottleneck tensors, discards too much information. Specifically, those tensors are deliberately narrow, for example, 32 and 96 channels at the strides of interest, and a detector built on them collapses on structurally complex categories.
Thus, features are proposed to be taken from the expanded depthwise activations of the MobileNetV2 backbone inside the inverted-residual blocks. Each inverted-residual block first expands its input by a fixed factor, applies a depthwise convolution on the expanded representation, and then projects it back to a narrow bottleneck. The expanded depthwise activation (the output of the depthwise stage, before projection) is far richer than the bottleneck and is the representation that carries the discriminative texture and structure information. Specifically, two layers are used, namely the depthwise activation of block 8, denoted features.8.conv.1 (384 channels at output stride 16), and that of block 12, denoted features.12.conv.1 (576 channels at output stride 16). Their concatenation provides 960 channels, compared with the 1536 channels of the WideResNet-50 pair and the 384 channels of a comparable ResNet-18 pair, as suggested by the authors of the original GLASS framework. This configuration is referred to throughout this paper as the two-layer depthwise configuration.
Because the reference grid in GLASS is fixed by the first extracted layer, the synthesis mask resolution must match that grid. The downsampling factor is therefore set equal to the output stride of the first extracted layer (16 for the configuration described above). This matching is required for the synthetic-anomaly masks and the feature maps to align.

3.3. Learnable Per-Stream Gating

The equal-weight aggregation of the original pipeline gives every feature stream the same influence on the combined embedding. This is suboptimal when streams differ in how informative they are across categories. To address this without altering the synthesis strategy or the discriminator, a learnable per-stream gate is inserted between the preprocessing step and the aggregator.
Let S denote the number of streams, and let ϕ s denote the preprocessed embedding of stream s at a given location. A vector of learnable logits g ∈ R S is introduced, and per-stream weights are obtained as
a s = S · softmax ( g ) s = S   e g s ∑ j = 1 S e g j ,       s = 1 , … , S .
Each stream is scaled by its weight, ϕ s ↦ a s   ϕ s , before aggregation. In Equation (1), S is the number of feature streams supplied to the aggregator ( S = 2 for the two-layer configuration adopted here), and g = ( g 1 , … , g S ) is a vector of free, learnable scalar logits, one per stream, which are the only parameters the gate introduces. The softmax converts these unconstrained logits into positive weights that sum to one, which keeps the weighting bounded and prevents any stream from being scaled arbitrarily large during training. Multiplying by S rescales that simplex so the weights sum to S rather than to one. This factor is required for backward compatibility with the original pipeline since without it, the gated embedding would be uniformly attenuated by a factor 1 / S relative to the ungated one, changing the scale of the features seen by the projection and discriminator. With the factor included, the initialisation g = 0 yields a s = 1 for every stream, so the gate is exactly equivalent to the original equal-weight averaging at the start of training and can only depart from it if doing so reduces the loss. Training can then move the weights away from uniformity. The gate adds only S parameters (two for the two-layer configuration) and is optimised jointly with the projection. The gate logits are registered as ordinary trainable parameters and are updated by the same optimiser, learning rate, and schedule as the projection layer, receiving gradients through the aggregated embedding from the discriminator loss. No auxiliary loss, regularisation, or separate learning rate is applied to them. Because a separate model is trained for each category, each category learns its own pair of logits independently. Because GLASS trains a separate model per category, the gate is learned per category, so a stream that is useful for one category can be emphasised while being suppressed for another. Algorithm 1 summarises the resulting gated embedding procedure, with the added steps marked.
Algorithm 1 Gated multi-stream embedding (inference forward pass).
Require: image x; backbone B ; extraction layers { l 1 , … , l S } ; gate logits g ; projection P; discriminator D
  1 : { F 1 , … , F S } ← B ( x )
▹   hooked   activations ;   backbone   halts   after   l S
  2 : r ← spatial   grid   of   F 1
▹   reference   resolution
  3 : for   s = 1 to S do
  4 :         F s ← Patchify ( F s ) ;       F s ← Resize ( F s , r )
  5 :         ϕ s ← Preprocess ( F s )
▹   parameter-free   pooling   to   embedding   dim
  6 : end for
  7 : a s ← S · softmax ( g ) s     ∀ s
▹ ▹   per - stream   gate   weights ,   Equation   ( 1 )
  8 : ϕ s ← a s   ϕ s     ∀ s
▹ ▹   apply   gate
  9 : z ← Aggregate ( ϕ 1 , … , ϕ S )
▹   parameter-free
10 : z ← P ( z )
11 : return D ( z )
▹   per - location   anomaly   score
Figure 1 contrasts the proposed framework, named Lean GLASS, with the original GLASS framework. Both take a 3 × 288 × 288 input image and produce a per-location anomaly score of size 288 × 288 . The aggregation, projection, and discriminator are identical. The pathways differ at two points only (shown as shaded thick boxes). The backbone of the original GLASS framework taps WideResNet-50 at layer2 and layer3 with corresponding output strides 8 and 16, respectively. The proposed framework, by contrast, taps the expanded-depthwise feature maps of the MobileNetV2 backbone, both at an output stride of 16. Second, a learnable per-stream gate (annotated with the weights a 1 , a 2 produced through Equation (1)) is inserted before the aggregation.
Figure 1. Feature pathway of the original GLASS detector (top) and the proposed Lean GLASS framework (bottom).
For reproducibility, the tensor shapes at each stage of the embedding pathway are given in Table 1 for the two-layer configuration at the operating resolution (input 288 × 288 ) used throughout this study. Patch extraction is performed with a 3 × 3 window, a stride of one, and unit padding. Thus, each grid location is described by the 3 × 3 neighbourhood of backbone activations centred on it. Both extraction layers lie at output stride 16, so no spatial resizing is required between them, and the reference grid is that of the first extracted layer, i.e., 18 × 18 . The preprocessing step maps every patch descriptor to a common width by adaptive average pooling. The aggregation step pools the gated, stacked streams back to the target embedding width. So, both steps remain parameter-free.
Table 1. Tensor shapes at each stage of the embedding pathway in the proposed two-layer configuration.

3.4. Complementary Feature Streams (Ablation Only)

Two handcrafted feature streams were additionally implemented in order to test whether additional hand-coded information not captured by the backbone could improve detection. The first is a patch-level principal-component-analysis (PCA) reconstruction-residual stream. For this, a PCA basis is fitted on patches of the normal training images, and at inference, each patch is projected onto this basis, and the reconstruction-residual energy (the part not explained by the normal subspace) forms a single-channel map. The second is a wavelet high-frequency stream. Here, a fixed multi-level discrete wavelet transform produces detail-subband magnitudes that emphasise fine edges and texture. Each stream, when enabled, is appended as an additional input to the gated aggregation described above. As reported in Section 4, neither stream improved accuracy, and both are therefore excluded from the final model. Their description is retained here only as documented ablations.

3.5. Datasets and Implementation

In this study, four anomaly datasets are considered. The principal experiments are conducted on two established benchmarks, MVTec AD [3] and VisA [40], with two further cross-domain datasets used as auxiliary generalisation checks. Major ablation experiments were conducted on the MVTec AD benchmark, which comprises fifteen categories of industrial objects and textures with pixel-level ground truth for defective test images. Foreground masks, computed by binarising the normal images, are used to constrain local synthesis and were provided by the original authors of the GLASS framework. This prior suits the clean backgrounds of MVTec AD and is also disclosed for transparency. The VisA benchmark is used as a second, more challenging established benchmark. It comprises twelve object categories with pixel-level ground truth. It includes complex structures, multiple object instances per image, and subtle defects, which make it substantially harder than MVTec AD. It is evaluated under the same protocol and metrics as MVTec AD. Further tests for generalisation are conducted on two additional datasets from different domains. The first is a concrete crack dataset, which contains images of concrete surfaces with and without cracks [41]. Its images were derived from 458 high-resolution photographs ( 4032 × 3024 pixels) of various METU campus buildings, subdivided into smaller patches, and cover a range of surface finishes and illumination conditions. The second is a pharmaceutical pill dataset, which contains images of pills with and without defects [42]. It was produced to demonstrate visual quality control in pill manufacturing and provides three image classes (normal, dirt-contaminated, and chipped). These datasets are selected here specifically because they represent application domains (civil-infrastructure inspection and pharmaceutical manufacturing) distinct from the industrial-object and texture categories of MVTec AD and VisA, providing a cross-domain check of the proposed method that is independent of the primary benchmarks. The same metrics as for MVTec AD are reported for these datasets. Detailed image-acquisition settings, such as camera exposure or white balance, are not documented by any of the source datasets and are consequently not available to report. All datasets are publicly available.
Images are processed at a resolution of 288 × 288 as defined by the original GLASS framework. The embedding and projection dimensions, the discriminator width, the synthesis noise level, and the remaining hyperparameters follow the public GLASS configuration. Thus, the backbone and the gated stream mechanism are the only variables relative to the baseline. Both a short (20-epoch) and a longer (100-epoch) training schedule are considered. The role of the schedule is examined explicitly in Section 4. Training and accuracy experiments were run on a desktop PC with an NVIDIA RTX 2080 Ti under the Pytorch machine-learning framework. The corresponding edge-inference measurements were taken on an NVIDIA Jetson Nano (4 GB model). The efficiency protocol is detailed alongside those results.
The complete set of training and architectural settings used in all experiments, based on the original GLASS framework, is listed in Table 2. Unless stated otherwise, these values are held fixed across every configuration, dataset, and seed, so that the backbone and the gate remain the only variables under study. The backbone is frozen throughout, and only the projection, the gate logits, and the discriminator are trained.
Table 2. Training and architectural settings used throughout this study.

3.6. Evaluation Metrics

Four complementary metrics are used for evaluation, as commonly described in the literature. The image-level area under the receiver operating characteristic curve (image AUROC) measures how well the per-image anomaly score separates defective from defect-free images and is equal to the probability that a randomly chosen defective image receives a higher score than a randomly chosen normal one. Thus, a value of 0.5 corresponds to chance and 1.0 to perfect ranking. The image-level average precision (image AP) is the area under the precision-recall curve for the same scores. Unlike AUROC, it is sensitive to class imbalance, so it is the more demanding measure when defective samples are rare. The image-level average precision (image AP) is the area under the precision-recall curve for the same scores. This sensitivity is a well-established property of precision-recall-based metrics relative to ROC-based ones, rather than one specific to anomaly detection [43,44], and is the reason several complementary metrics are reported throughout this study rather than AUROC alone. The pixel-level AUROC applies the same ranking criterion to individual pixels, using the ground-truth defect masks, and therefore measures the quality of spatial scoring. The per-region-overlap score (PRO) averages the overlap between the predicted anomalous region and each annotated defect region separately, so that small defects contribute as much as large ones. It rewards spatially complete and well-delineated detections and is consequently the metric most sensitive to localisation quality rather than to ranking alone. Pixel-level metrics require ground-truth masks, and are therefore reported for MVTec AD and VisA but not for the two auxiliary cross-domain datasets, which provide image-level labels only. Other metrics exist for related but distinct purposes and are not used here. For instance, F1-score or precision/recall at a fixed operating threshold require a chosen decision boundary rather than the threshold-free ranking assessed by AUROC and AP, and the region-weighted sPRO score extends PRO to logical, structural anomalies (such as a missing or misplaced component) that the present method, following GLASS, does not specifically target. One model is trained per category. As is standard in this line of work, the checkpoint that maximises the sum of image-level and pixel-level AUROC across evaluation epochs is selected for reporting. This best-epoch selection is mildly optimistic and is noted here for transparency.

4. Results and Discussion

All experiments reported in this study use one model trained per category, under the protocol described in Section 3.5. Unless a longer schedule is stated explicitly, the short 20-epoch schedule is used, which is adequate for comparing design choices at low computational cost in the ablation study. Each design decision is examined in isolation, and the findings are interpreted alongside the corresponding measurements. Throughout this section, bold values denote the best result within the comparison shown in that table (for example, the higher of two configurations, or the winning model in a head-to-head comparison). Any departure from this convention is stated explicitly in the corresponding table caption.

4.1. Backbone and Feature Selection

The choice of backbone and of the features exposed to the detector is examined first in the ablation study. Table 3 reports image- and pixel-level performance for the candidate configurations. Using the projected bottleneck outputs of MobileNetV2 is clearly inadequate, with mean image-level AUROC falling to 0.929 , well below the WideResNet-50 reference. This is consistent with the design of MobileNetV2, in which the bottleneck tensors are deliberately narrow and therefore discard much of the information that a dense anomaly detector relies upon. Drawing instead on the expanded depthwise activations, which are several times wider, recovers most of the gap. The two-layer depthwise configuration (features.8.conv.1 and features.12.conv.1, 960 channels) reaches 0.969 image AUROC and matches the reference on pixel AUROC ( 0.979 ). Adding a third, shallower depthwise layer (total 1152 channels) does not improve image-level detection, indicating that the additional channels are largely redundant once the two principal depthwise layers are present, while the leaner pair (528 channels) is clearly weaker because it omits the wider of the two informative layers. The two-layer depthwise configuration is therefore retained as the feature extraction backbone for the proposed Lean GLASS framework.
Table 3. Backbone and feature selection (20-epoch schedule, no gate). Bold indicates the MobileNetV2 configuration retained for subsequent experiments, which is the best-performing lightweight candidate. The WideResNet-50 row is a fixed reference and is not itself a candidate under selection, so it is not bolded despite its higher score.

4.2. Effect of Per-Stream Gating

The next step in the ablation study evaluates the learnable per-stream gate as a controlled addition, with every other factor held fixed. As shown in Table 4, the gate improves the two-layer configuration from 0.969 to 0.975 image AUROC, without any loss on pixel-level metrics. The per-category results indicate that most categories improve and none regress, which is the behaviour expected of a mechanism that is initialised to the original equal-weight aggregation and can only depart from it when doing so reduces the training objective. Because the gate is learned independently for each category, it allows a category to rely more heavily on whichever of the two depthwise layers is more discriminative for its defects. This adaptation is a key contribution of the proposed Lean GLASS framework that the fixed averaging in the original GLASS framework cannot express. The gain is modest but consistent and is obtained at a cost of a single parameter per stream, so the gate is retained and made an integral part of the framework. To establish that this small improvement is not an artefact of a single random initialisation, the two-layer configuration was retrained with and without the gate across three random seeds. The per seed results are reported in Table 5. The gate improves image AUROC on every seed, with a paired gain of + 0.006 , + 0.009 , and + 0.003 (mean + 0.006 , standard deviation 0.003 ), and it never reduces performance on any seed. It is worth noting that the seed-to-seed variation of each configuration (on the order of 0.010 ) is shared between the gated and ungated runs and is largely removed by the paired comparison, so the residual paired gain, although small, is a stable effect rather than a consequence of seed noise. The same pattern holds on pixel AUROC and per-region overlap.
Table 4. Effect of the learnable per-stream gate (20-epoch schedule), reported as mean ± standard deviation over three random seeds. All values are MVTec-mean scores.
Table 5. Per-seed paired improvement from the gate (image AUROC, two-layer configuration, 20-epoch schedule). The gain is positive on every seed.
Because the gate is learned independently per category, it is informative to examine the weights it converges to. Table 6 reports the learned weights a 1 (applied to the features.8.conv.1 stream) and a 2 (applied to features.12.conv.1) for every MVTec category, extracted from the trained checkpoints ( a 1 + a 2 = 2 by construction, so a departure of a 1 above 1 implies an equal departure of a 2 below 1, and vice versa). This experiment corresponds to seed 0 mentioned above. Consistent with the modest mean improvement reported above, every learned weight remains close to the initial equal-weighting value of 1.0 , with the full range spanning approximately 0.99 to 1.01 . The departures are nonetheless category-specific rather than uniform: screw ( 1.010 / 0.990 ), transistor ( 1.007 / 0.993 ), and cable and pill ( 1.005 / 0.995 each) show the largest shifts, favouring the shallower, narrower stream, whereas grid and tile remain essentially at equal weighting. Notably, screw, cable, and transistor are among the categories that benefited most from the longer training schedule in Table 7, so the gate is found to depart furthest from equal weighting on exactly the categories that are otherwise the most difficult, which is consistent with an adaptive mechanism rather than an arbitrary one.
Table 6. Learned per-stream gate weights for each MVTec category (20-epoch schedule). At initialisation, a 1 = a 2 = 1.0 for every category.
Table 7. Image-level AUROC of the base configuration at the 20- and 100-epoch schedules for all categories.
Notably, the two-layer version performs slightly better than the three-layer version with the gate. Hence, the two-layer depthwise configuration with the gate is denoted the base configuration in the remainder of this section.

4.3. Ablation of Complementary Feature Streams

The contribution of the handcrafted streams defined in Section 3.4 is assessed in Table 8. The outcome is negative across both schedules. The wavelet high-frequency stream reduces mean image AUROC from 0.975 to 0.917 even with the gate active, and the PCA reconstruction-residual stream, evaluated on the three-layer backbone without the gate, reduces mean image AUROC from its own 0.967 baseline to 0.900 . The PCA row is reported against its own matched baseline (three-layer, no gate, 0.967 → 0.900 ) rather than against the two-layer gated base, because the two experiments were not run on the same backbone configuration. A direct ablation of the PCA stream on the two-layer gated base was not performed and is left for future work, since the initial findings are not encouraging. The two results are nonetheless consistent in direction and magnitude, i.e., both PCA and wavelet streams cause a large drop under their respective configurations, and the mechanism discussed below is expected to apply to both. The same pattern persists at the 100-epoch schedule. Examination of the per-category behaviour shows that the loss is concentrated on structurally defined categories. On such categories, it is deemed that the added descriptors produce strong responses in regions that are entirely normal (for example, the textured surface of a metallic part), so the extra stream injects spatially varying noise rather than useful signal. The per-stream gate cannot remove this effect, because a single scalar weight per category can only scale a stream uniformly and cannot suppress it selectively by location. A weak, category-conditional benefit of the wavelet stream was observed on a small number of texture categories, but it is outweighed by the losses elsewhere. The streams are therefore excluded from the proposed model. When analyzed in the context of earlier results, these results indicate that the expanded depthwise features from MobileNetV2 backbone already encode the edge, texture, and global-appearance information that the handcrafted descriptors were intended to add.
Table 8. Complementary streams reduce accuracy. Each row states its exact backbone configuration; the PCA row is not a matched ablation of the wavelet/base rows (it uses the three-layer backbone without the gate, whereas the other rows use the two-layer backbone with the gate) and is included as a preliminary result pending a matched rerun (see text).

4.4. Influence of the Training Schedule

Several categories remained comparatively weak under the short training schedule (20 epochs). The effect of extending training from 20 to 100 epochs is reported in Table 7 for all categories. The mean image AUROC rises from 0.975 to 0.992 , with the improvement concentrated almost entirely in the previously weak categories. The largest gains occur for screw ( + 0.092 ), toothbrush ( + 0.064 , reaching a perfect score), and cable ( + 0.038 ), whereas categories already near the ceiling change negligibly. This distribution of the gain is informative. It indicates that the residual weakness of these categories was a matter of insufficient training rather than of feature representation, and it explains why the feature-side additions of Section 4.3 could not help. Thus the limitation that these additions were intended to address did not originate in the features. The results indicate that the training schedule, rather than architectural augmentation, accounts for the remaining performance gap on the difficult categories.

4.5. Comparison with the Lightweight GLASS Configuration

To place the proposed model against the lightweight configuration reported by the GLASS authors, the ResNet-18 backbone was run through the identical pipeline at the same 100-epoch schedule, so that the backbone is the only difference. Table 9 reports the aggregate comparison, and Table 10 reports the per-category image-level AUROC. The proposed model exceeds the ResNet-18 configuration on image-level AUROC ( 0.992 versus 0.977 ) and on pixel AUROC and pixel AP, while remaining slightly behind on PRO. The detection advantage is broad rather than driven by a few categories, and it is most pronounced on structurally defined objects such as cable ( 0.919 → 0.997 ), transistor ( 0.944 → 0.995 ), and metal_nut ( 0.975 → 0.997 ), which is consistent with the wider depthwise representation supplying richer structural information than the ResNet-18 layers. The single deficit, on PRO, reflects a small reduction in the compactness of the localised regions under the lighter backbone and it is the one respect in which the ResNet-18 configuration retains a slight advantage. Figure 2 shows qualitative anomaly maps produced by the proposed model on representative MVTec AD categories, where the highlighted regions correspond to the detected defects alongside the input images and ground-truth masks.
Table 9. Matched comparison with the lightweight GLASS configuration (100-epoch schedule, identical pipeline).
Table 10. Per-category image-level AUROC (100-epoch schedule).
Figure 2. Qualitative anomaly localisation of the proposed Lean GLASS model on representative MVTec AD categories. Each panel shows the input image, the ground-truth defect mask, and the predicted anomaly heatmap, side by side. Red indicates high anomaly score while blue indicates low.
A related issue is whether the two backbones differ systematically in how quickly they converge under the selected-best-epoch protocol. On MVTec AD, the mean best epoch (out of 100) is 63.8 for the proposed model and 57.3 for the ResNet-18 configuration, a modest difference, and both show considerable spread across categories (the ResNet-18 configuration alone ranges from epoch 5 on leather to epoch 97 on metal_nut), so no consistent advantage in optimisation speed is evident for either backbone on this benchmark. On the two auxiliary datasets (discussed below), where a single object or surface type is involved, the proposed model in fact reached its best epoch earlier than the ResNet-18 configuration in both cases (epoch 9 versus 60 on the concrete dataset, and epoch 34 versus 67 on PillQC). The available evidence therefore does not support a systematic difference in convergence speed between the two backbones under this protocol. In fact, the trend on the simpler auxiliary datasets favours the proposed model. This absence of a systematic gap is consistent with the training protocol used throughout this study. The residual connections that distinguish the ResNet family were introduced primarily to ease gradient propagation when training or fine-tuning deep stacks of convolutional layers, an advantage that applies to optimisation within the backbone itself. In the present framework, however, the backbone is frozen and pretrained in every configuration, and only the shallow, non-residual projection, gate, and discriminator downstream of it are trained. Thus, no gradient is propagated back through the backbone. The convergence behaviour reported above therefore reflects how quickly this shallow head learns to separate normal and synthetic-anomalous embeddings given fixed features, which is a different optimisation problem from the one that residual connections address, and it offers a plausible explanation for why no consistent convergence advantage is observed for the ResNet-18 backbone in comparison with the MobileNetV2 despite its residual architecture.

4.6. Evaluation on the VisA Benchmark

To evaluate the proposed model on a second established and more challenging benchmark, both the proposed model and the matched ResNet-18 configuration were trained and evaluated on the VisA dataset [40]. VisA comprises twelve object categories spanning printed circuit boards and multiple instances of small objects, such as capsules, macaroni, and fryum, and it is widely regarded as more difficult than MVTec AD owing to complex structures, multiple instances per image, and subtle defects. Unlike the concrete and pill datasets discussed later, VisA provides pixel-level ground truth, so full image-level and pixel-level metrics are reported. The dataset was used in its MVTec-style single-class layout with the standard split, and both configurations were trained under the identical pipeline and 100-epoch schedule used for MVTec AD, with the backbone the only difference between them.
Table 11 reports the per-category results. On image-level detection the two configurations are effectively level (mean image AUROC 0.938 for the proposed model versus 0.936 for ResNet-18), a difference within the expected run-to-run variation. On pixel-level AUROC, the proposed model is clearly ahead ( 0.979 versus 0.930 ), indicating more accurate spatial scoring of anomalous pixels. On the per-region-overlap score, the ResNet-18 configuration retains a small advantage ( 0.925 versus 0.914 ). This pattern is consistent with the findings on MVTec AD, where the proposed model leads on detection and pixel AUROC while conceding a small margin on per-region overlap. The recurrence of this observation on an independent and harder benchmark indicates that the trade-off is a stable property of the lighter backbone rather than an artefact of experimentation on a single dataset. Both methods reach mean image AUROC in the 0.93 range rather than approaching the ceiling, confirming that VisA is not saturated and therefore constitutes a genuine test of generalisation.
Table 11. Per-category results on the VisA benchmark (100-epoch schedule, identical pipeline). Image-level AUROC (I-AUROC), pixel-level AUROC (P-AUROC), and per-region overlap (PRO) are shown side by side for the ResNet-18 configuration and the proposed MobileNetV2 model.
Representative anomaly maps on VisA categories are shown in Figure 3, where the localised responses align with the annotated defect regions.
Figure 3. Qualitative anomaly localisation on representative VisA categories. Each panel shows the input image, the ground-truth defect mask and the predicted anomaly heatmap, side by side. Red indicates high anomaly score while blue indicates low.

4.7. Comparison with Notable Works Reported in the Literature

The comparison in the preceding subsection is a controlled one. Thus, the proposed model and the ResNet-18 configuration were trained and evaluated in this study under an identical pipeline, training schedule, and data. This means that the backbone is the only difference, and the resulting margins are directly attributable to that change. To compare the method within the wider field, Table 12 additionally lists results reported by several established detectors. These external figures are quoted as published by their respective authors and were not reproduced in this study. Hence, these are reported under each method’s own training protocol, backbone, input resolution, and training length.
Table 12. Image-level AUROC on MVTec AD in the context of established methods.
Two differences in particular should be considered while evaluating the data in Table 12. First, the backbones differ substantially. PatchCore [4], SimpleNet [21], SuperSimpleNet [16], and GLASS [6] all employ a WideResNet-50 feature extractor, whereas EfficientAD [5] uses a lightweight custom network and the present method uses MobileNetV2. Second, the reported figures for the external methods correspond to their own training and evaluation protocols, whereas the value for the proposed model is that of the matched 100-epoch schedule used throughout this study. On MVTec AD, the proposed model (0.992) is competitive with these established methods, including EfficientAD-M (0.991) once its test-time stopping is disabled, while using a markedly smaller backbone. It is worth stating this gap explicitly, since the controlled comparison in this study is against the lightweight ResNet-18 configuration rather than against the heaviest WideResNet-50-based methods. The proposed model ( 0.992 ) trails the strongest WideResNet-50-based method in Table 12 (SimpleNet, 0.996 ) by 0.004 image AUROC, and trails GLASS’s own WideResNet-50 configuration ( 0.997 ) by 0.005 , while using a backbone with 3.3 × fewer parameters than ResNet-18 and, by extension, a substantially larger reduction relative to WideResNet-50 ( 68.9  M backbone parameters, as profiled in Section 4.8). The remaining gap to the best-performing heavy backbones is therefore small in absolute terms, and the present results indicate that most of the achievable accuracy on this benchmark can be retained at a fraction of the model size, rather than that the proposed model surpasses the strongest possible configuration. A dedicated comparison with EfficientAD, the most directly comparable efficiency-oriented method, is given in Section 4.10.
To complement the accuracy data reported in Table 12, Table 13 provides a structural comparison of design choices to make explicit where the proposed method departs from each compared method. In this context, “Adaptive fusion” denotes a learnable, per-category mechanism for combining multiple feature streams (as opposed to a fixed or absent one). “Edge latency measured” denotes a reported measurement on embedded hardware, as opposed to desktop or datacentre GPUs only. PatchCore and GLASS rely on a fixed, heavy backbone with equal-weight (PatchCore) or non-existent (single-scale memory bank) feature fusion. SimpleNet and SuperSimpleNet likewise use a heavy backbone with fixed feature aggregation. EfficientAD departs furthest architecturally, using a distinct student-teacher distillation paradigm with a custom lightweight network rather than a pretrained backbone. None of the compared methods combines a lightweight pretrained backbone with a learnable, per-category feature-fusion mechanism, and none reports latency measured on embedded (as opposed to desktop or datacentre) hardware. The inference efficiency of the proposed model is discussed in the following subsection.
Table 13. Structural comparison of design choices.

4.8. Efficiency

The efficiency of the deployed inference path, from the backbone truncated at the last extracted layer through the discriminator, was profiled, with parameters reported separately for the backbone and the shared head. Table 14 reports the comparison against the ResNet-18 configuration. The proposed backbone uses 3.3 × fewer parameters and 4.7 × fewer multiply-accumulate operations. The latency behaviour is markedly device-dependent, and this dependence is informative. On the two large GPUs (the datacentre-class Google Colab-based NVIDIA A100 and the desktop NVIDIA RTX 2080 Ti), single-image (batch 1) latency does not favour the proposed model. The two backbones are effectively tied on the 2080 Ti ( 5.23 versus 5.42 ms), and on the A100 the ResNet-18 configuration is in fact slightly faster ( 6.15 versus 6.99 ms). This occurs because neither small model saturates such a large device at batch 1, so the measured time is governed by fixed overheads (such as kernel launches) rather than by actual arithmetic operations of the models. The depthwise-separable convolutions that give MobileNetV2 its low operation count are composed of many small, memory-bound kernels, and on a heavily over-provisioned GPU the cost of launching them can exceed that of the fewer, larger kernels of ResNet-18, even though far less computation is performed. The lower operation count therefore does not translate into lower latency when computation is not the bottleneck.
Table 14. Efficiency of the deployed path across three devices. Latency is mean per inference at batch 1 (per-frame) and batch 8 (throughput). Bold marks the faster model for each measurement.
At batch 8, where the GPUs are better utilised, the proposed model is roughly 2.7 × faster on both the A100 ( 8.48 versus 22.64 ms) and the 2080 Ti ( 9.50 versus 26.09 ms). This throughput regime is relevant to deployment scenarios in which images arrive in batches, such as inspection from multiple cameras or offline processing of recorded data. The real advantage of the proposed Lean GLASS framework, however, becomes clearer when the device is computationally constrained. For the intended application, on the target edge device (NVIDIA Jetson Nano, JetPack 4, PyTorch 1.8), where compute is the binding constraint even at batch 1, the proposed model is 2.4 × faster per frame ( 52.2 versus 127.5 ms). The efficiency advantage of the lighter backbone therefore appears precisely where computation, rather than launch overhead, limits throughput. It should be noted that the Jetson Nano measurements were obtained with the model executed in full precision, without any quantisation or hardware-specific inference optimisation. Such techniques are routinely applied when deploying networks on embedded hardware and would be expected to reduce latency further, at some cost in accuracy. The figures reported here therefore represent a conservative estimate of the achievable edge performance.

4.9. Auxiliary Cross-Domain Datasets

Beyond the two established benchmarks, two further datasets from different application domains are used as lightweight cross-domain generalisation tests. To assess whether the findings extend beyond MVTec AD, the proposed model and the matched ResNet-18 configuration were both evaluated on two further datasets drawn from different domains. These are the concrete crack dataset of Özgenel and Sorguç [41], which contains surface images of concrete labelled as intact or cracked, and the PillQC dataset [42], which contains images of pharmaceutical pills labelled as normal, dirt-contaminated, or chipped. Neither dataset provides pixel-level ground truth, so only image-level metrics are reported. Each dataset was reshaped into the normal-only training and mixed test format used by the framework. For the concrete dataset, 1000 intact images were used for training, with 400 intact and 400 cracked images held out for testing. For the PillQC dataset, 89 normal images were used for training, with 60 normal images and all defective images (138 dirt, 43 chip) held out for testing. For this dataset, the two defect types were pooled (labelled anomalous) at scoring. Both datasets were processed at the same resolution as the main experiments, without foreground masks, and with a fixed synthesis distribution per dataset (manifold for concrete, hypersphere for pills). One model was trained per dataset at the 100-epoch schedule, with the backbone as the only difference between the two configurations.
Table 15 reports the results on these two datasets. On both datasets, the proposed model attains very high image-level accuracy ( 0.999 AUROC on both), and it equals or exceeds the ResNet-18 configuration in every case. The margin is larger on PillQC ( 0.999 versus 0.955 image AUROC) and smaller on the concrete dataset ( 0.999 versus 0.990 ), but the direction is consistent across both domains and agrees with the comparison on MVTec AD. Both datasets are considerably simpler than MVTec AD, with a single object or surface type and visually conspicuous defects, so the high absolute scores are expected and the datasets are not intended as challenging benchmarks. Their purpose is to test whether the proposed framework generalizes across domains without modification, and the results indicate success. Representative anomaly maps for the two datasets are shown in Figure 4 and Figure 5, illustrating that the detected regions coincide with the visible cracks and surface defects, respectively.
Table 15. Image-level results on two additional datasets (100-epoch schedule). Pixel-level metrics are not applicable, as neither dataset provides ground-truth masks.
Figure 4. Qualitative anomaly localisation of the proposed Lean GLASS model on the concrete crack dataset. Each panel shows the input image alongside the predicted anomaly heatmap. Ground-truth masks are not available for this dataset (Section 4.9). Red indicates high anomaly score while blue indicates low.
Figure 5. Qualitative anomaly localisation of the proposed Lean GLASS model on the PillQC dataset, covering both defect types (dirt and chip). Each panel shows the input image alongside the predicted anomaly heatmap. Ground-truth masks are not available for this dataset. Red indicates high anomaly score while blue indicates low.

4.10. Comparison with EfficientAD

EfficientAD [5] warrants separate discussion, as it is the established method most directly comparable in aim. Both this work and EfficientAD target efficient anomaly detection with a lightweight feature extractor. A fair comparison requires care, because the two methods differ in paradigm, in evaluation protocol, and in the hardware on which efficiency was demonstrated.
On accuracy, the two methods are essentially equal on MVTec AD as reported previously. The proposed model attains 0.992 image-level AUROC, and EfficientAD-M attains 0.991 on the same benchmark when its test-time stopping is disabled, the setting its authors regard as representative of unseen-data performance (the higher 0.998 figure is obtained with early stopping on test images, which the EfficientAD authors themselves note overestimates performance and disable for their main results). The two methods therefore sit together with GLASS and PatchCore in the top accuracy cluster on MVTec AD, rather than showing one clearly leading.
In several respects, EfficientAD is distinct and, on its own terms, ahead. It is built on a student-teacher distillation paradigm with a custom patch-description network, which differs fundamentally from the synthesis-based, backbone-substitution approach taken in this study. It additionally detects logical anomalies through an autoencoder, a capability neither GLASS nor the present method targets. Its reported absolute inference latency on large GPUs is also very low, on the order of a few milliseconds.
In the respect most relevant to this work, however, the methods are comparable, and the present approach addresses a setting that EfficientAD does not. The latency and throughput reported for EfficientAD were measured on datacentre and high-end desktop GPUs (an NVIDIA RTX A6000, with further figures on the A5000, Tesla V100, RTX 3080, and RTX 2080 Ti). No evaluation on a resource-constrained edge device is reported. As shown in the preceding subsection, latency on large GPUs is a poor predictor of latency on edge hardware, since the bottleneck differs. The contribution here is a detector whose efficiency is demonstrated by direct measurement on an embedded device (the Jetson Nano), the class of hardware encountered in small-scale industrial inspection deployments where a dedicated workstation is impractical. On this device, the proposed model processes approximately 19 frames per second (a per-frame latency of 52.2 ms), which is adequate for the throughput of many such inspection settings. The two methods are thus better seen as complementary, addressing efficient anomaly detection through different paradigms and validated on different classes of hardware, rather than as competing for a single ranking.

4.11. Limitations

Despite the utility of the proposed Lean GLASS framework in delivering exceptional accuracy at minimal computational load, its most obvious limitation is the reduction in the spatial compactness of the localised anomaly regions. Although the proposed model surpasses the ResNet-18 configuration on image-level AUROC, pixel-level AUROC, and pixel-level AP, it is lower on the per-region-overlap score, at 0.926 versus 0.941, as shown in Table 9. This deficit is a direct consequence of the backbone. The features used here are drawn at an output stride of 16, and the expanded depthwise activations, while rich in channels, are produced by depthwise-separable convolutions that aggregate spatial context more coarsely than the standard convolutions of a residual network. The ResNet-18 configuration, by contrast, draws its shallower stream at an output stride of 8, giving it a finer spatial grid from which to form tightly bounded regions. The per-region-overlap score rewards spatially complete and well-delineated regions specifically, and it is therefore the metric on which this coarser, lighter representation is expected to give lower accuracy. The consequence is that the proposed model is very well suited to detecting and coarsely localising anomalies, but is less suited to applications requiring pixel-accurate delineation of defect boundaries. A further limitation is inherited from the original GLASS framework’s synthesis strategy: local synthesis relies on foreground masks obtained by binarisation, a prior that is well suited to the clean backgrounds of MVTec AD but may transfer less directly to cluttered scenes.

5. Conclusions

This study examined whether the heavy backbone of a state-of-the-art synthesis-based anomaly detector can be replaced by a lightweight, mobile-oriented network without sacrificing accuracy while increasing computational efficiency. Within the GLASS framework, the WideResNet-50 backbone was replaced by MobileNetV2, and it was empirically observed that the manner of feature extraction is decisive in this regard. Specifically, drawing on the expanded depthwise activations of the inverted-residual blocks, rather than on the compressed bottleneck outputs, recovers the accuracy lost by a naive substitution with a leaner backbone. Moreover, a lightweight learnable per-stream gate was introduced to replace the fixed equal-weight feature aggregation with a per-category weighting, yielding a small but consistent improvement at negligible parameter cost. Under a matched pipeline and training schedule, the resulting model was shown to equal or exceed the lightweight ResNet-18 configuration of GLASS on image- and pixel-level detection, while using 3.3 × fewer backbone parameters and 4.7 × fewer operations, and running 2.4 × faster per frame on a Jetson Nano edge device. The comparison was repeated on the more challenging VisA benchmark, where the two configurations were found to be closely matched on image-level detection while the proposed model improved pixel-level AUROC, indicating that the conclusions are not specific to a single benchmark and generalize well.
A systematic negative result was additionally established. Two handcrafted complementary feature streams, based on principal-component reconstruction residuals and on wavelet high-frequency descriptors, did not improve accuracy, and the residual weakness observed on the more difficult categories was traced to the training schedule rather than to the feature representation. The broader conclusion drawn from these experiments is that, for efficient edge-deployable anomaly detection of this kind, careful selection of backbone features is more important than architectural augmentation of the feature pathway.
For future work, several directions remain open. The category-conditional behaviour of the wavelet stream, which proved beneficial for a subset of texture categories but harmful elsewhere, suggests that a content-adaptive fusion able to weight a stream by spatial location, rather than by a single per-category scalar, may be able to exploit such information without the accompanying degradation.
In addition, the edge-latency figures were obtained without quantisation or other inference-time optimisation, so the reported speeds are conservative. In this regard, quantised deployment is a natural direction for realising further gains, subject to the usual trade-off against accuracy.

Funding

The author gratefully acknowledges the Deanship of Scientific Research (DSR) at King Abdulaziz University, Jeddah, Saudi Arabia, for funding this project under grant No. (IPP: 793-135-2026) and for providing technical support.

Data Availability Statement

The MVTec AD dataset is publicly available at the URL https://www.mvtec.com/company/research/datasets/mvtec-ad (accessed on 1 March 2026). PillQC dataset is publicly available at the URL https://github.com/matlab-deep-learning/pillQC (accessed on 1 March 2026). Concrete Crack dataset is publicly available at the URL https://data.mendeley.com/datasets/5y9wdsg2zt/2 (accessed on 1 March 2026). Visa dataset is publicly available at the URL https://github.com/amazon-science/spot-diff (accessed on 20 July 2026). Code and configurations supporting the reported results are available at https://github.com/4mbilal/Anomaly_Detection (accessed on 20 July 2026).

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Steger, C.; Ulrich, M.; Wiedemann, C. Machine Vision Algorithms and Applications, 2nd ed.; Wiley-VCH: Weinheim, Germany, 2018. [Google Scholar]
  2. Liu, J.; Xie, G.; Wang, J.; Li, S.; Wang, C.; Zheng, F.; Jin, Y. Deep Industrial Image Anomaly Detection: A Survey. Mach. Intell. Res. 2024, 21, 104–135. [Google Scholar] [CrossRef] [Scilit]
  3. Bergmann, P.; Batzner, K.; Fauser, M.; Sattlegger, D.; Steger, C. The MVTec Anomaly Detection Dataset: A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection. Int. J. Comput. Vis. 2021, 129, 1038–1059. [Google Scholar] [CrossRef] [Scilit]
  4. Roth, K.; Pemula, L.; Zepeda, J.; Schölkopf, B.; Brox, T.; Gehler, P. Towards Total Recall in Industrial Anomaly Detection. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 14298–14308. [Google Scholar]
  5. Batzner, K.; Heckler, L.; König, R. EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies. In 2024 IEEE/CVF Winter Conference on Applications of Computer Vision; IEEE: New York, NY, USA, 2024; pp. 127–137. [Google Scholar]
  6. Chen, Q.; Luo, H.; Lv, C.; Zhang, Z. A Unified Anomaly Synthesis Strategy with Gradient Ascent for Industrial Anomaly Detection and Localization. In European Conference on Computer Vision (ECCV); Springer Nature: Cham, Switzerland, 2024. [Google Scholar]
  7. Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.C. MobileNetV2: Inverted Residuals and Linear Bottlenecks. In 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2018; pp. 4510–4520. [Google Scholar]
  8. Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv 2017, arXiv:1704.04861. [Google Scholar]
  9. Howard, A.; Sandler, M.; Chu, G.; Chen, L.C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for MobileNetV3. In 2019 IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2019; pp. 1314–1324. [Google Scholar]
  10. Bilal, M.; Hanif, M.S. Fast Anomaly Detection for Vision-Based Industrial Inspection Using Cascades of Null Subspace PCA Detectors. Sensors 2025, 25, 4853. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Zhang, J.; He, H.; Gan, Z.; He, Q.; Cai, Y.; Xue, Z.; Wang, Y.; Wang, C.; Xie, L.; Liu, Y. ADER: A comprehensive benchmark for multi-class visual anomaly detection. arXiv 2024, arXiv:2406.03262. [Google Scholar]
  12. Fučka, M.; Zavrtanik, V.; Skočaj, D. ObjectCore—Efficient Few-shot Logical Anomaly Detection using Object Representations. In 2026 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV); IEEE: New York, NY, USA, 2026; pp. 3857–3867. [Google Scholar] [CrossRef] [Scilit]
  13. Cheng, Y.; Sun, Y.; Zhang, H.; Shen, W.; Cao, Y. Towards high-resolution 3d anomaly detection: A scalable dataset and real-time framework for subtle industrial defects. arXiv 2025, arXiv:2507.07435. [Google Scholar]
  14. Akcay, S.; Atapour-Abarghouei, A.; Breckon, T.P. GANomaly: Semi-supervised anomaly detection via adversarial training. In Asian Conference on Computer Vision (ACCV); Springer International Publishing: Cham, Switzerland, 2018; pp. 622–637. [Google Scholar]
  15. Li, Z.; Yan, Y.; Wang, X.; Ge, Y.; Meng, L. A survey of deep learning for industrial visual anomaly detection. Artif. Intell. Rev. 2025, 58, 279. [Google Scholar] [CrossRef] [Scilit]
  16. Rolih, B.; Fučka, M.; Skočaj, D. SuperSimpleNet: Unifying Unsupervised and Supervised Learning for Fast and Reliable Surface Defect Detection. In International Conference on Pattern Recognition (ICPR); Springer Nature: Cham, Switzerland, 2024. [Google Scholar]
  17. Rolih, B.; Fučka, M.; Skočaj, D. No Label Left Behind: A Unified Surface Defect Detection model for all Supervision Regimes. J. Intell. Manuf. 2025, 37, 3189–3209. [Google Scholar] [CrossRef] [Scilit]
  18. He, H.; Bai, Y.; Zhang, J.; He, Q.; Chen, H.; Gan, Z.; Wang, C.; Li, X.; Tian, G.; Xie, L. MambaAD: Exploring state space models for multi-class unsupervised anomaly detection. In Proceedings of the Thirty-Eighth Annual Conference on Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 10–15 December 2024. [Google Scholar]
  19. Su, J.; Jiang, C.; Jin, X.; Qiao, Y.; Xiao, T.; Ma, H.; Wei, R.; Jing, Z.; Xu, J.; Lin, J. Large language models for forecasting and anomaly detection: A systematic literature review. arXiv 2024, arXiv:2402.10350. [Google Scholar]
  20. Tan, M.; Le, Q. EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the International Conference on Machine Learning (ICML), Long Beach, CA, USA, 9–15 June 2019; pp. 6105–6114. [Google Scholar]
  21. Liu, Z.; Zhou, Y.; Xu, Y.; Wang, Z. SimpleNet: A Simple Network for Image Anomaly Detection and Localization. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 20402–20411. [Google Scholar]
  22. Božič, J.; Fučka, M.; Zavrtanik, V.; Skočaj, D. Robustness of unsupervised methods for image surface-anomaly detection. Pattern Anal. Appl. 2025, 28, 99. [Google Scholar] [CrossRef] [Scilit]
  23. Abdalla, M.; Javed, S.; Al Radi, M.; Ulhaq, A.; Werghi, N. Survey on anomaly detection in surveillance videos. Neural Comput. Appl. 2025, 37, 26321–26364. [Google Scholar]
  24. Schmidhuber, J. Deep Learning in Neural Networks: An Overview. Neural Netw. 2015, 61, 85–117. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Bao, J.; Sun, H.; Deng, H.; He, Y.; Zhang, Z.; Li, X. BMAD: Benchmarks for Medical Anomaly Detection. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW); IEEE: New York, NY, USA, 2024; pp. 4042–4053. [Google Scholar]
  26. Hoang, D.C.; Tan, P.X.; Nguyen, A.N.; Ngo, D.H.; Cao, M.D.; Vu, M.Q.; Duong, H.N.; Nguyen, S.H.; Le, T.H.; Dang, V.V.; et al. MambaAlign: Alignment-aware state-space fusion for RGB-X industrial anomaly detection. J. Comput. Des. Eng. 2025, 13, 514–537. [Google Scholar] [CrossRef] [Scilit]
  27. Cao, Y.; Yao, H.; Luo, W.; Shen, W. VarAD: Lightweight high-resolution image anomaly detection via visual autoregressive modeling. IEEE Trans. Ind. Inform. 2025, 21, 3246–3255. [Google Scholar] [CrossRef] [Scilit]
  28. He, J.; Cao, M.; Peng, S.; Xie, Q. RareCLIP: Rarity-Aware Online Zero-Shot Industrial Anomaly Detection. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2025; pp. 24478–24487. [Google Scholar]
  29. Yi, J.; Yoon, S. Patch SVDD: Patch-level SVDD for Anomaly Detection and Segmentation. In Asian Conference on Computer Vision (ACCV); Springer International Publishing: Cham, Switzerland, 2020. [Google Scholar]
  30. Cao, Y.; Zhang, J.; Frittoli, L.; Cheng, Y.; Shen, W.; Boracchi, G. AdaCLIP: Adapting CLIP with Hybrid Learnable Prompts for Zero-Shot Anomaly Detection. In European Conference on Computer Vision (ECCV); Springer International Publishing: Cham, Switzerland, 2024; pp. 55–72. [Google Scholar]
  31. Luo, W.; Cao, Y.; Yao, H.; Zhang, X.; Lou, J.; Cheng, Y.; Shen, W.; Yu, W. Exploring intrinsic normal prototypes within a single image for universal anomaly detection. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2025. [Google Scholar]
  32. Sträter, L.P.; Salehi, M.; Gavves, E.; Snoek, C.G.; Asano, Y.M. GeneralAD: Anomaly detection across domains by attending to distorted features. In European Conference on Computer Vision (ECCV); Springer Nature: Cham, Switzerland, 2024; pp. 448–465. [Google Scholar]
  33. Chu, Y.M.; Chieh, L.; Hsieh, T.I.; Chen, H.T.; Liu, T.L. Shape-guided dual-memory learning for 3D anomaly detection. In Proceedings of the International Conference on Machine Learning (ICML), Honolulu, HI, USA, 23–29 July 2023; pp. 6185–6194. [Google Scholar]
  34. Yao, Y.; Wang, Q.; Zhao, D.; You, M.; Xiang, P.; Asano, Y.; Yu, X.; Wang, C.; Zhou, H.; Ren, J. DFBSNet: Dual frequency-domain branch fusion and selection network for hyperspectral anomaly detection. Pattern Recognit. 2026, 180, 113967. [Google Scholar] [CrossRef] [Scilit]
  35. You, M.; Yao, Y.; Zhao, D.; Zhao, Z.; Arun, P.V.; Wang, Y.; Zhou, H.; Chi, R. S3CRAD: Superpixel-guided background inpainting and spatial-spectral constrained representation for hyperspectral anomaly detection. Opt. Lasers Eng. 2026, 201, 109657. [Google Scholar] [CrossRef] [Scilit]
  36. Wu, L.; You, M.; Zhao, D.; Xu, X.; Yao, Y.; Vijayakumar, A.P.; Cheng, K.; Xiang, P. DSFNet: Dual-stream spatial-spectral fusion network for hyperspectral anomaly detection. Digit. Signal Process. 2026, 175, 106019. [Google Scholar] [CrossRef] [Scilit]
  37. Zhao, D.; Zhang, H.; Huang, K.; Zhu, X.; Arun, P.V.; Jiang, W.; Li, S.; Pei, X.; Zhou, H. SASU-Net: Hyperspectral video tracker based on spectral adaptive aggregation weighting and scale updating. Expert Syst. Appl. 2025, 272, 126721. [Google Scholar] [CrossRef] [Scilit]
  38. Nickel, M.; Kiela, D. Learning continuous hierarchies in the Lorentz model of hyperbolic geometry. In Proceedings of the International Conference on Machine Learning (ICML), Stockholm, Sweden, 10–15 July 2018; pp. 3779–3788. [Google Scholar]
  39. Lee, T.Y.; Nagai, Y.; Minezawa, A. Memory-Efficient and Gpu-Oriented Visual Anomaly Detection with Incremental Dimension Reduction. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 2907–2915. [Google Scholar]
  40. Zou, Y.; Jeong, J.; Pemula, L.; Zhang, D.; Dabeer, O. SPot-the-Difference Self-supervised Pre-training for Anomaly Detection and Segmentation. In European Conference on Computer Vision (ECCV); Springer Nature: Cham, Switzerland, 2022; pp. 392–408. [Google Scholar]
  41. Özgenel, Ç.F.; Sorguç, A.G. Performance Comparison of Pretrained Convolutional Neural Networks on Crack Detection in Buildings. In Proceedings of the 35th International Symposium on Automation and Robotics in Construction (ISARC 2018); International Association for Automation and Robotics in Construction (IAARC): Berlin, Germany, 2018; pp. 693–700. [Google Scholar]
  42. MathWorks Deep Learning Toolbox Team. PillQC: A Pill Quality Control Dataset. 2021. Available online: https://github.com/matlab-deep-learning/pillQC (accessed on 15 April 2026).
  43. Davis, J.; Goadrich, M. The Relationship between Precision-Recall and ROC Curves. In Proceedings of the 23rd International Conference on Machine Learning (ICML); Association for Computing Machinery: New York, NY, USA, 2006; pp. 233–240. [Google Scholar] [CrossRef] [Scilit]
  44. Saito, T.; Rehmsmeier, M. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLoS ONE 2015, 10, e0118432. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.