Adaptation Strategies for Few-shot Industrial Defect Image Classification
Abstract
In the current industrial era, artificial intelligence is gradually integrated into various industries, bringing more possibilities to production. In industrial manufacturing, surface defect detection is a key part of product quality control, but there are still problems of unsatisfactory efficiency. Therefore, this paper compares the performance of five adaptation strategies, including Linear Probing (LP) and Full Fine-tuning (FT), in small-sample industrial defect detection through the transfer learning framework based on ImageNet pre-trained ResNet18, aiming to provide method guidance for small-sample industrial defect detection under different sample data volumes. On the NEU-DET dataset, the prototype network is the best when the sample size is extremely small, and the accuracy of full fine-tuning reaches the highest 89.28% when the sample size is 5-shot and above, and the low-rank adaptive method only achieves 96.4% of the full fine-tuning performance with only 0.73% of the trainable parameters. DAGM 2007 Class 10 cross-dataset validation shows that full fine-tuning still maintains its advantage.
References
- Zhang, X. (2025). Industrial defect detection method based on small sample learning (Master's thesis). Harbin Institute of Technology.
- Chen, Z., Feng, X., Liu, L., & Jia, Z. (2023). Surface defect detection of industrial components based on vision. Scientific Reports, 13(1), 22136.
- Liu, L., & Kuang, G. (2009). Overview of image texture feature extraction methods. Journal of Image and Graphics, 14(04), 622–635.
- Zhuang, F., Luo, P., He, Q., & Shi, Z. (2015). Research progress of transfer learning. Journal of Software, 26(1), 14–39.
- Huang, M., & Yang, J. (2025). Efficient fine tuning of visual large model parameters for steel surface defect image segmentation. Mechanical Manufacturing, 63(5).
- Zeng, T., Chen, J., Xie, J., Pan, X., & Zhang, W. (2025). Intelligent identification method of generator carbon brush ignition in small hydropower station based on YOLOv11 full parameter fine tuning. Small Hydropower, 47(1), 13–17.
- Chen, W. Y., Liu, Y. C., Kira, Z., Wang, Y. C. F., & Huang, J. B. (2019). A closer look at few-shot classification. Paper presented at the International Conference on Learning Representations (ICLR), New Orleans, LA.
- Yosinski, J., Clune, J., Bengio, Y., & Lipson, H. (2014). How transferable are features in deep neural networks? In Advances in Neural Information Processing Systems (Vol. 27, pp. 3320–3328). Curran Associates, Inc.
- Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., & Chen, Weizhu. (2022). LoRA: Low-rank adaptation of large language models. Paper presented at the International Conference on Learning Representations (ICLR).
- Song, K., & Yan, Y. (2013). A noise robust method based on completed local binary patterns for hot-rolled steel strip surface defects. Applied Surface Science, 285, 858–864.
- DAGM. (2007). DAGM GCPR 2007 workshop dynamic vision and pattern recognition competition.