3.1. An Analysis of Sorting Accuracy and Efficiency
This production line has been deployed in the sorting facility situated in Jiangle County, Fujian Province, China. The following tests were carried out at this sorting facility. In terms of sorting accuracy, this study included 10 sets of raw logs, each comprising 10 individual logs. Each log was randomly selected and measured manually for diameter using a high-quality tape measure following measurement standards. The diameter of each log, along with its identification number, was recorded on labels, and these labels were securely affixed to the non-measured end using push pins. The measured diameter at this point was considered the standard actual diameter.
Subsequently, sorting tests were conducted using the production line based on the assigned identification numbers, and the automatically recognized diameter values were recorded on the human–machine interface. After each sorting session, the measured diameter recorded on the label of each log in the storage rack was compared with the set diameter range for that storage rack. If the measured diameter was within the specified range, it was considered a successful sorting. Each storage rack represented a diameter grade, and the diameter range for this test is presented in
Table 2. The results of one set of tests are presented in
Table 3, with all diameter values rounded to the nearest value after debarking. The testing was conducted in the morning on a summer day, with a temperature of 35 °C and ample natural light during the testing period.
From
Table 2 and
Table 3, the obtained sorting results demonstrate relative accuracy, with an absolute error ranging from 1 to 2 mm and a relative error of less than 3%. During this test, there was one sorting failure observed. Upon analyzing the failed sorting, it was found that the failure occurred because the diameter of the wood was close to the threshold values of two diameter classes. Owing to the presence of errors, there was a misjudgment of the diameter class, as shown in the 9th set of data in
Table 3, where the wood of Specification 3 was misidentified as Specification 2. A total of ten sets of these small-scale tests were conducted, and the results are presented in
Table 4.
where
stands for mean absolute error,
stands for average relative error,
represents the total number of experiments,
is the absolute error for the
i-th set,
is the relative error for the
i-th set,
denotes the sorting accuracy,
is the number of successfully sorted logs, and
is the total number of logs sorted.
From
Table 4, it is evident that out of a total of 100 wood tests, 98 woods were successfully sorted, and the occasional failures were attributed to the reasons mentioned earlier. Through calculations, the absolute error range in log diameter identification ranged between 0.8 and 1.4 mm, with an average absolute error of 1.12 mm and a maximum average relative error of 1.21%. This accuracy meets the enterprise’s requirement of being within 3%, achieving a sorting accuracy rate of 98%. The actual diameters in the experimental data were manually measured and calculated in accordance with national standards. This measurement process is time consuming and requires a significant amount of manpower, resulting in high labor costs. However, to maintain speed, workers may at times opt to measure the diameter of the end face directly based on subjective feelings, introducing high subjectivity and randomness. In this non-standardized and rapidly conducted manual measurement process involving high-intensity repetitive work, the accuracy of diameter measurement cannot be guaranteed, leading to lower sorting accuracy. In contrast, the implemented device can achieve accurate diameter identification according to national standards while ensuring high accuracy in diameter class sorting.
Following the determination of sorting accuracy, a statistical analysis of the sorting efficiency for this design was performed. The efficiency testing consisted of 10 groups, each lasting for 10 min. In the continuously running production line, timing began as the first log entered the feeding area, and counting started as the first log was pushed down. The testing concluded after the production line had operated continuously for ten minutes, and the count included all logs pushed down during this period. Each test group was separated by intervals, and the logs sorted in each group were stacked together to avoid confusion among different groups. Logs for testing were randomly selected for loading. After completing the tests, the diameters of the logs automatically identified were recorded. Subsequently, the correctness of the identified diameters was verified using a manual tape measure. In cases where sorting errors occurred, the correct diameter value obtained from the tape measure was used for volume calculation during the sorting process. The volume sorted in 10 min on the production line was then calculated, and the volume sorted per eight hours was extrapolated. The testing site remained the deployment location of the production line, with a temperature of 25 °C during testing. The tests were conducted in the afternoon in autumn, with sufficient natural light, ensuring no impact on the detection process. The statistical results of sorting efficiency are presented in
Table 5.
The lengths of the sorted wood in the aforementioned cases were all 6 m, with diameters ranging from 60 to 300 mm. To facilitate volume calculation, a uniform log diameter of 200 mm was chosen. As shown in
Table 5, the sorting efficiency achieves a rate surpassing 490 m
3/8 h, far surpassing the enterprise’s requirement of 100 m
3/8 h and meeting practical production needs. When calculated based on 250 working days per year, the annual sorting volume can reach 120,000–130,000 m
3. Because it is in its initial development, there are some design imperfections, and there are coordination issues among the various parts of the equipment. Therefore, motor power has been appropriately decreased, and certain delays have been set to ensure the smoothness and stability of the operation. With calculations conducted under ideal conditions and maximum motor efficiency, the annual sorting volume can exceed 1,500,000 m
3. This level of efficiency is comparable to foreign sorting efficiency. Calculated from the data in
Table 5, the sorting time for each log (6 m) ranges from 7 to 8 s, whereas traditional manual sorting, from manually measuring the diameter to manually handling the classification, averages over 90 s for each log. In comparison, the implementation of this design significantly enhances the efficiency of log sorting.
3.2. Analysis of the Impact of Environmental Conditions on Production Line
To assess the impact of temperature on the production line, this study conducted continuous 8 h operation tests during the coldest and hottest times of the year at the deployment site. The temperature at the deployment site ranged from −4 to 40 °C. The production line successfully completed continuous operation under these temperature conditions. Notably, during high temperatures, air conditioning in the control cabinet deployment room was necessary to prevent the overheating of control components and the consequent risk of fuse breakage.
To assess the impact of natural light variations on the production line, this study conducted detection tests in a well-lit laboratory environment with abundant natural light. A platform was set up in the experimental area to place log end samples with a fixed diameter of 154 mm. A binocular camera was positioned at a distance of 1.2 m, with the aperture size and setup distance matching those at the actual production line site. The testing occurred during winter, with clear weather conditions, ranging from strong daylight in the afternoon to extremely low light levels in the evening, without any other light sources affecting the environment. Illuminance levels were measured at the log end using a lux meter from Delixi. The illuminance was recorded at regular intervals, and log end face images were captured under the corresponding illuminance. Subsequently, the trained model was employed for end face detection tests, followed by diameter measurement and a calculation of whether successful detection occurred. The test results are presented in
Table 6.
Table 6 indicates the successful detection of the timber end face and the collection of relatively accurate diameter sizes when the illuminance exceeds 25.7 lux. With decreasing illuminance, the influence of darkness causes the edge of the end face to blur, resulting in an increase in diameter detection errors. At extremely low illuminance values, although the outline can still be detected, the failure of diameter detection occurs due to the inability to complete threshold segmentation. Therefore, in the deployment of the production line, this design incorporates a mechanism that automatically activates additional light sources when the illuminance falls below the set threshold of 30 lux. These light sources uniformly increase the illuminance on the surface of the timber end face, measured to reach 160–180 lux. Measurements indicate that the illuminance at the end face can reach 160–180 lux under these conditions, satisfying the requirements for normal detection. Selected detection results are illustrated in
Figure 12.
3.3. Limitations and Future Prospects of the Study
With the continuous development of the timber market, an increasing number of sawmills aim to achieve greater economic benefits by expanding their considerations beyond merely sorting logs based on diameter. Additional features of logs, such as tree species, grain patterns, heartwood percentage, sapwood percentage, color, etc., are becoming crucial factors. Currently, our design is limited to the identification of log diameters, lacking recognition techniques for other features, resulting in a relatively narrow sorting criterion. However, the current trend in log feature detection, particularly based on deep learning, has shown significant advancements, achieving the robust detection of various characteristics.
In the future, the design will draw inspiration from these studies by incorporating additional deep learning models into the detection algorithm to enhance the variety of detected features. Furthermore, this research will optimize the control system and introduce a log management database. This database will document all detected features, creating a “profile” for each log based on defects, tree species, grain patterns, and other characteristics. Sawmills can easily retrieve logs with the desired features by referencing these “profiles.”
For machine vision, natural light and other environmental factors present the greatest interference. The current detection area of this design is exposed to natural conditions, with only a few structures, such as sheds and sunshades, for protection and adjustment. While supplementary lighting can enable detection throughout working hours, changes in the deployment environment can easily disrupt the detection process. In the future, this study will install a protective shell in the detection area and establish a constant light source within the shell to maintain the stability of the detection environment.
Due to the commonality of log diameters below 300 mm in the test region, the structural design of the production line is suitable for small- and medium-sized logs, with limited adaptability to larger logs that may require structural optimization. This design has attracted attention from several domestic enterprises in China, including some port sorting yards that primarily handle large-diameter timber imported globally. Collaborations have been initiated. Future efforts will focus on designing a solution tailored to the sorting of large-diameter logs.