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

A reusable neural network pipeline for unidirectional fiber segmentation

간접 관련 산업용 섬유 · (10) 아라미드 (9) 타이어코드(17) 스펀본드 부직포

기본 정보

저자
  1. Alexandre Fioravante de Siqueira — Berkeley Institute for Data Science, University of California, Berkeley, USA|||Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, USA
  2. Daniela Ushizima — Berkeley Institute for Data Science, University of California, Berkeley, USA|||Bakar Computational Health Sciences Institute, University of California, San Francisco, USA|||Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, USA
  3. Stéfan van der Walt — Berkeley Institute for Data Science, University of California, Berkeley, USA
DOI
10.1038/s41597-022-01119-6
저널
Scientific Data
발행년도
2022
발행기관
Nature Portfolio
피인용수
9
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41597-022-01119-6
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4210430407

평가 내용

관련도
간접 관련
사업분야
산업용 섬유 · (10) 아라미드
부 분야
(9) 타이어코드, (17) 스펀본드 부직포
R&D 측면
분석·모델링
확신도
0.80
근거 용어
fiber segmentation, X-ray computed tomography, convolutional neural networks, microstructure, unidirectional fiber
판단 근거
본 논문은 세라믹 복합재 내 섬유(fiber)를 X-ray CT 영상에서 자동으로 검출 및 분할(segmentation)하는 딥러닝 파이프라인을 다룹니다. 이는 코오롱인더스트리의 아라미드(10)나 타이어코드(9) 등 섬유 보강재의 미세구조 분석 및 품질 관리 공정에 응용 가능한 기술입니다.
R&D 활용 포인트
아라미드, 타이어코드 등 고기능성 섬유 제품의 제조 공정 중 미세구조(microstructure)를 비파괴적으로 분석하고, 섬유의 배열 상태나 분포를 자동화된 AI 모델로 정밀하게 평가하는 데 활용할 수 있습니다.
평가 입력
본문 47,437자 중 30,032자 발췌

초록

Abstract Fiber-reinforced ceramic-matrix composites are advanced, temperature resistant materials with applications in aerospace engineering. Their analysis involves the detection and separation of fibers, embedded in a fiber bed, from an imaged sample. Currently, this is mostly done using semi-supervised techniques. Here, we present an open, automated computational pipeline to detect fibers from a tomographically reconstructed X-ray volume. We apply our pipeline to a non-trivial dataset by Larson et al . To separate the fibers in these samples, we tested four different architectures of convolutional neural networks. When comparing our neural network approach to a semi-supervised one, we obtained Dice and Matthews coefficients reaching up to 98%, showing that these automated approaches can match human-supervised methods, in some cases separating fibers that human-curated algorithms could not find. The software written for this project is open source, released under a permissive license, and can be freely adapted and re-used in other domains.

본문 47,437자

본문 펼치기
## OPEN ### Analysis # A reusable neural network pipeline for unidirectional fiber segmentation [Alexandre Fioravante de Siqueira](http://orcid.org/0000-0003-1320-4347) <sup>1,2</sup> <sup>✉</sup> [, Daniela M. Ushizima](http://orcid.org/0000-0002-7363-9468) <sup>1,2,3</sup> & Stéfan J. van der Walt <sup>1</sup> Fiber-reinforced ceramic-matrix composites are advanced, temperature resistant materials with applications in aerospace engineering. Their analysis involves the detection and separation of fibers, embedded in a fiber bed, from an imaged sample. Currently, this is mostly done using semi-supervised techniques. Here, we present an open, automated computational pipeline to detect fibers from a tomographically reconstructed X-ray volume. We apply our pipeline to a non-trivial dataset by Larson _et al_ . To separate the fibers in these samples, we tested four different architectures of convolutional neural networks. When comparing our neural network approach to a semi-supervised one, we obtained Dice and Matthews coefficients reaching up to 98%, showing that these automated approaches can match human-supervised methods, in some cases separating fibers that human-curated algorithms could not find. The software written for this project is open source, released under a permissive license, and can be freely adapted and re-used in other domains. Introduction Fiber-reinforced ceramic-matrix composites are advanced materials used in aerospace gas-turbine engines <sup>1,2</sup> and nuclear fusion <sup>3</sup>, due to their resistance to temperatures 100–200 °C higher than alloys used in the same applications. Larson _et al_ . investigated new manufacturing processes for curing preceramic polymer into unidirectional fiber beds, studying the microstructure evolution during matrix impregnation with the aim of reinforcing ceramic-matrix composites <sup>4,5</sup> . They used X-ray computed tomography (CT) to characterize the three-dimensional microstructure of their composites non-destructively, studying their evolution _in-situ_ while processing the materials at high temperatures <sup>4</sup> and describing overall fiber bed properties and microstructures of unidirectional composites <sup>5</sup> . The X-ray CT images acquired from these fiber beds are available at Materials Data Facility <sup>6</sup> . Larson _et al_ .’s fiber beds have widths of approximately 1.5 _mm_, containing 5000–6200 fibers per stack. Each fiber has an average radius of 6.4 ± 0.9 _μm_, with diameters ranging from 13 to 20 pixels in the micrographs <sup>5</sup> . They present semi-supervised techniques to separate the fibers within the fiber beds; their segmentation is available for five samples <sup>7</sup> . We were curious to see whether their results could be improved using different techniques. In this study we separate fibers in _ex-situ_ X-ray CT fiber beds of nine samples from Larson _et al_ . Our paper makes the following contributions: - It annotates, explains, and expands Larson _et al_ .’s dataset <sup>7</sup> to facilitate reproducible research and benchmarking. - It provides open source tools to analyze such datasets, so that researchers may compare their results with ours and one another’s. - It shows that automated analysis can perform similarly to or better than human steered fiber segmentations. The samples we used in this study correspond to two general states: wet — obtained after pressure removal — and cured. These samples were acquired using microtomographic instruments from the Advanced Light Source at Lawrence Berkeley National Laboratory operated in a low-flux, two-bunch mode <sup>5</sup> . We used their 1Berkeley Institute for Data Science, University of California, Berkeley, 94720, USA. 2Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, 94720, USA. <sup>3</sup> Bakar Computational Health Sciences Institute, University of California, San Francisco, 94143, USA. <sup>✉</sup> [e-mail: alex.desiqueira@igdore.org](mailto:alex.desiqueira@igdore.org) Fig. 1 Slice number 1000 from the sample _“232p3 wet”_, provided in Larson _et al_ .’s dataset <sup>7</sup> . The whole sample contains 2160 slices. This slice represents the structure of the samples we processed: they contain the fiber bed (large circular structure) and the fibers within it (small round elements). reconstructions obtained without phase retrieval; Larson _et al_ . provide segmentations for five of these samples <sup>7</sup>, which we compare to our results. To separate the fibers in these samples, we tested four different fully convolutional neural networks (CNN), algorithms from computer vision and deep learning. When comparing our neural network approach to Larson _et al_ .’s results, we obtained Dice <sup>8</sup> and Matthews <sup>9</sup> coefficients greater than 92.28 ± 9.65%, reaching up to 98.42 ± 0.03%, showing that the network results are close to the human-supervised ones in these fiber beds, in some cases separating fibers that the algorithms created by Larson _et al_ . <sup>5</sup> could not find. All software and data generated in this study are available for download, along with instructions for their use. The code is open source, released under a permissive software license, and can be adapted easily for other domains. Results Larson _et al_ . provide segmentations for their fibers (Fig. 1) in five of the wet and cured samples, obtained using the following pipeline <sup>5</sup> : 1. Fiber detection using the circular Hough transform <sup>10,11</sup> ; 2. Correction of improperly identified pixels using filters based on connected region size and pixel value, and by comparisons using ten slices above and below the slice of interest; 3. Separation of fibers using the watershed algorithm <sup>12</sup> . Their paper gives a high-level overview of these steps, but provides no details on parameters used, nor the source code for computing their segmentation. We tried different approaches to reproduce their results, focusing on separating the fibers in the fiber bed samples. Our first approach was to create a classic, unsupervised image processing pipeline. We used histogram equalization <sup>13</sup>, Chambolle’s total variation denoising <sup>14,15</sup>, multi-Otsu threshold <sup>16,17</sup>, and the WUSEM algorithm <sup>18</sup> to separate each single fiber. The result is a labeled image containing the separated fibers (Fig. 2). The pipeline had limitations when processing fibers on the edges of fiber beds, where its labels differed from those produced by Larson _et al_ . Restricting the segmentation region to the center of beds gives satisfactory results (Fig. 2(e)), but reduces the total number of detected fibers. To obtain more robust results, we evaluated four fully convolutional neural network architectures: Tiramisu <sup>19</sup> and U-Net <sup>20</sup>, as well as their three-dimensional counterparts, 3D Tiramisu and 3D U-Net <sup>21</sup> . We also investigated whether three-dimensional networks generate better segmentation results, leveraging the structure of the material. Fully convolutional neural networks (CNN) for fiber detection. We implemented four architectures of fully convolutional neural networks (CNNs) — Tiramisu, U-Net, 3D Tiramisu, and 3D U-Net — to reproduce the results provided by Larson _et al_ . Labeled data, in our case, consists of fibers within fiber beds. To train the neural networks to recognize these fibers, we used slices from two different samples: _“232p3 wet”_ and _“232p3_ _cured”_, registered according to the wet sample. Larson _et al_ . provided the fiber segmentation for these samples <sup>7</sup>, which we used as labels in the training. The training and validation datasets contained 250 and 50 images from Fig. 2 Rendering fibers detected in the limited region of interest by the classic pipeline. We illustrate the classic image processing pipeline using Fig. 1 as the input image. This solution had limitations when processing fibers on the edges of fiber beds. (a) Histogram equalization and TV Chambolle’s filtering (parameter: weight = 0.3). (b) Multi Otsu’s resulting regions (parameter: `classes` = `4` ). Fibers are located within the fourth region (in yellow). (c) Binary image obtained considering region four in ( b ) as the region of interest, and the remaining regions as the background. ( d ) the processed region from ( c ), as shown in Fig. 1. ( e ) Regions resulting from the application of WUSEM on the region shown in ( d ) (parameters: `initial_radius` = `0,` `delta_radius` = `2, watershed_line` = `True` ). Colormaps: ( a, c, d ) `gray`, ( b ) `viridis`, ( e ) `nipy_` <u>`spectral`</u> . Fig. 3 Accuracy (a) and loss (b) through time for each training epoch. We attribute the subtle loss increase or accuracy decrease on the start of each epoch to the data augmentation process. each sample, respectively, in a total of 600 images. Each image from the original samples have width and height size of 2560 × 2560 pixels. For all networks, we used a learning rate of 1 <sup>−4</sup>, and binary cross entropy <sup>22</sup> as the loss function. During training, the networks reached accuracy higher than 0.9 and loss lower than 0.1 on the first epoch. Two-dimensional U-Net is the exception, presenting loss of 0.23 at the end of the first epoch. Despite that, 2D U-Net reaches the lowest loss between the four architectures at the end of its training. 2D U-Net is also the fastest network to finish its training (7 h, 43 min), followed by Tiramisu (13 h, 10 min), 3D U-Net (24 h, 16 min) and 3D Tiramisu (95 h, 49 min, Fig. 3). Fig. 4 Accuracy vs. loss on the first epoch. Accuracy surpasses 0.9 and loss is lower than 0.1 for all networks during the first epoch, except for 2D U-Net (loss of 0.23). Validation accuracy and validation loss on the first epoch are represented by diamonds. Fig. 5 Mean and standard deviation of prediction times for each sample. As with processing, during training 2D U-Net and 2D Tiramisu were the fastest architectures to process a sample in one hour, on average. 3D Tiramisu, being the slowest, takes on average more than a day to process one sample. Examining convergence behavior on the first epoch, the 2D U-Net does not progress as smoothly as the other networks (Fig. 4). However, this does not impair U-Net’s accuracy (0.977 after one epoch). Accuracy and loss for the validation dataset also improve significantly: Tiramisu had validation loss vs. validation accuracy ratio of 0.034 while U-Net had 0.048, and both 3D architectures had ratios of 0.043. The large size of the training set and the similarities between slices in the input data are responsible for these high accuracies and low losses. We used the trained networks to predict fiber labelings for twelve different datasets in total. These datasets were made available by Larson _et al_ . <sup>7</sup>, and we keep the same file identifiers for fast cross-reference: - “232p1” : wet - “232p3” : wet, cured, cured registered - “235p1” : wet - “235p4” : wet, cured, cured registered - “244p1” : wet, cured, cured registered - “245p1” : wet Here, the first three numeric characters correspond to a sample, and the last character correspond to different extrinsic factors, e.g. deformation. Despite being samples from similar materials, the reconstructed files presented several differences, for example regarding amount of ringing artifacts, intensity variation, noise, therefore they are considered as different samples in this paper. We calculated the average prediction time for each sample (Fig. 5). As with the training time results, 2D U-Net and 2D Tiramisu are the fastest architectures to process a sample, while 3D Tiramisu is the slowest. Fig. 6 Receiver operating characteristic (ROC) and area under curve (AUC) obtained from the comparison between prediction and gold standard. We consider Larson _et al_ .’s segmentation <sup>7</sup> as the gold standard in this case. ROC curves were calculated for all slices in each dataset; their mean areas and standard deviation intervals are presented. AUC is larger than 98% in all comparisons. Evaluation of our results and comparison with Larson _et al_ . (2019). After processing all samples, we compared our predictions with the results that Larson _et al_ . made available on their dataset <sup>7</sup> . They provided segmentations for five datasets from the twelve we processed: _“232p1 wet”_, _“232p3 cured”_, _“232p3 wet”_, _“244p1_ _cured”_, _“244p1 wet”_ . First, we compared our predictions to their results using receiver operating characteristic (ROC) curves and the area under curve (AUC, Fig. 6). AUC is larger than 98% for all comparisons; therefore, our predictions <u>Sample</u> <u>Tiramisu</u> <u>U-Net</u> <u>3D Tiramisu</u> <u>3D U-Net</u> <u>Dice</u> <u>Matthews</u> <u>Dice</u> <u>Matthews</u> <u>Dice</u> <u>Matthews</u> <u>Dice</u> <u>Matthews</u> <u>232p1, wet</u> <u>97.58 ± 2.29%</u> <u>96.55 ± 2.93%</u> <u>97.58 ± 2.20%</u> <u>96.60 ± 2.13%</u> <u>94.54 ± 6.73%</u> <u>92.28 ± 9.65%</u> <u>95.59 ± 0.74%</u> <u>93.71 ± 1.03%</u> <u>232p3, cured</u> <u>98.21 ± 0.04%</u> <u>97.47 ± 0.06%</u> <u>98.26 ± 0.04%</u> <u>97.53 ± 0.06%</u> <u>95.25 ± 6.36%</u> <u>93.39 ± 8.88%</u> <u>95.90 ± 1.00%</u> <u>94.21 ± 1.30%</u> <u>232p3, wet</u> <u>97.79 ± 2.15%</u> <u>96.87 ± 2.70%</u> <u>97.85 ± 2.12%</u> <u>96.98 ± 1.99%</u> <u>94.86 ± 6.90%</u> <u>92.76 ± 9.87%</u> <u>95.68 ± 1.97%</u> <u>93.92 ± 2.36%</u> <u>244p1, cured</u> <u>98.42 ± 0.03%</u> <u>97.83 ± 0.05%</u> <u>98.38 ± 0.04%</u> <u>97.78 ± 0.05%</u> <u>94.55 ± 7.74%</u> <u>92.67 ± 10.54%</u> <u>96.30 ± 1.25%</u> <u>94.97 ± 1.54%</u> <u>244p1, wet</u> <u>98.08 ± 2.53%</u> <u>97.39 ± 3.15%</u> <u>98.10 ± 2.39%</u> <u>97.43 ± 2.23%</u> <u>94.81 ± 7.81%</u> <u>92.97 ± 10.71%</u> <u>96.67 ± 1.00%</u> <u>95.45 ± 1.31%</u> Table 1. Dice and Matthews coefficients for each sample, obtained from the comparison of our neural network results and data from Larson _et al_ . <sup>7</sup> . U-Net yields the highest Dice and Matthews coefficients for three of five samples. Tiramisu had highest Dice/Matthews coefficients for one of the datasets. 3D Tiramisu had the lowest Dice and Matthews coefficients. are accurate when compared with the semi-supervised method suggested by Larson _et al_ . <sup>5</sup> . The 2D versions of U-Net and Tiramisu have similar results, performing better than 3D U-Net and 3D Tiramisu. We also examined the binary versions of our predictions and compared them with Larson _et al_ .’s results. For each slice or cube from the dataset, we used a hard threshold of 0.5; values above that are considered as fibers, while values below that are treated as background. We used Dice <sup>8</sup> and Matthews <sup>9</sup> correlation coefficients for our comparison (Table 1). The comparison using U-Net yields the highest Dice and Matthews coefficients for three of five datasets. Tiramisu had the highest Dice/Matthews coefficients for the _“244p1 cured”_ dataset, and both networks have similar results for _“232p1 wet”_ . 3D Tiramisu had the lowest Dice and Matthews coefficients in our comparison. Discussion The analysis of ceramic matrix composites (CMC) depends on the detection of its fibers. Semi-supervised algorithms, such as the one presented by Larson _et al_ . <sup>5</sup>, can perform that task satisfactorily. The description of that specific algorithm, however, lacks information on parameters necessary for replication. It also includes steps that involve manual curation. As such, it was not possible for us to reimplement it fully. Convolutional neural networks are being used successfully in the segmentation of different two- and three-dimensional scientific data <sup>23–28</sup>, including microtomographies. For example, fully convolutional neural networks were used to generate 3D tau inclusion density maps <sup>29</sup>, to segment the tidemark on osteochondral samples <sup>30</sup>, and 3D models of structures of temporal-bone anatomy <sup>31</sup> . Researchers have been studying fiber-analysis detection for a while, using a variety of tools. Approaches include tracking, statistical methods, and classical image processing <sup>32–39</sup> . To the best of our knowledge, there are two different deep learning approaches applied to this problem: - Yu _et al_ . <sup>40</sup> use an unsupervised learning approach based on Faster R-CNN <sup>41</sup> and a Kalman filter based tracking. They compare their results with Zhou _et al_ . <sup>36</sup>, reaching a Dice coefficient of up to 99%. - Miramontes _et al_ . <sup>42</sup> reach an average accuracy of 93.75% using a 2D LeNet-5 CNN <sup>43</sup> to detect fibers in a specific sample. Our study builds upon previous work by using similar material samples, but it expands tests to many more samples and it includes the implementation and training of four architectures: 2D U-Net, 2D Tiramisu, 3D U-Net, and 3D Tiramisu, used to process twelve large datasets (≈140 GB total), and comparing our results with the gold standard labeling provided by Larson _et al_ . <sup>7</sup> for five of them. We used ROC curves and their area under curve (AUC) to ensure the quality of our predictions, obtaining AUC larger than 98% (Fig. 6). Also, Dice and Matthews coefficients were used to compare our results with Larson _et al_ .’s solutions (Table 1), reaching coefficients of up to 98.42 ± 0.03%. When processing a defective slice (a slice with severe artifacts), the 3D architectures perform better than the 2D ones since they are able to leverage information about the structure of the material (Fig. 7). Based on the research presented, we recommend using the 2D U-Net to process microtomographies of CMC fibers. Both 2D networks lead to similar accuracy and loss values in our comparisons (Table 1); however, U-Nets converge more rapidly and are therefore computationally cheaper to train than Tiramisu. The 3D architectures, while performing better on defective samples (Fig. 7), do not generally achieve better results than the 2D architectures. In fact, the 3D architectures require more training to achieve comparable accuracy (Fig. 3) and are slower to predict (Fig. 5), therefore requiring considerable additional computation for marginal gains. Our CNN architectures perform at the level of human-curated accuracy — i.e., Larson _et al_ .’s semi-supervised approach —, sometimes even surpassing it. For instance, the 2D U-Net identified fibers that the Larson _et al_ . algorithm did not find (Fig. 8). Using labels predicted by the U-Net architecture, we render a three-dimensional visualization of the fibers (Fig. 9). Despite the absence of tracking, the U-Net segmentation clearly outlines fibers across the stack. In this paper, we presented neural networks for analyzing microtomographies of CMC fibers in fiber beds. The data used is publicly available <sup>7</sup> and was acquired in a real materials design experiment. Results are comparable to human-curated segmentations; yet, the networks can predict fiber locations in large stacks of microtomographies without any human intervention. Despite the encouraging results achieved in this study, there is Fig. 7 A defective slice on the sample _“232p3 wet”_ and the segmentation produced by each architecture. Segmentations computed by 2D architectures are impaired by defects in the input image, while 3D architectures leverage the sample structure to achieve better results. (a) Original defective image, (b) U-Net prediction, (c) 3D U-Net prediction, (d) Tiramisu prediction, (e) 3D Tiramisu prediction. Fig. 8 (a) Visual comparison between 2D U-Net and Larson _et al_ .’s results for sample _“232p3 wet”_ . We divided the slices into 100 tiles, and compared each tile from our U-Net prediction to Larson _et al_ .’s corresponding labels. The tiles presented here are the ones that return the lowest Matthews comparison coefficients. Labels present the Matthews coefficient for each tile. ( b, c ) tiles showing fibers found only by U-Net (in red), while some well-defined structures close to the borders are found only by Larson _et al_ . (in yellow). Tile size: 256 × 256. Colors set according to the comparison. Blue: true positives; red: false positives; yellow: false negatives; gray: true negatives. room for improvement. For example, the training time of especially the 3D networks turned out to be prohibitive in performing a full hyperparameter sweep. A search for optimal parameters of all networks used could be implemented in a future study. We also aim to investigate whether an ensemble of networks will perform better. Fig. 9 Fibers on the sample _“232p3 wet”_ processed using the U-Net architecture. As seen in the longitudinal cut, this pipeline identifies fibers across the sample height despite the absence of tracking. We would also like to explore how to best adjust thresholds at the last layer of the network. Here, we maintained a hard threshold of 0.5 that suited the sigmoid on the last layer of the implemented CNNs, but one could, e.g., use conditional random field networks instead. Methods Fully convolutional neural networks. We implemented four architectures — two dimensional U-Net <sup>20</sup> and Tiramisu <sup>19</sup>, and their three-dimensional versions — to attempt improving on the results provided by Larson _et al_ . We used supervised algorithms: they rely on labeled data to learn what are the regions of interest — in our case, fibers within microtomographies of fiber beds. All CNN algorithms were implemented using TensorFlow <sup>44</sup> and Keras <sup>45</sup> on a computer with two Intel Xeon Gold processors 6134 and two Nvidia GeForce RTX 2080 graphical processing units. Each GPU has 10 GB of RAM. To train the neural networks in recognizing fibers, we used slices from two different samples: _“232p3 wet”_ and _“232p3 cured”_, registered according to the wet sample. Larson _et al_ . provided the fiber segmentation for these samples, which we used as labels in the training. The training and validation procedures processed 350 and 149 images from each sample, respectively; a total of 998 images. Each image from the original samples have width and height size of 2560 × 2560 pixels. To feed the two-dimensional networks, we padded the images with 16 pixels, of value zero, in each dimension. Then, each image was cut into tiles of size 288 × 288, each 256 pixels, creating an overlap of 32 pixels. These overlapping regions, which are removed after processing, avoid artifacts on the borders of processed tiles. Therefore, each input slice generated 100 images with 288 × 288 pixels, in a total of 50,000 images for the training set, and 10,000 for the validation set. We needed to pre-process the training images differently to train the three-dimensional networks. We loaded the entire samples, each with size 2160 × 2560 × 2560, and padded their dimensions with 16 pixels of value zero. Then, we cut slices of size 64 × 64 × 64 voxels, each 32 pixels. Hence, the training and validation sets for the three-dimensional networks have 96,000 and 19,200 cubes, respectively. We implemented data augmentation, aiming for a network capable of processing samples with varying characteristics. We augmented the images on the training sets using rotations, horizontal and vertical flips, width and height shifts, zoom, and shear transforms. For that, we used Keras embedded tools within the `ImageDataGenerator` module to augment images for the two-dimensional networks. Since Keras’s `ImageDataGenerator` is not able to process three-dimensional input so far, we adapted the `ImageDataGenerator` module. The adapted version we used in this study is named `ChunkDataGenerator`, and is provided at the repository presented in the section Code Availability, along with the software produced in this study. To reduce the possibility of overfitting, we implemented dropout regularization <sup>46</sup> . We followed the suggestions in the original papers for U-Net architectures: 2D U-Net received a dropout rate of 50% in the last analysis layer and in the bottleneck, while 3D U-Net <sup>21</sup> did not receive any dropout. The Tiramisu structures received a dropout rate of 20%, as suggested by Jégou _et al_ . <sup>19</sup> . _Hyperparameters._ To better compare the networks, we maintain the same training hyperparameters when possible. Ideally, we would conduct a hyperparameter sweep — a search for the optimal hyperparameters for each network —, but training time turned out to be prohibitive, especially for the three-dimensional networks. Due to the large amount of training data and the similarities between training samples (2D tiles or 3D cubes), we decided to train all architectures for five epochs. The 2D architectures were trained with batches of four images, while the batches for 3D architectures had two cubes each. The learning rate used was 1 <sup>−4</sup>, and the loss function used was binary cross entropy <sup>22</sup> . We followed advice from the original papers with regards to optimization algorithms: we used the Adam optimizer <sup>47</sup> for U-Net architectures, and RMSProp <sup>48</sup> for Tiramisu. We implemented batch normalization <sup>49</sup> in all architectures, including the 2D U-Net. While Ronneberger _et al_ . <sup>20</sup> does not discuss batch normalization explicitly, it has been shown to improve convergence <sup>49</sup> . Evaluation. We used Dice <sup>8</sup> and Matthews <sup>9</sup> correlation coefficients (Eqs. 1, 2) to evaluate our results, assuming that the fiber detections from Larson _et al_ . <sup>7</sup> are a reasonable gold standard. <u>2</u> <u>×</u> _<u>TP</u>_ _Dice_ = 2 × _TP_ + _FP_ + FN (1) _<u>TP</u>_ <u>×</u> _<u>TN</u>_ <u>−</u> _<u>FP</u>_ <u>×</u> _<u>FN</u>_ _Matthews_ = ( _TP_ + _FN_ )( _TP_ + _FP_ )( _TN_ + _FN_ )( _TN_ + _<u>TP</u>_ <u>×</u> _<u>TN</u>_ <u>−</u> _<u>FP</u>_ <u>×</u> = ( _TP_ + _FN_ )( _TP_ + _FP_ )( _TN_ + _FN_ )( _TN_ + _FP_ ) (2) Dice and Matthews coefficients receive true positive (TP), false positive (FP), true negative (TN), and false negative (FN) pixels, which are determined as: - TP: pixels correctly labeled as being part of a fiber. - FP: pixels incorrectly labeled as being part of a fiber. - TN: pixels correctly labeled as background. - FN: pixels incorrectly labeled as background. TP, FP, TN, and FN are obtained when the prediction data is compared with the gold standard. Dataset. The dataset accompanying Larson _et al_ . <sup>5</sup> includes raw images, segmentation results, and a brief description of segmentation tools — the Hough transform, mathematical morphology, and statistical filters. To reproduce their work fully would have required further information, including metadata, parameters used and, ideally, code for analysis. To aid reproducing segmentation results, we contribute a set of twelve processed fiber beds, based on the Larson _et al_ . data. We also include the weights for each neural network architecture we implemented and trained. These weights can be used to process fibers of similar structure in other datasets. Visualization. Imaging CMC specimens at high-resolution, such as the Larson _et al_ . samples <sup>7</sup>, leads to large datasets — for example, each stack we used in this paper occupies around 14 GB after reconstruction, with the following exceptions: the registered versions of cured samples 232p3, 235p4 and 244p1, at 11 GB each, and the sample 232p3 wet at around 6 GB. Often, specialists need software to visualize results during data collection. Yet, it can be challenging to produce meaningful figures without advanced image analysis and/or computational platforms with generous amounts of memory. We wanted to show that interactive exploration of large datasets is viable on a modest laptop computer. We therefore used matplotlib <sup>50</sup> and ITK <sup>51</sup> (Fig. 9) to generate all figures in this paper, using a standard laptop with 16 GB of RAM. This means that a scientist could use, e.g., Jupyter Notebooks <sup>52</sup> to do quick, interactive probing of specimens during beamtime. Data availability This study uses neural networks to process fibers in fiber beds, using Larson _et al_ . datasets <sup>7</sup> . To be able to reproduce our study, it is necessary to download that data. We used twelve different datasets in total. We keep the same file identifiers Larson _et al_ . used in their study, for fast cross-reference: - “232p1”: - _wet:_ folder `data/Recons/Bunch2WoPR/rec20160324_055424_232p1_wet_1cm_` ``` cont_4097im_1500ms_17keV_13_a.h5 ``` - “232p3”: - _wet:_ folder `data/Recons/Bunch2WoPR/rec20160318_191511_232p3_2cm_` ``` cont__4097im_1500ms_ML17keV_6.h5 ``` - _cured:_ folder `data/Recons/Bunch2WoPR/rec20160323_093947_232p3_` ``` cured_1p5cm_cont_4097im_1500ms_17keV_10.h5 ``` - _cured registered:_ folder `data/Seg/Bunch2/rec20160323_093947_232p3_` ``` cured_1p5cm_cont_4097im_1500ms_17keV_10.h5/Registered/Bunch2WoPR ``` - “235p1”: - _wet:_ folder `data/Recons/Bunch2WoPR/rec20160324_123639_235p1_wet_0p7cm_` ``` cont_4097im_1500ms_17keV_14.h5 ``` - “235p4”: - _wet:_ folder `data/Recons/Bunch2WoPR/rec20160326_175540_235p4_wet_1p15cm_` ``` cont_4097im_1500ex_17keV_20.h5 ``` - _cured:_ folder `data/Recons/Bunch2WoPR/rec20160327_003824_235p4_` ``` cured_1p15cm_cont_4097im_1500ex_17keV_22.h5 ``` - _cured registered:_ folder `data/Seg/Bunch2/rec20160327_003824_235p4_` ``` cured_1p15cm_cont_4097im_1500ex_17keV_22.h5/Registered/Bunch2WoPR ``` - “244p1”: - _wet:_ folder `data/Recons/Bunch2WoPR/rec20160318_223946_244p1_1p5cm_` ``` cont__4097im_1500ms_ML17keV_7.h5 ``` - _cured:_ folder `data/Recons/Bunch2WoPR/rec20160320_160251_244p1_1p5cm_` ``` cont_4097im_1500ms_ML17keV_9.h5 ``` - _cured registered:_ folder `data/Seg/Bunch2/rec20160320_160251_244p1_1p5cm_` ``` cont_4097im_1500ms_ML17keV_9.h5/Registered/Bunch2WoPR ``` - “245p1”: - _wet:_ folder `rec20160327_160624_245p1_wet_1cm_cont_4097im_1500ex` ``` _17keV_23.h5 ``` The first three numeric characters correspond to a sample, and the last character correspond to different extrinsic factors, e.g. deformation. Despite being samples from similar materials, the reconstructed files presented several differences: different amount of ringing artifacts, intensity variation, noise, etc. The data generated in this study is available in Dryad <sup>53</sup>, under a CC0 license. CC0 dedicates the work to the public domain, to the extent allowed by law. Code availability [The software produced throughout this study is available at https://github.com/alexdesiqueira/fcn_microct/](https://github.com/alexdesiqueira/fcn_microct/) under the BSD-3 license. Received: 29 March 2021; Accepted: 8 December 2021; Published: xx xx xxxx References 1. Zok, F. W. Ceramic-matrix composites enable revolutionary gains in turbine engine efficiency. _American Ceramic Society Bulletin_ 95, 7 (2016). 2. Padture, N. P. Advanced structural ceramics in aerospace propulsion. _Nature Materials_ 15 [, 804–809, https://doi.org/10.1038/](https://doi.org/10.1038/nmat4687) [nmat4687 (2016).](https://doi.org/10.1038/nmat4687) 3. Koyanagi, T. _et al_ . Recent progress in the development of sic composites for nuclear fusion applications. _Journal of Nuclear Materials_ 511 [, 544–555, https://doi.org/10.1016/j.jnucmat.2018.06.017 (2018).](https://doi.org/10.1016/j.jnucmat.2018.06.017) 4. Larson, N. M. & Zok, F. W. _In-situ_ 3d visualization of composite microstructure during polymer-to-ceramic conversion. _Acta_ _Materialia_ 144 [, 579–589, https://doi.org/10.1016/j.actamat.2017.10.054 (2018).](https://doi.org/10.1016/j.actamat.2017.10.054) 5. Larson, N. M., Cuellar, C. & Zok, F. W. X-ray computed tomography of microstructure evolution during matrix impregnation and curing in unidirectional fiber beds. _Composites Part A: Applied Science and Manufacturing_ 117 [, 243–259, https://doi.org/10.1016/j.](https://doi.org/10.1016/j.compositesa.2018.11.021) [compositesa.2018.11.021 (2019).](https://doi.org/10.1016/j.compositesa.2018.11.021) 6. Blaiszik, B. _et al_ . The materials data facility: Data services to advance materials science research. _JOM_ 68 [, 2045–2052, https://doi.](https://doi.org/10.1007/s11837-016-2001-3) [org/10.1007/s11837-016-2001-3 (2016).](https://doi.org/10.1007/s11837-016-2001-3) 7. Larson, N. M. & Zok, F. W. _Ex-situ_ xct dataset for “x-ray computed tomography of microstructure evolution during matrix impregnation and curing in unidirectional fiber beds”. _Materials Data Facility_ [https://doi.org/10.18126/M2QM0Z (2019).](https://doi.org/10.18126/M2QM0Z) 8. Dice, L. R. Measures of the amount of ecologic association between species. _Ecology_ 26 [, 297–302, https://doi.org/10.2307/1932409](https://doi.org/10.2307/1932409) (1945). 9. Matthews, B. W. Comparison of the predicted and observed secondary structure of t4 phage lysozyme. _Biochimica et Biophysica Acta_ _(BBA) - Protein Structure_ 405 [, 442–451, https://doi.org/10.1016/0005-2795(75)90109-9 (1975).](https://doi.org/10.1016/0005-2795%0x2875%0x2990109-9) 10. Yuen, H. K., Princen, J., Dlingworth, J. & Kittler, J. A Comparative Study of Hough Transform Methods for Circle Finding. In _Procedings of the Alvey Vision Conference 1989_ [, 29.1–29.6, https://doi.org/10.5244/C.3.29 (Alvey Vision Club, Reading, 1989).](https://doi.org/10.5244/C.3.29) 11. Atherton, T. & Kerbyson, D. Size invariant circle detection. _Image and Vision Computing_ 17 [, 795–803, https://doi.org/10.1016/](https://doi.org/10.1016/S0262-8856%0x2898%0x2900160-7) [S0262-8856(98)00160-7 (1999).](https://doi.org/10.1016/S0262-8856%0x2898%0x2900160-7) 12. Meyer, F. Topographic distance and watershed lines. _Signal Processing_ 38 [, 113–125, https://doi.org/10.1016/0165-1684(94)90060-4](https://doi.org/10.1016/0165-1684%0x2894%0x2990060-4) (1994). 13. Woods, R. & Gonzalez, R. Real-time digital image enhancement. _Proceedings of the IEEE_ 69 [, 643–654, https://doi.org/10.1109/](https://doi.org/10.1109/PROC.1981.12031) [PROC.1981.12031 (1981).](https://doi.org/10.1109/PROC.1981.12031) 14. Rudin, L. I., Osher, S. & Fatemi, E. Nonlinear total variation based noise removal algorithms. _Physica D: Nonlinear Phenomena_ 60, [259–268, https://doi.org/10.1016/0167-2789(92)90242-F (1992).](https://doi.org/10.1016/0167-2789%0x2892%0x2990242-F) 15. Chambolle, A. An algorithm for total variation minimization and applications. _Journal of Mathematical Imaging and Vision_ 20, [89–97, https://doi.org/10.1023/B:JMIV.0000011325.36760.1e (2004).](https://doi.org/10.1023/B:JMIV.0000011325.36760.1e) 16. Otsu, N. A threshold selection method from gray-level histograms. _IEEE Transactions on Systems, Man and Cybernetics_ 9, 62–66, [https://doi.org/10.1109/TSMC.1979.4310076 (1979).](https://doi.org/10.1109/TSMC.1979.4310076) 17. Liao, P.-S., Chen, T.-S. & Chung, P.-C. A fast algorithm for multilevel thresholding. _Journal of Information Science and Engineering_ 17, 713–727 (2001). 18. de Siqueira, A. F., Nakasuga, W. M., Guedes, S. & Ratschbacher, L. Segmentation of nearly isotropic overlapped tracks in photomicrographs using successive erosions as watershed markers. _Microscopy Research and Technique_ 82 [, 1706–1719, https://doi.](https://doi.org/10.1002/jemt.23336) [org/10.1002/jemt.23336 (2019).](https://doi.org/10.1002/jemt.23336) 19. Jégou, S., Drozdzal, M., Vazquez, D., Romero, A. & Bengio, Y. The one hundred layers tiramisu: Fully convolutional densenets for semantic segmentation. _arXiv:1611.09326 [cs]_ ArXiv: 1611.09326 (2017). 20. Ronneberger, O., Fischer, P. & Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Navab, N., Hornegger, J., Wells, W. M. & Frangi, A. F. (eds.) _Medical Image Computing and Computer-Assisted Intervention_ - _MICCAI 2015_, Lecture Notes in Computer Science, 234–241 (Springer International Publishing, 2015). 21. çiçek, Ö., Abdulkadir, A., Lienkamp, S. S., Brox, T. & Ronneberger, O. 3d u-net: Learning dense volumetric segmentation from sparse annotation. _arXiv:1606.06650 [cs]_ ArXiv: 1606.06650 (2016). 22. Zhang, Z. & Sabuncu, M. R. Generalized cross entropy loss for training deep neural networks with noisy labels. In _Proceedings of the_ _32nd International Conference on Neural Information Processing Systems_, NIPS’18, 8792–8802 (Curran Associates Inc., 2018). 23. Banerjee, S. _et al_ . Semantic segmentation of microscopic neuroanatomical data by combining topological priors with encoder–decoder deep networks. _Nature Machine Intelligence_ 2 [, 585–594, https://doi.org/10.1038/s42256-020-0227-9 (2020).](https://doi.org/10.1038/s42256-020-0227-9) 24. Tokuoka, Y. _et al_ . 3d convolutional neural networks-based segmentation to acquire quantitative criteria of the nucleus during mouse embryogenesis. _npj Systems Biology and Applications_ 6 [, 1–12, https://doi.org/10.1038/s41540-020-00152-8 (2020).](https://doi.org/10.1038/s41540-020-00152-8) 25. Horwath, J. P., Zakharov, D. N., Mégret, R. & Stach, E. A. Understanding important features of deep learning models for segmentation of high-resolution transmission electron microscopy images. _npj Computational Materials_ 6 [, 1–9, https://doi.org/](https://doi.org/10.1038/s41524-020-00363-x) [10.1038/s41524-020-00363-x (2020).](https://doi.org/10.1038/s41524-020-00363-x) 26. Ma, B. _et al_ . Data augmentation in microscopic images for material data mining. _npj Computational Materials_ 6 [, 1–9, https://doi.org/](https://doi.org/10.1038/s41524-020-00392-6) [10.1038/s41524-020-00392-6 (2020).](https://doi.org/10.1038/s41524-020-00392-6) 27. Saito, Y. _et al_ . Deep-learning-based quality filtering of mechanically exfoliated 2d crystals. _npj Computational Materials_ 5, 1–6, [https://doi.org/10.1038/s41524-019-0262-4 (2019).](https://doi.org/10.1038/s41524-019-0262-4) 28. Li, W., Field, K. G. & Morgan, D. Automated defect analysis in electron microscopic images. _npj Computational Materials_ 4, 1–9, [https://doi.org/10.1038/s41524-018-0093-8 (2018).](https://doi.org/10.1038/s41524-018-0093-8) 29. Alegro, M. _et al_ . Deep learning for alzheimer’s disease: Mapping large-scale histological tau protein for neuroimaging biomarker validation. _bioRxiv_ [698902, https://doi.org/10.1101/698902 (2020).](https://doi.org/10.1101/698902) 30. Tiulpin, A., Finnilä, M., Lehenkari, P., Nieminen, H. J. & Saarakkala, S. Deep-learning for tidemark segmentation in human osteochondral tissues imaged with micro-computed tomography. In Blanc-Talon, J., Delmas, P., Philips, W., Popescu, D. & Scheunders, P. (eds.) _Advanced Concepts for Intelligent Vision Systems_ [, Lecture Notes in Computer Science, 131–138, https://doi.org/](https://doi.org/10.1007/978-3-030-40605-9_12) [10.1007/978-3-030-40605-9_12 (Springer International Publishing, 2020).](https://doi.org/10.1007/978-3-030-40605-9_12) 31. Nikan, S., Agrawal, S. K. & Ladak, H. M. Fully automated segmentation of the temporal bone from micro-ct using deep learning. In _Medical Imaging 2020: Biomedical Applications in Molecular, Structural, and Functional Imaging_, 11317 [, 113171U, https://](https://doi.org/10.1117/12.2549609) [doi.org/10.1117/12.2549609 (International Society for Optics and Photonics, 2020).](https://doi.org/10.1117/12.2549609) 32. Czabaj, M. W., Riccio, M. L. & Whitacre, W. W. Numerical reconstruction of graphite/epoxy composite microstructure based on sub-micron resolution x-ray computed tomography. _Composites Science and Technology_ 105 [, 174–182, https://doi.org/10.1016/j.](https://doi.org/10.1016/j.compscitech.2014.10.017) [compscitech.2014.10.017 (2014).](https://doi.org/10.1016/j.compscitech.2014.10.017) 33. Bricker, S., Simmons, J. P., Przybyla, C. & Hardie, R. Anomaly detection of microstructural defects in continuous fiber reinforced composites. In Bouman, C. A. & Sauer, K. D. (eds.) _Annals of the SPIE/IS&T Electronic Imaging_ [, 94010A, https://doi.org/](https://doi.org/10.1117/12.2079679) [10.1117/12.2079679 (2015).](https://doi.org/10.1117/12.2079679) 34. Sencu, R. M. _et al_ . Generation of micro-scale finite element models from synchrotron x-ray ct images for multidirectional carbon fibre reinforced composites. _Composites Part A: Applied Science and Manufacturing_ 91 [, 85–95, https://doi.org/10.1016/j.](https://doi.org/10.1016/j.compositesa.2016.09.010) [compositesa.2016.09.010 (2016).](https://doi.org/10.1016/j.compositesa.2016.09.010) 35. Ushizima, D. M. _et al_ . Ideal: Images across domains, experiments, algorithms and learning. _JOM_ 68 [, 2963–2972, https://doi.org/](https://doi.org/10.1007/s11837-016-2098-4) [10.1007/s11837-016-2098-4 (2016).](https://doi.org/10.1007/s11837-016-2098-4) 36. Zhou, Y., Yu, H., Simmons, J., Przybyla, C. P. & Wang, S. Large-scale fiber tracking through sparsely sampled image sequences of composite materials. _IEEE Transactions on Image Processing_ 25 [, 4931–4942, https://doi.org/10.1109/TIP.2016.2598640 (2016).](https://doi.org/10.1109/TIP.2016.2598640) 37. Emerson, M. J., Jespersen, K. M., Dahl, A. B., Conradsen, K. & Mikkelsen, L. P. Individual fibre segmentation from 3d x-ray computed tomography for characterising the fibre orientation in unidirectional composite materials. _Composites Part A: Applied_ _Science and Manufacturing_ 97 [, 83–92, https://doi.org/10.1016/j.compositesa.2016.12.028 (2017).](https://doi.org/10.1016/j.compositesa.2016.12.028) 38. Emerson, M. J., Dahl, V. A., Conradsen, K., Mikkelsen, L. P. & Dahl, A. B. Statistical validation of individual fibre segmentation from tomograms and microscopy. _Composites Science and Technology_ 160 [, 208–215, https://doi.org/10.1016/j.compscitech.2018.03.027](https://doi.org/10.1016/j.compscitech.2018.03.027) (2018). 39. Creveling, P. J., Whitacre, W. W. & Czabaj, M. W. A fiber-segmentation algorithm for composites imaged using x-ray microtomography: Development and validation. _Composites Part A: Applied Science and Manufacturing_ 126 [, 105606, https://](https://doi.org/10.1016/j.compositesa.2019.105606) [doi.org/10.1016/j.compositesa.2019.105606 (2019).](https://doi.org/10.1016/j.compositesa.2019.105606) 40. Yu, H. _et al_ . Unsupervised learning for large-scale fiber detection and tracking in microscopic material images. _arXiv:1805.10256_ _[cs]_ . ArXiv: 1805.10256 (2018). 41. Ren, S., He, K., Girshick, R. & Sun, J. Faster r-cnn: Towards real-time object detection with region proposal networks. _IEEE_ _transactions on pattern analysis and machine intelligence_ 39 [, 1137–1149, https://doi.org/10.1109/TPAMI.2016.2577031 (2017).](https://doi.org/10.1109/TPAMI.2016.2577031) 42. Miramontes, S., D. M.D. Y. _et al_ . (eds.) _Advances in Visual Computing_ [, Lecture Notes in Computer Science, 541–552, https://doi.](https://doi.org/10.1007/978-3-030-33723-0_44) [org/10.1007/978-3-030-33723-0_44 (Springer International Publishing, 2019).](https://doi.org/10.1007/978-3-030-33723-0_44) 43. Lecun, Y., Bottou, L., Bengio, Y. & Haffner, P. Gradient-based learning applied to document recognition. _Proceedings of the IEEE_ 86, [2278–2324, https://doi.org/10.1109/5.726791 (1998).](https://doi.org/10.1109/5.726791) 44. Abadi, M. _et al_ . Tensorflow: a system for large-scale machine learning. In _Proceedings of the 12th USENIX conference on Operating_ _Systems Design and Implementation_, OSDI’16, 265–283 (USENIX Association, 2016). 45. Chollet, F. _et al_ [. Keras. https://keras.io (2015).](https://keras.io) 46. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I. & Salakhutdinov, R. Dropout: a simple way to prevent neural networks from overfitting. _The Journal of Machine Learning Research_ 15, 1929–1958 (2014). 47. Kingma, D. P. & Ba, J. Adam: A method for stochastic optimization. _arXiv:1412.6980 [cs]_ . ArXiv: 1412.6980 (2017). 48. Dauphin, Y. N., de Vries, H. & Bengio, Y. Equilibrated adaptive learning rates for non-convex optimization. _arXiv:1502.04390 [cs]_ . ArXiv: 1502.04390 (2015). 49. Ioffe, S. & Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. _arXiv:1502.03167_ _[cs]_ . ArXiv: 1502.03167 (2015). 50. Hunter, J. D. Matplotlib: A 2d graphics environment. _Computing in Science & Engineering_ 9 [, 90–95, https://doi.org/10.1109/](https://doi.org/10.1109/MCSE.2007.55) [MCSE.2007.55 (2007).](https://doi.org/10.1109/MCSE.2007.55) 51. Yoo, T. S. _et al_ . Engineering and algorithm design for an image processing api: A technical report on itk - the insight toolkit. _Studies_ _in health technology and informatics_ 85, 586–592 (2002). 52. Kluyver, T. _et al_ . Jupyter notebooks – a publishing format for reproducible computational workflows. In Loizides, F. & Schmidt, B. (eds.) _Positioning and Power in Academic Publishing: Players, Agents and Agendas_, 87–90 (IOS Press, 2016). 53. Fioravante de Siqueira, A., Van Der Walt, S. & Ushizima, D. M. Data from: A reusable pipeline for large-scale fiber segmentation on unidirectional fiber beds using fully convolutional neural networks. _Dryad_ [https://doi.org/10.6078/D1069R (2021).](https://doi.org/10.6078/D1069R) Acknowledgements A.F.S. would like to thank Sebastian Berg, Ross Barnowski, Silvia Miramontes, Ralf Gommers, and Matt Rocklin for the discussions on fully convolutional networks, their structure and different frameworks. This research was funded in part by the Gordon and Betty Moore Foundation through Grant GBMF3834 and by the Alfred P. Sloan Foundation through Grant 2013-10-27 to the University of California, Berkeley. This work also received partial support from the Office of Science of the U.S. Department of Energy under the Contract No. DE-AC0205CH11231. Author contributions A.F.S. wrote the software and analyzed the data with input from D.M.U. and S.J.W. All authors designed the study, discussed the results, and contributed to the final manuscript. Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to A.F.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) 2022

섹션 본문 135문단 · 46,750자

(제목 없음)

1Fiber-reinforced ceramic-matrix composites are advanced, temperature resistant materials with applications in aerospace engineering. Their analysis involves the detection and separation of fibers, embedded in a fiber bed, from an imaged sample. Currently, this is mostly done using semi-supervised techniques. Here, we present an open, automated computational pipeline to detect fibers from a tomographically reconstructed X-ray volume. We apply our pipeline to a non-trivial dataset by Larson et al.To separate the fibers in these samples, we tested four different architectures of convolutional neural networks. When comparing our neural network approach to a semi-supervised one, we obtained Dice and Matthews coefficients reaching up to 98%, showing that these automated approaches can match human-supervised methods, in some cases separating fibers that human-curated algorithms could not find. The software written for this project is open source, released under a permissive license, and can be freely adapted and re-used in other domains.

Introduction

2Fiber-reinforced ceramic-matrix composites are advanced materials used in aerospace gas-turbine engines 1,2 and nuclear fusion 3 , due to their resistance to temperatures 100-200 °C higher than alloys used in the same applications.

3Larson et al. investigated new manufacturing processes for curing preceramic polymer into unidirectional fiber beds, studying the microstructure evolution during matrix impregnation with the aim of reinforcing ceramic-matrix composites 4,5 . They used X-ray computed tomography (CT) to characterize the three-dimensional microstructure of their composites non-destructively, studying their evolution in-situ while processing the materials at high temperatures 4 and describing overall fiber bed properties and microstructures of unidirectional composites 5 . The X-ray CT images acquired from these fiber beds are available at Materials Data Facility 6 .

4Larson et al. 's fiber beds have widths of approximately 1.5 mm, containing 5000-6200 fibers per stack. Each fiber has an average radius of 6.4 ± 0.9 μm, with diameters ranging from 13 to 20 pixels in the micrographs 5 . They present semi-supervised techniques to separate the fibers within the fiber beds; their segmentation is available for five samples 7 . We were curious to see whether their results could be improved using different techniques.

5In this study we separate fibers in ex-situ X-ray CT fiber beds of nine samples from Larson et al. Our paper makes the following contributions:

6• It annotates, explains, and expands Larson et al.'s dataset 7 to facilitate reproducible research and benchmarking.

7• It provides open source tools to analyze such datasets, so that researchers may compare their results with ours and one another's. • It shows that automated analysis can perform similarly to or better than human steered fiber segmentations.

8The samples we used in this study correspond to two general states: wet -obtained after pressure removaland cured. These samples were acquired using microtomographic instruments from the Advanced Light Source at Lawrence Berkeley National Laboratory operated in a low-flux, two-bunch mode 5 . We used their reconstructions obtained without phase retrieval; Larson et al. provide segmentations for five of these samples 7 , which we compare to our results.

9To separate the fibers in these samples, we tested four different fully convolutional neural networks (CNN), algorithms from computer vision and deep learning. When comparing our neural network approach to Larson et al. 's results, we obtained Dice 8 and Matthews 9 coefficients greater than 92.28 ± 9.65%, reaching up to 98.42 ± 0.03%, showing that the network results are close to the human-supervised ones in these fiber beds, in some cases separating fibers that the algorithms created by Larson et al. 5 could not find. All software and data generated in this study are available for download, along with instructions for their use. The code is open source, released under a permissive software license, and can be adapted easily for other domains.

Results

10Larson et al. provide segmentations for their fibers ( Fig. 1) in five of the wet and cured samples, obtained using the following pipeline 5 :

111. Fiber detection using the circular Hough transform 10,11 ; 2. Correction of improperly identified pixels using filters based on connected region size and pixel value, and by comparisons using ten slices above and below the slice of interest; 3. Separation of fibers using the watershed algorithm 12 .

12Their paper gives a high-level overview of these steps, but provides no details on parameters used, nor the source code for computing their segmentation. We tried different approaches to reproduce their results, focusing on separating the fibers in the fiber bed samples. Our first approach was to create a classic, unsupervised image processing pipeline. We used histogram equalization 13 , Chambolle's total variation denoising 14,15 , multi-Otsu threshold 16,17 , and the WUSEM algorithm 18 to separate each single fiber. The result is a labeled image containing the separated fibers (Fig. 2). The pipeline had limitations when processing fibers on the edges of fiber beds, where its labels differed from those produced by Larson et al. Restricting the segmentation region to the center of beds gives satisfactory results (Fig. 2(e)), but reduces the total number of detected fibers.

13To obtain more robust results, we evaluated four fully convolutional neural network architectures: Tiramisu 19 and U-Net 20 , as well as their three-dimensional counterparts, 3D Tiramisu and 3D U-Net 21 . We also investigated whether three-dimensional networks generate better segmentation results, leveraging the structure of the material.

14Fully convolutional neural networks (Cnn) for fiber detection. We implemented four architectures of fully convolutional neural networks (CNNs) -Tiramisu, U-Net, 3D Tiramisu, and 3D U-Net -to reproduce the results provided by Larson et al. Labeled data, in our case, consists of fibers within fiber beds. To train the neural networks to recognize these fibers, we used slices from two different samples: "232p3 wet" and "232p3 cured", registered according to the wet sample. Larson et al. provided the fiber segmentation for these samples 7 , which we used as labels in the training. The training and validation datasets contained 250 and 50 images from www.nature.com/scientificdata www.nature.com/scientificdata/ www.nature.com/scientificdata www.nature.com/scientificdata/ each sample, respectively, in a total of 600 images. Each image from the original samples have width and height size of 2560 × 2560 pixels.

15For all networks, we used a learning rate of 1 −4 , and binary cross entropy 22 as the loss function. During training, the networks reached accuracy higher than 0.9 and loss lower than 0.1 on the first epoch. Two-dimensional U-Net is the exception, presenting loss of 0.23 at the end of the first epoch. Despite that, 2D U-Net reaches the lowest loss between the four architectures at the end of its training. 2D U-Net is also the fastest network to finish its training (7 h, 43 min), followed by Tiramisu (13 h, 10 min), 3D U-Net (24 h, 16 min) and 3D Tiramisu (95 h, 49 min, Fig. 3). www.nature.com/scientificdata www.nature.com/scientificdata/ Examining convergence behavior on the first epoch, the 2D U-Net does not progress as smoothly as the other networks (Fig. 4). However, this does not impair U-Net's accuracy (0.977 after one epoch). Accuracy and loss for the validation dataset also improve significantly: Tiramisu had validation loss vs. validation accuracy ratio of 0.034 while U-Net had 0.048, and both 3D architectures had ratios of 0.043. The large size of the training set and the similarities between slices in the input data are responsible for these high accuracies and low losses.

16We used the trained networks to predict fiber labelings for twelve different datasets in total. These datasets were made available by Larson et al. 7 , and we keep the same file identifiers for fast cross-reference:

17• "232p1": wet • "232p3": wet, cured, cured registered • "235p1": wet • "235p4": wet, cured, cured registered • "244p1": wet, cured, cured registered • "245p1": wet

18Here, the first three numeric characters correspond to a sample, and the last character correspond to different extrinsic factors, e.g. deformation. Despite being samples from similar materials, the reconstructed files presented several differences, for example regarding amount of ringing artifacts, intensity variation, noise, therefore they are considered as different samples in this paper.

19We calculated the average prediction time for each sample (Fig. 5). As with the training time results, 2D U-Net and 2D Tiramisu are the fastest architectures to process a sample, while 3D Tiramisu is the slowest. Mean and standard deviation of prediction times for each sample. As with processing, during training 2D U-Net and 2D Tiramisu were the fastest architectures to process a sample in one hour, on average. 3D Tiramisu, being the slowest, takes on average more than a day to process one sample.

20www.nature.com/scientificdata www.nature.com/scientificdata/

Evaluation of our results and comparison with Larson et al. (2019).

21After processing all samples, we compared our predictions with the results that Larson et al. made available on their dataset 7 . They provided segmentations for five datasets from the twelve we processed: "232p1 wet", "232p3 cured", "232p3 wet", "244p1 cured", "244p1 wet".

22First, we compared our predictions to their results using receiver operating characteristic (ROC) curves and the area under curve (AUC, Fig. 6). AUC is larger than 98% for all comparisons; therefore, our predictions www.nature.com/scientificdata www.nature.com/scientificdata/ are accurate when compared with the semi-supervised method suggested by Larson et al. 5 . The 2D versions of U-Net and Tiramisu have similar results, performing better than 3D U-Net and 3D Tiramisu.

23We also examined the binary versions of our predictions and compared them with Larson et al. 's results. For each slice or cube from the dataset, we used a hard threshold of 0.5; values above that are considered as fibers, while values below that are treated as background. We used Dice 8 and Matthews 9 correlation coefficients for our comparison ( Table 1). The comparison using U-Net yields the highest Dice and Matthews coefficients for three of five datasets. Tiramisu had the highest Dice/Matthews coefficients for the "244p1 cured" dataset, and both networks have similar results for "232p1 wet". 3D Tiramisu had the lowest Dice and Matthews coefficients in our comparison.

Discussion

24The analysis of ceramic matrix composites (CMC) depends on the detection of its fibers. Semi-supervised algorithms, such as the one presented by Larson et al. 5 , can perform that task satisfactorily. The description of that specific algorithm, however, lacks information on parameters necessary for replication. It also includes steps that involve manual curation. As such, it was not possible for us to reimplement it fully.

25Convolutional neural networks are being used successfully in the segmentation of different two-and three-dimensional scientific data 23-28 , including microtomographies. For example, fully convolutional neural networks were used to generate 3D tau inclusion density maps 29 , to segment the tidemark on osteochondral samples 30 , and 3D models of structures of temporal-bone anatomy 31 .

26Researchers have been studying fiber-analysis detection for a while, using a variety of tools. Approaches include tracking, statistical methods, and classical image processing [32][33][34][35][36][37][38][39] . To the best of our knowledge, there are two different deep learning approaches applied to this problem:

27• Yu et al. 40 use an unsupervised learning approach based on Faster R-CNN 41 and a Kalman filter based tracking. They compare their results with Zhou et al. 36 , reaching a Dice coefficient of up to 99%. • Miramontes et al. 42 reach an average accuracy of 93.75% using a 2D LeNet-5 CNN 43 to detect fibers in a specific sample.

28Our study builds upon previous work by using similar material samples, but it expands tests to many more samples and it includes the implementation and training of four architectures: 2D U-Net, 2D Tiramisu, 3D U-Net, and 3D Tiramisu, used to process twelve large datasets (≈140 GB total), and comparing our results with the gold standard labeling provided by Larson et al. 7 for five of them. We used ROC curves and their area under curve (AUC) to ensure the quality of our predictions, obtaining AUC larger than 98% (Fig. 6). Also, Dice and Matthews coefficients were used to compare our results with Larson et al.'s solutions (Table 1), reaching coefficients of up to 98.42 ± 0.03%.

29When processing a defective slice (a slice with severe artifacts), the 3D architectures perform better than the 2D ones since they are able to leverage information about the structure of the material (Fig. 7).

30Based on the research presented, we recommend using the 2D U-Net to process microtomographies of CMC fibers. Both 2D networks lead to similar accuracy and loss values in our comparisons (Table 1); however, U-Nets converge more rapidly and are therefore computationally cheaper to train than Tiramisu. The 3D architectures, while performing better on defective samples (Fig. 7), do not generally achieve better results than the 2D architectures. In fact, the 3D architectures require more training to achieve comparable accuracy (Fig. 3) and are slower to predict (Fig. 5), therefore requiring considerable additional computation for marginal gains.

