Next Article in Journal
Validation of Satellite-Derived Green Canopy Cover in Rubber Plantations Using UAV and Ground Observations for Monitoring Leaf Fall Dynamics
Previous Article in Journal
Unraveling the Spatial Dynamics and Global Climate Change Response of Prominent Tropical Tree Species in Asia: Symplocos cochinchinensis and Beyond
Previous Article in Special Issue
Prediction of Heat-Treated Wood Adhesive Strength Using BP Neural Networks Optimized by Four Novel Metaheuristic Algorithms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting Glossiness of Heat-Treated Wood Using the Back Propagation Neural Network Optimized by the Improved Whale Optimization Algorithm

College of Mechanical and Electrical Engineering, Northeast Forestry University, Harbin 150040, China
*
Author to whom correspondence should be addressed.
Forests 2025, 16(5), 716; https://doi.org/10.3390/f16050716
Submission received: 18 March 2025 / Revised: 12 April 2025 / Accepted: 21 April 2025 / Published: 23 April 2025
(This article belongs to the Special Issue Wood Properties: Measurement, Modeling, and Future Needs)

Abstract

:
The properties of wood change after heat treatment, affecting its applications. Glossiness, a key aesthetic property, is of great significance in fields like furniture. Precise prediction can optimize the process and improve product quality. Although the traditional back propagation neural network (BPNN) has been applied in the field of wood properties, it still has issues such as poor prediction accuracy. This study proposes an improved whale optimization algorithm (IWOA) to optimize BPNN, constructing an IWOA-BPNN model for predicting the glossiness of heat-treated wood. IWOA uses chaos theory and tent chaos mapping to accelerate convergence, combines with the sine cosine algorithm to enhance optimization, and adopts an adaptive inertia weight to balance search and exploitation. A dataset containing 216 data entries from four different wood species was collected. Through model comparison, the IWOA-BPNN model showed significant advantages. Compared with the traditional BPNN model, the mean absolute error (MAE) value decreased by 66.02%, the mean absolute percentage error (MAPE) value decreased by 64.21%, the root mean square error (RMSE) value decreased by 69.60%, and the R2 value increased by 12.87%. This model provides an efficient method for optimizing wood heat treatment processes and promotes the development of the wood industry.

1. Introduction

Many wood species are often used as decorative materials because of their appealing appearance and unique mechanical properties [1]. However, quite a few wood species have drawbacks such as weak biological durability and poor dimensional stability, restricting their application ranges. To address these issues, wood heat treatment, an eco-friendly approach, has gained popularity. It enhances wood’s durability and dimensional stability through short-term pyrolysis at 160–250 °C in a protective gas [2]. This treatment is especially useful in applications where long-term performance is crucial, such as outdoor structures [3]. It reduces maintenance and replacement costs by better resisting environmental factors [4]. Heat treatment also affects wood’s aesthetic properties, including glossiness. Glossiness is important not only for aesthetics but also for inferring wood strength and quality. In the furniture industry, high-gloss surfaces are highly sought-after. Variations in gloss can indicate internal wood structure differences, which may impact strength.
Numerous studies have been conducted on this topic. Zhou et al. [5] investigated the effect of density on color and gloss changes in heat-treated wood. Their results indicated that low-density samples exhibited greater total color and gloss changes than high-density samples following high-temperature heat treatment. Heat treatment reduced color and gloss variation due to density variation in untreated wood, with this effect being further enhanced at high temperatures. Lu et al. [6] examined the effect of measurement angle on gloss at different heat treatment temperatures and times, finding that gloss decreased in both vertical and parallel directions following heat treatment. This finding was corroborated by Gurleyen et al. [7]. Esteves et al. [8] reported changes in surface properties of untreated and heat-treated wood from 75 to 750 h after artificial weathering, observing a decrease in gloss for untreated wood but no significant change for heat-treated wood. Ayata et al. [9] demonstrated that gloss measured both parallel and perpendicular to the grain decreased with heat treatment, with longer treatment times resulting in greater decreases. These results were also obtained by Gurleyen et al. [10]. Bekhta et al. [11] studied the effect of short-term thermomechanical densification on gloss changes for different tree species, finding that densification temperature and pressure had a significant impact on wood gloss. For all species studied, densified wood exhibited increased gloss values with increasing densification temperature and pressure. Salca et al. [12] evaluated the gloss of black alder samples coated with two varnishes and found that samples coated with UV varnish exhibited higher gloss values than those coated with aqueous products in both measured gloss directions. Gloss plays a crucial role in the appearance of various materials and is an important consumer characteristic. High-gloss surfaces are becoming increasingly popular within the furniture industry. As the demand for high-gloss wood finishes grows, predicting the glossiness of heat-treated wood is vital. Since factors like temperature, grain size, pressure, and varnish type influence gloss, a reliable prediction method can optimize heat treatment and ensure product quality.
From the aforementioned studies, it is evident that the relevance between glossiness and heat treatment conditions is nonlinear and complex rather than simply linear, making it challenging to construct an ideal prediction model. Artificial neural network methods can be employed to predict wood gloss without significant time, cost, or effort. These methods possess self-learning capabilities and can rapidly identify optimal solutions. Artificial neural networks have been widely applied within wood science for predicting moisture content in wood, fracture toughness, and mechanical properties such as surface roughness and bond strength [13]. Due to their outstanding nonlinear mapping capability and adaptable network structure, the BPNN has been utilized especially extensively in heat-treated wood [14]. Chen et al. [15] used BPNN model to predict changes in equilibrium water content of wood due to heat treatment, while Yang et al. [16] employed BPNN to forecast the mechanical characteristics of timber that had been heat-treated. Chai et al. [17] utilized BPNN to predict variations in moisture level as wood was dried using a high-frequency vacuum. However, the BPNN is not without its limitations. It exhibits slow learning speed, is prone to becoming trapped in local minima, and possesses limited network generalization ability which restricts its practical engineering applications.
Meta-heuristic algorithms, as a class of optimization techniques that mimic natural phenomena or biological behaviors, are often used to optimize neural network parameters. Examples include the genetic algorithm (GA) [18,19,20], beluga whale optimization algorithm (BWA) [21], and the whale optimization algorithm (WOA) [22]. Among them, the WOA has gained widespread application due to its relatively simple structure and strong global search ability [23]. Inspired by the hunting behavior of humpback whales, the WOA can effectively explore the solution space in the early stage of optimization, allowing it to quickly approach the optimal solution region [24]. However, the WOA also exhibits several limitations. It has a slow convergence speed in some complex optimization problems, shows relatively low accuracy in certain scenarios, and has a tendency to get trapped in local optima. For practical engineering problems with high optimization accuracy requirements, further improvements to the WOA are necessary [25].
In summary, this paper proposes an improved whale optimization algorithm to optimize BPNN for wood glossiness prediction and enhance the WOA’s optimality-seeking performance. The IWOA addresses the WOA’s tendency to converge to local optima. The parameters and decision boundaries of the BPNN are optimized using the IWOA to solve issues of slow convergence and imprecise prediction. The model’s performance is evaluated using glossiness measurements from four types of wood. The results demonstrate that the proposed IWOA-BPNN model exhibits significantly higher prediction accuracy than conventional models and can effectively model the relationship between wood thermal modification process parameters and glossiness.

2. Materials and Methods

2.1. The Back Propagation Neural Network

The back propagation neural network’s computational process comprises two stages: forward propagation and backward propagation. During forward propagation, input information is processed sequentially from the input layer through the hidden unit layer to the output layer. The state of neurons in each layer influences only the state of neurons in the subsequent layer. If the desired output is not achieved at the output layer, back propagation commences. In this stage, an error signal is transmitted along the original connection path and minimized by adjusting each neuron’s weights [26]. Figure 1 illustrates this process in detail.
According to Figure 1, the initial parameters of the BPNN are generated randomly. Typically, these parameters are updated using the gradient descent method. Due to this mechanism, the BPNN is greatly affected by its initial weight values, which can make the algorithm more challenging to solve and increase convergence time. However, employing the IWOA to optimize the initial weights and thresholds of the BPNN can enhance its stability and accuracy [27].

2.2. The Whale Optimization Algorithm

The Whale Optimization Algorithm is a population intelligence optimization algorithm introduced by Mirjalili et al. in 2016 [28]. This novel algorithm emulates the feeding behavior of humpback whales [29]. Unlike other whales, humpback whales lack teeth and cannot hunt large prey. Consequently, long-term evolution has resulted in their unique bubble net feeding style. In the WOA, this iconic hunting style is modeled as three processes: encircling prey, spiral bubble-net feeding maneuver, and search for prey.

