FastSAM-Based Automated Segmentation and Data Extraction for Pore Structures of Foamed Concrete
Abstract
1. Introduction
2. Materials and Methods
2.1. Image Data and Sample Grouping
2.2. Overall Workflow for FastSAM-DP Automatic Pore Segmentation, Parameter Extraction and PSQI Assessment
3. Results and Discussion
3.1. Segmentation Performance and Parameter Selection
3.2. Automated Validation from Pore Contours to Reference PSQI
3.3. Scale Sensitivity of Pore-Structure Indicators Under Multiscale Observation
4. Conclusions
- (1)
- A FastSAM-DP workflow was developed for automatic pore segmentation and parameter extraction in foamed concrete. It enables continuous conversion from micrographs and pore instance masks to pore-level geometric information, CV/Ci/N/UI/FL descriptors and integrated PSQI. The workflow reduces reliance on operator experience in manual outlining and empirical threshold segmentation, providing a reproducible technical route for batch pore-structure analysis of foamed concrete.
- (2)
- In the complete 25-group/100-file held-out evaluation, FastSAM-DP achieved instance F1 = 0.732 (95% CI, 0.696–0.767), matched IoU = 0.857, foreground Dice = 0.867 and AP50 = 0.670, whereas fixed Otsu–Watershed achieved instance F1 = 0.050. In the post-audit 14-group/56-file non-overlap sensitivity subset, FastSAM-DP achieved instance F1 = 0.752 (95% CI, 0.713–0.791), matched IoU = 0.843, foreground Dice = 0.854 and AP50 = 0.689, whereas fixed Otsu–Watershed achieved instance F1 = 0.051. DP regularized and simplified contour geometry rather than materially increasing instance recognition. Independent external data are still needed to verify applicability across imaging devices and sample batches.
- (3)
- In the complete 25-group/100-file held-out evaluation, PSQI agreement with the current reference protocol was r = 0.828 (95% CI, 0.665–0.917), with MAE = 7.94 and RMSE = 11.10. In the post-audit 14-group/56-file non-overlap sensitivity subset, r = 0.838 (95% CI, 0.585–0.942), with MAE = 7.41 and RMSE = 10.50. Reference-annotation subjectivity may explain part of the difference, but its contribution cannot be separated from algorithm error without a second annotator. The automatic workflow is therefore intended for batch screening and trend assessment rather than fine interpretation of individual images.
- (4)
- The independently sampled 15×, 20× and 40× strata comprised 130 images and 107 conservative image-field partitions and showed different descriptor distributions. Because the magnification strata were analyzed as independent descriptive observations, the differences combine observation-scale and local-region variation. Cross-magnification results should not be used to rank material quality, and mix comparisons should preferably be conducted at the same magnification.
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| FastSAM | Fast Segment Anything Model |
| DP | Douglas–Peucker |
| PSQI | Image-derived composite pore-structure descriptor |
| CV | Coefficient of variation |
| Ci | Circularity index |
| N | Pore-number density |
| UI | Uniformity index |
| FL | Large-pore fraction |
References
- Hou, L.; Li, J.; Lu, Z.; Niu, Y. Influence of Foaming Agent on Cement and Foam Concrete. Constr. Build. Mater. 2021, 280, 122399. [Google Scholar] [CrossRef]
- Ramamurthy, K.; Kunhanandan Nambiar, E.K.; Indu Siva Ranjani, G. A Classification of Studies on Properties of Foam Concrete. Cem. Concr. Compos. 2009, 31, 388–396. [Google Scholar] [CrossRef]
- Amran, Y.H.M.; Farzadnia, N.; Abang Ali, A.A. Properties and Applications of Foamed Concrete; a Review. Constr. Build. Mater. 2015, 101, 990–1005. [Google Scholar] [CrossRef]
- Xiong, L.; Fan, B.; Wan, Z.; Zhang, Z.; Zhang, Y.; Shi, P. Study on the Mechanical Properties of Fly-Ash-Based Light-Weighted Porous Geopolymer and Its Utilization in Roof-Adaptive End Filling Technology. Molecules 2021, 26, 4450. [Google Scholar] [CrossRef] [PubMed]
- Xu, J.; Zhao, D.; Wang, S.; Chen, X.; Wu, X.; Han, Z.; Liu, Y. Quantitative Analysis of Pore Structure’s Impact on Early Mechanical Properties and Durability of Foam Concrete: Macroscopic and Mesoscopic Insights. Constr. Build. Mater. 2025, 459, 139775. [Google Scholar] [CrossRef]
- Nambiar, E.K.K.; Ramamurthy, K. Air-void Characterisation of Foam Concrete. Cem. Concr. Res. 2007, 37, 221–230. [Google Scholar] [CrossRef]
- Hilal, A.A.; Thom, N.H.; Dawson, A.R. On Entrained Pore Size Distribution of Foamed Concrete. Constr. Build. Mater. 2015, 75, 227–233. [Google Scholar] [CrossRef]
- Fan, D.; Zhang, C.; Lu, J.-X.; Peng, L.; Yu, R.; Poon, C.S. Rheology Dependent Pore Structure Optimization of High-Performance Foam Concrete. Cem. Concr. Res. 2025, 188, 107737. [Google Scholar] [CrossRef]
- Zhang, C.; Fan, D.; Lu, J.-X.; Pang, C.; Poon, C.S. Ultra-Stable Foam Enabled by Nano Silica Engineering for Foam Concrete Improvement. Cem. Concr. Compos. 2024, 150, 105575. [Google Scholar] [CrossRef]
- Lv, X.-S.; Cao, W.-X.; Yio, M.; Ji, W.-Y.; Lu, J.-X.; She, W.; Poon, C.S. High-Performance Lightweight Foam Concrete Enabled by Compositing Ultra-Stable Hydrophobic Aqueous Foam. Cem. Concr. Compos. 2024, 152, 105675. [Google Scholar] [CrossRef]
- She, W.; Zheng, Z.; Zhang, Q.; Zuo, W.; Yang, J.; Zhang, Y.; Zheng, L.; Hong, J.; Miao, C. Predesigning Matrix-Directed Super-Hydrophobization and Hierarchical Strengthening of Cement Foam. Cem. Concr. Res. 2020, 131, 106029. [Google Scholar] [CrossRef]
- Zhang, S.; Cao, K.; Wang, C.; Wang, X.; Deng, G.; Wei, P. Influence of the Porosity and Pore Size on the Compressive and Splitting Strengths of Cellular Concrete with Millimeter-Size Pores. Constr. Build. Mater. 2020, 235, 117508. [Google Scholar] [CrossRef]
- Kearsley, E.P.; Wainwright, P.J. Porosity and Permeability of Foamed Concrete. Cem. Concr. Res. 2001, 31, 805–812. [Google Scholar] [CrossRef]
- Kearsley, E.P.; Wainwright, P.J. The Effect of Porosity on the Strength of Foamed Concrete. Cem. Concr. Res. 2002, 32, 233–239. [Google Scholar] [CrossRef]
- Otsu, N. A Threshold Selection Method from Gray-Level Histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015, Munich, Germany, 5–9 October 2015; Volume 9351, pp. 234–241. [Google Scholar]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask R-CNN. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar] [CrossRef]
- Qian, H.; Li, Y.; Yang, J.; Xie, L.; Tan, K.H. Segmentation and Analysis of Cement Particles in Cement Paste with Deep Learning. Cem. Concr. Compos. 2023, 136, 104819. [Google Scholar] [CrossRef]
- Zhang, H.; Zhang, R.; Sun, D.; Yu, F.; Gao, Z.; Sun, S.; Zheng, Z. Analyzing the Pore Structure of Pervious Concrete Based on the Deep Learning Framework of Mask R-CNN. Constr. Build. Mater. 2022, 318, 125987. [Google Scholar] [CrossRef]
- Bangaru, S.S.; Wang, C.; Zhou, X.; Hassan, M. Scanning Electron Microscopy (SEM) Image Segmentation for Microstructure Analysis of Concrete Using U-Net Convolutional Neural Network. Autom. Constr. 2022, 144, 104602. [Google Scholar] [CrossRef]
- Hilloulin, B.; Bekrine, I.; Schmitt, E.; Loukili, A. Modular Deep Learning Segmentation Algorithm for Concrete Microscopic Images. Constr. Build. Mater. 2022, 349, 128736. [Google Scholar] [CrossRef]
- Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A.C.; Lo, W.-Y.; et al. Segment Anything. In Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 1–6 October 2023; pp. 4015–4026. [Google Scholar] [CrossRef]
- Zhao, X.; Ding, W.; An, Y.; Du, Y.; Yu, T.; Li, M.; Tang, M.; Wang, J. Fast Segment Anything. arXiv 2023, arXiv:2306.12156. [Google Scholar] [CrossRef]
- Papia, E.-M.; Kondi, A.; Constantoudis, V. Machine Learning Applications in SEM-Based Pore Analysis: A Review. Microporous Mesoporous Mater. 2025, 394, 113675. [Google Scholar] [CrossRef]
- Ullah, M.; Plevris, V.; Mir, J.; Ahmad, A. Image-Based Prediction of Concrete Mechanical Properties through CNN Segmentation and ANN Modeling. Results Eng. 2026, 29, 108637. [Google Scholar] [CrossRef]
- Ma, Y.; Qian, H.; Zou, D.; Zhou, A.; Liu, T.; Li, Y. Resolution Enhancement of Cementitious Microstructure Images and Phases Quantification Using Deep Learning. Constr. Build. Mater. 2025, 461, 139909. [Google Scholar] [CrossRef]
- Nguyen, T.; Kashani, A.; Ngo, T.; Bordas, S. Deep Neural Network with High-Order Neuron for the Prediction of Foamed Concrete Strength. Comput.-Aided Civ. Infrastruct. Eng. 2019, 34, 316–332. [Google Scholar] [CrossRef]
- Wang, X.; Xiao, Y.; Li, W.; Wang, M.; Zhou, Y.; Chen, Y.; Li, Z. Kriging-Based Surrogate Data-Enriching Artificial Neural Network Prediction of Strength and Permeability of Permeable Cement-Stabilized Base. Nat. Commun. 2024, 15, 4891. [Google Scholar] [CrossRef] [PubMed]
- Kakasor Ismael Jaf, D.; Ismael Abdulrahman, P.; Salih Mohammed, A.; Kurda, R.; Qaidi, S.M.A.; Asteris, P.G. Machine Learning Techniques and Multi-Scale Models to Evaluate the Impact of Silicon Dioxide (SiO2) and Calcium Oxide (CaO) in Fly Ash on the Compressive Strength of Green Concrete. Constr. Build. Mater. 2023, 400, 132604. [Google Scholar] [CrossRef]
- Song, H.; Ahmad, A.; Farooq, F.; Ostrowski, K.A.; Maślak, M.; Czarnecki, S.; Aslam, F. Predicting the Compressive Strength of Concrete with Fly Ash Admixture Using Machine Learning Algorithms. Constr. Build. Mater. 2021, 308, 125021. [Google Scholar] [CrossRef]
- Wawrzeńczyk, J.; Kowalczyk, H. Estimation of the Spacing Factor Based on Air Pore Distribution Parameters in Air-Entrained Concrete. Materials 2025, 18, 1716. [Google Scholar] [CrossRef] [PubMed]
- Dhasindrakrishna, K.; Pasupathy, K.; Ramakrishnan, S.; Sanjayan, J. Progress, Current Thinking and Challenges in Geopolymer Foam Concrete Technology. Cem. Concr. Compos. 2021, 116, 103886. [Google Scholar] [CrossRef]
- Dhasindrakrishna, K.; Ramakrishnan, S.; Pasupathy, K.; Sanjayan, J. Collapse of Fresh Foam Concrete: Mechanisms and Influencing Parameters. Cem. Concr. Compos. 2021, 122, 104151. [Google Scholar] [CrossRef]
- Xiong, L.; Maltseva, O.; Chen, B.; Fernández-Jiménez, A.; Wan, Z.; Palomo, A. Modelling the Hydration of Ultra-Low Clinker Cements: The Impact of Sodium Salts Additives. Constr. Build. Mater. 2025, 504, 144655. [Google Scholar] [CrossRef]
- Xiong, L.; Maltseva, O.; Fernandez-Jimenez, A.; Wan, Z.; Palomo, A. Transforming Landfilled Coal Ash in Ultralow Clinker Binders. J. Am. Ceram. Soc. 2025, 108, e20661. [Google Scholar] [CrossRef]
- Falliano, D.; De Domenico, D.; Ricciardi, G.; Gugliandolo, E. Experimental Investigation on the Compressive Strength of Foamed Concrete: Effect of Curing Conditions, Cement Type, Foaming Agent and Dry Density. Constr. Build. Mater. 2018, 165, 735–749. [Google Scholar] [CrossRef]
- Kearsley, E.P.; Wainwright, P.J. The Effect of High Fly Ash Content on the Compressive Strength of Foamed Concrete. Cem. Concr. Res. 2001, 31, 105–112. [Google Scholar] [CrossRef]
- Nambiar, E.K.K.; Ramamurthy, K. Influence of Filler Type on the Properties of Foam Concrete. Cem. Concr. Compos. 2006, 28, 475–480. [Google Scholar] [CrossRef]
- Douglas, D.H.; Peucker, T.K. Algorithms for the Reduction of the Number of Points Required to Represent a Digitized Line or Its Caricature. Cartographica 1973, 10, 112–122. [Google Scholar] [CrossRef]
- Shannon, C.E. A Mathematical Theory of Communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
- Saaty, T.L. Decision Making with the Analytic Hierarchy Process. Int. J. Serv. Sci. 2008, 1, 83–98. [Google Scholar] [CrossRef]










