journal article·2026-07-13Open access

Whole-Rock Mineral Component Identification in Shale SEM Images Using a DAM-Transformer and Analysis of NMR Response Characteristics

Xu Dong, Yu Zeng, Jiawei Tang, Xueying Shi, Wenqi Shi, Wenting Liu

Magnetochemistry· Volume 12· Issue 7

Abstract

Pixel-level identification of whole-rock mineral components in shale scanning electron microscopy (SEM) images is essential for characterizing shale-reservoir microstructures and quantifying mineral contents. Existing mineral identification algorithms generally cannot identify all whole-rock mineral components within a unified framework. Their overall accuracy is also limited by class imbalance, and fine-grained minerals and mineral boundaries remain difficult to segment in complex lithological backgrounds. To address these limitations, shale samples from the Lianggaoshan Formation in the Sichuan Basin were investigated, and a dynamic attention Transformer (DAM-Transformer) was developed for whole-rock mineral component identification in shale SEM images. The proposed method (1) integrates the matrix and associated minerals into a unified segmentation framework; (2) employs a hybrid loss function tailored to the feature distribution of shale SEM images to mitigate class imbalance and improve training stability and model generalizability; and (3) introduces a dynamic attention mechanism that adaptively optimizes window attention weights, focuses on mineral target regions, enhances boundary detail features, and suppresses background noise. The DAM-Transformer achieved a pixel-level mean accuracy (mAcc) of 78.12% across ten mineral classes, outperforming Mask2Former, FCN, UPerNet, DeepLabV3+, and other benchmark methods by 1.51–8.92%. Visual comparisons further demonstrated that the proposed method preserves the continuity of major mineral regions and substantially improves the identification of fine-grained minerals and complex mineral boundaries. In addition, application analysis of shale plug samples showed that the mineral contents identified by the DAM-Transformer exhibited clear response relationships with saturation–centrifugation NMR parameters, providing quantitative support for interpreting shale pore structure, fluid occurrence, and reservoir properties.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Mineral Processing and Grinding · Hydrocarbon exploration and reservoir analysis · NMR spectroscopy and applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Earth Sciences, Northeast Petroleum University, Daqing 163318, China

Xinjiang Research Institute of the Huairou Laboratory, Urumqi 830011, China

Key Laboratory of Continental Shale Hydrocarbon Accumulation and Efficient Development, Ministry of Education, Daqing 163318, China

Geosteering & Logging Research Institute, Sinopec Matrix Corporation, Qingdao 266071, China

Funding

Qingdao Key Technology Research and Industrialization Demonstration Project · National Natural Science Foundation of China · Excellent Youth Foundation of Heilongjiang Province of China

References (46)

