Abstract:
Surface defect detection technology plays an essential role in railway inspections by effectively preventing railway accidents and ensuring operational safety. This study addresses the issues of poor detection accuracy and low sensitivity to small targets in existing railway defect detection technologies. For the mask region-based convolutional neural network (Mask R-CNN) algorithm model, a model improvement scheme was proposed by incorporating an attention mechanism. This scheme introduces a Channel-wise Spatial Module (CSM) into the feature extraction network for segmentation defect detection, effectively eliminating interference, obtaining multiscale feature representations, and acquiring more spatial and shallow information, thereby enhancing the edge detection capability for surface defects on railway tracks. In the same experimental environment, compared with the Mask R-CNN algorithm, after adding the CSM, the mAP value of the Mask R-CNN model increased by 6.5%. Among them, the AP values for the recognition of “depression,” “crack,” and “fatigue wear” defects on railway tracks increased by 6.3%, 6.9%, and 6.1%, respectively. The horizontal segmentation effects of the three defects improved by 11.6%, 12.5%, and 12.9%, respectively, compared with the Faster R-CNN model, and the segmentation effects of the three defects enhanced by 8.8%, 10.0%, and 10.3%, respectively. This study demonstrates that the Mask R-CNN model with CSM can better recognize three types of defects, enhance the detection accuracy and sensitivity to small targets, provide more secure and robust technical support, and guarantee intelligent track inspection.