NC State
BioResources
Wang, C.-K., Zhao, P., and Yang, J.-L. (2024). “Effect of wood surface finish on wood species classification using spectral reflectance,” BioResources 19(2), 3060-3077.

Abstract

Wood species can be classified by spectral reflectance. It is unclear whether finish coated on the wood surface affects the accuracy of wood species classification. This paper focused on this issue, using the spectral reflectance of 8 different kinds of finish for wood species classification. The spectral reflectance of wood surface coated with finish was modified by the transfer model in order to reduce the effect of finish on classification accuracy. The experimental results show that it is not feasible to use the spectral reflectance of wood samples coated with finish directly to classify wood species; the best classification accuracy using the eight finishes was 30%. After correcting the spectrum of wood samples coated with finishes with the direct standardization (DS) transfer model, the classification accuracy of the near-infrared (NIR) spectrum was close to that of the original spectrum without finish. However, the visible/near-infrared (VIS/NIR) spectrum did not achieve a good classification effect after correction with the DS transfer model.


Download PDF

Full Article

Effect of Wood Surface Finish on Wood Species Classification Using Spectral Reflectance

Cheng-Kun Wang,a Peng Zhao,b,* and Jia-Le Yang a

Wood species can be classified by spectral reflectance. It is unclear whether finish coated on the wood surface affects the accuracy of wood species classification. This paper focused on this issue, using the spectral reflectance of 8 different kinds of finish for wood species classification. The spectral reflectance of wood surface coated with finish was modified by the transfer model in order to reduce the effect of finish on classification accuracy. The experimental results show that it is not feasible to use the spectral reflectance of wood samples coated with finish directly to classify wood species; the best classification accuracy using the eight finishes was 30%. After correcting the spectrum of wood samples coated with finishes with the direct standardization (DS) transfer model, the classification accuracy of the near-infrared (NIR) spectrum was close to that of the original spectrum without finish. However, the visible/near-infrared (VIS/NIR) spectrum did not achieve a good classification effect after correction with the DS transfer model.

DOI: 10.15376/biores.19.2.3060-3077

Keywords: Wood species classification; Finish; Spectral reflectance; Transfer model

Contact information: a: School of Electronic and Information Engineering, Heilongjiang University of Science and Technology, Harbin 150010, China; b: School of Computer Science and Communication Engineering, Guangxi University of Science and Technology, Liuzhou 545006, China;

* Corresponding author: Zhao Peng; Email: bit_zhao@aliyun.com

INTRODUCTION

There are many wood species around the world. At present, people can classify wood species through spectroscopy, images, sound, and chemical process. Among these classification schemes, the spectral analysis scheme has the advantages of fast speed, high accuracy, and non-destructive testing. For example, Park et al. (2021) classified three coniferous wood species by use of wood extract and its near-infrared spectrum. Ma et al. (2021) proposed a new classification for 15 wood species based on spatially resolved diffuse reflection (i.e., wavelength range 600 to 1000 nm). A portable near-infrared spectral measurement system based on principal component analysis (PCA) and support vector machine (SVM) was designed. Tuncer et al. (2021) classified pine tree species by means of NIR spectroscopy and with the first-order derivative and smoothing processing. Ma et al. (2019) used hyper-spectral images of the near-infrared spectrum to classify 15 wood species quickly. Pace et al. (2019) used PCA and partial least squares discriminant function regression (PLS-DFR) to analyze the spectral characteristics of wood, classifying forest tree species in the Atlantic Ocean. Bolzon et al. (2016) investigated the relationship between cross-section images and spectra of five wood species as an example to study the spectral and anatomical characteristics of wood in the process of transformation from wood into charcoals. Sohn et al. (2021) investigated the feasibility of rapid nondestructive classification of six Amaranthus species by using hand-held spectrometers in the field in different geographical regions of Korea. Zulfa et al. (2020) collected the leaf spectral characteristics of 19 mangrove species and explored whether the spectral reflectance data could be used to identify mangrove species. They found that chlorophyll content greatly influenced the spectrum, and the authors combined chlorophyll content with spectral reflectance, thus providing a new method for mangrove species classification.

There are two main categories by which to classify wood species by spectral analysis. One category is to classify wood species by using spectral transmittance. This category mainly tests wood by solid pressing, grinding, or making it into liquid, and tests are needed in the laboratory when collecting spectra from the wood material. The other category is to use the spectral reflectance of the wood surface to classify wood species. This category relies on the difference in the spectral reflectance of different wood species. When the spectral reflectance of wood surface is used for classification, a practical problem not yet considered until now is that the surface of actual household wood furniture is most frequently coated with a layer of finish. There are many types of finishes, which are all aimed at extending the service life of wood and preventing wood from cracking, decaying, and deforming (Evans et al. 2009). If the spectral analysis scheme is used to classify wood species, then it is necessary to remove the disturbance from the finish on wood surface. If this layer of finish is removed by sandpaper or other tools, the structural characteristics of the original wood surface will be inevitably damaged, which is undesirable. On the other hand, if the spectrum of wood surface with finish is used for classification directly, then questions will arise regarding the accuracy of wood species classification.

