A Fast and Robust Artificial Intelligence Technique for Wood Knot Detection

Dercilio Junior Verly Lopes, Gabrielly Dos Santos Bobadilha, Karl Michael Grebner


This study reports the feasibility of using deep convolutional neural networks (CNN), for automatically detecting knots on the surface of wood with high speed and accuracy. A limited dataset of 921 images were photographed in different contexts and divided into 80:20 ratio for training and validation, respectively. The “You only look once” (YoloV3) CNN-based architecture was adopted for training the neural network. The Adam gradient descent optimizer algorithm was used to iteratively minimize the generalized intersection-over-union loss function. Knots on the surface of wood were manually annotated. Images and annotations were analyzed by a stack of convolutional and fully connected layers with skipped connections. After training, model checkpoint was created and inferences on the validation set were made. The quality of results was assessed by several metrics: precision, recall, F1-score, average precision, and precision x recall curve. Results indicated that YoloV3 provided knot detection time of approximately 0.0102 s per knot with a relatively low false positive and false negative ratios. Precision, recall, f1-score metrics reached 0.77, 0.79, and 0.78, respectively. The average precision was 80%. With an adequate number of images, it is possible to improve this tool for use within sawmills in the forms of both workstation and mobile device applications.


Object-detection; Bounding box; Knots; Boards; Fast; YoloV3

Full Text:


Welcome to BioResources! This online, peer-reviewed journal is devoted to the science and engineering of biomaterials and chemicals from lignocellulosic sources for new end uses and new capabilities. The editors of BioResources would be very happy to assist you during the process of submitting or reviewing articles. Please note that logging in is required in order to submit or review articles. Martin A. Hubbe, (919) 513-3022, hubbe@ncsu.edu; Lucian A. Lucia, (919) 515-7707, lucia-bioresources@ncsu.edu URLs: bioresourcesjournal.com; http://ncsu.edu/bioresources ISSN: 1930-2126