31Our CNN architectures perform at the level of human-curated accuracy -i.e., Larson et al. 's semi-supervised approach -, sometimes even surpassing it. For instance, the 2D U-Net identified fibers that the Larson et al. algorithm did not find (Fig. 8).

32Using labels predicted by the U-Net architecture, we render a three-dimensional visualization of the fibers (Fig. 9). Despite the absence of tracking, the U-Net segmentation clearly outlines fibers across the stack.

33In this paper, we presented neural networks for analyzing microtomographies of CMC fibers in fiber beds. The data used is publicly available 7 and was acquired in a real materials design experiment. Results are comparable to human-curated segmentations; yet, the networks can predict fiber locations in large stacks of microtomographies without any human intervention. Despite the encouraging results achieved in this study, there is www.nature.com/scientificdata www.nature.com/scientificdata/ www.nature.com/scientificdata www.nature.com/scientificdata/ room for improvement. For example, the training time of especially the 3D networks turned out to be prohibitive in performing a full hyperparameter sweep. A search for optimal parameters of all networks used could be implemented in a future study. We also aim to investigate whether an ensemble of networks will perform better. www.nature.com/scientificdata www.nature.com/scientificdata/ We would also like to explore how to best adjust thresholds at the last layer of the network. Here, we maintained a hard threshold of 0.5 that suited the sigmoid on the last layer of the implemented CNNs, but one could, e.g., use conditional random field networks instead.

Methods

34Fully convolutional neural networks. We implemented four architectures -two dimensional U-Net 20 and Tiramisu 19 , and their three-dimensional versions -to attempt improving on the results provided by Larson et al. We used supervised algorithms: they rely on labeled data to learn what are the regions of interest -in our case, fibers within microtomographies of fiber beds.

35All CNN algorithms were implemented using TensorFlow 44 and Keras 45 on a computer with two Intel Xeon Gold processors 6134 and two Nvidia GeForce RTX 2080 graphical processing units. Each GPU has 10 GB of RAM.

36To train the neural networks in recognizing fibers, we used slices from two different samples: "232p3 wet" and "232p3 cured", registered according to the wet sample. Larson et al. provided the fiber segmentation for these samples, which we used as labels in the training. The training and validation procedures processed 350 and 149 images from each sample, respectively; a total of 998 images. Each image from the original samples have width and height size of 2560 × 2560 pixels.

37To feed the two-dimensional networks, we padded the images with 16 pixels, of value zero, in each dimension. Then, each image was cut into tiles of size 288 × 288, each 256 pixels, creating an overlap of 32 pixels. These overlapping regions, which are removed after processing, avoid artifacts on the borders of processed tiles. Therefore, each input slice generated 100 images with 288 × 288 pixels, in a total of 50,000 images for the training set, and 10,000 for the validation set.

38We needed to pre-process the training images differently to train the three-dimensional networks. We loaded the entire samples, each with size 2160 × 2560 × 2560, and padded their dimensions with 16 pixels of value zero. Then, we cut slices of size 64 × 64 × 64 voxels, each 32 pixels. Hence, the training and validation sets for the three-dimensional networks have 96,000 and 19,200 cubes, respectively.

39We implemented data augmentation, aiming for a network capable of processing samples with varying characteristics. We augmented the images on the training sets using rotations, horizontal and vertical flips, width and height shifts, zoom, and shear transforms. For that, we used Keras embedded tools within the ImageDataGenerator module to augment images for the two-dimensional networks. Since Keras's ImageDataGenerator is not able to process three-dimensional input so far, we adapted the ImageDataGenerator module. The adapted version we used in this study is named ChunkDataGenerator, and is provided at the repository presented in the section Code Availability, along with the software produced in this study.

40To reduce the possibility of overfitting, we implemented dropout regularization 46 . We followed the suggestions in the original papers for U-Net architectures: 2D U-Net received a dropout rate of 50% in the last analysis layer and in the bottleneck, while 3D U-Net 21 did not receive any dropout. The Tiramisu structures received a dropout rate of 20%, as suggested by Jégou et al. 19 .

41Hyperparameters. To better compare the networks, we maintain the same training hyperparameters when possible. Ideally, we would conduct a hyperparameter sweep -a search for the optimal hyperparameters for each network -, but training time turned out to be prohibitive, especially for the three-dimensional networks. Due to the large amount of training data and the similarities between training samples (2D tiles or 3D cubes), we decided to train all architectures for five epochs. The 2D architectures were trained with batches of four images, Fig. 9 Fibers on the sample "232p3 wet" processed using the U-Net architecture. As seen in the longitudinal cut, this pipeline identifies fibers across the sample height despite the absence of tracking.

42www.nature.com/scientificdata www.nature.com/scientificdata/ while the batches for 3D architectures had two cubes each. The learning rate used was 1 −4 , and the loss function used was binary cross entropy 22 . We followed advice from the original papers with regards to optimization algorithms: we used the Adam optimizer 47

43Dice and Matthews coefficients receive true positive (TP), false positive (FP), true negative (TN), and false negative (FN) pixels, which are determined as:

44• TP: pixels correctly labeled as being part of a fiber.

45• FP: pixels incorrectly labeled as being part of a fiber.

46• TN: pixels correctly labeled as background.

47• FN: pixels incorrectly labeled as background.

48TP, FP, TN, and FN are obtained when the prediction data is compared with the gold standard.

49Dataset. The dataset accompanying Larson et al. 5 includes raw images, segmentation results, and a brief description of segmentation tools -the Hough transform, mathematical morphology, and statistical filters. To reproduce their work fully would have required further information, including metadata, parameters used and, ideally, code for analysis. To aid reproducing segmentation results, we contribute a set of twelve processed fiber beds, based on the Larson et al. data. We also include the weights for each neural network architecture we implemented and trained. These weights can be used to process fibers of similar structure in other datasets.

50Visualization. Imaging CMC specimens at high-resolution, such as the Larson et al. samples 7 , leads to large datasets -for example, each stack we used in this paper occupies around 14 GB after reconstruction, with the following exceptions: the registered versions of cured samples 232p3, 235p4 and 244p1, at 11 GB each, and the sample 232p3 wet at around 6 GB.

51Often, specialists need software to visualize results during data collection. Yet, it can be challenging to produce meaningful figures without advanced image analysis and/or computational platforms with generous amounts of memory. We wanted to show that interactive exploration of large datasets is viable on a modest laptop computer. We therefore used matplotlib 50 and ITK 51 (Fig. 9) to generate all figures in this paper, using a standard laptop with 16 GB of RAM. This means that a scientist could use, e.g., Jupyter Notebooks 52 to do quick, interactive probing of specimens during beamtime.

Data availability

52This study uses neural networks to process fibers in fiber beds, using Larson et al. datasets 7 . To be able to reproduce our study, it is necessary to download that data.

53We used twelve different datasets in total. We keep the same file identifiers Larson et al. used in their study, for fast cross-reference:

54• "232p1":

55-wet: folder data/Recons/Bunch2WoPR/rec20160324_055424_232p1_wet_1cm_ cont_4097im_1500ms_17keV_13_a.h5 • "232p3":

56-wet: folder data/Recons/Bunch2WoPR/rec20160318_191511_232p3_2cm_ cont__4097im_1500ms_ML17keV_6.h5

57-cured: folder data/Recons/Bunch2WoPR/rec20160323_093947_232p3_ cured_1p5cm_cont_4097im_1500ms_17keV_10.h5 -cured registered: folder data/Seg/Bunch2/rec20160323_093947_232p3_ cured_1p5cm_cont_4097im_1500ms_17keV_10.h5/Registered/Bunch2WoPR • "235p1":

58-wet: folder data/Recons/Bunch2WoPR/rec20160324_123639_235p1_wet_0p7cm_ cont_4097im_1500ms_17keV_14.h5 (2022) 9:32 | https://doi.org/10.1038/s41597-022-01119-6 www.nature.com/scientificdata www.nature.com/scientificdata/ • "235p4":

59-wet: folder data/Recons/Bunch2WoPR/rec20160326_175540_235p4_wet_1p15cm_ cont_4097im_1500ex_17keV_20.h5

60-cured: folder data/Recons/Bunch2WoPR/rec20160327_003824_235p4_ cured_1p15cm_cont_4097im_1500ex_17keV_22.h5 -cured registered: folder data/Seg/Bunch2/rec20160327_003824_235p4_ cured_1p15cm_cont_4097im_1500ex_17keV_22.h5/Registered/Bunch2WoPR

61• "244p1":

62-wet: folder data/Recons/Bunch2WoPR/rec20160318_223946_244p1_1p5cm_ cont__4097im_1500ms_ML17keV_7.h5

63-cured: folder data/Recons/Bunch2WoPR/rec20160320_160251_244p1_1p5cm_ cont_4097im_1500ms_ML17keV_9.h5 -cured registered: folder data/Seg/Bunch2/rec20160320_160251_244p1_1p5cm_ cont_4097im_1500ms_ML17keV_9.h5/Registered/Bunch2WoPR

64• "245p1":

65-wet: folder rec20160327_160624_245p1_wet_1cm_cont_4097im_1500ex _17keV_23.h5

66The first three numeric characters correspond to a sample, and the last character correspond to different extrinsic factors, e.g. deformation. Despite being samples from similar materials, the reconstructed files presented several differences: different amount of ringing artifacts, intensity variation, noise, etc.

67The data generated in this study is available in Dryad 53 , under a CC0 license. CC0 dedicates the work to the public domain, to the extent allowed by law.

Code availability

68The software produced throughout this study is available at https://github.com/alexdesiqueira/fcn_microct/ under the BSD-3 license.

Introduction

69Fiber-reinforced ceramic-matrix composites are advanced materials used in aerospace gas-turbine engines 1,2 and nuclear fusion 3 , due to their resistance to temperatures 100-200 °C higher than alloys used in the same applications.

70Larson et al. investigated new manufacturing processes for curing preceramic polymer into unidirectional fiber beds, studying the microstructure evolution during matrix impregnation with the aim of reinforcing ceramic-matrix composites 4,5 . They used X-ray computed tomography (CT) to characterize the three-dimensional microstructure of their composites non-destructively, studying their evolution in-situ while processing the materials at high temperatures 4 and describing overall fiber bed properties and microstructures of unidirectional composites 5 . The X-ray CT images acquired from these fiber beds are available at Materials Data Facility 6 .

71Larson et al. 's fiber beds have widths of approximately 1.5 mm, containing 5000-6200 fibers per stack. Each fiber has an average radius of 6.4 ± 0.9 μm, with diameters ranging from 13 to 20 pixels in the micrographs 5 . They present semi-supervised techniques to separate the fibers within the fiber beds; their segmentation is available for five samples 7 . We were curious to see whether their results could be improved using different techniques.

72In this study we separate fibers in ex-situ X-ray CT fiber beds of nine samples from Larson et al. Our paper makes the following contributions:

73• It annotates, explains, and expands Larson et al.'s dataset 7 to facilitate reproducible research and benchmarking.

74• It provides open source tools to analyze such datasets, so that researchers may compare their results with ours and one another's. • It shows that automated analysis can perform similarly to or better than human steered fiber segmentations.

75The samples we used in this study correspond to two general states: wet -obtained after pressure removaland cured. These samples were acquired using microtomographic instruments from the Advanced Light Source at Lawrence Berkeley National Laboratory operated in a low-flux, two-bunch mode 5 . We used their reconstructions obtained without phase retrieval; Larson et al. provide segmentations for five of these samples 7 , which we compare to our results.

76To separate the fibers in these samples, we tested four different fully convolutional neural networks (CNN), algorithms from computer vision and deep learning. When comparing our neural network approach to Larson et al. 's results, we obtained Dice 8 and Matthews 9 coefficients greater than 92.28 ± 9.65%, reaching up to 98.42 ± 0.03%, showing that the network results are close to the human-supervised ones in these fiber beds, in some cases separating fibers that the algorithms created by Larson et al. 5 could not find. All software and data generated in this study are available for download, along with instructions for their use. The code is open source, released under a permissive software license, and can be adapted easily for other domains.

