Turning spectra into images improves plant trait retrieval with 2D-CNNs
Organizations: Data Observatory Foundation, ANID Technology Center No. DO210001, Santiago, Chile, 7510277 · Center for Climate Resilience Research (CR)2, University of Chile, Santiago, Chile, 8370449 · Sensor-based Geoinformatics (geosense), University of Freiburg, Freiburg, Breisgau, Germany · Institute for Earth System Science and Remote Sensing, Leipzig University, Germany · Faculty of Engineering and Science, Adolfo Ibáñez University, Av. Diagonal Las Torres 2460, Santiago, Chile, 7941169
Abstract
Hyperspectral reflectance spectroscopy enables non-destructive estimation of plant functional traits, yet current deep learning approaches process spectra as one-dimensional sequences, which limits how they capture long-range inter-band dependencies. We asked whether transforming 1D spectra into 2D image representations improves multi-trait prediction with convolutional neural networks (CNN). We compared nine transformations using EfficientNet-B0 on the GreenHyperSpectra dataset (7,897 labeled spectra, eight traits, 400-2450 nm), benchmarked against published 1D CNN results on the same split. Trained from scratch, the simplest transformation, a direct Reshape of the spectrum into a 2D grid, performed best () and improved on the state-of-the-art 1D baseline (, ). We then pretrained a 2D masked autoencoder (MAE-2D) on 139,000 unlabeled spectral images. Linear probing, which freezes the encoder and trains only a multilayer perceptron head, reached and exceeded every 1D self-supervised counterpart, including the fine-tuned MAE-1D (). Under cross-dataset evaluation all models lost most of their accuracy and none beat the 1D baseline significantly. To identify which wavelengths drive each prediction, we applied Integrated Gradients and Grad-CAM and unfolded band importance back to the spectral axis. Protein () and leaf water () agreed with sensitivities simulated by the PROSAIL radiative-transfer model, while carotenoids () and leaf area index () did not, showing that the model reads established leaf chemistry for traits with sharp absorption features. The representational advantage of 2D spectral images, rather than architectural complexity or ImageNet pretraining, drives the gain over 1D approaches.
Figures & tables
| Transform | Channels | Mean std | vs. 1D |
|---|---|---|---|
| Reshape | 1 | 0.684 0.001 | +0.097 ∗ |
| Serpentine | 1 | 0.675 0.004 | +0.088 ∗ |
| Hilbert | 1 | 0.674 0.005 | +0.087 ∗ |
| CWT | 1 | 0.641 0.004 | +0.054 ∗ |
| Spectrogram | 3 | 0.636 0.025 | +0.049 ∗ |
| NDI | 3 | 0.630 0.029 | +0.043 |
| Trait | Multi-trait 1D a | Reshape 2D | |
|---|---|---|---|
| C ab (Chlorophyll) | 0.517 | 0.597 | +0.080 |
| C ar (Carotenoids) | 0.544 | 0.691 | +0.147 |
| C anth (Anthocyanins) | 0.454 | 0.628 | +0.174 |
| C w (EWT) | 0.621 | 0.703 | +0.082 |
| C m (LMA) | 0.667 | 0.773 | +0.106 |
| LAI | 0.561 | 0.604 | +0.043 |
| Training regime | Multi-trait 1D a | Ours 2D | |
|---|---|---|---|
| Supervised | 0.587 | 0.684 0.001 | +0.097 ∗ |
| MAE fine-tuning | 0.641 | 0.667 0.006 | +0.026 ∗ |
| MAE linear probing | 0.466 | 0.646 0.020 | +0.180 ∗ |
| Transform | Channels | vs. 1D | Wins | |
|---|---|---|---|---|
| Reshape + CWT + NDI | 5 | 0.333 | +0.090 | 7/8 |
| Spectrogram | 3 | 0.327 | +0.085 | 5/8 |
| Serpentine | 1 | 0.326 | +0.084 | 7/8 |
| Reshape | 1 | 0.305 | +0.062 | 5/8 |
| CWT | 1 | 0.286 | +0.043 | 4/8 |
| 2D-COS | 2 | 0.268 | +0.025 | 5/8 |
| Transform | Mean nRMSE (%) | vs. 1D |
| Reshape | 12.00 0.02 | 1.70 |
| Serpentine | 12.15 0.09 | 1.55 |
| Hilbert | 12.16 0.09 | 1.54 |
| CWT | 12.76 0.06 | 0.94 |
| Spectrogram | 12.82 0.43 | 0.88 |
| NDI | 12.96 0.50 | 0.74 |
| Trait | Cherif 1D | Reshape 2D | |
|---|---|---|---|
| C ab (Chlorophyll) | 17.34 | 15.83 | 1.51 |
| C ar (Carotenoids) | 13.65 | 11.23 | 2.42 |
| C anth (Anthocyanins) | 16.46 | 13.58 | 2.89 |
| C w (EWT) | 13.10 | 11.59 | 1.52 |
| C m (LMA) | 10.67 | 8.83 | 1.84 |
| LAI | 17.49 | 16.50 | 0.98 |
| Training regime | Cherif 1D | Ours 2D | |
|---|---|---|---|
| Supervised | 13.70 | 12.00 0.02 | 1.70 |
| MAE fine-tuning | 12.78 | 12.30 0.13 | 0.48 |
| MAE linear probing | 15.50 | 12.62 0.27 | 2.87 |
| Trait | Cherif 1D | Reshape 2D | |
| Supervised | |||
| C ab (Chlorophyll) | 19.17 | 20.87 | +1.70 |
| C ar (Carotenoids) | 19.18 | 20.56 | +1.38 |
| C anth (Anthocyanins) | 23.16 | 22.02 | 1.14 |
| C w (EWT) | 25.22 | 17.76 | 7.46 |
| C m (LMA) | 14.24 | 12.95 | 1.29 |
| Trait | Cherif 1D | Reshape+CWT+NDI | Spectrogram | Serpentine | Reshape |
|---|---|---|---|---|---|
| C ab (Chlorophyll) | 0.362 | 0.379 | 0.336 | 0.378 | 0.340 |
| C ar (Carotenoids) | 0.181 | 0.065 | 0.070 | 0.084 | 0.052 |
| C anth (Anthocyanins) | 0.055 | 0.098 | 0.161 | 0.143 | 0.177 |
| C w (EWT) | 0.193 | 0.413 | 0.450 | 0.420 | 0.382 |
| C m (LMA) | 0.446 | 0.610 | 0.616 | 0.607 | 0.585 |
| LAI | 0.074 | 0.134 | 0.073 | 0.076 | 0.005 |
| Trait | Cherif MAE-1D | MAE-2D | |
|---|---|---|---|
| C ab (Chlorophyll) | 0.271 | 0.284 | +0.013 |
| C ar (Carotenoids) | 0.165 | 0.214 | +0.049 |
| C anth (Anthocyanins) | 0.112 | 0.031 | 0.143 |
| C w (EWT) | 0.280 | 0.192 | 0.088 |
| C m (LMA) | 0.575 | 0.223 | 0.352 |
| LAI | 0.229 | 0.046 | 0.183 |
| Trait | Per-image | Global | |
|---|---|---|---|
| C ab (Chlorophyll) | 0.597 0.033 | 0.566 0.032 | 0.031 |
| C ar (Carotenoids) | 0.691 0.028 | 0.619 0.041 | 0.072 |
| C anth (Anthocyanins) | 0.628 0.036 | 0.585 0.084 | 0.044 |
| C w (EWT) | 0.703 0.014 | 0.660 0.037 | 0.043 |
| C m (LMA) | 0.773 0.009 | 0.742 0.028 | 0.031 |
| LAI | 0.604 0.021 | 0.565 0.042 | 0.039 |