A

ImageGrains 2.0: Improved precision and generalization for grain segmentation

Earth Surface Dynamics, vol. 14, pp. 527–551

Abstract

Abstract. Recent advances in deep-learning–based image segmentation have enabled the development of automated approaches to detect individual grains and measure them for geoscientific applications. These methods facilitate the creation of much larger and more precise datasets than traditional manual grain measurements. However, they typically perform best as specialized models trained on homogeneous, task-specific datasets, and often show reduced accuracy when used to generalize to different data types. Here, we present an updated framework, ImageGrains 2.0 that leverages Cellpose-SAM, a recently published next-generation deep-learning model originally developed for cell segmentation in biomedical research. It currently represents the state of the art for dense segmentation in 2D and 3D biomedical datasets, and yields robust, and is capable to generalize across distinctly different image datasets. These properties allow us to re-train the model with geoscientific dataset comprising annotated images of fluvial gravel, coarse pro-glacial deposits, and X-ray computer tomography scans of glacial till and marine sand. We benchmark the segmentation performance of the method against ground-truth annotations, compare it to the performance of other segmentation methods, and we evaluate measurement accuracy. Our results indicate that this approach outperforms existing methods and confirm that the outstanding performance of Cellpose-SAM is transferable to segment sediment grains. We analyze the size and shape of these segmented grains and find that an increase in grain segmentation accuracy leads to more precise and realistic morphometric results, e.g., more accurate grain size distributions. Additionally, we introduce an interactive graphical user interface for image annotation and correction of model predictions, facilitating the use of the framework in a broader range of image settings. Furthermore, this study underscores the importance of curating of more publicly available datasets, which could pave the way towards the generation of a foundation model for segmenting granular particles in geoscientific imagery.

Authors 15

  1. David Mair corresponding

    University of Bern

    Affiliation as printed

    Institute of Geological Sciences, University of Bern, Bern, 3012, Switzerland

  2. University of Bern

    Affiliation as printed

    Data Science Lab, University of Bern, Bern, 3012, Switzerland

  3. University of Bern · Universidade de São Paulo

    Affiliation as printed

    Institute of Geological Sciences, University of Bern, Bern, 3012, Switzerland

    Institute of Geosciences, University of São Paulo, São Paulo, 05508-080, Brazil

  4. University of Bern

    Affiliation as printed

    Institute of Geological Sciences, University of Bern, Bern, 3012, Switzerland

  5. GFZ Helmholtz Centre for Geosciences · RWTH Aachen University

    Affiliation as printed

    GFZ Helmholtz Centre for Geosciences, 14473 Potsdam, Germany

    Institute of Physical Geography and Geoecology, RWTH-Aachen University, Aachen, 52062, Germany

  6. Universitat de Lleida

    Affiliation as printed

    Fluvial Dynamics Research Group (RIUS), University of Lleida, Lleida, 25003, Spain

  7. University of Bern

    Affiliation as printed

    Institute of Geological Sciences, University of Bern, Bern, 3012, Switzerland

  8. University of Bern

    Affiliation as printed

    Data Science Lab, University of Bern, Bern, 3012, Switzerland

  9. Victoria University of Wellington · Amt der Vorarlberger Landesregierung

    Affiliation as printed

    Amt der Vorarlberger Landesregierung, Bregenz, 6901, Austria

    School of Geography, Environment and Earth Sciences, Victoria University of Wellington, Wellington , 6012, New Zealand

  10. Federal Office of Topography swisstopo

    Affiliation as printed

    Federal Office of Topography swisstopo, Wabern, 3084, Switzerland

  11. Federal Office of Topography swisstopo

    Affiliation as printed

    Federal Office of Topography swisstopo, Wabern, 3084, Switzerland

  12. Universität Innsbruck

    Affiliation as printed

    Unit of Hydraulic Engineering, University of Innsbruck, Innsbruck, 6020, Austria

  13. Universität Innsbruck

    Affiliation as printed

    Unit of Hydraulic Engineering, University of Innsbruck, Innsbruck, 6020, Austria

  14. Universität Innsbruck

    Affiliation as printed

    Natural Hazards and Risk Management, Geoconsult ZT GmbH, Puch bei Hallein, 5412, Austria

    Unit of Hydraulic Engineering, University of Innsbruck, Innsbruck, 6020, Austria

  15. University of Bern

    Affiliation as printed

    Institute of Geological Sciences, University of Bern, Bern, 3012, Switzerland

Cited by 0 stored of 0

No patents citing this paper on Lens.org (checked 2026-10-06).

References 128