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

EM-stellar: benchmarking deep learning for electron microscopy image segmentation

관련 패션 · (24) 패션(코오롱FnC)

기본 정보

저자
  1. Afshin Khadangi — Department of Biomedical Engineering, University of Melbourne , Victoria, 3000, Australia
  2. Thomas Boudier — Institute of Molecular Biology, Academia Sinica , Taipei, Taiwan
  3. Vijay Rajagopal — Department of Biomedical Engineering, University of Melbourne , Victoria, 3000, Australia
DOI
10.1093/bioinformatics/btaa1094
저널
Bioinformatics
발행년도
2020
발행기관
Oxford University Press
피인용수
24
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1093/bioinformatics/btaa1094
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W3119697113

평가 내용

관련도
관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '패션 > 패션(코오롱FnC)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Supplementary data are available at Bioinformatics online.

본문 23,519자

본문 펼치기
Training and testing 0. Training, validation and test data: we extracted 6 random non-overlapping patches from 792 serial sections, each patch sizing 1024 × 1024 pixels from the cardiac data stack (792 × 2922 × 1166) and manually annotated the slices. Then we extracted 4 non-overlapping patches (strides=512), each patch sizing 512 × 512 pixels. Such a task was important to ensure the diversity of the training, validation and test datasets. Once the total 24 patches were extracted, we ordered the patches as 6 subsets of 4 distinct patches, each subset corresponding to one slice of the data.In order to ensure that training, validation and test data are diverse, we chose 4 subsets randomly as the training data, 1 as the validation and the last subset as the test data. We repeated this procedure 6 times (3 folds as 4, 1 and 1 subsets, ensuring each individual subset falls into the test data and then choosing 1 subset randomly as validation data and holding the remaining fold as the training data) to explore the sensitivity of the networks performances during the segmentation relative to a variety of training, validation and testing data combinations. We also extracted 256, 32 and 32 random non-overlapping patches for the training, validation and testing, each patch sizing at 512 × 512 pixels from the neuronal stack (80 × 1024 × 1024) and then followed exactly same procedure as highlighted above. We used cardiac and neuronal data to represent limited and abundant ground-truth data settings, respectively. We trained, validated and tested more than 104 models for the cardiac data and more than 120 models for the neuronal dataset. We have reported the maximum segmentation performances of individual models across our experiments in tables 1 and 2.We also report the Jaccard score between arbitrary consecutive image slices of the cardiac and neuronal stacks and compare them with the Jaccard score between the training, validation and test data. This will ensure that the training, validation and testing data are independent.1. Pre-processing and augmentation: Images were augmented using random rotation, shearing, zooming, shifting in x and y and flipping for both training and validation.Augmented data were generated on the fly to minimise memory utilisation. After the data were augmented, we used min-max normalisation to normalise the input data.Kernel initialisation, dropout layers:All convolutional kernels were initialised using Henormal, and we used zeros and ones initialisation for TLUs. In some experiments, we used spatial dropout [1] layers in the bottlenecks to monitor the tendency of overfitting.3.Step and batch size: we parallelised the experiments by pooling 4 GPUs and used batch sizes of 4, 8, and 16.Step sizes were chosen as 500, 1000 and 2000 per epoch.Loss functions:we used a variety of loss functions in our experiments ranging from binary cross-entropy, Jaccard coefficient log-loss and focal loss, to dice loss.Binary cross-entropy:Binary cross-entropy loss is used to measure the classification performance based on the class membership probabilities. Let's assume = 1 and = 0 represent the True and False classes, respectively. Assuming the network output node generates the probability masks using a sigmoid function, then binary cross-entropy loss (CE loss) is defined as follows for binary image segmentation task: ( ,) = � −( log(̂) + (1 − ) log(1 −̂))(1) where subscript represents the id of the pixels in probability mask, represents the ground-truth probability and ̂= 1 1+ − represents the probability of the predicted class given that sigmoid function is used as an activation function in the output layer. Jaccard coefficient-log loss: Jaccard distance, also known as intersection over union (IoU) score, can be adapted to obtain Jaccard loss which is useful for unbalanced datasets. Given that Jaccard distance is defined as equation 2, Jaccard log loss (JL loss) can be obtained as equation 3: Jaccard coefficient-log loss: where and represent the variables that we aim at measuring the Jaccard distance between them and TP, FP, and FN represent the true-positive, false-positive and falsenegative, respectively. , and ̂ are defined as the same as above, and is established to avoid the zero-gradients or vanishing gradients problem. Focal loss: Focal loss [2] reduces the relative loss for well-classified examples by putting more focus on hard or misclassified instances. Equation 4 represents the focal loss (F loss) as follows: where we have used = 0.25 and = 2 as described in [2]. Dice loss: Dice coefficient (DC) is a metric similar to the Jaccard index, which measures the overlap between two instances. It can be adapted to obtain dice loss (D loss) defined as follows: Dice loss: ( ,) = − ∑̂+ ∑̂+ ∑ + (6) where , ̂, , , TP, FP and FN are defined as mentioned earlier in the above. Optimisation: we have used Rectified Adam (RAdam) [3] as the primary optimisation method throughout this study as it demonstrates less sensitivity to the learning rate variance. We have used 10% ratio as the warm-up coefficient. However, we trained the networks with other optimisers, including stochastic gradient descent [4] and Adam [5] to analyse the behaviour the inference performance. We used a variety of learning rate setups with the optimisers mentioned above; however, the improvements were insignificant as compared to the results of RAdam. Validation criteria and model checkpoints: we used validation data as described above to validate the networks during the training. We used a variety of validation metrics during the training to obtain an optimal inference model. Model checkpoints were chosen based on models meeting the best validation criteria. Here we briefly outline the validation metrics used in this study. TP, TN, FP and FN represent true-positive, true-negative, falsepositive and false-negative, respectively. Validation loss: We monitored validation loss to obtain the best inference model. We found that different validation losses lead to different inference measures and performances. Our experiments show that the Jaccard coefficient log loss provided better inference performance compared to other loss functions that were used in this study. Validation accuracy: We monitored validation accuracy across all our experiments; however, our results Validation accuracy: show that higher validation accuracy cannot solely determine the best inference model, especially when the classes of segmentation are imbalanced. Validation AUC-ROC: Receiver operator characteristic (ROC) curves show how the true-positive instances vary with false-negative classification results. More details can be found in [6]. We have used the area under the ROC curve (AUC-ROC) to monitor validation during the training [7]. Our experiments show that higher validation AUC-ROC does not necessarily lead to the best inference results. This is in line with the findings of this study [6] where authors have suggested that the precision-recall (PR) curve may be preferred over AUC-ROC, especially when dealing with imbalanced datasets. Validation AUC-ROC: However, AUC-ROC was positively and negatively correlated with F1-score and loss, respectively. Validation F1-score: F1-score is one of the critical performance measures used widely in machine-learning. Validation F1-score: It is defined as a harmonic mean between precision and recall as follows: Validation F1-score: where precision and recall are defined as equations (8) and (9), respectively. Validation F1-score: We have used f1-score as one of the primary performance measures throughout this study during the training and inference. Inference measures: After the models were trained, we obtained the predicted segmentation masks using the best snapshots of the models based on validation criteria, including the validation loss. We set the inference batch size equal to the batch size used during the training. In addition to F1-score and Jaccard similarity index as defined above, we used a wide range of other metrics to compare the segmentation performances as briefly outlined below. Foreground-restricted Rand Scoring after border thinning ( Boundary maps can be adapted to obtain a segmentation mask by finding the connected components. Assuming represents the predicted mask and is the ground-truth mask, we define as the probability that randomly chosen pixel belongs to the segment in and segment in . this joint probability distribution satisfies the normalisation condition as ∑ = 1. Given the marginal distributions defined as = ∑ and = ∑ ( represents the probability that a randomly chosen pixel belongs to segment in and represents the probability that a randomly chosen pixel belongs to segment in ), the ( ℎ ) is defined as follows (more details can be found in [8]): Foreground-restricted Rand Scoring after border thinning ( where is a hyper-parameter, as described in [8]. Foreground-restricted Information-Theoretic Scoring after border thinning We can measure the similarity between the predicted mask and ground-truth mask by using mutual information as defined in equation (11): Foreground-restricted Information-Theoretic Scoring after border thinning Dividing ( ; ) by entropies of the masks yields the information-theoretic split and merge score [8]. Foreground-restricted Information-Theoretic Scoring after border thinning ( ℎ ) is defined as the weighted harmonic mean of these scores as follows: Accuracy: Accuracy is widely used as one of the primary metrics to evaluate the performance of machine learning methods as defined below: Sensitivity: Sensitivity, also known as true-positive rate or the recall score is one of the statistical indicators to measure the performance of binary classification tasks: Specificity: Specificity, also known as the true-negative rate is one of the other performance measures that is widely used along with sensitivity: Using ilastik and Weka to segment mitochondria on the cardiac dataset We extended our experiments to segment mitochondria on the cardiac and neuronal datasets using ilastik and Weka to compare their performances with the deep neural networks. Using ilastik and Weka to segment mitochondria on the cardiac dataset We performed a variety of tests with these two open-source software packages to ensure that we report the maximum of the segmentation performances. We used ilastik 1.3.2 and Weka trainable segmentation plugin on ImageJ for the segmentation. The image size used for the training and testing on ilastik and Weka was set to 1024 × 1024 and 512 × 512 in x and y for the cardiac and neuronal data, respectively. We performed 60 experiments in total with ilastik and Weka using a wide range of modules and parameters that these packages provide. In ilastik, we used "object + pixel classification" and "pixel classification" modules where we chose different possible combinations of the standard object, 2D skeleton, edge, intensity, texture, low, medium and high standard deviations of the underlying features. Moreover, we used two and three images from the cardiac data and 6 and 12 images from the neuronal data during the training to monitor the performance sensitivity to the available ground-truth data. In Weka, we used standard and full sets of features to segment mitochondria on the cardiac data. Using ilastik and Weka to segment mitochondria on the cardiac dataset Supplementary figures 1, 2, 9 and 10 represent the results of our experiments using ilastik and Using ilastik and Weka to segment mitochondria on the cardiac dataset Weka. Using ilastik and Weka to segment mitochondria on the cardiac dataset In addition to the above, we also used the same data to train ilastik and Weka that we had used for training DL methods. We tested ilastik and Weka performances using the same test data that we had used for testing DL methods as well. Table 3 represents the results of these experiments. Our experiments suggest that additional fine-tuning of the machine learning algorithms in Weka and ilastik is necessary to improve the accuracy of these methods. Using ilastik and Weka to segment mitochondria on the cardiac dataset Our experiments show that ilastik and Weka offer a couple of advantages over the deep learning methods. First, the initial required time (the total time might be extended as these methods usually require incremental correcting/adding new labels into the data) to label the data on ilastik and Weka is less than what is usually spent for annotating data for deep neural networks. For example, it might take a couple of hours for a user to sparsely annotate the data for Weka and ilastik. However, annotating the same data for deep neural networks might take several days even weeks as the deep neural networks will require precise ground-truth annotations. Using ilastik and Weka to segment mitochondria on the cardiac dataset Secondly, our experiments suggest that ilastik and Weka can be trained using a limited number of threads on an arbitrary user local machine. However, training deep neural networks will need sophisticated hardware and software infrastructure. Moreover, ilastik and Weka converge much faster than deep neural networks, given they have been trained using the same computational resources. We have obtained our results using ilastik and Weka by running on a workstation with 3.50 GHz 4 core, eight logical threads, 32 GB of memory and 4 GDDR5 Using ilastik and Weka to segment mitochondria on the cardiac dataset NVIDIA Quadro K2200 GPU accelerator. It took several hours to train Weka and ilastik, where it takes several days even weeks to train the deep neural networks with the same input image size. Using ilastik and Weka to segment mitochondria on the cardiac dataset In summary, there is a trade-off between programs like Weka, ilastik and DL methods at this stage: one requires less computational resources and technical know-how to utilise ilastik and Weka than DL methods. However, our tests show that DL methods do perform better than ilastik and Weka and may be more warranted with particularly large datasets. Image augmentation Image augmentation plays a crucial task in training deep neural networks when groundtruth data is limited. Electron microscopy images are inherent in noise and low contrast which makes the manual annotation a laborious task. • Random rotation by angle : image rotation can be interpreted as a 2D transformation Image augmentation where individual pixels at locations and are transformed to new locations * and * as follows: Image augmentation • Shearing: shear mapping is a linear displacement of a plane in a fixed direction. In image shearing, such 2D transformation is performed as the pixels at locations and are transformed into new locations * and * as follows: Image augmentation • Random shifting: we randomly shifted the images in and . Given the random shifting factor 0 < , the transformed image is obtained as follows: Image augmentation where and represent the dimensions of the input image of size × pixels in and , respectively. We chose = 0.2 across all our experiments and padded the shifted pixels with zeros. K-fold cross-validation Cross-validation is one of the resampling methods that is used for evaluating machine learning methods when training data is limited. In K-fold cross-validation, data is first split into the K disjoint subgroups; then, the machine learning method is trained and evaluated in K steps using K-1 folds for the training and one-fold for the validation at once. We first shuffled the images randomly and then split to 6 folds for the training and validation. We . We used script editor in BeanShell mode to implement these evaluation metrics in ImageJ. Moreover, we used pyimagj on EM-stellar to obtain the evaluation metrics report, which provides a set of wrappers to integrate between python and ImageJ. Network complexity analysis and summary reporting The network architectures were defined in TensorFlow GPU 1.8.0 CUDA 9.0; then the corresponding graph was frozen to obtain the floating-point operations using TensorFlow profiler. We established a tensor placeholder of shape (1, 512, 512, 1) to obtain the floatingpoint operations summary which represents a single monochrome image of size 512 pixels in Network complexity analysis and summary reporting x and y. All the floating-point operations summary report elements were used and aggregated to report the network complexities, including 2D-convolutions, additions, multiplications, bias additions, max-pooling, division, and square roots. Feature correlation maps for EM-net, U-net and VGG We extracted all the feature channels embedded in the input, hidden and output layers of the above networks, which resulted in more than 140,000 feature channels. We used the correlation coefficient as defined in equation 22 to obtain the feature correlation maps of these networks between feature channels and : Feature correlation maps for EM-net, U-net and VGG where and represent the pixels of the feature channels and . The results are shown in the supplementary figures section. We downsampled feature channels to obtain 2D correlation scores between the feature channels across different network blocks. The ensemble of the models and ensemble learning EM-stellar utilises an ensemble of the top models based on the inference criteria. This is slightly different to ensemble learning, where a super-model or meta-classifier is formed of base classifiers, and the resulted model is trained or finely tuned to perform segmentation or classification task. Two methods are used in EM-stellar to acquire the ensemble of models, including average and majority voting for binary classification tasks as described in equations (23) and (24), respectively: The ensemble of the models and ensemble learning where is the number of models used for the ensemble, and represents the corresponding predicted probability masks of the model in equation (23). In equation (24) Figure 1. Comparison of mitochondria segmentation for test data on the cardiac images using ilastik and WEKA. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. Left column represents the raw images, and the other columns represent the segmentation results. As shown, segmenting mitochondria using ilastik "object + pixel classification" module results in a fewer false-positive error (second column from the left) as compared with the pixel classification module (third column from the left). WEKA is more prone to both false positives and false negatives, as shown in the 4th column from the left. Figure 2. Comparison of mitochondria segmentation for test data on the neuronal images using ilastik and WEKA. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. First and third columns from the left represent the sample raw images, and the other columns represent the segmentation results. As shown, segmenting mitochondria using ilastik results in a fewer falsenegative error as compared with the segmentation results using WEKA. However, this figure illustrates that Weka is more prone to both false positives and false negatives. Figure 3. Comparison of mitochondria segmentation for test data on the cardiac images using EM-net V1 2X, 4X, BN and BN 2X. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. BN represents that batch-normalisation is utilised in the encoder as well as the decoder. 4X means that the network has a double depth as 2X in all the blocks. As shown, EM-net V1 BN 2X has led to more false-positive instances as compared to the other methods. Figure 4. Comparison of mitochondria segmentation for test data on the cardiac images using EM-net V2, V2 2X, V2 4X and majority voting. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. As shown, EM-net majority voting has minimised the false-negative instances as compared to the other three methods. Figure 5. Comparison of mitochondria segmentation for test data on the cardiac images using EM-net average voting, CDeep3M, U-net BN and VGG. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and truenegative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. As shown, CDeep3M is more prone to false positives and demonstrates minimum missing mitochondria in segmentations. VGG and U-net BN are more prone to missing mitochondria. Figure 6. Comparison of mitochondria segmentation for test data on the cardiac images using ResNet, SegNet and U-net. Yellow, green, red and black correspond to true-positive, falsepositive, false-negative (missing mitochondria) and true-negative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. As shown, SegNet and U-net are more prone to missing mitochondria or false-negative instances as compared to the ResNet. . Feature correlation map for the EM-net. We have visualised the 2D correlation scores between more than 40,000 feature channels in the figure above. Figure 12. Feature correlation map for the U-net. We have visualised the 2D correlation scores between more than 50,000 feature channels in the figure above. Figure 13. Feature correlation map for the VGG. We have visualised the 2D correlation scores between more than 50,000 feature channels in the figure above. Figure 14. The plot of validation AUC-ROC for the cardiac dataset. As shown, EM-net V1 BN 2X has achieved the maximum validation AUC-ROC score and has converged faster as compared to the other networks. However, this network does not provide the optimal test score. Figure 15. The plot of validation F1-score for the cardiac dataset. As shown, EM-net V1 BN and 4X have achieved the maximum validation F1-score score. However, EM-net V1 4X does not provide the optimal test F1-score. Figure 16. The plot of validation AUC-ROC for the neuronal dataset. As shown, EM-net V1 2X has achieved the maximum validation AUC-ROC score, followed by EM-net V2 4X and U-net. Table 4. Comparison of false-negative (FN) and false-positive (FP) ratios on segmenting mitochondria using the cardiac test dataset. CDeep3M represents the minimum false-negative ratio and the maximum false-positive ratio which implies CDeep3M is more prone to false-positive error (as also shown on figure 6 of the manuscript). The U-net (NO Batch-normalisation used) shows the maximum false-negative ratio and EM-net V2 represents the minimum false-positive ratio. Table 5. Comparison of false-negative (FN) and false-positive (FP) ratios on segmenting mitochondria using the neuronal test dataset. CDeep3M represents the minimum false-negative ratio and the maximum false-positive ratio which implies CDeep3M is more prone to false-positive error (as also shown on figure 7 of the manuscript). The EM-net V2 shows the maximum false-negative ratio and the minimum false-positive ratio.

