원시데이터 수집 시스템
선정목록으로

Vision GNN (ViG) architecture for a fine-tuned segmentation of a complex Al–Si metal matrix composite XCT volume

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(10) 아라미드

기본 정보

저자
  1. M. Lapenna — DIFA, Unibo, Via Irnerio 46, 40126, Bologna, Italy
  2. Athanasios Tsamos — Bundesanstalt fur Materialforschung und-Prufung, BAM, Unter den Eichen 87, 12205, Berlin, Germany|||Institute of Physics and Astronomy, University of Potsdam, Karl-Liebknecht-Straße 24/25, 14476, Potsdam, Germany
  3. Francesco Faglioni — DGSC, Unimore, Via Campi 103, 41100, Modena, Italy
  4. R. Fioresi — Fabit, Unibo, Via San Donato 15, 40127, Bologna, Italy
  5. Ferdinando Zanchetta — Fabit, Unibo, Via San Donato 15, 40127, Bologna, Italy
  6. Giovanni Bruno — Bundesanstalt fur Materialforschung und-Prufung, BAM, Unter den Eichen 87, 12205, Berlin, Germany|||Institute of Physics and Astronomy, University of Potsdam, Karl-Liebknecht-Straße 24/25, 14476, Potsdam, Germany
DOI
10.1007/s10853-025-10834-5
저널
Journal of Materials Science
발행년도
2025
발행기관
Springer Science+Business Media
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s10853-025-10834-5
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4409729762

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (10) 아라미드
R&D 측면
분석·모델링
확신도
0.70
근거 용어
X-ray computed tomography (XCT), segmentation, microstructure, metal matrix composite, Graph Neural Networks (GNN)
판단 근거
이 논문은 금속 복합재(MMC)의 미세구조를 X-선 CT 데이터로 자동 분할(segmentation)하는 딥러닝 모델 연구입니다. 코오롱인더스트리의 직접적인 제품은 아니나, 엔지니어링 플라스틱(23)이나 고기능성 복합소재의 미세구조 분석 및 물성 예측을 위한 분석 기법(AI/ML 기반 이미지 분석)으로 응용 가능합니다.
R&D 활용 포인트
엔지니어링 플라스틱 및 고강도 복합소재(아라미드 등) 제조 시, XCT 데이터를 활용한 미세구조(섬유 분포, 기공, 상 분리 등)의 자동 정량 분석 및 품질 관리 시스템 구축에 활용 가능합니다.
평가 입력
섹션 본문 35,560자 중 30,032자 발췌

초록

Abstract In this paper, we implement a vision graph neural network (ViG) architecture to segment microstructures in X-ray computed tomography 3D data. Our ViG architecture is first trained on a synthetic augmented dataset, and then fine-tuned on experimental data to obtain an improved segmentation. Successively, we assess the accuracy of the segmentation on manually-labeled experimental slices. We exemplarily use the approach on a complex microstructure: a metal matrix composite, reinforced with two ceramic phases, intermetallic inclusions and a silicon network, in order to show the generality of our method. ViG model proves to be more efficient than U-Nets in adapting to new data when fine-tuned on a small portion of the experimental data. The fine-tuned ViG shows comparable performance to U-Nets, while largely reducing the number of trainable parameters, with the potential of greater adaptability and efficiency.

본문 36,466자