In this work, the following three comparative studies were carried out to address the above-mentioned problem. First, 20 wood species were selected as the experimental dataset, and a SVM classifier was used to perform wood species classification with the VIS/NIR spectrum and NIR spectrum for wood samples without coating finish. Second, the SVM classifier was trained with the wood dataset without coating finish to classify the spectral reflectance of wood surface with eight kinds of different finish coated in order to analyze the influence of different kinds of finish on the classification accuracy. Third, a transfer model was used to correct the spectral distortion caused by the finish on the wood surface so as to make the wood spectral classification more robust and accurate.

EXPERIMENTAL

A total of 20 wood species was used as the research dataset, including broadleaved and coniferous wood species. The sample dataset contained some wood species with similar colors and textures, and also contained wood species within the same genus. The detailed information on these wood species is shown in Table 1.

Eight kinds of finish were used for the experiments, as shown in Table 2. Number 2 and number 3 were wood wax oil, which is formed by catalpa oil, linseed oil, perilla oil, pine oil, palm wax, and a mixture of plant resin and pigment. Different wood wax oil products have different ingredients, so that two different manufacturer products of wood wax oil were considered. The finishes number 1~number 7 are clear, whereas number 8 is opaque. The wood surface coated with finish number 8 is reddish-brown.

Two spectrometers, the Ocean Optics USB2000+ and the FLAME-NIR spectrometer, were used in this paper to measure the diffuse reflectance. The effective wavelength ranges of the two spectrometers are 350 to 1000 nm and 950 to 1650 nm, respectively. The wavelength resolutions of the two spectrometers are 0.3 nm and 5.9 nm, respectively. These two wavelengths range just cover the visible band and part of the NIR band, and their total spectral coverage interval is 350 to 1650 nm.

Table 1. Information of Experimental Samples

Table 2. Details of Finishes Used in the Experiment

To use the spectrometer to collect spectral data, the wood sample processing is required. First, a total of 25 wood blocks from different trees at different positions were selected for each wood species, and the shapes and sizes of these wood blocks were all different. To facilitate the collection of spectral data, these wood blocks were all cut into wood samples with size of 2 × 2 × 3 cm. The 2 × 2 cm section was the cross section, and the 2 × 3 cm section was either the radial section or the tangential section. Second, 4 wood samples of each wood block were randomly selected to get 100 wood samples with size of 2 × 2 × 3 cm. Due to the uneven burrs in the process of cutting wood and to get better spectral information, it is necessary to use sandpaper (800 to 1200 mesh) to polish the cross-section of a wood sample. Third, 40 samples were randomly selected from each wood species for testing set, and the remained 60 samples were used as the training set. The wood testing sets were divided into 8 groups, and each group was coated with the finish shown in Table 2. When a finish was brushed on wood surface which had been polished by sandpaper in advance, it was necessary to brush for the second time in 48 h after the first brush, and ensure that the wood surface is completely dry when collecting the spectra. Finally, the wood VIS/NIR spectrum may be sensitive to the influence of external factors (e.g., temperature and humidity), so that the experimental environment was in a room with the stable temperature at 24 °C and humidity at 35%.

Figure 1(a) shows the basic framework of the entire spectral platform. The spectral platform in this experiment mainly includes a computer, spectrometer, optical fiber, and light source. Figure 1(b) shows wood samples coated with different finishes (i.e., film formers). The samples on the top were coated with 8 different finishes, and samples on the bottom were coated with tung oil (i.e., No. 1 in Table 2). Data acquisition was performed as follows. A basic calibration was performed using a standard whiteboard, then the wood sample is placed on the holder and the distance between the wood cross section and the fiber probe was adjusted. Finally, the spectral reflectance dataset was saved to the computer.

Fig. 1. Experimental platform and sample; a. spectral collection setup; b. samples coated with 8 finishes

Spectral Pre-processing

The collected spectra cannot be directly used for classification. Due to the problem of the spectrometer itself, the visible spectrum fluctuates greatly in the range of both ends so that the spectra of 339.8 to 395.7 nm and 1012.7 to 1026.3 nm should be deleted. Figure 2 shows the spectral reflectance curves of the 20 wood species. Figure 2(a) corresponds to the spectral curve collected by the USB2000+ spectrometer, whereas Figure 2(b) the spectral curve collected by the FLAME-NIR spectrometer. In addition, standard normal variation (SNV) correction and smoothing correction with a moving window of 5 × 5 size should be used for the collected spectra to ensure that the spectral reflectance curve has a good recognition effect.

After the above-mentioned spectral curve correction, spectral dimension reduction should be performed. The original VIS/NIR spectral dimension is 1850D, whereas NIR is 128D. Therefore, it is necessary to reduce the redundant information and computational complexity. Different dimension reduction methods were used to compare the wood classification accuracy. These methods consisted of PCA (Reddy et al. 2020), multidimensional scaling (MDS) (Mignotte 2011), locally linear embedding (LLE) (Yu et al. 2020), Laplacian (Belkin and Niyogi 2003), and Kernel PCA (Alhayani and Ilhan 2017). The used classifier was an SVM classifier (Byvatov and Schneider 2003).

a

b

Fig. 2. Spectral reflectance of a cross section of wood species; a. VIS/NIR spectra; b. NIR spectra

Effects of Different Finishes on the Spectral Reflectance Curve of Wood Surface

The main purpose of coating finish on wood surface is to prevent decay, deformation, and cracking of wood material. There are great differences in the composition of different finishes. For wood, there is pure natural tung oil, wood wax oil, amino, polyurethane, and other finishes based on chemical composition. In Fig. 3, the spectral reflectance curve of Pterocarpus tinctorius wood species by use of different finishes is given, and the labeling is the same as that of Table 2.

Fig. 3. Spectral reflectance of Pterocarpus tinctorius with different film formers; a. NIR spectral curve; b. VIS/NIR spectral curve

In Fig. 3 (a), the NIR spectral curve exhibited some translations when the sample was coated with each of the eight finishes. Specifically, if the finish has a large reflection, the whole spectrum will move up; if the finish has a large absorption, the whole spectrum will move down. However, the spectrum of finish 8 (water wood finish (brown)) was different from that of other finishes, since its spectral reflectance value was small. Figure 3 (b) illustrates the wood spectral reflectance curves produced by different finishes in the VIS/NIR band. The spectral curve with respect to finish 1 (tung oil) was close to the original spectral curve without finishes, but the spectral curve with respect to finish 8 still had small spectral values. In this paper, only diffuse reflectance was considered, and the specular reflectance will be investigated in our future work. The wood surface is brushed two times with a finish, and the finish thickness is approximately 0.2 to 0.3 mm.

In this part, the spectra of wood samples without any finish were taken as the training dataset, and the classifier was trained to get the SVM. Then, the wood spectral classification was directly used to the testing dataset coated with different finishes to obtain the specific classification accuracy. The goal of this part was to evaluate whether the wood spectral curve coated with different finishes can be directly classified by use of the SVM classifier trained with the original spectra without any finish.

Wood Species Classification using Corrected Spectral Curve of Wood Surface Coated with Finishes Based on Transfer Model

The main purpose of a transfer model is to realize model sharing to reduce the difficulty of model reconstruction. By using the transfer model, the problem that the spectra of wood surface with and without finishes collected by the same spectrometer are different can be solved. The transfer models of different finishes are established to repair the spectral changes of the wood surface caused by coating finishes. The specific procedure is shown in Fig. 4.

Fig. 4. Flow of spectrum correction using transfer model

As shown in Fig. 4, first, the original spectral reflectance curve of wood cross section without finishes and the corresponding curve with coated finish were collected and denoted as s, s’ respectively. Then, the transfer model was generated and saved by and s’ and this transfer model was denoted as Ts. Its relationship with s and s’ is expressed by Eq. 1. It is not difficult to find that each kind of finish has a transfer model generated by the spectrum of the training set.

(1)

Next, the classifier SVM was trained and obtained through the original spectral reflectance curve of the training set without finishes. Finally, when encountering wood sample coated with finish, the transfer model can be used for correction. Assuming that an unknown sample coated with finish is denoted as te, the correction can be carried out in Eq. 2, and the corrected spectra can be sent to the SVM classifier for classification. Here TSF-1 in Eq. 2 represents the process of correcting with transfer model Ts, and the correction result is denoted as te.

(2)

Currently, the commonly used transfer models include direct standardization (DS) and piecewise direct standardization (PDS) (Tan and Brown 2001). In this paper, the DS algorithm was used to correct the wood spectrum with coating finish. The main idea of this algorithm is to establish the mapping relationship between the original spectrum and the spectrum with coating finish.

