{"title":"Addressing class imbalance in micro-CT image segmentation: A modified U-Net model with pixel-level class weighting","authors":"Shahin Mahmoudi , Omid Asghari , Jeff Boisvert","doi":"10.1016/j.cageo.2025.105853","DOIUrl":null,"url":null,"abstract":"<div><div>Micro X-ray Computed Tomography (micro-CT) segmentation is a cornerstone in Digital Rock Physics (DRP), enabling detailed analysis of pore structures and mineral distributions. However, class imbalance remains a critical challenge, often resulting in biased segmentation outcomes. To address this, a methodology combining a modified U-Net architecture with a Pixel-Level Class Weighting (PCW) strategy is introduced. Unlike traditional class-level weighting, PCW assigns weights at the pixel level, offering finer control over segmentation by prioritizing minority classes and challenging pixels. This approach leverages modern deep learning frameworks, where input, label, and weight maps are jointly fed into the network, facilitating dynamic adjustments to emphasize task-specific regions. The modified U-Net incorporates dynamic dropout layers, L2 regularization, and optimized convolutional filters, enhancing computational efficiency and generalization. A dataset of only 40 micro-CT slices from two unique Bentheimer sandstone core samples is used for training and validation. When testing blindly on a third unique core sample, the modified U-Net with PCW increased the F1 score from 0.88 to 0.95. The model maintains the F1 score of majority classes 'pore' and 'quartz', while increasing the F1 score of minority classes 'clay' and 'feldspar' by 31% and 4.2%, respectively. Accurate segmentation of micro-CT images directly impacts downstream computational modeling in petroleum fields, improving permeability and porosity predictions essential for reservoir characterization and fluid flow simulations. The proposed framework represents an efficient, robust solution for imbalanced segmentation tasks, with potential applications in geosciences, such as mineral prospectivity mapping and geochemical anomaly detection.</div></div>","PeriodicalId":55221,"journal":{"name":"Computers & Geosciences","volume":"196 ","pages":"Article 105853"},"PeriodicalIF":4.2000,"publicationDate":"2025-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers & Geosciences","FirstCategoryId":"89","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0098300425000032","RegionNum":2,"RegionCategory":"地球科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
Micro X-ray Computed Tomography (micro-CT) segmentation is a cornerstone in Digital Rock Physics (DRP), enabling detailed analysis of pore structures and mineral distributions. However, class imbalance remains a critical challenge, often resulting in biased segmentation outcomes. To address this, a methodology combining a modified U-Net architecture with a Pixel-Level Class Weighting (PCW) strategy is introduced. Unlike traditional class-level weighting, PCW assigns weights at the pixel level, offering finer control over segmentation by prioritizing minority classes and challenging pixels. This approach leverages modern deep learning frameworks, where input, label, and weight maps are jointly fed into the network, facilitating dynamic adjustments to emphasize task-specific regions. The modified U-Net incorporates dynamic dropout layers, L2 regularization, and optimized convolutional filters, enhancing computational efficiency and generalization. A dataset of only 40 micro-CT slices from two unique Bentheimer sandstone core samples is used for training and validation. When testing blindly on a third unique core sample, the modified U-Net with PCW increased the F1 score from 0.88 to 0.95. The model maintains the F1 score of majority classes 'pore' and 'quartz', while increasing the F1 score of minority classes 'clay' and 'feldspar' by 31% and 4.2%, respectively. Accurate segmentation of micro-CT images directly impacts downstream computational modeling in petroleum fields, improving permeability and porosity predictions essential for reservoir characterization and fluid flow simulations. The proposed framework represents an efficient, robust solution for imbalanced segmentation tasks, with potential applications in geosciences, such as mineral prospectivity mapping and geochemical anomaly detection.
期刊介绍:
Computers & Geosciences publishes high impact, original research at the interface between Computer Sciences and Geosciences. Publications should apply modern computer science paradigms, whether computational or informatics-based, to address problems in the geosciences.