{"title":"YOLO-DFW:基于YOLOv8改进的印刷电路板表面缺陷检测方法","authors":"Yuhang Zhou , Xuemei Xu , Wenyuan Fan , ZhaoHui Jiang","doi":"10.1016/j.displa.2025.103201","DOIUrl":null,"url":null,"abstract":"<div><div>High-precision defect detection on printed circuit board (PCB) plays a crucial role in ensuring the productivity and safety of electronic products. However, traditional defect detection methods are difficult to meet the demand for detecting tiny targets and difficult samples in complex environments. To address this challenge, we proposed an improved detection algorithm, YOLO-DFW, based on YOLOv8 network. In our study, the DynamicConv (DC) improves the C2f module, which enhances the model’s ability to express different features through adaptive weighted convolution. We propose the Feature Focused Pyramid Network (FFPN) by reconstructing the original neck structure to enhance the model’s multi-scale feature fusion capability through cross-scale feature fusion, and the Context Enhancement Module (CEM) is introduced into FFPN to expand the model’s receptive field. What’s more, a new loss function named WMN-loss is proposed to make the model pay more attention to the difficult-to-classify and small bounding boxes by using a non-uniform loss allocation strategy. Through training and testing on the PCB surface defect dataset, our method achieves improvements of 2.2%, 2.4%, 2.6%, and 4.2% in precision, recall, mAP<sub>50</sub> (mean average precision), and mAP<sub>50:95</sub>, respectively, compared with the baseline model. Extensive experiments demonstrate the superiority of our method for PCB surface defect detection. Furthermore, comparison experiments on DeepPCB and NUE-DET datasets verify the feasibility and generalization of the YOLO-DFW detection algorithm.</div></div>","PeriodicalId":50570,"journal":{"name":"Displays","volume":"91 ","pages":"Article 103201"},"PeriodicalIF":3.4000,"publicationDate":"2025-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"YOLO-DFW: An improved detection method for printed circuit board surface defects based on YOLOv8\",\"authors\":\"Yuhang Zhou , Xuemei Xu , Wenyuan Fan , ZhaoHui Jiang\",\"doi\":\"10.1016/j.displa.2025.103201\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>High-precision defect detection on printed circuit board (PCB) plays a crucial role in ensuring the productivity and safety of electronic products. However, traditional defect detection methods are difficult to meet the demand for detecting tiny targets and difficult samples in complex environments. To address this challenge, we proposed an improved detection algorithm, YOLO-DFW, based on YOLOv8 network. In our study, the DynamicConv (DC) improves the C2f module, which enhances the model’s ability to express different features through adaptive weighted convolution. We propose the Feature Focused Pyramid Network (FFPN) by reconstructing the original neck structure to enhance the model’s multi-scale feature fusion capability through cross-scale feature fusion, and the Context Enhancement Module (CEM) is introduced into FFPN to expand the model’s receptive field. What’s more, a new loss function named WMN-loss is proposed to make the model pay more attention to the difficult-to-classify and small bounding boxes by using a non-uniform loss allocation strategy. Through training and testing on the PCB surface defect dataset, our method achieves improvements of 2.2%, 2.4%, 2.6%, and 4.2% in precision, recall, mAP<sub>50</sub> (mean average precision), and mAP<sub>50:95</sub>, respectively, compared with the baseline model. Extensive experiments demonstrate the superiority of our method for PCB surface defect detection. Furthermore, comparison experiments on DeepPCB and NUE-DET datasets verify the feasibility and generalization of the YOLO-DFW detection algorithm.</div></div>\",\"PeriodicalId\":50570,\"journal\":{\"name\":\"Displays\",\"volume\":\"91 \",\"pages\":\"Article 103201\"},\"PeriodicalIF\":3.4000,\"publicationDate\":\"2025-08-28\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Displays\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0141938225002380\",\"RegionNum\":2,\"RegionCategory\":\"工程技术\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Displays","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0141938225002380","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
YOLO-DFW: An improved detection method for printed circuit board surface defects based on YOLOv8
High-precision defect detection on printed circuit board (PCB) plays a crucial role in ensuring the productivity and safety of electronic products. However, traditional defect detection methods are difficult to meet the demand for detecting tiny targets and difficult samples in complex environments. To address this challenge, we proposed an improved detection algorithm, YOLO-DFW, based on YOLOv8 network. In our study, the DynamicConv (DC) improves the C2f module, which enhances the model’s ability to express different features through adaptive weighted convolution. We propose the Feature Focused Pyramid Network (FFPN) by reconstructing the original neck structure to enhance the model’s multi-scale feature fusion capability through cross-scale feature fusion, and the Context Enhancement Module (CEM) is introduced into FFPN to expand the model’s receptive field. What’s more, a new loss function named WMN-loss is proposed to make the model pay more attention to the difficult-to-classify and small bounding boxes by using a non-uniform loss allocation strategy. Through training and testing on the PCB surface defect dataset, our method achieves improvements of 2.2%, 2.4%, 2.6%, and 4.2% in precision, recall, mAP50 (mean average precision), and mAP50:95, respectively, compared with the baseline model. Extensive experiments demonstrate the superiority of our method for PCB surface defect detection. Furthermore, comparison experiments on DeepPCB and NUE-DET datasets verify the feasibility and generalization of the YOLO-DFW detection algorithm.
期刊介绍:
Displays is the international journal covering the research and development of display technology, its effective presentation and perception of information, and applications and systems including display-human interface.
Technical papers on practical developments in Displays technology provide an effective channel to promote greater understanding and cross-fertilization across the diverse disciplines of the Displays community. Original research papers solving ergonomics issues at the display-human interface advance effective presentation of information. Tutorial papers covering fundamentals intended for display technologies and human factor engineers new to the field will also occasionally featured.