DOI: 10.3390/chemosensors14080183 ISSN: 2227-9040

Nondestructive Hyperspectral Sensing of Sodium Chloride in Mural Plaster Layers Based on Multiscale Wavelet Features and Regression Models Optimized by the Sparrow Search Algorithm

Wenxuan Lin, Shuqiang Lyu, Feng Gao, Shuo Zhang, Xiaoxuan Pan, Hongying Zhao

The nondestructive detection of sodium chloride in mural plaster layers is important for assessing salt-related deterioration in cultural heritage materials. However, the weak and indirect spectral response of sodium chloride makes accurate hyperspectral detection challenging. This study developed a hyperspectral regression framework centered on Sparrow Search Algorithm (SSA) optimization, in which continuous wavelet transform (CWT) was used to construct multiscale spectral representations and Pearson correlation analysis combined with the Successive Projections Algorithm (PCC-SPA) was used for compact variable selection. Partial least squares regression (PLSR), support vector regression (SVR), extreme gradient boosting (XGBoost), SSA-optimized SVR, and SSA-optimized XGBoost were evaluated under nested stratified specimen-grouped five-fold cross-validation. Feature selection and hyperparameter optimization were independently performed within each outer training fold, whereas the held-out specimens were reserved for performance evaluation. SVR-SSA maintained high predictive capability across both conventional and multiscale spectral representations. SG + SNV yielded an R2 of 0.8167 ± 0.0690 and an RMSE of 0.3701 ± 0.0636 percentage points. Scale 6 CWT achieved closely comparable R2 and RMSE values of 0.8100 ± 0.0812 and 0.3731 ± 0.0767 percentage points, respectively, together with a lower MAE of 0.2788 ± 0.0620 percentage points. Among the ten CWT scales, Scale 6 achieved the highest mean prediction accuracy, whereas Scale 2 provided the best comprehensive balance between predictive accuracy and fold-to-fold stability. These results demonstrate that the effectiveness of SSA optimization depends on the input feature representation and that CWT provides scale-resolved information beyond a single conventional spectral representation. The proposed framework provides methodological support for the nondestructive quantitative assessment of NaCl-related deterioration in mural plaster materials and establishes a basis for further application in mural conservation.

More from our Archive