Show source-provided references
1. Effects of Types and Content of Clay Minerals on Reservoir Effectiveness for Lacustrine Organic Matter Rich Shale10.1016/j.fuel.2022.125043 ↗
2. Shale Lithofacies Controls on Porosity and Pore Structure: An Example from Ordovician Goldwyer Formation, Canning Basin, Western Australia10.1016/j.jngse.2021.103888 ↗
3. Micro and Nano-Size Pores of Clay Minerals in Shale Reservoirs: Implication for the Accumulation of Shale Gas10.1016/j.sedgeo.2016.06.022 ↗
4. Detrital and Authigenic Clay Minerals in Shales: A Review on Their Identification and Applications10.1016/j.heliyon.2024.e39239 ↗
5. Machine Learning for Locating Organic Matter and Pores in Scanning Electron Microscopy Images of Organic-Rich Shales10.1016/j.fuel.2019.05.017 ↗
6. Deep Learning in Image Segmentation for Mineral Production: A Review10.1016/j.cageo.2023.105455 ↗
7. Application of Machine Learning Techniques in Mineral Classification for Scanning Electron Microscopy–Energy Dispersive X-Ray Spectroscopy (SEM-EDS) Images10.1016/j.petrol.2020.108178 ↗
8. Deep Learning-Based Method for SEM Image Segmentation in Mineral Characterization, an Example from Duvernay Shale Samples in Western Canada Sedimentary Basin10.1016/j.cageo.2020.104450 ↗
9. MudrockNet: Semantic Segmentation of Mudrock SEM Images through Deep Learning10.1016/j.cageo.2021.104952 ↗
10. Paw-Net: Stacking Ensemble Deep Learning for Segmenting Scanning Electron Microscopy Images of Fine-Grained Shale Samples10.1016/j.cageo.2022.105218 ↗
11. Semi-Supervised Learning for Shale Image Segmentation with Fast Normalized Cut Loss10.1016/j.geoen.2023.212039 ↗
12. Automatic Pore Structure Analysis in Organic-Rich Shale Using FIB-SEM and Attention U-Net10.1016/j.fuel.2023.130161 ↗
13. U-Net Model for Multi-Component Digital Rock Modeling of Shales Based on CT and QEMSCAN Images10.1016/j.petrol.2022.110734 ↗
14. Modeling of Multi-Mineral-Component Digital Core Based on Res-Unet10.1093/jge/gxad024 ↗
15. Multi-Mineral Segmentation of Micro-Tomographic Images Using a Convolutional Neural Network10.1016/j.cageo.2022.105217 ↗
16. Deep Neural Networks for Improving Physical Accuracy of 2D and 3D Multi-Mineral Segmentation of Rock Micro-CT Images10.1016/j.asoc.2021.107185 ↗
17. Digital Rock Segmentation for Petrophysical Analysis with Reduced User Bias Using Convolutional Neural Networks10.1029/2019WR026597 ↗
18. Segmentation of Digital Rock Images Using Deep Convolutional Autoencoder Networks10.1016/j.cageo.2019.02.003 ↗
19. Automatic Segmentation Tool for 3D Digital Rocks by Deep Learning10.1038/s41598-021-98697-z ↗
20. Multi-Task Learning for Digital Rock Segmentation and Characteristic Parameters Computation10.1016/j.petrol.2021.109202 ↗
21. Super-Resolved Segmentation of X-Ray Images of Carbonate Rocks Using Deep Learning10.1007/s11242-022-01781-9 ↗
22. Application of Deep Learning for Semantic Segmentation of Sandstone Thin Sections10.1016/j.cageo.2021.104778 ↗
23. Deep Learning Semantic Segmentation of Opaque and Non-Opaque Minerals from Epoxy Resin in Reflected Light Microscopy Images10.1016/j.mineng.2021.107007 ↗
24. Latif, G., Bouchard, K., Maitre, J., Back, A., and Bédard, L.P. (2022). Deep-Learning-Based Automatic Mineral Grain Segmentation and Recognition. Minerals, 12.10.3390/min12040455 ↗
25. Dong, L., Gui, H., Yu, X., Zhang, X., and Xu, M. (2024). High-Accuracy Image Segmentation Based on Hybrid Attention Mechanism for Sandstone Analysis. Minerals, 14.10.3390/min14060544 ↗
26. Sediment Grain Segmentation in Thin-Section Images Using Dual-Modal Vision Transformer10.1016/j.cageo.2024.105664 ↗
27. Is Attention All Geosciences Need? Advancing Quantitative Petrography with Attention-Based Deep Learning10.1016/j.cageo.2023.105466 ↗
28. Hassan, S.M., Laban, N., Abo Khashaba, S.M., El-Shibiny, N.H., Bashir, B., Azer, M.K., Drüppel, K., and Keshk, H.M. (2024). Semantic Segmentation of Some Rock-Forming Mineral Thin Sections Using Deep Learning Algorithms: A Case Study from the Nikeiba Area, South Eastern Desert, Egypt. Remote Sens., 16.10.3390/rs16132276 ↗
29. Application of Deep Learning to Shale Microstructure Classification10.1016/j.marpetgeo.2022.105842 ↗
30. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
31. Cheng, B., Misra, I., Schwing, A.G., Kirillov, A., and Girdhar, R. (2022). Masked-Attention Mask Transformer for Universal Image Segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, IEEE.10.1109/CVPR52688.2022.00135 ↗
32. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., and Lo, W.Y. (2023). Segment Anything. Proceedings of the IEEE/CVF International Conference on Computer Vision, IEEE.10.1109/ICCV51070.2023.00371 ↗
33. HRFormer: High-Resolution Transformer for Dense Prediction
34. Wang, W., Dai, J., Chen, Z., Huang, Z., Li, Z., Zhu, X., Hu, X., Lu, T., Lu, L., and Li, H. (2023). InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, IEEE.10.1109/CVPR52729.2023.01385 ↗
35. Multi-Channel Attention Transformer for Rock Thin-Section Image Segmentation10.1016/j.jer.2024.04.009 ↗
36. A Foundation Model for Rock Thin-Section Images Analysis10.1038/s44172-025-00565-5 ↗
37. Attention Is All You Need
38. Su, Z., Zhou, G., Luo, F., Li, S., and Ma, K.-K. (2022). Semantic Segmentation of 3D Point Clouds Based on High Precision Range Search Network. Remote Sens., 14.10.3390/rs14225649 ↗
39. The Distribution of the Flora in the Alpine Zone10.1111/j.1469-8137.1912.tb05611.x ↗
40. Measures of the Amount of Ecologic Association Between Species10.2307/1932409 ↗
41. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021). Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. Proceedings of the IEEE/CVF International Conference on Computer Vision, IEEE.10.1109/ICCV48922.2021.00986 ↗
42. Long, J., Shelhamer, E., and Darrell, T. (2015). Fully Convolutional Networks for Semantic Segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, IEEE.10.1109/CVPR.2015.7298965 ↗
43. Xiao, T., Liu, Y., Zhou, B., Jiang, Y., and Sun, J. (2018). Unified Perceptual Parsing for Scene Understanding. Computer Vision—ECCV 2018, Springer.10.1007/978-3-030-01228-1_26 ↗
44. Chen, L.-C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. (2018). Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. Computer Vision—ECCV 2018, Springer.10.1007/978-3-030-01234-2_49 ↗
45. Zhao, H., Shi, J., Qi, X., Wang, X., and Jia, J. (2017). Pyramid Scene Parsing Network. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, IEEE.10.1109/CVPR.2017.660 ↗
46. In-situ Monitoring of Raffinate Flow and Pore Connectivity Evolution in Heap Leach Waste Rock Using Borehole Magnetic Resonance10.1016/j.hydromet.2026.106806 ↗