Abstract
The reconstruction of neural circuits from serial section electron microscopy (ssEM) images is being accelerated by automatic image segmentation methods. Segmentation accuracy is often limited by the preceding step of aligning 2D section images to create a 3D image stack. Precise and robust alignment in the presence of image artifacts is challenging, especially as datasets are attaining the petascale. We present a computational pipeline for aligning ssEM images with several key elements. Self-supervised convolutional nets are trained via metric learning to encode and align image pairs, and they are used to initialize iterative fine-tuning of alignment. A procedure called vector voting increases robustness to image artifacts or missing image data. For speedup the series is divided into blocks that are distributed to computational workers for alignment. The blocks are aligned to each other by composing transformations with decay, which achieves a global alignment without resorting to a time-consuming global optimization. We apply our pipeline to a whole fly brain dataset, and show improved accuracy relative to prior state of the art. We also demonstrate that our pipeline scales to a cubic millimeter of mouse visual cortex. Our pipeline is publicly available through two open source Python packages.
Introduction
To map the "connectome"—the complex wiring of a brain—scientists use Serial Section Electron Microscopy (ssEM). This involves slicing brain tissue into thousands of ultra-thin sections, imaging them at nanoscale resolution, and then digitally "restacking" them into a 3D volume.
The primary bottleneck in this process is alignment. Physical slices are rarely perfect; they often contain cracks, folds, or "knife chatter" (vibrational artifacts). Traditional alignment methods rely on finding sparse matching points (like SIFT features) and stretching images to fit. However, these methods often fail near sharp defects like folds, where pixels on either side of a crack must move in opposite directions. Furthermore, as datasets reach the petascale (millions of gigabytes), traditional global optimization solvers become computationally prohibitive.
Methodology
The researchers developed a novel pipeline consisting of three core components designed for robustness and scalability:
- SEAMLeSS (Siamese Encoding and Alignment by Multiscale Learning with Self-Supervision): Instead of aligning raw images, the system trains convolutional neural networks to produce "encodings." These encodings highlight biological structures while ignoring transient artifacts like dust or imaging stripes, providing a cleaner input for fine-tuning alignment.
- Vector Voting: To handle missing data or severe artifacts, the pipeline aligns a single section to multiple preceding sections. It then uses a "smooth median" operation to decide on the best alignment. This consensus mechanism effectively outvotes erroneous matches caused by local defects, adhering to the principle that while correct alignments are consistent, every artifact-induced error is unique.
- ABCD (Alignment of Blocks and Composition with Decay): To scale to petascale volumes, the stack is divided into blocks aligned in parallel. Instead of a time-consuming global optimization to stitch blocks together, the team uses a "decay" approach. Transformations from one block are blended into the next with a weight that decreases over distance, preventing long-range distortions without requiring a massive offline solver.
Results
The team validated their pipeline on two landmark datasets: the Full Adult Fly Brain (FAFB) and the MICrONS (Mouse Visual Cortex) dataset.
- Massive Error Reduction: On the FAFB dataset, the new "v15" alignment reduced the rate of genuine misalignments to just 0.06%, compared to 3.31% in the previous state-of-the-art version—a nearly 100-fold improvement.
- Petascale Performance: The pipeline successfully aligned a cubic millimeter of mouse cortex (MICrONS). This involved processing nearly 20,000 sections and was completed in 230 hours using a cluster of 1,200 GPUs.
- Handling Large Defects: The system demonstrated an unprecedented ability to precisely align tissue around cracks and folds up to 10 µm wide, a feat previously impossible with traditional sparse-correspondence methods.
Conclusion
By treating alignment as a local, parallelizable problem and utilizing self-supervised deep learning, this pipeline enables the precise reconstruction of petascale brain volumes. The team has released their work as two open-source Python packages, metroEM and corgie, providing the broader neuroscience community with the tools necessary for the next generation of large-scale brain mapping.
Summary updated