DenseForestViT — native-resolution multi-task forest structure from GEDI and multi-modal EO
DenseForestViT predicts three forest-structure variables at 10 m from one model:
| Output | Meaning | Unit | Output range |
|---|---|---|---|
| RH | canopy height (GEDI RH98) | m | 0–60 |
| PAI | plant area index | m² of plant surface per m² of ground | 0–10 |
| FHD | foliage height diversity (Shannon diversity of the vertical foliage profile) | – | 0–4 |
It was trained on GEDI L2A/L2B labels and eight Earth observation modalities (41 bands, 2024 composites), each kept at its native resolution: Sentinel-1, Sentinel-2 and Sentinel-2 indices at 10 m; HLS indices, Landsat, Landsat indices, Landsat tasseled cap and SRTM terrain at 30 m.
Paper: Mayer, T., Persello, C., Willemen, L., Griffin, R. (in review). Mapping Forest Structure with a Native-Resolution Vision Transformer Employing GEDI and Multi-modal Earth Observation Data. Code: https://github.com/MayerT1/DenseForestViT
Model
- Two token streams: 10 m inputs give one token per pixel (3 × 1,024 tokens); 30 m inputs give one token per 2 × 2 pixels = 60 m (5 × 256 tokens).
- Three layers of self-attention within a stream and cross-attention between streams (96-d, 4 heads), with an ALiBi bias by ground distance between token centres.
- Convolutional decoder to three sigmoid-bounded heads. An auxiliary head reconstructs the GEDI L1B waveform during training only; inference needs EO data alone.
- 861,679 parameters. Checkpoint
best_model.pt(state dict; most of its size is the precomputed distance-bias buffers). Architecture arguments inconfig.json; code inmodel_v13.py.
Training
152,308 GEDI-centred 32 × 32 chips from 200 sample areas in 24 Appalachian Level IV ecoregions (42,820 test,
22,628 held-out validation; split by 1 km blocks). Huber loss on the 3 × 3 pixels under each GEDI footprint,
equal task weights, + 0.2 × waveform loss + 0.001 × total variation. AdamW (lr 2 × 10⁻⁴), effective batch 32,
early stopping on GEDI test loss. Selected run: P2_L2_seed2 (Native-30m geometry, equal task weights).
Evaluation (airborne lidar, 10 m; 95% block-bootstrap intervals in the paper)
| Site | RH R² | PAI R² | FHD R² |
|---|---|---|---|
| Sewanee, TN | 0.60 | 0.23 | 0.40 |
| MLBS, VA | 0.55 | 0.33 | 0.41 |
| ORNL, TN | 0.72 | 0.50 | 0.49 |
Held-out GEDI validation R²: RH 0.55, PAI 0.28, FHD 0.61. Matched a U-Net for height, exceeded it for PAI at all sites, similar for FHD.
Use
pip install torch huggingface_hub
python example_inference.py <this repo id>
Inputs must be prepared exactly as in training with stage2_windows.py: for each chip centre, a 32 × 32 window
of every modality at its native resolution, bands selected by name in the order given in that file, missing
values filled with the window median, each band stretched 0–1 within the window. The trained prediction is the
centre 3 × 3 pixels (30 m) of the output; wall-to-wall maps tile one chip per 3 × 3 block (see
Stage_2_Inference/stage2_run_v13.py in the code repository).
Limitations
- Trained and evaluated only in the Appalachian ecoregions of the eastern United States; do not apply elsewhere without retraining and independent validation.
- Predictions regress toward the mean: stands taller than about 30 m are predicted at 22–28 m, and PAI saturates near 3 m² m⁻².
- Expects 2024-style annual composites built with the recipe in the paper; other compositing will shift inputs.
Citation
@article{Mayer_DenseForestViT,
author = {Mayer, Timothy and Persello, Claudio and Willemen, Louise and Griffin, Robert},
title = {Mapping Forest Structure with a Native-Resolution Vision Transformer Employing GEDI and Multi-modal Earth Observation Data},
note = {In review}
}
Funding: NASA Cooperative Agreement 80MSFC22M004 (University of Alabama in Huntsville, NASA Earth Action).
- Downloads last month
- -