The invention discloses a PCB bare board defect detection method and
system based on an improved YOLOv11 neural network, and the method comprises the steps: obtaining a PCB defect
data set, carrying out the preprocessing of an image of the
data set, and constructing a PCB surface defect
data set; an improved YOLOv11 detection model is constructed, in the Backbone stage, the depth separable
convolution of improved PPLCNet and an SE module are utilized to reduce the calculated amount and enhance feature expression, in the Neck stage, multi-scale
information fusion is optimized through cross-scale feature splicing and SPPF
pooling, in the Head stage, an improved ShapeIoU
loss function is introduced, and an improved edge enhanced EE-SimAM attention mechanism module is inserted in front of the object; training the model by using the preprocessed data set, and optimizing the initial weight by adopting a migration analysis strategy; and deploying the trained model to an
edge detection device. The method has the beneficial effects that by constructing and improving the YOLOv11
network model, the size of the model is reduced, the model can be conveniently deployed to an edge equipment end, the PCB defect detection precision is improved, the omission ratio is reduced, and the method is suitable for industrial defect detection scenes.