Abstract
Capacitors are essential in industrial applications due to their ability to store and release electrical energy rapidly. However, capacitors, with their complex manufacturing processes and heterogeneous characteristics, pose two critical challenges to conventional detection algorithms: 1) the difficulty in detecting small-scale defects amid multiscale defect variations and 2) the inherently imbalanced distribution of defects. To address these issues, the GDTS-YOLOv8 detection framework is introduced, which leverages a gather-and-distribute (GD) mechanism and a two-stage self-fine-tuning (TS) strategy with a frozen backbone. First, GD is constructed to enhance the efficiency of multiscale feature extraction and fusion in the YOLOv8 feature fusion layer. Centered on optimizing cross-level information exchange and reducing information loss, this mechanism can effectively address the issue of poor detection performance for small targets in multiscale scenarios. Second, TS is proposed to address the inherent imbalance problem, comprising: 1) a rare-defect upweighting pretraining stage with label reduction of frequent defects and 2) a full-data fine-tuning stage integrating label reintroduction of frequent defects with backbone freezing for optimal performance. Experimental results confirm the proposed method’s effectiveness, enhancing capacitor detection precision by over 5% (75.3% peak accuracy) and demonstrating significant improvements in small-defect detection and imbalanced sample handling.
Funding Information
  • National Key Research and Development Program of China (2024YFB4709200)
  • National Natural Science Foundation of China (52405097)
  • Basic and Applied Basic Research Foundation of Guangdong Province (2024A1515140106)

This publication has 40 references indexed in Scilit: