Abstract: In order to solve the problems of low efficiency and high security risks of manual sorting in steel scrap recycling scenarios, a steel scrap classification and instance segmentation model was established based on the improved YOLOv5s-seg algorithm, aiming to replace manual sorting with computer vision technology. Convolutional block attention module (CBAM) was introduced into the backbone network to emphasize the characteristics of steel scrap. At the same time, the complete intersection over union (CIOU) loss function in the original network was replaced by efficient intersection over union (EIOU) to accelerate the convergence speed. The offline data enhancement algorithm was used to enhance the images collected from the steel scrap mill, and the models before and after the improvement were trained and verified. The results show that the average detection accuracy of the improved YOLOv5s-seg steel scrap classification and instance segmentation model for boundary box and mask reaches 98% and 96%, respectively, which is 5% and 3% higher than that of the original model; the average accuracy for all categories reaches 96.5%, an increase of 5.8% compared with the original model. In addition, the improved model has excellent detection performance compared with other classical instance segmentation models. The proposed algorithm has a good application prospect.
Keywords: steel recycling materials; steel scrap classification; instance segmentation; attention mechanism; loss function