The challenges of NAIP tree predictions
The challenges of using aerial imagery for tree identification are well documented; much smarter people than us have spent a lot of time on it. But we’d like to run through a few of the challenges that make it interesting, as we work on our new predictions from NAIP aerial imagery.
Trees are layered
This is maybe the most obvious; municipal tree datasets have big and small trees, and sometimes the small trees are under the big ones!
Trees are not uniformly opaque; some are extremely dense, and some actually do let through a view of the undergrowth, making handling this a little inconsistent.
This is exacerbated by the next common one:
Cameras are taking pictures at an angle
Depending on where the camera is, some undergrowth will be visible and some will not.
NAIP tiles are orthorectified - corrected to line up with a map - but that cannot reveal something hidden in the original photograph. These sketches show the viewing geometry at capture, with the angles exaggerated to make it easier to see.
Worse, the ground can be on an angle.
And let’s not stop there - not all trees grow straight!
Buildings get in the way too
Which leads us also to: big buildings block trees just as big trees block small trees.
Training on raw locations runs into this quite a bit in urban cores; you’re training a model to recognize a roof, not a tree.
Shadows are part of the picture
On a slightly more nuanced note, shadows are crucial, both for human identification and - likely - for machine learning. For example, a long, thin palm tree can be particularly distinctive in its shadow.
This means that the time of day is a confounding factor to some degree for generalization - training on a consistent angle and shadow can result in overfitting to that.
This was a particular challenge as we started to assemble synthetic recombinant aerial tiles to help with specific problem tasks; we had to be very careful to ensure that we were not combining tiles with unrealistic mixes of angle and shadow direction. We want models to be able to generalize from shadows for detection, not learn that shadow direction is randomized.
Further reading
A few useful starting points, if you’d like to get further into the weeds. These cover urban imagery, close-range drone imagery, and other remote-sensing data; their results are not accuracy estimates for our NAIP predictions.
- Remotely Sensed Tree Characterization in Urban Areas: A Review (2021) - an overview of the data sources and challenges specific to mapping urban trees.
- Tree Detection and Species Classification in a Mixed Species Forest Using Unoccupied Aircraft System (UAS) RGB and Multispectral Imagery (2022) - how finding the crowns and choosing their boundaries affects species classification.
- Tree Species Classification from UAV Canopy Images with Deep Learning Models (2024) - a useful look at how models trained in one season struggle to transfer to another.
- New dataset on 100 million canopy trees across the National Ecological Observatory Network (2024) - the researchers’ practical account of rare species, geographic variation, and the limits of a very large tree dataset.
- DeepForest 2.0 (2025) - separating the task of finding a tree from classifying the tree that was found.