CryoTracer: A Synthetic-to-Real System for Filament Instance Tracing in Cryo-EM

Radosław Kuczbański, Wojciech Kozłowski, Mateusz Grzesiuk, Konrad Karanowski, Lukas Frey, Andrzej Rzepiela, Maciej ZiębaarXiv 2026

TL;DR

CryoTracer is a new transformer-based framework that treats filament picking in cryo-electron microscopy (cryo-EM) as an end-to-end polyline prediction task. By combining procedural synthetic pretraining with a specialized orientation-invariant loss function, it recovers complete, continuous filament instances far more accurately than traditional "detect-and-link" pipelines, even when expert training data is extremely scarce.

What Problem Does This Paper Address?

In cryo-EM, "particle picking" is the essential first step of identifying biological structures within noisy, low-contrast images. While globular (ball-like) proteins are easily handled with standard bounding boxes, many important proteins—like those associated with Alzheimer’s and Parkinson’s—form long, winding filaments.

Existing tools usually tackle this by detecting small segments and trying to stitch them together in post-processing. This often fails at "crossings" (where filaments overlap) or "gaps" (where the signal fades), leading to fragmented results. Furthermore, training these models requires expert manual annotation, which is incredibly tedious and expensive. The authors aim to bridge this gap by preserving "instance identity"—knowing exactly which segments belong to which specific filament from start to finish.

Methods

CryoTracer introduces a "synthetic-to-real" workflow that moves away from local detection toward global instance tracing.

  1. Architecture: The model adapts RF-DETR (a real-time Detection Transformer). Instead of predicting boxes, it predicts filaments as ordered polylines consisting of five points.
  2. Iterative Refinement: The model uses a transformer decoder to progressively refine these polylines. It samples features from the image around the current predicted points and updates their coordinates over six decoder layers.
  3. Orientation-Invariant Fréchet Objective: A major innovation is the use of the discrete Fréchet distance for the loss function. Unlike standard metrics, this measures the spatial distance between two curves while respecting the order of points. Crucially, the authors made it "orientation-invariant," meaning the model isn't penalized if it traces a filament from left-to-right while the ground truth was marked right-to-left.
  4. Synthetic Pretraining: To solve the data scarcity problem, the authors procedurally generate thousands of synthetic micrographs. These contain varied filament geometries, crossings, and noise levels, providing the model with a "warm start" before it ever sees a real image.
Figure 1: Polyline prediction and iterative refinement in CryoTracer. (a) The Q = 50 highest- scoring encoder proposals provide initial reference polylines with K = 5 ordered points. (b) Cross- attention updates each query using encoder features around its current polyline (orange). Purple markers indicate sampling locations, with marker area proportional to attention weight. (c) The updated query refines the polyline, and the resulting curve (teal) guides attention in the next decoder layer. This process progressively refines the predictions.

Datasets

The authors evaluated CryoTracer on three main sources:

  • Procedural Synthetic Data: Used for large-scale pretraining.
  • EMPIAR-10022 (Tobacco Mosaic Virus): A public dataset that the authors re-annotated with high-quality filament centerlines to enable proper instance-level evaluation.
  • $\alpha$-synuclein: A private, in-house dataset consisting of 325 expert-annotated micrographs from 11 different reconstruction sessions.

Key Insights and Ideas

  • Instance Identity vs. Spatial Overlap: The paper highlights a critical distinction: a model can have high "spatial overlap" (covering the right pixels) but still be a poor tracer if it breaks a single filament into ten tiny pieces. CryoTracer prioritizes the continuity of the instance.
  • The Power of "Synthetic-to-Real": Pretraining on "fake" data allows the model to learn the concept of a curve and a crossing. This makes it remarkably robust when fine-tuned on as few as 15-30 real micrographs.
  • Order Matters: Using Fréchet distance instead of Chamfer distance (which ignores point order) was vital. Ablation studies showed that without the ordered Fréchet objective, the model's ability to recover complete instances plummeted.

Key Results

CryoTracer significantly outperformed established baselines like Topaz and crYOLO, particularly in recovering complete filaments (measured by the mF1 metric).

  • EMPIAR-10022: In the standard regime, CryoTracer achieved an mF1 of 0.63, while Topaz trailed at 0.08.
  • $\alpha$-synuclein: CryoTracer reached an mF1 of 0.40, nearly four times higher than the RELION Amyloid baseline (0.11).
  • Data Efficiency: In the "practical regime" (using only ~15% of available training data), CryoTracer maintained strong performance, while other methods struggled to produce usable traces.
Figure 2: EMPIAR-10022, standard regime. One selected micrograph from the corresponding eval- uation set, with method predictions and ground truth labeled in the panels. Images are low-pass filtered and contrast adjusted for display. Colors distinguish curves within a panel and do not indi- cate matched identities across methods.

Limitations and Future Work

While a major step forward, the authors note several areas for improvement:

  • Fixed Point Count: The current model uses a fixed 5-point representation. While efficient, this might limit the fidelity of extremely long or complex, high-curvature filaments.
  • Ambiguity at Crossings: Like humans, the model can still be "tricked" by very dense regions where multiple filaments overlap in confusing ways.
  • Downstream Impact: The next logical step is to prove that these better traces directly lead to higher-resolution 3D reconstructions, which is the ultimate goal of cryo-EM.

The code and newly annotated EMPIAR-10022 data are available at https://github.com/cryotracer/cryotracer.

Summary updated

BibTeX
@misc{kuczbanski2026cryotracer,
  author = {Radosław Kuczbański and Wojciech Kozłowski and Mateusz Grzesiuk and Konrad Karanowski and Lukas Frey and Andrzej Rzepiela and Maciej Zięba},
  title = {{CryoTracer: A Synthetic-to-Real System for Filament Instance Tracing in Cryo-EM}},
  year = {2026},
  eprint = {2610.18696},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.18696},
}
Figure