Fusing prior knowledge reasoning for surface defect detection
Current surface defect detection methods based on deep learning mainly focus on the individual identification of defect instances,considering defect detection only from the aspect of region features.However,this method overlooks the high-level relation between defects,which will inevitably lead to defect detection errors.To address the above problems,a surface defect detection network(PKR-Net)based on prior knowledge reasoning was proposed.Specifically,PKR-Net mainly consists of two parts,namely,the explicit knowledge reasoning module(EKRM)and the implicit knowledge reasoning module(IKRM).EKRM constructed an explicit relation graph(ERG)to capture the global co-occurrence relation between defects in the dataset,thereby obtaining co-occurrence relation features.Meanwhile,IKRM constructed an implicit relation graph(IRG)to capture the local spatial relation between defects in the image,thereby obtaining spatial relation features.Finally,the co-occurrence relation features and spatial relation features were fused and re-fed into the classification and regression layers to improve detection performance.Experimental verification was conducted on the industrial defect datasets Textile,NEU-DET and GC10-DET.The experimental results showed that the mAP of the proposed network model improved by 14.8%,8.2%,and 18.9%,respectively,compared with the baseline model Faster RCNN.Compared with other defect detection models,the proposed model can achieve better detection performance,verifying its effectiveness.