Results

77Larson et al. provide segmentations for their fibers ( Fig. 1) in five of the wet and cured samples, obtained using the following pipeline 5 :

781. Fiber detection using the circular Hough transform 10,11 ; 2. Correction of improperly identified pixels using filters based on connected region size and pixel value, and by comparisons using ten slices above and below the slice of interest; 3. Separation of fibers using the watershed algorithm 12 .

79Their paper gives a high-level overview of these steps, but provides no details on parameters used, nor the source code for computing their segmentation. We tried different approaches to reproduce their results, focusing on separating the fibers in the fiber bed samples. Our first approach was to create a classic, unsupervised image processing pipeline. We used histogram equalization 13 , Chambolle's total variation denoising 14,15 , multi-Otsu threshold 16,17 , and the WUSEM algorithm 18 to separate each single fiber. The result is a labeled image containing the separated fibers (Fig. 2). The pipeline had limitations when processing fibers on the edges of fiber beds, where its labels differed from those produced by Larson et al. Restricting the segmentation region to the center of beds gives satisfactory results (Fig. 2(e)), but reduces the total number of detected fibers.

80To obtain more robust results, we evaluated four fully convolutional neural network architectures: Tiramisu 19 and U-Net 20 , as well as their three-dimensional counterparts, 3D Tiramisu and 3D U-Net 21 . We also investigated whether three-dimensional networks generate better segmentation results, leveraging the structure of the material.

81Fully convolutional neural networks (Cnn) for fiber detection. We implemented four architectures of fully convolutional neural networks (CNNs) -Tiramisu, U-Net, 3D Tiramisu, and 3D U-Net -to reproduce the results provided by Larson et al. Labeled data, in our case, consists of fibers within fiber beds. To train the neural networks to recognize these fibers, we used slices from two different samples: "232p3 wet" and "232p3 cured", registered according to the wet sample. Larson et al. provided the fiber segmentation for these samples 7 , which we used as labels in the training. The training and validation datasets contained 250 and 50 images from www.nature.com/scientificdata www.nature.com/scientificdata/ www.nature.com/scientificdata www.nature.com/scientificdata/ each sample, respectively, in a total of 600 images. Each image from the original samples have width and height size of 2560 × 2560 pixels.

82For all networks, we used a learning rate of 1 −4 , and binary cross entropy 22 as the loss function. During training, the networks reached accuracy higher than 0.9 and loss lower than 0.1 on the first epoch. Two-dimensional U-Net is the exception, presenting loss of 0.23 at the end of the first epoch. Despite that, 2D U-Net reaches the lowest loss between the four architectures at the end of its training. 2D U-Net is also the fastest network to finish its training (7 h, 43 min), followed by Tiramisu (13 h, 10 min), 3D U-Net (24 h, 16 min) and 3D Tiramisu (95 h, 49 min, Fig. 3). www.nature.com/scientificdata www.nature.com/scientificdata/ Examining convergence behavior on the first epoch, the 2D U-Net does not progress as smoothly as the other networks (Fig. 4). However, this does not impair U-Net's accuracy (0.977 after one epoch). Accuracy and loss for the validation dataset also improve significantly: Tiramisu had validation loss vs. validation accuracy ratio of 0.034 while U-Net had 0.048, and both 3D architectures had ratios of 0.043. The large size of the training set and the similarities between slices in the input data are responsible for these high accuracies and low losses.

83We used the trained networks to predict fiber labelings for twelve different datasets in total. These datasets were made available by Larson et al. 7 , and we keep the same file identifiers for fast cross-reference:

84• "232p1": wet • "232p3": wet, cured, cured registered • "235p1": wet • "235p4": wet, cured, cured registered • "244p1": wet, cured, cured registered • "245p1": wet

85Here, the first three numeric characters correspond to a sample, and the last character correspond to different extrinsic factors, e.g. deformation. Despite being samples from similar materials, the reconstructed files presented several differences, for example regarding amount of ringing artifacts, intensity variation, noise, therefore they are considered as different samples in this paper.

86We calculated the average prediction time for each sample (Fig. 5). As with the training time results, 2D U-Net and 2D Tiramisu are the fastest architectures to process a sample, while 3D Tiramisu is the slowest. Mean and standard deviation of prediction times for each sample. As with processing, during training 2D U-Net and 2D Tiramisu were the fastest architectures to process a sample in one hour, on average. 3D Tiramisu, being the slowest, takes on average more than a day to process one sample.

87www.nature.com/scientificdata www.nature.com/scientificdata/

Evaluation of our results and comparison with Larson et al. (2019).

88After processing all samples, we compared our predictions with the results that Larson et al. made available on their dataset 7 . They provided segmentations for five datasets from the twelve we processed: "232p1 wet", "232p3 cured", "232p3 wet", "244p1 cured", "244p1 wet".

89First, we compared our predictions to their results using receiver operating characteristic (ROC) curves and the area under curve (AUC, Fig. 6). AUC is larger than 98% for all comparisons; therefore, our predictions www.nature.com/scientificdata www.nature.com/scientificdata/ are accurate when compared with the semi-supervised method suggested by Larson et al. 5 . The 2D versions of U-Net and Tiramisu have similar results, performing better than 3D U-Net and 3D Tiramisu.

90We also examined the binary versions of our predictions and compared them with Larson et al. 's results. For each slice or cube from the dataset, we used a hard threshold of 0.5; values above that are considered as fibers, while values below that are treated as background. We used Dice 8 and Matthews 9 correlation coefficients for our comparison ( Table 1). The comparison using U-Net yields the highest Dice and Matthews coefficients for three of five datasets. Tiramisu had the highest Dice/Matthews coefficients for the "244p1 cured" dataset, and both networks have similar results for "232p1 wet". 3D Tiramisu had the lowest Dice and Matthews coefficients in our comparison.

Discussion

91The analysis of ceramic matrix composites (CMC) depends on the detection of its fibers. Semi-supervised algorithms, such as the one presented by Larson et al. 5 , can perform that task satisfactorily. The description of that specific algorithm, however, lacks information on parameters necessary for replication. It also includes steps that involve manual curation. As such, it was not possible for us to reimplement it fully.

92Convolutional neural networks are being used successfully in the segmentation of different two-and three-dimensional scientific data 23-28 , including microtomographies. For example, fully convolutional neural networks were used to generate 3D tau inclusion density maps 29 , to segment the tidemark on osteochondral samples 30 , and 3D models of structures of temporal-bone anatomy 31 .

93Researchers have been studying fiber-analysis detection for a while, using a variety of tools. Approaches include tracking, statistical methods, and classical image processing [32][33][34][35][36][37][38][39] . To the best of our knowledge, there are two different deep learning approaches applied to this problem:

94• Yu et al. 40 use an unsupervised learning approach based on Faster R-CNN 41 and a Kalman filter based tracking. They compare their results with Zhou et al. 36 , reaching a Dice coefficient of up to 99%. • Miramontes et al. 42 reach an average accuracy of 93.75% using a 2D LeNet-5 CNN 43 to detect fibers in a specific sample.

95Our study builds upon previous work by using similar material samples, but it expands tests to many more samples and it includes the implementation and training of four architectures: 2D U-Net, 2D Tiramisu, 3D U-Net, and 3D Tiramisu, used to process twelve large datasets (≈140 GB total), and comparing our results with the gold standard labeling provided by Larson et al. 7 for five of them. We used ROC curves and their area under curve (AUC) to ensure the quality of our predictions, obtaining AUC larger than 98% (Fig. 6). Also, Dice and Matthews coefficients were used to compare our results with Larson et al.'s solutions (Table 1), reaching coefficients of up to 98.42 ± 0.03%.

96When processing a defective slice (a slice with severe artifacts), the 3D architectures perform better than the 2D ones since they are able to leverage information about the structure of the material (Fig. 7).

97Based on the research presented, we recommend using the 2D U-Net to process microtomographies of CMC fibers. Both 2D networks lead to similar accuracy and loss values in our comparisons (Table 1); however, U-Nets converge more rapidly and are therefore computationally cheaper to train than Tiramisu. The 3D architectures, while performing better on defective samples (Fig. 7), do not generally achieve better results than the 2D architectures. In fact, the 3D architectures require more training to achieve comparable accuracy (Fig. 3) and are slower to predict (Fig. 5), therefore requiring considerable additional computation for marginal gains.

98Our CNN architectures perform at the level of human-curated accuracy -i.e., Larson et al. 's semi-supervised approach -, sometimes even surpassing it. For instance, the 2D U-Net identified fibers that the Larson et al. algorithm did not find (Fig. 8).

99Using labels predicted by the U-Net architecture, we render a three-dimensional visualization of the fibers (Fig. 9). Despite the absence of tracking, the U-Net segmentation clearly outlines fibers across the stack.

100In this paper, we presented neural networks for analyzing microtomographies of CMC fibers in fiber beds. The data used is publicly available 7 and was acquired in a real materials design experiment. Results are comparable to human-curated segmentations; yet, the networks can predict fiber locations in large stacks of microtomographies without any human intervention. Despite the encouraging results achieved in this study, there is www.nature.com/scientificdata www.nature.com/scientificdata/ www.nature.com/scientificdata www.nature.com/scientificdata/ room for improvement. For example, the training time of especially the 3D networks turned out to be prohibitive in performing a full hyperparameter sweep. A search for optimal parameters of all networks used could be implemented in a future study. We also aim to investigate whether an ensemble of networks will perform better. www.nature.com/scientificdata www.nature.com/scientificdata/ We would also like to explore how to best adjust thresholds at the last layer of the network. Here, we maintained a hard threshold of 0.5 that suited the sigmoid on the last layer of the implemented CNNs, but one could, e.g., use conditional random field networks instead.

Methods

101Fully convolutional neural networks. We implemented four architectures -two dimensional U-Net 20 and Tiramisu 19 , and their three-dimensional versions -to attempt improving on the results provided by Larson et al. We used supervised algorithms: they rely on labeled data to learn what are the regions of interest -in our case, fibers within microtomographies of fiber beds.

102All CNN algorithms were implemented using TensorFlow 44 and Keras 45 on a computer with two Intel Xeon Gold processors 6134 and two Nvidia GeForce RTX 2080 graphical processing units. Each GPU has 10 GB of RAM.

103To train the neural networks in recognizing fibers, we used slices from two different samples: "232p3 wet" and "232p3 cured", registered according to the wet sample. Larson et al. provided the fiber segmentation for these samples, which we used as labels in the training. The training and validation procedures processed 350 and 149 images from each sample, respectively; a total of 998 images. Each image from the original samples have width and height size of 2560 × 2560 pixels.

104To feed the two-dimensional networks, we padded the images with 16 pixels, of value zero, in each dimension. Then, each image was cut into tiles of size 288 × 288, each 256 pixels, creating an overlap of 32 pixels. These overlapping regions, which are removed after processing, avoid artifacts on the borders of processed tiles. Therefore, each input slice generated 100 images with 288 × 288 pixels, in a total of 50,000 images for the training set, and 10,000 for the validation set.

105We needed to pre-process the training images differently to train the three-dimensional networks. We loaded the entire samples, each with size 2160 × 2560 × 2560, and padded their dimensions with 16 pixels of value zero. Then, we cut slices of size 64 × 64 × 64 voxels, each 32 pixels. Hence, the training and validation sets for the three-dimensional networks have 96,000 and 19,200 cubes, respectively.

106We implemented data augmentation, aiming for a network capable of processing samples with varying characteristics. We augmented the images on the training sets using rotations, horizontal and vertical flips, width and height shifts, zoom, and shear transforms. For that, we used Keras embedded tools within the ImageDataGenerator module to augment images for the two-dimensional networks. Since Keras's ImageDataGenerator is not able to process three-dimensional input so far, we adapted the ImageDataGenerator module. The adapted version we used in this study is named ChunkDataGenerator, and is provided at the repository presented in the section Code Availability, along with the software produced in this study.

107To reduce the possibility of overfitting, we implemented dropout regularization 46 . We followed the suggestions in the original papers for U-Net architectures: 2D U-Net received a dropout rate of 50% in the last analysis layer and in the bottleneck, while 3D U-Net 21 did not receive any dropout. The Tiramisu structures received a dropout rate of 20%, as suggested by Jégou et al. 19 .

