Open Access iconOpen Access

ARTICLE

crossmark

Lightweight Small Defect Detection with YOLOv8 Using Cascaded Multi-Receptive Fields and Enhanced Detection Heads

Shengran Zhao, Zhensong Li*, Xiaotan Wei, Yutong Wang, Kai Zhao

Department of Information and Communication Engineering, Beijing Information Science and Technology University, Beijing, 102206, China

* Corresponding Author: Zhensong Li. Email: email

Computers, Materials & Continua 2026, 86(1), 1-14. https://doi.org/10.32604/cmc.2025.068138

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

YOLOv8n; PCB surface defect detection; lightweight model; small object detection

Cite This Article

APA Style
Zhao, S., Li, Z., Wei, X., Wang, Y., Zhao, K. (2026). Lightweight Small Defect Detection with YOLOv8 Using Cascaded Multi-Receptive Fields and Enhanced Detection Heads. Computers, Materials & Continua, 86(1), 1–14. https://doi.org/10.32604/cmc.2025.068138
Vancouver Style
Zhao S, Li Z, Wei X, Wang Y, Zhao K. Lightweight Small Defect Detection with YOLOv8 Using Cascaded Multi-Receptive Fields and Enhanced Detection Heads. Comput Mater Contin. 2026;86(1):1–14. https://doi.org/10.32604/cmc.2025.068138
IEEE Style
S. Zhao, Z. Li, X. Wei, Y. Wang, and K. Zhao, “Lightweight Small Defect Detection with YOLOv8 Using Cascaded Multi-Receptive Fields and Enhanced Detection Heads,” Comput. Mater. Contin., vol. 86, no. 1, pp. 1–14, 2026. https://doi.org/10.32604/cmc.2025.068138



cc 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.
  • 914

    View

  • 446

    Download

  • 0

    Like

Share Link