2.2.1. Encircling Prey

During the optimization process of the algorithm, each individual’s position represents a solution searched by the algorithm in space. To accurately locate the optimal solution while performing the optimization task, each individual generated by the algorithm begins exploring near its initial position. The individual with the best fitness value in the current population is assumed to be the target prey, and other whales update their positions accordingly. The mathematical model for this stage is shown in Equations (1) and (2).
X t + 1 = X * t A D
D = C X * t X t
where t indicates the current iteration; X indicates the position of the individual whale; X * indicates the position vector of the best solution obtained so far; and A and C are coefficient vectors, and they are calculated as Equations (3)–(5).
A = 2 a r 1 a
C = 2 r 2
a = 2 2 t T m a x
where r 1 and r 2 are random numbers that obey a uniform distribution between [0, 1]; a is a linearly decreasing vector, being the regulation parameter that decreases from 2 to 0 with increasing number of iterations; and T m a x represents the maximum number of iterations set in the algorithm.

2.2.2. Bubble-Net Attacking Method

In mathematical modeling of humpback whale foaming net feeding behavior, both the contracting envelope mechanism and spiral update position are simultaneously employed. The contracting envelope mechanism of the whale group is simulated by altering parameter a . Given that the value range of A in the algorithm is [−a, a], when A falls between [−1, 1], each individual’s position at generation t + 1 X t + 1 lies between its position at generation t X t and the global optimal position at generation t (X×(t)). This approach effectively encircles prey, as demonstrated in the following mathematical model.
X t + 1 = D e b l c o s ( 2 π l ) + X * t
where D = | X * ( t ) X ( t ) | denotes the distance between each individual and the individual at the optimal position at generation t; b represents a constant in the spiral progression equation of the whale group and its value is 1; and l is a random number that takes values in the range [−1, 1].
In pursuit of a target, individual whales employ two strategies: narrowing the envelope and spiraling forward. To facilitate simultaneous use of these approaches during optimization tasks, the probability of selecting either strategy is set to 50% in our model. This is mathematically represented in Equation (7).
X t + 1 = X * t A D                                                                 p < 0.5 D e b l cos 2 π l + X * t                             p 0.5
where p is a random number and follows the [0, 1] distribution.

2.2.3. Search for Prey

During the search for an optimal solution, when the value of parameter in the algorithm satisfies | A | 1, each individual’s position update depends on others’ positions. This update strategy enables individuals to move away from the current optimal solution location. If the algorithm becomes trapped in a local optimum, this approach may increase the likelihood of escaping that region. This is mathematically represented in Equations (8) and (9).
D r a n d = C X r a n d t X t
X t + 1 = X r a n d t A D r a n d
where X r a n d is the location of the randomly selected individual whale at generation t.

2.3. The Improved Whale Optimization Algorithm

2.3.1. Tent Chaotic Mapping

Chaos refers to complex dynamic behavior exhibited by nonlinear systems that appear irregular and random-like. Characteristics such as randomness and ergodicity can be leveraged to enhance algorithm performance. However, the WOA algorithm’s use of randomly generated data as an initial population can result in uneven distribution, adversely affecting convergence speed and reducing algorithm diversity [30]. To address this issue, we employed Tent chaos mapping to initialize the population. This approach yields a more uniform initial population, expands the search range, and accelerates convergence. The tent chaos mapping function generates chaotic sequences uniformly within the interval [0, 1]. In this model, parameters r 1 and r 2 are randomly generated using this method. This is mathematically represented in Equation (10).
X n + 1 = 2 X n                                     0 < X n < 0.5 2 1 X n             0.5 X n < 1
Tent chaos mapping yields a more uniform population initialization compared to randomly generated initial populations. The experimental results demonstrate that Tent chaos mapping produces relatively uniform system distribution and can be employed to generate an algorithm’s initial solution and enhance population diversity. The distribution of the initialized population is illustrated in Figure 2.

2.3.2. The Sine Cosine Algorithm

The sine cosine algorithm (SCA) is a recently proposed global optimization algorithm that differs from other population-based intelligence optimization algorithms reliant on bio-inspired mechanisms. The SCA features simple knots, robustness, and ease of implementation. It primarily employs the mathematical properties of sine and cosine functions to iteratively find optimal solutions [30]. In the SCA, N represents population size and D denotes individual dimension. The algorithm randomly generates N population positions in space and calculates each individual’s fitness value. The optimal position and corresponding fitness value are determined by sorting fitness values. Individuals update their positions according to Equation (11).
X d i t + 1 = X d i t + a sin r 3 r 4 X * t X d i t             r 5 < 0.5 X d i t + a cos r 3 r 4 X * t X d i t             r 5 0.5
where X d i is the position component of the d-th dimension of the i-th individual in the t-th generation, and X * ( t ) is the current optimal position. The parameter a governs search direction and changes according to Equation (5). The random number r 3 drawn from the interval [ 0 ,   2 π ] controls the algorithm’s search distance. The random number r 4 drawn from the interval [ 0 ,   2 ] and r 5 drawn from the interval [0, 1] determine whether position updates in generation t + 1 occur via sine or cosine functions.
In the whale optimization algorithm, assigning the position with the best fitness value to the whale swarm leader at each iteration can cause the algorithm to become trapped in local optima, reducing optimization search accuracy. In contrast, the SCA can randomly select sine cosine cross-seeking optimization, allowing position updating methods to complement one another and better balance global exploration and local exploitation. This enables SCA to gradually converge and hover near target solutions. In this paper’s proposed sine cosine whale optimization algorithm, instead of proceeding directly to subsequent iterations, the current leader position is recorded after sorting to preserve superiority. Each individual’s position is updated according to Equation (11) using sine or cosine functions. The fitness value of each individual is then calculated, and a new leader position determined by comparing fitness values. A greedy mechanism is introduced by comparing fitness values between leaders before and after sine cosine operations and updating global optimal positions before proceeding to subsequent iterations. Notably, random parameters r 3 , r 4 , and r 5 in the SCA are generated via tent chaos mapping in this paper to accelerate algorithm convergence.

2.3.3. Chaos-Based Adaptive Inertia Weight

In most current swarm intelligence optimization algorithms, weights play a crucial role in balancing global exploration and local exploitation capabilities. Weights reflect the ability of followers to escape previous positions. Larger inertia weights typically enhance global exploration abilities while smaller weights improve local exploitation abilities [31]. Accordingly, this paper proposes using larger weights during early iterations of the whale algorithm to enable whales to quickly approach target values. Smaller weights should be used during later iterations to facilitate precise local search near target solutions. The standard WOA employs fixed weight values for search envelopes and position updates. This paper proposes a chaos-based adaptive inertia weight, as shown in Equation (12).
ω = ω s + ω e ω s log 10 1 + 10 t T m a x
where T m a x denotes the maximum number of iterations set in the algorithm; ω s denotes the initial value of inertia weights at the beginning of the iteration, and its value is 0.4; and ω e represents the value of the inertia weight when the maximum number of iterations is reached, and its value is 0.9. The experimental results demonstrate that the algorithm exhibits superior search capabilities when ω varies between [ 0.4 ,   0.9 ] . As iterations progress, inertia weight decreases nonlinearly from 0.9 to 0.4, enabling dynamic weight changes and better balancing global search and local exploitation capabilities. This also increases the likelihood of escaping local optima to some extent. Considering random whale position vectors selected during prey search phases, this paper presents an IWOA position update formula in Equation (13).
X t + 1 = ω X * t A D                                                           A < 1   ,     p T e n t < 0.5   ω X r a n d t A D r a n d                                       A 1   ,     p T e n t < 0.5 D e b l cos 2 π l + ω X * t                                                         p T e n t 0.5

2.4. The IWOA-BPNN Model

In this study, we employed the IWOA to optimize the weights and thresholds of the BP neural network model. This approach improved the model’s prediction accuracy [32]. The core concept of the IWOA optimization involves using the weights and thresholds in the BP neural network as whale location information. Updating the whale’s location is equivalent to updating the BP neural network’s weights and thresholds until a global optimal solution is achieved [33]. This enhances the BP neural network’s prediction capability and efficiency. By incorporating the IWOA, we were able to dynamically optimize the weights and thresholds of the BP neural network to obtain more stable prediction results. Figure 3 illustrates the flowchart of our proposed IWOA-BP model.
Firstly, we normalized the data using Equation (14). Secondly, we employed tent chaotic mapping to initialize the location of the whale population according to Equation (10). We generated random parameters such as uniformly distributed parameters p T e n t , r 1 , and r 2 according to Equation (10) and used them to update the values of parameters a , A , C , and l. The value of ω was calculated using Equation (12). By evaluating the values of p T e n t and | A | and in accordance with Equation (13), we updated individual positions of the whale population using an adaptive weighting strategy to obtain the optimal position X * ( t ) . Finally, we updated the global optimal position by performing sine cosine operations on the position through Equation (11), comparing fitness values and filtering for a new leader position. When iteration reached its maximum value, we outputted an optimal solution and obtained optimal weights and thresholds for the BP neural network.

