Duane Loh Group

Research

Modern instruments record more than anyone can look at, and much of it is noisy or incomplete. We build methods that connect those data with what science already knows.

Hundreds of small detector frames swirling into place around a central point
Working out which way each diffraction pattern was facing. Image: Duane Loh, made in Blender.

X-ray imaging

X-ray free-electron lasers take flash photographs of single particles, each too faint to show much alone. Our first computational lenses learned to sort and combine these snapshots in 3D without being told how each particle was turned.

The same methods find rare, short-lived states in samples where no two particles are alike.

  • Coherent diffractive imaging and phase retrieval from noisy, incomplete data
  • Unsupervised sorting of very large diffraction datasets
  • 3D serial femtosecond imaging
  • Ptychography for measuring X-ray wavefronts

Key papers

Code

Dragonfly reconstructs single particles. 2DEMC is a small 2D version for teaching.

Recovering the 3D shape of a sample from a single 2D electron microscope image. Work by Deepan Balakrishnan.

Electron microscopy

Electrons can show single atoms, but they also damage what they image. We design methods that get more out of every electron: 3D shape from a single view, steady images at very low doses, and compact data from fast detectors.

  • 3D measurement from single 2D micrographs
  • Motion correction at ultra-low electron doses
  • 4D-STEM, ptychography and Lorentz imaging
  • Cryo-EM, including physics-informed neural networks for phase retrieval
  • Digital twins of electron microscopes

Key papers

Code

PyReCoDe reduces and compresses data from electron detectors.

Gold and blue spheres clumping together as gold atoms separate from water
Gold separating from water before it crystallises. Image: Duane Loh, made in Blender.

Motifs and order

How do many weak, almost random interactions add up to a crystal, or to a cell that divides on time? We look for motifs: small patterns that keep recurring in space and time. They act like a vocabulary, and the order in which they appear like a grammar.

We call this approach COSMOS, for COllective Spatiotemporal MOtif Sensing.

  • Supercooled water, ice and the first steps of crystallisation
  • Structural motifs in atom-thin and disordered materials
  • Groups of cells, organelles and receptors in motion
  • Motifs in DNA and other large molecules

Key papers

Token Cartography

Our newest line of research turns the same idea on AI itself.

123456789
An illustration, not data. Each dot is a place in a model’s inner landscape, larger where more examples gather. Colours show which numbered token it belongs to, and the line follows one sample as it changes.

A hidden landscape

When a model learns from images of cells, diffraction from water or spectra of materials, it squeezes thousands of numbers into a compact inner space. Similar things end up close together, so the space has a geography.

Tokens as waypoints

A cartographer marks a continuous landscape with waypoints to make it legible. We do the same, dividing the model’s inner space into tokens that people can name, compare and follow over time.

What the maps are for

They show where a model is working between examples it has seen and where it is reaching beyond them. They also help reveal which physical quantities it has picked up, so that a pattern becomes a hypothesis to test.

Where it came from

3D density maps of butterfly wing scales in blue, orange and magenta
Density inside single butterfly wing scales, mapped in 3D with X-rays.

Wider applications

Methods built for noisy, incomplete data travel well. With collaborators, we use them to study how butterflies build coloured wings, how crickets make sound, and how dengue spreads through a city.

Key papers

Outline map of Singapore with arrows showing the strongest inferred dengue transmission routes, labelled by year
The strongest dengue transmission routes we inferred across Singapore, by year.