Real-time recognition of weld defects based on visible spectral image and machine learning
The quality of Tungsten Inert Gas welding is dependent on human supervision, which can’t suitable for automation. This study designed a model for assessing the tungsten inert gas welding quality with the potential of application in real-time. The model used the K-Nearest Neighborhood (KNN) algorithm, paired with images in the visible spectrum formed by high dynamic range camera. Firstly, projecting the image of weld defects in the training set into a two-dimensional space using multidimensional scaling (MDS), so similar weld defects was aggregated into blocks and distributed in hash, and among different weld defects has overlap. Secondly, establishing models including the KNN, CNN, SVM, CART and NB classification, to classify and recognize the weld defect images. The results show that the KNN model is the best, which has the recognition accuracy of 98%, and the average time of recognizing a single image of 33ms, and suitable for common hardware devices. It can be applied to the image recognition system of automatic welding robot to improve the intelligent level of welding robot.