Research Article

Research on metal image defect detection based on convolutional neural network, random forest model and support vector machine model

Yi Tao*
Henan University of Economics and Law

* Corresponding author: [email protected]

Abstract

Metal image defect detection is a very important task, which can help manufacturers to detect defects in metal products in time during the production process, so as to improve product quality and production efficiency. This paper presents a private dataset containing images of six different types of metal surface defects, including scratches, pits, indentations, bubbles, oil stains, and aluminum surface defects. The dataset contains 1800 images, 300 images for each defect type, each with a size of 200x200 pixels. The dataset is divided into training, validation and test sets in the ratio of 6:2:2. By using Support Vector Machine Model, Random Forest Model and Convolutional Neural Network Model for prediction, we obtained the following results: the Support Vector Machine Model has the best prediction ability with 89% accuracy; the Random Forest Model has 69% accuracy; and the Convolutional Neural Network Model has poor prediction ability with 26% accuracy. From these results, it can be seen that the support vector machine model is one of the most suitable models for defect detection in metal images. This model can effectively identify various defects on metal surfaces, thus helping manufacturers to better control the quality of their products. In comparison, the predictive power of the Random Forest model is weak, but it can still be used for some simple metal image defect detection tasks. The convolutional neural network model has the worst predictive ability, but it is widely used in other fields, such as image recognition and speech recognition. In conclusion, metal image defect detection is a very important task, which can help manufacturers find the defects of metal products in the production process in time, so as to improve product quality and production efficiency. In practical applications, we can choose different algorithms and models to realize metal image defect detection in order to get the best results.

Keywords: CNN; Machine learning algorithms; SVM
Published: March 15, 2024
DOI: 10.54254/2755-2721/45/20241670
Volume: ACE Vol.45
pp. 312-318
Download PDF

References

  1. Zhao L ,Zheng Y ,Peng T , et al.Metal Surface Defect Detection Based on a Transformer with Multi-Scale Mask Feature Fusion[J].Sensors,2023,23(23):
  2. Yiming G ,Yiyang S ,Jie W , et al.Superior Electromechanical Compatibility in Lead-Free Piezoceramics with Mobile Transition-Metal Defects.[J].ACS applied materials interfaces,2023,
  3. Meng S ,Lijian Y ,Songwei G , et al.Metal Surface Defect Detection Method Based on TE01 Mode Microwave[J].Sensors,2022,22(13):4848-4848.
  4. Ihor K ,Pavlo M ,Janette B , et al.Research of U-Net-Based CNN Architectures for Metal Surface Defect Detection[J].Machines,2022,10(5):327-327.
  5. Kun W ,Zixuan T ,Tengyue Z .Metal Defect Detection Based on Yolov5[J].Journal of Physics: Conference Series,2022,2218(1):
  6. V. V P ,S. E D .Testing for Defects in Pulsed Magnetic Field Transmitted Through Metal[J].Russian Journal of Nondestructive Testing,2022,57(10):856-864.
  7. Yiming X ,Kai Z ,Li W .Metal Surface Defect Detection Using Modified YOLO[J].Algorithms,2021,14(9):257-257.
  8. I N G ,A N K ,A A B , et al.Research of the occurrence and development of metal defects in sulfide stress cracking inducing environment[J].IOP Conference Series: Materials Science and Engineering,2021,1129(1):
  9. Chowdary D S ,Sudhakar M . Multi-objective Floorplanning optimization engaging dynamic programming for system on chip[J]. Microelectronics Journal,2023,140.
  10. JinPei D ,WenHua C ,HsienChang K , et al.Efficient small toxic gaseous molecule scavengers in metal‐defective graphene: A density functional analysis[J].Journal of the Chinese Chemical Society,2021,68(3):517-521.