Duane Loh Group

Coarse-graining and classifying massive high-throughput XFEL datasets of crystallization in supercooled water

Two numbers per image were enough to sort 454 million X-ray snapshots of supercooled water and find the rare ones that caught ice forming.

Read the paperCrystals, 2025

Figure for Coarse-graining and classifying massive high-throughput XFEL datasets of crystallization in supercooled water

How does liquid water turn into ice? It sounds like a settled question, but the moment-by-moment process of crystallization — especially in water that’s been cooled well below freezing without yet freezing — remains a stubborn puzzle. Pinning it down matters for everything from how clouds form to how we cryogenically preserve biological tissue.

This paper describes one of the most ambitious attempts to look at that process directly. At the European XFEL, an X-ray laser facility in Germany, the team sprayed water as a fine mist (droplets just a few micrometers across), let them evaporatively chill in vacuum, and zapped them with X-ray pulses lasting a few femtoseconds (quadrillionths of a second). Each pulse acts like an atomic-scale flash photograph: too brief for the atoms to move during exposure, fast enough to catch crystallization mid-act. Over four days they recorded 561 million such snapshots, totaling 2.3 petabytes of raw data. This is roughly a quarter-million HD movies’ worth.

That data deluge is the barrier to science. You can’t have humans inspect half a billion images, and most standard machine-learning approaches for sorting images by similarity scale quadratically with dataset size: fine for a thousand pictures, hopeless for hundreds of millions. Worse, most of those images are uninteresting: the X-ray pulse missed the droplet, or the droplet contained only liquid water. The rare images (i.e., those catching ice in formation) are the prize, and they’re buried.

The paper’s contribution is a clever way to triage. Rather than analyzing every pixel of every image, the team summarized each one with a handful of simple statistics: averages and peak intensities over chunks of the detector (in machine learning, this is known as feature-engineering). This is coarse-graining: throw away fine detail that doesn’t bear on the question, keep the gist. Then, using a standard statistical tool (principal component analysis), they identified which of those summary numbers actually varied between images, and which parts of the detector lit up specifically when ice was present.

With essentially two numbers per image and two threshold cutoffs, they automatically sorted 454 million images into seven sensible categories: empty frames, frames with noise artifacts, weak hits, water-only hits, water-plus-ice hits, and mostly-ice hits. They cross-checked this fast crude method against a slower, more sophisticated machine-learning pipeline on a smaller subset; the two agreed 98% of the time. Same answer, a fraction of the compute.

The broader implication is that this “summarize first, look for outliers second” strategy should generalize. XFEL facilities now routinely produce petabyte-scale datasets, most of which is, almost by definition, empty. Finding the rare informative frames quickly is becoming the rate-limiting step.

Further figure for Coarse-graining and classifying massive high-throughput XFEL datasets of crystallization in supercooled water

Related work