Open Access
ARTICLE
Lightweight Small Defect Detection with YOLOv8 Using Cascaded Multi-Receptive Fields and Enhanced Detection Heads
Department of Information and Communication Engineering, Beijing Information Science and Technology University, Beijing, 102206, China
* Corresponding Author: Zhensong Li. Email:
Computers, Materials & Continua 2026, 86(1), 1-14. https://doi.org/10.32604/cmc.2025.068138
Received 21 May 2025; Accepted 27 August 2025; Issue published 10 November 2025
Abstract
In printed circuit board (PCB) manufacturing, surface defects can significantly affect product quality. To address the performance degradation, high false detection rates, and missed detections caused by complex backgrounds in current intelligent inspection algorithms, this paper proposes CG-YOLOv8, a lightweight and improved model based on YOLOv8n for PCB surface defect detection. The proposed method optimizes the network architecture and compresses parameters to reduce model complexity while maintaining high detection accuracy, thereby enhancing the capability of identifying diverse defects under complex conditions. Specifically, a cascaded multi-receptive field (CMRF) module is adopted to replace the SPPF module in the backbone to improve feature perception, and an inverted residual mobile block (IRMB) is integrated into the C2f module to further enhance performance. Additionally, conventional convolution layers are replaced with GSConv to reduce computational cost, and a lightweight Convolutional Block Attention Module based Convolution (CBAMConv) module is introduced after Grouped Spatial Convolution (GSConv) to preserve accuracy through attention mechanisms. The detection head is also optimized by removing medium and large-scale detection layers, thereby enhancing the model’s ability to detect small-scale defects and further reducing complexity. Experimental results show that, compared to the original YOLOv8n, the proposed CG-YOLOv8 reduces parameter count by 53.9, improves mAP@0.5 by 2.2, and increases precision and recall by 2.0 and 1.8, respectively. These improvements demonstrate that CG-YOLOv8 offers an efficient and lightweight solution for PCB surface defect detection.Keywords
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools