1. Introduction
Traceability of wooden logs is a recent topic of research, as customers are getting more interested in the origin of their products. This led to certificates like the one of the Forest Stewardship Council [
1] or the Program for the Endorsement of Forest Certification [
2] that are documenting the sustainable production of wood. Even more legal actions and agreements like the European timber regulation EUTR No. 995 2010 [
3] were developed. This was done to claim disclosure of the provenance of timber and timber products that are placed on the European market in order to impede deforestation and illegal trading of timber. The availability of unambiguous tracking methods for logs from forest to forest products industries will guarantee the database for process analysis and process optimization and can therefore be seen as a necessity for further development. This topic is in the view of recent research all over the world and even scientific hackathons are organized (e.g., the Evergreen innovation camp 2019 in Vienna [
4]) to solve the question of traceability of wood from the forest to the related industry. Different methods of log tracking systems were investigated in the past and they reach from the application of barcodes up to the usage of radio frequency identification (RFID) transponders (e.g., [
5] or [
6]), but tracking systems are only used for relatively high priced lumber up to now, due to technical and economical shortcomings when these systems are applied for rather inexpensive mass round wood. In this paper the main approach is based on inherent properties of a log based on biometric log end face characteristics as shown in [
7,
8,
9,
10]. The usage of log characteristics for tracking logs is not a new idea, e.g., in [
11] and [
12] surface properties of wood logs were used for identification and in [
13] and [
14] additional measurements with tracheid effect and X-ray were used. These applications can be used successfully in the sawmill environment, but they are not applicable on the forest site. In other research it was found that the log end faces contain a lot of information that can be used for biometric purposes [
15,
16,
17]. To be successful on the forest site the measurement equipment has to be simple and insensitive to surrounding mechanical and other physical disturbances. For these reasons in [
18] the application of commercial action cameras, which can be used in harsh environments, to collect log end images in the forest were tested. It was shown that the collection of images was satisfying in the forest, but the log end faces changed significantly during transport. Dirt accumulation, mechanical damages and color changes on the log end surface occurred during transport conditions. Based on these findings the following assumption is derived.
It is assumed that a hyperspectral image which contains not only the visible spectra, but depending on the technology also parts of the ultraviolet (UV)-spectra and near infrared (NIR) spectra, will be able to improve the detection of significant parts of log end faces.
The usage of hyperspectral imaging technologies ranges from large scale imaging down to lab scale sensors used in food safety, pharmaceutial applications forensic, etc. (examples are shown in [
19] or [
20] ) and therefore is very common in use. One main tasks for the successful application of these technologies is the development and usage of sophisticated analysis technologies for the given data quantities. e.g., [
21] give an overview of main tasks and methods for hyperspectral remote sensing data analysis and in [
22] the concept of active learning methods to improve data analysis models are shown. These papers show the direction of actual developments in the field of hyperspectral image analysis.
For wooden log tracking these hyperspectral methods are not investigated up to now, but results of other research groups (e.g., [
23,
24] or [
25]) let assume that hyperspectral images might overcome the problems of the conventional methods as well as the shortcoming of the research approaches shown above.
Following this assumption, it is from special interest which spectra contains different information compared to other spectra, or the other way around, which spectra contain the same information than others. This knowledge is crucial to reduce the technical efforts and expenses while collecting the data in the forest. Within this paper a method is shown, which is able to calculate distance measures between different spectral images of complex shaped wooden log end faces. This enables the investigation of spectral ranges which contain different information and are thus valuable to improve image acquisition for fingerprint methods in the future.
2. Materials and Methods
2.1. Wood Samples
Initially, 100 different Norway (Picea Abies) spruce logs logs (.5 m length) were collected on 24 and 25 September2018 in a grove near Corcieux, France (48.1968 N; 6.8869 E). Since the logs were selected from piles, it is not possible to know which logs belong to the same tree. Norway spruce was chosen for this study as it is the main tree species in Austria. These logs were transported to Freiburg in Germany where they were used for further data acquisitions. For the experiments in this paper a wood disc was cut from the lower end of each log. The outside of each disc was sanded with a mesh width of 120 to reduce the influence of manual chainsaw cuts at scanning. This mesh width was chosen as it gave good results for the wet samples. To avoid surface cracks due to wood shrinkage and discoloration due to oxidation processes the slices were packed individually in plastic bags during transport and intermediate storage.
2.2. Scanning System
The samples were scanned at Stemmer Imaging in Munich by two pupils of the Holztechnikum Kuchl, which used two different multispectral line scanners. The first scanner was a so called Specim FX10, which scans the spectra between a wavelength from 445 nm to 983 nm with a bandwidth of approx. 3 nm. The second scanner was a Specim FX17 which provides scans between 990 nm to 1665nm also with a bandwidth of approx. 3 nm. Therefor the Specim FX10 uses mainly the visible light (VIS) spectra and the Specim FX17 uses mainly parts of the NIR spectra. For the scanning setup a resolution of 640 × 640 pixel was chosen. The scanning system is shown in
Figure 1a—Halogen light was used for lighting. Each wood disc was scanned with both cameras. For this purpose, each disc was pushed through the system by hand and the speed was synchronized with a trigger. The hyperspectral data, i.e., the translation from line scanning data to a hyperspectral cube, was performed by the acquisition software Perception Studio.
3. Image Analysis
The hyperspectral data (captured with the FX10 or FX17 camera) from each disc were stored in a special format (HSD—hyperspectral data) utilized by Perception Studio. A HSD file contains all spectral bands of a disc in kind of of a hyperspectral cube. It was necessary to convert the data to the ENVI format for which open source image processing libraries are available. Subsequently, for each hyperspectral cube the grayscale images (PNG) for each band were extracted and are denoted as cross-section (CS) images. In case of the FX10 this results in 202 CS-Images and for the FX17 in 196 CS-Images per wood disc. This conversion enables to apply standard image processing algorithms.
For each camera, CS-Images for selected bands of wood disc #E001B are illustrated in
Figure 2. It can be recognized that the width of the wood disc for the FX10 and FX17 images differs. We assume that this is caused by the acquisition software and an inaccurate trigger synchronization. In order to assess the similarity between different CS-Images, i.e., to compute distance measures between CS-Images, biometric features for each CS-Image are computed. Biometric features of a CS-Image are denoted as templates. Template computation is performed in two consecutive steps: CS-Registration and Feature Extraction which are described, subsequently.
3.1. CS-Registration
Initially, the CS area in each CS-Image needs to be localized, i.e., segmented from the background. For this purpose, the feature-based segmentation approach by [
26], which is based on a combination of superpixels and GraphCut regularization, was utilized. For our experiments we utilized the Python code (
https://borda.github.io/pyImSegm/) provided by the authors. Color features were utilized and each CS-Image was segmented into two labels in order to segment fore- and background.
Figure 3a,b show exemplary segmentation results for wood disc #E001B for the first band captured with the FX10 and FX17, respectively. The superpixel clustering is based on Simple Linear Iterative Clustering (SLIC) for which we utilized a superpixel size of 40 pixel and for the regularization parameter a value of
. The segmentations are computed using the variant where the Gaussian Mixture Model (GMM) is created from a set of images, in our case from all CS-Images of a band and camera. Each segmentation result was further processed in order to remove holes and to select the largest area for which the concave hull was determined. The concave hull coordinates were stored for each CS-Image.
All computations which are described subsequently, were performed using Java code which was was developed in the context of the respective publications and extended for this work. For specific details, we refer to the referenced publications. Same as in previous works (e.g., [
10]), biometric templates of CS-Images are computed in order to assess the similarity of CS-Images of a wood disc captured at different wavelengths. Therefore, the CS is registered to a unique position in terms of rotation and scale. The pith position serves as unique reference point and is determined using the approach proposed in [
17]. Local orientation estimates and their intersections are utilized to determine a candidate for the pith position. Local orientation estimates are computed in the segmented CS area. In
Figure 4, the pith estimation results for wood disc #E001B captured with the spectral camera FX10 and F17 are shown in the first and second row, respectively. Furthermore, the center of mass (CM) is computed and the pith position to CM vector is used to rotationally align the CS to the horizontal axis as shown in images of the first and second column of
Figure 4. Rotated images are scaled to a width of 400 pixels which results in a registered CS-Image. Consequently, for all registered CS-Images the pith to CM boundary vector has a fixed length of 200 pixels. This differs to the width utilized in our previous works due to the lower image resolution provided by the spectral cameras. Furthermore, our feature extraction approach is based on a circular grid as described in the next section.
3.2. Feature Extraction
As in [
10], the texture-feature based approach by [
27] is adopted and extended to compute and compare CS-Codes from CS-Images. Thus, the Gabor filterbank is extended to six different filters based on the following parameters:
.
is the filter wavelength,
represents the orientation,
is the standard deviation and
specifies the filter aspect ratio. This filterbank enables to capture the annual ring pattern frequency and orientation in local regions.
For feature extraction, the Gabor filterbank is applied to the local image regions of the registrated CS-Image, predefined by the circular grid as shown in the images in the right column of
Figure 4.
Only local image regions within the CS area are processed. For each local region the Gabor filterbank is applied which results in a filter response for each filter. For each filter response the standard deviation is computed which leads to a feature vector with 48 standard deviation values per local region. Finally, the biometric template of a CS-Image is composed by all feature vectors computed for the local regions in the circular grid. Feature vectors of local regions outside the CS are set to NULL. Note, that in previous works a rectangular grid was utilized. This should have less impact on the biometric templates but is suited to reduce the size of the biometric templates because a large amount of background region is ignored while the shape information still is part of the biometric template.
3.3. Template Matching
In [
8], three different matching procedures have been introduced. Note, that for this work no rotation compensation in the matching procedure is required. There are no rotational variations to compensate for. The first matching procedure of [
8] which is focused on annual ring pattern information is utilized. This procedure is denoted as an annual ring pattern matching score (MS
). The aim of the other two procedures is to include shape information and the results in [
8] confirmed the positive impact in terms of discriminative power resulting in a higher recognition accuracy. We are mainly interested in changes of the textural information shown at different wavelengths and thus shape information is not valuable. MS
for two CS templates is computed by
where
are two feature vectors of the CS-Codes which are compared,
i specifies the index of the local region. As distance function (
D) the L1 norm is utilized which outperformed the L2 norm in a previous work [
28]. The distance function (D
) ignores feature vector pairs which are not in the intersection of both CSs. In the current implementation this is the case if one of both feature vectors is set to NULL. For normalization,
M is defined by the amount of considered feature value pairs.
4. Experiments and Results
For the experimental evaluation for all spectral CS-Images of each wood disc, captured with FX10 or FX17, biometric templates were computed. For each wood disc and the captured spectral CS-Images with a camera, the segmentation result computed for the first band (FX10 = 444 nm, FX17 = 990 nm) and the group segmentation model is utilized for all other spectral CS-Images. In the exactly identical way the pith is estimated for the segmented CS-Image from the first band and utilized for the remaining.
This ensures that all CS-Images of a wood disc captured with a camera are registrated in the exact same way. This is crucial in order to avoid side affects caused by varying segmentation and pith estimation results. Furthermore, for some bands CS segmentation is very difficult and pith estimation is impossible due to the absence of a clear annual ring pattern (see
Figure 2). For feature extraction, a local region size of 16 pixel was utilized and biometric templates were computed for all CS-Images.
Matching scores were computed for all pairs of biometric templates from each wood disc captured with a camera. In human biometrics scores computed between templates of one individual are are referred to as intraclass scores. Interclass scores are computed between templates from different individuals. For this work, we denote intraclass scores which are computed between templates from on individual but different bands as spectral scores. Interclass scores are computed between biometric templates from different wood discs for the same band.
Based on the spectral scores, the similarity and non-similarity of different spectral bands is analyzed. The interclass scores for each band enable to draw conclusions on the suitability of the different bands to discriminate between different wood discs. The overall mean spectral distances of all pairs of spectra for 100 wood discs of each camera are shown in the distance matrices of
Figure 5. This distance matrix is calculated for all CS’s hence it can be seen if the spectral score between different spectra bands can be observed for all CS’s or not.
The matrices in
Figure 5 are symmetric and bright areas indicate that the feature vectors between two spectra bands are similar while dark areas indicate that feature vectors between two spectra bands are different. In
Figure 5a,b the results for one specific CS-image (#E001B) are shown and compared to the mean values over all CS-images in
Figure 5c,d. Based on this matrix for the spectral camera FX10 (see
Figure 5c) two different spectral ranges are estimated by visual inspection. These are the spectral ranges from 450 nm to approx. 740 nm and from 740 to 950 nm. These two ranges seem to show different features, as the feature vectors are different. For the spectral camera FX17 (see
Figure 5d) it is estimated that there are three different spectral ranges (from 900 nm to 1150 nm, from 1050 nm to 1360 nm and from 1360 nm to 1800 nm) where the feature vectors show different values based on the matching score.
To get an impression about the usability of different spectral bands for log traceability the mean interclass scores per band for all CSs are shown in
Figure 6. Note that no normalization has been applied. A high mean-interscore expresses that the matching scores between CS-Images from different wood discs are high and the wood discs are not similar to each other. A low mean-interscore shows that different wood discs are very similar to each other which is a problem for a biometric system.
The higher the mean-interscore, the more discriminative are the CS-Images of the 100 discs in the chosen spectral band, i.e., if this value is high, this spectral band is good to identify different log end faces. Based on the interclass-scores in
Figure 6, it seems that the NIR spectra (>760nm) are much better for detecting different log end faces as the interclass scores are much higher for the spectral bands of spectral camera FX17 compared to the spectral camera FX10. Furthermore, approx. five local maxima can be expected out of the mean-interscore plot, two for the spectral camera FX10 and four for camera FX17 while one peak appears in the crossing spectra measured by camera FX10 and camera FX17 and is only counted as one. The wavelength at the peaks in the NIR spectra correspond to specific overtones of OH-bond and CH-bond vibration modes what allows a chemical interpretation of these observations.
5. Conclusions
The results of the spectral analysis showed that log end face images improved with hyperspectral camera systems in the spectral range between 400 nm and 1800 nm lead to different images. This supports the assumption that it is possible to gain additional information about one log end face if images in different spectral ranges are taken.
The fingerprint related method of feature extraction was applied successfully which led to specific feature vectors per image. These vectors are the basis to calculate pattern matching scores. The matching scores are used to investigate the similarity of spectral bands per log end face and the differences between the different log end faces per spectral band. The following observations were made for the investigated samples: In the spectral range between 450 nm and 1000 nm two intervals to gain different spectral images were observed and in the spectral range between 1000 nm and 1700 nm three intervals to gain different spectral images were observed. Based on this observation, it is assumed that up to 5 spectral bands (one of each spectral range) contain most of the information within the feature vectors. This assumption is supported by the results of the interscores between the log end faces per spectra. Here it can also be seen that the differentiation between logs takes local maxima in five different spectral band regions. There is evidence that the NIR spectra create a better distinction between different log end faces than the visible spectra. The objective of this study was the development of a methodological basis to use hyperspectral images for log tracking. The results are promising for the development of a system based on the methods described, but it is not possible to derive an overall valid model for Norway spruce wood (picea abies [L.] Karst.) or other wood species from this specific sample.
Nevertheless, the method shown is applicable to use hyperspectral imaging for different wood samples and species and we invite different research groups in log tracking all over the world to work on this approach to develop the basis for a globally accepted log tracking system, as wood trade is a global issue.
Further investigations should and will focus on following questions:
More detailed analysis on the ’best’ spectral bands for the camera system. It is assumed that cameras which works in two up to four different spectral bands will be applied in the future.
Usage of wood log end faces from different locations and different wood species to be able to work in practical surroundings.
Development and implementation of statistical process control methods to optimize the production processes between forest and forest product industries.
Summarizing the usage of hyperspectral images are promising to reach a tracking method for wood logs and the next steps will be from lab scale to field application. Therefore the technical equipment necessary has to be reduced and the analysis algorithms have to be improved. For both tasks the findings in this work are useful and existing results of other fields of research (e.g., algorithms from remote sensing) will be utilized in future research.