Pretrained model for STED microscopy needs fewer labelled images
In short
- STED-FM is a general-purpose image model for STED microscopy, a super-resolution technique that shows details finer than ordinary light microscopes can resolve. It was built by a team at Université Laval in Québec, Canada, with Mila, the Québec AI institute, and published in Nature Methods on 2 December 2026.
- It was pretrained, without any manual labels, on nearly 1 million small STED image crops, then reused for sorting images, outlining structures, cleaning up noisy images, generating images and steering the microscope.
- In the authors' tests it needed less labelled data than models pretrained on other image collections, and it did best overall on both classification and segmentation (outlining structures).
- The catch: all the pretraining images came from one STED microscope (an Abberior Expert-Line), though the authors also tested on images from other STED microscopes; and images the model generates are hints for experiments, not results.
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.
- Synapse maturation: moving images from 12-day toward 25-day neurons produced larger clusters of the synaptic protein PSD95 and more perforated synapses, a rare form (about 3% in one dataset). The authors then checked the real images and found the same shift (P = 0.0138), in line with earlier reports.
- Neuronal activity: moving F-actin images toward higher activity increased fibres and reduced rings. Looking at the lower-activity direction pointed them to dense "compact assemblies", which the real data showed becoming less common as activity rose.
- Plausibility check: 4.48% of real images and 5.72% of generated ones were flagged as out-of-distribution by their measured features.
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
- Foundation model: one model pretrained on a large collection, then adapted to many tasks (our wording).
- Self-supervised learning: training that makes up its own task from unlabelled data, here filling in hidden image patches.
- Linear probing: freezing the pretrained model and training only one thin output layer on top.
- Out-of-distribution: data that differs from what the model was trained on, such as another microscope.
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
- A self-supervised foundation model for robust and generalizable representation learning in STED microscopy, Nature Methods, 2 December 2026 (received 4 July 2025, accepted 23 October 2026)
- A foundation model with applications in super-resolution STED microscopy, Nature Methods Research Briefing, 2 December 2026 (summary only)
- STED-FM code and data, as linked in the article
Sources
- A self-supervised foundation model for robust and generalizable representation learning in STED microscopy
- A foundation model with applications in super-resolution STED microscopy
- STED-FM code and datasets
Related stories
- Mistral AI's Crashtral predicts car crashes across 8 vehicles
- AI model for mammograms matches senior radiologists in a reader study
- AgiBot unveils GO-3 Preview, a robot model built to keep learning
- Inria Chile gets US$2.5 million to build an open AI ocean model
- Mistral releases Timestral, small forecasting models for CPUs
- WeedNet AI names 1,593 weed species at 91% accuracy, authors say
More from Robot Scientist
- Open 450K-example dataset teaches medical AI to reason on images
- Google releases GenFocal, an AI that sharpens coarse climate runs
- Ai2 study: what scientists need before trusting AI research agents
- MIT and BASF release CheMeleon, a free molecule-property model
- NVIDIA ALCHEMI: Accelerating AI-Powered Chemistry and Materials Science