← Papers

Unverified paper record

imageseg: an R package for deep learning-based image segmentation

bioRxiv · 17 Dec 2021 · 10.1101/2021.12.16.469125

Abstract

Convolutional 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. Here, 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. Overall 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. The 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.

Plant phenotyping relevance

森林の樹冠密度・下層植生密度という植物群落の構造形質を画像分割で推定するRパッケージとワークフローを開発・検証しており、植物フェノタイピング手法が中心である。

abstractHere, we present R package imageseg which implements a workflow for general-purpose image segmentation using CNNs and the U-Net architecture in R.
abstractWe illustrate the utility of the package with two models for forest structural metrics: tree canopy density and understory vegetation density.
abstractOverall 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

Code and data availability

The paper's imageseg R package (source code, pre-trained canopy/understory models, and training/testing image data) is publicly available on CRAN and GitHub, with explicit availability statements.

Codepublic

Source code and the development version are available from GitHub (https://github.com/EcoDynIZW/imageseg). Links to the pre-trained models, classification examples and data used for model training and testing are available from: https://github.com/EcoDynIZW/imageseg.

Open resource ↗EcoDynIZW/imageseg · pdf-page:9 lines:1-46
Model or weightspublic

Links to the pre-trained models, classification examples and data used for model training and testing are available from: https://github.com/EcoDynIZW/imageseg.

Open resource ↗EcoDynIZW/imageseg · pdf-page:9 lines:1-46

This is an automatically classified, unverified record. Curator approval is required before any resource enters the Catalog.