1Provide a reflectance spectrum
Wavelength (nm) and reflectance (%, 0–100) — any contiguous VNIR range works; it will be resampled onto the 147-band grid the models were trained on (401–1026 nm) and converted to a 0–1 fraction before inference.
Loads the field spectrum used to validate this tool (389–1026 nm, ~4 nm steps).
First column = wavelength (nm), second = reflectance (%)
2Spectrum preview
Grey line — your measured spectrum. Green dots — the 147 resampled points actually fed to the networks. Shaded band — the 401–1026 nm window the models use.
3Run retrieval
Runs all five trained networks on the resampled spectrum.
4Results
Load a spectrum and run retrieval to see trait estimates here.
iMethodology & model notes
Input
147 reflectance values, 401–1026 nm, on the wavelength grid below (irregular ~4 nm steps — matches the calibration spectrum supplied for this tool). Spectra are entered/displayed as percent reflectance (0–100, the common spectrometer convention) but converted to a 0–1 fraction immediately before inference, since that's the scale the networks were trained on — none of the five models contain a built-in normalization layer.
Models
| file | architecture | outputs |
|---|---|---|
ANN_Cw.h5 | 147→256→128→64→1 | Cw |
ANN_mo.h5 | 147→256→128→64→4 | Cab, Car, Cbrown, LAI |
ANN_hyperspectral.h5 | 147→735→735→735→5 | Cab, Car, Cbrown, Cw, LAI |
ANN_hyperspectral2.h5 | 147→128→64→32→5 (trained w/ dropout+L2) | Cab, Car, Cbrown, Cw, LAI |
ANN_hyperspectral3.h5 | 147→256→128→64→64→32→5 | Cab, Car, Cbrown, Cw, LAI |
All hidden layers use ReLU; output layers are linear. The browser forward pass was checked against TensorFlow on the validation spectrum and matches to float32 precision (≤4×10⁻⁵ absolute).
Resampling
Any uploaded/pasted spectrum is linearly interpolated onto the 147-point grid above. Wavelengths outside your supplied range are held at the nearest edge value (flagged in the status line) rather than extrapolated, since linear extrapolation in reflectance space is generally unreliable.