Abstract
Conventional anomaly detection methods typically rely on training normal samples without defects to identify deviations from the background. However, these methods suffer from issues such as missing-detection or false-detection. Although subsequent research has attempted to improve algorithm performance, this often results in overfitting to specific cases within the anomaly detection framework. To address these challenges, this paper proposes a semi-supervised anomaly detection algorithm that combines improved metric learning techniques with a memory bank update module. In order to enhance the algorithm's generalization capabilities across different cases, a multi-cases memory bank inheritance approach is introduced. This approach facilitates rapid generalization to unknown test cases with minimal iterative learning (≤5 epochs). Additionally, a bank-case matching module is designed to select the appropriate memory bank and calculate anomaly scores within our framework. The effectiveness of the proposed algorithm has been validated through real industrial tests and ablation experiments, demonstrating its capability in detecting anomalies accurately and reliably. Code is available on: https://github.com/FrankCloud-UESTC/Mnlti-case-AD.
Funding Information
  • National Key Research and Development Program of China (2024YFC3014900, 2022YFC3005003)