Instructions to use weecology/cropmodel-deadtrees with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- DeepForest
How to use weecology/cropmodel-deadtrees with DeepForest:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download README.md from weecology/cropmodel-deadtrees: direct link, hf CLI and curl.
- Browser
- Download file 7.18 kB
-
https://huggingface.co/weecology/cropmodel-deadtrees/resolve/refs%2Fpr%2F2/README.md
- Command line
-
hf download hf://weecology/cropmodel-deadtrees@refs/pr/2/README.md
-
curl -L -o README.md https://huggingface.co/weecology/cropmodel-deadtrees/resolve/refs%2Fpr%2F2/README.md
license: mit
library_name: deepforest
pipeline_tag: image-classification
tags:
- deepforest
- remote-sensing
- aerial-imagery
- forest
- tree-mortality
- ecology
- model_hub_mixin
- pytorch_model_hub_mixin
datasets:
- ayushi3536/deadtree.earth-aerial-train_cc_by
- ayushi3536/deadtree.earth-aerial-bench
metrics:
- roc_auc
- f1
DeepForest Alive/Dead tree crown classifier
A ResNet-50 that classifies RGB crops of tree crowns as Alive or Dead. It is the
second stage of the DeepForest pipeline:
weecology/deepforest-tree finds crowns, and this model labels each one.
Labels: {"Alive": 0, "Dead": 1}. Input: RGB crown crop, resized to 224 × 224, ImageNet normalization.
Usage
from deepforest import main
from deepforest.model import CropModel
m = main.deepforest()
m.load_model("weecology/deepforest-tree")
crop_model = CropModel.load_model("weecology/cropmodel-deadtrees")
predictions = m.predict_tile(path="tile.tif", crop_model=crop_model)
# predictions has cropmodel_label ("Alive"/"Dead") and cropmodel_score per crown
The Dead probability is reasonably calibrated. Raise the threshold to about 0.7 if false alarms cost more than missed dead trees, or lower it to find more dead trees (see Evaluation).
Training
Two stages, both with Adam (lr 1e-4) and the checkpoint with the lowest validation loss. Fine-tuning reaches its lowest validation loss after one epoch.
- Pretraining on deadtrees.earth crowns (weak labels). About 250,000 crowns from DTE-aerial-train (CC BY 4.0 part, 0.1 m, 1,617 orthophotos worldwide). DeepForest detected crowns on each patch. A crown is Dead when at least 50% of its box is mapped as tree mortality, and Alive when its box has no mortality and at least 70% tree cover. The masks are model-assisted pseudo-labels. Train and validation are split by orthophoto.
- Fine-tuning on NEON crowns (8,449 crowns, 2,014 Dead), all 0.1 m NEON RGB.
- Hand labels: 6,329 hand-labelled crowns (5,358 Alive, 971 Dead) from 41 sites. They are split into train, validation and test by 1 km tile, so no tile appears in two splits. 47 images labelled both Alive and Dead were removed.
- Field-survey crowns, checked by a person: 2,120 crowns (1,077 Alive, 1,043 Dead) of 1,030 trees at 33 sites, all in train. Trees recorded as standing dead (or alive before they died) in the NEON Woody Vegetation Structure survey (RELEASE-2026) were placed from their mapped stem locations and matched to the nearest detected crown in every RGB flight from 2014 to 2026. Crowns whose lidar canopy height disagreed with the field height were dropped. A person then reviewed 6,538 crowns and deleted the obvious mistakes, mostly live canopy over a dead understorey stem (81% of the Dead candidates). Tiles in the hand-label validation and test splits were excluded.
The full pipeline, from raw sources to this checkpoint, is in
scripts/alive_dead.
Evaluation
Two test sets, neither used in training:
- NEON test: 882 hand-labelled crowns (136 Dead) from 25 held-out 1 km tiles.
- DTE benchmark: 2,841 crowns from the 25 expert-labelled sites of DTE-aerial-bench (10 cm patches), labelled from the expert masks with the same rule as in pretraining.
| Model | NEON AUROC | NEON AP | NEON Dead F1 | DTE AUROC | DTE AP | DTE Dead F1 |
|---|---|---|---|---|---|---|
| Previous release (Oct 2025, NEON hand labels) | n/a* | n/a* | n/a* | 0.935 | 0.899 | 0.71 |
| NEON hand labels only, tile-grouped split | 0.965 | 0.931 | 0.87 | 0.930 | 0.865 | 0.47 |
| deadtrees.earth pretraining + NEON hand labels | 0.985 | 0.950 | 0.87 | 0.983 | 0.971 | 0.84 |
| This model (deadtrees.earth pretraining + NEON hand labels + field-survey crowns) | 0.974 | 0.931 | 0.85 | 0.989 | 0.980 | 0.93 |
Dead F1 is at a 0.5 threshold. *The previous release was trained on 88% of the current NEON test crops, so its NEON score is not comparable.
Adding the field-survey crowns lowers NEON test AP slightly (0.950 to 0.931; a paired bootstrap puts the difference at -0.035 to -0.005) and raises Dead recall on the DTE benchmark from 0.73 to 0.92 at a 0.5 threshold.
Calibration. The previous release scores almost every crown 0 or 1: on the DTE benchmark, 86% of its wrong calls have a confidence above 0.99 (log loss 1.46). For this model it is 10% (log loss 0.11, expected calibration error 0.015), so its Dead probability can be used as a probability. On NEON test it slightly overcalls Dead between 0.5 and 0.7, where about 30% of crowns are dead.
| Threshold | NEON recall | NEON precision | DTE recall | DTE precision |
|---|---|---|---|---|
| 0.7 | 0.82 | 0.92 | 0.88 | 0.97 |
| 0.5 | 0.87 | 0.83 | 0.92 | 0.94 |
| 0.3 | 0.92 | 0.74 | 0.94 | 0.91 |
| 0.2 | 0.94 | 0.69 | 0.95 | 0.89 |
Limitations
- "Dead" means visible mortality symptoms in RGB (grey or brown crowns, leaf loss, snags), not physiological death. Leaf-off deciduous trees, shadows, flowering and pale-crowned species can look dead.
- The DTE benchmark labels come from the same box-fraction rule as pretraining, which favours this model on that benchmark. Partly dead crowns and boxes that include a dead neighbour are labelled noisily.
- Trained and tested at about 0.1 m resolution. It has not been validated on coarser imagery such as NAIP (0.6 m).
- The NEON hand-labelled Dead crops are larger than the Alive ones (median 85 vs 53 px), so the model may use crop size as a cue.
- Field-survey crowns are matched to the nearest detected crown and were checked only for obvious errors, so some boxes may still cover a neighbour.
Data and citation
Fine-tuning data: NEON Woody Vegetation Structure (DP1.10098.001, RELEASE-2026) and NEON RGB orthomosaics (DP3.30010.001). Pretraining data: deadtrees.earth-aerial, CC BY 4.0. Please cite Sharma et al. (2026) and credit the orthophoto contributors listed in the dataset metadata.
@misc{sharma2026deadtreesearthaerial,
title={deadtrees.earth-aerial: A Multi-Resolution Aerial Image Dataset for Tree Cover and Mortality Detection},
author={Sharma, Ayushi and Mosig, Clemens and Drees, Lukas and Soltani, Salim and Vajna-Jehle, Janusch and Sheppard, Aaron and Ahmadi, Belqis and Schmid, Jonathan and Neumeier, Paul and Jacobs, Nathan and Wegner, Jan Dirk and Kattenborn, Teja},
year={2026}, eprint={2605.19605}, archivePrefix={arXiv}, primaryClass={cs.CV}
}
@article{weinstein2023capturing,
title={Capturing long-tailed individual tree diversity using an airborne imaging and a multi-temporal hierarchical model},
author={Weinstein, Ben G and others},
journal={Remote Sensing in Ecology and Conservation},
volume={9}, number={5}, pages={656--670}, year={2023}
}