Let the original spectrum of wood species collected by the spectrometer be X0, and the corresponding spectrum with finish be Xf. The dimensions of X0 and Xf are both n x m; where n represents the number of samples, whereas m represents the spectral dimension. The relationship between X0, Xf and transformation matrix F can be established by using Eq. 3. The transformation matrix F can be solved in Eq. 4.

(3)

(4)

Since the number of samples n and spectral dimension m are not necessarily equal, it is not feasible to directly solve the inverse matrix of Xf. Therefore, the in Equation (4) represents the generalized inverse matrix of Xf.. This matrix can be solved by Moore-Penrose’s solution for generalized inverse matrix (Barata and Hussein 2012). The specific solution is shown in Eq. 5, where inv(A) represents solving the inverse matrix of square matrix A, and the size of the generalized inverse matrix generated is m x m.

(5)

Assuming that the spectral reflectance matrix corresponding to the unknown wood sample coated with one finish is XT, the F matrix can be used to correct the XT through Equation (6), and the corrected can be obtained.

(6)

Through the above-mentioned procedure, the transfer models of 8 kinds of finish can be established, respectively. The spectral curve of wood sample coated with one kind of finish can be corrected by using this transfer model so as to improve the classification accuracy.

Fig. 5. Spectral reflectance before and after correction; a. NIR band; b. VIS/NIR band

Figure 5 shows the original spectrum of Acer pictum wood species, the spectrum with finish without DS correction, and the spectrum with finish after DS correction. Figure 5(a) corresponds to the NIR spectral curve, whereas Fig. 5(b) VIS/NIR spectral curve. It can be seen that the spectral curve with finish without DS correction exhibited a large difference from the original spectral curve. However, the difference between the spectral curve with finish after DS correction and the original spectral curve was significantly reduced.

RESULTS AND DISCUSSION

Wood Species Classification Using Original Spectral Curve

In this section, the influence of wood surface finishes on classification accuracy will not be considered, and the original spectrum without coating any finish on wood surface will be used. Five different dimension reduction methods and the SVM classifier were used to classify wood species. The K-folding method in cross-validation was used here (Refaeilzadeh et al. 2009) with which is determined using the grid search. All program design and data analysis were implemented in MATLAB 2019B in this paper.

Figure 6(a) shows the classification accuracy of the original spectral classification collected by the FLAME-NIR spectrometer. It can be seen that the MDS and PCA methods achieved good classification effect, while the other three-dimension reduction methods were not particularly good. The classification accuracy leveled off approximately when the spectral dimension was larger than 8. Figure 6(b) shows the original spectral classification accuracy collected by the USB2000+ spectrometer. It can be seen that MDS and PCA methods still achieved better classification effects. Moreover, Fig. 6 shows that the classification accuracy of NIR spectra collected by FLAME-NIR spectrometer was higher than that of VIS/NIR spectra collected by USB2000+ spectrometer. The reason is that the visible spectral band is often influenced by the radian illumination, wood sample’s water content, and its cutting procedure.

Fig. 6. Classification accuracy of the original spectrum; a. NIR band; b. VIS/NIR band

Table 3. Best Dimensions and Highest Classification Accuracy

The highest classification accuracy of spectral curves collected by two spectrometers in view of different spectral dimension reduction methods is given in Table 3. The classification accuracy without any dimension reduction is also shown in Table 3 for comparison. If spectral dimension reduction was not carried out, the classification accuracy was the best. However, such an approach takes a lot of computing time, so it is necessary to carry out the dimension reduction.

Influence of Wood Surface Finishes on Spectral Classification Accuracy

This section covers the spectral classification accuracy of wood surfaces coated with finishes by SVM classifier trained with the original spectral dataset without coating finishes. In Fig. 7(a), the classification accuracy of VIS/NIR spectra is given, whereas in Fig. 7(b), that of NIR spectra is given. For the 5 spectral dimension reduction methods, the optimal spectral dimension is used, as in Table 3.

 

a

b

Fig. 7. Classification results of spectral reflectance of different film forming substances; a. VIS/NIR band; b. NIR band

Neither VIS/NIR spectra nor NIR spectra was able to be used to classify wood species when coated with finishes. Figure 7 shows that the highest classification accuracy was less than 32%. The classification accuracy of the finish 8 was close to 5%. The main reason is that the similarity between the spectrum of finish 8 and that of wood surface is too low. Table 4 shows the optimal dimension reduction method and its corresponding classification accuracy with 8 different finishes. It can be seen that the classification accuracy of finishes 1 to 7 was between 15% and 30%. The PCA and MDS dimension reduction methods achieved higher classification accuracy.

Table 4. Highest Accuracy and Dimensionality Reduction Method with Film Forming Material