108Hyperparameters. To better compare the networks, we maintain the same training hyperparameters when possible. Ideally, we would conduct a hyperparameter sweep -a search for the optimal hyperparameters for each network -, but training time turned out to be prohibitive, especially for the three-dimensional networks. Due to the large amount of training data and the similarities between training samples (2D tiles or 3D cubes), we decided to train all architectures for five epochs. The 2D architectures were trained with batches of four images, Fig. 9 Fibers on the sample "232p3 wet" processed using the U-Net architecture. As seen in the longitudinal cut, this pipeline identifies fibers across the sample height despite the absence of tracking.

109www.nature.com/scientificdata www.nature.com/scientificdata/ while the batches for 3D architectures had two cubes each. The learning rate used was 1 −4 , and the loss function used was binary cross entropy 22 . We followed advice from the original papers with regards to optimization algorithms: we used the Adam optimizer 47

110Dice and Matthews coefficients receive true positive (TP), false positive (FP), true negative (TN), and false negative (FN) pixels, which are determined as:

111• TP: pixels correctly labeled as being part of a fiber.

112• FP: pixels incorrectly labeled as being part of a fiber.

113• TN: pixels correctly labeled as background.

114• FN: pixels incorrectly labeled as background.

115TP, FP, TN, and FN are obtained when the prediction data is compared with the gold standard.

116Dataset. The dataset accompanying Larson et al. 5 includes raw images, segmentation results, and a brief description of segmentation tools -the Hough transform, mathematical morphology, and statistical filters. To reproduce their work fully would have required further information, including metadata, parameters used and, ideally, code for analysis. To aid reproducing segmentation results, we contribute a set of twelve processed fiber beds, based on the Larson et al. data. We also include the weights for each neural network architecture we implemented and trained. These weights can be used to process fibers of similar structure in other datasets.

117Visualization. Imaging CMC specimens at high-resolution, such as the Larson et al. samples 7 , leads to large datasets -for example, each stack we used in this paper occupies around 14 GB after reconstruction, with the following exceptions: the registered versions of cured samples 232p3, 235p4 and 244p1, at 11 GB each, and the sample 232p3 wet at around 6 GB.

118Often, specialists need software to visualize results during data collection. Yet, it can be challenging to produce meaningful figures without advanced image analysis and/or computational platforms with generous amounts of memory. We wanted to show that interactive exploration of large datasets is viable on a modest laptop computer. We therefore used matplotlib 50 and ITK 51 (Fig. 9) to generate all figures in this paper, using a standard laptop with 16 GB of RAM. This means that a scientist could use, e.g., Jupyter Notebooks 52 to do quick, interactive probing of specimens during beamtime.

Data availability

119This study uses neural networks to process fibers in fiber beds, using Larson et al. datasets 7 . To be able to reproduce our study, it is necessary to download that data.

120We used twelve different datasets in total. We keep the same file identifiers Larson et al. used in their study, for fast cross-reference:

121• "232p1":

122-wet: folder data/Recons/Bunch2WoPR/rec20160324_055424_232p1_wet_1cm_ cont_4097im_1500ms_17keV_13_a.h5 • "232p3":

123-wet: folder data/Recons/Bunch2WoPR/rec20160318_191511_232p3_2cm_ cont__4097im_1500ms_ML17keV_6.h5

124-cured: folder data/Recons/Bunch2WoPR/rec20160323_093947_232p3_ cured_1p5cm_cont_4097im_1500ms_17keV_10.h5 -cured registered: folder data/Seg/Bunch2/rec20160323_093947_232p3_ cured_1p5cm_cont_4097im_1500ms_17keV_10.h5/Registered/Bunch2WoPR • "235p1":

125-wet: folder data/Recons/Bunch2WoPR/rec20160324_123639_235p1_wet_0p7cm_ cont_4097im_1500ms_17keV_14.h5 (2022) 9:32 | https://doi.org/10.1038/s41597-022-01119-6 www.nature.com/scientificdata www.nature.com/scientificdata/ • "235p4":

126-wet: folder data/Recons/Bunch2WoPR/rec20160326_175540_235p4_wet_1p15cm_ cont_4097im_1500ex_17keV_20.h5

127-cured: folder data/Recons/Bunch2WoPR/rec20160327_003824_235p4_ cured_1p15cm_cont_4097im_1500ex_17keV_22.h5 -cured registered: folder data/Seg/Bunch2/rec20160327_003824_235p4_ cured_1p15cm_cont_4097im_1500ex_17keV_22.h5/Registered/Bunch2WoPR

128• "244p1":

129-wet: folder data/Recons/Bunch2WoPR/rec20160318_223946_244p1_1p5cm_ cont__4097im_1500ms_ML17keV_7.h5

130-cured: folder data/Recons/Bunch2WoPR/rec20160320_160251_244p1_1p5cm_ cont_4097im_1500ms_ML17keV_9.h5 -cured registered: folder data/Seg/Bunch2/rec20160320_160251_244p1_1p5cm_ cont_4097im_1500ms_ML17keV_9.h5/Registered/Bunch2WoPR

131• "245p1":

132-wet: folder rec20160327_160624_245p1_wet_1cm_cont_4097im_1500ex _17keV_23.h5

133The first three numeric characters correspond to a sample, and the last character correspond to different extrinsic factors, e.g. deformation. Despite being samples from similar materials, the reconstructed files presented several differences: different amount of ringing artifacts, intensity variation, noise, etc.

134The data generated in this study is available in Dryad 53 , under a CC0 license. CC0 dedicates the work to the public domain, to the extent allowed by law.

Code availability

135The software produced throughout this study is available at https://github.com/alexdesiqueira/fcn_microct/ under the BSD-3 license.

참고문헌 43건

  1. Engineering and Algorithm Design for an Image Processing API: A Technical Report on ITK - the Insight Toolkit Studies in health technology and informatics · IOS Press · 2002 10.3233/978-1-60750-929-5-586
  2. 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
  3. Numerical reconstruction of graphite/epoxy composite microstructure based on sub-micron resolution X-ray computed tomography Composites Science and Technology · Elsevier BV · 2014 10.1016/j.compscitech.2014.10.017
  4. Measures of the Amount of Ecologic Association Between Species Ecology · Wiley · 1945 10.2307/1932409
  5. Matplotlib: A 2D Graphics Environment Computing in Science & Engineering · AIP Publishing · 2007 10.1109/mcse.2007.55
  6. Real-time digital image enhancement Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1981 10.1109/proc.1981.12031
  7. Topographic distance and watershed lines Signal Processing · Elsevier BV · 1994 10.1016/0165-1684(94)90060-4
  8. Size invariant circle detection Image and Vision Computing · Elsevier BV · 1999 10.1016/s0262-8856(98)00160-7
  9. Anomaly detection of microstructural defects in continuous fiber reinforced composites Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2015 10.1117/12.2079679
  10. Nonlinear total variation based noise removal algorithms Physica D Nonlinear Phenomena · Elsevier BV · 1992 10.1016/0167-2789(92)90242-f
  11. Comparison of the predicted and observed secondary structure of T4 phage lysozyme Biochimica et Biophysica Acta (BBA) - Proteins and Proteomics · Elsevier BV · 1975 10.1016/0005-2795(75)90109-9
  12. Gradient-based learning applied to document recognition Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1998 10.1109/5.726791
  13. A Threshold Selection Method from Gray-Level Histograms IEEE Transactions on Systems Man and Cybernetics · Institute of Electrical and Electronics Engineers · 1979 10.1109/tsmc.1979.4310076
  14. An Algorithm for Total Variation Minimization and Applications Journal of Mathematical Imaging and Vision · Springer Science+Business Media · 2004 10.1023/b:jmiv.0000011325.36760.1e
  15. A Comparative Study of Hough Transform Methods for Circle Finding 1989 10.5244/c.3.29
  16. 3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46723-8_49
  17. The Materials Data Facility: Data Services to Advance Materials Science Research JOM · Springer Science+Business Media · 2016 10.1007/s11837-016-2001-3
  18. Advanced structural ceramics in aerospace propulsion Nature Materials · Nature Portfolio · 2016 10.1038/nmat4687
  19. Large-Scale Fiber Tracking Through Sparsely Sampled Image Sequences of Composite Materials IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2598640
  20. Generation of micro-scale finite element models from synchrotron X-ray CT images for multidirectional carbon fibre reinforced composites Composites Part A Applied Science and Manufacturing · Elsevier BV · 2016 10.1016/j.compositesa.2016.09.010
  21. IDEAL: Images Across Domains, Experiments, Algorithms and Learning JOM · Springer Science+Business Media · 2016 10.1007/s11837-016-2098-4
  22. Studies in health technology and informatics 2008
  23. The One Hundred Layers Tiramisu: Fully Convolutional DenseNets for Semantic Segmentation 2017 10.1109/cvprw.2017.156
  24. Individual fibre segmentation from 3D X-ray computed tomography for characterising the fibre orientation in unidirectional composite materials Composites Part A Applied Science and Manufacturing · Elsevier BV · 2017 10.1016/j.compositesa.2016.12.028
  25. In-situ 3D visualization of composite microstructure during polymer-to-ceramic conversion Acta Materialia · Elsevier BV · 2017 10.1016/j.actamat.2017.10.054
  26. Statistical validation of individual fibre segmentation from tomograms and microscopy Composites Science and Technology · Elsevier BV · 2018 10.1016/j.compscitech.2018.03.027
  27. Recent progress in the development of SiC composites for nuclear fusion applications Journal of Nuclear Materials · Elsevier BV · 2018 10.1016/j.jnucmat.2018.06.017
  28. Automated defect analysis in electron microscopic images npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0093-8
  29. X-ray computed tomography of microstructure evolution during matrix impregnation and curing in unidirectional fiber beds Composites Part A Applied Science and Manufacturing · Elsevier BV · 2018 10.1016/j.compositesa.2018.11.021
  30. Ex-situ XCT dataset for "X-ray computed tomography of microstructure evolution during matrix impregnation and curing in unidirectional fiber beds" 2019 10.18126/m2qm0z
  31. Segmentation of nearly isotropic overlapped tracks in photomicrographs using successive erosions as watershed markers Microscopy Research and Technique · Wiley · 2019 10.1002/jemt.23336
  32. A fiber-segmentation algorithm for composites imaged using X-ray microtomography: Development and validation Composites Part A Applied Science and Manufacturing · Elsevier BV · 2019 10.1016/j.compositesa.2019.105606
  33. Evaluating Fiber Detection Models Using Neural Networks Lecture notes in computer science · Springer Science+Business Media · 2019 10.1007/978-3-030-33723-0_44
  34. Deep-learning-based quality filtering of mechanically exfoliated 2D crystals npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0262-4
  35. Fully automated segmentation of the temporal bone from micro-CT using deep learning 2020 10.1117/12.2549609
  36. Deep-learning for tidemark segmentation in human osteochondral tissues imaged with micro-computed tomography University of Oulu Repository (University of Oulu) · University of Oulu · 2020
  37. Understanding important features of deep learning models for segmentation of high-resolution transmission electron microscopy images npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-00363-x
  38. Semantic segmentation of microscopic neuroanatomical data by combining topological priors with encoder–decoder deep networks Nature Machine Intelligence · Nature Portfolio · 2020 10.1038/s42256-020-0227-9
  39. 3D convolutional neural networks-based segmentation to acquire quantitative criteria of the nucleus during mouse embryogenesis npj Systems Biology and Applications · Nature Portfolio · 2020 10.1038/s41540-020-00152-8
  40. Deep learning for Alzheimer's disease: mapping large-scale histological tau protein for neuroimaging biomarker validation LA Referencia (Red Federada de Repositorios Institucionales de Publicaciones Científicas) · LA Referencia · 2022
  41. A reusable neural network pipeline for unidirectional fiber segmentation Scientific Data · Nature Portfolio · 2022 10.1038/s41597-022-01119-6
  42. Deep learning for Alzheimer's disease: Mapping large-scale histological tau protein for neuroimaging biomarker validation NeuroImage · Elsevier BV · 2021 10.1016/j.neuroimage.2021.118790
  43. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031