Prediction on Moisture Content of Living Trees Using a Multi-Scale One-Dimensional Convolutional Neural Network with Attention Mechanism Based on Data Augmentation
Abstract
1. Introduction
2. Materials and Methods
2.1. Selection of Living Trees
2.2. GPR Data Acquisition in Living Trees
2.3. Data Augmentation Methods
2.3.1. Scaling Data Augmentation
2.3.2. Noise Data Augmentation
2.3.3. Time-Warping Data Augmentation
2.3.4. Mixed Data Augmentation
2.4. Design of Attention Mechanism
2.5. MS1DCNNAM Model
2.6. Comparative Analysis of Prediction Models
2.7. Model Construction for Different Diameter Ranges
2.8. Model Construction for Different Tree Species
3. Results and Discussion
3.1. Comparative Analysis of Different Prediction Models
3.2. Mixed Model
3.3. Different DBH Sub-Models
3.4. Single-Species Sub-Models
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Feeley, K.J.; Zuleta, D. Changing forests under climate change. Nat. Plants 2022, 8, 984–985. [Google Scholar] [CrossRef]
- Oldekop, J.A.; Rasmussen, L.V.; Agrawal, A.; Bebbington, A.J.; Meyfroidt, P.; Bengston, D.N.; Blackman, A.; Brooks, S.; Davidson-Hunt, I.; Davies, P.; et al. Forest-linked livelihoods in a globalized world. Nat. Plants 2020, 6, 1400–1407. [Google Scholar] [CrossRef] [PubMed]
- Duque, A.; Peña, M.A.; Cuesta, F.; González-Caro, S.; Kennedy, P.; Phillips, O.L.; Calderón-Loor, M.; Blundo, C.; Carilla, J.; Cayola, L.; et al. Mature Andean forests as globally important carbon sinks and future carbon refuges. Nat. Commun. 2021, 12, 2138. [Google Scholar] [CrossRef]
- Scoffoni, C.; Chatelet, D.S.; Pasquet-kok, J.; Rawls, M.; Donoghue, M.J.; Edwards, E.J.; Sack, L. Hydraulic basis for the evolution of photosynthetic productivity. Nat. Plants 2016, 2, 16072. [Google Scholar] [CrossRef] [PubMed]
- Ramage, M.H.; Burridge, H.; Busse-Wicher, M.; Fereday, G.; Reynolds, T.; Shah, D.U.; Wu, G.; Yu, L.; Fleming, P.; Densley-Tingley, D.; et al. The wood from the trees: The use of timber in construction. Renew. Sustain. Energy Rev. 2017, 68, 333–359. [Google Scholar] [CrossRef]
- Constantz, J.; Murphy, F. Monitoring moisture storage in trees using time domain reflectometry. J. Hydrol. 1990, 119, 31–42. [Google Scholar] [CrossRef]
- Djomo, A.N.; Ibrahima, A.; Saborowski, J.; Gravenhorst, G. Allometric equations for biomass estimations in Cameroon and pan moist tropical equations including biomass data from Africa. For. Ecol. Manag. 2010, 260, 1873–1885. [Google Scholar] [CrossRef]
- Fathi, H.; Nasir, V.; Kazemirad, S. Prediction of the mechanical properties of wood using guided wave propagation and machine learning. Constr. Build. Mater. 2020, 262, 120848. [Google Scholar] [CrossRef]
- Hans, G.; Redman, D.; Leblon, B.; Nader, J.; La Rocque, A. Determination of log moisture content using early-time ground penetrating radar signal. Wood Mater. Sci. Eng. 2015, 10, 112–129. [Google Scholar] [CrossRef]
- Zheng, L.T.; He, D.; He, X.M.; Yin, F.; Yan, N.R. Neighborhood interactions and environment modulate individual-level trait correlations and divergent functional trade-offs among co-occurring trees. J. Plant Ecol. 2025, 18, rtaf099. [Google Scholar] [CrossRef]
- McDowell, N.G.; Allen, C.D.; Marshall, L. Growth, carbon-isotope discrimination, and drought-associated mortality across a Pinus ponderosa elevational transect. Glob. Change Biol. 2010, 16, 399–415. [Google Scholar] [CrossRef]
- Edwards, W.R.N.; Jarvis, P.G. A method for measuring radial differences in water content of intact tree stems by attenuation of gamma radiation. Plant Cell Environ. 1983, 6, 255–260. [Google Scholar] [CrossRef]
- Jones, M.; Aptaker, P.S.; Cox, J.; Gardiner, B.A.; McDonald, P.J. A transportable magnetic resonance imaging system for in situ measurements of living trees: The Tree Hugger. J. Magn. Reson. 2012, 218, 133–140. [Google Scholar] [CrossRef]
- Wang, Q.; Liu, X.E.; Yang, S.; Jiang, M.; Cao, J. Non-destructive detection of density and moisture content of heartwood and sapwood based on X-ray computed tomography (X-CT) technology. Eur. J. Wood Wood Prod. 2019, 77, 1053–1062. [Google Scholar] [CrossRef]
- Kumar, R.; Hosseinzadehtaher, M.; Hein, N.; Shadmand, M.; Jagadish, S.V.K.; Ghanbarian, B. Challenges and advances in measuring sap flow in agriculture and agroforestry: A review with focus on nuclear magnetic resonance. Front. Plant Sci. 2022, 13, 1036078. [Google Scholar] [CrossRef]
- Wei, Q.; Leblon, B.; La Rocque, A. On the use of X-ray computed tomography for determining wood properties: A review. Can. J. For. Res. 2011, 41, 2120–2140. [Google Scholar] [CrossRef]
- Luo, Z.; Deng, Z.; Singha, K.; Zhang, X.; Liu, N.; Zhou, Y.; He, X.; Guan, H. Temporal and spatial variation in water content within living tree stems determined by electrical resistivity tomography. Agric. For. Meteorol. 2020, 291, 108058. [Google Scholar] [CrossRef]
- Li, Y.; Guo, L.; Wang, J.; Wang, Y.; Xu, D.; Wen, J. An Improved Sap Flow Prediction Model Based on CNN-GRU-BiLSTM and Factor Analysis of Historical Environmental Variables. Forests 2023, 14, 1310. [Google Scholar] [CrossRef]
- Forsén, H.; Tarvainen, V. Accuracy and Functionality of Hand Held Wood Moisture Content Meters; Technical Research Centre of Finland: Espoo, Finland, 2000; Volume 420. [Google Scholar]
- Wu, X.; Li, G.; Jiao, Z.; Wang, X. Reliability of acoustic tomography and ground-penetrating radar for tree decay detection. Appl. Plant Sci. 2018, 6, e01187. [Google Scholar] [CrossRef]
- Rodríguez-Abad, I.; Martínez-Sala, R.; García-García, F.; Capuz-Lladró, R. Non-destructive methodologies for the evaluation of moisture content in sawn timber structures: Ground-penetrating radar and ultrasound techniques. Near Surf. Geophys. 2010, 8, 475–482. [Google Scholar] [CrossRef]
- Lei, Y.; He, Z.; Zi, Y.; Hu, Q. Fault diagnosis of rotating machinery based on multiple ANFIS combination with GAs. Mech. Syst. Signal Process. 2007, 21, 2280–2294. [Google Scholar] [CrossRef]
- Zhang, J.; Zhang, C.; Lu, Y.; Zheng, T.; Dong, Z.; Tian, Y.; Jia, Y. In-situ recognition of moisture damage in bridge deck asphalt pavement with time-frequency features of GPR signal. Constr. Build. Mater. 2020, 244, 118295. [Google Scholar] [CrossRef]
- Duchesne, I.; Tong, Q.; Hans, G. Using Ground Penetrating Radar (GPR) to Predict Log Moisture Content of Commercially Important Canadian Softwoods. Forests 2023, 14, 2396. [Google Scholar] [CrossRef]
- Guo, J.; Wang, P.; Qin, R.; Zhao, L.; Tang, X.; Zeng, J.; Xu, H. Detection of moisture content in logs using multi-parameter GPR signal analysis and neural network models. Holzforschung 2023, 77, 240–247. [Google Scholar] [CrossRef]
- Yu, M.; Yan, J.; Chu, J.; Qi, H.; Xu, P.; Liu, S.; Zhou, L.; Gao, J. Accurate prediction of wood moisture content using terahertz time-domain spectroscopy combined with machine learning algorithms. Ind. Crops Prod. 2025, 227, 120771. [Google Scholar] [CrossRef]
- Rahimi, S.; Avramidis, S. Predicting moisture content in kiln dried timbers using machine learning. Eur. J. Wood Wood Prod. 2022, 80, 681–692. [Google Scholar] [CrossRef]
- Le Guennec, A.; Malinowski, S.; Tavenard, R. Data augmentation for time series classification using convolutional neural networks. In Proceedings of the ECML/PKDD Workshop on Advanced Analytics and Learning on Temporal Data; HAL-SHS: Villeurbanne, France, 2016. [Google Scholar]
- Um, T.T.; Pfister, F.M.J.; Pichler, D.; Endo, S.; Lang, M.; Hirche, S.; Fietzek, U.; Kulić, D. Data augmentation of wearable sensor data for parkinson’s disease monitoring using convolutional neural networks. In Proceedings of the 19th ACM International Conference on Multimodal Interaction, Glasgow, UK, 13–17 November 2017; pp. 216–220. [Google Scholar]
- Wang, Z.; Luo, Y.; Huang, D.; Ge, N.; Lu, J. Category-Adaptive Domain Adaptation for Semantic Segmentation. In Proceedings of the ICASSP 2022—2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Singapore, 23–27 May 2022; pp. 3773–3777. [Google Scholar]
- Sun, J.; Ding, H.; Li, N.; Sun, X.; Dong, X. Intelligent Fault Diagnosis of Hydraulic System Based on Multiscale One-Dimensional Convolutional Neural Networks with Multiattention Mechanism. Sensors 2024, 24, 7267. [Google Scholar] [CrossRef]
- Li, X.; Wu, J.; Bai, T.; Wu, C.; He, Y.; Huang, J.; Li, X.; Shi, Z.; Hou, K. Variety classification and identification of jujube based on near-infrared spectroscopy and 1D-CNN. Comput. Electron. Agric. 2024, 223, 109122. [Google Scholar] [CrossRef]
- Wang, D.; Feng, Z.; Ji, S.; Cui, D. Simultaneous prediction of peach firmness and weight using vibration spectra combined with one-dimensional convolutional neural network. Comput. Electron. Agric. 2022, 201, 107341. [Google Scholar] [CrossRef]
- Wang, Z.; Ge, N.; Lu, J. Motion In-Betweening with Spatial and Temporal Transformers. IEEE Trans. Circuits Syst. Video Technol. 2025, 35, 5671–5683. [Google Scholar] [CrossRef]
- Li, X.; Xiao, S.; Zhang, F.; Huang, J.; Xie, Z.; Kong, X. A fault diagnosis method with AT-ICNN based on a hybrid attention mechanism and improved convolutional layers. Appl. Acoust. 2024, 225, 110191. [Google Scholar] [CrossRef]
- Zhao, Z.; Jiang, B.; Wang, H.; Wang, C. Forest Canopy Height Retrieval Model Based on a Dual Attention Mechanism Deep Network. Forests 2024, 15, 1132. [Google Scholar] [CrossRef]
- Chen, X.; Zhang, B.; Gao, D. Bearing fault diagnosis base on multi-scale CNN and LSTM model. J. Int. Manuf. 2021, 32, 971–987. [Google Scholar] [CrossRef]
- Wang, P.; Tan, S.; Zhang, G.; Wang, S.; Wu, X. Remote Sensing Estimation of Forest Aboveground Biomass Based on Lasso-SVR. Forests 2022, 13, 1597. [Google Scholar] [CrossRef]
- Gao, W.; Li, Z.; Chen, Q.; Jiang, W.; Feng, Y. Modelling and prediction of GNSS time series using GBDT, LSTM and SVM machine learning approaches. J. Geod. 2022, 96, 71. [Google Scholar] [CrossRef]
- Zhang, W.; Wu, C.; Zhong, H.; Li, Y.; Wang, L. Prediction of undrained shear strength using extreme gradient boosting and random forest based on Bayesian optimization. Geosci. Front. 2021, 12, 469–477. [Google Scholar] [CrossRef]
- Zhang, S.; Li, X.; Zong, M.; Zhu, X.; Wang, R. Efficient kNN Classification with Different Numbers of Nearest Neighbors. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 1774–1785. [Google Scholar] [CrossRef]
- Redman, J.D.; Hans, G.; Diamanti, N. Impact of Wood Sample Shape and Size on Moisture Content Measurement Using a GPR-Based Sensor. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2016, 9, 221–227. [Google Scholar] [CrossRef]
- Wang, Z.; Wang, J.; Ge, N.; Lu, J. HiMoReNet: A Hierarchical Model for Human Motion Refinement. IEEE Signal Process. Lett. 2023, 30, 868–872. [Google Scholar] [CrossRef]