섹션 본문 48문단 · 21,691자

(제목 없음)

1Training and testing 0. Training, validation and test data: we extracted 6 random non-overlapping patches from 792 serial sections, each patch sizing 1024 × 1024 pixels from the cardiac data stack (792 × 2922 × 1166) and manually annotated the slices. Then we extracted 4 non-overlapping patches (strides=512), each patch sizing 512 × 512 pixels. Such a task was important to ensure the diversity of the training, validation and test datasets. Once the total 24 patches were extracted, we ordered the patches as 6 subsets of 4 distinct patches, each subset corresponding to one slice of the data.In order to ensure that training, validation and test data are diverse, we chose 4 subsets randomly as the training data, 1 as the validation and the last subset as the test data. We repeated this procedure 6 times (3 folds as 4, 1 and 1 subsets, ensuring each individual subset falls into the test data and then choosing 1 subset randomly as validation data and holding the remaining fold as the training data) to explore the sensitivity of the networks performances during the segmentation relative to a variety of training, validation and testing data combinations. We also extracted 256, 32 and 32 random non-overlapping patches for the training, validation and testing, each patch sizing at 512 × 512 pixels from the neuronal stack (80 × 1024 × 1024) and then followed exactly same procedure as highlighted above. We used cardiac and neuronal data to represent limited and abundant ground-truth data settings, respectively. We trained, validated and tested more than 104 models for the cardiac data and more than 120 models for the neuronal dataset. We have reported the maximum segmentation performances of individual models across our experiments in tables 1 and 2.We also report the Jaccard score between arbitrary consecutive image slices of the cardiac and neuronal stacks and compare them with the Jaccard score between the training, validation and test data. This will ensure that the training, validation and testing data are independent.1. Pre-processing and augmentation: Images were augmented using random rotation, shearing, zooming, shifting in x and y and flipping for both training and validation.Augmented data were generated on the fly to minimise memory utilisation. After the data were augmented, we used min-max normalisation to normalise the input data.Kernel initialisation, dropout layers:All convolutional kernels were initialised using Henormal, and we used zeros and ones initialisation for TLUs. In some experiments, we used spatial dropout [1] layers in the bottlenecks to monitor the tendency of overfitting.3.Step and batch size: we parallelised the experiments by pooling 4 GPUs and used batch sizes of 4, 8, and 16.Step sizes were chosen as 500, 1000 and 2000 per epoch.Loss functions:we used a variety of loss functions in our experiments ranging from binary cross-entropy, Jaccard coefficient log-loss and focal loss, to dice loss.Binary cross-entropy:Binary cross-entropy loss is used to measure the classification performance based on the class membership probabilities. Let's assume = 1 and = 0 represent the True and False classes, respectively. Assuming the network output node generates the probability masks using a sigmoid function, then binary cross-entropy loss (CE loss) is defined as follows for binary image segmentation task: ( ,) = � −( log(̂) + (1 − ) log(1 −̂))(1)

