Research Article

A Novel Defect Segmentation Model via Integrating Enhanced U-Net with Convolutional Block Attention Mechanisms

Junyi Zhang*
Guangzhou Institute of Science and Technology, Guangdong, China

* Corresponding author: [email protected]

Abstract

Defect segmentation in industrial quality control is pivotal for maintaining high product surface standards, but it remains a challenge due to complex defect patterns and varying backgrounds. Traditional segmentation methods often struggle with sensitivity and specificity, leading to either missed defects or false positives. In order to address the above issues this paper presents an advanced defect segmentation model that integrates a Convolutional Block Attention Module (CBAM) with an enhanced U-Net architecture. Our method leverages the spatial and channel-wise attention mechanisms to focus more accurately on subtle defects and remove background interference, enhancing the discriminative power of the feature maps generated by the U-Net. Experimental results on SD-saliency-900 industrial datasets demonstrate significant improvements in segmentation accuracy and robustness compared to existing state-of-the-art methods, confirming the effectiveness of integrating attention mechanisms in deep learning models for complex defect segmentation tasks. Specifically, our model achieved a mean Intersection over Union (mIoU) of 0.87, which is an increase of 5% over the traditional U-Net model and a 4% improvement compared to the DeepLabv3+ model. These results indicate a substantial enhancement in defect detection performance, validating the superiority of our approach.

Keywords: Attention mechanism; Defect Segmentation; CBAM.
Published: November 8, 2024
DOI: 10.54254/2755-2721/103/20241202
Volume: ACE Vol.103
pp. 178-190
Download PDF

