Improved YOLOv11-Based Algorithm for Wood Surface Defect Detection

Authors

  • ChenXin Pan Tianjin University of Technology and Education, Tianjin, 300222, China Author

DOI:

https://doi.org/10.63313/AERpc.9089

Keywords:

Wood Surface Defect Detection, Yolov11, BIFPN, Multi-Head Self-Attention, DeCoupled Detection Head, Deep Learning

Abstract

Wood surface defect detection is a critical process in industrial quality control. However, conventional deep learning models often struggle with complex periodic wood grain interference, extreme scale variations between micro-defects and large defects, and irregular defect geometries. To address these challenges, this paper proposes WSD-YOLO, an improved object detection algorithm based on YOLOv11n. First, an Enhanced Backbone (EB) is constructed by deepening the C3k2 modules to enrich multi-level feature representations, which improves the network's capacity to extract complex defect patterns. Second, a Transformer Attention Block (TAB) with an 8-head multi-head self-attention mechanism is integrated to model long-range spatial dependencies, effectively suppressing background texture interference from wood grains. Third, a BiFPN with P2 Enhancement (BPE) extends the feature fusion network to a four-scale bidirectional architecture, utilizing a high-resolution P2 branch (stride 4) to capture fine spatial details of micro-defects such as cracks and resin spots. Finally, a Decoupled Multi-Scale Head (DMH) separates the classification and localization branches to alleviate optimization conflicts caused by irregular defect boundaries. Experimental results on a custom dataset of 4,000 images across 7 defect categories demonstrate that WSD-YOLO achieves an [email protected] of 74.34% and an [email protected]:0.95 of 39.24%, outperforming the YOLOv11n baseline by 0.82% and 1.51%, respectively. Notably, the detection precision reaches 72.18%, a 3.39% improvement over the baseline, confirming the model's superior capability in reducing false positives in complex industrial environments.

References

[1] Su, B., Chen, H., & Zhou, Z. (2022). BAF-detector: An efficient CNN-based detector for photovoltaic cell defect detection. IEEE Transactions on Industrial Electronics, 69(3), 3161-3171.

[2] Zhang, Y., Zhang, H., Huang, Q., Han, Y., & Zhao, M. (2024). DsP-YOLO: An anchor-free network with DsPAN for small object detection of multiscale defects. Expert Systems with Applications, 238, 122669.

[3] Lin, J., Wang, P., Ruan, Y. et al. YOLO11-WLBS: an efficient model for pavement defect detection. Sci Rep (2026).

[4] Liu, J., Shen, X., Wang, J., Jiang, L., & Zhang, H. (2023). An intelligent defect detection approach based on cascade attention network under complex magnetic flux leakage signals. IEEE Transactions on Industrial Electronics, 71(2), 2056-2066.

[5] Park, K. B., & Lee, J. Y. (2022). Novel industrial surface-defect detection using deep nested convolutional network with attention and guidance modules. Journal of Computational Design and Engineering, 9(6), 2466-2481.

[6] Li, X., Pu, X., Ling, W. et al. YOLO-SAM an end-to-end framework for efficient real time object detection and segmentation. Sci Rep 15, 40854 (2025). https://doi.org/10.1038/s41598-025-24576-6

[7] Han Y, Qi K, Zheng J, et al. Lightweight Cattle Facial Recognition Method Based on Improved YOLOv11. Smart Agriculture, 2025, 7(3): 173-184. https://doi.org/10.12133/j.smartag.SA202502010

[8] Xu, X. et al. Exploring image enhancement for salient object detection in low light images. ACM Trans. Multimed. Comput. Commun. Appl. 17, 1–19 (2021).

[9] Gao, L., Zhang, J., Yang, C., & Zhou, Y. (2022). Cas-VSwin transformer: A variant swin transformer for surface-defect detection. Computers in Industry, 140, 103689.

[10] Wang Yin, Wang Lide, Qiu Ji. Real-time Enhancement Algorithm for Orbital Dark Light Environment Based on DenseNet Structure[J]. Journal of Southwest Jiaotong University, 2022, 57(6): 1349-1357. doi: 10.3969/j.issn.0258-2724.20210199

[11] Xue R ,Duan J ,Du Z .MPE-DETR: A multiscale pyramid enhancement network for object detection in low-light images[J].Image and Vision Computing,2024,150105202-105202.DOI:10.1016/J.IMAVIS.2024.105202.

[12] Dong, X., Zhang, C., Wang, J., Chen, Y., & Wang, D. (2024). Real-time detection of surface cracking defects for large-sized stamped parts. Computers in Industry, 158, 104105.

[13] Chen, Z., Yang, C., Li, Q., Zhao, F., Zha, Z. J., & Wu, F. (2024). A Dual-Task Branch Alignment Detector for Object Detection. IEEE Transactions on Image Processing, 33, 1642-1655.

Downloads

Published

2026-04-15

Issue

Section

Articles

How to Cite

Improved YOLOv11-Based Algorithm for Wood Surface Defect Detection. (2026). Advances in Engineering Research : Possibilities and Challenges, 4(1), 53–67. https://doi.org/10.63313/AERpc.9089