3. Results and Discussion

3.1. Data Preprocessing

The experimental data were obtained from the literature [12]. The material was obtained from alder (Alnus glutinosa Goertn.), beech (Fagus sylvatica L.), birch (Betula verrucosa Ehrh.), and pine (Pinus sylvestris L.) logs at the Sklejka-Multi S.A. plywood company in Bydgoszcz, Poland. Defect-free veneer sheets of 3,003,001.5 mm3 with 5% moisture were then transported to the laboratory. Tangential sheets of veneer were cut into 140,100 mm2 rectangular pieces for the thermo-mechanical densification process and subsequent measurements. Prior to thermo-mechanical densification, all test samples were equilibrated at a temperature of 20 °C and relative humidity of 65%. Three different densification temperatures (100, 150, and 200 °C) and three densification pressures (4, 8, and 12 MPa) were applied to wood samples [34]. Each wood sample was thermo-mechanically densified for 4 min between smooth and thoroughly cleaned heated plates of the press at applied temperatures and pressures. In order to enhance the comparability of the research results and highlight the advantages of the proposed model, this study adopted the same data segmentation method as in the literature [12] and retained the same experimental parameters, including sample size, thermomechanical densification treatment temperature, time and pressure, and the choice of incident light angle when evaluating gloss.
Through these experiments, we obtained 216 sets of surface gloss data for heat-treated wood under varying conditions. To ensure data accuracy, we randomly selected 70% of these datasets as our training set and used the remaining 30% as our prediction set. Due to variations in dimensional sizes among the five input parameters, we normalized input data using Equation (14) to mitigate any impact on training speed and prediction accuracy of the model [35].
y = y m a x y m i n × x x m i n x m a x x m i n + y m i n
where y is the normalized value of x; y m i n and y m a x are the normalized intervals set to −1, 1; and x m i n and x m a x are the minimum and maximum values of x, respectively.

3.2. Model Parameter Setting

The BP neural network in the IWOA-BP model employs a three-layer structure. Its input layer consists of five nodes corresponding to species, temperature, pressure, grain direction, and angle of incidence of input data. The output layer has one node representing wood surface gloss. The number of nodes in the hidden layer is typically determined using empirical Equation (15), where w is any number between 1 and 10. This yields a range of [4, 12] for hidden layer nodes, as shown in Equation (15).
u + v + w , w 1,10
where h, u, and v represent the number of nodes in the hidden layer, input layer, and output layer, respectively.
After several calculations, we obtained the RMSE values for the training set corresponding to different hidden layer nodes, as shown in Table 1. We selected the hidden layer node with the smallest RMSE value as the optimal node for the BP neural network. As indicated in Table 1, the optimal number of hidden layer nodes is 6 with a corresponding RMSE value of 0.0013694.
In this study, we employed a BP neural network model to predict glossiness for four different tree species. Our model used tree species, temperature, pressure, grain direction, and incidence angle as input nodes and glossiness as output nodes. The resulting prediction model is illustrated in Figure 4.
We optimized the weights and thresholds of the BP neural network model using the IWOA to enhance prediction accuracy for wood surface glossiness. The BP neural network had a maximum iteration of 1000, the target error was 0.0001, the learning rate was 0.01, while the IWOA-BP model had a maximum iteration of 20 and population size of 30.

3.3. Analysis of Simulation Rxesults of the WOA-BP Model

To evaluate the effectiveness of the IWOA-BP model, we compared mean absolute error (MAE), root mean square error (RMSE), and goodness of fit (R2) for different algorithms. Smaller values indicated better prediction performance, as expressed in the following equation:
M A E = 1 N i = 1 N A i F i
R M S E = i = 1 N A i F i 2 N
M A P E = 100 N i = 1 N A i F i A i
R 2 = 1 i = 1 N A i F i 2 i = 1 N A i ¯ A i 2
where N is the total number of samples, and A i and F i represent the actual value and the predicted value, respectively.
This paper used MATLAB 2022 to process the experimental data and employed the IWOA-BP model to predict glossiness of heat-treated wood. The results are presented in Appendix A of Table A1.
Table A1 presents a comparison between actual measured glossiness values for different tree species under varying conditions and predicted values from the IWOA-BP model. The predicted values closely matched the actual measured values. Appendix A of Table A2 compares error values for predicted glossiness from BP, WOA-BP, and IWOA-BP models. The IWOA-BP model had smaller prediction errors than BP and WOA-BP models, with most errors being less than 1. And the IWOA-BP model demonstrated high accuracy in predicting glossiness of heat-treated wood with minimal error between predicted and actual measured values.
Table 2 presents performance evaluation results for BP, WOA-BP, and IWOA-BP models. For the training set, the MAE value of the BP prediction model was 1.9142, the MAPE value was 0.4026, the RMSE value was 2.7318, and the R 2 value was 0.8768, while the MAE value of the WOA-BP prediction model was 1.5444, the MAPE value was 0.3106, the RMSE value was 2.2625, and the R 2 value was 0.9155. In comparison, the MAE value of the IWOA-BP prediction model was 0.6210, the MAPE value was 0.1287, the RMSE value was 0.7834, and the R 2 value was 0.9898. Compared to the BP model, the IWOA-BP model reduced MAE by 67.56%, MAPE by 68.03%, and RMSE by 71.32%. For the test set, the MAE value of the BP prediction model was 2.0683, the MAPE value was 0.4937, the RMSE value was 2.9391, and the value was 0.8758, while the MAE value of the WOA-BP prediction model was 1.8179, the MAPE value was 0.4118, the RMSE value was 2.6275, and the R 2 value was 0.9007. In contrast, the MAE value of the IWOA-BP prediction model was 0.7029, the MAPE value was 0.1767, the RMSE value was 0.8935, and the R 2 value was 0.9885 for the test set. Compared to the BP model, the IWOA-BP model reduced MAE by 66.02%, MAPE by 64.21%, and RMSE by 69.60%. Our results demonstrate that incorporating IWOA significantly improved prediction accuracy for the BP model. We also optimized the BP model using the original WOA, but its performance was inferior to our proposed IWOA-BP model. Therefore, the IWOA-BP model outperformed traditional BP neural networks and WOA-BP models in predicting glossiness for different external environments, heat treatment conditions, and wood types with superior prediction capability.
Meanwhile, as can be seen from Table 2, although glossiness is a small-scale measurement, the MAPE values were low (such as less than 1% in the IWOA-BP model). This may have been due to the following reasons:
Firstly, the IWOA-BP model was designed with advanced optimization techniques. The improved whale optimization algorithm (IWOA) enhances the performance of the back propagation neural network (BPNN). It initializes the population using tent chaos mapping, which provides a more uniform distribution of initial solutions. This reduces the randomness and unevenness in the initial search space, allowing the model to converge more effectively towards the optimal solution. The combination of IWOA with the sine cosine algorithm further improves the model’s ability to explore and exploit the solution space. By leveraging the advantages of both algorithms, the IWOA-BP model can better capture the complex relationships between input variables (such as species, temperature, pressure, grain direction, and incidence angle) and glossiness.
Secondly, the data preprocessing steps also contribute to the low MAPE values. A consistent data segmentation method is adopted, and all data are uniformly normalized. All data are normalized using a specific equation, which mitigates the impact of different dimensional sizes among input parameters on the training speed and prediction accuracy of the model. This normalization ensures that each variable is on a comparable scale, enabling the model to learn from the data more efficiently.
Figure 5 depicts the prediction outcomes of BP, WOA-BP, and IWOA-BP models for the glossiness of heat-treated wood. The results demonstrate that the predicted values obtained from BP neural networks optimized with WOA and IWOA were in closer agreement with the actual values, suggesting that the application of WOA or IWOA significantly enhances the prediction accuracy of BP neural networks. Notably, the IWOA-BP model exhibited superior prediction accuracy compared to the WOA-BP model. The exceptional performance of the IWOA-BP model in predicting glossiness confirms its applicability and indicates its potential for predicting glossiness values across various tree species and processing conditions.

3.4. Performance Analysis in CEC Tests

