Peng Shi , Honghai Jiang , Xueqin Li , Xingwang Shang , Jiayu Jiang , Bo Huang , Ruoyu Zhao , Weibing Zhu
{"title":"基于RT-DETR改进算法的磁砖表面缺陷检测","authors":"Peng Shi , Honghai Jiang , Xueqin Li , Xingwang Shang , Jiayu Jiang , Bo Huang , Ruoyu Zhao , Weibing Zhu","doi":"10.1016/j.optlastec.2025.113956","DOIUrl":null,"url":null,"abstract":"<div><div>Advances in science and technology have led to an increased use of electric motors in various applications. The quality of magnetic tiles has a direct impact on the motor’s service life, underscoring the importance of detecting defects on the surface of these tiles. In order to address the challenges posed by the small dimensions, diverse shapes, and diminished contrast of magnetic tile defects, which result in suboptimal detection accuracy, frequent missed detections, and diminished efficiency of conventional detection methods, this paper proposes an enhanced algorithm based on RT-DETR and designs a magnetic tile surface defect detection system. In this enhanced algorithm, the conventional upsampling method is substituted by the Dysample in order to enhance the model’s capacity for retaining detail and its anti-aliasing capabilities, thus leading to an improvement in the accuracy of defect detection for small targets. Additionally, a DSBlock module, based on the DSConv, is proposed for integration into RepC3 with a view to enhancing the model’s ability to capture features at multiple scales. Furthermore, the RT-DETR loss function is substituted with WIoUv3 to address issues such as defect overlap, which can hinder the efficacy of defect detection. The experimental findings demonstrate that the AP, AP<sub>50</sub>, and AR<span><math><msub><mspace></mspace><mrow><mi>m</mi><mi>a</mi><mi>x</mi><mo>=</mo><mn>100</mn></mrow></msub></math></span> of the enhanced RT-DETR-DRW model are improved by 1.0 %, 1.6 %, and 1.7 %, respectively, in comparison with the baseline model. RT-DETR-DRW has been shown to outperform models such as YOLOv8l, RT-DETR-x and DFine-s in terms of detection accuracy and leakage for defect detection.</div></div>","PeriodicalId":19511,"journal":{"name":"Optics and Laser Technology","volume":"192 ","pages":"Article 113956"},"PeriodicalIF":5.0000,"publicationDate":"2025-09-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Surface defect detection of magnetic tile based on RT-DETR improved algorithm\",\"authors\":\"Peng Shi , Honghai Jiang , Xueqin Li , Xingwang Shang , Jiayu Jiang , Bo Huang , Ruoyu Zhao , Weibing Zhu\",\"doi\":\"10.1016/j.optlastec.2025.113956\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Advances in science and technology have led to an increased use of electric motors in various applications. The quality of magnetic tiles has a direct impact on the motor’s service life, underscoring the importance of detecting defects on the surface of these tiles. In order to address the challenges posed by the small dimensions, diverse shapes, and diminished contrast of magnetic tile defects, which result in suboptimal detection accuracy, frequent missed detections, and diminished efficiency of conventional detection methods, this paper proposes an enhanced algorithm based on RT-DETR and designs a magnetic tile surface defect detection system. In this enhanced algorithm, the conventional upsampling method is substituted by the Dysample in order to enhance the model’s capacity for retaining detail and its anti-aliasing capabilities, thus leading to an improvement in the accuracy of defect detection for small targets. Additionally, a DSBlock module, based on the DSConv, is proposed for integration into RepC3 with a view to enhancing the model’s ability to capture features at multiple scales. Furthermore, the RT-DETR loss function is substituted with WIoUv3 to address issues such as defect overlap, which can hinder the efficacy of defect detection. The experimental findings demonstrate that the AP, AP<sub>50</sub>, and AR<span><math><msub><mspace></mspace><mrow><mi>m</mi><mi>a</mi><mi>x</mi><mo>=</mo><mn>100</mn></mrow></msub></math></span> of the enhanced RT-DETR-DRW model are improved by 1.0 %, 1.6 %, and 1.7 %, respectively, in comparison with the baseline model. RT-DETR-DRW has been shown to outperform models such as YOLOv8l, RT-DETR-x and DFine-s in terms of detection accuracy and leakage for defect detection.</div></div>\",\"PeriodicalId\":19511,\"journal\":{\"name\":\"Optics and Laser Technology\",\"volume\":\"192 \",\"pages\":\"Article 113956\"},\"PeriodicalIF\":5.0000,\"publicationDate\":\"2025-09-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Optics and Laser Technology\",\"FirstCategoryId\":\"101\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0030399225015476\",\"RegionNum\":2,\"RegionCategory\":\"物理与天体物理\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"OPTICS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Optics and Laser Technology","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0030399225015476","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"OPTICS","Score":null,"Total":0}
引用次数: 0
摘要
科学技术的进步使电动机在各种应用中得到越来越多的使用。磁砖的质量直接影响电机的使用寿命,强调了检测磁砖表面缺陷的重要性。针对磁砖表面缺陷尺寸小、形状多样、对比度不高,导致传统检测方法检测精度不理想、漏检频繁、检测效率低下等问题,提出了一种基于RT-DETR的增强算法,设计了磁砖表面缺陷检测系统。在该增强算法中,为了增强模型的细节保留能力和抗混叠能力,用Dysample代替了传统的上采样方法,从而提高了小目标缺陷检测的精度。此外,提出了一个基于DSConv的DSBlock模块,用于集成到RepC3中,以增强模型在多尺度上捕获特征的能力。此外,将RT-DETR损失函数替换为WIoUv3来解决缺陷重叠等问题,这些问题会阻碍缺陷检测的有效性。实验结果表明,增强后的RT-DETR-DRW模型的AP、AP50和ARmax=100分别比基线模型提高了1.0%、1.6%和1.7%。rt - der - drw已被证明在检测精度和缺陷检测泄漏方面优于YOLOv8l, rt - der -x和DFine-s等模型。
Surface defect detection of magnetic tile based on RT-DETR improved algorithm
Advances in science and technology have led to an increased use of electric motors in various applications. The quality of magnetic tiles has a direct impact on the motor’s service life, underscoring the importance of detecting defects on the surface of these tiles. In order to address the challenges posed by the small dimensions, diverse shapes, and diminished contrast of magnetic tile defects, which result in suboptimal detection accuracy, frequent missed detections, and diminished efficiency of conventional detection methods, this paper proposes an enhanced algorithm based on RT-DETR and designs a magnetic tile surface defect detection system. In this enhanced algorithm, the conventional upsampling method is substituted by the Dysample in order to enhance the model’s capacity for retaining detail and its anti-aliasing capabilities, thus leading to an improvement in the accuracy of defect detection for small targets. Additionally, a DSBlock module, based on the DSConv, is proposed for integration into RepC3 with a view to enhancing the model’s ability to capture features at multiple scales. Furthermore, the RT-DETR loss function is substituted with WIoUv3 to address issues such as defect overlap, which can hinder the efficacy of defect detection. The experimental findings demonstrate that the AP, AP50, and AR of the enhanced RT-DETR-DRW model are improved by 1.0 %, 1.6 %, and 1.7 %, respectively, in comparison with the baseline model. RT-DETR-DRW has been shown to outperform models such as YOLOv8l, RT-DETR-x and DFine-s in terms of detection accuracy and leakage for defect detection.
期刊介绍:
Optics & Laser Technology aims to provide a vehicle for the publication of a broad range of high quality research and review papers in those fields of scientific and engineering research appertaining to the development and application of the technology of optics and lasers. Papers describing original work in these areas are submitted to rigorous refereeing prior to acceptance for publication.
The scope of Optics & Laser Technology encompasses, but is not restricted to, the following areas:
•development in all types of lasers
•developments in optoelectronic devices and photonics
•developments in new photonics and optical concepts
•developments in conventional optics, optical instruments and components
•techniques of optical metrology, including interferometry and optical fibre sensors
•LIDAR and other non-contact optical measurement techniques, including optical methods in heat and fluid flow
•applications of lasers to materials processing, optical NDT display (including holography) and optical communication
•research and development in the field of laser safety including studies of hazards resulting from the applications of lasers (laser safety, hazards of laser fume)
•developments in optical computing and optical information processing
•developments in new optical materials
•developments in new optical characterization methods and techniques
•developments in quantum optics
•developments in light assisted micro and nanofabrication methods and techniques
•developments in nanophotonics and biophotonics
•developments in imaging processing and systems