<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" specific-use="SMUR" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">EGUsphere</journal-id>
<journal-title-group>
<journal-title>EGUsphere</journal-title>
<abbrev-journal-title abbrev-type="publisher">EGUsphere</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">EGUsphere</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub"></issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/egusphere-2025-6346</article-id>
<title-group>
<article-title>ImageGrains 2.0: Improved precision and generalization for grain segmentation</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mair</surname>
<given-names>David</given-names>
<ext-link>https://orcid.org/0000-0002-7018-6416</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Witz</surname>
<given-names>Guillaume</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Do Prado</surname>
<given-names>Ariel</given-names>
<ext-link>https://orcid.org/0000-0003-0135-6239</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Garefalakis</surname>
<given-names>Philippos</given-names>
<ext-link>https://orcid.org/0000-0002-6171-1258</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Wild</surname>
<given-names>Amanda</given-names>
<ext-link>https://orcid.org/0000-0003-3917-9135</ext-link>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ville</surname>
<given-names>Fanny</given-names>
<ext-link>https://orcid.org/0009-0002-5833-3169</ext-link>
</name>
<xref ref-type="aff" rid="aff6">
<sup>6</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Schuster</surname>
<given-names>Bennet</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Horn</surname>
<given-names>Michael</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Österle</surname>
<given-names>Jürgen</given-names>
</name>
<xref ref-type="aff" rid="aff7">
<sup>7</sup>
</xref>
<xref ref-type="aff" rid="aff8">
<sup>8</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fabbri</surname>
<given-names>Stefano C.</given-names>
</name>
<xref ref-type="aff" rid="aff9">
<sup>9</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Litty</surname>
<given-names>Camille</given-names>
</name>
<xref ref-type="aff" rid="aff9">
<sup>9</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Achleitner</surname>
<given-names>Stefan</given-names>
<ext-link>https://orcid.org/0000-0003-3339-992X</ext-link>
</name>
<xref ref-type="aff" rid="aff10">
<sup>10</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Leistner</surname>
<given-names>Sebastian</given-names>
<ext-link>https://orcid.org/0000-0001-5331-0537</ext-link>
</name>
<xref ref-type="aff" rid="aff10">
<sup>10</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hiller</surname>
<given-names>Clemens</given-names>
</name>
<xref ref-type="aff" rid="aff10">
<sup>10</sup>
</xref>
<xref ref-type="aff" rid="aff11">
<sup>11</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Schlunegger</surname>
<given-names>Fritz</given-names>
<ext-link>https://orcid.org/0000-0002-2955-4440</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Institute of Geological Sciences, University of Bern, Bern, 3012, Switzerland</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Data Science Lab, University of Bern, Bern, 3012, Switzerland</addr-line>
</aff>
<aff id="aff3">
<label>3</label>
<addr-line>Institute of Geosciences, University of São Paulo, São Paulo, 05508-080, Brazil</addr-line>
</aff>
<aff id="aff4">
<label>4</label>
<addr-line>Institute of Physical Geography and Geoecology, RWTH-Aachen University, Aachen, 52062, Germany</addr-line>
</aff>
<aff id="aff5">
<label>5</label>
<addr-line>GFZ Helmholtz Centre for Geosciences, 14473 Potsdam, Germany</addr-line>
</aff>
<aff id="aff6">
<label>6</label>
<addr-line>Fluvial Dynamics Research Group (RIUS), University of Lleida, Lleida, 25003, Spain</addr-line>
</aff>
<aff id="aff7">
<label>7</label>
<addr-line>School of Geography, Environment and Earth Sciences, Victoria University of Wellington, Wellington , 6012, New Zealand</addr-line>
</aff>
<aff id="aff8">
<label>8</label>
<addr-line>Amt der Vorarlberger Landesregierung, Bregenz, 6901, Austria</addr-line>
</aff>
<aff id="aff9">
<label>9</label>
<addr-line>Federal Office of Topography swisstopo, Wabern, 3084, Switzerland</addr-line>
</aff>
<aff id="aff10">
<label>10</label>
<addr-line>Unit of Hydraulic Engineering, University of Innsbruck, Innsbruck, 6020, Austria</addr-line>
</aff>
<aff id="aff11">
<label>11</label>
<addr-line>Natural Hazards and Risk Management, Geoconsult ZT GmbH, Puch bei Hallein, 5412, Austria</addr-line>
</aff>
<pub-date pub-type="epub">
<day>20</day>
<month>01</month>
<year>2026</year>
</pub-date>
<volume>2026</volume>
<fpage>1</fpage>
<lpage>31</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2026 David Mair et al.</copyright-statement>
<copyright-year>2026</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2026/egusphere-2025-6346/">This article is available from https://egusphere.copernicus.org/preprints/2026/egusphere-2025-6346/</self-uri>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2026/egusphere-2025-6346/egusphere-2025-6346.pdf">The full text article is available as a PDF file from https://egusphere.copernicus.org/preprints/2026/egusphere-2025-6346/egusphere-2025-6346.pdf</self-uri>
<abstract>
<p>Recent advances in deep-learning&amp;ndash;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.&lt;/p&gt;
&lt;p&gt;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.</p>
</abstract>
<counts><page-count count="31"/></counts>
</article-meta>
</front>
<body/>
<back>
</back>
</article>