At a glance
Xiankang Tang and colleagues present a physics-informed Bayesian optimization framework that reconstructs 3D atomic structure from a single HRTEM image with a three- to four-order-of-magnitude speed-up, and apply it to barium titanate and yttrium aluminate.
One electron micrograph. One crystal. Roughly two minutes of graphics-card time.
That is the exchange Xiankang Tang and six co-authors report in npj Computational Materials. Using a barium titanate single crystal as their test specimen, the team recovered the sample's full three-dimensional atomic arrangement from a single high-resolution transmission electron microscopy (HRTEM) image, with a three- to four-order-of-magnitude improvement in time efficiency over the standard method. A fitting routine that habitually eats days or weeks, and sometimes months, finished in tens of seconds to a couple of minutes per stage.
The bottleneck in atomic-scale microscopy has not been the microscope for a while. Titan-class instruments corrected for lens aberrations can resolve features finer than 80 picometres. The slow part is what happens afterwards, when someone has to work out which combination of defocus, astigmatism, sample thickness, tilt and atomic column positions produced the wavy grey pattern on the detector. Getting that answer can take an experienced researcher a fortnight. Tang's framework, built at the Technical University of Darmstadt with partners at Forschungszentrum Jülich, hands the job to a probabilistic search algorithm that knows a little physics. The paper appears in a field where demand for automated analysis is rising faster than the supply of people trained to do it by hand.
A microscope image is not a photograph
An HRTEM image is an interference pattern. Electrons pass through a thin crystal, scatter off atomic columns, and recombine at the imaging plane, where their relative phases turn into intensity. What lands on the camera depends on the crystal and on the instrument at the same time, tangled together.
The standard way to untangle them is forward modelling. You propose a structural model, simulate the image it would produce using a multislice calculation, subtract the simulation from the real image, and adjust. Repeat. The simulation code used here, Dr. Probe, is well established. The problem is dimensionality: the authors count around 20 imaging-related parameters in the first fitting stage, among them semi-convergence angle, focus spread, defocus, three orders of astigmatism, coma, spherical aberration and image spread, plus 20 structure parameters for each region of interest, covering atomic column coordinates, occupancy and the number of atoms per column.
Traditionally a human changes a few of those numbers per iteration. The paper puts the resulting turnaround at days to weeks for a single fit, which is why quantitative HRTEM has stayed confined to small patches of sample and to specialists.
The algorithm plays a smarter game of hotter-colder
Bayesian optimization is a strategy for searching when each test is expensive. Instead of marching across the parameter space, it builds a Gaussian process model of the objective, in this case the mean squared error between simulated and experimental pixel intensities, and keeps an estimate of its own uncertainty. An acquisition function then proposes the next batch of candidates where the payoff looks best.
A fair analogy: hunting for the lowest point in a fog-covered valley, where each step costs money. A grid search walks everywhere blindly. Bayesian optimization drops a pin, measures the altitude, updates a mental map of the terrain, and steps next toward the most promising gap in that map. Tang's implementation adds a trust-region scheme, TuRBO, which shrinks and grows the search box as evidence accumulates, so the algorithm stops hunting in regions that have already proved barren.
Two details make it physics-informed rather than merely statistical. Discrete quantities such as the number of atoms in a column are handled through a continuous relaxation, avoiding costly resampling. And candidate structures get filtered against physical plausibility, including energy considerations for surface atoms, before any expensive simulation runs. The code is public on GitHub, alongside the Dr. Probe interface.
Photo by Bozhin Karaivanov on Unsplash
Why the fit was split in two
Fitting everything at once would have produced a search space too lumpy for the surrogate model to learn. So the team staged it. First, imaging parameters are nailed down using an averaged image from several regions picked for similar contrast and thickness, with the atomic structure held at a simple bulk model. That stage converged in about 75 seconds, reaching a mean squared error of roughly 0.0007 against a vacuum noise floor of 0.0004, with a peak normalized cross-correlation of 98.1 per cent between experiment and simulation. Ten independent runs with randomly initialised parameters converged consistently.
With the optics fixed, the second stage refines atomic columns region by region, in parallel, then stitches the pieces into one model of the whole field of view. The integrated reconstruction matches the experimental image at 96.3 per cent peak cross-correlation. Column shifts came out under 5 picometres, beneath the measurement precision, and occupancies came back at 100 per cent everywhere except two oxygen columns at 98 and 90 per cent, implying very few vacancies in the area examined.
That second stage is where the automation claim earns its keep. Twelve regions, each with its own 20-parameter fit, run simultaneously on a single RTX 3090 card.
The barium titanate result, and a second material
Barium titanate (BaTiO3) was chosen deliberately. It contains a heavy element (barium), a medium one (titanium) and a light one (oxygen), which makes it a hard test for any method that claims to locate all three species at once. It also happens to be ferroelectric, meaning its titanium atoms sit slightly off-centre inside their oxygen cages, and that off-centre shift is the structural quantity that controls the material's polarisation.
Across the reconstructed model, the paper reports a clear reduction in the relative titanium-oxygen displacement toward the thin edge of the specimen. The authors read this as a suppression of the ferroelectric distortion and a drift toward a more cubic-like arrangement. Their explanation leans on depolarisation: in very thin regions, the electrostatic boundary conditions approach an open-circuit limit, and the energy gained by off-centring a titanium ion shrinks. Bulk BaTiO3 loses its tetragonal phase at 120 degrees Celsius; size can do something similar at room temperature.
They also flag a second, less comfortable possibility. Electron irradiation of insulating oxides can cause local charging and modest heating, and ultrathin regions sitting near the phase boundary may be unusually sensitive to that. The observed displacement drop could carry a contribution from beam exposure as well as from finite thickness.
A second specimen, yttrium aluminate (YAlO3), served as a portability check. Its alternating charged (YO)+ and (AlO2)- layers make electrostatic relaxation unavoidable in ultrathin samples, and the fit returned a lateral separation of 67 picometres for yttrium-yttrium pairs, the so-called dumbbells. Both cases are reported in the published paper, with a preprint on arXiv.
Where the method still runs into walls
The most concrete limitation is stated plainly in the paper: small changes in an atom's vertical position within a single slice barely alter the image contrast, so only the horizontal coordinates were refined. Depth information therefore comes from the through-thickness stacking of slices, not from resolving individual atomic heights. Anyone hoping for true depth-resolved imaging of a single defect should look elsewhere for now.
There are other boundaries. The validation rests on two material systems, both well-behaved oxides imaged under negative spherical aberration conditions on an aberration-corrected instrument. Averaging regions in the first stage deliberately smooths out local structural fluctuations, which is the right call for extracting global optics but means fine-scale variation is treated as noise. The datasets are available from the corresponding authors on request rather than deposited openly, though the analysis code is public.
The interpretive step deserves its own caveat. The depolarisation argument is presented as consistent with the measured displacements, not as proof of mechanism, and the authors offer beam-induced perturbation as a co-plausible contributor. Separating the two would require dose-controlled experiments the current study does not include.
A sceptical reader might add a third concern: an agreement score of 96 to 98 per cent is a good fit, but a good fit is not the same as a unique solution. Inverse problems in microscopy can admit several structural models that reproduce an image within noise. The paper's answer to this is the repeatability test, ten randomised runs landing in the same place. That is reassuring about the optimiser. It is not a formal uniqueness proof.
Photo by Bozhin Karaivanov on Unsplash
What happens when the fitting stops being the hard part
The obvious next step is scale. The authors write that their aim is reconstructing three-dimensional atomic structures over larger fields of view, and they describe the algorithm as a route toward digital twins of materials, computational replicas detailed enough to simulate behaviour rather than merely describe it.
The more interesting door is time. In-situ and operando electron microscopy watches structures evolve under heat, stress or electrical bias, and the field has learned to slow reactions down deliberately so the microscope can catch intermediate states. What has not scaled is the analysis: an experiment can generate a hundred images while a researcher quantifies one. At minutes per fit, quantification starts to keep pace with acquisition, which is the precondition for closing the loop and letting the microscope adjust its own next measurement.
Tang is a doctoral candidate, and the work carries the marks of a training project that turned into infrastructure: a China Scholarship Council studentship, funding from the German Research Foundation through TRR 270 and from the European Union's Horizon Europe programme under project IMPRESS, compute time on the Lichtenberg cluster at TU Darmstadt. The result is less a single discovery than a piece of machinery other groups can pick up. Whether they do will depend on how gracefully it handles dirty samples, poor vacuum and the awkward materials that never look as tidy as barium titanate.
- electron-microscopy
- batio3
- condensed-matter-physics
- atomic-structure
- bayesian-optimization

