Leaf & canopy trait retrieval · trained ANN ensemble

Hyperspectral Trait Retrieval

Five neural networks, trained on VNIR reflectance (401–1026 nm), retrieve chlorophyll, carotenoid, brown-pigment, equivalent water thickness and leaf-area-index from a single reflectance spectrum — entirely in your browser, no upload, no server.

400 nm5006007008009001026 nm

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).

Click to choose a file or drag a CSV/TSV/TXT here
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.

measured resampled (147 bands)

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

filearchitectureoutputs
ANN_Cw.h5147→256→128→64→1Cw
ANN_mo.h5147→256→128→64→4Cab, Car, Cbrown, LAI
ANN_hyperspectral.h5147→735→735→735→5Cab, Car, Cbrown, Cw, LAI
ANN_hyperspectral2.h5147→128→64→32→5 (trained w/ dropout+L2)Cab, Car, Cbrown, Cw, LAI
ANN_hyperspectral3.h5147→256→128→64→64→32→5Cab, 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.