融合注意力机制与特征融合网络的轻量化木板缺陷检测方法
Lightweight wood panel defect detection method incorporating attention mechanism and feature fusion network
AI总结:
针对木板缺陷检测中检测率低、速度慢及部署难的问题,提出融合注意力机制与特征融合网络的轻量化YOLOv5-LW方法,在保持92.8%准确率的同时显著减少参数和计算量。
摘要:
近年来,深度学习在木板缺陷检测领域取得了显著进展。然而,木板表面缺陷检测仍面临检测率低、检测速度慢以及嵌入式设备部署困难等挑战。为克服这些问题,我们提出了一种名为YOLOv5-LW的轻量化木板缺陷检测方法,该方法融合了注意力机制与特征融合网络。首先,为增强对可接受缺陷的检测能力,我们引入多尺度双向特征金字塔网络(MBiFPN)作为特征融合网络。MBiFPN减少了特征损失,丰富了局部和细节特征,并提升了模型对可接受缺陷的检测能力。其次,为实现轻量化设计,我们重构了ShuffleNetv2网络模型作为骨干网络。该重构在保持性能的同时减少了参数数量和计算需求。我们还引入了Stem Block和快速空间金字塔池化(SPPF)模型,以补偿轻量化设计可能带来的精度损失,确保模型在保持计算效率的同时检测能力不受影响。第三,我们通过引入高效通道注意力(ECA)机制来增强骨干网络,提高了网络对缺陷检测关键信息的关注度。通过关注重要特征,模型在准确识别和定位缺陷方面更加熟练。我们使用自建的木板缺陷数据集验证了所提方法。实验结果表明,改进后的YOLOv5-LW方法有效。与原始模型相比,我们的方法达到了92.8%的准确率,参数数量减少了27.78%,计算量压缩了41.25%,检测推理速度提升了10.16%。
英文摘要:
In recent years, deep learning has made significant progress in wood panel defect detection. However, there are still challenges such as low detection , slow detection speed, and difficulties in deploying embedded devices on wood panel surfaces. To overcome these issues, we propose a lightweight wood panel defect detection method called YOLOv5-LW, which incorporates attention mechanisms and a feature fusion network.Firstly, to enhance the detection capability of acceptable defects, we introduce the Multi-scale Bi-directional Feature Pyramid Network (MBiFPN) as a feature fusion network. The MBiFPN reduces feature loss, enriches local and detailed features, and improves the model's detection capability for acceptable defects.Secondly, to achieve a lightweight design, we reconstruct the ShuffleNetv2 network model as the backbone network. This reconstruction reduces the number of parameters and computational requirements while maintaining performance. We also introduce the Stem Block and Spatial Pyramid Pooling Fast (SPPF) models to compensate for any accuracy loss resulting from the lightweight design, ensuring the model's detection capabilities remain intact while being computationally efficient.Thirdly, we enhance the backbone network by incorporating Efficient Channel Attention (ECA), which improves the network's focus on key information relevant to defect detection. By attending to essential features, the model becomes more proficient in accurately identifying and localizing defects.We validate the proposed method using a self-developed wood panel defect dataset.The experimental results demonstrate the effectiveness of the improved YOLOv5-LW method. Compared to the original model, our approach achieves a 92.8\% accuracy rate, reduces the number of parameters by 27.78\%, compresses computational volume by 41.25\%, improves detection inference speed by 10.16\%
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。