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

被引:10
作者
Niedballa, Juergen [1 ]
Axtner, Jan [1 ]
Doebert, Timm Fabian [2 ]
Tilker, Andrew [1 ,3 ]
An Nguyen [1 ]
Wong, Seth T. [1 ]
Fiderer, Christian [4 ,5 ]
Heurich, Marco [4 ,5 ,6 ]
Wilting, Andreas [1 ]
机构
[1] Leibniz Inst Zoo & Wildlife Res, Dept Ecol Dynam, Berlin, Germany
[2] Univ Alberta, Dept Earth & Atmospher Sci, Edmonton, AB, Canada
[3] Re Wild, Austin, TX USA
[4] Bavarian Forest Natl Pk, Grafenau, Germany
[5] Albert Ludwigs Univ Freiburg, Freiburg, Germany
[6] Inland Norway Univ Appl Sci, Koppang, Norway
来源
METHODS IN ECOLOGY AND EVOLUTION | 2022年 / 13卷 / 11期
关键词
canopy density; canopy hemispherical photography; computer vision; convolutional neural network; forest monitoring; machine learning; UNet; vegetation density; UNDERSTORY VEGETATION; AIRBORNE LIDAR; FOREST; COVER; DENSITY;
D O I
10.1111/2041-210X.13984
中图分类号
Q14 [生态学(生物生态学)];
学科分类号
071012 ; 0713 ;
摘要
Convolutional neural networks (CNNs) and deep learning are powerful and robust tools for ecological applications, and are particularly suited for image data. Image segmentation (the classification of all pixels in images) is one such application and can, for example, be used to assess forest structural metrics. While CNN-based image segmentation methods for such applications 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 CNN-based workflow for general purpose image segmentation using the U-Net and U-Net++ architectures in R. The workflow covers data (pre)processing, model training and predictions. We illustrate the utility of the package with image recognition models for two forest structural metrics: tree canopy density and understorey vegetation density. We trained the models using large and diverse training datasets from a variety of forest types and biomes, consisting of 2877 canopy images (both canopy cover and hemispherical canopy closure photographs) and 1285 understorey vegetation images. Overall segmentation accuracy of the models was high with a Dice score of 0.91 for the canopy model and 0.89 for the understorey vegetation model (assessed with 821 and 367 images respectively). The image segmentation models performed significantly better than commonly used thresholding methods, and generalized well to data from study areas not included in training. This indicates 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 pretrained models. Furthermore, the package facilitates custom image segmentation with single or multiple classes and based on colour or grayscale images, for example, for applications 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.
引用
收藏
页码:2363 / 2371
页数:9
相关论文
共 44 条
[1]  
Abadi M., 2016, arXiv, DOI DOI 10.48550/ARXIV.1603.04467
[2]   Habitat-Net: Segmentation of habitat images using deep learning [J].
Abrams, Jesse F. ;
Vashishtha, Anand ;
Wong, Seth T. ;
An Nguyen ;
Mohamed, Azlan ;
Wieser, Sebastian ;
Kuijper, Arjan ;
Wilting, Andreas ;
Mukhopadhyay, Anirban .
ECOLOGICAL INFORMATICS, 2019, 51 :121-128
[3]  
Allaire J., 2021, KERAS R INTERFACE KE
[4]   Stream Amphibian Detectability and Habitat Associations in a Reduced Impact Logging Concession in Malaysian Borneo [J].
Asad, Sami ;
Abrams, Jesse F. ;
Guharajan, Roshan ;
Sikui, Julsun ;
Wilting, Andreas ;
Rodel, Mark-Oliver .
JOURNAL OF HERPETOLOGY, 2020, 54 (04) :385-392
[5]   Reduction in browsing intensity may not compensate climate change effects on tree species composition in the Bavarian Forest National Park [J].
Cailleret, Maxime ;
Heurich, Marco ;
Bugmann, Harald .
FOREST ECOLOGY AND MANAGEMENT, 2014, 328 :179-192
[6]   Quantifying understory vegetation density using small-footprint airborne lidar [J].
Campbell, Michael J. ;
Dennison, Philip E. ;
Hudak, Andrew T. ;
Parham, Lucy M. ;
Butler, Bret W. .
REMOTE SENSING OF ENVIRONMENT, 2018, 215 :330-342
[7]  
Caruana R, 2001, ADV NEUR IN, V13, P402
[8]  
Chianucci F, 2022, bioRxiv, DOI [10.1101/2022.01.13.475850, 10.1101/2022.01.13.475850, DOI 10.1101/2022.01.13.475850]
[9]  
Chianucci F, 2016, SILVA FENN, V50
[10]  
Chollet F., 2015, Keras