journal article·2025-12-11Open access

Wood-YOLOv11: An Optimized YOLOv11-Based Model for Real-Time Pith Detection in Sawn Timber

Shuke Jia, Fanxu Kong, Baolei Jin, Chenyang Jin, Zeli Que

Applied Sciences· Volume 15· Issue 24

Abstract

The precise localization of the pith within sawn timber cross-sections is essential for improving downstream processing accuracy in modern wood manufacturing. Existing industrial workflows still rely heavily on manual interpretation, which is labor-intensive, error-prone, and unsuitable for real-time quality control. However, automatic pith detection is challenging due to the small size of the pith, its visual similarity to knots and cracks, and the dominance of negative samples (boards without visible pith) in practical scenarios. To address these challenges, this study develops Wood-YOLOv11, a task-adapted YOLOv11-based pith detection model optimized for real-time and high-precision operation in wood processing environments. The proposed approach incorporates: (1) a dedicated sawn-timber cross-section dataset including multiple species, mixed imaging sources, and clearly annotated pith positions; (2) a negative-sample-aware training strategy that explicitly leverages pithless boards and weighted binary cross-entropy to mitigate extreme class imbalance; (3) a high-resolution (840 × 840) input configuration and optimized loss weighting to improve small-target localization; and (4) a comprehensive evaluation protocol including false-positive analysis on pithless boards and comparison with mainstream detectors. Validated on a comprehensive, custom-annotated sawn timber dataset, our model demonstrates excellent performance. It achieves a mean Average Precision (mAP@0.5) of 92.1%, a Precision of 95.18%, and a Recall of 87.72%, proving its ability to handle high-texture backgrounds and small target sizes. The proposed Wood-YOLOv11 model provides a robust, real-time, and efficient technical solution for the intelligent transformation of the wood processing industry.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Wood and Agarwood Research · Industrial Vision Systems and Defect Detection · Wood Treatment and Properties

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

College of Materials Science and Engineering, Nanjing Forestry University, Nanjing 210037, China

Funding

the National Key Research and Development Program of China

References (50)

