Pretrained model for STED microscopy needs fewer labelled images

In short

What is the AI model for microscope images?

STED (stimulated emission depletion) microscopy shrinks the glowing spot a light microscope uses to scan a sample, so it can pick out structures such as the ring-like and fibre-like arrangements of actin, a protein that gives a cell's branches their shape. The pictures are hard to get: they need careful sample preparation and tuned settings, and an expert has to annotate them. That is why labelled STED collections are small.

The team's answer is the "pretrain once, adapt many times" recipe now common in AI. The authors, led by Flavie Lavoie-Cardinal's group, gathered images into a dataset of about 1 million crops of 224 × 224 pixels, cut from 37,387 larger images. It covers more than 20 labelled proteins in neurons and other cell types, live and fixed, in cultures and tissue slices, all taken on an Abberior STED Expert-Line microscope.

They trained a vision transformer (the same family of network used for many image models) by masked autoencoding: parts of each image are hidden and the network learns to fill them in. No human labels are needed. The result, called STED-FM, is the small "ViT-S" version; the team says a larger one performed similarly in early tests, so they chose the cheaper one.

~1 million STED image crops used for pretraining; 37,387 larger source images they were cut from; 77% vs 56% nearest-neighbour accuracy, STED-FM vs hand-made features; 15 datasets used to test classification and segmentation

What they tested it on

The authors compared STED-FM with the same network pretrained on ImageNet (everyday photos), JUMP (3.7 million cell-painting images), the Human Protein Atlas (1.1 million images) and a structured-illumination microscopy set (205,000 images).

The authors also note two limits on these results. When the whole network was retrained, the gap to other pretrainings narrowed. And for segmentation, a model started from ImageNet did worse than one started from random weights, which they take as a sign that in-domain pretraining matters.

From images to biology

Because the model's internal code can be steered, the team used it to ask "what would this image look like with more of property X?". They trained a classifier on the model's codes for two groups (for example neurons at 12 days in culture and at 25 days) and moved images along that direction, then decoded them with a diffusion model.

The authors stress that generated images are meant to guide targeted checks in real data, not replace them.

The attribute-steering step works well for some properties and less for others: for image quality, precision was 0.98 and recall 0.78; for resolution, precision was 1.00 and recall 0.67 (the authors' figures, on small sets of 27 and 12 trajectories).

Steering the microscope

The model's retrieval ability was wired into imaging. A microscopist marks a few regions of interest on a low-detail confocal overview, and a random-forest classifier on STED-FM features proposes the rest, such as dendritic spines. With annotation of only 5% of the image, detection reached an F1-score above 0.75.

Those regions then feed routines that tune laser power and pixel time. In one three-dimensional run on the presynaptic protein Bassoon, z-resolution reached below 200 nm; photobleaching, the fading of the dye, was stabilised but the signal ratio fell. A second approach used the model's image-quality direction as the reward for the optimiser, which improved the quality metric across an imaging session.

Terms in plain English

Where things stand

The authors released the code, their training dataset and several smaller annotated datasets on GitHub, and say they expect to keep adding newly acquired images to improve the model. They note that public super-resolution datasets are scarce and call for more to be shared. They also write that a more diverse pretraining set correlated with better results (Pearson 0.60), and that better ways to measure the distance between image domains are still needed. A separate Research Briefing in the same journal summarises the work; we could read only its summary.

Sources

Sources

Related stories

More from Robot Scientist

All stories from Robot Scientist