Abstract:Aluminum alloy microstructure segmentation is an important step in material property evaluation and industrial quality control. Existing deep learning-based microstructure segmentation methods usually rely on large amounts of pixel-level annotations for fully supervised training. However, precise annotation often requires the participation of domain experts, resulting in high labeling cost and low efficiency. To address this issue, this paper proposes a weakly supervised segmentation method for aluminum alloy microstructure analysis. The proposed method constructs a dual-branch segmentation network, in which the classification branch learns global semantic information under image-level supervision, while the structure-constrained branch performs self-supervised learning under the guidance of the input image and the proposed consistency constraint loss, thereby introducing pixel-level constraints and learning local detailed features of microstructures. In the inference stage, a structural similarity diffusion algorithm is further proposed to refine the activated microstructure regions and obtain more accurate segmentation results. The proposed method is validated on an aluminum alloy microstructure dataset collected from industry. Experimental results show that the proposed method achieves an mIoU of 76.0\%, significantly outperforming conventional weakly supervised segmentation methods, while attaining performance close to that of fully supervised models. Meanwhile, the number of parameters is reduced by about 60\%. These results demonstrate that the proposed method has promising application potential in automatic analysis of industrial material microstructures.