2where subscript represents the id of the pixels in probability mask, represents the ground-truth probability and ̂= 1 1+ − represents the probability of the predicted class given that sigmoid function is used as an activation function in the output layer.

Jaccard coefficient-log loss:

3Jaccard distance, also known as intersection over union (IoU) score, can be adapted to obtain Jaccard loss which is useful for unbalanced datasets. Given that Jaccard distance is defined as equation 2, Jaccard log loss (JL loss) can be obtained as equation 3:

4where and represent the variables that we aim at measuring the Jaccard distance between them and TP, FP, and FN represent the true-positive, false-positive and falsenegative, respectively. , and ̂ are defined as the same as above, and is established to avoid the zero-gradients or vanishing gradients problem.

Focal loss:

5Focal loss [2] reduces the relative loss for well-classified examples by putting more focus on hard or misclassified instances. Equation 4 represents the focal loss (F loss) as follows: where we have used = 0.25 and = 2 as described in [2].

Dice loss:

6Dice coefficient (DC) is a metric similar to the Jaccard index, which measures the overlap between two instances. It can be adapted to obtain dice loss (D loss) defined as follows:

7( ,) = − ∑̂+ ∑̂+ ∑ + (6) where , ̂, , , TP, FP and FN are defined as mentioned earlier in the above.