본문 펼치기
In this paper, we implement a vision graph neural network (ViG) architecture to segment microstructures in X-ray computed tomography 3D data.Our ViG architecture is first trained on a synthetic augmented dataset, and then fine-tuned on experimental data to obtain an improved segmentation.Successively, we assess the accuracy of the segmentation on manually-labeled experimental slices.We exemplarily use the approach on a complex microstructure: a metal matrix composite, reinforced with two ceramic phases, intermetallic inclusions and a silicon network, in order to show the generality of our method.ViG model proves to be more efficient than U-Nets in adapting to new data when fine-tuned on a small portion of the experimental data.The fine-tuned ViG shows comparable performance to U-Nets, while largely reducing the number of trainable parameters, with the potential of greater adaptability and efficiency. Introduction Quantitative analysis of X-ray computed tomography (XCT) is going through a new era thanks to the successful application of deep learning algorithms (see [1] and refs therein, for recent developments). Introduction Quantitative microstructural analysis is vital for material qualification, and XCT images significantly reduce the time and cost associated with this process.Given the difficulties and time demands of manually segmenting these microstructures, automatic segmentation using neural networks has proven highly effective [2][3][4].However, training supervised deep learning models typically requires a large amount of labeled data, which is where synthetic datasets become valuable, alleviating the burden of time-consuming manual-labeling of experimental 3D volumes. Introduction Specifically, 3D deep convolutional neural networks (DCNNs) [5], 2D DCNNs [6], and autoencoders [7] have been utilized for automatic segmentation of XCT reconstructions.Originally designed for detection and segmentation in medical imaging (see [8] for a recent review), these techniques have now established themselves as state-of-the-art in the field of materials science. Introduction In modern computer vision tasks, such as classification, object detection, and semantic segmentation, convolutional neural networks (CNNs) represent the standard technique [9][10][11].However, recently, transformer architectures with attention mechanisms have been also exploited for visual tasks [12,13].Different networks require the input to be visualized and structured in different ways: CNNs view the image as a regular grid of pixels, while transformers treat the image as a sequence of patches.In this work, we exploit a further approach: we view the image as a graph and we employ graph neural networks (GNNs) architectures (see [14,15] and refs therein) to segment a challenging six-phase Al-Si alloy composite reinforced with ceramic fibers and particles.Since these microstructures can have irregular shapes, the flexibility of learning from the graph structure may help in the segmentation task. Introduction Due to comparable X-ray attenuation coefficients (and hence similar densities), different microstructural phases can exhibit similar grayscales in reconstructed XCT data [4].Consequently, the 3D shape of these phases becomes crucial for differentiating them, even when their gray levels are alike.Therefore, segmenting the entire 3D reconstructed volume is the most effective method for distinguishing these multiphase composite materials, rather than relying solely on 2D slices.Additionally, recognizing geometric features can be beneficial when multiple objects (or phases, in this context) are present [3,4]. Introduction By now, the application of GNNs in the field of computer vision mainly include point clouds classification and segmentation [16][17][18].To make a GNN suitable for visual tasks, it is important to overcome the common phenomenon of over-smoothing [19].Hence, we exploit the successful framework of vision GNN (ViG) introduced in [20] to enlarge our previous GNN architecture [21] and enhance the final segmentation. The advantages of GNNs One of the primary advantages of GNNs is their ability to process graph-based data, treating the 3D volume as a graph where voxels serve as nodes interconnected by edges.Due to how the graph convolution works (see Sec. 4), the spatial orientation of the graph does not influence the learning.Usually, when segmenting images with 2D and 3D DCNNs, the kernel shifts on 2D and 3D Euclidean grids and the DCNN is translation equivariant with respect to the segmentation task.This means that, if an object's position in an image is shifted by some pixels, the output (e.g., the feature map in a CNN) will also be shifted by the same number of pixels.In the case of segmentation with GNNs, instead, the kernel is not moving by translation and graph convolutions are equivariant also with respect to rotation of the graph and permutation of the nodes.This characteristic of GNNs fits our task, since voxel classification is independent of voxel spatial orientation.Also, having such orientation symmetries automatically built in allows to reduce the number of trainable parameters with respect to usual DCNNs. The advantages of GNNs Another advantage of GNNs is their ability to solve node classification problems in a semi-supervised setting: the GNN has access to the labels of a restricted set of nodes but exploits the information coming from the graph structure to classify the remaining nodes (see [22] for a clear illustration of this fact in a toy social network example [23]).This behavior can be exploited to fine-tune the trained architecture on experimental data.Once the model is trained on the synthetic dataset, we expect that further training on a small portion of the experimental data can greatly improve the final segmentation of experimental data.To this end, a 3D manual-labeling of experimental data is required, but only for a small percentage of voxels (unlike what happens for classic DCNNs).We give details about fine-tuning in Sec.4.3 and present the results in Sec. 5. The advantages of GNNs These structural advantages of GNNs could not only allow to reduce the computational costs of training (training time and hardware requirements) but also to possibly solve more challenging tasks. Materials and data We segment an AlSi12CuMgNi matrix metal composite (MMC) reinforced with 7%vol Al 2 O 3 short fibers and 15%vol SiC particles, as detailed in [4].The synchrotron X-ray computed tomography (SXCT) data were collected at the BAMline beamline at BESSY II synchrotron in Berlin, Germany.More details about the SXCT imaging and the analysis of the microstructures are contained in [3]. Materials and data In Fig. 1, we present a 512 × 512 pixel cross-section of the XCT volume, illustrating how different microstructures exhibit similar gray levels. Materials and data To train supervised deep learning algorithms effectively, a substantial amount of labeled data is essential.Therefore, we train our GNN using a synthetic dataset (see Fig. 1), whose detailed generation procedure is outlined in [4].Here, we provide a brief summary: synthetic Al-Si MMC microstructures are created using BAM's in-house MATLAB library (BAM SynthMAT [4]).This generation process accounts for structural and grayscale resemblance, positioning the microstructures into a single volume using a priority function [4].The priority function is necessary due to the inhomogeneous spatial distribution of particles and volume fractions in the experimental data.Additionally, voxel grayscales are assigned based on local contrast, noise, and blur, allowing us to achieve a spatial and grayscale distribution of the constituent phases that closely mimics the experimental one. Materials and data The final synthetic volume comprises two raw eight-bit binary files: one containing the grayscale values (ranging from 0 to 255) and the other containing labels for the various synthetic phases (with labels ranging from 0 to the number of phases-1).For the Al-Si MMC under investigation, there are six distinct phases: voids, Al 2 O 3 fibers, intermetallics (IMs), eutectic Si, SiC particles, and the Al matrix (see Table 1).Since the phases are not homogeneously distributed in the volume, we carefully weight the contribution of each phase when computing the loss function (see Sec. 4).Specifically, we take into account the average occurrence of each phase across the synthetic volumes (see Table 1).This is calculated by counting the average number of voxels associated with each class among the dataset volumes, and then, it is normalized with respect to the sum of all classes average occurrences. Materials and data The synthetic dataset comprises eight Al-Si MMCs volumes, each with dimensions of 512 × 512 × 512 voxels and generated using various parameters such as fiber sizes, lengths, orientations, grayscales, and volume fractions.Out of these, seven volumes are designated for training and validation, while one is reserved for testing.Figure 1 displays a cross-section from one of the synthetic volumes along with its corresponding labels. Materials and data The experimental dataset used to evaluate the trained model includes four conditioned XCT volumes, also sized at 512 × 512 × 512 voxels, each containing a single manually-labeled slice (see Fig. 1). Materials and data These slices serve as ground truth for assessing the model's performance on the experimental volumes.Experimental data are conditioned with two conditioning methods: by a non-local means filter [24], and by BAM SynthCOND, a deep conditioning framework introduced in [25].The purpose of conditioning the experimental data is to reduce noise and blur, thus improving the final segmentation.BAM SynthCOND trains conditioning DCNNs with synthetic data.Therefore, since we are training a segmenting architecture with analogous synthetic data, further improvement in the final segmentation can be achieved [26].In Fig. 2, we compare the different conditioning methods. Materials and data Since the synthetic grayscale distributions are not perfect models of the experimental ones, the synthetic training dataset is augmented to increase the generalization ability of the model [4].Four augmentations are applied: contrast and brightness augmentations, in random orders and intensity ( ±10% for both); Gaussian noise (random standard deviation of 0 − 8 ); and 3D Gaussian spatial blur (random sigma of 0 − 1 ).The brightness/contrast augmentations have the aim of better including different material interfaces in the experimental volumes, so that the 3D interface geometry is better recognized as well.The purpose of the introduction of artificial noise and blur is to make the training more challenging and thus further improving generalization.The augmentations are randomly applied to sub-volumes during slicing and not to the seven synthetic volumes as a whole, so that the number of combinations of the augmentations is increased and generalization is further improved (random augmentations were applied to more samples.) Materials and data Differently from what we did in our previous work [21], this time we train the GNN architecture on the augmented dataset, to see how augmentations improve the performance on experimental volumes. Graph Convolutional Layers Segmenting a volume involves classifying each voxel by assigning to it a label, allowing us to determine the class it belongs to and enabling semantic recognition of objects within the 3D reconstruction (i.e., Aluminum Fibers, Intermetallics, etc.).We approach this task as a supervised node classification problem using GNNs. Graph Convolutional Layers We begin by constructing a graph from the XCT volume (as illustrated in Fig. 3), where each voxel serves as a node.The feature of each node corresponds to its gray level, an integer between 0 and 255, while the label represents its class, or material phase, ranging from 0 to 5. Each node is connected to its six nearest neighbors, based on the assumption that, for microstructure reconstruction, spatial proximity is a meaningful criterion for establishing links. Graph Convolutional Layers Common GNN architectures follow an encoderdecoder structure.The encoder is formed by a series of graph convolutional layers (GCLs), while the decoder is composed of linear layers interspersed with nonlinear activation functions.Unlike the cross-correlation-based convolutions used in CNNs for grid-like data [27], GCLs gather information through a process known as Message Passing [28].In this process, for each node v, information from neighboring nodes N(v) is aggregated using permutation-equivariant operations (such as sum, mean, max, or min) and then updated by incorporating the node's own features.Unlike CNNs, where each neuron in the receptive field is multiplied by a different weight in the kernel, in GCLs the same matrix of weights is applied to each node in the neighborhood of a given vertex.This generally makes CNNs more expressive for visual tasks.However, several attempts have been made to enhance the expressiveness of GNNs.Among them, the introduction of an attention mechanism in graph attention (GAT) layers [29] and the usage of a multilayer perceptron in graph isomorphism network (GIN) layers [30]. Graph Convolutional Layers More specifically, the implementation of the GCLs in our GNN architectures contains: Graph Convolutional Layers • GIN layer [30].A graph isomorphism network (GIN) layer aggregates information from a node's neighbors and updates its representation in a way that is theoretically as powerful as the Weisfeiler-Lehman (WL) test [31,32], a traditional method for checking graph isomorphism.GIN uses a sum aggregation function instead of mean, max, or other common methods.This choice is crucial as it enables GIN layers to capture subtle details of the graph structure that may be overlooked with other aggregation methods.Once the node aggregates the features of its neighbors, the result is passed through a neural network (usually a multilayer perceptron, or MLP) to update the node's representation.While GIN primarily uses sum aggregation, the MLP allows for additional nonlinear processing of this aggregated information.This increases the expressiveness of the network compared to a simple linear transformation, enhancing the network's ability to learn rich, complex representations of graph data.We employ Pytorch GINConv [30], whose update can be expressed as: Graph Convolutional Layers Where h (k) v is the updated feature for node v at layer k , h (k−1) v is the node's feature from the previous layer, h (k−1) w is the neighboring node's feature from the previous layer, and N(v) represents the neighbors of node v .The learnable parameter controls the balance between the node's own feature Graph Convolutional Layers w and its neighbors, allowing flexibility in how much influence a node's own features have in relation to its neighbors during the update process.As stated above, after the neighboring features are aggregated through the sum function, every GIN layer k employs a multilayer perceptron MLP (k) to update the node's representation.• GraphSage layer [33].This approach is akin to GCN [22], but it offers a more flexible framework for customizing the convolution steps.Specifically, we utilize the SAGEConv implementation in PyTorch [33], which employs the sum operation for both aggregation and concatenation: Graph Convolutional Layers In this equation, W 1 and W 2 represent the weights associated with the aggregation and concatenation processes.The resulting feature vector h (k) v is subsequently passed through a fully connected layer and normalized after being processed by a non-linear activation function.Through consecutive graph convolutional layers, we iteratively update the embedding of a node by aggregating embeddings of its neighbors.After k iterations of aggregation, a node's embedding captures the information within its k-hop network neighborhood.It is intuitive that, since each node aggregates information from the neighbors, a set of neighboring nodes will share a similar embedding.Starting from the hypothesis that neighboring nodes tend to share the same label, this will ultimately ease the classification task.Even if the message passing formalism tends to flatten the distance between neighboring nodes (smoothing) to facilitate the classification later, when the architecture becomes deep, nodes will have access to information from nodes that are far away and may not be similar to them.There is then the risk of making all node embeddings look similar, thus decreasing the model ability to classify unlabeled nodes.The search for a model that is more expressive and aware of the graph structure (by adding more layers so that nodes can have a large receptive field) could yield a model that disperses the information and cancels out the differences between the nodes.This common phenomenon is called over-smoothing [19] and we take it into account when enlarging our GNN architecture (see Sec. 4.2). Graph Convolutional Layers ( 2) Graph Convolutional Layers w The ViG architecture During our initial attempt at segmenting the Al-Si MMC, we trained a simple GNN architecture on the non-augmented synthetic dataset as a proof of concept for applying GNNs to this task (see [21]).Even if this model correctly understands the semantic of microstructures, the performance gets considerably worse when it is trained on the augmented dataset.This is due to the fact that the model is too small, and it is not able to learn equally well when the range of gray levels is enlarged.This leads us to build a second, larger, architecture, to train on the synthetic augmented dataset and further improve the segmentation of experimental data. Graph Convolutional Layers The encoding of the simple GNN architecture implemented in [21] is obtained by a sequence of three GCLs, each followed by a non-linearity: GAT (Graph attention networks) [29], GraphSage [33], and GCN (Graph convolutional network) [22].The decoder consists of two linear layers separated by a nonlinear activation function.The first GCL is a GAT layer, so that we can obtain meaningful attention coefficients by looking directly at the input features before aggregation. Graph Convolutional Layers To build the second enlarged GNN architecture (diagram in Fig. 4), we take inspiration from [20] and adapt vision graph neural network (ViG) blocks.ViG blocks proved successful in segmenting 2D images for well-known datasets, as in [34] where they are employed to segment different tissue regions in histopathology images for diagnosis and prognosis of cancer.A ViG block consists of two main parts: the Grapher and the FFN (Feed forward network) modules.The Grapher module contains the graph convolutional layers, while the FFN module is a simple multilayer perceptron with two fully connected layers.The FFN module is introduced to further encourage the feature transformation and alleviate the typical phenomenon of over-smoothing in GNNs [19].Indeed, introducing a FFN module after the graph convolutions interrupts the message passing flow and projects the node embeddings into a larger space, thus avoiding oversmoothing when enlarging the architecture.The final architecture is built up by concatenating different ViG blocks. Graph Convolutional Layers In particular, our enlarged GNN model (diagram in Fig. 4) comprises two adapted ViG blocks, which constitute the encoder of the architecture.The Grapher module contains one initial 3DCNN layer, useful to extract richer and more significant features for the nodes, and a succession of three GCLs, each followed by a non-linearity: one first GIN (Graph isomorphism network) layer [30] with a two-layer MLP, and two consecutive GraphSage layers [33].Batch normalization is applied after the 3DCNN and after each GCL layer in the Grapher module.On the other side, the FFN module is composed of two linear layers separated by a nonlinear activation function.We employ SiLU activation function [35] throughout.The decoder of the model is a linear layer.Between the different modules, skip connections are inserted to help the convergence of the model.We stress that the size and the topology of the graph is not changing throughout the architecture.On the other hand, the input gray level is initially embedded in a space of dimension 50 and the embedding gradually increases by multiples of 50 until the final dense layer projects it on the number of classes. Graph Convolutional Layers Differently from the simple GNN [21], all GNN layers in ViG architecture can be easily implemented as a sparse matrix multiplication.This is possible for GNNs that do not make use of the central node features or of multi-dimensional edge features when aggregating messages.For example, the message passing update in a GIN layer 1 can be rewritten as: Graph Convolutional Layers Where A denotes the sparse adjacency matrix of the graph, while H (k−1) is a matrix of dimension N × d grouping the nodes' features from the previous layer, with N the total number of nodes and d the embedding dimension of the previous layer.This reformulation of the message passing scheme allows to parallelize the operations on the number of nodes, resulting in a lower memory footprint and a faster execution time.This memory-efficient aggregation is directly available in Pytorch Geometric for GIN [30] and GraphSage [33] layers, while it has not been implemented yet for GAT [29] and GCN [22] layers.We will compare the execution time and the RAM occupation of the two GNN architectures in Sec. 5. Training, testing, and fine-tuning We will now provide a brief overview of our training process.First, we divide our synthetic dataset into seven volumes for training and validation, with one volume reserved for testing.To ensure a fair comparison of ( 3) Training, testing, and fine-tuning performances, we evaluate the model on the same volume used in [4].Each volume is subsequently divided into overlapping sub-volumes of size 64 × 64 × 64 voxel, and the graph structure is constructed for each sub-volume.The seven volumes are further partitioned, allocating 80% for training and 20% for validation, following a random shuffling of the extracted 64 × 64 × 64 subvolumes.This partitioning is summarized in Table 2. Training, testing, and fine-tuning We optimize the model using the Adam optimizer [36] with an initial learning rate of 0.001, an exponential decay rate of 0.96, and a weight decay regularization of 0.001.The model is trained for 50 epochs, with a batch size set to 64 graphs.In particular, we employ an early stopping criterion: We save the weights of the model minimizing the loss on the validation set with a patience of 20 epochs.We utilize cross-entropy loss, and to address class imbalance, we adjust the contribution of each class by the inverse of its average occurrence across the eight synthetic volumes (see Table 1).Furthermore, since voids constitute on average only 0.13% of the voxels in a volume, and they are not annotated in the experimental slices, we set their contribution to the total loss to zero. Training, testing, and fine-tuning After training the model, we assess its accuracy by collecting the probabilities for all 64 × 64 × 64 sub-volumes extracted from the test volume.We then reconstruct six 512 × 512 × 512 voxel probability volumes, one for each class.To effectively segment the overlapping regions between sub-volumes, we reconstruct the probability volume by summing the probabilities of overlapping voxels.The final segmented volume of 512 × 512 × 512 voxel is created by assigning to each voxel the class corresponding to the highest summed probability from the six probability volumes. Training, testing, and fine-tuning Since the model is trained on 3D data, fine-tuning on experimental data has to be done as well on 3D data to be effective.To cut the timing of manually-labeling the voxels, we first use the trained model to segment a subvolume of dimensions 128 × 128 × 128 voxel from one of the experimental volumes in the dataset.Then, we manually correct this segmentation and we fine-tune the model on it.Again, the experimental volume is divided into overlapping sub-volumes of size 64 × 64 × 64 voxel, and the graph structure is constructed for each subvolume.The model is further trained for 50 epochs on these experimental sub-volumes, and the batch size is now set to four graphs because of the reduced size of the dataset.Since the dimension of the dataset for finetuning is small, this time we do not create a validation set and we just save the weights corresponding to the last epoch of training.Also, since the model is originally trained on synthetic data, we choose to fine-tune it on experimental data conditioned with BAM SynthCOND [25].That is because this conditioning method constraints experimental data to be entropically analogous to synthetic data, and this results in an increased performance with respect to fine-tuning on experimental data conditioned by a non-local means filter [24]. Results and discussion To evaluate the accuracy on the test set, we conduct 10 training runs with a fixed random seed and calculate the standard deviation corresponding to a 95% confidence interval.This approach is common practice in the literature (see, for example, [37]). Results and discussion We assess accuracy using the Dice score, a.k.a.F1 score, a widely used metric for image segmentation (see, for example, [2,4,34]).The Dice score rewards correctly segmented voxels and penalizes incorrect ones.It is defined in terms of true-positive, false-positive, and false-negative voxels as follows: Results and discussion In Table 3, we present the Dice scores obtained from evaluating the two architectures on the synthetic test dataset and on the four manually-labeled slices of experimental data (conditioned by a non-local means filter [24], and conditioned by BAM SynthCOND [25]).The Dice score for the experimental data is calculated by first averaging the Dice scores of the 10 trained models for each slice and then averaging the resulting Dice scores across the four slices.Since voids are not annotated in the manually-labeled experimental slices, we focus on the segmentation of the remaining five classes.We stress that, even if the model is trained to segment 3D structures, we evaluate the experimental performance on 2D slices.This is due to the fact that manually-labeling the voxels is a time-consuming operation and it is faster to manually-label a 2D slice than a 3D sub-volume.Computing the Dice score in 3D is generally more appropriate for evaluating the segmentation of 3D structures, since it ensures a comprehensive assessment of the segmentation quality by capturing spatial consistency.However, 2D Dice scores constitute a first relevant measure for the quality of the segmentation. Results and discussion As expected, the model performs worse on experimental data than on synthetic data since it was trained on low-resemblance synthetic data (see also [4]).This discrepancy arises because our synthesized data do not fully capture the complexity of the experimental data, both in terms of grayscale distributions and structural details.One solution to this problem could be to generate better synthetic data through deep learning algorithms such as GANs and diffusion models ( [38][39][40]).In Fig. 5, we give an example of segmentation for two of the manually-labeled experimental slices conditioned with BAM SynthCOND [25], while in Fig. 6, we visualize the segmentation in 3D on an experimental sub-volume.We notice that despite the poor accuracy (see Table 3), the GNN models correctly capture the geometry of the objects in the slice, thus giving a correct semantic understanding of the image.Also, since BAM SynthCOND constraints the conditioned experimental slices to be entropically analogous to the synthetic data [26], the segmentation is enhanced compared to the one obtained when conditioning experimental data with a Non-local means filter [24] (see Table 3). Results and discussion From the Dice scores in Table 3 and the visualization of the segmentation in Fig. 5, we notice that our enlarged ViG architecture, trained on the augmented dataset, actually manages to improve the overall segmentation of the experimental data with respect to our previous model in [21].More specifically, the Dice scores by ViG architecture improve over the previous ones, apart from Intermetallics (IMs), whose accuracy decreases.The reduction of the Dice score for intermetallics is particularly high when segmenting experimental data conditioned with a non-local means filter [24], but it gets better when evaluating the model on experimental data conditioned with BAM Synth-COND [25]. Results and discussion By inspecting Fig. 5 more closely, we notice that ViG model is able to correctly distinguish between eutectic Si and SiC particles, while the previous GNN model was generally segmenting the Al matrix portion between these two labels as eutectic Si.This improvement by ViG model is reflected in the enhanced Dice score for eutectic Si, SiC particles, and Al matrix in Table 3.In Fig. 5, we also notice that the simple GNN model better recognize thicker fibers, but it confuses SiC particles and portions of the Al matrix as fibers as well, and the Dice score for fibers is overall enhanced by ViG model.In Fig. 5, we highlight the differences in the segmentation of thicker fibers with a red rectangle, while the aereas where the GNN model confuses fibers with SiC particles and Al matrix are highlighted in light blue. Results and discussion In Fig. 7, we report the confusion matrix of the two GNN models when segmenting one experimental slice conditioned with a non-local means filter [24] and with BAM SynthCOND [25].The number of true-positives on the diagonal of the confusion matrix generally reflects the behavior of Dice scores in Table 3.We obtain a similar confusion matrix for each experimental slice (not reported for the sake of brevity).In particular, the segmentation by ViG model splits almost in half the number of voxels belonging to eutectic Si (label 4) and classified as Al matrix (label 5) with respect to the simpler GNN.Also, the number of voxels belonging to fibers (label 1) and classified as SiC particles (label 4) and Al matrix (label 5) is largely reduced. Results and discussion We next compare our GNN architectures with the single U-Net architecture developed in [4], when trained on the augmented dataset.The corresponding Dice scores are reported in Table 3 for both synthetic and experimental data.From Table 3, we see a similar drop from synthetic to experimental data. Results and discussion So far, our ViG architecture is generally slightly outperformed by the single U-Net in [4], while it is largely outperformed in the segmentation of Fibers.This discrepancy in segmenting larger 3D structures may be due to constructing the graph by linking each node with only the six nearest neighbors, which might not provide sufficient connectivity for effective fiber segmentation.However, the structure of the architecture could play a role as well, beyond the type of neural network employed.To this end, to properly compare the usage of CNNs and GNNs for this task, we plan to implement a Graph U-Net [41] in the near future. Results and discussion To improve the performance on experimental samples, we use the Single U-Net to segment a 128 × 128 × 128 voxel sub-volume from one of the experimental volumes and, after manually correcting some of the errors, fine-tune the single U-Net and our ViG model on it.In the case of ViG architecture, finetuning helps enhancing the segmentation on fibers and intermetallics, while the Dice scores for the other classes stay the same (see Table 3).On the contrary, fine-tuning does not increase the performance for the single U-Net, and the Dice scores for fibers, intermetallics, and SiC particles are largely reduced.One possible explanation is that GNNs can generalize more easily than CNNs on a small portion of experimental data.To further investigate this behavior, we plan to enlarge the dataset for fine-tuning and compare again the performance of the two architectures. Results and discussion In any case, the main advantage of our GNN architecture is that it largely reduces the number of trainable parameters.In Table 4, we report the number of trainable parameters of our two GNN architectures and the single U-Net in [4].Although the enlarged ViG architecture has 6 times the number of trainable parameters compared to our previous simple GNN [21], it is still almost half the size of the single U-Net in [4]. Results and discussion In Table 4, we also compare the models in terms of RAM usage and time execution for both training and test.While training on the augmented dataset, we compute the RAM and the time required for one epoch.During inference, we measure RAM and time when segmenting one experimental volume.RAM usage is comparable between the ViG model and the single U-Net, while the single U-Net is faster in training.On the other side, even though ViG model has 6 times the number of trainable parameters with respect to the simple GNN, the RAM usage and training time are not even twice the size.We trace back this behavior to the fact that, differently from the simple GNN, all GNN layers in ViG model are implemented as a sparse matrix multiplication and this reduces the memory footprint and speeds up the execution time.Then, we believe that, once the libraries employed for GNNs will reach the same optimization level as the ones implementing usual DCNNs, the reduced number of trainable parameters will cut the computational costs both in training and testing. Conclusions We implement a vision graph neural network (ViG) architecture to segment microstructures in XCT volumes of an AlSi12CuMgNi metal matrix composite, and we enhance the final segmentation by finetuning the model on experimental data.Our GNN architecture gives a correct semantic understanding of microstructures, despite the highly reduced number of trainable parameters with respect to state-ofthe-art U-Nets.As future work, we plan to improve the segmentation on experimental slices by generating highly resembling synthetic data through deep learning algorithms. Figure 1 Figure 1 Experimental (top: (a), (b)) and synthetic (bottom: (c), (d)) slices of the AlSi12CuMgNi Metal Matrix Composite (MMC).On the left the gray level (an integer between 0 and Table 1 Figure 2 Figure 2 Conditioned experimental slices of the AlSi12CuMgNi Metal Matrix Composite (MMC).From left to right: a the unconditioned experimental slice, b the non-local means filter conditioning[24], and (c) the conditioning with BAM SynthCOND[25]. Figure 3 Figure 3 Successive zoom on the underlying graph structure.From a to d the side of the sub-volume goes from 32 to 16, from 16 to 8, and from 8 to 4. Figure 4 Figure 4 Diagram of the ViG architecture.The 64 × 64 × 64 sub-volume goes through an encoder composed of 2 ViG blocks with a Grapher and a FFN module each.The Grapher comprises a first 3D CNN and three following GCLs; the FFN simply consists of two feed-forward layers.The final decoder is a feed-forward layer.Skip connections (dashed lines) sum the 3D CNN output to the Grapher output and the result of this first sum to the FFN output. ( 4 ) Dice score = 2TP 2TP + FP + FN Figure 5 Figure 5 Resulting segmentation of two experimental slices conditioned with BAM SynthCOND [25].On the left, the manually-labeled ground truths (a,d), in the middle the segmentation by the simple GNN model (b,c), on the right the one by ViG Figure 6 Figure 6 3D visualization of the segmentation on an experimental sub-volume conditioned with BAM SynthCOND [25].The color bar shows the label for each class, from 0 to 5: Voids, Al2O3 fibers, Intermetallics (IMs), eutectic Si, SiC particles, and Al matrix. Figure 7 Figure 7 Confusion matrices resulting from the segmentation of one experimental slice conditioned with a non-local means filter [24] (top: (a), (b)) and with BAM SynthCOND [25] (bottom: (c), (d)).The X and Y-axis indicate the class, from 1 to 5: Table 3 Dice Table 4 Comparison of the three architectures under analysis in terms of number of trainable parameters, RAM usage, and time during training and test

섹션 본문 62문단 · 35,125자

(제목 없음)

1In this paper, we implement a vision graph neural network (ViG) architecture to segment microstructures in X-ray computed tomography 3D data.Our ViG architecture is first trained on a synthetic augmented dataset, and then fine-tuned on experimental data to obtain an improved segmentation.Successively, we assess the accuracy of the segmentation on manually-labeled experimental slices.We exemplarily use the approach on a complex microstructure: a metal matrix composite, reinforced with two ceramic phases, intermetallic inclusions and a silicon network, in order to show the generality of our method.ViG model proves to be more efficient than U-Nets in adapting to new data when fine-tuned on a small portion of the experimental data.The fine-tuned ViG shows comparable performance to U-Nets, while largely reducing the number of trainable parameters, with the potential of greater adaptability and efficiency.

Introduction

2Quantitative analysis of X-ray computed tomography (XCT) is going through a new era thanks to the successful application of deep learning algorithms (see [1] and refs therein, for recent developments).

3Quantitative microstructural analysis is vital for material qualification, and XCT images significantly reduce the time and cost associated with this process.Given the difficulties and time demands of manually segmenting these microstructures, automatic segmentation using neural networks has proven highly effective [2][3][4].However, training supervised deep learning models typically requires a large amount of labeled data, which is where synthetic datasets become valuable, alleviating the burden of time-consuming manual-labeling of experimental 3D volumes.

4Specifically, 3D deep convolutional neural networks (DCNNs) [5], 2D DCNNs [6], and autoencoders [7] have been utilized for automatic segmentation of XCT reconstructions.Originally designed for detection and segmentation in medical imaging (see [8] for a recent review), these techniques have now established themselves as state-of-the-art in the field of materials science.

5In modern computer vision tasks, such as classification, object detection, and semantic segmentation, convolutional neural networks (CNNs) represent the standard technique [9][10][11].However, recently, transformer architectures with attention mechanisms have been also exploited for visual tasks [12,13].Different networks require the input to be visualized and structured in different ways: CNNs view the image as a regular grid of pixels, while transformers treat the image as a sequence of patches.In this work, we exploit a further approach: we view the image as a graph and we employ graph neural networks (GNNs) architectures (see [14,15] and refs therein) to segment a challenging six-phase Al-Si alloy composite reinforced with ceramic fibers and particles.Since these microstructures can have irregular shapes, the flexibility of learning from the graph structure may help in the segmentation task.

6Due to comparable X-ray attenuation coefficients (and hence similar densities), different microstructural phases can exhibit similar grayscales in reconstructed XCT data [4].Consequently, the 3D shape of these phases becomes crucial for differentiating them, even when their gray levels are alike.Therefore, segmenting the entire 3D reconstructed volume is the most effective method for distinguishing these multiphase composite materials, rather than relying solely on 2D slices.Additionally, recognizing geometric features can be beneficial when multiple objects (or phases, in this context) are present [3,4].

7By now, the application of GNNs in the field of computer vision mainly include point clouds classification and segmentation [16][17][18].To make a GNN suitable for visual tasks, it is important to overcome the common phenomenon of over-smoothing [19].Hence, we exploit the successful framework of vision GNN (ViG) introduced in [20] to enlarge our previous GNN architecture [21] and enhance the final segmentation.

The advantages of GNNs

8One of the primary advantages of GNNs is their ability to process graph-based data, treating the 3D volume as a graph where voxels serve as nodes interconnected by edges.Due to how the graph convolution works (see Sec. 4), the spatial orientation of the graph does not influence the learning.Usually, when segmenting images with 2D and 3D DCNNs, the kernel shifts on 2D and 3D Euclidean grids and the DCNN is translation equivariant with respect to the segmentation task.This means that, if an object's position in an image is shifted by some pixels, the output (e.g., the feature map in a CNN) will also be shifted by the same number of pixels.In the case of segmentation with GNNs, instead, the kernel is not moving by translation and graph convolutions are equivariant also with respect to rotation of the graph and permutation of the nodes.This characteristic of GNNs fits our task, since voxel classification is independent of voxel spatial orientation.Also, having such orientation symmetries automatically built in allows to reduce the number of trainable parameters with respect to usual DCNNs.

9Another advantage of GNNs is their ability to solve node classification problems in a semi-supervised setting: the GNN has access to the labels of a restricted set of nodes but exploits the information coming from the graph structure to classify the remaining nodes (see [22] for a clear illustration of this fact in a toy social network example [23]).This behavior can be exploited to fine-tune the trained architecture on experimental data.Once the model is trained on the synthetic dataset, we expect that further training on a small portion of the experimental data can greatly improve the final segmentation of experimental data.To this end, a 3D manual-labeling of experimental data is required, but only for a small percentage of voxels (unlike what happens for classic DCNNs).We give details about fine-tuning in Sec.4.3 and present the results in Sec. 5.

10These structural advantages of GNNs could not only allow to reduce the computational costs of training (training time and hardware requirements) but also to possibly solve more challenging tasks.

Materials and data

11We segment an AlSi12CuMgNi matrix metal composite (MMC) reinforced with 7%vol Al 2 O 3 short fibers and 15%vol SiC particles, as detailed in [4].The synchrotron X-ray computed tomography (SXCT) data were collected at the BAMline beamline at BESSY II synchrotron in Berlin, Germany.More details about the SXCT imaging and the analysis of the microstructures are contained in [3].

12In Fig. 1, we present a 512 × 512 pixel cross-section of the XCT volume, illustrating how different microstructures exhibit similar gray levels.

13To train supervised deep learning algorithms effectively, a substantial amount of labeled data is essential.Therefore, we train our GNN using a synthetic dataset (see Fig. 1), whose detailed generation procedure is outlined in [4].Here, we provide a brief summary: synthetic Al-Si MMC microstructures are created using BAM's in-house MATLAB library (BAM SynthMAT [4]).This generation process accounts for structural and grayscale resemblance, positioning the microstructures into a single volume using a priority function [4].The priority function is necessary due to the inhomogeneous spatial distribution of particles and volume fractions in the experimental data.Additionally, voxel grayscales are assigned based on local contrast, noise, and blur, allowing us to achieve a spatial and grayscale distribution of the constituent phases that closely mimics the experimental one.

14The final synthetic volume comprises two raw eight-bit binary files: one containing the grayscale values (ranging from 0 to 255) and the other containing labels for the various synthetic phases (with labels ranging from 0 to the number of phases-1).For the Al-Si MMC under investigation, there are six distinct phases: voids, Al 2 O 3 fibers, intermetallics (IMs), eutectic Si, SiC particles, and the Al matrix (see Table 1).Since the phases are not homogeneously distributed in the volume, we carefully weight the contribution of each phase when computing the loss function (see Sec. 4).Specifically, we take into account the average occurrence of each phase across the synthetic volumes (see Table 1).This is calculated by counting the average number of voxels associated with each class among the dataset volumes, and then, it is normalized with respect to the sum of all classes average occurrences.

15The synthetic dataset comprises eight Al-Si MMCs volumes, each with dimensions of 512 × 512 × 512 voxels and generated using various parameters such as fiber sizes, lengths, orientations, grayscales, and volume fractions.Out of these, seven volumes are designated for training and validation, while one is reserved for testing.Figure 1 displays a cross-section from one of the synthetic volumes along with its corresponding labels.

16The experimental dataset used to evaluate the trained model includes four conditioned XCT volumes, also sized at 512 × 512 × 512 voxels, each containing a single manually-labeled slice (see Fig. 1).

17These slices serve as ground truth for assessing the model's performance on the experimental volumes.Experimental data are conditioned with two conditioning methods: by a non-local means filter [24], and by BAM SynthCOND, a deep conditioning framework introduced in [25].The purpose of conditioning the experimental data is to reduce noise and blur, thus improving the final segmentation.BAM SynthCOND trains conditioning DCNNs with synthetic data.Therefore, since we are training a segmenting architecture with analogous synthetic data, further improvement in the final segmentation can be achieved [26].In Fig. 2, we compare the different conditioning methods.

18Since the synthetic grayscale distributions are not perfect models of the experimental ones, the synthetic training dataset is augmented to increase the generalization ability of the model [4].Four augmentations are applied: contrast and brightness augmentations, in random orders and intensity ( ±10% for both); Gaussian noise (random standard deviation of 0 − 8 ); and 3D Gaussian spatial blur (random sigma of 0 − 1 ).The brightness/contrast augmentations have the aim of better including different material interfaces in the experimental volumes, so that the 3D interface geometry is better recognized as well.The purpose of the introduction of artificial noise and blur is to make the training more challenging and thus further improving generalization.The augmentations are randomly applied to sub-volumes during slicing and not to the seven synthetic volumes as a whole, so that the number of combinations of the augmentations is increased and generalization is further improved (random augmentations were applied to more samples.)

19Differently from what we did in our previous work [21], this time we train the GNN architecture on the augmented dataset, to see how augmentations improve the performance on experimental volumes.

Graph Convolutional Layers

20Segmenting a volume involves classifying each voxel by assigning to it a label, allowing us to determine the class it belongs to and enabling semantic recognition of objects within the 3D reconstruction (i.e., Aluminum Fibers, Intermetallics, etc.).We approach this task as a supervised node classification problem using GNNs.

21We begin by constructing a graph from the XCT volume (as illustrated in Fig. 3), where each voxel serves as a node.The feature of each node corresponds to its gray level, an integer between 0 and 255, while the label represents its class, or material phase, ranging from 0 to 5. Each node is connected to its six nearest neighbors, based on the assumption that, for microstructure reconstruction, spatial proximity is a meaningful criterion for establishing links.

22Common GNN architectures follow an encoderdecoder structure.The encoder is formed by a series of graph convolutional layers (GCLs), while the decoder is composed of linear layers interspersed with nonlinear activation functions.Unlike the cross-correlation-based convolutions used in CNNs for grid-like data [27], GCLs gather information through a process known as Message Passing [28].In this process, for each node v, information from neighboring nodes N(v) is aggregated using permutation-equivariant operations (such as sum, mean, max, or min) and then updated by incorporating the node's own features.Unlike CNNs, where each neuron in the receptive field is multiplied by a different weight in the kernel, in GCLs the same matrix of weights is applied to each node in the neighborhood of a given vertex.This generally makes CNNs more expressive for visual tasks.However, several attempts have been made to enhance the expressiveness of GNNs.Among them, the introduction of an attention mechanism in graph attention (GAT) layers [29] and the usage of a multilayer perceptron in graph isomorphism network (GIN) layers [30].

23More specifically, the implementation of the GCLs in our GNN architectures contains:

24• GIN layer [30].A graph isomorphism network (GIN) layer aggregates information from a node's neighbors and updates its representation in a way that is theoretically as powerful as the Weisfeiler-Lehman (WL) test [31,32], a traditional method for checking graph isomorphism.GIN uses a sum aggregation function instead of mean, max, or other common methods.This choice is crucial as it enables GIN layers to capture subtle details of the graph structure that may be overlooked with other aggregation methods.Once the node aggregates the features of its neighbors, the result is passed through a neural network (usually a multilayer perceptron, or MLP) to update the node's representation.While GIN primarily uses sum aggregation, the MLP allows for additional nonlinear processing of this aggregated information.This increases the expressiveness of the network compared to a simple linear transformation, enhancing the network's ability to learn rich, complex representations of graph data.We employ Pytorch GINConv [30], whose update can be expressed as:

25Where h (k) v is the updated feature for node v at layer k , h (k−1) v is the node's feature from the previous layer, h (k−1) w is the neighboring node's feature from the previous layer, and N(v) represents the neighbors of node v .The learnable parameter controls the balance between the node's own feature

26w and its neighbors, allowing flexibility in how much influence a node's own features have in relation to its neighbors during the update process.As stated above, after the neighboring features are aggregated through the sum function, every GIN layer k employs a multilayer perceptron MLP (k) to update the node's representation.• GraphSage layer [33].This approach is akin to GCN [22], but it offers a more flexible framework for customizing the convolution steps.Specifically, we utilize the SAGEConv implementation in PyTorch [33], which employs the sum operation for both aggregation and concatenation:

27In this equation, W 1 and W 2 represent the weights associated with the aggregation and concatenation processes.The resulting feature vector h (k) v is subsequently passed through a fully connected layer and normalized after being processed by a non-linear activation function.Through consecutive graph convolutional layers, we iteratively update the embedding of a node by aggregating embeddings of its neighbors.After k iterations of aggregation, a node's embedding captures the information within its k-hop network neighborhood.It is intuitive that, since each node aggregates information from the neighbors, a set of neighboring nodes will share a similar embedding.Starting from the hypothesis that neighboring nodes tend to share the same label, this will ultimately ease the classification task.Even if the message passing formalism tends to flatten the distance between neighboring nodes (smoothing) to facilitate the classification later, when the architecture becomes deep, nodes will have access to information from nodes that are far away and may not be similar to them.There is then the risk of making all node embeddings look similar, thus decreasing the model ability to classify unlabeled nodes.The search for a model that is more expressive and aware of the graph structure (by adding more layers so that nodes can have a large receptive field) could yield a model that disperses the information and cancels out the differences between the nodes.This common phenomenon is called over-smoothing [19] and we take it into account when enlarging our GNN architecture (see Sec. 4.2).

28( 2)

29w The ViG architecture During our initial attempt at segmenting the Al-Si MMC, we trained a simple GNN architecture on the non-augmented synthetic dataset as a proof of concept for applying GNNs to this task (see [21]).Even if this model correctly understands the semantic of microstructures, the performance gets considerably worse when it is trained on the augmented dataset.This is due to the fact that the model is too small, and it is not able to learn equally well when the range of gray levels is enlarged.This leads us to build a second, larger, architecture, to train on the synthetic augmented dataset and further improve the segmentation of experimental data.

30The encoding of the simple GNN architecture implemented in [21] is obtained by a sequence of three GCLs, each followed by a non-linearity: GAT (Graph attention networks) [29], GraphSage [33], and GCN (Graph convolutional network) [22].The decoder consists of two linear layers separated by a nonlinear activation function.The first GCL is a GAT layer, so that we can obtain meaningful attention coefficients by looking directly at the input features before aggregation.

31To build the second enlarged GNN architecture (diagram in Fig. 4), we take inspiration from [20] and adapt vision graph neural network (ViG) blocks.ViG blocks proved successful in segmenting 2D images for well-known datasets, as in [34] where they are employed to segment different tissue regions in histopathology images for diagnosis and prognosis of cancer.A ViG block consists of two main parts: the Grapher and the FFN (Feed forward network) modules.The Grapher module contains the graph convolutional layers, while the FFN module is a simple multilayer perceptron with two fully connected layers.The FFN module is introduced to further encourage the feature transformation and alleviate the typical phenomenon of over-smoothing in GNNs [19].Indeed, introducing a FFN module after the graph convolutions interrupts the message passing flow and projects the node embeddings into a larger space, thus avoiding oversmoothing when enlarging the architecture.The final architecture is built up by concatenating different ViG blocks.

32In particular, our enlarged GNN model (diagram in Fig. 4) comprises two adapted ViG blocks, which constitute the encoder of the architecture.The Grapher module contains one initial 3DCNN layer, useful to extract richer and more significant features for the nodes, and a succession of three GCLs, each followed by a non-linearity: one first GIN (Graph isomorphism network) layer [30] with a two-layer MLP, and two consecutive GraphSage layers [33].Batch normalization is applied after the 3DCNN and after each GCL layer in the Grapher module.On the other side, the FFN module is composed of two linear layers separated by a nonlinear activation function.We employ SiLU activation function [35] throughout.The decoder of the model is a linear layer.Between the different modules, skip connections are inserted to help the convergence of the model.We stress that the size and the topology of the graph is not changing throughout the architecture.On the other hand, the input gray level is initially embedded in a space of dimension 50 and the embedding gradually increases by multiples of 50 until the final dense layer projects it on the number of classes.

33Differently from the simple GNN [21], all GNN layers in ViG architecture can be easily implemented as a sparse matrix multiplication.This is possible for GNNs that do not make use of the central node features or of multi-dimensional edge features when aggregating messages.For example, the message passing update in a GIN layer 1 can be rewritten as:

34Where A denotes the sparse adjacency matrix of the graph, while H (k−1) is a matrix of dimension N × d grouping the nodes' features from the previous layer, with N the total number of nodes and d the embedding dimension of the previous layer.This reformulation of the message passing scheme allows to parallelize the operations on the number of nodes, resulting in a lower memory footprint and a faster execution time.This memory-efficient aggregation is directly available in Pytorch Geometric for GIN [30] and GraphSage [33] layers, while it has not been implemented yet for GAT [29] and GCN [22] layers.We will compare the execution time and the RAM occupation of the two GNN architectures in Sec. 5.

Training, testing, and fine-tuning

35We will now provide a brief overview of our training process.First, we divide our synthetic dataset into seven volumes for training and validation, with one volume reserved for testing.To ensure a fair comparison of ( 3)

36performances, we evaluate the model on the same volume used in [4].Each volume is subsequently divided into overlapping sub-volumes of size 64 × 64 × 64 voxel, and the graph structure is constructed for each sub-volume.The seven volumes are further partitioned, allocating 80% for training and 20% for validation, following a random shuffling of the extracted 64 × 64 × 64 subvolumes.This partitioning is summarized in Table 2.

37We optimize the model using the Adam optimizer [36] with an initial learning rate of 0.001, an exponential decay rate of 0.96, and a weight decay regularization of 0.001.The model is trained for 50 epochs, with a batch size set to 64 graphs.In particular, we employ an early stopping criterion: We save the weights of the model minimizing the loss on the validation set with a patience of 20 epochs.We utilize cross-entropy loss, and to address class imbalance, we adjust the contribution of each class by the inverse of its average occurrence across the eight synthetic volumes (see Table 1).Furthermore, since voids constitute on average only 0.13% of the voxels in a volume, and they are not annotated in the experimental slices, we set their contribution to the total loss to zero.

38After training the model, we assess its accuracy by collecting the probabilities for all 64 × 64 × 64 sub-volumes extracted from the test volume.We then reconstruct six 512 × 512 × 512 voxel probability volumes, one for each class.To effectively segment the overlapping regions between sub-volumes, we reconstruct the probability volume by summing the probabilities of overlapping voxels.The final segmented volume of 512 × 512 × 512 voxel is created by assigning to each voxel the class corresponding to the highest summed probability from the six probability volumes.

39Since the model is trained on 3D data, fine-tuning on experimental data has to be done as well on 3D data to be effective.To cut the timing of manually-labeling the voxels, we first use the trained model to segment a subvolume of dimensions 128 × 128 × 128 voxel from one of the experimental volumes in the dataset.Then, we manually correct this segmentation and we fine-tune the model on it.Again, the experimental volume is divided into overlapping sub-volumes of size 64 × 64 × 64 voxel, and the graph structure is constructed for each subvolume.The model is further trained for 50 epochs on these experimental sub-volumes, and the batch size is now set to four graphs because of the reduced size of the dataset.Since the dimension of the dataset for finetuning is small, this time we do not create a validation set and we just save the weights corresponding to the last epoch of training.Also, since the model is originally trained on synthetic data, we choose to fine-tune it on experimental data conditioned with BAM SynthCOND [25].That is because this conditioning method constraints experimental data to be entropically analogous to synthetic data, and this results in an increased performance with respect to fine-tuning on experimental data conditioned by a non-local means filter [24].

Results and discussion

40To evaluate the accuracy on the test set, we conduct 10 training runs with a fixed random seed and calculate the standard deviation corresponding to a 95% confidence interval.This approach is common practice in the literature (see, for example, [37]).

41We assess accuracy using the Dice score, a.k.a.F1 score, a widely used metric for image segmentation (see, for example, [2,4,34]).The Dice score rewards correctly segmented voxels and penalizes incorrect ones.It is defined in terms of true-positive, false-positive, and false-negative voxels as follows:

42In Table 3, we present the Dice scores obtained from evaluating the two architectures on the synthetic test dataset and on the four manually-labeled slices of experimental data (conditioned by a non-local means filter [24], and conditioned by BAM SynthCOND [25]).The Dice score for the experimental data is calculated by first averaging the Dice scores of the 10 trained models for each slice and then averaging the resulting Dice scores across the four slices.Since voids are not annotated in the manually-labeled experimental slices, we focus on the segmentation of the remaining five classes.We stress that, even if the model is trained to segment 3D structures, we evaluate the experimental performance on 2D slices.This is due to the fact that manually-labeling the voxels is a time-consuming operation and it is faster to manually-label a 2D slice than a 3D sub-volume.Computing the Dice score in 3D is generally more appropriate for evaluating the segmentation of 3D structures, since it ensures a comprehensive assessment of the segmentation quality by capturing spatial consistency.However, 2D Dice scores constitute a first relevant measure for the quality of the segmentation.

43As expected, the model performs worse on experimental data than on synthetic data since it was trained on low-resemblance synthetic data (see also [4]).This discrepancy arises because our synthesized data do not fully capture the complexity of the experimental data, both in terms of grayscale distributions and structural details.One solution to this problem could be to generate better synthetic data through deep learning algorithms such as GANs and diffusion models ( [38][39][40]).In Fig. 5, we give an example of segmentation for two of the manually-labeled experimental slices conditioned with BAM SynthCOND [25], while in Fig. 6, we visualize the segmentation in 3D on an experimental sub-volume.We notice that despite the poor accuracy (see Table 3), the GNN models correctly capture the geometry of the objects in the slice, thus giving a correct semantic understanding of the image.Also, since BAM SynthCOND constraints the conditioned experimental slices to be entropically analogous to the synthetic data [26], the segmentation is enhanced compared to the one obtained when conditioning experimental data with a Non-local means filter [24] (see Table 3).

44From the Dice scores in Table 3 and the visualization of the segmentation in Fig. 5, we notice that our enlarged ViG architecture, trained on the augmented dataset, actually manages to improve the overall segmentation of the experimental data with respect to our previous model in [21].More specifically, the Dice scores by ViG architecture improve over the previous ones, apart from Intermetallics (IMs), whose accuracy decreases.The reduction of the Dice score for intermetallics is particularly high when segmenting experimental data conditioned with a non-local means filter [24], but it gets better when evaluating the model on experimental data conditioned with BAM Synth-COND [25].

45By inspecting Fig. 5 more closely, we notice that ViG model is able to correctly distinguish between eutectic Si and SiC particles, while the previous GNN model was generally segmenting the Al matrix portion between these two labels as eutectic Si.This improvement by ViG model is reflected in the enhanced Dice score for eutectic Si, SiC particles, and Al matrix in Table 3.In Fig. 5, we also notice that the simple GNN model better recognize thicker fibers, but it confuses SiC particles and portions of the Al matrix as fibers as well, and the Dice score for fibers is overall enhanced by ViG model.In Fig. 5, we highlight the differences in the segmentation of thicker fibers with a red rectangle, while the aereas where the GNN model confuses fibers with SiC particles and Al matrix are highlighted in light blue.

46In Fig. 7, we report the confusion matrix of the two GNN models when segmenting one experimental slice conditioned with a non-local means filter [24] and with BAM SynthCOND [25].The number of true-positives on the diagonal of the confusion matrix generally reflects the behavior of Dice scores in Table 3.We obtain a similar confusion matrix for each experimental slice (not reported for the sake of brevity).In particular, the segmentation by ViG model splits almost in half the number of voxels belonging to eutectic Si (label 4) and classified as Al matrix (label 5) with respect to the simpler GNN.Also, the number of voxels belonging to fibers (label 1) and classified as SiC particles (label 4) and Al matrix (label 5) is largely reduced.

47We next compare our GNN architectures with the single U-Net architecture developed in [4], when trained on the augmented dataset.The corresponding Dice scores are reported in Table 3 for both synthetic and experimental data.From Table 3, we see a similar drop from synthetic to experimental data.

48So far, our ViG architecture is generally slightly outperformed by the single U-Net in [4], while it is largely outperformed in the segmentation of Fibers.This discrepancy in segmenting larger 3D structures may be due to constructing the graph by linking each node with only the six nearest neighbors, which might not provide sufficient connectivity for effective fiber segmentation.However, the structure of the architecture could play a role as well, beyond the type of neural network employed.To this end, to properly compare the usage of CNNs and GNNs for this task, we plan to implement a Graph U-Net [41] in the near future.

49To improve the performance on experimental samples, we use the Single U-Net to segment a 128 × 128 × 128 voxel sub-volume from one of the experimental volumes and, after manually correcting some of the errors, fine-tune the single U-Net and our ViG model on it.In the case of ViG architecture, finetuning helps enhancing the segmentation on fibers and intermetallics, while the Dice scores for the other classes stay the same (see Table 3).On the contrary, fine-tuning does not increase the performance for the single U-Net, and the Dice scores for fibers, intermetallics, and SiC particles are largely reduced.One possible explanation is that GNNs can generalize more easily than CNNs on a small portion of experimental data.To further investigate this behavior, we plan to enlarge the dataset for fine-tuning and compare again the performance of the two architectures.

50In any case, the main advantage of our GNN architecture is that it largely reduces the number of trainable parameters.In Table 4, we report the number of trainable parameters of our two GNN architectures and the single U-Net in [4].Although the enlarged ViG architecture has 6 times the number of trainable parameters compared to our previous simple GNN [21], it is still almost half the size of the single U-Net in [4].

51In Table 4, we also compare the models in terms of RAM usage and time execution for both training and test.While training on the augmented dataset, we compute the RAM and the time required for one epoch.During inference, we measure RAM and time when segmenting one experimental volume.RAM usage is comparable between the ViG model and the single U-Net, while the single U-Net is faster in training.On the other side, even though ViG model has 6 times the number of trainable parameters with respect to the simple GNN, the RAM usage and training time are not even twice the size.We trace back this behavior to the fact that, differently from the simple GNN, all GNN layers in ViG model are implemented as a sparse matrix multiplication and this reduces the memory footprint and speeds up the execution time.Then, we believe that, once the libraries employed for GNNs will reach the same optimization level as the ones implementing usual DCNNs, the reduced number of trainable parameters will cut the computational costs both in training and testing.

Conclusions

52We implement a vision graph neural network (ViG) architecture to segment microstructures in XCT volumes of an AlSi12CuMgNi metal matrix composite, and we enhance the final segmentation by finetuning the model on experimental data.Our GNN architecture gives a correct semantic understanding of microstructures, despite the highly reduced number of trainable parameters with respect to state-ofthe-art U-Nets.As future work, we plan to improve the segmentation on experimental slices by generating highly resembling synthetic data through deep learning algorithms.

Figure 1

53Figure 1 Experimental (top: (a), (b)) and synthetic (bottom: (c), (d)) slices of the AlSi12CuMgNi Metal Matrix Composite (MMC).On the left the gray level (an integer between 0 and

Table 1 Figure 2

54Figure 2 Conditioned experimental slices of the AlSi12CuMgNi Metal Matrix Composite (MMC).From left to right: a the unconditioned experimental slice, b the non-local means filter conditioning[24], and (c) the conditioning with BAM SynthCOND[25].

Figure 3

55Figure 3 Successive zoom on the underlying graph structure.From a to d the side of the sub-volume goes from 32 to 16, from 16 to 8, and from 8 to 4.

Figure 4

56Figure 4 Diagram of the ViG architecture.The 64 × 64 × 64 sub-volume goes through an encoder composed of 2 ViG blocks with a Grapher and a FFN module each.The Grapher comprises a first 3D CNN and three following GCLs; the FFN simply consists of two feed-forward layers.The final decoder is a feed-forward layer.Skip connections (dashed lines) sum the 3D CNN output to the Grapher output and the result of this first sum to the FFN output.

( 4 )

57Dice score = 2TP 2TP + FP + FN

Figure 5

58Figure 5 Resulting segmentation of two experimental slices conditioned with BAM SynthCOND [25].On the left, the manually-labeled ground truths (a,d), in the middle the segmentation by the simple GNN model (b,c), on the right the one by ViG

Figure 6

59Figure 6 3D visualization of the segmentation on an experimental sub-volume conditioned with BAM SynthCOND [25].The color bar shows the label for each class, from 0 to 5: Voids, Al2O3 fibers, Intermetallics (IMs), eutectic Si, SiC particles, and Al matrix.

Figure 7

60Figure 7 Confusion matrices resulting from the segmentation of one experimental slice conditioned with a non-local means filter [24] (top: (a), (b)) and with BAM SynthCOND [25] (bottom: (c), (d)).The X and Y-axis indicate the class, from 1 to 5:

Table 3

61Dice

Table 4

62Comparison of the three architectures under analysis in terms of number of trainable parameters, RAM usage, and time during training and test

참고문헌 22건

  1. A Non-Local Algorithm for Image Denoising 2005 10.1109/cvpr.2005.38
  2. Gradient-based learning applied to document recognition Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1998 10.1109/5.726791
  3. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  4. Geometric Deep Learning: Going beyond Euclidean data IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2017 10.1109/msp.2017.2693418
  5. Large-Scale Point Cloud Semantic Segmentation with Superpoint Graphs 2018 10.1109/cvpr.2018.00479
  6. Discrete geodesic parallel coordinates ACM Transactions on Graphics · Association for Computing Machinery · 2019 10.1145/3355089.3356541
  7. Semantic segmentation of synchrotron tomography of multiphase Al-Si alloys using a convolutional neural network with a pixel-wise weighted loss function Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-56008-7
  8. Advanced Deep Learning‐Based 3D Microstructural Characterization of Multiphase Metal Matrix Composites Advanced Engineering Materials · Wiley · 2020 10.1002/adem.201901197
  9. Automated detection of defects with low semantic information in X-ray images based on deep learning Journal of Intelligent Manufacturing · Springer Science+Business Media · 2020 10.1007/s10845-020-01566-1
  10. Distilling Knowledge From Graph Convolutional Networks 2020 10.1109/cvpr42600.2020.00710
  11. End-to-End Object Detection with Transformers Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-58452-8_13
  12. An Information Flow Model for Conflict and Fission in Small Groups Journal of Anthropological Research · University of Chicago Press · 1977 10.1086/jar.33.4.3629752
  13. Convolutional neural networks in medical image understanding: a survey Evolutionary Intelligence · Springer Science+Business Media · 2021 10.1007/s12065-020-00540-3
  14. SinGAN-Seg: Synthetic training data generation for medical image segmentation PLoS ONE · Public Library of Science · 2022 10.1371/journal.pone.0267976
  15. Segmentation of Additive Manufacturing Defects Using U-Net 2021 10.1115/detc2021-68885
  16. A deep learning approach for semantic segmentation of unbalanced data in electron tomography of catalytic materials Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-16429-3
  17. Synthetic Data Generation for Automatic Segmentation of X-ray Computed Tomography Reconstructions of Complex Microstructures Journal of Imaging · Multidisciplinary Digital Publishing Institute · 2023 10.3390/jimaging9020022
  18. Noise and blur removal from corrupted X-ray computed tomography scans: A multilevel and multiscale deep convolutional framework approach with synthetic training data (BAM SynthCOND) Tomography of Materials and Structures · Elsevier BV · 2023 10.1016/j.tmater.2023.100011
  19. Intriguing properties of synthetic images: from generative adversarial networks to diffusion models 2023 10.1109/cvprw59228.2023.00104
  20. Deep learning enhanced Watershed for microstructural analysis using a boundary class semantic segmentation Journal of Materials Science · Springer Science+Business Media · 2023 10.1007/s10853-023-08901-w
  21. A Complete Strategy to Achieve High Precision Automatic Segmentation of Challenging Experimental X‐Ray Computed Tomography Data Using Low‐Resemblance Synthetic Training Data Advanced Engineering Materials · Wiley · 2023 10.1002/adem.202301030
  22. Geometric deep learning for enhanced quantitative analysis of microstructures in X-ray computed tomography data Deleted Journal · 2024 10.1007/s42452-024-05985-0