Introduction

Microscope observations of wood show that for each wood species cells of various sizes and shapes are arranged in identifiable patterns [1, 2]. The differences in cell arrangements can be identified from the distribution of the cell walls. The pattern of its distribution determines the characteristics of the wood species. If the cell wall is densely packed, wood density simply increases and strength and dimensional changes increase as a result [3]. Moreover, woods of almost the same density show substantially differences in stiffness and shrinkage [4, 5]. We must be able to evaluate quantitatively not only the amount of cell walls but also their distribution patterns.

The Fourier transform analysis of images introduced by Fujita and coworkers is a noteworthy method for assessing the cell-wall distribution quantitatively [6, 7]. From the power spectrum that is outputted in the fast Fourier transform processing of the dot map of the cell centers, they evaluated the cell arrangements and reconstructed the cell shapes for various wood species [8,9,10,11,12,13,14,15]. Fundamentally, let \(\{{e}_{1},{e}_{2},\ldots ,{e}_{n}\}\) be an orthonormal basis for a vector space V of finite dimensions, where n is a positive integer. Then every f in V is uniquely a linear combination \(f=\sum {f}^{i}{e}_{i}\) with \({f}^{i}\) an element of a real number space R. Let \({F}^{i}:V\to {\text{R}}\) be the linear function that picks out the ith coordinate, \({F}^{i}(f)={f}^{i}\); that is, \({F}^{i}\) is characterized by

