Lv Cheng, Zhang Enxu, Qi Guowei, Li Fei, Huo Jiaofei
School of Mechanical Engineering, Xijing University, Xi'an, 710123, China.
Sci Rep. 2024 Sep 19;14(1):21872. doi: 10.1038/s41598-024-70570-9.
In modern industrial production, permanent magnet motors are an indispensable part of industrial manufacturing. The quality of the magnetic tiles directly affects the working performance of the permanent magnet motors, making the detection of defects on the surface of magnetic tiles critically important. However, due to the small size of defects on the tile image and the reflectivity of the defective surface, the details of image characteristics are not prominently acquired.These problems bring a lot of difficulties for the recognition of magnetic tile defects. In this paper, a magnetic tile defect detection method is proposed for the probAlems of unclear image features and small defects. First, the image is processed using linear variation to enhance the image detail features. Then, by introducing the inverted bottleneck block structure in MobileNetV2, the Attention Parallel Residual Convolution Block (APR) is proposed, and the Lightweight Parallel Attention Residual Network (LPAR-Net) is built. In APR Block, 7 × 7 convolution is introduced so that the model can extract spatial features from a larger range, and weighted fusion of input images by residual structure. In addition, in this paper, CBAM is improved, split into two parts and inserted into APR Block. Finally, the mainstream image classification models and the LPAR-Net proposed in this paper are used for comparison, respectively. The experimental results show that the method achieves 93.63% accuracy on the adopted dataset, which is better than the existing mainstream image classification network models DenseNet, MobileNet, ConvNext and so on. In addition, this paper introduces a strip steel surface defect dataset and compares it with the above image classification model, which verifies that the detection method proposed in this paper still has strong recognition capability.
在现代工业生产中,永磁电机是工业制造不可或缺的一部分。磁瓦的质量直接影响永磁电机的工作性能,因此磁瓦表面缺陷检测至关重要。然而,由于磁瓦图像上缺陷尺寸小且缺陷表面有反射率,图像特征细节难以突出获取。这些问题给磁瓦缺陷识别带来诸多困难。针对图像特征不清晰和缺陷小的问题,本文提出一种磁瓦缺陷检测方法。首先,利用线性变换对图像进行处理以增强图像细节特征。然后,通过引入MobileNetV2中的倒置瓶颈块结构,提出注意力并行残差卷积块(APR),构建轻量级并行注意力残差网络(LPAR-Net)。在APR块中,引入7×7卷积,使模型能从更大范围提取空间特征,并通过残差结构对输入图像进行加权融合。此外,本文对CBAM进行改进,将其拆分为两部分并插入APR块。最后,分别使用主流图像分类模型和本文提出的LPAR-Net进行比较。实验结果表明,该方法在所采用的数据集上准确率达到93.63%,优于现有的主流图像分类网络模型DenseNet、MobileNet、ConvNext等。此外,本文引入带钢表面缺陷数据集并与上述图像分类模型进行比较,验证了本文提出的检测方法仍具有较强的识别能力。