Mapping and Classification of Trees Outside Forests using Deep Learning

Moritz Lucas, Hamid Ebrahimy, Viacheslav Barkov, Ralf Pecenka, Kai-Uwe Kühnberger +1 more
10/29/2025
cs.CV

Official code: Moerizzy/TOFMapper (12 stars, GPL-3.0, last commit 2025-11-03).

Abstract

Trees Outside Forests (TOF) play an important role in agricultural landscapes by supporting biodiversity, sequestering carbon, and regulating microclimates. Yet, most studies have treated TOF as a single class or relied on rigid rule-based thresholds, limiting ecological interpretation and adaptability across regions. To address this, we evaluate deep learning for TOF classification using a newly generated dataset and high-resolution aerial imagery from four agricultural landscapes in Germany. Specifically, we compare convolutional neural networks (CNNs), vision transformers, and hybrid CNN-transformer models across six semantic segmentation architectures (ABCNet, LSKNet, FT-UNetFormer, DC-Swin, BANet, and U-Net) to map four categories of woody vegetation: Forest, Patch, Linear, and Tree, derived from previous studies and governmental products. Overall, the models achieved good classification accuracy across the four landscapes, with the FT-UNetFormer performing best (mean Intersection-over-Union 0.74; mean F1 score 0.84), underscoring the importance of spatial context understanding in TOF mapping and classification. Our results show good results for Forest and Linear class and reveal challenges particularly in classifying complex structures with high edge density, notably the Patch and Tree class. Our generalization experiments highlight the need for regionally diverse training data to ensure reliable large-scale mapping. The dataset and code are openly available at https://github.com/Moerizzy/TOFMapper

View on arXivView PDF

Code Implementations(1)

Moerizzy/TOFMapperOfficial100%
GPL-3.0
121PythonMar 5, 202511 months agoGPL-3.0

Similar Papers

Cite this paper

@article{lucas2025mapping,
  title  = {Mapping and Classification of Trees Outside Forests using Deep Learning},
  author = {Moritz Lucas and Hamid Ebrahimy and Viacheslav Barkov and Ralf Pecenka and Kai-Uwe Kühnberger and Björn Waske},
  year   = {2025},
  eprint = {2510.25239},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.25239v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.25239.svg)](https://codeofpaper.com/paper/2510.25239)

Discussion