| Category | Dataset | Min (%) | Max (%) | Mean (%) | Median (%) | Std (%) | Number |
|---|---|---|---|---|---|---|---|
| DBH 15–30 cm | All selected set | 38.8 | 136.3 | 72.4 | 69.4 | 22.0 | 1535 |
| Training set | 38.8 | 133.3 | 71.8 | 68.5 | 21.4 | 1070 | |
| Testing set | 38.9 | 136.3 | 73.8 | 71.6 | 23.2 | 465 | |
| DBH 15–20 cm | All selected set | 43.2 | 133.3 | 74.2 | 73.3 | 21.6 | 450 |
| Training set | 43.2 | 133.3 | 72.3 | 71.9 | 21.1 | 310 | |
| Testing set | 43.5 | 123.8 | 69.0 | 58.1 | 22.8 | 140 | |
| DBH 20–25 cm | All selected set | 38.8 | 132.0 | 72.7 | 70.7 | 21.6 | 510 |
| Training set | 38.8 | 132.0 | 75.6 | 71.6 | 21.8 | 355 | |
| Testing set | 41.6 | 123.1 | 66.1 | 57.1 | 19.7 | 155 | |
| DBH 25–30 cm | All selected set | 38.9 | 136.3 | 70.8 | 64.0 | 22.5 | 575 |
| Training set | 38.9 | 136.3 | 73.3 | 64.9 | 23.2 | 400 | |
| Testing set | 40.5 | 122.3 | 65.1 | 60.8 | 19.7 | 175 | |
| Red spruce | All selected set | 38.9 | 118.0 | 70.7 | 69.5 | 21.7 | 345 |
| Training set | 38.9 | 118.0 | 69.2 | 69.3 | 20.7 | 240 | |
| Testing set | 43.2 | 113.7 | 74.4 | 73.0 | 23.5 | 105 | |
| Dahurian larch | All selected set | 38.8 | 63.3 | 51.0 | 50.5 | 5.7 | 280 |
| Training set | 38.8 | 63.3 | 51.1 | 50.6 | 5.4 | 195 | |
| Testing set | 40.5 | 63.2 | 50.8 | 50.5 | 6.6 | 85 | |
| White birch | All selected set | 51.6 | 136.3 | 86.0 | 80.0 | 25.0 | 445 |
| Training set | 51.6 | 136.3 | 84.2 | 77.4 | 25.1 | 310 | |
| Testing set | 54.1 | 128.4 | 90.1 | 87.9 | 24.5 | 135 | |
| Manchurian ash | All selected set | 41.6 | 115.2 | 75.1 | 76.1 | 14.1 | 465 |
| Training set | 44.7 | 115.2 | 76.4 | 76.5 | 14.5 | 325 | |
| Testing set | 41.6 | 97.2 | 72.0 | 71.9 | 12.8 | 140 |
| Algorithm | Hyperparameter | Definition | Search Range |
|---|---|---|---|
| SVR | C | Regularization parameter | (0.1, 1, 10) |
| epsilon | Epsilon-insensitive loss parameter | (0.01, 0.1, 0.2) | |
| GBDT | n_estimators | Number of trees | (300, 500, …, 1100) |
| max_depth | Maximum depth of a tree | (3, 5, …, 9) | |
| RF | n_estimators | Number of trees | (100, 300, …, 1500) |
| max_features | Maximum number of features when splitting a node | (5, 7, …, 15) | |
| KNN | n_neighbors | Number of neighbors | (1, 2, …, 20) |
| BPNN | hidden_layer_sizes | Number of hidden neurons | One-layer structure: (10), (20), (30), (40), Two-layer structure: (10, 5), (20, 10), (30, 15), (40, 20) |
| activation | Activation function | (relu, tanh) | |
| PLS | n_components | Number of latent variables | (6, 8, 12, 14) |
| Category | Model | Hyperparameter Values | Testing Set | Training Set | ||||
|---|---|---|---|---|---|---|---|---|
| R2 | RMSE | MAE | R2 | RMSE | MAE | |||
| Augmentation-enhanced models | Mixed-MS1DCNNAM | epochs = 500, batch_size = 10 | 0.7908 | 0.1059 | 0.0806 | 0.9951 | 0.0151 | 0.0092 |
| TW-MS1DCNNAM | epochs = 500, batch_size = 10 | 0.7824 | 0.1080 | 0.0821 | 0.9837 | 0.0274 | 0.0101 | |
| Noise-MS1DCNNAM | epochs = 500, batch_size = 10 | 0.7837 | 0.1076 | 0.0850 | 0.9815 | 0.0291 | 0.0099 | |
| Scale-MS1DCNNAM | epochs = 500, batch_size = 10 | 0.7796 | 0.1087 | 0.0807 | 0.9886 | 0.0229 | 0.0066 | |
| Optimized 1DCNN models | MS1DCNNAM | epochs = 500, batch_size = 10 | 0.7576 | 0.1139 | 0.0868 | 0.9561 | 0.0448 | 0.0174 |
| 1DCNNAM | epochs = 500, batch_size = 10 | 0.7522 | 0.1152 | 0.0861 | 0.9521 | 0.0468 | 0.0210 | |
| 1DCNN | epochs = 300, batch_size = 16 | 0.7390 | 0.1183 | 0.0903 | 0.9548 | 0.0455 | 0.0172 | |
| Conventional machine learning models | SVR | Kernel: rbf, C: 1, epsilon: 0.01 | 0.7057 | 0.1256 | 0.0926 | 0.8223 | 0.0903 | 0.0563 |
| GBDT | n_estimators: 900, max_depth: 3 | 0.6173 | 0.1432 | 0.1065 | 0.9988 | 0.0075 | 0.0058 | |
| RF | n_estimators: 900, max_features : 9 | 0.6154 | 0.1436 | 0.1052 | 0.9537 | 0.0461 | 0.0328 | |
| KNN | n_neighbors: 7 | 0.5470 | 0.1558 | 0.1106 | 0.7303 | 0.1112 | 0.0791 | |
| BPNN | hidden_layer: (10, 5), activation: relu | 0.6603 | 0.1349 | 0.1075 | 0.6645 | 0.1240 | 0.0946 | |
| PLS | n_components: 14 | 0.5318 | 0.1584 | 0.1235 | 0.4804 | 0.1544 | 0.1207 | |
| Category | Hyperparameter Values | Testing Set | Training Set | ||||
|---|---|---|---|---|---|---|---|
| R2 | RMSE | MAE | R2 | RMSE | MAE | ||
| DBH 15–20 cm | epochs = 300, batch_size = 10 | 0.8885 | 0.0758 | 0.0342 | 0.9991 | 0.0064 | 0.0046 |
| DBH 20–25 cm | epochs = 300, batch_size = 8 | 0.7246 | 0.1033 | 0.0755 | 0.9976 | 0.0105 | 0.0079 |
| DBH 25–30 cm | epochs = 300, batch_size = 4 | 0.8031 | 0.0872 | 0.0688 | 0.9989 | 0.0075 | 0.0050 |
| Tree Species | Hyperparameter Values | Testing Set | Training Set | ||||
|---|---|---|---|---|---|---|---|
| R2 | RMSE | MAE | R2 | RMSE | MAE | ||
| Red spruce | epochs = 300, batch_size = 4 | 0.8321 | 0.0959 | 0.0626 | 0.9978 | 0.0097 | 0.0073 |
| Dahurian larch | epochs =200, batch_size = 4 | 0.3067 | 0.0544 | 0.0450 | 0.9902 | 0.0053 | 0.0042 |
| White birch | epochs = 300, batch_size =12 | 0.8096 | 0.1063 | 0.0941 | 0.9991 | 0.0073 | 0.0053 |
| Manchurian ash | epochs = 300, batch_size = 4 | 0.8053 | 0.0561 | 0.0429 | 0.9989 | 0.0049 | 0.0033 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Guo, J.; Cool, J.; Luo, C.; Zhong, Y.; Ji, F.; Yu, K.; Qin, R.; Xu, H.; Hu, Y. Prediction on Moisture Content of Living Trees Using a Multi-Scale One-Dimensional Convolutional Neural Network with Attention Mechanism Based on Data Augmentation. Forests 2026, 17, 618. https://doi.org/10.3390/f17050618
Guo J, Cool J, Luo C, Zhong Y, Ji F, Yu K, Qin R, Xu H, Hu Y. Prediction on Moisture Content of Living Trees Using a Multi-Scale One-Dimensional Convolutional Neural Network with Attention Mechanism Based on Data Augmentation. Forests. 2026; 17(5):618. https://doi.org/10.3390/f17050618
Chicago/Turabian StyleGuo, Jiaxing, Julie Cool, Chaoguang Luo, Yan Zhong, Fengfeng Ji, Kuanjie Yu, Ruixia Qin, Huadong Xu, and Yanbo Hu. 2026. "Prediction on Moisture Content of Living Trees Using a Multi-Scale One-Dimensional Convolutional Neural Network with Attention Mechanism Based on Data Augmentation" Forests 17, no. 5: 618. https://doi.org/10.3390/f17050618
APA StyleGuo, J., Cool, J., Luo, C., Zhong, Y., Ji, F., Yu, K., Qin, R., Xu, H., & Hu, Y. (2026). Prediction on Moisture Content of Living Trees Using a Multi-Scale One-Dimensional Convolutional Neural Network with Attention Mechanism Based on Data Augmentation. Forests, 17(5), 618. https://doi.org/10.3390/f17050618

