LAPSE:2026.0433
Published Article

LAPSE:2026.0433
MatStudio: A Human-in-the-Loop Framework for Microstructure Segmentation with SAM-Guided Refinement
June 12, 2026
Abstract
Microstructure segmentation is essential for quantitative materials analysis; however, supervised deep learning demands substantial annotation, whereas general-purpose foundation models such as the Segment Anything Model (SAM) offer limited domain-specific semantic control. This paper presents MatStudio, a human-in-the-loop framework for microstructure segmentation that is proposed and implemented end to end in this work. MatStudio couples an interactive workflow for batchwise micrograph annotation and model adaptation with a dual-head convolutional architecture and SAM-guided boundary refinement. The loop combines sparse supervision with SAM-assisted labeling, task-specific training, and iterative batch-level correction, typically converging within two to three cycles.. The network comprises a shared encoder initialized from a pretrained backbone and two decoders: a UNet-style segmentation head that jointly predicts class labels and pixelwise uncertainty, and a prototype branch that measures texture similarity against a memory bank of learnable prototypes. An uncertainty-aware training objective couples label estimation with confidence; uncertainty weighting emphasizes prototype learning in ambiguous regions, and purity filtering restricts prototype updates to phase-interior features to mitigate boundary contamination. At inference, decoder outputs are fused in a spatially adaptive manner according to local confidence. We further introduce SAMFusion, which treats SAM as a morphology-aware proposal source and accepts proposals that are consistent with the fused prediction under a hierarchical small-to-large activation criterion, yielding improved boundary fidelity without case-specific tuning of SAM prompts. Experimental evaluation on Ni-alloy micrographs and public benchmarks shows consistent gains relative to interactive scribble-based segmentation and SAM-centric reference methods.
Microstructure segmentation is essential for quantitative materials analysis; however, supervised deep learning demands substantial annotation, whereas general-purpose foundation models such as the Segment Anything Model (SAM) offer limited domain-specific semantic control. This paper presents MatStudio, a human-in-the-loop framework for microstructure segmentation that is proposed and implemented end to end in this work. MatStudio couples an interactive workflow for batchwise micrograph annotation and model adaptation with a dual-head convolutional architecture and SAM-guided boundary refinement. The loop combines sparse supervision with SAM-assisted labeling, task-specific training, and iterative batch-level correction, typically converging within two to three cycles.. The network comprises a shared encoder initialized from a pretrained backbone and two decoders: a UNet-style segmentation head that jointly predicts class labels and pixelwise uncertainty, and a prototype branch that measures texture similarity against a memory bank of learnable prototypes. An uncertainty-aware training objective couples label estimation with confidence; uncertainty weighting emphasizes prototype learning in ambiguous regions, and purity filtering restricts prototype updates to phase-interior features to mitigate boundary contamination. At inference, decoder outputs are fused in a spatially adaptive manner according to local confidence. We further introduce SAMFusion, which treats SAM as a morphology-aware proposal source and accepts proposals that are consistent with the fused prediction under a hierarchical small-to-large activation criterion, yielding improved boundary fidelity without case-specific tuning of SAM prompts. Experimental evaluation on Ni-alloy micrographs and public benchmarks shows consistent gains relative to interactive scribble-based segmentation and SAM-centric reference methods.
Record ID
Keywords
Artificial Intelligence, Human-in-the-loop, Machine Learning, Materials, Microstructure segmentation, Prototype learning, Segment Anything Model, Uncertainty quantification
Subject
Suggested Citation
Xue Y, Wang Y, Armaou A. MatStudio: A Human-in-the-Loop Framework for Microstructure Segmentation with SAM-Guided Refinement. Systems and Control Transactions 5:1841-1846 (2026) https://doi.org/10.69997/sct.197370
Author Affiliations
Xue Y: The Pennsylvania State University, Department of Mechanical Engineering, University Park, PA 16802, USA [ORCID]
Wang Y: Wenzhou University, College of Mechanical and Electrical Engineering, Wenzhou, 325035, Zhejiang, China [ORCID]
Armaou A: University of Patras, Department of Chemical Engineering, Rio, 26504, Greece. The Pennsylvania State University, Department of Chemical Engineering, University Park, PA 16802, USA [ORCID]
[Login] to see author email addresses.
Wang Y: Wenzhou University, College of Mechanical and Electrical Engineering, Wenzhou, 325035, Zhejiang, China [ORCID]
Armaou A: University of Patras, Department of Chemical Engineering, Rio, 26504, Greece. The Pennsylvania State University, Department of Chemical Engineering, University Park, PA 16802, USA [ORCID]
[Login] to see author email addresses.
Journal Name
Systems and Control Transactions
Volume
5
First Page
1841
Last Page
1846
Year
2026
Publication Date
2026-06-12
Version Comments
Original Submission
Other Meta
PII: 1841-1846-610-SCT-5-2026, Publication Type: Journal Article
Record Map
Published Article

