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

Deep-learning-based image segmentation integrated with optical microscopy for automatically searching for two-dimensional materials

간접 관련 필름·전자재료 · (15) 디스플레이 패널재료 (11) 배리어 필름(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Satoru Masubuchi — Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo, 153-8505, Japan
  2. Eisuke Watanabe — Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo, 153-8505, Japan
  3. Yuta Seo — Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo, 153-8505, Japan
  4. Shota Okazaki — Laboratory for Materials and Structures, Tokyo Institute of Technology, 4259 Nagatsuta, Midori-ku, Yokohama, 226-8503, Japan
  5. T. Sasagawa — Laboratory for Materials and Structures, Tokyo Institute of Technology, 4259 Nagatsuta, Midori-ku, Yokohama, 226-8503, Japan
  6. Kenji Watanabe — National Institute for Materials Science, 1-1 Namiki, Tsukuba, Ibaraki, 305-0044, Japan
  7. Takashi Taniguchi — Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo, 153-8505, Japan|||National Institute for Materials Science, 1-1 Namiki, Tsukuba, Ibaraki, 305-0044, Japan
  8. Tomoki Machida — Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo, 153-8505, Japan
DOI
10.1038/s41699-020-0137-z
저널
npj 2D Materials and Applications
발행년도
2020
발행기관
Nature Portfolio
피인용수
156
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41699-020-0137-z
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2982049401

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
(11) 배리어 필름, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
deep-learning-based image segmentation, optical microscopy, two-dimensional (2D) materials, Mask-RCNN, automated searching
판단 근거
본 논문은 딥러닝을 이용해 광학 현미경 이미지에서 2차원 소재(그래핀 등)를 자동으로 검출하고 분류하는 기술을 다룹니다. 이는 코오롱인더스트리의 디스플레이용 필름이나 차세대 소재 연구 시, 박막의 두께, 결함, 균일성 등을 자동 분석하는 공정/품질 관리 기술로 응용 가능합니다.
R&D 활용 포인트
디스플레이용 CPI 필름이나 배리어 필름 제조 공정 중, 박막의 두께 균일성 및 표면 결함을 광학적으로 자동 검사하는 AI 기반 품질 관리 시스템 구축에 활용 가능함.
평가 입력
본문 42,064자 중 30,032자 발췌

초록

Abstract Deep-learning algorithms enable precise image recognition based on high-dimensional hierarchical image features. Here, we report the development and implementation of a deep-learning-based image segmentation algorithm in an autonomous robotic system to search for two-dimensional (2D) materials. We trained the neural network based on Mask-RCNN on annotated optical microscope images of 2D materials (graphene, hBN, MoS 2 , and WTe 2 ). The inference algorithm is run on a 1024 × 1024 px 2 optical microscope images for 200 ms, enabling the real-time detection of 2D materials. The detection process is robust against changes in the microscopy conditions, such as illumination and color balance, which obviates the parameter-tuning process required for conventional rule-based detection algorithms. Integrating the algorithm with a motorized optical microscope enables the automated searching and cataloging of 2D materials. This development will allow researchers to utilize a large number of 2D materials simply by exfoliating and running the automated searching process. To facilitate research, we make the training codes, dataset, and model weights publicly available.

본문 42,064자

본문 펼치기
## Deep-Learning-Based Image Segmentation Integrated with Optical Microscopy for Automatically Searching for Two-Dimensional Materials Satoru Masubuchi <sup>1, *</sup>, Eisuke Watanabe <sup>1</sup>, Yuta Seo <sup>1</sup>, Shota Okazaki <sup>2</sup>, Takao Sasagawa <sup>2</sup>, Kenji Watanabe <sup>3</sup>, Takashi Taniguchi <sup>1,</sup> <sup>3</sup>, and Tomoki Machida <sup>1, *</sup> _1 Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo 153-_ _8505, Japan_ _2 Laboratory for Materials and Structures, Tokyo Institute of Technology, 4259 Nagatsuta,_ _Midori-ku, Yokohama 226-8503, Japan_ _3 National Institute for Materials Science, 1-1 Namiki, Tsukuba, Ibaraki 305-0044, Japan_ *Correspondence: mastoru@iis.u-tokyo.ac.jp, tmachida@iis.u-tokyo.ac.jp Abstract: Deep-learning algorithms enable precise image recognition based on high-dimensional hierarchical image features. Here, we report the development and implementation of a deep learning-based image segmentation algorithm in an autonomous robotic system to search for two-dimensional (2D) materials. We trained the neural network based on Mask-RCNN on annotated optical microscope images of 2D materials (graphene, hBN, MoS2, and WTe2). The inference algorithm is run on a 1024 × 1024 px <sup>2</sup> optical microscope images for 200 ms, enabling the real-time detection of 2D materials. The detection process is robust against changes in the microscopy conditions, such as illumination and color balance, which obviates the parameter-tuning process required for conventional rule-based detection algorithms. Integrating the algorithm with a motorized optical microscope enables the automated searching and cataloging of 2D materials. This development will allow researchers to utilize unlimited amounts of 2D materials simply by exfoliating and running the automated searching process. 2 Introduction: The recent advances in deep-learning technologies based on neural networks have led to the emergence of high-performance algorithms for interpreting images, such as object detection <sup>1, 2, 3, 4, 5</sup>, semantic segmentation <sup>4, 6, 7, 8, 9, 10</sup>, instance segmentation <sup>11</sup>, and image generation <sup>12</sup> . As neural networks can learn the high-dimensional hierarchical features of objects from large sets of training data <sup>13</sup>, deep-learning algorithms can acquire a high generalization ability to recognize images, _i.e._, they can interpret images that they have not been shown before, which is one of the traits of artificial intelligence <sup>14</sup> . Soon after the success of deep-learning algorithms in general scene recognition challenges <sup>15</sup>, attempts at automation began for imaging tasks that are conducted by human experts, such as medical diagnosis <sup>16</sup> and biological image analysis <sup>17, 18</sup> . However, despite significant advances in image recognition algorithms, the implementation of these tools for practical applications remains challenging <sup>18</sup> because of the unique requirements for developing deep-learning algorithms which necessitate the joint development of annotated datasets and software <sup>18, 19</sup> . In the field of two-dimensional (2D) materials <sup>20, 21, 22, 23</sup>, the recent advent of autonomous robotic assembly systems has enabled high-throughput searching for exfoliated 2D materials and their subsequent assembly into van der Waals heterostructures <sup>24</sup> . These developments were bolstered by an image recognition algorithm for detecting 2D materials on SiO2/Si substrates <sup>24, 25</sup> ; however, current implementations have been developed on the framework of conventional rule-based image processing <sup>26, 27</sup>, which uses traditional handcrafted image features such as color contrast, edges, and entropy <sup>24, 25</sup> . Although these algorithms are computationally inexpensive, the detection parameters need to be adjusted by experts, with retuning required when the microscopy conditions change. In contrast, deep learning algorithms for detecting 2D materials are expected to be robust against changes in 3 optical microscopy conditions, and the development of such an algorithm would provide a generalized 2D materials detector that does not require fine-tuning of the parameters. In general, deep-learning algorithms for interpreting images are grouped into two categories <sup>28</sup> . Fully convolutional approaches employ an encoder–decoder architecture, such as SegNet <sup>7</sup>, U-Net <sup>8</sup>, and SharpMask <sup>29</sup> . In contrast, region-based approaches employ feature extraction by a stack of convolutional neural networks (CNNs), such as Mask-RCNN <sup>11</sup>, PSP Net <sup>30</sup>, and DeepLab <sup>10</sup> . In general, the region-based approaches outperform the fully convolutional approaches for most image segmentation tasks when the networks are trained on a sufficiently large number of annotated datasets <sup>11</sup> . In this work, we implemented and integrated deep-learning algorithms with an automated optical microscope to search for 2D materials on SiO2/Si substrates. The neural network architecture based on Mask-RCNN enabled the detection of exfoliated 2D materials while generating a segmentation mask for each object. Transfer learning from the network trained on the Microsoft common objects in context (COCO) dataset <sup>31</sup> enabled the development of a neural network from a relatively small (~2000 optical microscope images) dataset of 2D materials. Owing to the generalization ability of the neural network, the detection process is robust against changes in the microscopy conditions. These properties could not be realized using conventional rule-based image recognition algorithms. Results: System architectures and functionalities: A schematic diagram of our deep-learning-assisted optical microscopy system is shown in Fig. 1(a), with photographs shown in Fig. 1(b) and (c). The system comprises three components: (i) an autofocus microscope with a motorized XY scanning stage (Chuo Precision); (ii) a customized software pipeline to capture the optical microscope image, run 4 deep-learning algorithms, display results, and record the results in a database; (iii) a set of trained deep-learning algorithms for detecting 2D materials (graphene, hBN, MoS2, and WTe2). By combining these components, the system can automatically search for 2D materials exfoliated on SiO2/Si substrates (Supplementary Movie 1 and 2). When 2D flakes are detected, their positions and shapes are stored in a database, which can be browsed and utilized to assemble van der Waals heterostructures with a robotic system <sup>24</sup> . The key component developed in this study was the set of trained deep-learning algorithms for detecting 2D materials in the optical microscope images. Algorithm development required three steps, namely, preparation of a large dataset of annotated optical microscope images, training of the deep-learning algorithm on the dataset and deploying the algorithm to run inference on optical microscope images. The deep-learning model we employed was Mask-RCNN <sup>11</sup> (Fig. 1(a)), which predicts objects, bounding boxes, and segmentation masks in images. When an image is input into the network, the deep convolutional network ResNet101 <sup>32</sup> extracts the position-aware high dimensional features. These features are passed to the region proposal network (RPN) and the region of interest alignment network (ROI Align), which propose candidate regions where the targeted objects are located. The full connection network performs classification (Class) and regression for the bounding box (BBox) of the detected objects. Finally, the convolutional network generates segmentation masks for the objects using the output of the ROI Align layer. This model was developed on the Keras/TensorFlow framework <sup>33, 34, 35</sup> . Before describing dataset preparation and Mask-RCNN training, we show the inference results for optical microscope images containing 2D materials. Fig. 1(c)–(f) show optical microscope images of graphene, WTe2, MoS2, and hBN flakes, which were input into the neural network. The inference results shown in Fig. 1(g)–(j) consist of bounding boxes (colored squares), class labels (text), confidences (numbers), and masks (colored polygons). For the 5 layer thickness classification, we defined three categories: “mono” (1 layer), “few” (2–10 layers), and “thick” (10–40 layers). Note that this categorization was sufficient for practical use in the first screening process because final verification of the layer thickness can be conducted by computational process such as color contrast clustering analysis <sup>25, 36, 37, 38, 39, 40</sup> . As indicated in Fig. 1(g)–(j), the 2D flakes are detected by the Mask-RCNN, and the segmentation mask exhibits good overlap with the 2D flakes. The layer thickness was also correctly classified, with monolayer graphene classified as “mono”. The detection process is robust against contaminating objects such as scotch tape residue, particles, and corrugated 2D flakes (white arrows, Fig. 1(e), (f), (i), and (j)). As the neural network locates 2D crystals using the high-dimensional hierarchical features of the image, the detection results were unchanged when the illumination conditions were varied (Supplementary Movie 3). Fig. 2(a)–(c) shows the deep-learning detection of graphene flakes under differing illumination intensities ( _I_ ). For comparison, the results obtained using conventional rule-based detection are presented in Fig. 2(d)–(f). For the deep learning case, the results were not affected by changing the illumination intensity from _I_ = 220 (a) to 180 (b) or 90 (c) (red, blue, and green curves, Fig. 2). In contrast, with rule-based detection, a slight decrease of the light intensity from _I_ = 220 (d) to 200 (e) affected the results significantly, and the graphene flakes became undetectable. Further decreasing the illumination intensity to _I_ = 180 (f) resulted in no objects being detected. These results demonstrate the robustness of the deep-learning algorithms over conventional rule-based image processing for detecting 2D flakes. The deep-learning model was integrated with a motorized optical microscope by developing a customized software pipeline using C++ and Python. We employed a server/client architecture to integrate the deep-learning inference algorithms with the conventional optical microscope (Fig. S1). The image captured by the optical microscope is sent to the inference 6 server, and the inference results are sent back to the client computer. The deep-learning model can run on a graphics-processing unit (NVIDIA Tesla V100) at 200 ms. Including the overheads for capturing images, transferring image data, and displaying inference results, frame rates of ~1 fps were achieved. To investigate the applicability of the deep-learning inference to searching for 2D crystals, we selected WTe2 crystals as a testbed because the exfoliation yields of transition metal dichalcogenides are significantly smaller than graphene flakes. We exfoliated WTe2 crystals onto 1 × 1 cm <sup>2</sup> SiO2/Si substrates and then conducted searching, which was completed in 1 h using a 50× objective lens. Searching identified ~25 WTe2 flakes on 1 × 1 cm <sup>2</sup> SiO2/Si with various thicknesses (1–10 layers; Fig. S2). To quantify the performance of the Mask-RCNN detection process, we manually checked over 2300 optical microscope images, and the detections metrics are summarized in Table S1. Here, we defined true and false positive detections ( _TP_ and _FP_ ) as whether the optical microscope image contained at least one correctly detected 2D crystal or not (examples are presented in Fig. S2–Fig. S7). An image in which the 2D crystal was not correctly detected was considered a false negative ( _FN_ ). Based on these definitions, the value of precision was _TP_ /( _FP +_ _FP_ ) ~ 0.53, which implies that over half of the optical microscope images with positive detection contained WTe2 crystals. Notably, the recall ( _TP_ /( _TP +_ _FN_ ) ~ 0.93) was significantly high. In addition, the examples of false negative detection contain only small fractured WTe2 crystals, which cannot be utilized for assembling van der Waals heterostructures. These results imply that the deep-learning-based detection process does not miss 2D crystals. This property is favorable for the practical application of deep-learning algorithms to searching for 2D crystals, as exfoliated 2D crystals are usually sparsely distributed over SiO2/Si substrates. In this case, false positive detection is less problematic than missing 2D crystals (false negative). The screening of the results can be performed by a human operator without significant intervention <sup>41</sup> . In the case of graphene (Table S1), the precision 7 and recall were both high (~0.95 and ~0.97, respectively), which implies excellent performance of the deep-learning algorithm for detecting 2D crystals. We speculate that there is a difference between the exfoliation yields of graphene and WTe2 because the mean average precision (mAP) at the intersection of union (IOU) over 50% mAP@IoU50% with respect to the annotated dataset (see preparation methods below) for each material does not differ significantly (0.49 for graphene and 0.52 for WTe2). As demonstrated above, these values are sufficiently high and can be successfully applied to searches for 2D crystals. These results indicate that the deep learning inference can be practically utilized to search for 2D crystals. Preparation of training data: To develop the Mask-RCNN model presented above, we prepared annotated images and trained networks as follows. In general, the performance of a deep-learning network is known to scale with the size of the dataset <sup>42</sup> . To collect a large set of optical microscope images containing 2D materials, we exfoliated graphene (covalent material), MoS2 (2D semiconductors), WTe2, and hBN crystals onto SiO2/Si substrates. Using the automated optical microscope, we collected ~2100 optical microscope images containing graphene, MoS2, WTe2, and hBN flakes. The images were annotated manually using a web-based labeling tool <sup>43</sup> . Fig. 3(a) shows representative annotated images, and Fig. 3(b) shows the annotation metrics. The dataset comprises 353 (hBN), 862 (graphene), 569 (MoS2), and 318 (WTe2) images. The numbers of annotated objects were 456 (hBN), 4805 (graphene), 839 (MoS2), and 1053 (WTe2). The annotations were converted to the JSON format compatible with the Microsoft COCO dataset using our customized scripts written in Python. Finally, the annotated dataset was randomly divided into training and test datasets in an 8:2 ratio. Model training: 8 To train the model on the annotated dataset, we utilized the multitask loss function defined in Ref. 11 and <sup>33</sup> : _L_ = _αL_ cls + _βL_ box + _γL_ mask, where _L_ cls, _L_ box, and _L_ mask are the classification, localization, and segmentation mask losses, respectively; _α – γ_ is the control parameter for tuning the balance between the loss sets as ( _α_, _β_, _γ_ ) = (0.6, 1.0, 1.0). The class loss was _L_ cls = −log _pu_, where _p_ = ( _p_ 0, …, _pk_ ) is the probability distribution for each region of interest in which the result of classification is _u_ . The bounding box loss _L_ box is defined as 0.5? <sup>C</sup>, |?| < 1 ?"#$(? <sup>'</sup>, ?) = ∑5∈{9,:,;,<} smooth34(?5' −?5), where smooth34(?) = ?|?| −0.5, otherwise is an _L_ 1 loss. The mask loss _L_ mask was defined as the average binary cross-entropy loss: ?KLMN = O^5,T^PR?5T ⋅log ?X5TY + [1 −?5T\ log[1 −?X5TY \], where _yij_ is the binary mask at ( _i_, _j_ ) from 5TY + [1 −?5T\ log[1 −?X5TY PO <sup>Q</sup> <sup>∑</sup> O^5,T^PR?5T ⋅log ?X5TY <u>O</u> an ROI of ( _m_ × _m_ ) size on the ground truth mask of class _k_, and ?X5TY is the predicted class label of the same cell. Instead of training the model from scratch, the model weights, except for the network heads, were initialized using those obtained by pretraining on a large-scale object segmentation dataset in general scenes, _i.e._, the MS-COCO dataset <sup>31</sup> . The remaining parts of the network weights were initialized using random values. The optimization was conducted using a stochastic gradient decent with a momentum of 0.9 and a weight decay of 0.0001. Each training epoch consisted of 500 iterations. The training comprised four stages, each lasting for 30 epochs (Fig. 3(c)). For the first two training stages, the learning rate was set to 10 <sup>-3</sup> . The learning rate was decreased to 10 <sup>-4</sup> and 10 <sup>-5</sup> for the last two stages. In the first stage, only the network heads were trained (top row, Fig. 3(c)). Next, the parts of the backbone starting at layer 4 were optimized (second row, Fig. 3(c)). In the third and fourth stages, the entire model (backbone and heads) was trained (third and fourth rows, Fig. 3(c)). The training took 12 h using four GPUs (NVIDIA Tesla V100 with 32 GB memory). To increase the number of training datasets, we used data augmentation techniques including color channel multiplication, 9 rotation, horizontal/vertical flips, and horizontal/vertical shifts. These operations were applied to the training data with a random probability on-line to reduce disk usage (examples of the augmented data are presented in Fig. S8 and Fig. S9). Before being fed to the Mask-RCNN model, each image was resized to 1024 × 1024 px <sup>2</sup> while preserving the aspect ratio, with any remaining space zero padded. To improve the generalization ability of the network, we organized the training of the Mask-RCNN model into two steps. First, the model was trained on mixed datasets consisting of multiple 2D materials (graphene, hBN, MoS2, and WTe2). At this stage, the model was trained to perform segmentation and classification both on material identity and layer thickness. Then, we use the trained weights as a source and performed transfer learning on each material subset to achieve layer thickness classification. By employing this strategy, the feature values that are common to 2D materials behind the network heads were optimized and shared between the different materials. As shown below, the sharing of the backbone network contributed to faster convergence of the network weights and a smaller test loss. Training curve: Fig. 3(d) shows the value of the loss function as a function of the epoch count. The solid (dotted) curves represent the test (training) loss. The training was conducted either with (red curves) or without (blue curves) data augmentation. Without augmentation, the training loss decreased to zero, while the test loss was increased. The difference between the test and training losses was significantly increased with training, which indicates that the generalization error increased and the model overfit the training data <sup>13</sup> . When data augmentation was applied, both the training and validation losses decreased monotonically with training, and the difference between the training and validation losses was small. These results indicate that 10 when 2000 optical microscope images are prepared, the Mask-RCNN model can be trained on 2D materials without overfitting. Transfer learning from the trained model for accurate deep-learning inference models: After training on multiple material categories, we applied transfer learning to the model using each sub-dataset. Fig. 4(a)–(d) show the learning curves for training the networks on the graphene, hBN, MoS2, and WTe2 subsets of the annotated data, respectively. The solid (dotted) curves represent the test (training) loss. The network weights were initialized using those at epoch 120 obtained by training on multiple material classes Fig. 3(d) (red curves, Fig. 4 (a)– (d)). For reference, we also trained the dataset by initializing the network weights using those obtained by pretraining only on the MS-COCO dataset (blue curves, Fig. 4(a)–(d)). Notably, in all cases, the test loss decreased faster for those pretrained on the 2D crystals and MS-COCO than for those pretrained on MS-COCO only. The loss value after 30 epochs of training on 2D crystals and MS-COCO was of almost the same order as that obtained after 80 epochs of training on MS-COCO only. In addition, the minimum loss value achieved in the case of pretraining on 2D crystals and MS-COCO was smaller than that achieved with MS-COCO only. These results indicate that the feature values that are common to 2D materials are learnt in the backbone network. In particular, the trained backbone network weights contribute to improving the model performance on each material. To investigate the improvement of the model accuracy, we compared the inference results for the optical microscope images using the network weights from each training set. Fig. 4(e) and (h) show the optical microscope images of graphene and WTe2, respectively, input into the network. We employed the model weights where the loss value was minimum (indicated by the red/blue arrows). The inference results in the cases of transferring only from MS-COCO and from both MS-COCO and 2D materials are shown in Fig. 4(f) and (g) for 11 graphene and Fig. 4(i) and (j) for WTe2. For graphene, the model transferred from MS-COCO only failed in detecting some thick graphite flakes, as indicated by the white arrows in Fig. 4(f), whereas the model trained on MS-COCO and 2D crystals detected the graphene flakes, as indicated by the white arrows in Fig. 4(g). Similarly, for WTe2, when the inference process was performed using the model transferred from MS-COCO only, the surface of the SiO2/Si substrate surrounded by thick WTe2 crystals was misclassified as WTe2, as indicated by the white arrow in Fig. 4(d). In contrast, when learning was transferred from the model pretrained on MS-COCO and 2D materials (red arrow, Fig. 4(b)), this region was not recognized as WTe2. These results indicate that pretraining on multiple material classes contributes to improving model accuracy because the common properties of 2D crystals are learnt in the backbone network. The inference results presented in Fig. 1 were obtained by utilizing the model weights at epoch 120 for each material. Generalization ability: Finally, we investigated the generalization ability of the neural network for detecting graphene flakes in images obtained using different optical microscope setups (Asahikogaku AZ10-T/E, Keyence VHX-900, and Keyence VHX-5000 as shown in Fig. 5(a)–(c), respectively). Fig. 5(d)–(f) show the optical microscope images of exfoliated graphene captured by each instrument. Across these instruments, there are significant variations in the white balance, magnification, resolution, illumination intensity, and illumination inhomogeneity (Fig. 5(d)–(f)). The model weights from training epoch 120 on the graphene dataset were employed (red arrow, Fig. 4(d)). Even though no optical microscope images recorded by these instruments were utilized for training, as shown by the inference results in Fig. 5(g)–(i), the deep-learning model successfully detected the regions of exfoliated graphene. These results indicate that our trained neural network captured the latent general features of 12 graphene flakes and thus constitutes a general-purpose graphene detector that works irrespective of the optical microscope setup. These properties cannot be realized by utilizing the conventional rule-based detection algorithms for 2D crystals, where the detection parameters must be re-tuned when the optical conditions were altered. Discussion and summary: In order to train the neural network for the 2D crystals which have different appearance such as ZrSe3, the model weights trained on both MS-COCO and 2D crystals obtained in this study can be used as source weights to start training. In our experience, the Mask-RCNN trained on a small dataset of ~80 images from the MS-COCO pretrained model can produce rough segmentation masks on graphene. Therefore, providing less than 80 annotated images would be sufficient for developing a classification algorithm that works for detecting other 2D materials when we use our trained weights as a source. Our work can be utilized as a starting point for developing neural network models which works for various 2D materials. Moreover, the trained neural networks can be utilized for searching the materials other than those used for training. For demonstration, we exfoliated WSe2 and MoSe2 flakes on SiO2/Si substrate and conducted searching with the model trained on WTe2. As shown in Fig. S10 and Fig. S11 in supplementary information, thin WSe2 and MoSe2 flakes are correctly detected even without training on these materials. This result indicates that the difference of the appearances of WSe2 and MoSe2 from WTe2 are covered by the generalization ability of neural networks. Finally, our deep-learning inference process can run on the remote server/client architecture. This architecture is suitable for researchers with an occasional need for deep learning, as it provides a cloud-based setup that does not require a local GPU. The conventional optical microscope instruments that were not covered in this study can also be modified to 13 support deep learning inference by implementing the client software to capture image, send image to the server, receive and display inference results. The distribution of the deep-learning inference system will benefit the research community by saving the time needed for optical microscopy-based searching of 2D materials. In this work, we developed a deep-learning-assisted automated optical microscope to search for 2D crystals on SiO2/Si substrates. A neural network with Mask-RCNN architecture trained on 2D materials enabled the efficient detection of various exfoliated 2D crystals, including graphene, hBN, and transition metal dichalcogenides (WTe2 and MoS2), while simultaneously generating a segmentation mask for each object. This work, which should free researchers from the repetitive tasks of optical microscopy, comprises a fundamental step toward realizing fully automated fabrication systems for van der Waals heterostructures. 14 Fig. 1. Deep-learning-assisted automated optical microscope for searching for two-dimensional 15 (2D) crystals. (a) Schematic of the deep-learning-assisted optical microscope system. The optical microscope acquires an image of exfoliated 2D crystals on a SiO2/Si substrate. The images are input into the deep-learning inference algorithm. The Mask-RCNN architecture generates a segmentation mask, bounding boxes, and class labels. The inference data and images are stored in a cloud database, which forms a searchable database. The customized computer-assisted-design (CAD) software enables browsing of 2D crystals and designing of van der Waals heterostructures. (b) and (c) Photographs of (b) the optical microscope and (c) the computer screen for deep-learning-assisted automated searching. (d)–(k) Segmentation of 2D crystals. Optical microscope images of (d) graphene, (e) hBN, (f) WTe2, and (g) MoS2 on SiO2 (290 nm)/Si. (h)–(k) Inference results for the optical microscope images in (d)–(g), respectively. The segmentation masks and bounding boxes are indicated by polygons and dashed squares, respectively. In addition, the class labels and confidences are displayed. The scale bars correspond to 10 µm. 16 Fig. 2. Comparison between deep-learning and rule-based detection. Input image and inference results under illumination intensities of _I_ = (a) 220, (b) 180, and (c) 90 (arb. unit) for deep learning detection and _I_ = (d) 220, (e) 210, and (f) 180 (arb. unit) for rule-based detection. The scale bars correspond to 10 µm. 17 Fig. 3. Overview of training. (a) Examples of annotated datasets for graphene (G), hBN, WTe2, and MoS2. (b) Training data metrics. (c) Schematic of the training procedure. (d) Learning curves for training on the dataset. The network weights were initialized by the model weights pretrained on the MS-COCO dataset. Solid (dotted) curves are test (train) losses. Training was performed either with (red curve) or without (blue curve) augmentation. 18 Fig. 4. Transfer learning from model weights pretrained on MS-COCO and MS-COCO+2D datasets. (a)–(d) Test (solid curves) and training (dotted curves) losses as a function of epoch count for training on (a) graphene, (b) WTe2, (c) MoS2, and (d) hBN. Each epoch consists of 500 training steps. The model weights were initialized using those pretrained on (blue) MS COCO and (red) MS-COCO and 2D materials datasets. The optical microscope image of graphene (WTe2) and the inference results for these images are shown in (e)–(g) ((h)–(j)). The scale bars correspond to 10 µm. 19 Fig. 5. Generalization ability of the neural network. (a)–(c) Optical microscope setups used for capturing images of exfoliated graphene (Asahikogaku AZ10-T/E, Keyence VHX-900, and Keyence VHX-5000, respectively). (d)–(f) Optical microscope images recorded using instruments (a)–(c), respectively. (g)–(i) Inference results for the optical microscope images in (d)–(f), respectively. The segmentation masks are shown in color, and the category and confidences are also indicated. The scale bars correspond to 10 µm. 20 Methods: Optical microscope drivers: The automated optical microscope drivers were written in C++ and Python. The software stack was developed on the stacks of a robotic operating system <sup>44</sup> and the HALCON image processing library (MVTec Software GmbH). Preparation of training dataset: To obtain the Mask-RCNN model to segment 2D crystals, we employed a semi automatic annotation workflow. First, we trained the Mask-RCNN with a small dataset consisting of ~80 images of graphene. Then, we conducted predictions on optical microscope images of graphene. The prediction labels generated using the Mask-RCNN were stored in LabelBox using API. These labels were manually corrected by a human annotator. This procedure greatly enhanced the annotation efficiency, allowing each image to be labeled in 20– 30 s. Data availability: The data that support the findings of this study are available from the corresponding author upon reasonable request. Acknowledgements: This work was supported by the Core Research for Evolutional Science and Technology, Japan Science and Technology Agency (JST), under Grant Nos. JPMJCR15F3 and JPMJCR16F2, and by JSPS KAKENHI under Grant No. JP19H01820. Author contributions: 21 S. M. conceived the scheme, implemented the software, trained the neural network, and wrote the manuscript. E. W. and Y. S. exfoliated the 2D materials and tested the system. S. O. and T. S. synthesized the WTe2 and WSe2 crystals. K. W. and T. T. synthesized the hBN crystals. T. M. supervised the research program. Competing Interests: The authors declare there are no competing interests. References: 1. Zhao Z-Q, Zheng P, Xu S-t, Wu X. Object detection with deep learning: A review. _IEEE Transactions on Neural Networks and Learning Systems_ 2019. 2. Ren S, He K, Girshick R, Sun J. Faster R-CNN: Towards real-time object detection with region proposal networks. _Advances in Neural Information Processing Systems_ 2015 : 91-99. 3. Girshick R. Fast R-CNN. _Proceedings of the IEEE International Conference on_ _Computer Vision_ 2015 : 1440-1448. 4. Girshick R, Donahue J, Darrell T, Malik J. Rich feature hierarchies for accurate object detection and semantic segmentation. _Proceedings of the IEEE Conference on_ _Computer Vision and Pattern Recognition_ 2014 : 580-587. 5. Liu W, Anguelov D, Erhan D, Szegedy C, Reed S, Fu C-Y _, et al._ SSD: Single shot multibox detector. _European Conference on Computer Vision_ 2016 : 21-37. 6. Garcia-Garcia A, Orts-Escolano S, Oprea SO, Villena-Martinez V, Garcia-Rodriguez J. A review on deep learning techniques applied to semantic segmentation. _arXiv:170406857_ 2017. 7. Badrinarayanan V, Kendall A, Cipolla R. SegNet: A deep convolutional encoderdecoder architecture for image segmentation. _IEEE Transactions on Pattern Analysis_ _and Machine Intelligence_ 2017, 39 (12) : 2481-2495. 8. Ronneberger O, Fischer P, Brox T. U-Net: Convolutional networks for biomedical image segmentation. _International Conference on Medical Image Computing and_ _Computer-assisted Intervention_ 2015 : 234-241. 9. Long J, Shelhamer E, Darrell T. Fully convolutional networks for semantic segmentation. _Proceedings of the IEEE Conference on Computer Vision and Pattern_ _Recognition_ 2015 : 3431-3440. 22 10. Chen L-C, Papandreou G, Kokkinos I, Murphy K, Yuille AL. DeepLab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs. _IEEE Transactions on Pattern Analysis and Machine Intelligence_ 2017, 40 (4) : 834-848. 11. He K, Gkioxari G, Dollár P, Girshick R. Mask R-CNN. _Proceedings of the IEEE_ _International Conference on Computer Vision_ 2017 : 2961-2969. 12. Goodfellow I, Pouget-Abadie J, Mirza M, Xu B, Warde-Farley D, Ozair S _, et al._ Generative adversarial nets. _Advances in Neural Information Processing Systems_ 2014 : 2672-2680. 13. Goodfellow I, Bengio Y, Courville A. _Deep Learning_ . MIT Press, 2016. 14. LeCun Y, Bengio Y, Hinton G. Deep learning. _Nature_ 2015, 521: 436-444. 15. Krizhevsky A, Sutskever I, Hinton GE. Imagenet classification with deep convolutional neural networks. _Advances in Neural Information Processing Systems_ 2012 : 1097-1105. 16. Litjens G, Kooi T, Bejnordi BE, Setio AAA, Ciompi F, Ghafoorian M _, et al._ A survey on deep learning in medical image analysis. _Medical Image Analysis_ 2017, 42: 60-88. 17. Falk T, Mai D, Bensch R, Cicek O, Abdulkadir A, Marrakchi Y _, et al._ U-Net: Deep learning for cell counting, detection, and morphometry. _Nature Methods_ 2019, 16 (1) : 67-70. 18. Moen E, Bannon D, Kudo T, Graf W, Covert M, Van Valen D. Deep learning for cellular image analysis. _Nature Methods_ 2019 : 1. 19. Karpathy. A. Software 2.0. 2017. [cited]Available from: <u>https://medium.com/@karpathy/software-2-0-a64152b37c35</u> 20. Novoselov KS, Mishchenko A, Carvalho A, Castro Neto AH. 2D materials and van der Waals heterostructures. _Science_ 2016, 353 (6298) : aac9439. 21. Novoselov KS, Jiang D, Schedin F, Booth TJ, Khotkevich VV, Morozov SV _, et al._ Two-dimensional atomic crystals. _Proceedings of the National Academy of Sciences_ _of the United States of America_ 2005, 102 (30) : 10451-10453. 22. Novoselov KS, Geim AK, Morozov SV, Jiang D, Zhang Y, Dubonos SV _, et al._ Electric field effect in atomically thin carbon films. _Science_ 2004, 306 (5696) : 666669. 23. Zhang Y, Tan YW, Stormer HL, Kim P. Experimental observation of the quantum Hall effect and Berry's phase in graphene. _Nature_ 2005, 438 (7065) : 201-204. 24. Masubuchi S, Morimoto M, Morikawa S, Onodera M, Asakawa Y, Watanabe K _, et al._ Autonomous robotic searching and assembly of two-dimensional crystals to build van der Waals superlattices. _Nature Communications_ 2018, 9 (1) : 1413. 23 25. Masubuchi S, Machida T. Classifying optical microscope images of exfoliated graphene flakes by data-driven machine learning. _npj 2D Materials and Applications_ 2019, 3 (1) : 4. 26. Nixon MS, Aguado AS. _Feature Extraction & Image Processing for Computer_ _Vision_ . Academic Press, 2012. 27. Szeliski R. _Computer Vision: Algorithms and Applications_ . Springer Science & Business Media, 2010. 28. Ghosh S, Das N, Das I, Maulik U. Understanding deep learning techniques for image segmentation. 2019 : arXiv:1907.06119v06111. 29. Pinheiro PO, Lin T-Y, Collobert R, Dollár P. Learning to refine object segments. _European Conference on Computer Vision_ 2016 : 75-91. 30. Zhao H, Shi J, Qi X, Wang X, Jia J. Pyramid scene parsing network. _Proceedings of_ _the IEEE Conference on Computer Vision and Pattern Recognition_ 2017 : 2881-2890. 31. Lin T-Y, Maire M, Belongie S, Hays J, Perona P, Ramanan D _, et al._ Microsoft COCO: Common objects in context. _European Conference on Computer Vision_ 2014 : 740-755. 32. He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. _Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition_ 2016 : 770-778. 33. Abdulla W. Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow. 2017 [cited]Available from: <u>https://github.com/matterport/Mask_RCNN</u> 34. Chollet F. Keras: Deep learning for humans. 2015 [cited]Available from: <u>https://github.com/keras-team/keras</u> 35. Abadi M, Barham P, Chen J, Chen Z, Davis A, Dean J _, et al._ Tensorflow: A system for large-scale machine learning. _12th USENIX Symposium on Operating Systems_ _Design and Implementation_ 2016 : 265-283. 36. Lin X, Si Z, Fu W, Yang J, Guo S, Cao Y _, et al._ Intelligent identification of twodimensional nanostructures by machine-learning optical microscopy. _Nano Research_ 2018, 11: 6316-6324. 37. Li H, Wu J, Huang X, Lu G, Yang J, Lu X _, et al._ Rapid and reliable thickness identification of two-dimensional nanosheets using optical microscopy. _ACS Nano_ 2013, 7 (11) : 10344-10353. 38. Ni ZH, Wang HM, Kasim J, Fan HM, Yu T, Wu YH _, et al._ Graphene thickness determination using reflection and contrast spectroscopy. _Nano Letters_ 2007, 7 (9) : 2758-2763. 24 39. Nolen CM, Denina G, Teweldebrhan D, Bhanu B, Balandin AA. High-throughput large-area automated identification and quality control of graphene and few-layer graphene films. _ACS Nano_ 2011, 5 (2) : 914-922. 40. Taghavi NS, Gant P, Huang P, Niehues I, Schmidt R, de Vasconcellos SM _, et al._ Thickness determination of MoS 2, MoSe 2, WS 2 and WSe 2 on transparent stamps used for deterministic transfer of 2D materials. _Nano Research_ 2019, 12 (7) : 16911695. 41. Zhang P, Zhong Y, Deng Y, Tang X, Li X. A survey on deep learning of small sample in biomedical image analysis. _arXiv:190800473_ 2019. 42. Hestness J, Narang S, Ardalani N, Diamos G, Jun H, Kianinejad H _, et al._ Deep learning scaling is predictable, empirically. _arXiv:171200409_ 2017. 43. LabelBox. [cited]Available from: <u>https://labelbox.com</u> 44. Quigley M, Conley K, Gerkey B, Faust J, Foote T, Leibs J _, et al._ ROS: an opensource Robot Operating System. _ICRA Workshop on Open Source Software_ 2009. 25 # (Supplementary Information) Deep-Learning-Based Image Segmentation Integrated with Optical Microscopy for Automatically Searching for Two- Dimensional Materials Satoru Masubuchi <sup>1, *</sup>, Eisuke Watanabe <sup>1</sup>, Yuta Seo <sup>1</sup>, Shota Okazaki <sup>2</sup>, Takao Sasagawa <sup>2</sup>, Kenji Watanabe <sup>3</sup>, Takashi Taniguchi <sup>1, 3</sup>, and Tomoki Machida <sup>1, *</sup> _1 Institute of Industrial Science, University of Tokyo, 4-6-1 Komaba, Meguro-ku, Tokyo 153-_ _8505, Japan_ _2 Laboratory for Materials and Structures, Tokyo Institute of Technology, 4259 Nagatsuta,_ _Midori-ku, Yokohama 226-8503, Japan_ _3 National Institute for Materials Science, 1-1 Namiki, Tsukuba, Ibaraki 305-0044, Japan_ *Correspondence: mastoru@iis.u-tokyo.ac.jp, tmachida@iis.u-tokyo.ac.jp 26 Fig. S1. Server/client architecture employed to integrate the deep-learning algorithms with the automated optical microscope to search for 2D flakes. 27 Fig. S2. Examples of true positive detection for WTe2 flakes. The scale bars correspond to 10 µm. 28 Fig. S3. Examples of false positive detection for WTe2 flakes. The scale bars correspond to 10 µm. 29 Fig. S4. Examples of false negative detection for WTe2 flakes. The positions of the WTe2 flakes are indicated by the white arrows. The scale bars correspond to 10 µm. 30 Fig. S5. Examples of true positive detection for graphene. The scale bars correspond to 10 µm. 31 Fig. S6. Examples of false positive detection for graphene. The scale bars correspond to 10 µm. 32 Fig. S7. Examples of false negative detection for graphene flakes. The positions of the graphene flakes are indicted by the white arrows. The scale bars correspond to 10 µm. 33 Table S1. Detection performance results for WTe2 and graphene. 34 Fig. S8. Data augmentation example for WTe2. (a) Input optical microscope image containing WTe2 flakes and (b) augmented images. The scale bars correspond to 20 µm. 35 Fig. S9. Data augmentation example for graphene. (a) Input optical microscope image containing graphene flakes and (b) augmented images. The scale bars correspond to 20 µm. 36 Fig. S10. Detection of WSe2 flakes by deep learning inference. The scale bars correspond to 10µm. 37 Fig. S11. Detection of MoSe2 flakes by deep learning inference. The scale bars correspond to 10µm. 38 <u>Robustness against variations in magnification</u> Fig. S12. Dependence of inference on changes in magnification. (a) and (b) Optical microscope images and inference results for exfoliated graphene on SiO2/Si with objective lens magnifications of (a) 25× and (b) 50×. Note that monolayer graphene flakes were detected at both magnifications. The scale bars correspond to 10 µm. 39 <u>Fabrication of van der Waals heterostructures using 2D crystals detected by deep</u> <u>learning</u> Fig. S13. Optical microscope images of van der Waals heterostructures fabricated using WTe2 crystals detected by deep learning. (a) Trilayer WTe2 in contact with two graphene flakes. (b) Five-layer WTe2 in contact with graphene flakes. Both devices were encapsulated between hBN flakes. The scale bars correspond to 4 µm. 40

섹션 본문 30문단 · 29,116자

(제목 없음)

1Deep-learning algorithms enable precise image recognition based on high-dimensional hierarchical image features.Here, we report the development and implementation of a deep-learning-based image segmentation algorithm in an autonomous robotic system to search for two-dimensional (2D) materials.We trained the neural network based on Mask-RCNN on annotated optical microscope images of 2D materials (graphene, hBN, MoS 2 , and WTe 2 ).The inference algorithm is run on a 1024 × 1024 px 2 optical microscope images for 200 ms, enabling the real-time detection of 2D materials.The detection process is robust against changes in the microscopy conditions, such as illumination and color balance, which obviates the parameter-tuning process required for conventional rule-based detection algorithms.Integrating the algorithm with a motorized optical microscope enables the automated searching and cataloging of 2D materials.This development will allow researchers to utilize a large number of 2D materials simply by exfoliating and running the automated searching process.To facilitate research, we make the training codes, dataset, and model weights publicly available.

INTRODUCTION

2The recent advances in deep-learning technologies based on neural networks have led to the emergence of high-performance algorithms for interpreting images, such as object detection [1][2][3][4][5] , semantic segmentation 4,[6][7][8][9][10] , instance segmentation 11 , and image generation 12 .As neural networks can learn the high-dimensional hierarchical features of objects from large sets of training data 13 , deep-learning algorithms can acquire a high generalization ability to recognize images, i.e., they can interpret images that they have not been shown before, which is one of the traits of artificial intelligence 14 .Soon after the success of deep-learning algorithms in general scene recognition challenges 15 , attempts at automation began for imaging tasks that are conducted by human experts, such as medical diagnosis 16 and biological image analysis 17,18 .However, despite significant advances in image recognition algorithms, the implementation of these tools for practical applications remains challenging 18 because of the unique requirements for developing deep-learning algorithms that necessitate the joint development of hardware, datasets, and software 18,19 .

3In the field of two-dimensional (2D) materials [20][21][22] , the recent advent of autonomous robotic assembly systems has enabled high-throughput searching for exfoliated 2D materials and their subsequent assembly into van der Waals heterostructures 23 .These developments were bolstered by an image recognition algorithm for detecting 2D materials on SiO 2 /Si substrates 23,24 ; however, current implementations have been developed on the framework of conventional rule-based image processing 25,26 , which uses traditional handcrafted image features, such as color contrast, edges, and entropy 23,24 .Although these algorithms are computationally inexpensive, the detection parameters need to be adjusted by experts, with retuning required when the microscopy conditions change.To perform the parameter tuning in conventional rule-based algorithms, one has to manually find at least one sample flake on SiO 2 /Si substrate, every time one exfoliates 2D flakes.Since the exfoliated flakes are sparsely distributed on SiO 2 / Si substrate, e.g., 3-10 thin flakes in 1 × 1 cm 2 SiO 2 /Si substrate for MoS 2 23 , manually finding a flake and tuning parameters requires at least 30 min.The time spent for parameter-tuning process causes degradation of some two-dimensional materials, such as Bi 2 Sr 2 CaCu 2 O 8+δ 27 , even in a glovebox enclosure.In contrast, deep-learning algorithms for detecting 2D materials are expected to be robust against changes in optical microscopy conditions, and the development of such an algorithm would provide a generalized 2D material detector that does not require fine-tuning of the parameters.In general, deep-learning algorithms for interpreting images are grouped into two categories 28 .Fully convolutional approaches employ an encoder-decoder architecture, such as SegNet 7 , U-Net 8 , and SharpMask 29 .In contrast, region-based approaches employ feature extraction by a stack of convolutional neural networks (CNNs), such as Mask-RCNN 11 , PSP Net 30 , and DeepLab 10 .In general, the region-based approaches outperform the fully convolutional approaches for most image segmentation tasks when the networks are trained on a sufficiently large number of annotated datasets 11 .

4In this work, we implemented and integrated deep-learning algorithms with an automated optical microscope to search for 2D materials on SiO 2 /Si substrates.The neural network architecture based on Mask-RCNN enabled the detection of exfoliated 2D materials while generating a segmentation mask for each object.Transfer learning from the network trained on the Microsoft common objects in context (COCO) dataset 31 enabled the development of a neural network from a relatively small (~2000 optical microscope images) dataset of 2D materials.Owing to the generalization ability of the neural network, the detection process is robust against changes in the microscopy conditions.These properties could not be realized using conventional rule-based image recognition algorithms.To facilitate further research, we make the source codes for network training, the model weights, the training dataset, and the optical microscope drivers publicly available.Our implementation can be deployed on optical microscopes other than the instrument utilized in this study.

System architectures and functionalities

5A schematic diagram of our deep-learning-assisted optical microscopy system is shown in Fig. 1a, with photographs shown in Fig. 1b, c.The system comprises three components: (i) an autofocus microscope with a motorized XY scanning stage (Chuo Precision); (ii) a customized software pipeline to capture the optical microscope image, run deep-learning algorithms, display results, and record the results in a database; (iii) a set of trained deep-learning algorithms for detecting 2D materials (graphene, hBN, MoS 2 , and WTe 2 ).By combining these components, the system can automatically search for 2D materials exfoliated on SiO 2 /Si substrates (Supplementary Movie 1 and 2).When 2D flakes are detected, their positions and shapes are stored in a database (sample record is presented in supplementary information), which can be browsed and utilized to assemble van der Waals heterostructures with a robotic system 23 .The key component developed in this study was the set of trained deep-learning algorithms for detecting 2D materials in the optical microscope images.Algorithm development required three steps, namely, preparation of a large dataset of annotated optical microscope images, training of the deep-learning algorithm on the dataset, and deploying the algorithm to run inference on optical microscope images.

6The deep-learning model we employed was Mask-RCNN 11 (Fig. 1a), which predicts objects, bounding boxes, and segmentation masks in images.When an image is input into the network, the deep convolutional network ResNet101 32 extracts the positionaware high-dimensional features.These features are passed to the region proposal network (RPN) and the region of interest alignment network (ROI Align), which propose candidate regions where the targeted objects are located.The full connection network performs classification (Class) and regression for the bounding box (BBox) of the detected objects.Finally, the convolutional network generates segmentation masks for the objects using the output of the ROI Align layer.This model was developed on the Keras/TensorFlow framework [33][34][35] .

7To train the Mask-RCNN model, we prepared annotated images and trained networks as follows.In general, the performance of a deep-learning network is known to scale with the size of the dataset 36 .To collect a large set of optical microscope images containing 2D materials, we exfoliated graphene (covalent material), MoS 2 (2D semiconductors), WTe 2 , and hBN crystals onto SiO 2 /Si substrates.Using the automated optical microscope, we collected ~2100 optical microscope images containing graphene, MoS 2 , WTe 2 , and hBN flakes.The images were annotated manually using a web-based labeling tool 37 .The training was performed by the stochastic gradient decent method described later in this paper.

8We show the inference results for optical microscope images containing 2D materials.Figure 1c-f shows optical microscope images of graphene, WTe 2 , MoS 2 , and hBN flakes, which were input into the neural network.The inference results shown in Fig. 1g-j consist of bounding boxes (colored squares), class labels (text), confidences (numbers), and masks (colored polygons).For the layer thickness classification, we defined three categories: "mono" (1 layer), "few" (2-10 layers), and "thick" (10-40 layers).Note that this categorization was sufficient for practical use in the first screening process because final verification of the layer thickness can be conducted either by manual inspection or by using the computational post process, such as color contrast analysis 24,[38][39][40][41][42] , which would be interfaced with the deep-learning algorithms in the future works.As indicated in Fig. 1g-j, the 2D flakes are detected by the Mask-RCNN, and the segmentation mask exhibits good overlap with the 2D flakes.The layer thickness was also correctly classified, with monolayer graphene classified as "mono".The detection process is robust against contaminating objects, such as scotch tape residue, particles, and corrugated 2D flakes (white arrows, Fig. 1e, f, I, j).

9As the neural network locates 2D crystals using the highdimensional hierarchical features of the image, the detection results were unchanged when the illumination conditions were varied (Supplementary Movie 3). Figure 2a-c shows the deeplearning detection of graphene flakes under differing illumination intensities (I).For comparison, the results obtained using conventional rule-based detection are presented in Fig. 2d-f.For the deep-learning case, the results were not affected by changing the illumination intensity from I = 220 (a) to 180 (b) or 90 (c) (red, blue, and green curves, Fig. 2).In contrast, with rule-based detection, a slight decrease in the light intensity from I = 220 (d) to 200 (e) affected the results significantly, and the graphene flakes became undetectable.Further decreasing the illumination intensity to I = 180 (f) resulted in no objects being detected.These results demonstrate the robustness of the deep-learning algorithms over conventional rule-based image processing for detecting 2D flakes.

10The deep-learning model was integrated with a motorized optical microscope by developing a customized software pipeline using C++ and Python.We employed a server/client architecture to integrate the deep-learning inference algorithms with the conventional optical microscope (Supplementary Fig. 1).The image captured by the optical microscope is sent to the inference server, and the inference results are sent back to the client computer.The deep-learning model can run on a graphicsprocessing unit (NVIDIA Tesla V100) at 200 ms.Including the overheads for capturing images, transferring image data, and displaying inference results, frame rates of ~1 fps were achieved.To investigate the applicability of the deep-learning inference to searching for 2D crystals, we selected WTe 2 crystals as a testbed because the exfoliation yields of transition metal dichalcogenides are significantly smaller than graphene flakes.We exfoliated WTe 2 crystals onto 1 × 1 cm 2 SiO 2 /Si substrates, and then conducted searching, which was completed in 1 h using a ×50 objective lens.Searching identified ~25 WTe 2 flakes on 1 × 1 cm 2 SiO 2 /Si with various thicknesses (1-10 layers; Supplementary Fig. 2).

11To quantify the performance of the Mask-RCNN detection process, we manually checked over 2300 optical microscope images, and the detection metrics are summarized in Supplementary Table 1.Here, we defined true-and false-positive detections (TP and FP) as whether the optical microscope image contained at least one correctly detected 2D crystal or not (examples are presented in Supplementary Figs 2-7).An image in which the 2D crystal was not correctly detected was considered a false negative (FN).Based on these definitions, the value of precision was TP/(TP + FP) ~0.53, which implies that over half of the optical microscope images with positive detection contained WTe 2 crystals.Notably, the recall (TP/(TP + FN) ~0.93) was significantly high.In addition, the examples of false-negative detection contain only small fractured WTe 2 crystals, which cannot be utilized for assembling van der Waals heterostructures.These results imply that the deep-learning-based detection process does not miss usable 2D crystals.This property is favorable for the practical application of deep-learning algorithms to searching for 2D crystals, as exfoliated 2D crystals are usually sparsely distributed over SiO 2 /Si substrates.In this case, false-positive detection is less problematic than missing 2D crystals (false negative).The screening of the results can be performed by a human operator without significant intervention 43 .In the case of graphene (Supplementary Table 1), both the precision and recall were high (~0.95 and ~0.97, respectively), which implies excellent performance of the deep-learning algorithm for detecting 2D crystals.We speculate that there is a difference between the exfoliation yields of graphene and WTe 2 because the mean Input Inference average precision (mAP) at the intersection of union (IOU) over 50% mAP@IoU 50% with respect to the annotated dataset (see preparation methods below) for each material does not differ significantly (0.49 for graphene and 0.52 for WTe 2 ).As demonstrated above, these values are sufficiently high and can be successfully applied to searches for 2D crystals.These results indicate that the deep-learning inference can be practically utilized to search for 2D crystals.

Model training

12The Mask-RCNN model was trained on a dataset, where Fig. 3a shows representative annotated images, and Fig. 3b shows the annotation metrics.

13where L cls , L box , and L mask are the classification, localization, and segmentation mask losses, respectively; α -γ is the control parameter for tuning the balance between the loss sets as (α, β, γ) = (0.6, 1.0, 1.0).The class loss was

14where p = (p 0 , …, p k ) is the probability distribution for each region of interest in which the result of classification is u.The bounding box loss L box is defined as

15where smooth L1 x ð Þ ¼ 0:5x 2 ; x j j<1 x j j À 0:5; otherwise & is an L 1 loss.The mask loss L mask was defined as the average binary cross-entropy loss:

16where y ij is the binary mask at (i, j) from an ROI of (m × m) size on the ground truth mask of class k, and ŷk ij is the predicted class label of the same cell.Instead of training the model from scratch, the model weights, except for the network heads, were initialized using those obtained by pretraining on a large-scale object segmentation dataset in general scenes, i.e., the MS-COCO dataset 31 .The remaining parts of the network weights were initialized using random values.The optimization was conducted using a stochastic gradient decent with a momentum of 0.9 and a weight decay of 0.0001.Each training epoch consisted of 500 iterations.The training comprised four stages, each lasting for 30 epochs (Fig. 3c).For the first two training stages, the learning rate was set to 10-3.The learning rate was decreased to 10-4 and 10-5 for the last two stages.In the first stage, only the network heads were trained (top row, Fig. 3c).Next, the parts of the backbone starting at layer 4 were optimized (second row, Fig. 3c).In the third and fourth stages, the entire model (backbone and heads) was trained (third and fourth rows, Fig. 3c).The training took 12 h using four GPUs (NVIDIA Tesla V100 with 32-GB memory).To increase number of training datasets, we used data augmentation techniques, including color channel multiplication, rotation, horizontal/vertical flips, and horizontal/vertical shifts.These operations were applied to the training data with a random probability online to reduce disk usage (examples of the augmented data are presented in Supplementary Figs 8 and 9).Before being fed to the Mask-RCNN model, each image was resized to 1024 × 1024 px 2 while preserving the aspect ratio, with any remaining space zero padded.

17To improve the generalization ability of the network, we organized the training of the Mask-RCNN model into two steps.First, the model was trained on mixed datasets consisting of multiple 2D materials (graphene, hBN, MoS 2 , and WTe 2 ).At this stage, the model was trained to perform segmentation and classification, both on material identity and layer thickness.Then, we use the trained weights as a source, and performed transfer learning on each material subset to achieve layer thickness classification.By employing this strategy, the feature values that are common to 2D materials behind the network heads were optimized and shared between the different materials.As shown below, the sharing of the backbone network contributed to faster convergence of the network weights and a smaller test loss.Training curve Figure 3d shows the value of the loss function as a function of the epoch count.The solid (dotted) curves represent the test (training) loss.The training was conducted either with (red curves) or without (blue curves) data augmentation.Without augmentation, the training loss decreased to zero, while the test loss was increased.The difference between the test and training losses was significantly increased with training, which indicates that the generalization error increased, and the model overfits the training data 13 .When data augmentation was applied, both the training and validation losses decreased with training, and the difference between the training and validation losses was small.These results indicate that when 2000 optical microscope images are prepared, the Mask-RCNN model can be trained on 2D materials without overfitting.

Transfer learning

18After training on multiple material categories, we applied transfer learning to the model using each sub-dataset.Figure 4a-d shows the learning curves for training the networks on the graphene, hBN, MoS 2 , and WTe 2 subsets of the annotated data, respectively.The solid (dotted) curves represent the test loss.The network weights were initialized using those at epoch 120 obtained by training on multiple material classes (Fig. 3d) (red curves, Fig. 4a-d).For reference, we also trained the dataset by initializing the network weights using those obtained by pretraining only on the MS-COCO dataset (blue curves, Fig. 4a-d).Notably, in all cases, the test loss decreased faster for those pretrained on the 2D crystals and MS-COCO than for those pretrained on MS-COCO only.The loss value after 30 epochs of training on 2D crystals and MS-COCO was of almost the same order as that obtained after 80 epochs of training on MS-COCO only.In addition, the minimum loss value achieved in the case of pretraining on 2D crystals and MS-COCO was smaller than that achieved with MS-COCO only.These results indicate that the feature values that are common to 2D materials are learnt in the backbone network.In particular, the trained backbone network weights contribute to improving the model performance on each material.

19To investigate the improvement of the model accuracy, we compared the inference results for the optical microscope images using the network weights from each training set. Figure 4e-h shows the optical microscope images of graphene and WTe 2 , respectively, input into the network.We employed the model weights where the loss value was minimum (indicated by the red/ blue arrows).The inference results in the cases of transferring only from MS-COCO, and from both MS-COCO and 2D materials, are shown in Fig. 4f, g for graphene, and Fig. 4I, j for WTe 2 .For graphene, the model transferred from MS-COCO only failed in detecting some thick graphite flakes, as indicated by the white arrows in Fig. 4f, whereas the model trained on MS-COCO and 2D crystals detected the graphene flakes, as indicated by the white arrows in Fig. 4g.Similarly, for WTe 2 , when the inference process was performed using the model transferred from MS-COCO only, the surface of the SiO 2 /Si substrate surrounded by thick WTe 2 crystals was misclassified as WTe 2 , as indicated by the white arrow in Fig. 4d.In contrast, when learning was transferred from the model pretrained on MS-COCO and 2D materials (red arrow, Fig. 4b), this region was not recognized as WTe 2 .These results indicate that pretraining on multiple material classes contributes to improving model accuracy because the common properties of 2D crystals are learnt in the backbone network.The inference results presented in Fig. 1 were obtained by utilizing the model weights at epoch 120 for each material.

20Generalization ability Finally, we investigated the generalization ability of the neural network for detecting graphene flakes in images obtained using different optical microscope setups (Asahikogaku AZ10-T/E, Keyence VHX-900, and Keyence VHX-5000 as shown in Fig. 5a-c respectively).Figure 5d-f shows the optical microscope images of exfoliated graphene captured by each instrument.Across these instruments, there are significant variations in the white balance, magnification, resolution, illumination intensity, and illumination inhomogeneity (Fig. 5d-f).The model weights from training epoch 120 on the graphene dataset were employed (red arrow, Fig. 4d).Even though no optical microscope images recorded by these instruments were utilized for training, as shown by the inference results in Fig. 5g-i, the deep-learning model successfully detected the regions of exfoliated graphene.These results indicate that our trained neural network captured the latent general of graphene flakes, and thus constitutes a general-purpose graphene detector that works irrespective of the optical microscope setup.These properties cannot be realized by utilizing the conventional rule-based detection algorithms for 2D crystals, where the detection parameters must be retuned when the optical conditions were altered.

DISCUSSION

21In order to train the neural network for the 2D crystals that have different appearance, such as ZrSe 3 , the model weights trained on both MS-COCO and 2D crystals obtained in this study can be used as source weights to start training.In our experience, the Mask-RCNN trained on a small dataset of ~80 images from the MS-COCO pretrained model can produce rough segmentation masks on graphene.Therefore, providing <80 annotated images would be sufficient for developing a classification algorithm that works for detecting other 2D materials when we use our trained weights as a source.Our work can be utilized as a starting point for developing neural network models that work for various 2D materials.

22Moreover, the trained neural networks can be utilized for searching the materials other than those used for training.For demonstration, we exfoliated WSe Finally, our deep-learning inference process can run on the remote server/client architecture.This architecture is suitable for researchers with an occasional need for deep learning, as it provides a cloud-based setup that does not require a local GPU.The conventional optical microscope instruments that were not covered in this study can also be modified to support deeplearning inference by implementing the client software to capture an image, send an image to the server, receive, and display inference results.The distribution of the deep-learning inference system will benefit the research community by saving the time needed for optical microscopy-based searching of 2D materials.In this work, we developed a deep-learning-assisted automated optical microscope to search for 2D crystals on SiO 2 /Si substrates.A neural network with Mask-RCNN architecture trained on 2D materials enabled the efficient detection of various exfoliated 2D crystals, including graphene, hBN, and transition metal dichalcogenides (WTe 2 and MoS 2 ), while simultaneously generating a segmentation mask for each object.This work, along with the recent other attempts for utilizing the deep-learning algorithms [44][45][46] , should free researchers from the repetitive tasks of optical microscopy, and comprises a fundamental step toward realizing fully automated fabrication systems for van der Waals heterostructures.To facilitate such research, we make the source codes for training, the model weights, the training dataset, and the optical microscope drivers publicly available.

Optical microscope drivers

23The automated optical microscope drivers were written in C++ and Python.The software stack was developed on the stacks of a robotic operating system 47 and the HALCON image-processing library (MVTec Software GmbH).

Preparation of the training dataset

24To obtain the Mask-RCNN model to segment 2D crystals, we employed a semiautomatic annotation workflow.First, we trained the Mask-RCNN with a small dataset consisting of ~80 images of graphene.Then, we conducted predictions on optical microscope images of graphene.The prediction labels generated using the Mask-RCNN were stored in LabelBox using API.These labels were manually corrected by a human annotator.This procedure greatly enhanced the annotation efficiency, allowing each image to be labeled in 20-30 s.

Fig. 2

25Fig. 2 Comparison between deep-learning and rule-based detection.Input image and inference results under illumination intensities of I = a 220, b 180, and c 90 (arb.unit) for deep-learning detection, and I = d 220, e 210, and f 180 (arb.unit) for rule-based detection.The scale bars correspond to 10 µm.

Fig. 1

26Fig. 1 Deep-learning-assisted automated optical microscope for searching for two-dimensional (2D) crystals.a Schematic of the deeplearning-assisted optical microscope system.The optical microscope acquires an image of exfoliated 2D crystals on a SiO 2 /Si substrate.The images are input into the deep-learning inference algorithm.The Mask-RCNN architecture generates a segmentation mask, bounding boxes, and class labels.The inference data and images are stored in a cloud database, which forms a searchable database.The customized computerassisted-design (CAD) software enables browsing of 2D crystals, and designing of van der Waals heterostructures.b, c Photographs of (b) the optical microscope and (c) the computer screen for deep-learning-assisted automated searching.d-k Segmentation of 2D crystals.Optical microscope images of (d) graphene, (e) hBN, (f) WTe 2 , and (g) MoS 2 on SiO 2 (290 nm)/Si.h-k Inference results for the optical microscope images in d-g, respectively.The segmentation masks and bounding boxes are indicated by polygons and dashed squares, respectively.In addition, the class labels and confidences are displayed.The contaminating objects, such as scotch tape residue, particles, and corrugated 2D flakes, are indicated by the white arrows in e, f, i, and j.The scale bars correspond to 10 µm.

Fig. 3

27Fig. 3 Overview of training.a Examples of annotated datasets for graphene (G), hBN, WTe 2 , and MoS 2 .b Training data metrics.c Schematic of the training procedure.d Learning curves for training on the dataset.The network weights were initialized by the model weights pretrained on the MS-COCO dataset.Solid (dotted) curves are test (train) losses.Training was performed either with (red curve) or without (blue curve) augmentation.

Fig. 4

28Fig. 4 Transfer learning from model weights pretrained on MS-COCO and MS-COCO+2D datasets.a-d Test (solid curves) and training (dotted curves) losses as a function of epoch count for training on a graphene, b WTe 2 , c MoS 2 , and d hBN.Each epoch consists of 500 training steps.The model weights were initialized using those pretrained on (blue) MS-COCO and (red) MS-COCO and 2D material datasets.The optical microscope image of graphene (WTe 2 ) and the inference results for these images are shown in e-g (h-j).The scale bars correspond to 10 µm.

292 and MoSe 2 flakes on SiO 2 /Si substrate, and conducted searching with the model trained on WTe 2 .As shown in Supplementary Figs 10 and 11 in supplementary information, thin WSe 2 and MoSe 2 flakes are correctly detected even without training on these materials.This result indicates that the difference of the appearances of WSe 2 and MoSe 2 from WTe 2 are covered by the generalization ability of neural networks.

Fig. 5

30Fig. 5 Generalization ability of the neural network.a-c Optical microscope setups used for capturing images of exfoliated graphene (Asahikogaku AZ10-T/E, Keyence VHX-900, and Keyence VHX-5000, respectively).d-f Optical microscope images recorded using instruments (a-c), respectively.g-i Inference results for the optical microscope images in d-f, respectively.The segmentation masks are shown in color, and the category and confidences are also indicated.The scale bars correspond to 10 µm.

참고문헌 49건

  1. Feature Extraction &amp; Image Processing for Computer Vision Elsevier eBooks · Elsevier BV · 2012 10.1016/c2011-0-06935-1
  2. Fast R-CNN 2015 10.1109/iccv.2015.169
  3. Microsoft COCO: Common Objects in Context Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-10602-1_48
  4. 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
  5. Fully convolutional networks for semantic segmentation 2015 10.1109/cvpr.2015.7298965
  6. Electric Field Effect in Atomically Thin Carbon Films Science · American Association for the Advancement of Science · 2004 10.1126/science.1102896
  7. GAN(Generative Adversarial Nets) Journal of Japan Society for Fuzzy Theory and Intelligent Informatics · Japan Society for Fuzzy Theory and Intelligent Informatics · 2017 10.3156/jsoft.29.5_177_2
  8. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation 2014 10.1109/cvpr.2014.81
  9. Rapid and Reliable Thickness Identification of Two-Dimensional Nanosheets Using Optical Microscopy ACS Nano · American Chemical Society · 2013 10.1021/nn4047474
  10. Experimental observation of the quantum Hall effect and Berry's phase in graphene Nature · Nature Portfolio · 2005 10.1038/nature04235
  11. Computer vision: algorithms and applications Choice Reviews Online · Association of College and Research Libraries · 2011 10.5860/choice.48-5140
  12. Two-dimensional atomic crystals Proceedings of the National Academy of Sciences · National Academy of Sciences · 2005 10.1073/pnas.0502848102
  13. High-Throughput Large-Area Automated Identification and Quality Control of Graphene and Few-Layer Graphene Films ACS Nano · American Chemical Society · 2011 10.1021/nn102107b
  14. Graphene Thickness Determination Using Reflection and Contrast Spectroscopy Nano Letters · American Chemical Society · 2007 10.1021/nl071254m
  15. ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
  16. SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
  17. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  18. Learning to Refine Object Segments Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_5
  19. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2017.2699184
  20. 2D materials and van der Waals heterostructures Science · American Association for the Advancement of Science · 2016 10.1126/science.aac9439
  21. Pyramid Scene Parsing Network 2017 10.1109/cvpr.2017.660
  22. A survey on deep learning in medical image analysis Medical Image Analysis · Elsevier BV · 2017 10.1016/j.media.2017.07.005
  23. A Review on Deep Learning Techniques Applied to Semantic Segmentation arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1704.06857
  24. Faster R-CNN: towards real-time object detection with region proposal networks Neural Information Processing Systems · 2015
  25. Deep Learning Scaling is Predictable, Empirically arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1712.00409
  26. Intelligent identification of two-dimensional nanostructures by machine-learning optical microscopy Nano Research · Springer Science+Business Media · 2018 10.1007/s12274-018-2155-0
  27. Autonomous robotic searching and assembly of two-dimensional crystals to build van der Waals superlattices Nature Communications · Nature Portfolio · 2018 10.1038/s41467-018-03723-w
  28. A survey on deep learning techniques for image and video semantic segmentation Applied Soft Computing · Elsevier BV · 2018 10.1016/j.asoc.2018.05.018
  29. Object Detection With Deep Learning: A Review IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tnnls.2018.2876865
  30. U-Net: deep learning for cell counting, detection, and morphometry Nature Methods · Nature Portfolio · 2018 10.1038/s41592-018-0261-2
  31. ROS: an open-source Robot Operating System International Conference on Robotics and Automation · 2009
  32. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  33. Classifying optical microscope images of exfoliated graphene flakes by data-driven machine learning npj 2D Materials and Applications · Nature Portfolio · 2019 10.1038/s41699-018-0084-0
  34. Thickness determination of MoS2, MoSe2, WS2 and WSe2 on transparent stamps used for deterministic transfer of 2D materials Nano Research · Springer Science+Business Media · 2019 10.1007/s12274-019-2424-6
  35. Deep learning for cellular image analysis Nature Methods · Nature Portfolio · 2019 10.1038/s41592-019-0403-1
  36. TensorFlow: A system for large-scale machine learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1605.08695
  37. Deep Learning Enabled Fast Optical Characterization of Two-Dimensional Materials arXiv (Cornell University) · Cornell University · 2019
  38. Understanding Deep Learning Techniques for Image Segmentation arXiv (Cornell University) · Cornell University · 2019
  39. Mask R-CNN 2017 10.1109/iccv.2017.322
  40. 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
  41. A Survey on Deep Learning of Small Sample in Biomedical Image Analysis arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1908.00473
  42. High-temperature superconductivity in monolayer Bi2Sr2CaCu2O8+δ Nature · Nature Portfolio · 2019 10.1038/s41586-019-1718-x
  43. Deep-learning-based quality filtering of mechanically exfoliated 2D crystals npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0262-4
  44. Intelligent identification of two-dimensional nanostructures by machine-learning optical microscopy Nano Research · Springer Science+Business Media · 2018 10.1007/s12274-018-2155-0
  45. Thickness determination of MoS2, MoSe2, WS2 and WSe2 on transparent stamps used for deterministic transfer of 2D materials Nano Research · Springer Science+Business Media · 2019 10.1007/s12274-019-2424-6
  46. Rapid and Reliable Thickness Identification of Two-Dimensional Nanosheets Using Optical Microscopy ACS Nano · American Chemical Society · 2013 10.1021/nn4047474
  47. SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
  48. Computer Vision Texts in computer science · Springer International Publishing · 2010 10.1007/978-1-84882-935-0
  49. Fully automated identification of 2D material samples arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.1911.00066