vanbuuren.ai

Building igloos out of icebergs

My thesis turned cryo-EM methods sections into structured, testable workflows. What worked, what broke, and what's next.

This is the first post in Unfreezing Science, a series about my master's thesis at CryoCloud and Radboud University. This one is the overview; the next posts go deep on each part.

Research papers are icebergs.

They're huge, solid and full of hard-won expertise, and in their current form they're almost impossible to build with. You can admire an iceberg, and with enough training you can read one. But you can't stack it, compare it with another iceberg, or check whether it's sound.

My thesis was about cutting icebergs into blocks, and checking those blocks carefully enough that someone could eventually build an igloo from them. I called the framework Unfreezelit. This post covers what I built, what came out, and, just as important, what didn't.

The iceberg: expertise frozen in methods sections

The field is cryo-electron microscopy (cryo-EM). You flash-freeze a sample of proteins, image it thousands of times with an electron microscope, and computationally combine those very noisy 2D images into a 3D map of the molecule. Those maps help explain how biological machinery works and support structure-based drug design.

The step I focused on is the middle one: image processing, the chain of computational steps (jobs) that turns raw microscope images into a 3D map. Motion correction, CTF estimation, particle picking, extraction, 2D classification, initial model, 3D classification, refinement, post-processing, and more. The broad outline is fairly standard. The details aren't: which steps, in which order, how many rounds, with which settings. Those choices decide whether you get a good map. One workflow might run four rounds of 2D classification, another one round plus three rounds of 3D refinement.

Getting this right takes years of experience, and trial and error is expensive: in on-demand cloud computing, a single workflow can cost anywhere from hundreds to thousands of euros. So researchers do the sensible thing and look at what worked for others.

That knowledge exists. It's written down in the methods sections of thousands of papers, one dense paragraph at a time, with every job and parameter in there. Everything in such a paragraph is useful, and none of it is usable by a machine. You can read it. You can't query it (“which papers used Topaz for picking on a membrane protein?”), compare it with another paper step by step, or check an automated extraction of it against the truth.

The field does have a structured home for this: the Electron Microscopy Data Bank (EMDB), where 3D maps are deposited with metadata. But its image-processing section has room for only about ten steps. Several of them are single “final_” slots (final 2D classification, final 3D classification), so the order and repetition of steps is lost. Common steps like particle extraction, polishing, CTF refinement and post-processing have no slot at all. Many fields are plain text (motion correction captures only its type, and everything else goes into a free-text box), and in practice many are left empty. The paper usually says far more than the database.

“But isn't text already structured?”

When I explained this project, people often pushed back here. A methods section has sentences, paragraphs, even a logical order. Isn't that structure?

It's grammar, not a schema. The difference shows the moment you try to do anything with it. “RELION”, “relion3.0” and “the relion package” are three different strings for the same thing. “We performed several rounds of 2D classification” doesn't tell a computer how many steps that is. And “we used the same settings as above” points somewhere a program can't follow. Structured data means a fixed set of slots, with allowed values, in a defined order, that two sources can be compared on. That's what I set out to build.

The metaphor, and the vocabulary for this series

I'll use the same names throughout the series, metaphor and technical term side by side:

MetaphorWhat it is
IcebergA research paper, specifically its methods text
CutterThe extractor: an LLM plus a prompt that reads the paper
Ice blockA job: one processing step and its settings
BlueprintA workflow: an ordered sequence of blocks. One paper can hold several
The blocks, collectivelyThe Unfreezelit schema: which block types exist, which fields each has, and how blueprints are put together
InspectorThe evaluator: scores a blueprint against a hand-labeled one
IglooA reproduced 3D map: running the blueprint on the original data

Keep the last row in mind. I'll come back to it, because the igloo is the part I didn't build.

What I built

Unfreezelit has three parts that are deliberately decoupled, tied together by the schema.

1. The blocks (the Unfreezelit schema)

A block is one processing step with explicit, checkable fields. Here's a single sentence, “We aligned dose-weighted movie frames using MotionCor2 from within RELION 3.1.”, cut into a block (simplified):

