Papers
Topics
Authors
Recent
Search
2000 character limit reached

Drift Correction of Scan Images by Snapshot Referencing

Published 21 Apr 2026 in physics.ins-det, cond-mat.mtrl-sci, and physics.comp-ph | (2604.19384v1)

Abstract: Reliable quantitative analysis in scanning (transmission) electron microscopy (S(T)EM) is often hindered by image drift during long-duration spectral mapping for elemental analysis or for various material functions. We here present snapshot-referencing (SSR) drift correction, a retrospective approach to eliminate spatial distortions based on the temporal nature of the scanning process; A continuous drift vector for every pixel is calculated for a normalized time-field of the scan pattern (e.g., serpentine or raster) utilizing a high-signal, fast-scan "snapshot" as a drift-free reference to guide the correction of simultaneously acquired analytical maps. To describe the drift, we employed Bezier basis functions to model smooth thermal or mechanical drifts and piece-wise linear basis for high-frequency "spiky" shifts such as those caused by charging. We demonstrate the efficacy of this approach on experimental cathodoluminescence (CL) datasets, showing that it effectively restores spatial integrity to hyperspectral data cubes without the need for specialized hardware. This flexible, software-based solution is broadly applicable to any probe-based analytical technique where a fast imaging signal can be recorded alongside slow spectroscopic data.

Summary

  • The paper presents a software-based snapshot referencing approach that reconstructs continuous drift vectors for every pixel using Bezier and piecewise-linear modeling.
  • It employs high-SNR fast-scan images as drift-free references to perform sub-pixel accurate affine and non-linear corrections on S(T)EM spectral maps.
  • Experimental evaluations on Ag nanoparticles, TiOâ‚‚, and nanodiamonds confirm SSR's ability to restore spatial fidelity with improved SSIM scores.

Snapshot-Referencing Drift Correction for S(T)EM Spectral Imaging

Overview

The paper "Drift Correction of Scan Images by Snapshot Referencing" (2604.19384) introduces a retrospective software-based approach for correcting spatial distortions in scanning (transmission) electron microscopy (S(T)EM) spectral mapping datasets. Analytical spectral mapping techniques, such as EDS, EELS, and CL, suffer from significant image drift during long, slow acquisitions, leading to severe misregistration and reduced reliability in quantitative nanoscale analyses. The proposed snapshot-referencing (SSR) approach uses simultaneously acquired high-signal, fast-scan images as drift-free spatial references, allowing for reconstruction of the continuous drift vector for every pixel based on the scan’s temporal evolution. The method relies on modeling slow drifts with Bezier basis functions and rapid, stochastic perturbations with a piecewise-linear basis, yielding flexibility for a range of experimental drift phenomena without the need for modified or specialized hardware.

Technical Approach

Formulation

SSR models drift as a continuous, time-dependent vector field D(t)D(t) mapped to scan pixel coordinates via the normalized acquisition time t(x,y)t(x, y). The observed analytical map is thus warped relative to the snapshot reference, with each pixel’s measured intensity at rr corresponding to the sample’s true value at q=r+D(t)q = r + D(t). The drift correction objective is formulated as energy minimization:

E[D]=Edat[D]+λEreg[D]E[D] = E_{\text{dat}}[D] + \lambda E_{\text{reg}}[D]

where EdatE_{\text{dat}} enforces correspondence to the reference and EregE_{\text{reg}} imposes regularization (Dirichlet smoothness) to prevent physically implausible drift profiles. The Euler-Lagrange equation encodes the optimality, yielding an explicit trade-off between data fidelity and model smoothness according to the parameter λ\lambda.

Drift Representation and Optimization

D(t)D(t) is decomposed into:

  • Bezier component Dbez(t)D_\text{bez}(t): Models smooth, low-frequency drifts (e.g., thermal/mechanical relaxation) using Bernstein polynomial basis.
  • Piecewise-linear component t(x,y)t(x, y)0: Captures high-frequency, sudden jumps (e.g., stochastic sample charging).

Parameter optimization alternates global affine registration (zoom/shift) with local non-linear drift updates for convergence and robustness. A sequential quadratic programming (SQP) solver is employed with fixed bases and regularization weights across diverse datasets, underscoring the stability of the method.

Implementation Details

  • Fast-scan references are either BF/ADF/panchromatic CL images, rapidly acquired to ensure minimal drift and high SNR.
  • Reference and analytical images are mapped via affine transformations plus the estimated drift field.
  • Sub-pixel accuracy is achieved by interpolating the reference images at warped positions.
  • Algorithm parameters (number of basis functions, regularization strength) remain fixed, simplifying practical deployment.

Experimental Evaluation

Simulated Data

Drifted images are synthetically generated by superposing random low-frequency (Bezier) and high-frequency (piecewise-linear) drifts. SSR effectively reconstructs the correct geometry, validated via SSIM and residual analysis. The primary limitation of the approach is mild smoothing near image boundaries, arising from interpolation and regions where structural information diverges due to drift outside the field of view.

Real CL Spectra Maps

Three CL datasets demonstrate SSR’s capacity to restore spatial integrity under diverse drift conditions:

  • Ag nanoparticles: Suffered slow, low-frequency drift. SSR recovered accurate spatial registration for plasmonic optical near-field distributions (SSIM = 0.53), with Bezier drift dominating the correction.
  • Oxide particles (TiOâ‚‚): Exhibited abrupt, high-frequency drift events believed to be due to surface charging. SSR effectively compensated for these, primarily via the piecewise-linear basis (SSIM = 0.72).
  • Nanodiamond clusters (NV centers): Used a panchromatic CL image as the reference, with both gradual and spiky shifts present. The algorithm restored fidelity (SSIM = 0.45) over 15-minute acquisitions.

In all cases, strong correspondence between SSR-corrected images and their snapshot references was achieved, as confirmed by both qualitative and quantitative non-parametric assessments.

Practical and Theoretical Implications

SSR’s key merit lies in its independence from real-time hardware-based drift correction. By leveraging high-SNR, drift-minimal snapshot references—ubiquitous in S(T)EM workflows—SSR enables retrospective correction of spectral data without modifying experimental setups, increasing applicability across legacy systems and laboratories lacking advanced hardware.

Theoretically, the decomposition of drift into continuous (Bezier) and discontinuous (piecewise-linear) bases generalizes to arbitrary drift phenomena and may be adapted using alternative bases (e.g., B-splines, wavelets) for application-specific drift signatures. The regularization scheme ensures robustness across diverse sample types, drift magnitudes, and noise environments.

Future algorithmic enhancements may include adaptive parameter selection, flexible image-matching constraints (e.g., regularized feature matching rather than raw pixel intensity), or multi-scale approaches for improved edge handling and model expressiveness. The SSR framework is naturally extensible to other probe-based microscopies co-acquiring structural and analytical signals.

Conclusion

Snapshot-referencing for drift correction provides a robust, hardware-agnostic, post-acquisition solution for restoring spatial fidelity in S(T)EM analytical mapping. The approach establishes a principled, flexible framework compatible with a wide range of drift phenomena for accurate, quantitative nanoscale analysis. As experimental demands for high-precision analytical mapping continue to escalate, SSR offers a reliable methodological advance with substantive implications for the practice of electron microscopy and related spectroscopy-based imaging modalities.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.