Abstract
Atom segmentation and localization, noise reduction and deblurring of atomic-resolution scanning transmission electron microscopy (STEM) images with high precision and robustness is a challenging task. Although several conventional algorithms, such has thresholding, edge detection and clustering, can achieve reasonable performance in some predefined sceneries, they tend to fail when interferences from the background are strong and unpredictable. Particularly, for atomic-resolution STEM images, so far there is no well-established algorithm that is robust enough to segment or detect all atomic columns when there is large thickness variation in a recorded image. Herein, we report the development of a training library and a deep learning method that can perform robust and precise atom segmentation, localization, denoising, and super-resolution processing of experimental images. Despite using simulated images as training datasets, the deep-learning model can self-adapt to experimental STEM images and shows outstanding performance in atom detection and localization in challenging contrast conditions and the precision consistently outperforms the state-of-the-art two-dimensional Gaussian fit method. Taking a step further, we have deployed our deep-learning models to a desktop app with a graphical user interface and the app is free and open-source. We have also built a TEM ImageNet project website for easy browsing and downloading of the training data.
Introduction
Scanning Transmission Electron Microscopy (STEM) allows researchers to visualize individual atoms, but the raw data is frequently obscured by noise. Images suffer from "scan noise" (jittering from electromagnetic interference), Poisson noise (electron counting statistics), and varying sample thickness that can make certain atoms appear significantly dimmer. Traditionally, researchers relied on manual labeling or conventional algorithms like 2D Gaussian fitting. However, these methods are often slow, error-prone, or fail when the signal-to-noise ratio is low. To address this, researchers have introduced TEMImageNet, a massive library of simulated atomic-resolution images, and AtomSegNet, a deep-learning model that automates atom localization and denoising with picometer-scale precision.
Methods: A Simulation-First Approach
To overcome the lack of labeled experimental data, the authors utilized a robust forward model for simulations. Instead of relying solely on computationally expensive multislice simulations, they used a simplified linear imaging model. This involved convolving projected atomic potentials with a Point Spread Function (PSF) and injecting realistic noise components.
AtomSegNet utilizes a U-Net architecture, an encoder-decoder CNN that excels at preserving high-resolution context. This allows the model to analyze both individual atoms and the surrounding lattice structure simultaneously. To improve performance, the team implemented a modified chi-square loss function that specifically penalizes "false atoms" in the background, a common failure point for standard AI models in microscopy.
The TEMImageNet Dataset
The core of this project is TEMImageNet, which includes over 10,000 simulated 256x256 images covering a diverse range of materials, including Gold (Au), Silicon (Si), Graphene, and complex oxides. To ensure the model generalizes well, the researchers randomized the field of view, rotation, background patterns, and noise levels.
As shown above, the dataset provides multiple types of labels for different tasks, such as circular masks for segmentation and Gaussian maps for super-resolution processing.
Key Insights and Results
One of the most significant findings is that a model trained entirely on simulated data can "self-adapt" to real-world experimental images because the underlying physics of atom projection remains consistent.
- Superior Precision: On experimental Silicon [110] images, AtomSegNet achieved a precision of ~6.8 pm, outperforming the industry-standard 2D Gaussian fit method (~8.2 pm).
- Robustness: The model successfully detects "dim" atoms at the edges of nanoparticles where sample thickness varies—a scenario where traditional thresholding usually fails.
- Super-Resolution: In tests on Co3O4, the model resolved cobalt atoms that were too close together for human operators to distinguish in the raw, under-resolved images.
Conclusion and Future Work
AtomSegNet represents a significant leap forward in automated microscopy analysis, offering speed and precision that surpasses traditional mathematical models. By releasing the tool as a free, open-source desktop app, the authors have lowered the barrier for materials scientists to utilize advanced AI. Future work will involve expanding TEMImageNet to include more complex defects, non-crystalline structures, and artifacts like astigmatism to further enhance real-world robustness.
Summary updated