$${F^i}({e_j}) = \delta _j^i = \left\{ {\begin{array}{*{20}{c}} 1&{{\text{if}}\quad i = j;}\\ 0&{{\text{if}}\quad i \ne j.} \end{array}} \right.$$
(1)

The coordinate functions \({F}^{1}, {F}^{2}, \ldots , {F}^{n}\) then form a basis for the dual space of V, denoted V* [16]. The Fourier coefficients are simply the coordinate functions and therefore a two-dimensional image data can be identified with a point on Rn, denoted \(({f}^{1},{f}^{2},\ldots ,{f}^{n})\). This perspective plays an important role in the following discussion.

A given wood can be characterized not only by the anatomical features but by many other properties, such as wood density, mechanical properties, and chemical components. In other words, a wood can be defined as a point in Rn, an n-tuple of numbers \(X=({x}^{1}, {x}^{2},\ldots ,{x}^{n})\). Because wood properties are more or less interrelated, we should evaluate inclusively how multiple characteristics change in relation to the others. Fujimoto suggested a comprehensive method based on the distribution of eigenvalues to evaluate the variation of multiple wood characteristics [4, 5]. In this method, the n-dimensional data obtained from a wood sample is regarded as a state vector representing the physical aspects of the system. Given the advances of measurement technology, the multi-dimensional data of woods can be easily measured for instance from their electromagnetic spectra [17,18,19]. Although the data variables do not exhibit a one-to-one correspondence with the wood properties, a number of studies have demonstrated that such indirect information can provide the basis for an evaluation of various properties of wood [20,21,22]. The statistical model obtained in these studies can be regarded as a covector, that is, a mapping from V to R (ω: V → R) [16]. The set of all covectors on V forms a dual space V*, which has no essential difference except for the basis. The indirect information can be used to evaluate the actual variations in wood properties comprehensively if they exhibit this dual relationship.

In the context of physics [23, 24], the set of eigenvalues from the data matrix can be identified with the energy of the system and subsequently wood variations can be also analyzed from the perspective of thermodynamics and statistical mechanics [25, 26]. Energy is the one of the most important physical quantities as it appears as a conserved quantity in a wide range of physical systems from thermodynamics to field quantum theory [27]. The evaluation of wood variations based on energy, that is, stochastic energetics [28], would give a completely new perspective on wood science.

We examined the variation in shrinkage using the set of eigenvalues calculated from the near-infrared (NIR) spectral matrix [5]. As discussed later, woods having almost the same density often show substantially different behaviors in shrinkage despite the interaction with water occurring only at the cell wall. The variation in shrinkage is mainly affected by two factors: the distribution pattern of (i) the cell walls in wood and (ii) the molecular structures in the cell wall [1, 3, 29]. The previous study revealed that the second factor is well explained by the eigenvalues of the NIR spectral matrix [5]. In the current study, the first factor, specifically, that which concerns the effects of the distribution of cell wall on shrinkage, was examined in an eigenvalue analysis. The spectrum obtained from the Fourier transformation of a microscopic image from a cross section of wood was used as the multi-dimensional data. We ensured that this method is independent of the sources of the multi-dimensional data.

Experimental

Materials and shrinkage tests

Sample materials were obtained from 50-year-old Japanese larch (Larix kaempferi) stands in Tottori University Forest located in Maniwa, Okayama. Detailed information about the origin and processing procedures of the sample was described in our previous article [5]. In brief, a total of 155 samples of dimensions of 20 mm × 20 mm × 20 mm were cut from 20 trees and were used in measuring dimensional changes. The specific characteristics of the dimensional changes evaluated were the tangential shrinkage of samples under green to oven-dry conditions, because results obtained from the following analyses were similar in any structural direction of wood. All testing procedures employed conform with the standards set in JIS-Z-2101:1994 [30]. Wood densities were measured under green, air-dry, and oven-dry conditions.

The scatter plot depicting the relationship between shrinkage and wood density under an air-dry condition (Fig. 1) shows a positive linear correlation, albeit very weak (correlation coefficient = 0.69). About twice the difference was found even in samples having similar wood densities (0.585 ± 0.015 g/cm3, gray rectangle area). Twenty samples with similar wood density were then divided into two groups; the first was the low shrinkage group, ranging from 6.20 to 8.90% (mean 7.77%), and the other was the high shrinkage group, ranging from 11.10 to 12.15% (mean 11.52%). Both groups had ten samples.

Fig. 1
figure 1

Relationship between shrinkage and wood density under air-dry conditions. Black line indicates the regression line. Samplings of similar wood density were performed from within gray rectangle area. Typical optical micrographs of the transverse section are depicted for the low and high-shrinkage samples. Scale bars represent 5 mm

From the optical micrographs of the transverse section, the transition from earlywood to latewood gradually changed for the low-shrinkage samples; the high-shrinkage samples showed a narrow ring width and a distinct transition from earlywood to latewood. Obvious differences seen in the distribution pattern of cell walls were examined quantitatively and are described next.

Image analysis

Transverse sections, 20 μm thick, were cut from one representative sample in both low and high-shrinkage groups using a sliding microtome. The sections were stained in aqueous safranin and mounted permanently. Image data were captured using a digital camera with a light microscope attached. Consecutive images with field-of-view sizes of 0.5 (T) × 0.4 (R) mm (2560 × 1920 pixels) were collected for four radial rows and a total of 100 images per section were obtained. The procedures employed in the image analysis (see Fig. 2) involved loading each image into a computer and applying a histogram-based grayscale binarization (Steps 1 and 2). Then, the matrix data of the binarized image was transformed to a vector data (Step 3). A rectangle-pulse signal modeling a Poisson process was chosen to represent the regularity of the cell wall or lumen. To reduce the computation time, the vector transformation was conducted over a limited area of 500 × 500 pixels located in the center of the image. The length of this vector is then 250,000. Finally, the power spectral density was estimated from the spectrum computed using the fast Fourier transform (Step 4). Image acquisition and data processing were performed using the ‘imager’ [31] and the ‘tuneR’ [32] packages in R ver. 3.3.2.

Fig. 2
figure 2

Procedure of the image analysis for the distribution pattern of cell walls

Eigenvalue analysis

The data analysis procedure is the same as that given in our previous reports [4, 5] except for the origin of the spectrum. With the 100 images obtained per section, we conducted an eigenvalue analysis using matrix data comprising the 100 power spectra. In brief, an eigenvalue decomposition was applied to the variance–covariance matrix C calculated from the spectral matrix A (C = ATA). The eigenvalue problem is solved by maximizing the quadratic form \({{\varvec{u}}}_{i}^{\mathrm{T}}{\varvec{C}}{{\varvec{u}}}_{i}\) with respect to eigenvector \({{\varvec{u}}}_{i}\) (i = 1,\(\ldots \), N) [23, 24]. The set of eigenvalues \(\{{E}_{1},{E}_{2},\ldots , {E}_{N}\}\) is regarded as belonging to an energy function, termed the Hamiltonian H. Once H is defined, a distribution function Z can be calculated:

$$Z=\sum_{i=1}^{N}\text{exp(}-\beta {E}_{i}),$$
(2)

where β is called the inverse temperature. Thermodynamic functions such as the Helmholtz free energy and entropy can be obtained from the distribution function. With these thermodynamic functions, we compared the distribution patterns of the cell wall for the low and high-shrinkage wood groups.

Results and discussion

Spectral variation

Figure 3a depicts an example of typical power spectra, an enlargement of which is shown in Fig. 2; the blue and red lines indicate the spectra from earlywood and latewood, respectively. The intensities in the spectrum of the earlywood are slightly higher than those for latewood. Both spectra repeat every 500 Hz, probably because of the transformation from matrix to vector. For this reason, the following analyses are focused on the restricted frequency interval from 1 to 500 Hz with the aim to reduce the computational complexity. In normal spectrum analysis, the peak intensity of a specific frequency is often of most interest. In this study, however, we examined the spectral variations using statistical mechanics and therefore do not consider the spectral variation as individual variables (that is, frequency) separately but rather as a whole for the wood system. Statistical mechanics deals with physical properties of systems that comprise an enormous number of microscopic elements, that is, many-body systems [33,34,35]. Here, we consider the spectral variables abstractly as microscopic elements comprising the wood system.

Fig. 3
figure 3

a Power spectra associated with earlywood (blue line) and latewood (red line). b Simulated samples generated from the mean of the bootstrap samples

Additionally, we assumed the physical system to be in an equilibrium state that conforms to the requirements of equilibrium statistical physics. In this study, the power spectrum is regarded as a state vector representing the physical state of a given wood. To attain the equilibrium state, many spectra that show an almost similar pattern in variation are required. Prior to the eigenvalue analyses, 500 samples were simulated in accordance with the bootstrap resampling procedure [36]. The intensity at each frequency is assumed to follow an empirical distribution of the measured data, and the mean of the bootstrap samples was obtained by repeating the procedure 500 times using the ‘simpleboot’ package [37]. Simulations were performed with the images of earlywood and latewood. Consequently, spectral matrices corresponding to the earlywood and latewood data, each with 500 rows and 500 columns, were obtained for both low and high-shrinkage samples (Fig. 3b) and were used for the following analyses. The elements of the variance–covariance matrix calculated from this 500 × 500 random matrices were assumed to obey a Gaussian orthogonal ensemble [24].

Eigenvalue distribution

From the distributions of the (energy) eigenvalues calculated from the variance–covariance matrix C for low-shrinkage sample (Fig. 4), the eigenvalues from latewood images (panel (b)) are widely distributed compared with those from earlywood images (panel (a)). The same results were found for high-shrinkage sample (Fig. 4c, d). These results indicate that the spectral matrix of the latewood images varied in a more orderly manner than that of the earlywood images. Indeed, the images of latewood were mostly occupied by cell walls and therefore there is no distinctive variation in the distribution of the cell wall.

Fig. 4
figure 4

Distribution of eigenvalues calculated from the spectra of low-shrinkage sample (left column) and high-shrinkage sample (right column). a, c Correspond to the images of earlywood and b, d to those of latewood

Using the distribution function Z (Eq. 2) as a normalization factor, the probability that the system of interest is in the energy eigenstate Ei was found to be

$${p}_{i}=\frac{1}{Z}\text{exp(}-\beta {E}_{i}\text{)}, (i=1,\ldots , N).$$
(3)

Let β be a constant. The distribution of probability pi corresponding to each energy eigenstate (Fig. 5) show that for low (panel (a)) and high (panel (b)) shrinkage samples, pi of earlywood images (blue lines) has a flat distribution compared with that of latewood images (red lines). This suggests that earlywood displays a more disordered pattern of cell wall distribution compared with latewood. As evident from the optical micrographs (Fig. 1), the low-shrinkage samples contain more earlywood area than the high-shrinkage samples; moreover, the former have a more disordered cellular structure than the latter.

Fig. 5
figure 5

Probability distributions corresponding to each energy eigenstate calculated from the spectra of low-shrinkage sample (a) and high-shrinkage sample (b). Blue and red lines indicate earlywood and latewood images, respectively

Stochastic energetics for the distribution of cell wall

The thermodynamic functions were calculated using the set of eigenvalues \(\{{E}_{1},{E}_{2},\ldots , {E}_{N}\}\) to assess the distribution pattern of cell wall quantitatively. The Helmholtz free energy F is given by the logarithm of the distribution function,

$$F=\frac{1}{\beta } \log Z.$$
(4)

The Helmholtz free energy is an important quantity in the sense that it contains all the information of the physical properties of a system. Although both Z and F depend on β, the first eigenvalue E1 of the matrix C can be evaluated from F in the limit β → ∞ [23],

$${E}_{1}=2\underset{\beta \to \infty }{\mathrm{lim}}F\left(\beta |{\varvec{C}}\right).$$
(5)

As evident in the eigenvalue distribution (Fig. 4), for low and high-shrinkage samples, the first eigenvalues, that is, Helmholtz free energy, associated with the latewood images were higher than those of the earlywood images. The high-shrinkage sample moreover featured a large Helmholtz free energy because of the high possession of latewood. This result is associated with the distribution pattern of cell walls evident in Fig. 1 and was consistent with our previous understanding that tangential shrinkage and swelling are largely controlled by the changes in the latewood [1]. Because large dimensional changes seem to involve a lot of work arising from the stress during shrinkage or swelling, the result is also consistent with the actual physical picture. This study dealt with woods having almost the same wood density. Hence, the eigenvalues would carry a lot of information concerning various factors other than wood density that influence shrinkage and provide a comprehensive understanding concerning dimensional changes in wood.

We can next calculate the Shannon entropy S from the results of the probability pi,

$$S=-\sum_{i=1}^{N}{p}_{i}\log {p}_{i}. $$
(6)

Figure 6 shows the variation of entropy S with β. The domain of β was set so that the entropy could be calculated. For both low and high-shrinkage samples, the earlywood images showed larger entropy S than the latewood images. Therefore, the low-shrinkage sample displayed a large entropy because of the high possession of earlywood. These results coincide with the optical micrographs (Fig. 1); specifically, the gradual transition from earlywood to latewood for low-shrinkage samples may be interpreted as a consequence of the distribution of the cell wall being more homogeneous. High-shrinkage samples show low entropy, where the distribution of the cell walls is a well-ordered repetitive pattern from earlywood to latewood. This can be explained from the distribution of brightness in the optical micrographs of the transverse section (Fig. 1). Figure 7 shows Histograms of the luminous intensity of the grayscale micrographs for the low-shrinkage sample (a) and high-shrinkage sample (b). In general, the distribution of brightness shows the bimodality due to the contrast of cell walls and lumen. Sharpness of the peaks were obviously different between the samples. Two peaks were clearly identified in the micrographs of high-shrinkage sample but were spread in the low-shrinkage sample.

Fig. 6
figure 6

Variation of the Shannon entropy with inverse temperature calculated from the spectra of the low-shrinkage sample (a) and high-shrinkage sample (b). Blue and red lines indicate earlywood and latewood images, respectively

Fig. 7
figure 7

Histograms of the luminous intensity of the grayscale micrographs (Fig. 1) for the low-shrinkage sample (a) and high-shrinkage sample (b)

The physical approaches proposed in this study is suitable for evaluating phenomena where many factors contribute to a system cooperatively rather than individually [33,34,35]. As mentioned above, a wood may be regarded as a physical system with multiple degrees of freedom. Based on this suggestion, it seems that the spectral variables are like generalized coordinates in analytical mechanics [33]. That is, we consider the variation of data points as if they were the movements of a point particle in configuration space. Actually, in the Hamiltonian Monte Carlo method in simulating the posterior distribution, we consider the model parameter space of the probability distribution to be a configuration space and evaluate the potential energy using the logarithm posterior distribution [38]. Although the power spectra of image data were used in this study, the data from wood can be arbitrarily selected as long as they are multi-dimensional and spectral-like in this way of thinking. The proposed concept for considering the wood variation thus has very widely applicability.

Conclusions

Depending on the magnitude of the dimensional changes, obvious differences were found in the distribution patterns of cell walls in wood samples. The set of eigenvalues representing the energy states of the system can provide an evaluation of the distribution of cell walls in wood. The dimensional changes in wood are complex phenomena involving many factors. The approaches proposed is useful for evaluating phenomena in which many factors contribute to a system cooperatively rather than individually, and as it has no dependence on data type it has wide applicability. Because the idea is supported by universal theories of various physics fields, wood variations should be discussed from a more general perspective.