One sentence, one block

FieldValue
typeMOTIONCORR
implementationMotionCor2
software_environmentRELION
source“We aligned dose-weighted movie frames using MotionCor2 …”

The schema has 16 job types and 138 explicit fields, designed to work across the major processing packages (RELION, cryoSPARC, Warp, CryoCloud). Where possible, fields are enumerations, numbers or booleans rather than free text, so two blocks can be compared exactly. Every value carries its source, the sentence it came from, so a human can always check it.

Two design choices matter a lot later in the series:

  • An “OTHER” drawer. When a paper describes something the schema has no slot for, it doesn't get dropped or forced into the wrong field. It goes into OTHER, as an unknown value or an extra field. That keeps extraction honest, and it turns every extraction into a measurement of how well the schema fits.
  • Blueprints are ordered and can repeat. Three rounds of refinement are three blocks in sequence, not one “final_” slot. A paper with five reconstructions has five blueprints.

2. The cutter (the Unfreezelit extractor)

The cutter is an LLM that reads the paper and outputs blueprints directly in the schema. I tested four models (GPT-5, GPT-5-mini, GPT-5-nano and the open-weight Mistral-3.2-small) with four prompts, ranging from a heavy instruction list to a one-line task, plus two with a worked example. I also gave them three amounts of text: the full PDF, only the workflow sections, or one workflow at a time. Everything ran three times on 11 hand-labeled papers, for 1,584 extraction runs in total.

For the GPT models I used constrained decoding: the model can only generate tokens that produce valid output for the schema. Think of a shape-sorter: blocks can only come out in shapes that fit. Keep that image in mind too. It turned out to hide something important.

3. The inspector (the Unfreezelit evaluator)

Checking a blueprint against a hand-labeled one sounds simple until you try it. The predicted blueprint may have fewer blocks, extra blocks, or the right blocks in the wrong order, and a paper with five blueprints doesn't tell you which prediction belongs to which true workflow.

The inspector handles this with one recursive function. At the bottom, each field is checked by a rule declared on the schema itself: exact match, a numeric tolerance, or fuzzy text matching. A block's score combines its fields. To score a blueprint, it compares every predicted block with every true block, finds the best one-to-one match, and then separately scores whether the blocks are in the right order. Then it goes one level up and does the same to match blueprints within a paper.

Two properties I care about: there's no LLM judge anywhere in the loop, so the same input always gets the same score, and the inspector knows nothing about cryo-EM. Change the schema, add a block type, or evaluate product cards instead of microscopy workflows, and the evaluation code doesn't change.

What came out

I built three datasets: 5 hand-labeled papers used while designing the schema (Dev), 6 hand-labeled papers held out until the schema was finished (Test), and 57 papers labeled by an LLM for scale (Unlabeled). In total that's 1,257 hand-annotated fields, and 4,436 automatically annotated ones.

1. The blocks fit

Across the hand-labeled papers, the schema captured 80-90% of what the papers report in its explicit fields, with only 10-20% going into the OTHER drawer. That held on the unseen Test papers, and on average on the 57-paper set, though with more spread there. The distribution of blocks is very skewed: 10 job types account for 84% of all block occurrences. 3D refinement alone appears in 99% of papers. A small core schema carries most of the value.

There's also a quieter finding. On average, less than 40% of each block's fields were filled. Mostly this isn't the schema's fault: the papers simply don't state those settings. Some parameters that are critical for the algorithms to work, like the number of iterations for classification, are rarely reported at all.

2. The cutter can work, depending on the model and the input

The best model-prompt-input combinations reach close to 0.8 F1 (0 to 1, where 1 is a perfect match), and they held up from Dev to Test: 9 of the 10 best configurations on Dev were also in the top 10 on Test. But “best” is doing a lot of work in that sentence. Averaged over all 48 setups, per-paper scores ranged from about 0.25 to 0.75. GPT-5 was the only model that handled full papers reliably, at about €0.10 per paper. On shorter inputs, GPT-5-mini came close at roughly a tenth of the cost. The best Mistral setup reached about 0.52.