CEC tests has achieved significant acclaim and is regarded as a gold standard for evaluating the effectiveness of optimization algorithms, offering a highly reliable and authoritative benchmark [36]. To conduct a fair and comprehensive assessment of the performance of the improved whale optimization algorithm (IWOA), four benchmark functions from the CEC2022 test set were carefully selected, as detailed in Table 3.
The unimodal function F1 was employed to evaluate convergence accuracy, as it features a single global optimum. This function effectively reflects an algorithm’s ability to locate the global optimum without being distracted by local optima. In the context of gloss prediction, accurate convergence toward the optimal weights and thresholds of the BPNN is critical. IWOA’s rapid convergence on F1 thus translates directly into improved training efficiency and predictive accuracy.
The multimodal function F2 is used to test global exploration capabilities and the ability to escape local optima. In gloss prediction, the relationship between input parameters (e.g., species, temperature, pressure, grain direction, and incident angle) and gloss is complex and nonlinear, with many potential suboptimal solutions. IWOA’s strong performance on F2 demonstrates its capacity to effectively explore diverse parameter spaces and avoid premature convergence.
Function F7, a hybrid function composed of several sub-functions with varying characteristics, simulates complex real-world scenarios with strong interdependencies among variables. IWOA’s adaptability on F7 underscores its robustness in modeling intricate variable relationships in gloss prediction tasks.
Function F9 is a composite function designed to mimic high-dimensional constrained problems. While gloss prediction is not strictly high-dimensional, it involves multiple interacting parameters, presenting similar challenges. IWOA’s competence on F9 indicates its ability to manage this complexity, enabling accurate and efficient modeling of gloss in thermally modified wood.
In summary, the four CEC2022 functions—F1, F2, F7, and F9—represent distinct aspects of optimization problems relevant to gloss prediction in thermally treated wood. They facilitate a thorough evaluation of IWOA’s performance in terms of convergence speed, global search capability, adaptability to complex interactions, and handling of intricate data structures.
For a more in-depth understanding of the algorithms’ performance across different levels of complexity, two different dimensionalities, 10 dimensional and 20 dimensional, were selected for each test function. This allowed us to evaluate how the algorithms perform in both low-dimensional and high-dimensional search spaces. The details of the selected test functions, including their formulas, dimensionalities, search ranges, and known best values, are presented comprehensively in Table 3.
In the experimental setup, the maximum number of iterations was set to 500, the number of independent runs for each method was 30, and the population size was 30. These parameters were carefully chosen to ensure a reliable and consistent evaluation. After running each algorithm 30 times independently, the optimal value, maximum value, mean value, and standard deviation were calculated. These statistical measures provide a quantitative assessment of the algorithms’ performance.
The convergence curves of the IWOA, whale optimization algorithm (WOA), particle swarm optimization (PSO), and genetic algorithm (GA) are presented in Figure 6.
Figure 6 vividly depicts the convergence behavior of the IWOA, WOA, PSO, and GA across different dimensions and test functions. A detailed analysis of these curves reveals significant differences in the performance of these algorithms. The IWOA demonstrated a remarkable convergence rate that outperformed the WOA, PSO, and GA. In most cases, the IWOA reached the optimal or near-optimal solution much faster than the other algorithms.
The convergence process of the IWOA was almost linear in many instances, which indicates its highly efficient search strategy. This linear-like convergence implies that the IWOA can effectively explore the search space and move towards the global optimum in a relatively straightforward manner. Additionally, by examining the curve fitting, it became evident that the IWOA had stronger local exploration capabilities compared to the other three algorithms. This advantage is particularly crucial when dealing with high-dimensional and complex problems, where a balance between global exploration and local exploitation is essential.
In high-dimensional problems, the search space becomes extremely large and complex, and algorithms often struggle to find the optimal solution. The IWOA’s ability to efficiently explore the local regions around potential solutions allows it to fine-tune its search and achieve higher precision. When considering the mean values and standard deviations calculated from the 30 independent runs, the IWOA also showed greater stability. The relatively small standard deviation indicates that the IWOA can consistently produce solutions that are close to the optimal value, while the other algorithms may have more variability in their results.
Overall, through comprehensive comparison and analysis, it is clear that the IWOA provides solutions with higher accuracy, greater stability, and faster convergence. These findings highlight the superiority of the IWOA over the WOA, PSO, and GA in solving optimization problems using the CEC2022 test functions. This research not only validates the effectiveness of the IWOA but also provides valuable insights for further improving optimization algorithms and solving complex real-world problems.

3.5. Analysis of Input Feature Importance

Feature importance analysis offers valuable perspectives on which features exert the most substantial influence on the prediction result. When it comes to predicting the glossiness of heat-treated wood, this analysis enables us to pinpoint the crucial elements that impact the glossiness. Additionally, it can assist us in comprehending how sensitive the prediction outcome is to alterations in the input features. Such an understanding can direct us in precisely adjusting the input parameters to attain the best possible prediction outcomes.
The XGBoost model is highly regarded for its excellent performance and efficiency in dealing with complex data patterns [37]. One of its notable strengths is its proficiency in conducting feature importance analysis. This feature allows us to delve into the contribution of each feature to the prediction outcome, deepening our comprehension of the prediction mechanism. In our research, we opted for the XGBoost model to assess the significance of various input factors in predicting the glossiness of heat-treated wood. These factors encompass grain direction, treatment temperature, treatment pressure, incidence angle, and tree species. To more accurately determine the contribution rate of each feature, we normalized the feature importance values to fall within the range of 0 to 1. The outcomes of the importance analysis for each input feature are vividly presented in the provided chart.
As shown in Figure 7, the importance of the five input features in predicting the glossiness of heat-treated wood varied.
Grain Direction: With an importance score of 36.64%, it emerged as the most influential factor affecting wood glossiness in this study. This significant weight suggests that the orientation of the wood fibers relative to the surface plane critically determines how light interacts with the material. The anisotropic nature of wood means that its surface properties, including roughness, reflectance, and microstructural arrangement, vary with grain orientation [38]. Specifically, when the grain runs parallel to the measurement or viewing direction, the surface may appear smoother and more uniform, enhancing specular reflection and perceived gloss [39]. In contrast, when the grain is oriented perpendicularly or at an angle, increased micro-roughness and diffuse reflection can lead to a reduction in glossiness. Furthermore, thermal treatment accentuates this effect by altering the cell wall structure and surface chemistry differently along and across the grain [40]. The differential thermal degradation of hemicellulose and lignin, as well as pressure-induced densification during processing, may lead to uneven surface topography depending on the grain orientation. These variations can further modify how incident light is scattered or absorbed, thereby amplifying the visual differences in glossiness between radial, tangential, and longitudinal surfaces [41]. Therefore, grain direction not only affects the intrinsic optical response of wood but also interacts with thermal and mechanical treatment parameters to shape the final surface appearance. This finding underscores the need to account for grain orientation when designing heat treatment protocols or surface finishing strategies aimed at achieving specific gloss characteristics.
Treatment Temperature: The second most important feature is the treatment temperature, with an importance score of 24.57%. Temperature and pressure are critical factors influencing wood gloss during thermal treatment, and their effects are driven by intricate physical and chemical mechanisms [42]. Previous studies have shown that different wood species respond distinctively to thermal treatment temperatures. For alder, beech, birch, and pine, the common treatment temperature range of 160–250 °C brings about significant changes. In our study, we specifically examined these four species at 100 °C, 150 °C, and 200 °C. Elevated temperatures in the 160–250 °C range cause hemicellulose thermal degradation. Glycosidic bond cleavage reduces its polymerization degree, loosening the wood surface microstructure, increasing roughness, enhancing light scattering, and reducing gloss [6]. For example, in alder wood, 100 °C causes mild hemicellulose degradation with less-obvious gloss and roughness changes, while 200 °C accelerates degradation, leading to more significant changes. Simultaneously, lignin undergoes pyrolysis and condensation. These reactions fragment molecules and may cause cross-linking, altering its distribution and optical behavior, and affecting light absorption and reflection [43]. Lignin in birch responds differently to temperature than in alder; at 150 °C, birch lignin may form more cross-links, uniquely impacting gloss. Previous studies support our findings. Bekhta and Niemz [35] found that higher treatment temperatures in spruce decreased hemicellulose and increased lignin-related changes, affecting surface properties. Esteves et al. [9] observed that treatment temperatures influenced heat-treated pine’s long-term surface properties due to hemicellulose degradation and lignin transformation. These are consistent with our observations in alder, beech, birch, and pine, validating the complex relationship between temperature, wood components, and gloss.
Treatment Pressure: The treatment pressure has an importance score of 22.90%. When wood undergoes thermal compression, cell walls are compacted. This is not just simple mechanical squeezing, it is a complex process that impacts the wood’s internal microscopic structure [44]. The microfibrils in the cell walls, vital for the wood’s mechanical and surface properties, become realigned. This realignment increases the local density of the wood, directly affecting the refractive and scattering properties of the wood surface [45]. Physically, a higher density changes how light interacts with the wood. For example, it can cause more light absorption or different-pattern scattering, influencing the wood’s gloss [46]. During thermal treatment, pressure also helps extractives, especially chromophoric compounds (which absorb visible-spectrum light and determine wood color), migrate to the wood surface. This migration can significantly alter the wood’s color and gloss [47]. The reason is that pressure changes the solubility and mobility of these compounds. As pressure rises, the solubility of some extractives in the wood matrix may change, enabling freer movement, which is further enhanced by thermal energy [48]. Once at the surface, chromophoric compounds interact with light differently than when inside the wood, such as causing more absorption at certain wavelengths (changing color) and affecting the surface’s uniform light-reflection ability, thus influencing gloss [49]. Previous research has shed light on pressure’s effects on wood during thermal treatment. For instance, Bekhta et al. [12] studied the gloss of thermally densified alder, beech, birch, and pine wood veneers. They found that both densification temperature and pressure significantly impact wood gloss. Higher pressure can compact the surface, seemingly increasing gloss due to reduced roughness. But the migration of extractives, especially chromophoric compounds, can counteract this if it changes the surface’s optical properties. In some cases, these compounds on the surface can decrease gloss due to increased light absorption.
Incidence Angle: The incidence angle has an importance score of 12.32%. The importance of the incidence angle indicates that the angle at which light strikes the wood surface can affect the measured glossiness. Different angles of incidence can lead to variations in the amount and direction of light reflection, thereby influencing the perceived glossiness.
Tree Species: The tree species has the lowest importance score of 3.57%. While one might expect the type of tree to have a more significant impact on the properties of heat-treated wood, including glossiness, this result suggests that within the context of this study and the other factors considered, the tree species has a relatively minor influence on the glossiness. This could be due to the fact that the other factors, such as grain direction and treatment conditions, have more dominant effects on the surface characteristics that determine glossiness.