Optimisation:

8we have used Rectified Adam (RAdam) [3] as the primary optimisation method throughout this study as it demonstrates less sensitivity to the learning rate variance. We have used 10% ratio as the warm-up coefficient. However, we trained the networks with other optimisers, including stochastic gradient descent [4] and Adam [5] to analyse the behaviour the inference performance. We used a variety of learning rate setups with the optimisers mentioned above; however, the improvements were insignificant as compared to the results of RAdam.

Validation criteria and model checkpoints:

9we used validation data as described above to validate the networks during the training. We used a variety of validation metrics during the training to obtain an optimal inference model. Model checkpoints were chosen based on models meeting the best validation criteria. Here we briefly outline the validation metrics used in this study. TP, TN, FP and FN represent true-positive, true-negative, falsepositive and false-negative, respectively.

Validation loss:

10We monitored validation loss to obtain the best inference model. We found that different validation losses lead to different inference measures and performances. Our experiments show that the Jaccard coefficient log loss provided better inference performance compared to other loss functions that were used in this study.

Validation accuracy:

11We monitored validation accuracy across all our experiments; however, our results

12show that higher validation accuracy cannot solely determine the best inference model, especially when the classes of segmentation are imbalanced.

Validation AUC-ROC:

13Receiver operator characteristic (ROC) curves show how the true-positive instances vary with false-negative classification results. More details can be found in [6]. We have used the area under the ROC curve (AUC-ROC) to monitor validation during the training [7]. Our experiments show that higher validation AUC-ROC does not necessarily lead to the best inference results. This is in line with the findings of this study [6] where authors have suggested that the precision-recall (PR) curve may be preferred over AUC-ROC, especially when dealing with imbalanced datasets.

