Kiobya Twahir, Zhou Junfeng, Maiseli Baraka, Khan Maqbool
School of Computer Science and Technology, Donghua University, Shanghai, 201620, People's Republic of China.
College of Information and Communication Technologies, University of Dar es Salaam, P. O. Box 33335, Dar es Salaam, Tanzania.
Sci Rep. 2024 Aug 5;14(1):18124. doi: 10.1038/s41598-024-69207-8.
Printed Circuit Boards (PCBs) are key devices for the modern-day electronic technologies. During the production of these boards, defects may occur. Several methods have been proposed to detect PCB defects. However, detecting significantly smaller and visually unrecognizable defects has been a long-standing challenge. The existing two-stage and multi-stage object detectors that use only one layer of the backbone, such as Resnet's third layer ( ) or fourth layer ( ), suffer from low accuracy, and those that use multi-layer feature maps extractors, such as Feature Pyramid Network (FPN), incur higher computational cost. Founded by these challenges, we propose a robust, less computationally intensive, and plug-and-play Attentive Context and Semantic Enhancement Module (ACASEM) for two-stage and multi-stage detectors to enhance PCB defects detection. This module consists of two main parts, namely adaptable feature fusion and attention sub-modules. The proposed model, ACASEM, takes in feature maps from different layers of the backbone and fuses them in a way that enriches the resulting feature maps with more context and semantic information. We test our module with state-of-the-art two-stage object detectors, Faster R-CNN and Double-Head R-CNN, and with multi-stage Cascade R-CNN detector on DeepPCB and Augmented PCB Defect datasets. Empirical results demonstrate improvement in the accuracy of defect detection.
印刷电路板(PCBs)是现代电子技术的关键器件。在这些电路板的生产过程中,可能会出现缺陷。已经提出了几种方法来检测印刷电路板缺陷。然而,检测明显更小且肉眼无法识别的缺陷一直是一个长期存在的挑战。现有的仅使用主干网络一层(如Resnet的第三层( )或第四层( ))的两阶段和多阶段目标检测器,存在准确率低的问题,而那些使用多层特征图提取器(如特征金字塔网络(FPN))的检测器则会产生更高的计算成本。基于这些挑战,我们为两阶段和多阶段检测器提出了一种强大的、计算量较小的即插即用式注意力上下文和语义增强模块(ACASEM),以增强印刷电路板缺陷检测。该模块由两个主要部分组成,即可适应特征融合和注意力子模块。所提出的模型ACASEM接收来自主干网络不同层的特征图,并以一种用更多上下文和语义信息丰富所得特征图的方式将它们融合。我们在DeepPCB和增强型印刷电路板缺陷数据集上,使用先进的两阶段目标检测器Faster R-CNN和双头R-CNN,以及多阶段级联R-CNN检测器对我们的模块进行了测试。实证结果表明缺陷检测准确率有所提高。