4. Conclusions

This study focused on predicting the glossiness of heat-treated wood. Four types of wood, namely, alder, beech, birch, and pine, were selected for research. We established an IWOA-BPNN model by using tree species, temperature, pressure, grain direction, and incidence angle as input variables. A total of 216 sets of experimental data on the surface gloss of heat-treated wood under different conditions were collected. Among them, 70% of the datasets were randomly selected as the training set, and the remaining 30% were used as the prediction set.
The research findings were of great significance. They could help the wood processing industry better understand the influencing factors of the glossiness of heat-treated wood, so as to optimize the heat treatment process, improve product quality, and reduce production costs. At the same time, the proposed IWOA-BPNN model provided a new method and idea for predicting the glossiness of heat-treated wood, which was conducive to promoting the development of related fields. Key conclusions were summarized as follows:
  • In this study, the IWOA was introduced as an improvement to the traditional WOA, which was prone to converge to local optima. To address this issue, this paper proposed several enhancements to the WOA, which were detailed in this paper. Firstly, the proposed IWOA incorporated chaos theory to initialize the population position of the algorithm and employed tent chaos mapping to generate random parameters within the whale algorithm, thereby accelerating its convergence rate. Furthermore, the WOA was combined with the sine cosine algorithm and screen the leadership position of the whale group by leveraging the strengths of cosine algorithm. This approach enhanced the algorithm’s ability to escape local optima and increased its optimization accuracy. Additionally, an adaptive strategy with inertial weights was proposed to balance global search and local development within the algorithm.
  • This study investigated the glossiness of four different wood species, namely, alder, beech, birch, and pine, after heat treatment. The IWOA-BP model was developed using tree species, temperature, pressure, grain direction, and incidence angle as input variables. The model was trained on 152 randomly selected datasets and tested on 64 datasets to predict gloss values and compare them with actual measurements. The results demonstrated that the IWOA-BP model effectively predicted the glossiness of heat-treated wood with an RMSE value of 0.7834 and an R2 value of 0.9898 for the training set and an RMSE value of 0.8935 and an R2 value of 0.9885 for the test set. These findings indicated that the IWOA-BP model could accurately predict the gloss values of heat-treated wood under various conditions.
  • In addition, this study compared the performance of the IWOA-BP model with that of the WOA-BP model and the original BP neural network model. The results demonstrated that, compared to the BP neural network model, the IWOA-BP model exhibited a 66.02% reduction in MAE value, a 64.21% reduction in MAPE value, a 69.60% reduction in RMSE value, and a 12.87% increase in R2 value. Similarly, when compared to the WOA-BP model, the IWOA-BP model showed a 61.33% decrease in MAE value, a 57.09% decrease in MAPE value, a 65.99% decrease in RMSE value, and a 9.75% increase in R2 value. These findings indicated that the IWOA-BP model had superior prediction accuracy and faster convergence rate. Notably, the most relevant characteristics of heat-treated wood were surface glossiness and color brightness, which our model accurately predicted with high performance. This would significantly enhance the utilization of wood processing industries and provide valuable insights for algorithm research in related fields.
While this study has achieved promising results in predicting the glossiness of heat-treated wood, several avenues remain open for deeper exploration to advance the field further.
  • At the level of wood property correlation, future research will focus on establishing intrinsic links between glossiness and key properties such as mechanical strength, biological durability, and dimensional stability. By systematically measuring these properties under varying thermal treatment conditions and applying advanced data analytics, we aim to uncover underlying patterns and develop comprehensive correlation models. This approach will not only enhance the understanding of wood performance evolution during heat treatment but also provide a more scientific and holistic method for quality evaluation. In this context, glossiness may serve as a practical indicator of overall wood quality, increasing its value in both processing and application.
  • From the perspective of input parameter optimization, this study was limited by the scope of available data, excluding potentially influential variables such as wood age, growth environment, and harvest season. These factors, though not considered in the current model, may have a significant impact on the glossiness of heat-treated wood. Due to data constraints, we were unable to assess their influence within the present research framework. Future studies should aim to collect expanded datasets either by scouring a broader range of existing literature or by conducting our own experimental operations to obtain and incorporate these variables, particularly wood age, and examine their interactions with existing inputs such as species, temperature, and pressure. This would allow for a more refined model structure that captures the complex, real-world relationships influencing glossiness. Enhancing the model in this way would improve its predictive accuracy and generalizability, offering more robust theoretical support and practical value for wood processing applications.
  • Regarding model enhancement, factors such as wood density, moisture content, and treatment duration—known to significantly affect glossiness—were not included in this study. To address this, future research will adopt sensitivity analysis techniques, such as Sobol index analysis, to quantify the relative importance of these variables. This will help identify underrepresented factors in the current model and guide its optimization. By incorporating these critical variables, the model will better adapt to real-world complexities, offering a more robust and practical tool for the wood processing industry and contributing to technological innovation and product quality improvement.

Author Contributions

Conceptualization, Y.C.; methodology, Y.C.; software, Y.C.; validation, Y.C., Y.H. and W.W.; formal analysis, Y.C. and Y.H.; investigation, Y.C. and Y.H.; resources, Y.H., Y.C. and W.W.; data curation, Y.C.; writing—original draft preparation, Y.C.; writing—review and editing, Y.C.; visualization, Y.C.; supervision, W.W.; project administration, W.W.; funding acquisition, W.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Natural Scientific Foundation of Heilongjiang Province, grant number LC201407.

Data Availability Statement

