Preprints
https://doi.org/10.5194/egusphere-2025-6346
https://doi.org/10.5194/egusphere-2025-6346
20 Jan 2026
 | 20 Jan 2026
Status: this preprint is open for discussion and under review for Earth Surface Dynamics (ESurf).

ImageGrains 2.0: Improved precision and generalization for grain segmentation

David Mair, Guillaume Witz, Ariel Do Prado, Philippos Garefalakis, Amanda Wild, Fanny Ville, Bennet Schuster, Michael Horn, Jürgen Österle, Stefano C. Fabbri, Camille Litty, Stefan Achleitner, Sebastian Leistner, Clemens Hiller, and Fritz Schlunegger

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.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
David Mair, Guillaume Witz, Ariel Do Prado, Philippos Garefalakis, Amanda Wild, Fanny Ville, Bennet Schuster, Michael Horn, Jürgen Österle, Stefano C. Fabbri, Camille Litty, Stefan Achleitner, Sebastian Leistner, Clemens Hiller, and Fritz Schlunegger

Status: open (until 03 Mar 2026)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
David Mair, Guillaume Witz, Ariel Do Prado, Philippos Garefalakis, Amanda Wild, Fanny Ville, Bennet Schuster, Michael Horn, Jürgen Österle, Stefano C. Fabbri, Camille Litty, Stefan Achleitner, Sebastian Leistner, Clemens Hiller, and Fritz Schlunegger

Data sets

ImageGrains 2.0 dataset D. Mair et al. https://doi.org/10.5281/zenodo.17866826

Model code and software

ImageGrains 2.0 models D. Mair et al. https://doi.org/10.5281/zenodo.15309323

David Mair, Guillaume Witz, Ariel Do Prado, Philippos Garefalakis, Amanda Wild, Fanny Ville, Bennet Schuster, Michael Horn, Jürgen Österle, Stefano C. Fabbri, Camille Litty, Stefan Achleitner, Sebastian Leistner, Clemens Hiller, and Fritz Schlunegger

Viewed

Total article views: 65 (including HTML, PDF, and XML)
HTML PDF XML Total Supplement BibTeX EndNote
47 17 1 65 2 4 3
  • HTML: 47
  • PDF: 17
  • XML: 1
  • Total: 65
  • Supplement: 2
  • BibTeX: 4
  • EndNote: 3
Views and downloads (calculated since 20 Jan 2026)
Cumulative views and downloads (calculated since 20 Jan 2026)

Viewed (geographical distribution)

Total article views: 19 (including HTML, PDF, and XML) Thereof 19 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 21 Jan 2026
Download
Short summary
This study introduces an image analysis framework for automatically identifying and measuring sediment grains in various types of images and scans. We employ a high-performing segmentation approach for a wide range of geoscience data, using carefully curated ground truth data. The method achieves higher accuracy and more consistent measurements than existing approaches. The data and algorithm are openly available and provided in a user-friendly way.
Share