Enhancing SAM-based digital rock image segmentation via edge-semantics fusion

The Segment Anything Model (SAM) demonstrates strong segmentation capabilities. However, its application to digital rock images faces challenges from subtle transitions between matrix minerals and pore structures, as well as inherent heterogeneity, which result in mis-segmentation and discontinuities that affect petrophysical characterization and numerical modeling of subsurface reservoir properties. To address these challenges, we introduce ESF-SAM (Edge-Semantics Fusion-SAM), a novel approach that enhances SAM's segmentation fidelity by integrating edge and semantic features. Specifically, in ESF-SAM, semantic features from SAM's image encoder are processed through an edge decoder enhanced by progressive dilated convolutions to extract detailed structural boundaries. The resulting edge and original semantic features are adaptively fused through a dual-attention mechanism, where spatial gating attention dynamically balances their contributions across locations, and channel attention recalibrates feature importance to enrich the representation. This spatial–channel attention framework enriches feature representations, enabling targeted fine-tuning within the SAM decoder and thereby preserving global segmentation capability while significantly improving local boundary delineation in two-phase segmentation tasks. Experimental results demonstrate that ESF-SAM improves segmentation detail, leading to more accurate derivation of key rock properties such as elastic modulus and pore geometry parameters, with results that more closely align with labeled data compared to the original SAM. Trained on only a small number of annotated sandstone images, ESF-SAM effectively adapts to the target domain and exhibits strong generalization when applied to carbonate rock images without additional fine-tuning. This work exemplifies how integrating priors into foundation models can substantially enhance their applicability to complex scientific imaging tasks.

Authors

Institutions

Publication Details

Journal
Applied Computing and Geosciences
Published
2025-09-23
DOI
https://doi.org/10.1016/j.acags.2025.100292
Citations
3
Primary Topic
Drilling and Well Engineering
Type
article
Field-Weighted Citation Impact
3.44
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing SAM-based digital rock image segmentation via edge-semantics fusion

Zhiyu Hou, Danping Cao, Ziqiang Wang
3 citations
Applied Computing and Geosciences
Drilling and Well Engineering
3.44
article

Enhancing SAM-based digital rock image segmentation via edge-semantics fusion

Zhiyu Hou, Danping Cao, Ziqiang Wang
article en
3 citations

Abstract

The Segment Anything Model (SAM) demonstrates strong segmentation capabilities. However, its application to digital rock images faces challenges from subtle transitions between matrix minerals and pore structures, as well as inherent heterogeneity, which result in mis-segmentation and discontinuities that affect petrophysical characterization and numerical modeling of subsurface reservoir properties. To address these challenges, we introduce ESF-SAM (Edge-Semantics Fusion-SAM), a novel approach that enhances SAM's segmentation fidelity by integrating edge and semantic features. Specifically, in ESF-SAM, semantic features from SAM's image encoder are processed through an edge decoder enhanced by progressive dilated convolutions to extract detailed structural boundaries. The resulting edge and original semantic features are adaptively fused through a dual-attention mechanism, where spatial gating attention dynamically balances their contributions across locations, and channel attention recalibrates feature importance to enrich the representation. This spatial–channel attention framework enriches feature representations, enabling targeted fine-tuning within the SAM decoder and thereby preserving global segmentation capability while significantly improving local boundary delineation in two-phase segmentation tasks. Experimental results demonstrate that ESF-SAM improves segmentation detail, leading to more accurate derivation of key rock properties such as elastic modulus and pore geometry parameters, with results that more closely align with labeled data compared to the original SAM. Trained on only a small number of annotated sandstone images, ESF-SAM effectively adapts to the target domain and exhibits strong generalization when applied to carbonate rock images without additional fine-tuning. This work exemplifies how integrating priors into foundation models can substantially enhance their applicability to complex scientific imaging tasks.

Applied Computing and GeosciencesVol. 28
China University of Petroleum, East China (CN), University of Lausanne (CH)
Openalex Percentile: Top 7%
Drilling and Well Engineering
3.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.