LAPSE:2026.0433
This Record
External Link

https://doi.org/10.69997/sct.197370
Publisher Version
Download
Meta
Record Statistics
Record Views
222
Version History
[v1] (Original Submission)
Jun 12, 2026
Verified by curator on
Jun 12, 2026
This Version Number
v1
Citations
Most Recent
This Version
URL Here
https://psecommunity.org/LAPSE:2026.0433
Record Owner
PSE Press
Links to Related Works
References Cited
- Cecen A, Dai H, Yabansu YC, Kalidindi SR, Song . Material structure-property linkages using three-dimensional convolutional neural networks. Acta Materialia 146:76-84 (2018) https://doi.org/10.1016/j.actamat.2017.11.053
- Shen C, Wang C, Wei X, Li Y, van der Zwaag S, Xu W. Physical metallurgy-guided machine learning and artificial neural network for high-strength alloy design. Acta Materialia 2021;205:116601.
- Ronneberger O, Fischer P, Brox T. U-net: convolutional networks for biomedical image segmentation. Lecture Notes in Computer Science :234-241 (2015) https://doi.org/10.1007/978-3-319-24574-4_28
- Azimi SM, Britz D, Engstler M, Fritz M, Mücklich F. Advanced steel microstructural classification by deep learning methods. Sci Rep 8: (2018) https://doi.org/10.1038/s41598-018-20037-5
- Stuckner J, Harder B, Smith TM. Microstructure segmentation with deep learning encoders pre-trained on a large microscopy dataset. npj Comput Mater 8: (2022) https://doi.org/10.1038/s41524-022-00878-5
- Yang L, Zhang Y, Chen J, Zhang S, Chen DZ. Suggestive annotation: a deep active learning framework for biomedical image segmentation. Lecture Notes in Computer Science :399-407 (2017) https://doi.org/10.1007/978-3-319-66179-7_46
- Koch G, Zemel R, Salakhutdinov R. Siamese Neural Networks for One-shot Image Recognition. In: ICML Deep Learning Workshop 2015.
- Snell J, Swersky K, Zemel R. Prototypical Networks for Few-shot Learning. In: NeurIPS 2017. p. 4077-4087.
- Wang K, Liew JH, Zou Y, Zhou D, Feng J. Panet: few-shot image semantic segmentation with prototype alignment. 2019 IEEE/CVF International Conference on Computer Vision (ICCV) :9196-9205 (2019) https://doi.org/10.1109/iccv.2019.00929
- Kirillov A, Mintun E, Ravi N, Mao H, Rolland C, Gustafson L, Xiao T, Whitehead S, Berg AC, Lo WY, Dollár P, Girshick R. Segment anything. 2023 IEEE/CVF International Conference on Computer Vision (ICCV) :3992-4003 (2023) https://doi.org/10.1109/iccv51070.2023.00371
- Li C, Han X, Yao C, Guo Y, Li Z, Jiang L, Liu W, Huang H, Fu H, Ban X. A novel training-free approach to efficiently extracting material microstructures via visual large model. Acta Materialia 290:120962 (2025) https://doi.org/10.1016/j.actamat.2025.120962
- Abebe W, Strube J, Guo L, Tallent NR, Bel O, Spurgeon S, Doty C, Jannesari A. Sam-i-am: semantic boosting for zero-shot atomic-scale electron micrograph segmentation. Computational Materials Science 246:113400 (2025) https://doi.org/10.1016/j.commatsci.2024.113400
- Deng X, Wu H, Zeng R, Qin J. Memsam: taming segment anything model for echocardiography video segmentation. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) :9622-9631 (2024) https://doi.org/10.1109/cvpr52733.2024.00919
- Na J, Kim SJ, Kim H, Kang SH, Lee S. A unified microstructure segmentation approach via human-in-the-loop machine learning. Acta Materialia 255:119086 (2023) https://doi.org/10.1016/j.actamat.2023.119086
- Kendall A, Gal Y. What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision? In: NeurIPS 2017. p. 5574-5584.
- DeCost BL, Lei B, Francis T, Holm EA. High throughput quantitative metallography for complex microstructures using deep learning: a case study in ultrahigh carbon steel. Microsc Microanal 25:21-29 (2019) https://doi.org/10.1017/s1431927618015635
(0.1 seconds)
[0.1 s]

