CNN-CBAM Prediction Model for Moisture Content of Raw Materials for Wood-Based Panels Based on Near-Infrared Spectroscopy

Abstract

Wood moisture content critically influences the performance and processing quality of wood-based panels. Therefore, precise and rapid prediction of wood moisture content is essential for enhancing production efficiency and ensuring product quality. In this study, three representative wood raw materials for wood-based panels (Tiia, Larix, and Picea) were investigated. Their near-infrared spectral (NIRS) data were collected, and anomalous samples were identified and removed. The spectral data were then pre-processed, and the Competitive Adaptive Reweighted Sampling (CARS) algorithm was applied to extract features highly correlated with wood moisture content. Subsequently, Partial Least Squares (PLS) regression, Convolutional Neural Network (CNN), CNN combined with channel attention mechanism (CNN-CAM), CNN combined with spatial attention mechanism (CNN-SAM), and CNN combined with Convolutional Block Attention Mechanism (CNN-CBAM) models were developed and evaluated for their suitability and stability in predicting wood moisture content. A total of 305 wood-based panel materials samples were randomly divided into calibration and prediction sets at a 3:1 ratio. The samples underwent outlier removal, spectral preprocessing, feature extraction, and modeling. Among all methods tested, the CNN-CBAM model combined with CARS-based feature selection achieved the highest accuracy, yielding a prediction set coefficient of determination (R²) of 0.9730 and a root-mean-square error of prediction (RMSEP) of 0.1840. The CNN-CBAM model demonstrates excellent performance in predicting the moisture content of Tiia, Larix, and Picea used in wood-based panels. By incorporating the convolutional block attention mechanism, the model effectively captures key spectral features, accounting for both global inter-channel correlations and local spatial distinctions. This significantly enhances prediction accuracy and generalization, providing an efficient tool for online monitoring and quality control in the production of wood-based panels.

Transparent peer review

To support increased transparency, we offer authors the option to publish the peer review history alongside their article.

View this article’s peer review history

Article information

Article type
Paper
Submitted
26 Sep 2025
Accepted
15 Dec 2025
First published
16 Dec 2025

Anal. Methods, 2026, Accepted Manuscript

CNN-CBAM Prediction Model for Moisture Content of Raw Materials for Wood-Based Panels Based on Near-Infrared Spectroscopy

Z. Qin, L. Xu, C. Chen, Y. Qi, Y. Li and Y. Li, Anal. Methods, 2026, Accepted Manuscript , DOI: 10.1039/D5AY01609F

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements