bioRxivEcology
imageseg: an R package for deep learning-based image segmentation
J. Niedballa, J. Axtner, T. F. Döbert, A. Tilker, A. Nguyen, S. T. Wong, C. Fiderer, M. Heurich, A. Wilting
Abstract
O_LIConvolutional neural networks (CNNs) and deep learning are powerful and robust tools for ecological applications. CNNs can perform very well in various tasks, especially for visual tasks and image data. Image segmentation (the classification of all pixels in images) is one such task and can for example be used to assess forest vertical and horizontal structure. While such methods have been suggested, widespread adoption in ecological research has been slow, likely due to technical difficulties in implementation of CNNs and lack of toolboxes for ecologists. C_LIO_LIHere, we present R package imageseg which implements a workflow for general-purpose image segmentation using CNNs and the U-Net architecture in R. The workflow covers data (pre)processing, model training, and predictions. We illustrate the utility of the package with two models for forest structural metrics: tree canopy density and understory vegetation density. We trained the models using large and diverse training data sets from a variety of forest types and biomes, consisting of 3288 canopy images (both canopy cover and hemispherical canopy closure photographs) and 1468 understory vegetation images. C_LIO_LIOverall classification accuracy of the models was high with a Dice score of 0.91 for the canopy model and 0.89 for the understory vegetation model (assessed with 821 and 367 images, respectively), indicating robustness to variation in input images and good generalization strength across forest types and biomes. C_LIO_LIThe package and its workflow allow simple yet powerful assessments of forest structural metrics using pre-trained models. Furthermore, the package facilitates custom image segmentation with multiple classes and based on color or grayscale images, e.g. in cell biology or for medical images. Our package is free, open source, and available from CRAN. It will enable easier and faster implementation of deep learning-based image segmentation within R for ecological applications and beyond. C_LI
- assay: imaging
- research focus: cell type annotation
- research focus: clustering
- research focus: dimensionality reduction
- research focus: benchmarking
- approach: deep learning
- approach: transformer / foundation model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Habitat-Net: Segmentation of habitat images using deep learning
J. F. Abrams, A. Vashishtha, … A. Mukhopadhyay·bioRxiv·Nov 29, 2018
- DeepForest: A Python package for RGB deep learning tree crown delineation
Ben. G. Weinstein, Sergio Marconi, … Ethan White·bioRxiv·Jul 7, 2020
- Deep Blueprint: A Literature Review and Guide to Automated Image Classification for Ecologists
Chloe A. Game, Nils Piechaud, Kerry L. Howell·Journal of Animal EcologyPeer-reviewed·Jun 1, 2026
- Accurate delineation of individual tree crowns in tropical forests from aerial RGB imagery using Mask R-CNN
J. G. C. Ball, S. H. M. Hickman, … D. A. Coomes·bioRxiv·Jul 10, 2022
- FeatureForest: the power of foundation models, theusability of random forests
Mehdi Seifi, Damian E. Dalle Nogare, … Joran Deschamps·npj ImagingPeer-reviewed·Jul 8, 2025
- SegColR: Deep Learning for Automated Segmentation and Color Extraction
James D. Boyko·bioRxiv·Jul 28, 2024