선정목록으로
Semantic segmentation of synchrotron tomography of multiphase Al-Si alloys using a convolutional neural network with a pixel-wise weighted loss function
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(20) 페놀수지
기본 정보
- 저자
- DOI
- 10.1038/s41598-019-56008-7
- 저널
- Scientific Reports
- 발행년도
- 2019
- 발행기관
- Nature Portfolio
- 피인용수
- 39
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-019-56008-7
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W2996422521
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (21) 에폭시수지, (20) 페놀수지
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- synchrotron tomography, convolutional neural network, microstructure, segmentation, Al-Si alloys
- 판단 근거
- 본 논문은 Al-Si 합금의 미세구조를 분석하기 위해 CNN 기반의 3D 이미지 세그멘테이션 기술을 다루고 있습니다. 이는 코오롱인더스트리의 직접적인 제품(섬유, 필름 등) 연구는 아니나, 엔지니어링 플라스틱이나 화학 수지 제조 시 복합재의 미세구조 및 상(phase) 분포를 분석하는 공정/물성 평가 기법으로 응용 가능합니다.
- R&D 활용 포인트
- 엔지니어링 플라스틱 컴파운드나 고분자 복합소재의 미세구조(filler 분산도, 상 분리 등)를 비파괴적으로 정밀 분석하고 모델링하는 데 활용할 수 있습니다.
- 평가 입력
- 본문 36,349자
초록
Abstract Human-based segmentation of tomographic images can be a tedious time-consuming task. Deep learning algorithms and, particularly, convolutional neural networks have become state of the art techniques for pattern recognition in digital images that can replace human-based image segmentation. However, their use in materials science is beginning to be explored and their application needs to be adapted to the specific needs of this field. In the present work, a convolutional neural network is trained to segment the microstructural components of an Al-Si cast alloy imaged using synchrotron X-ray tomography. A pixel-wise weighted error function is implemented to account for microstructural features which are hard to identify in the tomographs and that play a relevant role for the correct description of the 3D architecture of the alloy investigated. The results show that the total operation time for the segmentation using the trained convolutional neural network was reduced to <1% of the time needed with human-based segmentation.
본문 36,349자
본문 펼치기
## OPEN
# Semantic segmentation of synchrotron tomography of multiphase Al-Si alloys using a convolutional neural network with a pixel-wise weighted loss function
Tobias Strohmann <sup>1*</sup> , Katrin Bugelnig <sup>1</sup> , Eric Breitbarth <sup>1</sup> , Fabian Wilde <sup>2</sup> , Thomas Steffens <sup>3</sup> ,
Holger Germann <sup>3</sup> & Guillermo Requena <sup>1,4</sup>
Human-based segmentation of tomographic images can be a tedious time-consuming task. Deep
learning algorithms and, particularly, convolutional neural networks have become state of the
art techniques for pattern recognition in digital images that can replace human-based image
segmentation. However, their use in materials science is beginning to be explored and their application
needs to be adapted to the specific needs of this field. In the present work, a convolutional neural
network is trained to segment the microstructural components of an Al-Si cast alloy imaged using
synchrotron X-ray tomography. A pixel-wise weighted error function is implemented to account for
microstructural features which are hard to identify in the tomographs and that play a relevant role for
the correct description of the 3D architecture of the alloy investigated. The results show that the total
operation time for the segmentation using the trained convolutional neural network was reduced to
<1% of the time needed with human-based segmentation.
Synchrotron tomography is a state of the art characterization method to analyse quantitatively and
three-dimensionally the microstructure of materials <sup>1</sup> . While tomography is per se a technique that involves handling large amounts of data, the continuously increasing brilliance of synchrotron sources combined with the use
of fast imaging detectors is leading to data acquisition rates that are posing unprecedented challenges to materials
scientists <sup>2</sup> . Particularly, the process of segmentation, i.e. the digital separation of the microstructural constituents
contained in the images, can act as a bottleneck that slows down the analysis of data before any scientific interpretation of the investigated phenomena can be undertaken.
Image segmentation usually involves developing a procedure that combines the application of several image
enhancing filters before phases can be separated by grey value thresholding either automatically (e.g. using local
or global thresholds), manually or semi-manually <sup>3</sup> . Although this methodology works well in many cases, as it is
demonstrated by the increasing use of 3D microstructural analysis in materials science <sup>1</sup>, it is imperative to come up
with new methodologies that permit fast and accurate 3D imaging segmentation, especially for complex multiphase
microstructures.
Deep learning algorithms and particularly convolutional neural networks (CNN) have become state of the art
techniques for pattern recognition in all kinds of digital images <sup>4,5</sup> . While their use is extended in some disciplines
such as earth observation or medicine <sup>6,7</sup>, their application in image analysis in materials science is beginning to
see the light (e.g. <sup>8–11</sup> ). In the present work, we explore the segmentation of 3D synchrotron X-ray tomography
data of a multiphase Al-Si cast alloy using a CNN. The microstructure of this type of alloys consists of Si and
various aluminide types embedded in an age-hardenable α-Al matrix <sup>12</sup> . The 3D architecture, connectivity and
1German Aerospace Center (DLR), Institute of Materials Research, Linder Hoehe, 51147, Cologne, Germany.
2Helmholtz-Zentrum Geesthacht, Zentrum für Material- und Küstenforschung GmbH, Max-Planck-Straße 1, 21502,
Geesthacht, Germany. <sup>3</sup> KS Kolbenschmidt GmbH, Karl-Schmidt-Straße, 74172, Neckarsulm, Germany. <sup>4</sup> Metallic
Structures and Materials Systems for Aerospace Engineering, RWTH Aachen University, 52062, Aachen, Germany.
[*email: tobias.strohmann@dlr.de](mailto:tobias.strohmann@dlr.de)
Figure 1. Ground truth dataset. 2D microstructure of the AlSi12Cu3Ni2 alloy acquired by ( a ) laboratory X-ray
CT, ( b ) synchrotron CT and ( c ) synchrotron CT after deep etching of the Al matrix. In ( d ), a segmented slice
shows Si (green), aluminides (red) and Al matrix (black). ( e ) 3D visualization of segmented aluminides and
silicon.
contiguity of the phases play a decisive role for understanding the thermo-mechanical and damage behaviour of
these alloys (e.g. <sup>13–15</sup> ). However, obtaining an accurate 3D segmentation of all the microstructural constituents
in these alloys is a very complex and time consuming task owing to the fact that Si can only be revealed by phase
contrast owing to the similar X-ray attenuation with respect to Al <sup>16</sup> . Thus, we present here the training of a CNN
with a so-called U-Net architecture <sup>17</sup> . Moreover, we complement the architecture of the CNN by implementing a
set of pixel-wise weights that account for microstructural features which are hard to identify in the tomographs
and play a relevant role for the correct description of the 3D architecture of the alloy investigated.
Material
The material under investigation is an AlSi12Cu3Ni2 alloy produced by gravity die casting provided by KS
Kolbenschmidt GmbH. The microstructure of the alloy was investigated in two different samples taken from
castings produced with different solidification rates (i.e. slower solidification rate for the training sample). Thus,
the microstructures of the two samples are expected to vary with respect to the different solidification rates during
casting. In our work, the microstructure will be characterised in terms of volume fraction of phases (aluminides,
silicon and the α-Al matrix) as well as the global interconnectivity and local connectivity of each phase and of the
hybrid network. The local connectivity is estimated by the topological parameter Euler number, _E_, which allows
quantifying the number of connecting branches within a network <sup>18</sup> .
Cylindrical specimens with a diameter of 0.6 mm and a length of 2 mm were machined for synchrotron X-ray
computed tomography (CT) scans. The experiments were carried out at the Helmholtz-Zentrum Geesthacht
operated beamline P05 of the synchrotron source PETRA III at DESY, Hamburg <sup>19</sup> using a voxel size of (1.2 µm³)
and a volumetric field of view of 1833 × 1833 × 1833 µm³. The phase contrast provided by the synchrotron radiation at P05 is necessary to reveal simultaneously the Al and Si phases owing to their similar X-ray attenuations.
Further experimental details can be found in <sup>20</sup> .
Methodology
Generation of ground truth data. For accurate training of a CNN, it is imperative to choose a suitable
training dataset, i.e. a labelled ground truth which is sufficiently free from errors. To this purpose, we chose the
reconstructed tomographic dataset of the AlSi12Cu3Ni2 sample with slower solidification rate. The microstructural constituents of this dataset were segmented following a method developed by the authors that combines
data acquired using laboratory X-ray CT, synchrotron CT, chemical deep etching of the Al matrix and grey value
thresholding <sup>20</sup> . This method reduces drastically the segmentation limitations for this kind of multiphase alloys,
i.e. the very difficult segmentation of silicon and of the interfaces between aluminides and silicon. As a result, a
realistic description of the 3D architecture of the alloys is obtained, particularly regarding interconnectivity of
phases, which is crucial to understand their damage tolerance <sup>13,14</sup> . However, this methodology is time consuming,
experimentally complex, and implies the destruction of the sample by chemical deep etching. As a reference,
a working time of a few hundred hours must be considered from data acquisition to final image segmentation.
This limitation hinders its serial applicability or its use for investigating the same sample at different conditions,
e.g. before and after heat treatment. On the other hand, its high accuracy gives a suitable dataset that was used as
Figure 2. Encoder-decoder architecture of the used CNN based on <sup>8,17</sup> .
ground truth for training the CNN applied in this work. The final objective is to segment any other tomographic
datasets of this type of alloys in a fraction of the time needed with the method used to obtain the ground truth
dataset. A segmented volume of 319 × 379 × 1000 voxels was used for training and validation of the CNN.
Figure 1 shows reconstructed tomographic slices of the microstructure of the specimen used for training,
acquired by (a) laboratory X-ray CT, (b) synchrotron CT and (c) synchrotron CT after chemical deep etching of
the Al matrix. A combination of these three datasets allowed for the, until now, most reliable segmentation of all
microstructural constituents, i.e. Al matrix, primary and eutectic Si (green) as well as aluminides (red) over a large
representative volume (see Fig. 1(d,e)), as reported in <sup>20</sup> . The laboratory X-ray CT dataset reveals clearly the aluminides (bright phase in Fig. 1a). Using synchrotron CT, the Si and Al phase can be revealed separately, although
phase contrast artefacts at aluminide/Al-matrix interfaces occur and can be misinterpreted as Si particles.
Finally, the synchrotron CT dataset of the deep etched sample allows avoiding this effect and makes a more realistic
segmentation of Si and interfaces between Si and aluminides possible. The Supplementary Video provides 3D
visualizations of all datasets.
Data augmentation and data splitting. The unsegmented and segmented ground truth datasets, comprising a stack with 1000 slices (16 bit grey scale before segmentation) were split into two parts:
(1) The training dataset. This dataset is responsible for the performance of the CNN model. A total of 595
slices (slice no. 404–998) were chosen for training. A gap of 101 unused slices (301–401) between the test
and training datasets ensures larger differences between the microstructural features of both datasets.
(2) The validation/test dataset. The first 300 slices were used for testing the CNN after training. A section with
a size of 256 × 256 pixels was cropped from the centre of each slice, i.e. resulting in a test dataset with a size
of 256 × 256 × 300 voxels.
Augmentation of the training dataset was carried out to enhance generalization of the trained CNN. To this
purpose, each slice was cropped from each corner into four overlapping images with a size of 256 × 256 pixels.
Furthermore, rotations of 0°, 90° and 270° were applied to each cropped image. Moreover, brightness and contrast
variations were performed randomly four times for each cropped slice in a range of ±30% and {−20, +30 }%
with respect to the original images. Furthermore, a blurring (Gaussian) filter with a standard deviation for the
Gaussian kernel of 0.0–1.0 and also random noise (i.e. adding a noise image with values 0 ± 500) was applied to
some images to make the network even applicable to low quality reconstructions. All the augmentation operations improved the performance of the network regarding unseen test data. The size of the augmented training
dataset was:
Augmented training dataset = 595 slices × 4 translations × 3 rotations × 4 grey scale transformations = 28,560
images.
Usually, several channels per image are used for training convolutional neural networks (e.g. one image for
each of the three channels in the RGB colour space) <sup>21</sup> . In our case we used a configuration with a five-channel
input. Instead of using colour channels of the same image for each input, five consecutive grey-scale slices from
the tomographic reconstruction were used, namely the slice to be predicted (channel 3) as well as two slices before
and two slices after the prediction slice. Thereby, we feed the CNN with 3D information, which may become relevant for the semantic segmentation.
Figure 3. Generation of pixel-wise weights for each slice for training the CNN. The loss is weighted on a pixelwise level to the purpose of highlighting the interfaces ( ωInt ) and silicon ( ωSi ) pixels during training.
Implementation of the convolutional neural network. The PyTorch framework <sup>22</sup> was used for the
implementation of the CNN. This framework provides a user-friendly library of deep learning algorithms integrated in Python. Figure 2 shows the encoder-decoder architecture of the neural network. The architecture is a
typical U-Net configuration <sup>17</sup> with a handful of changes that were achieved by trial-and-error and were inspired
mostly by the work of Azimi _et al_ . <sup>8</sup> . We use a colour-scheme similar to the one given by Azimi _et al_ . for better
comparability. U-Net is a state of the art CNN for image segmentation tasks (e.g. <sup>5</sup> ). The network was trained from
scratch, as no pre-trained CNN seemed applicable for our application.
The CNN architecture consists of several layers that are structured in similar blocks with respect to the
encoder or decoder part of the CNN. The first layer (olive) is a 2D convolution layer (Conv2D) with a kernel size
of 5 × 5 pixels and padding 2. It has a 5 channel input (5 slices in our case, as explained above) and a 64 channel
output. All other convolution layers (green) have a kernel size of 3 × 3 pixels and padding 1. Each convolution
layer is followed by a batch normalization layer (BatchNorm2D) and a rectified linear unit (ReLU) function
layer which is meant to add non-linearity between the convolutions <sup>23</sup> . The pooling layers (red) are max pooling layers. For the dropout (yellow) a probability of 0.33 was chosen. In the last encoder step, the image size
is 16 × 16 pixels with 2048 channels. The decoder consists of two different types of layers: (1) the up-sampling
layer, which is a bilinear interpolation in order to double the size of the image. (2) the transposed convolution
layer (TransposedConv2D), which has again a kernel size of 3 × 3 pixels and padding 1. The convolution layer
is followed by a batch normalization. At each stage of the decoder, the output of identical dimensions of the
encoder and decoder are concatenated (CAT) to the new input for the next stage. The training was performed
for 100 epochs using a batch size of 25 images. The dropout layers are omitted during testing. The Adam optimizer was used as it is implemented in PyTorch with an initial learning rate = 0.003, amsgrad = True and weight
decay = 1.0E-4. This stochastic, gradient-based optimization algorithm was introduced in ref. <sup>24</sup> .
Pixel-wise weighted loss function. The widely used cross entropy loss function, which is defined in
PyTorch as a series of the logarithmic Softmax and the 2D NLL Loss functions, was used during CNN training <sup>25</sup> .
Besides this, we modified this loss function to a pixel-wise level in order to specify two features of the microstructures that are hard to identify in the tomographs and play a relevant role for the correct description of the 3D
architecture of this type of alloys: (i) Si particles, which are revealed by phase contrast in the synchrotron tomography images and can, therefore, present a higher contrast at their borders than in their interior with respect to
the Al matrix <sup>3</sup>, (ii) interfaces between aluminides and Si, that can be hard to identify owing to phase contrast
artefacts <sup>20</sup> . Thus, the LogSoftmax function is calculated separately during CNN training while the NLL Loss function is weighted on a pixel-wise level before it is summed over the 2D image to a scalar overall error. The PyTorch
implementation was derived analogously to the coding example given in <sup>26</sup> . A similar procedure is usually applied
to weight classes which are under-represented in the training data set (class-balancing) <sup>27</sup> .
Figure 3 describes the procedure used to generate the pixel-wise weights for each target image.
(1) The target image is duplicated two times.
(2) A window with a size of one pixel (Window 1 in Fig. 3) is slided over one of the duplicate images, setting each
pixel that is labelled in the target as silicon to a value of 1 and the rest to 0. Output 1 in Fig. 3 shows the results
of this step in a small region of the target image. The pixels turned into value = 1 are shown in green and those
turned into value = 0 in blue for better visualization. The resulting image is analogous to the target Si phase.
(3) A window with a size of 3 pixels (Window 2 in Fig. 3) is slided over the other duplicate image, setting all the
pixels contained in the window to a value = 1 if at least one pixel of class “aluminides” and one pixel of class
Figure 4. Normalised mean loss for the tested pixel-wise weight factors ωInt, ωSi as a function of the trained epochs.
“silicon” is contained within the window. If this condition is not satisfied, the pixels within the 3 × 3 pixels
window are set to value = 0 unless they have already been transformed to value = 1 in a previous position of
the sliding window. Output 2 in Fig. 3 shows the results of this step in a small region of the target image. The
pixels turned into value = 1 are shown in red and those turned into value = 0 in blue for better visualization.
The purpose of this transformation is to obtain a map that contains extended Si-aluminide interfaces.
(4) The two outputs (Output 1 and Output 2 in Fig. 3) are combined to obtain the final pixel-wise weight
image. The resulting weights in the final image are defined for each pixel in the following way:
(a) If a pixel has value = 0 in Output 1 and value = 1 in Output 2 then the weighting factor _ω_ Int will be applied
to this pixel.
(b) If a pixel has value = 1 in Output 1 and 0 in Output 2 then the weighting factor _ω_ Si will be applied to this pixel.
(c) Each pixel with value = 1 in Output 1 and in Output 2 will be weighted as a possible interface pixel using
the factor _ω_ Int.
(d) The weighting _ω_ 0 = 1.0 is the weighting factor for each pixel with value = 0 in both the Output 1 and
Output 2 images.
Figure 5. ( a ) Pixel-wise accuracy after 50 epochs of training. The minimum accuracy for the case of high pixelwise weights does not fall below 94%. The CNN predicted image slice is very similar to its respective ground
truth ( b ).
The pixel-wise weights must be defined before training the CNN since they are not trainable parameters as
the term “weights” is usually understood in the context of artificial neural networks. We applied three different
pixel-wise weight configurations:
(1) _ω_ 0 = _ω_ Si = _ω_ Int = 1.0; this represents the case for which no pixel-wise weights are applied.
(2) _ω_ 0 = 1.0, _ω_ Si = 1.15 and _ω_ Int = 1.2.
(3) _ω_ 0 = 1.0, _ω_ Si = 1.25 and _ω_ Int = 1.5.
Evaluation of the CNN. We chose four different parameters to evaluate the performance of the CNN.
1. The accuracy, _a_, in each slice, where: _a_ = (Number of correctly classified pixels) ⁄ (256 × 256 pixels).
2. The difference in volume fraction of each phase with respect to the ground truth dataset.
3. The difference in global interconnectivity of each phase and of the hybrid network formed by Si and alu
minides with respect to the ground truth dataset.
4. The difference in local connectivity of each phase and of the hybrid network, expressed by the Euler number,
_E_ (i.e. connecting branches within a network) <sup>18</sup> .
Hardware and software. The training and testing of the CNN was performed on a Fujitsu Celsius
R930Power Work Station with 12 × 16 GB DDR3 working memory and two Intel Xeon E5-2667v2 3.30 GHz
25MB Turbo Boost processors with 8 kernels each. The machine was equipped with an NVIDIA RTX 8000 GPU <sup>28</sup>
for GPU accelerated computations. The programming was done in Python3 using standard libraries for pre- and
post-processing as well as PyTorch as machine learning framework. 3D image analysis was done with the software
ImageJ and Aviso 9.5. The total training time of the CNN for 100 epochs (i.e. 100 epochs × 28.560 images/25
(images/batch) = 114240 iterations) was ~32 hours.
Results and Discussion
The normalised loss functions (i.e. a random segmentation after 0 epochs of training results in a loss of 1.0) are
plotted in Fig. 4 as a function of the training epochs for the three pixel-wise weight configurations. The mean loss
taking into account all slices in the training or test datasets are shown. It can be seen that >80% of convergence is
reached after epoch 1. After 50 epochs, the slope of the loss function is close to zero and it even becomes slightly
positive for the test data with high pixel-wise weights (bottom diagram in Fig. 4a).
A representative region of a slice segmented by the CNN at epoch 50 as well as the ground truth of the same
area are shown in Fig. 4(b). The influence of the applied pixel-wise weights can be clearly appreciated qualitatively.
While the Si-aluminide interfaces (see red circles) are wrongly estimated by the CNN for the case with pixel-wise
weights = 1.0, these interfaces are segmented precisely when weights ≠ 1.0 are applied.
The accuracy of the segmentation, _a_, in the test data is shown in Fig. 5, for the three pixel-wise weight configurations at epoch 50. The accuracy is defined as the percentage of pixels correctly segmented with respect to
the ground truth. The accuracy is the lowest if ωInt and ωSi = 1.0 (~93%), while it is the highest if ωInt = 1.5 and
ωSi = 1.25 (~96%). A slice of the latter condition, i.e. ωInt = 1.5 ωSi = 1.25 is presented in Fig. 5(b) showing the raw
input data, the ground truth segmentation, the CNN prediction and the difference between ground truth and
prediction. From a qualitative point of view, this case with the highest accuracy in segmentation presents a quality
that makes it difficult to tell whether the CNN or human segmentation is better.
Figure 6. ( a ) Volume fraction of aluminides and ( b ) Si as well as ( c ) the Euler number of aluminides, Si and the
hybrid network as a function of the trained epochs. In ( d, e ) Si particles are shown for the segmentation with and
without the application of pixel-wise weights, respectively. The colours indicate individual particles.
Figure 7. Quantitative evaluation of volume fraction, interconnectivity and Euler number for the
AlSi12Cu3Ni2 alloy produced with a faster solidification rate during casting compared to the training sample.
The pixel-wise segmentation accuracy _a_ is not necessarily the most relevant quality parameter in the context
of materials science. Particularly, in the case of the alloys studied in this work, the volume fractions of the individual phases as well as their individual and combined 3D connectivity are crucial to understand their damage
behaviour <sup>13,14</sup> . Therefore, the segmentation carried out by the CNN was compared to the target volume fraction
of aluminides and Si as well as to the Euler number of Si, aluminides and the hybrid 3D network formed by them.
The results obtained are shown as a function of the training epochs in Fig. 6(a–c). The global interconnectivity of
Si, aluminides and the hybrid Si + aluminides networks was also computed and it is shown in the Supplementary
Fig. 1.
The red dashed line indicates the ground truth values. The results clearly show that the application of
pixel-wise weight factors increases the quality of the CNN segmentation. The best CNN prediction is given for
_ω_ 0 = 1.0, _ω_ Si = 1.25 and _ω_ Int = 1.5 at 50 epochs of training. For this case, the volume fractions of both phases as
well as the Euler numbers of the phases and of the hybrid network are in very good agreement with the ground
truth. The fact that 50 epochs of training give better results than 100 can be understood taking into account the
slight increase in the loss function for later epochs (see description of Fig. 4 above), which indicates that some
overfitting of the training is obtained beyond epoch 50 for the application of high pixel-wise weights. A 3D visualization of the network of primary and eutectic Si is shown in Fig. 6(d,e) for the CNN trained with pixel-wise
weights ωInt = ωSi = 1.0 and ωInt = 1.5, ωSi = 1.25, respectively. The different colours indicate individual particles.
It can be seen that the high interconnectivity of the network of Si is accurately segmented only if the pixel-wise
weights ≠1.0 are applied during training, as it should be expected according to the ground truth segmentation
(see Fig. 1e).
Application of the trained CNN to a second volume with a different solidification rate during
casting. The applicability of the trained CNN to segment microstructures different from those of the volume
considered for training was investigated. To this purpose, a segmentation of a second tomographic volume of
the same alloy but acquired by casting with a faster solidification rate was analysed. Therefore, we used the CNN
trained with the application of pixel-wise weights ωInt = 1.5, ωSi = 1.25 and 50 epochs of training. The segmentation of a volume of 256 × 256 × 1925 voxels took less than 10 minutes.
The quantitative evaluation of the segmentation (shown in Fig. 7) reveals volume fractions of ~14 vol.%, 18
vol.% and ~32 vol.% for the Si-, aluminide- and the hybrid network, respectively.
The larger volume fraction of aluminides with respect to the alloy with slower solidification rate is a reasonable consequence, because the higher solidification rate may result in microsegregations that increase the
fraction of aluminides. As a consequence, the relative volume fraction of Si must decrease, which is confirmed by
the segmentation results. Moreover, the global interconnectivity of the aluminide and hybrid networks reaches
~95% and 99%, respectively, which is comparable to the ones achieved for the training sample. In contrast, the
Si network from faster solidification shows ~15% less global interconnectivity compared to the training sample.
The Euler number, i.e. the local connectivity, of all networks reveals more negative values as compared to the
training microstructure, which is again in agreement with the fact that the alloy of the second sample experiences
higher solidification rates. Thus, this results in a microstructure with smaller inter-particle distances, which in
turn increase the potential for the formation of a larger amount of connecting branches within the networks <sup>29</sup> .
Besides the fact that a completely automatic segmentation can save a substantial amount of human working time,
the method provides the opportunity of a more user-independent segmentation technique and it is therefore
more objective.
Conclusions
We have shown that the training of a convolutional neural network is a very appropriate tool to objectively segment the complex 3D microstructure of cast Al-Si alloys revealed by synchrotron tomography. The application
of a pixel-wise weighted loss function during training that enhances relevant microstructural features that are
hard to detect in the tomographic images, i.e. the Si phase revealed by phase contrast and Si-aluminide interfaces, made it possible to achieve a precise segmentation of the tomographs. Training time of the CNN with a
U-Net architecture and a human–based segmentation ground truth took a total time of ~16 hours for 50 epochs.
Once the CNN is appropriately trained, the total operation time for the segmentation of a large volume (i.e.
256 × 256 × 1925 voxels) was reduced to <1% of the time needed with human-based segmentation.
Received: 9 October 2019; Accepted: 4 December 2019;
Published: xx xx xxxx
References
1. Maire, E. & Withers, P. J. Quantitative X-ray tomography. _International Materials Reviews_ 59 [(1), 1–43, https://doi.org/10.1179/1743](https://doi.org/10.1179/1743280413Y.0000000023)
[280413Y.0000000023 (2014).](https://doi.org/10.1179/1743280413Y.0000000023)
2. Wang, C., Steiner, U. & Sepe, A. Synchrotron Big Data Science. _Small_ 14 [(46), 1–12, https://doi.org/10.1002/smll.201802291 (2018).](https://doi.org/10.1002/smll.201802291)
3. Baruchel, J. _et al_ . Advances in synchrotron radiation microtomography. _Scripta Materialia_ 55 [(1 SPEC. ISS.), 41–46, https://doi.](https://doi.org/10.1016/j.scriptamat.2006.02.012)
[org/10.1016/j.scriptamat.2006.02.012 (2006).](https://doi.org/10.1016/j.scriptamat.2006.02.012)
4. Liu, X., Deng, Z. & Yang, Y. Recent progress in semantic image segmentation. _Artificial Intelligence Review_ 52 [(2), 1089–1106, https://](https://doi.org/10.1007/s10462-018-9641-3)
[doi.org/10.1007/s10462-018-9641-3 (2019).](https://doi.org/10.1007/s10462-018-9641-3)
5. Maier, A., Syben, C., Lasser, T. & Riess, C. A gentle introduction to deep learning in medical image processing. _Zeitschrift Fur_
_Medizinische Physik_ 29 [(2), 86–101, https://doi.org/10.1016/j.zemedi.2018.12.003 (2019).](https://doi.org/10.1016/j.zemedi.2018.12.003)
6. Mou, L., Bruzzone, L. & Zhu, X. X. Learning spectral-spatialoral features via a recurrent convolutional neural network for change
detection in multispectral imagery. _In IEEE Transactions on Geoscience and Remote Sensing_ 57 [(2), 924–935, https://doi.org/10.1109/](https://doi.org/10.1109/TGRS.2018.2863224)
[TGRS.2018.2863224 (2019).](https://doi.org/10.1109/TGRS.2018.2863224)
7. Anwar, S. M. _et al_ . Medical Image Analysis using Convolutional Neural Networks: A Review. _Journal of Medical Systems_ 42 (11),
[1–13, https://doi.org/10.1007/s10916-018-1088-1 (2018).](https://doi.org/10.1007/s10916-018-1088-1)
8. Azimi, S. M., Britz, D., Engstler, M., Fritz, M. & Mücklich, F. Advanced steel microstructural classification by deep learning methods.
_Scientific Reports_ 8 [, 2128, https://doi.org/10.1038/s41598-018-20037-5 (2018).](https://doi.org/10.1038/s41598-018-20037-5)
9. Gola, J. _et al_ . Advanced microstructure classification by data mining methods. _Computational Materials Science_ 148, 324–335,
[https://doi.org/10.1016/j.commatsci.2018.03.004 (2018).](https://doi.org/10.1016/j.commatsci.2018.03.004)
10. Iglesias, J. C. Á., Santos, R. B. M. & Paciornik, S. Deep learning discrimination of quartz and resin in optical microscopy images of
minerals. _Minerals Engineering_ 138 [(April), 79–85, https://doi.org/10.1016/j.mineng.2019.04.032 (2019).](https://doi.org/10.1016/j.mineng.2019.04.032)
11. Kaira, C. S. _et al_ . Automated correlative segmentation of large Transmission X-ray Microscopy (TXM) tomograms using deep
learning. _Materials Characterization_ 142 [, 203–210, https://doi.org/10.1016/j.matchar.2018.05.053 (2018).](https://doi.org/10.1016/j.matchar.2018.05.053)
12. Asghar, Z., Requena, G. & Boller, E. Three-dimensional rigid multiphase networks providing high-temperature strength to cast
AlSi10Cu5Ni1-2 piston alloys. _Acta Materialia_ 59 [(16), 6420–6432, https://doi.org/10.1016/j.actamat.2011.07.006 (2011).](https://doi.org/10.1016/j.actamat.2011.07.006)
13. Bugelnig, K. _et al_ . Influence of 3D connectivity of rigid phases on damage evolution during tensile deformation of an AlSi12Cu4Ni2
piston alloy. _Materials Science and Engineering A_ 709, 193–202 (2018).
14. Bugelnig, K. _et al_ . Revealing the Effect of Local Connectivity of Rigid Phases during Deformation at High Temperature of Cast
AlSi12Cu4Ni(2,3)Mg Alloys. _Materials_ 11 (8), 1300 (2018).
15. Kruglova, A. _et al_ . 3D connectivity of eutectic Si as a key property defining strength of Al–Si alloys. Comp. _Mater. Sci._ 120, 90–107,
[https://doi.org/10.1016/j.commatsci.2016.04.019 (2018).](https://doi.org/10.1016/j.commatsci.2016.04.019)
16. Requena, G. _et al_ . The Effect of the Connectivity of Rigid Phases on Strength of Al-Si Alloys. _Adv. Eng. Mater._ 13 [, 674–684, https://](https://doi.org/10.1002/adem.201000292)
[doi.org/10.1002/adem.201000292 (2011).](https://doi.org/10.1002/adem.201000292)
17. Ronneberger, O., Fischer, P. & Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. _Medical Image_
_Computing and Computer-Assisted Intervention (MICCAI)_, 234–241 (2015).
18. Toriwaki, J. & Yonekura, T. Euler Number and Connectivity Indexes of a Three Dimensional Digital Picture. _Forma_ 17, 183–209
(2002).
19. Wilde, F. _et al_ . MicroCT at the imaging beamline P05 at PETRA III. In _AIP Conference Proceedings_ 1741. 030035-1 (2016).
20. Bugelnig, K. _et al_ . Optimized Segmentation of the 3D Microstructure in Cast Al-Si Piston Alloys. _Practical Metallography_ 55 (4),
223–243 (2018).
21. Gowda, S. N. & Yuan, C. ColorNet: Investigating the Importance of Color Spaces for Image Classification. Lecture Notes in
Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 11364 LNCS,
[581–596, https://doi.org/10.1007/978-3-030-20870-7_36 (2019).](https://doi.org/10.1007/978-3-030-20870-7_36)
[22. “PyTorch” [Online]. Available: https://www.pytorch.org. [Accessed 17 09 2019].](https://www.pytorch.org)
23. Jung, W. _et al_ . Restructuring Batch Normalization to Accelerate CNN Training. Retrieved from, https://arXiv:1807.01702v2 (2018).
24. Kingma, D. P. & Lei, B. J. Adam: A Method For Stochastic Optimization. In _proceedings at_ ICLR arXiv:1412.6980v9 (2015).
25. Subramanian, V. Deep learning with PyTorch: a practical approach to building neural network models using PyTorch. Birmingham,
_Packt Publishing_ (2018).
26. [https://discuss.pytorch.org/t/weighted-pixelwise-nllloss2d/7766. [Accessed 23 09 2019].](https://discuss.pytorch.org/t/weighted-pixelwise-nllloss2d/7766)
27. Johnson, J. M. & Khoshgoftaar, T. M. Survey on deep learning with class imbalance. _Journal of Big Data_, 6 [(27), https://doi.](https://doi.org/10.1186/s40537-019-0192-5)
[org/10.1186/s40537-019-0192-5 (2019).](https://doi.org/10.1186/s40537-019-0192-5)
[28. NVIDIA QUADRO RTX 8000 datasheet [online]. Available, https://www.nvidia.com/en-us/design-visualization/quadro/rtx-8000/](https://www.nvidia.com/en-us/design-visualization/quadro/rtx-8000/)
[Accessed 17 09 2019].
29. Zamani, M., Seifeddine, S. & Azuzuderourei, M. The Role of Sr on Microstructure Formation and Mechanical Properties of Al-Si
Cu-Mg Cast Alloy. _In Light Metals_ 2013, 297–302 (2013).
Acknowledgements
DESY is acknowledged for the provision of synchrotron facilities at the beamline P05.
Author contributions
T.Str., K.B., E.B. and G.R. conceived and designed the project, analysed and interpreted the results and wrote the
manuscript. T.Str. implemented the CNN methododology. K.B. and G.R. conceived and planned the tomographic
experiments. K.B. did the 3D data preparation and characterization. K.B. and F.W. acquired the synchrotron
tomography data. T.Ste. and H.G. were responsible for the material production. All authors reviewed the
manuscript.
Competing interests
The authors declare no competing interests.
Additional information
Supplementary information [is available for this paper at https://doi.org/10.1038/s41598-019-56008-7.](https://doi.org/10.1038/s41598-019-56008-7)
Correspondence and requests for materials should be addressed to T.S.
Reprints and permissions information [is available at www.nature.com/reprints.](http://www.nature.com/reprints)
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and
institutional affiliations.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International
License, which permits use, sharing, adaptation, distribution and reproduction in any medium or
format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this
article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the
material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the
[copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/)
© The Author(s) 2019
섹션 본문
섹션 본문이 없습니다.
참고문헌 27건
- The Role of Sr on Microstructure Formation and Mechanical Properties of Al-Si-Cu-Mg Cast Alloy The minerals, metals & materials series · Springer International Publishing · 2016 10.1007/978-3-319-65136-1_51
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Advances in synchrotron radiation microtomography Scripta Materialia · Elsevier BV · 2006 10.1016/j.scriptamat.2006.02.012
- Three-dimensional rigid multiphase networks providing high-temperature strength to cast AlSi10Cu5Ni1-2 piston alloys Acta Materialia · Elsevier BV · 2011 10.1016/j.actamat.2011.07.006
- The Effect of the Connectivity of Rigid Phases on Strength of AlSi Alloys Advanced Engineering Materials · Wiley · 2011 10.1002/adem.201000292
- Quantitative X-ray tomography International Materials Reviews · Taylor & Francis · 2013 10.1179/1743280413y.0000000023
- Euler Number and Connectivity Indexes of a Three Dimensional Digital Picture Forma · Terrapub · 2002
- 3D connectivity of eutectic Si as a key property defining strength of Al–Si alloys Computational Materials Science · Elsevier BV · 2016 10.1016/j.commatsci.2016.04.019
- Micro-CT at the imaging beamline P05 at PETRA III AIP conference proceedings · American Institute of Physics · 2016 10.1063/1.4952858
- Advanced Steel Microstructural Classification by Deep Learning Methods Scientific Reports · Nature Portfolio · 2018 10.1038/s41598-018-20037-5
- Influence of 3D connectivity of rigid phases on damage evolution during tensile deformation of an AlSi12Cu4Ni2 piston alloy Materials Science and Engineering A · Elsevier BV · 2017 10.1016/j.msea.2017.10.035
- Content Based Image Retrieval by Using Color Descriptor and Discrete Wavelet Transform Journal of Medical Systems · Springer Science+Business Media · 2018 10.1007/s10916-017-0880-7
- Advanced microstructure classification by data mining methods Computational Materials Science · Elsevier BV · 2018 10.1016/j.commatsci.2018.03.004
- Learning Spectral-Spatial-Temporal Features via a Recurrent Convolutional Neural Network for Change Detection in Multispectral Imagery IEEE Transactions on Geoscience and Remote Sensing · Institute of Electrical and Electronics Engineers · 2018 10.1109/tgrs.2018.2863224
- Optimized Segmentation of the 3D Microstructure in Cast Al-Si Piston Alloys Practical Metallography · De Gruyter · 2018 10.3139/147.110509
- Automated correlative segmentation of large Transmission X-ray Microscopy (TXM) tomograms using deep learning Materials Characterization · Elsevier BV · 2018 10.1016/j.matchar.2018.05.053
- Recent progress in semantic image segmentation Artificial Intelligence Review · Springer Science+Business Media · 2018 10.1007/s10462-018-9641-3
- Revealing the Effect of Local Connectivity of Rigid Phases during Deformation at High Temperature of Cast AlSi12Cu4Ni(2,3)Mg Alloys Materials · Multidisciplinary Digital Publishing Institute · 2018 10.3390/ma11081300
- Synchrotron Big Data Science Small · Wiley · 2018 10.1002/smll.201802291
- Survey on deep learning with class imbalance Journal Of Big Data · Springer Science+Business Media · 2019 10.1186/s40537-019-0192-5
- Deep learning discrimination of quartz and resin in optical microscopy images of minerals Minerals Engineering · Elsevier BV · 2019 10.1016/j.mineng.2019.04.032
- ColorNet: Investigating the Importance of Color Spaces for Image Classification Lecture notes in computer science · Springer Science+Business Media · 2019 10.1007/978-3-030-20870-7_36
- A gentle introduction to deep learning in medical image processing Zeitschrift für Medizinische Physik · Elsevier BV · 2019 10.1016/j.zemedi.2018.12.003
- (제목 없음) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2021 10.4230/lipics.cp.2021.42
- Advanced Steel Microstructure Classification by Deep Learning Methods Max Planck Digital Library · 2018
- Medical Image Analysis using Convolutional Neural Networks: A Review Journal of Medical Systems · Springer Science+Business Media · 2018 10.1007/s10916-018-1088-1
- Recent progress in semantic image segmentation Artificial Intelligence Review · Springer Science+Business Media · 2018 10.1007/s10462-018-9641-3