Show source-provided references
1. Automatic detection of annual rings and pith location along Norway spruce timber boards using conditional adversarial networks10.1007/s00226-021-01266-w ↗
2. Growth layer and fibre orientation around knots in Norway spruce: A laboratory investigation10.1007/s00226-017-0952-3 ↗
3. Advanced wood species identification based on multiple anatomical sections and using deep feature transfer and fusion10.1016/j.compag.2024.109867 ↗
4. Wang, B., Wang, R., Chen, Y., Yang, C., Teng, X., and Sun, P. (2025). FDD-YOLO: A Novel Detection Model for Detecting Surface Defects in Wood. Forests, 16.10.3390/f16020308 ↗
5. He, K., Gkioxari, G., Dollár, P., and Girshick, R. (2017, January 22–29). Mask R-CNN. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.322 ↗
6. A study on defect detection in X-ray image castings based on unsupervised learning10.5916/jamet.2020.44.6.487 ↗
7. Kisantal, M., Wojna, Z., Murawski, J., Gorban, J., Naruniec, J., and Cho, K. (2019). Augmentation for small object detection. arXiv.10.5121/csit.2019.91713 ↗
8. A survey of small object detection based on deep learning
9. Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2017, January 21–26). Feature pyramid networks for object detection. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.106 ↗
10. Liu, S., Qi, L., Qin, H., Shi, J., and Jia, J. (2018, January 18–22). Path aggregation network for instance segmentation. Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA.10.1109/CVPR.2018.00913 ↗
11. Zheng, Z., Wang, P., Liu, W., Li, J., Ye, R., and Ren, D. (2020, January 7–12). Distance-IoU loss: Faster and better learning for bounding box regression. Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), New York, NY, USA.10.1609/aaai.v34i07.6999 ↗
12. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal loss for dense object detection. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.324 ↗
13. Gradient-based learning applied to document recognition10.1109/5.726791 ↗
14. Krizhevsky, A., Sutskever, I., and Hinton, G.E. (2012, January 3–8). ImageNet classification with deep convolutional neural networks. Proceedings of the Advances in Neural Information Processing Systems 25 (NIPS 2012), Lake Tahoe, NV, USA.
15. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
16. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., and Anguelov, D. (2015, January 7–12). Going deeper with convolutions. Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.10.1109/CVPR.2015.7298594 ↗
17. Object detection in 20 years: A survey10.1109/JPROC.2023.3238524 ↗
18. Ren, S., He, K., Girshick, R., and Sun, J. (2015, January 7–12). Faster r-cnn: Towards real-time object detection with region proposal networks. Proceedings of the Advances in Neural Information Processing Systems 28 (NIPS 2015), Montréal, QC, Canada.
19. Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (July, January 26). You only look once: Unified, real-time object detection. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.91 ↗
20. Bochkovskiy, A., Wang, C.Y., and Liao, H.Y.M. (2020). YOLOv4: Optimal speed and accuracy of object detection. arXiv.
21. Wang, C.Y., Bochkovskiy, A., and Liao, H.Y.M. (2023, January 18–22). YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/CVPR52729.2023.00721 ↗
22. Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C.Y., and Berg, A.C. (2016, January 11–14). SSD: Single shot multibox detector. Proceedings of the Computer Vision–ECCV 2016, Amsterdam, The Netherlands.10.1007/978-3-319-46448-0_2 ↗
23. A survey of deep learning-based object detection10.1109/ACCESS.2019.2939201 ↗
24. Wang, C.Y., Liao, H.Y.M., Wu, Y.H., Chen, P.Y., Hsieh, J.W., and Yeh, I.H. (2020, January 13–19). CSPNet: A new backbone that can enhance learning capability of CNN. Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, Seattle, WA, USA.10.1109/CVPRW50498.2020.00203 ↗
25. Spatial pyramid pooling in deep convolutional networks for visual recognition10.1109/TPAMI.2015.2389824 ↗
26. Singh, B., and Davis, L.S. (2018, January 18–22). An analysis of scale invariance in object detection-snip. Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00377 ↗
27. Zhang, H., Cisse, M., Dauphin, Y.N., and Lopez-Paz, D. (2018). mixup: Beyond empirical risk minimization. arXiv.
28. Yun, S., Han, D., Oh, S.J., Chun, S., Choe, J., and Yoo, Y. (November, January 27). CutMix: Regularization strategy to train strong classifiers with localizable features. Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea.10.1109/ICCV.2019.00612 ↗
29. Dermatologist-level classification of skin cancer with deep neural networks10.1038/nature21056 ↗
30. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs10.1001/jama.2016.17216 ↗
31. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., and Fei-Fei, L. (2009, January 20–25). ImageNet: A large-scale hierarchical image database. Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA.10.1109/CVPR.2009.5206848 ↗
32. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017, January 4–9). Attention is all you need. Proceedings of the Advances in Neural Information Processing Systems 30 (NIPS 2017), Long Beach, CA, USA.
33. Woo, S., Park, J., Lee, J.Y., and Kweon, I.S. (2018, January 8–14). CBAM: Convolutional block attention module. Proceedings of the European Conference on Computer Vision (ECCV) 2018, Munich, Germany.10.1007/978-3-030-01234-2_1 ↗
34. Hu, J., Shen, L., and Sun, G. (2018, January 18–22). Squeeze-and-excitation networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) 2018, Salt Lake City, UT, USA.10.1109/CVPR.2018.00745 ↗
35. Ge, Z., Liu, S., Wang, F., Li, Z., and Sun, J. (2021). YOLOX: Exceeding YOLO series in 2021. arXiv.
36. Li, X., Wang, W., Wu, L., Chen, S., Hu, X., Li, J., Tang, J., and Yang, J. (2020, January 6–12). Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection. Proceedings of the Advances in Neural Information Processing Systems 33 (NeurIPS 2020), Virtual.
37. Loshchilov, I., and Hutter, F. (2019, January 6–9). Decoupled weight decay regularization. Proceedings of the 7th International Conference on Learning Representations (ICLR 2019), New Orleans, LA, USA.
38. Loshchilov, I., and Hutter, F. (2017, January 24–26). SGDR: Stochastic gradient descent with warm restarts. Proceedings of the 5th International Conference on Learning Representations (ICLR 2017), Toulon, France.
39. Yosinski, J., Clune, J., Bengio, Y., and Lipson, H. (2014, January 8–13). How transferable are features in deep neural networks?. Proceedings of the Advances in Neural Information Processing Systems 27, Montréal, QC, Canada.
40. The PASCAL Visual Object Classes (VOC) Challenge10.1007/s11263-009-0275-4 ↗
41. Long, J., Shelhamer, E., and Darrell, T. (2015, January 7–12). Fully convolutional networks for semantic segmentation. Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.10.1109/CVPR.2015.7298965 ↗
42. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks10.1109/TPAMI.2016.2577031 ↗
43. Ciresan, D., Giusti, A., Gambardella, L.M., and Schmidhuber, J. (2012, January 3–8). Deep neural networks segment neuronal membranes in electron microscopy images. Proceedings of the Advances in Neural Information Processing Systems 25 (NIPS 2012), Lake Tahoe, NV, USA.
44. Model for the prediction of the tensile strength and tensile stiffness of knot clusters within structural timber10.1007/s00107-014-0781-0 ↗
45. A three-dimensional wood material model to simulate the behavior of wood with any type of knot at the macro-scale10.1007/s00226-012-0517-4 ↗
46. Howard, A.G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., and Adam, H. (2017). MobileNets: Efficient convolutional neural networks for mobile vision applications. arXiv.
47. Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., and Chen, L.C. (2018, January 18–22). MobileNetV2: Inverted residuals and linear bottlenecks. Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00474 ↗
48. Tan, M., and Le, Q.E. (2019, January 9–15). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA.
49. Mokroš, M., Liang, X., Surový, P., Valent, P., Čerňava, J., Chudý, F., Tunák, D., Saloň, Š., and Merganič, J. (2018). Evaluation of close-range photogrammetry image collection methods for estimating tree diameters. ISPRS Int. J. Geo-Inf., 7.10.3390/ijgi7030093 ↗
50. Automated planning and optimization of lumber production using machine vision and computed tomography10.1109/TASE.2008.925254 ↗