1. Introduction
Wood is an attractive and frequently used construction raw material, despite the appearance of new synthetic building materials on the market. In developed economies, the costs associated with logging and processing continue to increase along with the costs of labor and raw materials. Therefore, it is important to develop techniques that minimize production costs, including waste raw materials or semi-finished products. Neural networks are a type of machine learning algorithms that imitate how the brain works. Neural networks are used due to their effectiveness in solving problems related to the processing of images, sounds, text and other data. One of the applications of neural networks is the detection of blue stain in sawmill wood. Blue stain is a tree disease that causes the wood to change color to blue or black. Traditional methods of detecting blue stain in sawmill wood are time-consuming and expensive. The use of neural networks allows for faster and more effective detection of blue stain in sawmill wood, which can help prevent the spread of the disease and increase sawmill production efficiency.
Currently, the process of detecting wood defects, i.e. knots, cracks, resins, rings, edges in most small and medium-sized sawmill plants, involves marking the wood in appropriate places by people specially employed for this process. Usually, at least four people take part in this process: two for feeding the wood onto the conveyor and marking (hatching) the boards, and two for receiving and stacking the boards. Cutting out defects involves the employee marking the cutting location with a line on the wood. Then, an "optimizer" machine cuts the board at the marked location and throws the cut elements onto a sorting table, where they are picked up by an employee. Removing the defect involves cutting it out and dividing the board into smaller parts. Accuracy in cutting out a defect involves cutting it out as sparingly as possible (as close to the defect as possible) in order to obtain the most material in a better class. The cut off part is treated as waste. This operation depends on the assessment of the material from four sides and the precision of the meaning of the defects by the employee. As a result of visual inspection of the quality of marking of defects by the operator, it is estimated that for each defect the employee adds on average about 50 mm. During 8 hours of work, the employee marks approximately 5760 defects (4 boards with 5 defects per minute). During the year, the loss may amount to 92160 m. Assuming the cost is 4 PLN/m, the sawmill owner loses up to 92160 m * 4 PLN/m = 368640 PLN in revenue per year due to the work of the incorrectly hatched operator. This example illustrates the problem for sawmill plants of large material losses resulting from the removal of defects in wood. Moreover, an employee marking several boards per minute constantly has to subjectively assess whether a given section should be cut or left whole. At the same time, a solid and reliable calculation (appropriate estimation) for each board is not possible due to the need to maintain production efficiency. During such an assessment of sawn timber, it is necessary not only to analyze the defects in the wood, but also where they occur. Wood defects may only appear on one side and may be of a certain size. The scope of the board’s qualifications is determined by the product specification. On the one hand, frequent human errors mean that pieces with defects enter the final product and eliminate the entire element as the final product, resulting in a loss of material and work. On the other hand, elements that qualify for class 1 are often included in the second class. This reduces the effectiveness of obtaining the best quality material and reduces the profit. Work efficiency in this process is approximately 12 m/min per employee. The second important problem is finding people to accurately mark the wood, who will be able to mark the wood in continuous motion for 8 hours a day. It is hard and tedious work. Due to the lack of suitably qualified people on the market, production efficiency decreases.
The subject of the project implemented by Woodinspector Ltd. from Poland was a compact line for optimization and cross-cutting of sawn timber and automatic sorting. The product is intended for wood processing companies. The basic lines include detection of defects in wood using vision techniques with an average accuracy of up to 10 mm, automatic determination of the type and size of the defect, automatic planning of sawn timber cutting and sorting according to scanning results. The lumber boards are then stacked in layers. This line consists of: - Input material scanning system (scanner), which is responsible for recognizing and classifying the type of defects using vision techniques; - Cutting optimization algorithms depending on the type of defect in order to eliminate selected process stages; - Module for parameterizing the scanner’s operation by the operator; - Sorting module and semi-automatic stacking of the output material; - Integral cutting module with sorting system and - A module for semi-automatic unstacking of the material for feeding to the cutting line. Thanks to the use of such component lines, it is possible to detect defects in wood with a diameter of accuracy of up to 10 mm, automatic determination of the type and size of the defect (e.g. healthy knot 25 mm), automatic planning of sawn timber cutting, sorting according to scanning results, stacking elements into layers to eliminate the cumbersome and non-ergonomic process of manually taking elements from the table and spreading them on pallets, facilitating the unstacking of the material, which will eliminate the cumbersome operation of taking sawn timber from the stack and feeding it to the conveyor.
An important element of the system is the scanning module, which includes a defect detection algorithm based on artificial neural networks. Blue stain is a defect that is difficult to detect based on the color of the wood, because it can be easily confused with wood defects or dirt. There are studies in the literature on the use of vision techniques for wood quality inspection [
1,
2,
3].
In 2005, Van den Bulcke et al. (2005) none proposed a technique for assessing blue stain using image analysis [
4]. The method of quantitative assessment of the presence of blue stain according to the EN 152 standard was found to be insufficient. A scale from 0 to 5 was used for visual assessment, where 0 means no blue stain and 5 means complete coverage of the cross-section with blue-staining fungi to a depth of 5 mm. Neural networks were used as generalizing classifiers to measure surface blue stain, as well as to analyze the distribution of fungal invasion inside the wood. However, even with additional data reduction and clustering techniques, it was difficult to obtain results comparable to subjective visual assessment. Nevertheless, it has been proven that image processing and 3D reconstruction seem to be valuable tools for assessing blue stain [
5,
6,
7].
In the article [
8] a modified wood testing methodology standardized according to the EN 152 standard is presented, intended to test the effectiveness of wood coatings. A method called the EN 152 reverse method was used for computer-aided grading of coated wood to assess discoloration of the coatings and analyze the blue-stained wood inside the samples. Three-dimensional (3D) reconstructions of the samples were obtained, which became a tool for an in-depth analysis of the presence of blue stain [
9,
10,
11]. Similar results were obtained by studies published in [
4] and [
12]. The usefulness of vision methods was confirmed and the development of modern computer-controlled planers with a scanning head that accelerates the process by controlling the presence of blue stain was predicted [
13,
14].
In 2005, a color image segmentation method using neural networks was also proposed for detecting wood surface defects [
15]. The proposed method is called FMMIS (Fuzzy Min-Max Neural Network for Image Segmentation). Automatic visual inspection (AVI) systems includes five processing steps: image acquisition, image enhancement, image segmentation, feature extraction and classification, and the recognized defects cover 10 defect categories: bird’s eye and freckle, pockets of bark and tar, fade, split, stain, blue stain, pith, dead knot, living knot and hole. The FMMIS algorithm was compared with the Seed Region Growing (SRG) algorithm of Adams and Bischof and it was proven that the former is very fast and more effective in detecting defects in the "bird’s eye" and "freckle" categories, “spot”, “blueing” and “split” (TP < 50%) [
1,
16,
17,
18,
19,
20,
21].
The product of the team of authors, including Woodinspector, is a compact line for optimization (cross cutting) of sawn timber. This line consists of: 1. Input material scanning system (scanner), which is responsible for recognizing and classifying the type of defects using vision techniques; 2. Cutting optimization algorithms depending on the type of defect in order to eliminate selected process stages; 3. Module for parameterizing the scanner operation by the operator; 4. Sorting module and semi-automatic stacking of the output material; 5. Integral cutting module with sorting system and 6. A module for semi-automatic unstacking of material for feeding to the cutting line. Thanks to the use of such component lines, it is possible to detect defects in wood with a diameter of accuracy of up to 10 mm, automatic determination of the type and size of the defect (e.g. healthy knot 25 mm), automatic planning of sawn timber cutting, sorting according to scanning results, stacking elements into layers to eliminate the cumbersome and non-ergonomic process of manually taking elements from the table and spreading them on pallets, facilitating the unstacking of the material, which will eliminate the cumbersome operation of taking sawn timber from the stack and feeding it to the conveyor. So far, human-operated optimizers were responsible for identifying and classifying the type of defect in sawmills with lower efficiency. Their task is to cut out defective parts, e.g. knots. As a result, a frieze and semi-finished products for further processing are created. Accuracy in cutting out defects involves cutting out the defect as sparingly as possible to obtain as much material as possible in a better class. This activity depends on the operator’s precision and his assessment of the material from 4 sides. As a result of an inspection of the quality of marking defects by the operator (waste bins were inspected in several sawmills in Poland - the result of the importance of defects by employees), it is estimated that the employee adds approximately 50 mm to each defect. An employee marking several boards per minute constantly has to subjectively assess whether a given section should be cut or left whole. A solid and reliable calculation for each board throughout the entire operator’s work is not possible due to the need to maintain production efficiency. During such an assessment of sawn timber, it is necessary not only to analyze the defects in the wood, but also their location (the customer may indicate in the specification that there is a possibility of knots, but only on one side and of a specific size). Thanks to the use of a material scanning system with cutting optimization algorithms using vision techniques in the lumber optimization line, it is possible to reduce the amount of waste and increase the amount of high-quality output material, eliminate unnecessary cutting out of defects, correct sorting of elements, optimize the cutting of resin around the knot and increase efficiency of the optimization process per number of people and improving the ergonomics of their work. Thanks to the use of simple hardware solutions (low cost of the machine) and high efficiency of defect detection using complex and specialized algorithms, Woodinspector Ltd. is able to achieve a high degree of automation of many processes with low device efficiency.