| Mixture Level | 15× Files/Partitions | 20× Files/Partitions | 40× Files/Partitions | Total Files |
|---|---|---|---|---|
| HP01 | 2/1 | 2/1 | 2/2 | 6 |
| HP03 | 1/1 | 2/1 | 2/1 | 5 |
| HP05 | 2/1 | 1/1 | 1/1 | 4 |
| HP07 | 2/1 | 2/2 | 2/1 | 6 |
| HP10 | 5/4 | 5/5 | 4/3 | 14 |
| SF01 | 1/1 | 2/2 | 1/1 | 4 |
| SF03 | 2/2 | 3/3 | 3/3 | 8 |
| SF05 | 4/2 | 3/3 | 4/4 | 11 |
| SF10 | 4/2 | 4/2 | 4/3 | 12 |
| SF20 | 2/2 | 3/2 | 3/3 | 8 |
| WS35 | 2/2 | 2/2 | 3/3 | 7 |
| WS40 | 2/2 | 3/2 | 3/2 | 8 |
| WS45 | 3/3 | 5/4 | 5/5 | 13 |
| WS55 | 3/2 | 3/3 | 4/3 | 10 |
| WS60 | 4/4 | 5/4 | 5/5 | 14 |
| Total | 39/30 | 45/37 | 46/40 | 130/107 |
| Descriptor | Polarity | Frozen Bound | AHP Prior | Final Weight |
|---|---|---|---|---|
| CV | Cost | 0.31891–1.60421 | 0.31069 | 0.11767 |
| Ci | Benefit | 0.58931–0.84426 | 0.11619 | 0.03167 |
| N | Target | 0.44319–11.64391 pores mm−2 | 0.08748 | 0.27144 |
| UI | Benefit | −0.59861–0.80753 | 0.17496 | 0.09924 |
| FL | Cost | 0–0.87949 | 0.31069 | 0.47998 |
| Evaluation Subset | Method | Precision | Recall | Instance F1 | Matched IoU | Foreground Dice | Foreground IoU | AP50 |
|---|---|---|---|---|---|---|---|---|
| Internal held-out set (25 groups, 100 files) | FastSAM-DP | 0.726 | 0.751 | 0.732 | 0.857 | 0.867 | 0.768 | 0.670 |
| Otsu–Watershed | 0.047 | 0.094 | 0.050 | 0.698 | 0.337 | 0.222 | - | |
| Post-audit non-overlap sensitivity subset (14 groups, 56 files) | FastSAM-DP | 0.752 | 0.764 | 0.752 | 0.843 | 0.854 | 0.748 | 0.689 |
| Otsu–Watershed | 0.044 | 0.094 | 0.051 | 0.698 | 0.323 | 0.209 | - |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Xiong, L.; Du, S.; Wan, Z.; Cui, X.; Chen, B.; Huang, Y.; Sun, Z. FastSAM-Based Automated Segmentation and Data Extraction for Pore Structures of Foamed Concrete. Materials 2026, 19, 3215. https://doi.org/10.3390/ma19153215
Xiong L, Du S, Wan Z, Cui X, Chen B, Huang Y, Sun Z. FastSAM-Based Automated Segmentation and Data Extraction for Pore Structures of Foamed Concrete. Materials. 2026; 19(15):3215. https://doi.org/10.3390/ma19153215
Chicago/Turabian StyleXiong, Luchang, Siyu Du, Zhijun Wan, Xuan Cui, Bingrui Chen, Yu Huang, and Zhonghua Sun. 2026. "FastSAM-Based Automated Segmentation and Data Extraction for Pore Structures of Foamed Concrete" Materials 19, no. 15: 3215. https://doi.org/10.3390/ma19153215
APA StyleXiong, L., Du, S., Wan, Z., Cui, X., Chen, B., Huang, Y., & Sun, Z. (2026). FastSAM-Based Automated Segmentation and Data Extraction for Pore Structures of Foamed Concrete. Materials, 19(15), 3215. https://doi.org/10.3390/ma19153215