References

  1. Woo S, Park J, Lee J Y, et al. Cbam: Convolutional block attention module[C]//Proceedings of the European conference on computer vision (ECCV). 2018: 3-19.
  2. Geng Z, Shi C, Han Y. Intelligent small sample defect detection of water walls in power plants using novel deep learning integrating deep convolutional GAN[J]. IEEE Transactions on Industrial Informatics, 2022, 19(6): 7489-7497.
  3. Wang P, Fan E, Wang P. Comparative analysis of image classification algorithms based on traditional machine learning and deep learning[J]. Pattern recognition letters, 2021, 141: 61-67.
  4. Lai Y. A comparison of traditional machine learning and deep learning in image recognition[C]//Journal of Physics: Conference Series. IOP Publishing, 2019, 1314(1): 012148.
  5. Abdellatef E, Omran E M, Soliman R F, et al. Fusion of deep-learned and hand-crafted features for cancelable recognition systems[J]. Soft Computing, 2020, 24: 15189-15208.
  6. Ronneberger O, Fischer P, Brox T. U-net: Convolutional networks for biomedical image segmentation[C]//Medical image computing and computer-assisted intervention–MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18. Springer International Publishing, 2015: 234-241.
  7. Deng L, Yu D. Deep learning: methods and applications[J]. Foundations and trends® in signal processing, 2014, 7(3–4): 197-387.
  8. Badrinarayanan V, Kendall A, Cipolla R. Segnet: A deep convolutional encoder-decoder architecture for image segmentation[J]. IEEE transactions on pattern analysis and machine intelligence, 2017, 39(12): 2481-2495.
  9. Chen L C, Papandreou G, Kokkinos I, et al. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs[J]. IEEE transactions on pattern analysis and machine intelligence, 2017, 40(4): 834-848.
  10. Yin M, Chen Z, Zhang C. A CNN-Transformer Network Combining CBAM for Change Detection in High-Resolution Remote Sensing Images[J]. Remote Sensing, 2023, 15(9): 2406.
  11. Chen B, Zhang Z, Liu N, et al. Spatiotemporal convolutional neural network with convolutional block attention module for micro-expression recognition[J]. Information, 2020, 11(8): 380.
  12. Hegde R B, Prasad K, Hebbar H, et al. Comparison of traditional image processing and deep learning approaches for classification of white blood cells in peripheral blood smear images[J]. Biocybernetics and Biomedical Engineering, 2019, 39(2): 382-392.
  13. Cervantes J, Garcia-Lamont F, Rodríguez-Mazahua L, et al. A comprehensive survey on support vector machine classification: Applications, challenges and trends[J]. Neurocomputing, 2020, 408: 189-215.
  14. Bansal M, Goyal A, Choudhary A. A comparative analysis of K-nearest neighbor, genetic, support vector machine, decision tree, and long short term memory algorithms in machine learning[J]. Decision Analytics Journal, 2022, 3: 100071.
  15. Lu P, **g J, Huang Y. MRD-net: An effective CNN-based segmentation network for surface defect detection[J]. IEEE Transactions on Instrumentation and Measurement, 2022, 71: 1-12.
  16. Wang W, Tan X, Zhang P, et al. A CBAM based multiscale transformer fusion approach for remote sensing image change detection[J]. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2022, 15: 6817-6825.
  17. Azevedo B F, Rocha A M A C, Pereira A I. Hybrid approaches to optimization and machine learning methods: a systematic literature review[J]. Machine Learning, 2024: 1-43.
  18. Tabernik D, Šela S, Skvarč J, et al. Segmentation-based deep-learning approach for surface-defect detection[J]. Journal of Intelligent Manufacturing, 2020, 31(3): 759-776.
  19. Yu S, Wickstrøm K, Jenssen R, et al. Understanding convolutional neural networks with information theory: An initial exploration[J]. IEEE transactions on neural networks and learning systems, 2020, 32(1): 435-442.
  20. Zhou D X. Theory of deep convolutional neural networks: Downsampling[J]. Neural Networks, 2020, 124: 319-327.
  21. Dai Y, Lu H, Shen C. Learning affinity-aware upsampling for deep image matting[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2021: 6841-6850.
  22. Pillai S, Vadakkepat P. Two stage deep learning for prognostics using multi-loss encoder and convolutional composite features[J]. Expert Systems with Applications, 2021, 171: 114569.
  23. Jadon S. A survey of loss functions for semantic segmentation[C]//2020 IEEE conference on computational intelligence in bioinformatics and computational biology (CIBCB). IEEE, 2020: 1-7.
  24. Patel V, Zhang S, Tian B. Global convergence and stability of stochastic gradient descent[J]. Advances in Neural Information Processing Systems, 2022, 35: 36014-36025.
  25. Jiang X, Yan F, Lu Y, et al. Joint attention-guided feature fusion network for saliency detection of surface defects[J]. IEEE Transactions on Instrumentation and Measurement, 2022, 71: 1-12.
  26. Gajjar A N, Jethva J. Intersection over Union based analysis of Image detection/segmentation using CNN model[C]//2022 Second International Conference on Power, Control and Computing Technologies (ICPC2T). IEEE, 2022: 1-6.
  27. Tang Y, Zhang X, Li X, et al. Application of a new image segmentation method to detection of defects in castings[J]. The International Journal of Advanced Manufacturing Technology, 2009, 43(5): 431-439.
  28. Luo Q, Su J, Yang C, et al. CAT-EDNet: Cross-attention transformer-based encoder–decoder network for salient defect detection of strip steel surface[J]. IEEE Transactions on Instrumentation and Measurement, 2022, 71: 1-13.
  29. Jiang X, Yan F, Lu Y, et al. Joint attention-guided feature fusion network for saliency detection of surface defects[J]. IEEE Transactions on Instrumentation and Measurement, 2022, 71: 1-12.
  30. Qu L, Liu S, Liu X, et al. Towards label-efficient automatic diagnosis and analysis: a comprehensive survey of advanced deep learning-based weakly-supervised, semi-supervised and self-supervised techniques in histopathological image analysis[J]. Physics in Medicine & Biology, 2022, 67(20): 20TR01.