Data are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1. Measured and predicted values of glossiness.
Table A1. Measured and predicted values of glossiness.
Grain
Orientation
TemperaturePressureAngle of IncidenceMeasuredPredictedMeasuredPredictedMeasuredPredictedMeasuredPredicted
AlderBeechBirchPine
Radial100 °C4 MPa20°1.101.210.900.531.401.081.601.75
60°3.903.282.803.564.303.846.706.39
85°5.204.113.303.144.204.929.0010.42
8 MPa20°1.200.621.001.181.502.661.701.28
60°4.503.733.503.225.505.637.406.64
85°5.705.115.405.555.806.177.608.56
12 MPa20°1.200.661.100.971.502.761.801.06
60°5.103.984.003.175.805.007.806.97
85°5.706.405.504.436.707.579.6010.01
150 °C4 MPa20°1.100.641.001.141.301.011.602.37
60°4.504.733.203.674.504.156.608.37
85°7.308.254.805.567.807.1210.3010.82
8 MPa20°1.300.781.101.011.600.611.901.74
60°5.505.354.103.396.305.508.709.15
85°10.8010.158.106.2313.9012.8518.7017.09
12 MPa20°1.301.111.100.931.701.831.700.81
60°5.403.684.204.196.807.668.307.94
85°8.209.637.407.8517.2015.2521.5020.59
200 °C4 MPa20°1.101.560.701.231.201.321.601.53
60°4.905.253.303.335.104.167.908.43
85°12.0011.867.908.6412.1011.4321.4019.65
8 MPa20°1.201.180.900.811.201.431.601.32
60°7.006.594.403.386.506.678.907.45
85°23.8022.988.809.0015.8017.6529.4029.49
12 MPa85°1.501.721.000.821.701.022.201.82
20°8.308.255.304.208.509.7711.5013.29
60°24.3023.2612.8013.7423.1024.6232.3031.12
Tangential100 °C4 MPa20°1.201.541.101.051.502.261.801.65
60°5.405.894.005.146.205.669.808.84
85°10.509.445.504.997.709.0918.6017.85
8 MPa20°1.301.401.101.121.601.561.901.73
60°6.004.784.503.997.306.7210.509.22
85°12.6010.928.909.1714.7013.2517.9017.44
12 MPa85°1.300.831.101.561.701.411.801.96
20°6.607.024.704.528.3010.0910.0010.19
60°14.2013.1112.0012.3517.3015.9518.3019.11
150 °C4 MPa20°1.200.941.001.171.501.791.801.06
60°6.407.024.203.297.006.199.9010.02
85°16.9015.027.308.0712.7012.2819.3020.07
8 MPa20°1.401.691.101.631.702.132.101.81
60°7.909.205.506.979.108.1313.0011.45
85°18.1018.3312.7013.1220.4018.7127.5026.28
12 MPa20°1.401.451.101.161.901.991.902.05
60°7.508.005.504.7310.2011.6811.9012.22
85°16.4018.3014.1015.9525.7024.9829.8029.29
200 °C4 MPa20°1.201.300.800.731.301.691.702.06
60°7.507.914.703.578.007.5611.0010.65
85°21.2021.2613.9014.9019.4018.7927.1026.06
8 MPa20°1.401.740.900.731.400.981.801.04
60°10.7010.226.006.959.909.5513.3013.42
85°31.5031.4117.3018.1424.7026.8835.3034.59
12 MPa20°1.701.561.000.801.901.012.302.46
60°12.3013.056.807.0913.6014.0916.3016.87
85°32.2033.6921.7021.7637.2037.1839.5039.53
Table A2. Comparison of prediction errors of three models: BP, WOA-BP, and IWOA-BP.
Table A2. Comparison of prediction errors of three models: BP, WOA-BP, and IWOA-BP.
Grain
Orientation
TemperaturePressureAngle of IncidenceAlderBeechBirchPine
BPWOA-BPIWOA-BPBPWOA-BPIWOA-BPBPWOA-BPIWOA-BPBPWOA-BPIWOA-BP
Radial100 °C4 MPa20°−2.070.780.11−1.73−0.47−0.361.55−1.50−0.31−0.32−1.030.15
60°0.420.20−0.611.48−0.160.760.36−0.44−0.45−0.171.48−0.30
85°0.611.07−1.082.800.28−0.152.470.130.720.242.471.42
8 MPa20°−0.561.33−0.570.97−1.110.18−0.12−0.311.160.110.55−0.41
60°−0.14−0.37−0.76−0.02−0.50−0.271.102.590.13−0.134.80−0.75
85°0.560.77−0.581.42−0.010.15−0.33−0.200.373.955.500.96
12 MPa20°0.41−0.92−0.530.58−0.09−0.12−0.70−0.251.26−1.392.47−0.73
60°−0.21−0.84−1.11−1.32−0.31−0.822.243.58−0.79−0.650.89−0.82
85°0.592.320.70−0.36−0.35−1.062.405.010.873.075.840.41
150 °C4 MPa20°1.570.16−0.45−1.56−0.170.14−1.16−0.88−0.281.49−0.140.77
60°0.16−0.010.231.01−0.440.470.18−0.62−0.34−1.681.791.77
85°0.11−0.630.953.141.210.761.062.46−0.671.512.650.52
8 MPa20°1.541.78−0.510.940.97−0.081.130.39−0.98−0.28−1.66−0.15
60°2.53−0.84−0.140.49−0.59−0.700.23−1.56−0.79−0.870.630.45
85°−1.59−2.01−0.642.050.30−1.83.75−2.46−1.04−2.59−2.93−1.60
12 MPa20°−2.890.72−0.18−1.66−0.14−0.16−0.75−0.580.13−0.09−2.08−0.88
60°−2.03−0.56−1.711.883.94−0.016.50−1.090.86−2.62−0.78−0.35
85°2.494.191.434.711.870.45−1.80−1.69−1.94−2.10−1.59−0.90
200 °C4 MPa20°−1.820.560.46−0.550.060.531.750.920.122.041.32−0.06
60°−0.16−0.040.350.582.210.03−2.92−0.44−0.93−1.850.630.53
85°0.380.69−0.13−0.451.470.740.61−0.35−0.66−5.54−4.95−1.74
8 MPa20°1.791.56−0.011.61−0.79−0.081.010.630.231.011.35−0.27
60°−1.00−1.16−0.401.870.13−1.011.69−1.060.170.801.09−1.44
85°−9.52−9.25−0.817.125.220.203.090.951.85−6.11−7.740.09
12 MPa20°1.67−0.530.22−0.100.37−0.170.562.16−0.67−0.08−0.14−0.37
60°−2.46−1.31−0.042.061.22−1.092.43−0.631.270.561.301.79
85°−5.91−3.29−1.037.917.990.942.120.851.52−2.73−3.20−1.17
Tangential100 °C4 MPa20°−1.391.420.341.67−0.56−0.040.42−0.740.761.050.48−0.14
60°−0.590.730.490.99−0.231.14−1.00−0.86−0.53−4.360.04−0.95
85°−3.220.19−1.051.451.30−0.500.732.571.39−9.42−4.64−0.74
8 MPa20°−0.81−1.000.100.91−0.690.020.330.57−0.030.112.55−0.16
60°−1.591.97−1.21−1.15−0.55−0.50−2.31−1.13−0.57−5.04−3.00−1.27
85°−3.82−3.22−1.670.250.390.27−3.94−1.98−1.44−5.93−1.47−0.45
12 MPa20°0.541.50−0.46−2.170.560.461.01−1.48−0.28−0.062.340.16
60°−0.29−0.420.420.560.90−0.170.592.171.79−3.611.610.19
85°−3.15−1.57−1.08−1.48−1.940.357.016.28−1.34−2.591.730.81
150 °C4 MPa20°−3.45−1.28−0.251.60−0.340.17−2.36−0.530.29−0.851.56−0.73
60°−0.60−0.840.620.050.04−0.90−0.59−1.57−0.801.52−0.020.12
85°−6.58−6.53−1.874.032.610.77−0.190.06−0.41−5.44−2.250.77
8 MPa20°0.071.100.291.670.010.53−0.051.270.43−0.071.09−0.28
60°3.53−1.491.30−1.181.661.47−1.83−2.66−0.96−4.85−1.89−1.54
85°−4.31−3.640.232.651.430.42−3.29−3.12−1.68−8.41−5.81−1.21
12 MPa20°1.680.280.050.230.230.061.551.320.090.621.150.15
60°−0.22−0.550.502.30−0.79−0.76−1.26−1.681.48−1.611.590.32
85°1.934.061.906.446.311.85−2.74−1.74−0.71−4.17−1.24−0.50
200 °C4 MPa20°1.581.010.100.280.02−0.060.891.030.390.40−0.390.36
60°0.010.280.413.350.40−1.120.60−1.63−0.43−1.94−0.18−0.34
85°−5.30−4.230.06−1.782.451.000.20−0.46−0.60−5.34−3.27−1.03
8 MPa20°0.740.390.34−1.60−0.54−0.160.14−1.40−0.410.462.56−0.75
60°−1.46−1.66−0.474.26−0.440.95−3.15−0.68−0.34−0.410.800.12
85°−9.56−7.61−0.08−3.38−0.980.842.151.902.18−5.70−3.56−0.70
12 MPa20°0.29−1.09−0.13−1.53−0.75−0.190.81−1.62−0.881.610.610.16
60°−0.440.950.750.675.890.291.350.870.490.973.490.57
85°−2.94−0.421.4910.4210.040.06−2.13−2.11−0.01−1.340.810.03