14However, AUC-ROC was positively and negatively correlated with F1-score and loss, respectively.

Validation F1-score:

15F1-score is one of the critical performance measures used widely in machine-learning.

16It is defined as a harmonic mean between precision and recall as follows:

17where precision and recall are defined as equations (8) and (9), respectively.

18We have used f1-score as one of the primary performance measures throughout this study during the training and inference.

Inference measures:

19After the models were trained, we obtained the predicted segmentation masks using the best snapshots of the models based on validation criteria, including the validation loss. We set the inference batch size equal to the batch size used during the training. In addition to F1-score and Jaccard similarity index as defined above, we used a wide range of other metrics to compare the segmentation performances as briefly outlined below.

Foreground-restricted Rand Scoring after border thinning (

20Boundary maps can be adapted to obtain a segmentation mask by finding the connected components. Assuming represents the predicted mask and is the ground-truth mask, we define as the probability that randomly chosen pixel belongs to the segment in and segment in . this joint probability distribution satisfies the normalisation condition as ∑ = 1. Given the marginal distributions defined as = ∑ and = ∑ ( represents the probability that a randomly chosen pixel belongs to segment in and represents the probability that a randomly chosen pixel belongs to segment in ), the ( ℎ ) is defined as follows (more details can be found in [8]):

21where is a hyper-parameter, as described in [8].

Foreground-restricted Information-Theoretic Scoring after border thinning

22We can measure the similarity between the predicted mask and ground-truth mask by using mutual information as defined in equation (11):

23Dividing ( ; ) by entropies of the masks yields the information-theoretic split and merge score [8].

24( ℎ ) is defined as the weighted harmonic mean of these scores as follows:

Accuracy:

25Accuracy is widely used as one of the primary metrics to evaluate the performance of machine learning methods as defined below:

Sensitivity:

26Sensitivity, also known as true-positive rate or the recall score is one of the statistical indicators to measure the performance of binary classification tasks:

Specificity:

27Specificity, also known as the true-negative rate is one of the other performance measures that is widely used along with sensitivity:

Using ilastik and Weka to segment mitochondria on the cardiac dataset

28We extended our experiments to segment mitochondria on the cardiac and neuronal datasets using ilastik and Weka to compare their performances with the deep neural networks.

29We performed a variety of tests with these two open-source software packages to ensure that we report the maximum of the segmentation performances. We used ilastik 1.3.2 and Weka trainable segmentation plugin on ImageJ for the segmentation. The image size used for the training and testing on ilastik and Weka was set to 1024 × 1024 and 512 × 512 in x and y for the cardiac and neuronal data, respectively. We performed 60 experiments in total with ilastik and Weka using a wide range of modules and parameters that these packages provide. In ilastik, we used "object + pixel classification" and "pixel classification" modules where we chose different possible combinations of the standard object, 2D skeleton, edge, intensity, texture, low, medium and high standard deviations of the underlying features. Moreover, we used two and three images from the cardiac data and 6 and 12 images from the neuronal data during the training to monitor the performance sensitivity to the available ground-truth data. In Weka, we used standard and full sets of features to segment mitochondria on the cardiac data.

30Supplementary figures 1, 2, 9 and 10 represent the results of our experiments using ilastik and

31Weka.

32In addition to the above, we also used the same data to train ilastik and Weka that we had used for training DL methods. We tested ilastik and Weka performances using the same test data that we had used for testing DL methods as well. Table 3 represents the results of these experiments. Our experiments suggest that additional fine-tuning of the machine learning algorithms in Weka and ilastik is necessary to improve the accuracy of these methods.

33Our experiments show that ilastik and Weka offer a couple of advantages over the deep learning methods. First, the initial required time (the total time might be extended as these methods usually require incremental correcting/adding new labels into the data) to label the data on ilastik and Weka is less than what is usually spent for annotating data for deep neural networks. For example, it might take a couple of hours for a user to sparsely annotate the data for Weka and ilastik. However, annotating the same data for deep neural networks might take several days even weeks as the deep neural networks will require precise ground-truth annotations.

34Secondly, our experiments suggest that ilastik and Weka can be trained using a limited number of threads on an arbitrary user local machine. However, training deep neural networks will need sophisticated hardware and software infrastructure. Moreover, ilastik and Weka converge much faster than deep neural networks, given they have been trained using the same computational resources. We have obtained our results using ilastik and Weka by running on a workstation with 3.50 GHz 4 core, eight logical threads, 32 GB of memory and 4 GDDR5

35NVIDIA Quadro K2200 GPU accelerator. It took several hours to train Weka and ilastik, where it takes several days even weeks to train the deep neural networks with the same input image size.

36In summary, there is a trade-off between programs like Weka, ilastik and DL methods at this stage: one requires less computational resources and technical know-how to utilise ilastik and Weka than DL methods. However, our tests show that DL methods do perform better than ilastik and Weka and may be more warranted with particularly large datasets.

Image augmentation

37Image augmentation plays a crucial task in training deep neural networks when groundtruth data is limited. Electron microscopy images are inherent in noise and low contrast which makes the manual annotation a laborious task. • Random rotation by angle : image rotation can be interpreted as a 2D transformation

38where individual pixels at locations and are transformed to new locations * and * as follows:

39• Shearing: shear mapping is a linear displacement of a plane in a fixed direction. In image shearing, such 2D transformation is performed as the pixels at locations and are transformed into new locations * and * as follows:

40• Random shifting: we randomly shifted the images in and . Given the random shifting factor 0 < , the transformed image is obtained as follows:

41where and represent the dimensions of the input image of size × pixels in and , respectively. We chose = 0.2 across all our experiments and padded the shifted pixels with zeros.

K-fold cross-validation

42Cross-validation is one of the resampling methods that is used for evaluating machine learning methods when training data is limited. In K-fold cross-validation, data is first split into the K disjoint subgroups; then, the machine learning method is trained and evaluated in K steps using K-1 folds for the training and one-fold for the validation at once. We first shuffled the images randomly and then split to 6 folds for the training and validation. We . We used script editor in BeanShell mode to implement these evaluation metrics in ImageJ. Moreover, we used pyimagj on EM-stellar to obtain the evaluation metrics report, which provides a set of wrappers to integrate between python and ImageJ.

Network complexity analysis and summary reporting

43The network architectures were defined in TensorFlow GPU 1.8.0 CUDA 9.0; then the corresponding graph was frozen to obtain the floating-point operations using TensorFlow profiler. We established a tensor placeholder of shape (1, 512, 512, 1) to obtain the floatingpoint operations summary which represents a single monochrome image of size 512 pixels in

44x and y. All the floating-point operations summary report elements were used and aggregated to report the network complexities, including 2D-convolutions, additions, multiplications, bias additions, max-pooling, division, and square roots.

Feature correlation maps for EM-net, U-net and VGG

45We extracted all the feature channels embedded in the input, hidden and output layers of the above networks, which resulted in more than 140,000 feature channels. We used the correlation coefficient as defined in equation 22 to obtain the feature correlation maps of these networks between feature channels and :

46where and represent the pixels of the feature channels and . The results are shown in the supplementary figures section. We downsampled feature channels to obtain 2D correlation scores between the feature channels across different network blocks.

The ensemble of the models and ensemble learning

47EM-stellar utilises an ensemble of the top models based on the inference criteria. This is slightly different to ensemble learning, where a super-model or meta-classifier is formed of base classifiers, and the resulted model is trained or finely tuned to perform segmentation or classification task. Two methods are used in EM-stellar to acquire the ensemble of models, including average and majority voting for binary classification tasks as described in equations (23) and (24), respectively:

48where is the number of models used for the ensemble, and represents the corresponding predicted probability masks of the model in equation (23). In equation (24) Figure 1. Comparison of mitochondria segmentation for test data on the cardiac images using ilastik and WEKA. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. Left column represents the raw images, and the other columns represent the segmentation results. As shown, segmenting mitochondria using ilastik "object + pixel classification" module results in a fewer false-positive error (second column from the left) as compared with the pixel classification module (third column from the left). WEKA is more prone to both false positives and false negatives, as shown in the 4th column from the left. Figure 2. Comparison of mitochondria segmentation for test data on the neuronal images using ilastik and WEKA. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. First and third columns from the left represent the sample raw images, and the other columns represent the segmentation results. As shown, segmenting mitochondria using ilastik results in a fewer falsenegative error as compared with the segmentation results using WEKA. However, this figure illustrates that Weka is more prone to both false positives and false negatives. Figure 3. Comparison of mitochondria segmentation for test data on the cardiac images using EM-net V1 2X, 4X, BN and BN 2X. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. BN represents that batch-normalisation is utilised in the encoder as well as the decoder. 4X means that the network has a double depth as 2X in all the blocks. As shown, EM-net V1 BN 2X has led to more false-positive instances as compared to the other methods. Figure 4. Comparison of mitochondria segmentation for test data on the cardiac images using EM-net V2, V2 2X, V2 4X and majority voting. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and true-negative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. As shown, EM-net majority voting has minimised the false-negative instances as compared to the other three methods. Figure 5. Comparison of mitochondria segmentation for test data on the cardiac images using EM-net average voting, CDeep3M, U-net BN and VGG. Yellow, green, red and black correspond to true-positive, false-positive, false-negative (missing mitochondria) and truenegative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. As shown, CDeep3M is more prone to false positives and demonstrates minimum missing mitochondria in segmentations. VGG and U-net BN are more prone to missing mitochondria. Figure 6. Comparison of mitochondria segmentation for test data on the cardiac images using ResNet, SegNet and U-net. Yellow, green, red and black correspond to true-positive, falsepositive, false-negative (missing mitochondria) and true-negative, respectively. The left column represents the raw images, and the other columns represent the segmentation results. As shown, SegNet and U-net are more prone to missing mitochondria or false-negative instances as compared to the ResNet. . Feature correlation map for the EM-net. We have visualised the 2D correlation scores between more than 40,000 feature channels in the figure above. Figure 12. Feature correlation map for the U-net. We have visualised the 2D correlation scores between more than 50,000 feature channels in the figure above. Figure 13. Feature correlation map for the VGG. We have visualised the 2D correlation scores between more than 50,000 feature channels in the figure above. Figure 14. The plot of validation AUC-ROC for the cardiac dataset. As shown, EM-net V1 BN 2X has achieved the maximum validation AUC-ROC score and has converged faster as compared to the other networks. However, this network does not provide the optimal test score. Figure 15. The plot of validation F1-score for the cardiac dataset. As shown, EM-net V1 BN and 4X have achieved the maximum validation F1-score score. However, EM-net V1 4X does not provide the optimal test F1-score. Figure 16. The plot of validation AUC-ROC for the neuronal dataset. As shown, EM-net V1 2X has achieved the maximum validation AUC-ROC score, followed by EM-net V2 4X and U-net. Table 4. Comparison of false-negative (FN) and false-positive (FP) ratios on segmenting mitochondria using the cardiac test dataset. CDeep3M represents the minimum false-negative ratio and the maximum false-positive ratio which implies CDeep3M is more prone to false-positive error (as also shown on figure 6 of the manuscript). The U-net (NO Batch-normalisation used) shows the maximum false-negative ratio and EM-net V2 represents the minimum false-positive ratio. Table 5. Comparison of false-negative (FN) and false-positive (FP) ratios on segmenting mitochondria using the neuronal test dataset. CDeep3M represents the minimum false-negative ratio and the maximum false-positive ratio which implies CDeep3M is more prone to false-positive error (as also shown on figure 7 of the manuscript). The EM-net V2 shows the maximum false-negative ratio and the minimum false-positive ratio.

참고문헌 20건

  1. Very Deep Convolutional Networks for Large-Scale Image Recognition Computer Vision and Pattern Recognition · 2014
  2. Mitochondrial reticulum for cellular energy distribution in muscle Nature · Nature Portfolio · 2015 10.1038/nature14614
  3. Crowdsourcing the creation of image segmentation algorithms for connectomics Frontiers in Neuroanatomy · Frontiers Media · 2015 10.3389/fnana.2015.00142
  4. Metrics for evaluating 3D medical image segmentation: analysis, selection, and tool BMC Medical Imaging · BioMed Central · 2015 10.1186/s12880-015-0068-x
  5. On Loss Functions for Deep Neural Networks in Classification Schedae Informaticae · Wydawnictwo Uniwersytetu Jagiellońskiego · 2017 10.4467/20838476si.16.004.6185
  6. Review of Deep Learning Methods in Mammography, Cardiovascular, and Microscopy Image Analysis Advances in computer vision and pattern recognition · Springer International Publishing · 2017 10.1007/978-3-319-42999-1_2
  7. Deep Learning and Convolutional Neural Networks for Medical Image Computing Advances in computer vision and pattern recognition · Springer International Publishing · 2017 10.1007/978-3-319-42999-1
  8. Deep Learning in Microscopy Image Analysis: A Survey IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tnnls.2017.2766168
  9. CDeep3M—Plug-and-Play cloud-based deep learning for image segmentation Nature Methods · Nature Portfolio · 2018 10.1038/s41592-018-0106-z
  10. An automated workflow for segmenting single adult cardiac cells from large-volume serial block-face scanning electron microscopy data Journal of Structural Biology · Elsevier BV · 2018 10.1016/j.jsb.2018.02.005
  11. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.11946
  12. Evaluation of Deep Learning Strategies for Nucleus Segmentation in Fluorescence Images Cytometry Part A · Wiley · 2019 10.1002/cyto.a.23863
  13. SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2016.2644615
  14. Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2017 10.1609/aaai.v31i1.11231
  15. Automated segmentation of cardiomyocyte Z-disks from high-throughput scanning electron microscopy data BMC Medical Informatics and Decision Making · BioMed Central · 2019 10.1186/s12911-019-0962-1
  16. EM-net: Deep learning for electron microscopy image segmentation bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2020 10.1101/2020.02.03.933127
  17. ZeroCostDL4Mic: an open platform to use Deep-Learning in Microscopy bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2020 10.1101/2020.03.20.000133
  18. ZeroCostDL4Mic: an open platform to use Deep-Learning in Microscopy bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2020 10.1101/2020.03.20.000133
  19. EM-stellar: benchmarking deep learning for electron microscopy image segmentation Bioinformatics · Oxford University Press · 2020 10.1093/bioinformatics/btaa1094
  20. ZeroCostDL4Mic: an open platform to simplify access and use of Deep-Learning in Microscopy 2020 10.1242/prelights.17760