Single-image based deep learning for precise atomic defects identification

Kangshu Li, Xiaocang Han, Yanhui Hong, Meng Yuan, Xiang Chen, Junxian Li, Jing‐Yang You, Lin Yao, Wenchao Hu, Zhiyi Xia, Guolin Ke, Linfeng Zhang, Jin Zhang, Xiaoxu Zhao · DOI

Abstract: Defect engineering has been profoundly employed to confer desirable functionality to materials that pristine lattices inherently lack. Although single atomic-resolution scanning transmission electron microscopy (STEM) images are widely accessible for defect engineering, harnessing atomic-scale images containing various defects through traditional image analysis methods is hindered by random noise and human bias. Yet the rise of deep learning (DL) offering an alternative approach, its widespread application is primarily restricted by the need for large amounts of training data with labeled ground truth. In this study, we propose a two-stage method to address the problems of high annotation cost and image noise in the detection of atomic defects in monolayer 2D materials. In the first stage, to tackle the issue of data scarcity, we employ a two-state transformation network based on U-GAT-IT for adding realistic noise to simulated images with pre-located ground truth labels, thereby infinitely expanding the training dataset. In the second stage, atomic defects in monolayer 2D materials are effectively detected with high accuracy using U-Net models trained with the data generated in the first stage, avoiding random noise and human bias issues. In both stages, we utilize segmented unit-cell-level images to simplify the model's task and enhance its accuracy. Our results demonstrate that not only sulfur vacancies, we are also able to visualize oxygen dopants in monolayer MoS2, which are usually overwhelmed by random background noise. As the training was based on a few segmented unit-cell-level realistic images, this method can be readily extended to other 2D materials. Therefore, our results outline novel ways to train the model with minimized datasets, offering great opportunities to fully exploit the power of machine learning (ML) applicable to a broad materials science community.

Introduction

Scanning Transmission Electron Microscopy (STEM) has become an indispensable tool for "defect engineering," allowing researchers to visualize individual atoms and intentionally introduce defects to tune the electronic or magnetic properties of 2D materials. However, extracting reliable data from these images is challenging. STEM images are frequently degraded by random noise, scanning distortions, and sample contamination, which obscure subtle atomic features.

The Challenge: Noise and Human Bias

Traditionally, defect identification relies on manual intensity analysis or histogram-based methods. These approaches are not only time-consuming but also highly subjective. In this study, the researchers demonstrated this subjectivity by asking seven experts to label the same STEM images. The resulting disparities, measured by Fleiss’ Kappa, confirmed that human intuition is an unreliable "ground truth" for identifying subtle atomic defects. While deep learning (DL) could automate this process, standard models require thousands of labeled images—a luxury rarely available in specialized microscopy experiments where every image has a unique "noise fingerprint."

Methodology: GAN-Based Noise Augmentation

To overcome the data scarcity problem, the authors developed a two-stage "dynamically evolved" deep learning workflow. The core innovation lies in treating microscope noise as an image "style" that can be learned and replicated.

Overview of the two-stage deep learning workflow, illustrating the segmentation of experimental images and the GAN-based noise augmentation process.
  1. Noise Augmentation (U-GAT-IT): The team utilized an unsupervised generative network, U-GAT-IT, to learn the specific noise profile of a single experimental image. By segmenting the image into "unit-cell-level" patches (primitive units containing only two atomic columns), they effectively multiplied the available training data. The GAN then translates this learned noise onto clean, simulated images where the exact location of every defect is already known. This creates an infinite supply of realistic, pre-labeled training data.
  2. Defect Identification (U-Net): These augmented images are used to train a U-Net architecture for image segmentation. Because the model is trained on noise that perfectly matches the experimental conditions, it becomes highly specialized at filtering out that specific background to pinpoint defects.

Results and Performance

The effectiveness of this approach is demonstrated by the high degree of realism in the generated images. The Fréchet Inception Distance (FID), a metric for image similarity, dropped from 633 for raw simulations to 91 for the fine-tuned GAN output, indicating a near-perfect match to experimental noise profiles.

Performance comparison and confusion matrices showing that the model trained on fine-tuned U-GAT-IT processed data significantly outperforms those trained on raw simulations.

Quantitatively, the U-Net trained on GAN-augmented data achieved an F1 score of 0.73 for disulfide vacancies, a significant improvement over the 0.62 achieved by models trained on standard simulations. Perhaps most impressively, the method successfully identified oxygen dopants in MoS₂. These atoms have a low atomic number (Z) and produce signals so faint they are typically buried in background noise, making them nearly invisible to traditional analysis.

Conclusion and Future Outlook

This single-image-based approach offers a powerful solution for the materials science community, enabling high-precision defect analysis without the need for massive, manually labeled datasets. While currently optimized for 2D monolayer materials like MoS₂ and WSe₂, the unit-cell-level training strategy makes the method easily adaptable to other crystal structures. Future work will aim to extend this capability to 3D bulk materials and more complex structural features such as grain boundaries and dislocation cores.

Summary updated

BibTeX
@inproceedings{li2024single,
  author = {Kangshu Li and Xiaocang Han and Yanhui Hong and Meng Yuan and Xiang Chen and Junxian Li and Jing‐Yang You and Lin Yao and Wenchao Hu and Zhiyi Xia and Guolin Ke and Linfeng Zhang and Jin Zhang and Xiaoxu Zhao},
  title = {{Single-image based deep learning for precise atomic defects identification}},
  booktitle = {Nano},
  year = {2024},
  doi = {10.1021/acs.nanolett.4c02654},
}
Figure