References

  1. Peng, X.; Zhang, Z. Surface properties of different natural precious decorative veneers by plasma modification. Eur. J. Wood Wood Prod. 2019, 77, 125–137. [Google Scholar] [CrossRef]
  2. Wang, W.; Ma, W.; Wu, M.; Sun, L. Effect of Water Molecules at Different Temperatures on Properties of Cellulose Based on Molecular Dynamics Simulation. Bioresources 2022, 17, 269–280. [Google Scholar] [CrossRef]
  3. Chu, D.; Hasanagić, R.; Hodžić, A.; Kržišnik, D.; Hodžić, D.; Bahmani, M.; Petrič, M.; Humar, M. Application of Temperature and Process Duration as a Method for Predicting the Mechanical Properties of Thermally Modified Timber. Forests 2022, 13, 217. [Google Scholar] [CrossRef]
  4. Kamperidou, V.; Ratajczak, I.; Perdoch, W.; Mazela, B. Impact of Thermal Modification Combined with Silicon Compounds Treatment on Wood Structure. Wood Res. 2022, 67, 773–784. [Google Scholar] [CrossRef]
  5. Borůvka, V.; Šedivka, P.; Novák, D.; Holeček, T.; Turek, J. Haptic and Aesthetic Properties of Heat-Treated Modified Birch Wood. Forests 2021, 12, 1081. [Google Scholar] [CrossRef]
  6. Zhou, F.; Zhou, Y.; Fu, Z.; Gao, X. Effects of density on colour and gloss variability changes of wood induced by heat treatment. Color Res. Appl. 2021, 46, 1151–1160. [Google Scholar] [CrossRef]
  7. Lu, C.; Liu, Y.; Jiang, H.; Lu, Q. Impact of heat treatment on the surface color and glossiness of young Eucalyptus Wood. Wood Res. 2022, 67, 348–360. [Google Scholar] [CrossRef]
  8. Gurleyen, L.; Ayata, U.; Esteves, B.; Cakicier, N. Effects of heat treatment on the adhesion strength, pendulum hardness, surface roughness, color and glossiness of Scots pine laminated parquet with two different types of UV varnish application. Maderas. Cienc. Tecnol. 2017, 19, 213–224. [Google Scholar] [CrossRef]
  9. Esteves, B.M.; Herrera, R.; Santos, J.; Carvalho, L.; Nunes, L.; Ferreira, J.; Domingos, I.J.; Cruz-Lopes, L. Artificial weathering of heat-treated pines from the Iberian Peninsula. Bioresources 2020, 15, 9642–9655. [Google Scholar] [CrossRef]
  10. Ayata, U.; Gurleyen, L.; Esteves, B. Effect of heat treatment on the surface of selected exotic wood species. Drewno. Prace Naukowe. Doniesienia. Komun. 2017, 60, 199. [Google Scholar]
  11. Gurleyen, L.; Esteves, B.; Ayata, U.; Gurleyen, T.; Cinar, H. The effects of heat treatment on colour and glossiness of some commercial woods in Turkey. Drewno Prace Naukowe Doniesienia Komun. 2018, 61, 201. [Google Scholar] [CrossRef]
  12. Bekhta, P.; Proszyk, S.; Lis, B.; Krystofiak, T. Gloss of thermally densified alder (Alnus glutinosa Goertn.), beech (Fagus sylvatica L.), birch (Betula verrucosa Ehrh.), and pine (Pinus sylvestris L.) wood veneers. Eur. J. Wood Wood Prod. 2014, 72, 799–808. [Google Scholar] [CrossRef]
  13. Ergün, H.; Ergün, M.E. Modeling Xanthan Gum Foam’s Material Properties Using Machine Learning Methods. Polymers 2024, 16, 740. [Google Scholar] [CrossRef] [PubMed]
  14. Wang, K.; Huang, H.; Deng, J.; Zhang, Y.; Wang, Q. A spatio-temporal temperature prediction model for coal spontaneous combustion based on back propagation neural network. Energy 2024, 294, 130824. [Google Scholar] [CrossRef]
  15. Salca, E.-A.; Krystofiak, T.; Lis, B.; Hiziroglu, S. Glossiness evaluation of coated wood surfaces as function of varnish type and exposure to different conditions. Coatings 2021, 11, 558. [Google Scholar] [CrossRef]
  16. Chen, Y.; Wang, W.; Li, N. Prediction of the equilibrium moisture content and specific gravity of thermally modified wood via an Aquila optimization algorithm back-propagation neural network model. Bioresources 2022, 17, 4816–4836. [Google Scholar] [CrossRef]
  17. Yang, H.; Cheng, W.; Han, G. Wood modification at high temperature and Pressurized Steam: A relational model of mechanical properties based on a neural network. Bioresources 2015, 10, 5758–5776. [Google Scholar] [CrossRef]
  18. Hasanagić, R. Optimization of thermal modification of wood by genetic algorithm and classical mathematical analysis. J. For. Sci. 2022, 68, 35–45. [Google Scholar] [CrossRef]
  19. Hazir, E.; Özcan, T.; Koç, K.H. Prediction of Adhesion Strength Using Extreme Learning Machine and Support Vector Regression Optimized with Genetic Algorithm. Arab. J. Sci. Eng. 2020, 45, 6985–7004. [Google Scholar] [CrossRef]
  20. Kadri, R.L.; Boctor, F.F. An efficient genetic algorithm to solve the resource-constrained project scheduling problem with transfer times: The single mode case. Eur. J. Oper. Res. 2018, 265, 454–462. [Google Scholar] [CrossRef]
  21. Wang, Q.; Wang, W.; He, Y.; Li, M. Prediction of Physical and Mechanical Properties of Heat-Treated Wood Based on the Improved Beluga Whale Optimisation Back Propagation (IBWO-BP) Neural Network. Forests 2024, 15, 687. [Google Scholar] [CrossRef]
  22. Chai, H.; Chen, X.; Cai, Y.; Zhao, J. Artificial neural network modeling for predicting wood moisture content in high frequency vacuum drying process. Forests 2018, 10, 16. [Google Scholar] [CrossRef]
  23. Ouladbrahim, A.; Belaidi, I.; Khatir, S.; Magagnini, E.; Capozucca, R.; Abdel Wahab, M. Experimental crack identification of API X70 steel pipeline using improved artificial neural networks based on whale optimization algorithm. Mech. Mater. 2022, 166, 104200. [Google Scholar] [CrossRef]
  24. Liang, Z.; Han, Q.; Zhang, T.; Tang, Y.; Jiang, J.; Cheng, Z. Nonlinearity compensation of magneto-optic fiber current sensors based on WOA-BP Neural Network. IEEE Sens. J. 2022, 22, 19378–19383. [Google Scholar] [CrossRef]
  25. Nadimi, M.H.; Zamani, H.; Varzaneh, Z.; Mirjalili, S. A Systematic Review of the Whale Optimization Algorithm: Theoretical Foundation, Improvements, and Hybridizations. Arch. Comput. Methods Eng. 2023, 30, 4113–4159. [Google Scholar] [CrossRef]
  26. Yu, M.; Yao, S.; Wu, X.; Chen, L. Research on a wi-fi RSSI calibration algorithm based on WOA-BPNN for indoor positioning. Appl. Sci. 2022, 12, 7151. [Google Scholar] [CrossRef]
  27. Ma, W.; Wang, W.; Cao, Y. Mechanical properties of wood prediction based on the NAGGWO-BP neural network. Forests 2022, 13, 1870. [Google Scholar] [CrossRef]
  28. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  29. Zhang, L.; Wang, F.; Sun, T.; Xu, B. A constrained optimization method based on BP Neural Network. Neural Comput. Appl. 2016, 29, 413–421. [Google Scholar] [CrossRef]
  30. Li, N.; Wang, W. Prediction of mechanical properties of thermally modified wood based on TSSA-BP Model. Forests 2022, 13, 160. [Google Scholar] [CrossRef]
  31. Mirjalili, S. SCA: A sine cosine algorithm for solving optimization problems. Knowl.-Based Syst. 2016, 96, 120–133. [Google Scholar] [CrossRef]
  32. Taherkhani, M.; Safabakhsh, R. A novel stability-based adaptive inertia weight for particle swarm optimization. Appl. Soft Comput. 2016, 38, 281–295. [Google Scholar] [CrossRef]
  33. Wang, Y.; Wang, W.; Chen, Y. Carnivorous plant algorithm and BP to predict optimum bonding strength of heat-treated Woods. Forests 2022, 14, 51. [Google Scholar] [CrossRef]
  34. Luo, J.; He, F.; Li, H.; Zeng, X.T.; Liang, Y. A novel whale optimization algorithm with filtering disturbance and nonlinear step. Int. J. Bio-Inspired Comput. 2022, 20, 71. [Google Scholar] [CrossRef]
  35. Bekhta, P.; Niemz, P. Effect of high temperature on the change in color, dimensional stability and mechanical properties of Spruce Wood. Holzforschung 2003, 57, 539–546. [Google Scholar] [CrossRef]
  36. He, Y.; Wang, W.; Cao, Y.; Wang, Q.H.; Li, M. Prediction of Bonding Strength of Heat-Treated Wood Based on an Improved Harris Hawk Algorithm Optimized BP Neural Network Model (IHHO-BP). Forests 2024, 15, 1365. [Google Scholar] [CrossRef]
  37. Cao, Y.; Wang, W.; He, Y. Prediction of Heat-Treated Wood Adhesive Strength Using BP Neural Networks Optimized by Four Novel Metaheuristic Algorithms. Forests 2025, 16, 291. [Google Scholar] [CrossRef]
  38. Huč, S.; Svensson, S. Influence of grain direction on the time—Dependent behavior of wood analyzed by a 3D rheological model. A mathematical consideration. Holzforschung 2018, 72, 889–897. [Google Scholar] [CrossRef]
  39. Majka, J.; Sydor, M.; Warguta, Ł.; Wieczorek, B. Anti-slip properties of thermally modified hardwoods. Eur. J. Wood Wood Prod. 2025, 83, 14. [Google Scholar] [CrossRef]
  40. Ma, X.; Zhang, Y.; Ping, L.; Zhou, Y.; Yang, J.; Zuo, Y. An eco-friendly strategy of cell wall stapling: In situ crosslinking of acrylic acid emulsion impregnated in thermally treated poplar wood. Ind. Crops Prod. 2024, 222, 119657. [Google Scholar] [CrossRef]
  41. Kúdelka, J.; Ihracký, P.; Kačík, F. Discoloration and Surface Changes in Spruce Wood after Accelerated Aging. Polymers 2024, 16, 1191. [Google Scholar] [CrossRef] [PubMed]
  42. Croitoru, C.; Spirchez, C.; Lunguleasa, A.; Cristea, D.; Roata, I.C.; Pop, M.A.; Bedo, T.; Stanciu, E.M.; Pascu, A. Surface properties of thermally treated composite wood panels. Appl. Surf. Sci. 2018, 438, 114–126. [Google Scholar] [CrossRef]
  43. Lourenço, A.; Araújo, S.; Gominho, J.; Pereira, H.; Evtuguin, D. Structural changes in lignin of thermally treated eucalyptus wood. J. Wood Chem. Technol. 2020, 40, 258–268. [Google Scholar] [CrossRef]
  44. Wang, J.J.; Liu, J.L.; Li, J.Z.; Zhu, J.Y. Characterization of Microstructure, Chemical, and Physical Properties of Delignified and Densified Poplar Wood. Materials 2021, 14, 5709. [Google Scholar] [CrossRef]
  45. Deng, Q.; Li, S.; Chen, Y.P. Mechanical properties and failure mechanism of wood cell wall layers. Comput. Mater. Sci. 2012, 62, 221–226. [Google Scholar] [CrossRef]
  46. Şenol, S.; Budakçı, M. Effect of Thermo—Vibro—Mechanic® densification process on the gloss and hardness values of some wood materials. BioResources 2019, 14, 9611–9627. [Google Scholar] [CrossRef]
  47. Yu, J.; Liu, X.T.; Millan, M. A study on pyrolysis of wood of different sizes at various temperatures and pressures. Fuel 2023, 342, 127846. [Google Scholar] [CrossRef]
  48. Rosiak, N.; Tykarska, E.; Miklaszewski, A.; Pietrzak, R.; Cielecka—Piontek, J. Enhancing the Solubility and Dissolution of Apigenin: Solid Dispersions Approach. Int. J. Mol. Sci. 2025, 26, 566. [Google Scholar] [CrossRef]
  49. Arpaci, S.S.; Tomak, E.D.; Ermeydan, M.A.; Yildirim, I. Natural weathering of sixteen wood species: Changes on surface properties. Polym. Degrad. Stab. 2021, 183, 109415. [Google Scholar] [CrossRef]
