Bilal Muhammad, Hanif Muhammad Shehzad
Department of Electrical and Computer Engineering, College of Engineering, King Abdulaziz University, Jeddah 21589, Saudi Arabia.
Center of Excellence in Intelligent Engineering Systems (CEIES), King Abdulaziz University, Jeddah 21589, Saudi Arabia.
Sensors (Basel). 2025 Aug 7;25(15):4853. doi: 10.3390/s25154853.
Anomaly detection in industrial imaging is critical for ensuring quality and reliability in automated manufacturing processes. While recently several methods have been reported in the literature that have demonstrated impressive detection performance on standard benchmarks, they necessarily rely on computationally intensive CNN architectures and post-processing techniques, necessitating access to high-end GPU hardware and limiting practical deployment in resource-constrained settings. In this study, we introduce a novel anomaly detection framework that leverages feature maps from a lightweight convolutional neural network (CNN) backbone, MobileNetV2, and cascaded detection to achieve notable accuracy as well as computational efficiency. The core of our method consists of two main components. First is a PCA-based anomaly detection module that specifically exploits near-zero variance features. Contrary to traditional PCA methods, which tend to focus on the high-variance directions that encapsulate the dominant patterns in normal data, our approach demonstrates that the lower variance directions (which are typically ignored) form an approximate null space where normal samples project near zero. However, the anomalous samples, due to their inherent deviations from the norm, lead to projections with significantly higher magnitudes in this space. This insight not only enhances sensitivity to true anomalies but also reduces computational complexity by eliminating the need for operations such as matrix inversion or the calculation of Mahalanobis distances for correlated features otherwise needed when normal behavior is modeled as Gaussian distribution. Second, our framework consists of a cascaded multi-stage decision process. Instead of combining features across layers, we treat the local features extracted from each layer as independent stages within a cascade. This cascading mechanism not only simplifies the computations at each stage by quickly eliminating clear cases but also progressively refines the anomaly decision, leading to enhanced overall accuracy. Experimental evaluations on MVTec and VisA benchmark datasets demonstrate that our proposed approach achieves superior anomaly detection performance (99.4% and 91.7% AUROC respectively) while maintaining a lower computational overhead compared to other methods. This framework provides a compelling solution for practical anomaly detection challenges in diverse application domains where competitive accuracy is needed at the expense of minimal hardware resources.
工业成像中的异常检测对于确保自动化制造过程的质量和可靠性至关重要。虽然最近文献中报道了几种方法,这些方法在标准基准测试中表现出了令人印象深刻的检测性能,但它们必然依赖于计算密集型的卷积神经网络(CNN)架构和后处理技术,这需要使用高端GPU硬件,并且限制了在资源受限环境中的实际部署。在本研究中,我们引入了一种新颖的异常检测框架,该框架利用轻量级卷积神经网络(CNN)主干MobileNetV2的特征图和级联检测来实现显著的准确性以及计算效率。我们方法的核心由两个主要组件组成。首先是基于主成分分析(PCA)的异常检测模块,它专门利用接近零方差的特征。与传统的PCA方法不同,传统PCA方法倾向于关注封装正常数据中主导模式的高方差方向,我们的方法表明较低方差方向(通常被忽略)形成了一个近似零空间,正常样本在该空间中的投影接近零。然而,异常样本由于其与规范的固有偏差,在这个空间中会导致幅度明显更高的投影。这一见解不仅提高了对真正异常的敏感性,还通过消除诸如矩阵求逆或计算相关特征的马氏距离等操作(否则在将正常行为建模为高斯分布时需要这些操作)来降低计算复杂度。其次,我们的框架由一个级联的多阶段决策过程组成。我们不是跨层组合特征,而是将从每层提取的局部特征视为级联中的独立阶段。这种级联机制不仅通过快速排除明确的情况简化了每个阶段的计算,还逐步完善异常决策,从而提高了整体准确性。在MVTec和VisA基准数据集上的实验评估表明,与其他方法相比,我们提出的方法在保持较低计算开销的同时,实现了卓越的异常检测性能(分别为99.4%和91.7%的AUROC)。该框架为各种应用领域中实际的异常检测挑战提供了一个引人注目的解决方案,在这些领域中需要以最少的硬件资源为代价实现具有竞争力的准确性。