Detection of intensity peaks in high-resolution transmission electron microscopy image based on YOLOv3

Nan Hu, Xiao-Jing Ma, Haibo Zhao, Shaojie Tang, Weihua Liu, Dawei Wang, Chun‐Lin JiaActa 2020

Abstract The detection of intensity peaks, which correspond to atom positions, in high-resolution (scanning) transmission electron microscopy images is of great practical significance. By quantitatively determining the locations of these peaks, it is possible to obtain important information such as the structural deformation and the electric dipole distribution inside a material on the nanoscale. In this paper, we realize the automatic detection of the intensity peaks in high-resolution electron microscopy images by building a high-quality atomic image sample set and using the YOLOv3 target detection framework. The YOLOv3 network converges well in the training process, and the trained neural network can detect almost all the major atoms in the images. Combining YOLOv3 with a newly developed algorithm, almost all the atoms can be successfully determined, showing advantages over previous algorithms based on Bravais lattice construction, especially for images with lattice defects. Our results show that this image processing technique has the potential to overcome the bottleneck in the fast processing of high-resolution electron microscopy images.

Introduction

High-resolution transmission electron microscopy (HRTEM) and scanning TEM (STEM) allow scientists to visualize materials at the atomic scale. However, converting these images into quantitative data—such as local strain or electric polarization—remains a significant bottleneck. Researchers must precisely locate the center of every atom "peak" in an image, a task traditionally performed through manual labeling or brittle template-matching algorithms.

Traditional methods often require a perfect, periodic crystal structure to function correctly. When faced with noise, sample drift, or lattice defects like dislocations, these algorithms frequently fail. As modern microscopes produce an explosive amount of data, the field requires an automated atom-detection system that is both fast and robust to real-world imperfections.

Methods

The authors utilized YOLOv3 (You Only Look Once, version 3), a popular real-time object detection framework, to automate peak detection:

  1. Detection: YOLOv3 was trained to recognize "atom peaks" as targets. Unlike traditional filters, the neural network learns hierarchical features, making it less sensitive to background noise.
  2. Sub-pixel Refinement: To achieve the precision required for materials science, the authors added a post-processing step using a 2D Gaussian fit to the intensity data within each detected bounding box to find the atom's center with picometer-level accuracy.
  3. Hierarchical Logic: For complex crystals (e.g., perovskites), YOLOv3 identifies the "strong" atoms first. A geometric program then constructs the unit cell to locate "weaker" secondary atoms based on the established lattice.

Datasets

The study employed a custom-built dataset of 403 high-resolution images (416 × 416 pixels), encompassing both TEM and STEM modalities. The training set included 367 images, while 36 were used for testing. Atoms were manually annotated using labelImg. Interestingly, the researchers found that labeling approximately 90% of atoms in dense images was sufficient for effective network training.

Key Results and Insights

The YOLOv3 framework demonstrated significant advantages in accuracy, speed, and robustness:

  • Breaking Periodicity Requirements: Because YOLOv3 analyzes local pixel features rather than global periodicity, it can identify atoms even when they are displaced by defects or dislocations—scenarios where traditional Bravais lattice algorithms typically fail.
  • Optimized Detection: By lowering the standard YOLO confidence threshold to 0.1, the system achieved nearly 100% recall of major atom peaks without a significant increase in false detections.
  • High-Speed Processing: The model processes images at a rate of approximately 7.3 seconds per 1024x1024 frame, potentially enabling real-time analysis during active microscopy sessions.
Automated detection of atom positions in an HRTEM image using the YOLOv3 framework. Green markers indicate successfully identified atomic columns.

Conclusion and Future Work

While the detection of major atoms is nearly solved, the authors noted that highly diffuse or weak peaks in heavily distorted defect regions can still be missed. Future work will focus on making the "lattice organizer" more flexible to handle completely amorphous materials or highly complex interfaces. This framework serves as a critical stepping stone toward fully automated, real-time processing of big data in materials science.

Summary updated

BibTeX
@inproceedings{hu2020detection,
  author = {Nan Hu and Xiao-Jing Ma and Haibo Zhao and Shaojie Tang and Weihua Liu and Dawei Wang and Chun‐Lin Jia},
  title = {{Detection of intensity peaks in high-resolution transmission electron microscopy image based on YOLOv3}},
  booktitle = {Acta},
  year = {2020},
  doi = {10.7498/aps.70.20201502},
}
Figure