Detection and classification of surface defects of gun barrels using computer vision and machine learning

Abstract This work proposes a machine vision based approach for the detection and classification of the surface defects such as normal wear, corrosive pitting, rust and erosion that are usually present in used gun barrels. Surface images containing the defective regions of several used gun barrels were captured in a non-destructive manner using a Charge-Coupled Device (CCD) camera attached with a miniature microscopic probe. Among the captured images, normal wear appeared as bright and the rest of the three defects appeared as dark. Therefore, the classification has been carried out in two stages. Various segmentation methods were tested and extended maxima transform gave the best result. The defective area was calculated in metric units. Multiple textural features based on histogram and gray level co-occurrence matrix were extracted from the segmented images and ranked them automatically using the sequential forward feature selection method in order to select the best minimal features for the classification purpose. Many classifiers based on Bayes, k-Nearest Neighbor, Artificial Neural Network and Support Vector Machine (SVM) were tested and the results demonstrated the efficacy of SVM for this application. All these steps were carried out at six different scales of image sizes and the best scale was selected for the entire analysis based on the segmentation and classification accuracy. The introduction of this Gaussian scale spacing concept could reduce the computation without compromising on the accuracy. Overall, the methodology forms a novel framework for surface defect detection and classification that has a potential to automate the inspection process.

[1]  Corinna Cortes,et al.  Support-Vector Networks , 1995, Machine Learning.

[2]  Robert S. Montgomery Friction and wear at high sliding speeds , 1976 .

[3]  Chih-Jen Lin,et al.  LIBSVM: A library for support vector machines , 2011, TIST.

[4]  Pierre Soille,et al.  Morphological Image Analysis , 1999 .

[5]  Ahmad Said Tolba,et al.  Fast defect detection in homogeneous flat surface products , 2011, Expert Syst. Appl..

[6]  Ron Kohavi,et al.  A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection , 1995, IJCAI.

[7]  José R. Perán,et al.  Automated visual classification of frequent defects in flat steel coils , 2011 .

[8]  Xiang Zhang,et al.  Automatic classification of defects on the product surface in grinding and polishing , 2006 .

[9]  Nicola Ancona,et al.  Filter-based feature selection for rail defect detection , 2004 .

[10]  B. Lawton,et al.  Thermo-chemical erosion in gun barrels , 2001 .

[11]  Wei-Chen Li,et al.  Flaw detection of cylindrical surfaces in PU-packing by using machine vision technique , 2009 .

[12]  Gianni Bidini,et al.  A non-conventional quality control system to detect surface faults in mechanical front seals , 2008, Eng. Appl. Artif. Intell..

[13]  T. Lindeberg,et al.  Scale-Space Theory : A Basic Tool for Analysing Structures at Different Scales , 1994 .

[14]  Pierre Soille,et al.  Morphological Image Analysis: Principles and Applications , 2003 .

[15]  Chern-Sheng Lin,et al.  The feature extraction and analysis of flaw detection and classification in BGA gold-plating areas , 2008, Expert Syst. Appl..

[16]  Yih-Chih Chiou,et al.  Intelligent segmentation method for real-time defect inspection system , 2010, Comput. Ind..

[17]  N. Otsu A threshold selection method from gray level histograms , 1979 .

[18]  Erhardt Barth,et al.  Novelty detection for the inspection of light-emitting diodes , 2012, Expert Syst. Appl..

[19]  U. Natarajan,et al.  Vision inspection system for the identification and classification of defects in MIG welding joints , 2012 .

[20]  Robert Tibshirani,et al.  Spectral Regularization Algorithms for Learning Large Incomplete Matrices , 2010, J. Mach. Learn. Res..

[21]  V. Sugumaran,et al.  Machine learning approach for automated visual inspection of machine components , 2011, Expert Syst. Appl..

[22]  Te-Hsiu Sun,et al.  Electric contacts inspection using machine vision , 2010, Image Vis. Comput..