3. The errors were mostly structural, not factual

This is the finding that surprised me most. I expected the classic LLM failure: invented values. What I mostly saw when I inspected low-scoring runs was models getting the content roughly right but the structure wrong. One workflow got split into many one-block workflows. Settings went into the wrong field. A mask got its own block where papers describe it inside another step.

And constrained decoding, the shape-sorter, hid these problems: it guaranteed valid output without requiring the model to understand the schema. The one model I ran without constrained decoding, Mistral, failed to produce parseable output in 182 of 396 runs. Annoying, but those failures exposed exactly the prompt and schema ambiguities the GPT runs had silently absorbed.

What this doesn't show (yet)

I want to be clear about the limits, because they matter as much as the numbers.

  • The igloo isn't built. The thesis cut the blocks, drew the blueprints and built the inspector. Actually running an extracted blueprint on the original microscope data and checking whether you get the same 3D map (the reproducibility test) was out of scope. The code to convert blueprints for the CryoCloud platform exists, but it hasn't been tested experimentally.
  • The dataset is small. Eleven hand-labeled papers is enough to see patterns and not enough for strong statistical claims. Labeling is slow: fully annotating a single paper with five workflows across all categories took about 25 hours, which is why I narrowed the scope to image processing.
  • One annotator. I labeled everything myself (a second researcher reviewed only the Dev set), so there's no inter-annotator agreement, and I also designed the schema.
  • The Test set is tilted toward GPT. To speed up labeling, I started the Test labels from a GPT-5 extraction and corrected them line by line. The labels are corrected, but choices about phrasing and sources likely favour GPT models.
  • Memorisation is possible. These papers are public and may be in the models' training data.
  • Text only. Many papers include workflow diagrams, which are often clearer than the text. The extractors never saw them.
  • “Structural, not factual” comes from inspecting samples, not from a full error taxonomy. I'm confident it's the dominant pattern in what I looked at. It isn't a measured percentage.

Why this matters beyond cryo-EM

Nothing in the inspector is specific to cryo-EM, and the data structure underneath the schema isn't either. Any field whose methods are ordered, nested procedures, like chemical synthesis, wet-lab protocols or computational pipelines, could define its own blocks and reuse the same evaluation. The repository's quickstart evaluates a two-field “product card” with the exact same function that scores cryo-EM workflows.

And the timing matters. The number of cryo-EM depositions keeps growing, and LLMs can now propose workflows endlessly. Without standard blocks and an automatic inspector, checking all of it falls on humans. I think that's the real bottleneck ahead, in cryo-EM and elsewhere.

The rest of this series

Over the next few months, one post every two weeks:

  1. Building igloos out of icebergs (this post)
  2. Text is not data: what a block is, how real papers fit into them, and what papers leave out
  3. Checklists all the way down: how the inspector scores any schema without an LLM judge, and where it breaks
  4. Valid JSON, wrong answer: structural errors and how constrained decoding hid them
  5. The 10x cheaper cutter: model size, cost, and why a smaller input beat a bigger model
  6. Every schema needs a junk drawer: using OTHER to find what the schema is missing
  7. Shape the answer, not the system: what I believe about data-first AI for science, and what I'd do next

If you work on cryo-EM processing, structured extraction, evaluation or research infrastructure, I'd love to hear where this matches your experience and where it doesn't. And a question for everyone: where in your field is the real knowledge still locked in PDFs?

Thanks to my supervisors Gydo van Zundert and Robert Englmeier (CryoCloud), Iris Hendrickx and Djoerd Hiemstra (Radboud University), my second reader Matan Yah Ben Zion, and the CryoCloud team.

Citation: Van Buuren, T. (2026). Unfreezelit: Unfreezing cryo-EM knowledge - a literature-to-structure pipeline for research protocol extraction and validation. Master's thesis, Radboud University.

Further

Project Unfreezelit — the project External Thesis, code and defense slides on GitHub