afMLevel: Deep learning U-Net Models for Levelling Atomic Force Microscopy Images and Movies
M. Tekchandani, D. E. Rollins, M. Westerell, S. D. Evans, P. G. Adams, G. R. Heath
Key points
From the paper's conclusion- Here, we present two U-Net models developed using machine learning for levelling AFM images without altering the sample topography.
Abstract
AFM experiments can now produce hundreds of frames per session and this rises to thousands in the case of video-rate high-speed AFM, but every image must still be levelled to remove tilt, bowing and line noise before it can be measured. Current automatic routines rely on user-chosen masks and parameters that work for some sample types but fail on others, so levelling often remains a manual, subjective bottleneck. Here, we present two U-Net models developed using machine learning for levelling AFM images without altering the sample topography. MLMask segments features so that they are excluded from conventional plane and line background fits, and MLBackground predicts the noise and artifact background directly, which is then subtracted. Both were trained on 2,001 experimental images from multiple instruments and sample types, using manually levelled images as ground truth. On 164 unseen images, MLMask routines brought 70-80% of images below a mean squared error of 0.1 relative to manual levelling, compared with 60-70% for the best multi-plane method, with a lower mean error (0.1-0.15 vs 0.15-0.3), and both models significantly outperformed fourteen classical routines (p < 0.01). Applied frame by frame, the models process 512x512 pixel HS-AFM movies at 4.7 frames.s-1. We provide afMLevel as an openly-available package for the use of other researchers. By removing the need to choose levelling parameters image by image, this package together with its models and paired training data, provides a foundation for automated AFM analysis pipelines.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- AFM-net: machine learning acceleration of atomic force microscopy nanometrology from scarce data and fast scansnpj Computational Materials · 2026
- AI-driven artifact removal and image restoration in Atomic Force Microscopy via structured mask-guided inpainting.Micron (Oxford, England : 1993) · 2026
- MatImageAgent: A Large Language Multimodal Agent for Materials Characterization ImagesMaterials Genome Engineering Advances · 2026
- Synthetic data-driven deep learning for label-free autonomous atomic force microscopyNature Communications · 2026
- Simulation-driven 3D line roughness reconstruction: A proof-of-concept deep learning framework for SEM metrology.Micron (Oxford, England : 1993) · 2026
- Automatic Extraction of Magnetic Lineaments Using U-Net: Application to the Peixoto de Azevedo Area, Alta Floresta Gold Province, BrazilGeosciences · 2026