Figure 1. Flowchart of back propagation neural network.
Figure 1. Flowchart of back propagation neural network.
Forests 16 00716 g001
Figure 2. Population initialization in tent chaos mapping: (a) scatter map; (b) frequency distribution histogram.
Figure 2. Population initialization in tent chaos mapping: (a) scatter map; (b) frequency distribution histogram.
Forests 16 00716 g002
Figure 3. Flowchart of the IWOA-BP model.
Figure 3. Flowchart of the IWOA-BP model.
Forests 16 00716 g003
Figure 4. Determination of the node number of the input layer and the output layer.
Figure 4. Determination of the node number of the input layer and the output layer.
Forests 16 00716 g004
Figure 5. Comparison of prediction set results for three models with actual measurements. It comprises (a) overall view; (b) enlarged view of region b; (c) enlarged view of region c; and (d) enlarged view of region d.
Figure 5. Comparison of prediction set results for three models with actual measurements. It comprises (a) overall view; (b) enlarged view of region b; (c) enlarged view of region c; and (d) enlarged view of region d.
Forests 16 00716 g005
Figure 6. Convergence curves of each algorithm on different test functions.
Figure 6. Convergence curves of each algorithm on different test functions.
Forests 16 00716 g006
Figure 7. Importance of each input feature.
Figure 7. Importance of each input feature.
Forests 16 00716 g007
Table 1. Implicit layer nodes and their corresponding model errors.
Table 1. Implicit layer nodes and their corresponding model errors.
Number of Hidden Layer NodesMAE/MPa
40.0039501
50.0055646
60.0013694
70.0065983
80.0020393
90.0017918
100.0043294
110.0034053
120.0023211
The bold formatting here is used to indicate that when the Number of Hidden Layer Nodes is 6, the MAE/MPa value of 0.0013694 represents the minimum error (i.e., the optimal value), signifying the best model prediction performance at this setting.
Table 2. Comparison of the errors of the three models.
Table 2. Comparison of the errors of the three models.
ModelDatasetPerformance Criteria
MAE/MPaRMSE/MPaMAPE/%R2
BPTrain1.91420.40262.73180.8768
Test2.06830.49372.93910.8758
WOA-BPTrain1.54440.31062.26250.9155
Test1.81790.41182.62750.9007
IWOA-BPTrain0.62100.12870.78340.9898
Test0.70290.17670.89350.9885
Table 3. Specific information of the test functions.
Table 3. Specific information of the test functions.
FunctionFormulaDimSearch RangeBest Value
F1 f ( x ) = i = 1 D x i 2 + ( i = 1 D 0.5 x i ) 2 + ( i = 1 D 0.5 x i ) 4 10/20[−100, 100]300
F2 f ( x ) = i = 1 D 1 100 x i + 1 x i 2 2 + x i 1 2 10/20[−100, 100]600
F7 f ( x ) = ( i = 1 D x i 2 ) 2 ( i = 1 D x i ) 2 0.5 + ( 0.5 i = 1 D x i 2 + i = 1 D x i ) / D + 0.5 10/20[−100, 100]2000
F9 f ( x ) = 10 D 2 1 = 1 D ( 1 + i j = 1 32 2 j x i r o u n d ( 2 j x i ) 2 j ) 10 D 1.2 10 D 2 10/20[−100, 100]2300
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cao, Y.; Wang, W.; He, Y. Predicting Glossiness of Heat-Treated Wood Using the Back Propagation Neural Network Optimized by the Improved Whale Optimization Algorithm. Forests 2025, 16, 716. https://doi.org/10.3390/f16050716

AMA Style

Cao Y, Wang W, He Y. Predicting Glossiness of Heat-Treated Wood Using the Back Propagation Neural Network Optimized by the Improved Whale Optimization Algorithm. Forests. 2025; 16(5):716. https://doi.org/10.3390/f16050716

Chicago/Turabian Style

Cao, Ying, Wei Wang, and Yan He. 2025. "Predicting Glossiness of Heat-Treated Wood Using the Back Propagation Neural Network Optimized by the Improved Whale Optimization Algorithm" Forests 16, no. 5: 716. https://doi.org/10.3390/f16050716

APA Style

Cao, Y., Wang, W., & He, Y. (2025). Predicting Glossiness of Heat-Treated Wood Using the Back Propagation Neural Network Optimized by the Improved Whale Optimization Algorithm. Forests, 16(5), 716. https://doi.org/10.3390/f16050716

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop